Package org.opennms.netmgt.dao.mock
Class UnimplementedIpInterfaceDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.UnimplementedIpInterfaceDao
-
- All Implemented Interfaces:
IpInterfaceDao,LegacyOnmsDao<OnmsIpInterface,Integer>,OnmsDao<OnmsIpInterface,Integer>
public abstract class UnimplementedIpInterfaceDao extends Object implements IpInterfaceDao
-
-
Constructor Summary
Constructors Constructor Description UnimplementedIpInterfaceDao()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.dao.api.IpInterfaceDao
findInterfacesWithMetadata
-
-
-
-
Method Detail
-
findMatching
public List<OnmsIpInterface> findMatching(OnmsCriteria criteria)
- Specified by:
findMatchingin interfaceLegacyOnmsDao<OnmsIpInterface,Integer>
-
countMatching
public int countMatching(OnmsCriteria onmsCrit)
- Specified by:
countMatchingin interfaceLegacyOnmsDao<OnmsIpInterface,Integer>
-
lock
public void lock()
Description copied from interface:OnmsDaoThis is used to lock the table in order to implement upsert type operations- Specified by:
lockin interfaceOnmsDao<OnmsIpInterface,Integer>
-
initialize
public void initialize(Object obj)
- Specified by:
initializein interfaceOnmsDao<OnmsIpInterface,Integer>
-
flush
public void flush()
- Specified by:
flushin interfaceOnmsDao<OnmsIpInterface,Integer>
-
clear
public void clear()
- Specified by:
clearin interfaceOnmsDao<OnmsIpInterface,Integer>
-
countAll
public int countAll()
- Specified by:
countAllin interfaceOnmsDao<OnmsIpInterface,Integer>
-
delete
public void delete(OnmsIpInterface entity)
- Specified by:
deletein interfaceOnmsDao<OnmsIpInterface,Integer>
-
delete
public void delete(Integer key)
- Specified by:
deletein interfaceOnmsDao<OnmsIpInterface,Integer>
-
findAll
public List<OnmsIpInterface> findAll()
- Specified by:
findAllin interfaceOnmsDao<OnmsIpInterface,Integer>
-
findMatching
public List<OnmsIpInterface> findMatching(Criteria criteria)
- Specified by:
findMatchingin interfaceOnmsDao<OnmsIpInterface,Integer>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatchingin interfaceOnmsDao<OnmsIpInterface,Integer>
-
get
public OnmsIpInterface get(Integer id)
- Specified by:
getin interfaceOnmsDao<OnmsIpInterface,Integer>
-
load
public OnmsIpInterface load(Integer id)
- Specified by:
loadin interfaceOnmsDao<OnmsIpInterface,Integer>
-
save
public Integer save(OnmsIpInterface entity)
- Specified by:
savein interfaceOnmsDao<OnmsIpInterface,Integer>
-
saveOrUpdate
public void saveOrUpdate(OnmsIpInterface entity)
- Specified by:
saveOrUpdatein interfaceOnmsDao<OnmsIpInterface,Integer>
-
update
public void update(OnmsIpInterface entity)
- Specified by:
updatein interfaceOnmsDao<OnmsIpInterface,Integer>
-
get
public OnmsIpInterface get(OnmsNode node, String ipAddress)
Description copied from interface:IpInterfaceDaoget
- Specified by:
getin interfaceIpInterfaceDao- Parameters:
node- aOnmsNodeobject.ipAddress- aStringobject.- Returns:
- a
OnmsIpInterfaceobject.
-
findByNodeIdAndIpAddress
public OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
Description copied from interface:IpInterfaceDaofindByNodeIdAndIpAddress
- Specified by:
findByNodeIdAndIpAddressin interfaceIpInterfaceDao- Parameters:
nodeId- aIntegerobject.ipAddress- aStringobject.- Returns:
- a
OnmsIpInterfaceobject.
-
findByForeignKeyAndIpAddress
public OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource, String foreignId, String ipAddress)
Description copied from interface:IpInterfaceDaofindByForeignKeyAndIpAddress
- Specified by:
findByForeignKeyAndIpAddressin interfaceIpInterfaceDao- Parameters:
foreignSource- aStringobject.foreignId- aStringobject.ipAddress- aStringobject.- Returns:
- a
OnmsIpInterfaceobject.
-
findByIpAddress
public List<OnmsIpInterface> findByIpAddress(String ipAddress)
Description copied from interface:IpInterfaceDaofindByIpAddress
- Specified by:
findByIpAddressin interfaceIpInterfaceDao- Parameters:
ipAddress- aStringobject.- Returns:
- a
Collectionobject.
-
findByNodeId
public List<OnmsIpInterface> findByNodeId(Integer nodeId)
Description copied from interface:IpInterfaceDaofindByNodeId
- Specified by:
findByNodeIdin interfaceIpInterfaceDao- Parameters:
nodeId- aIntegerobject.- Returns:
- a
Collectionobject.
-
findByServiceType
public List<OnmsIpInterface> findByServiceType(String svcName)
Description copied from interface:IpInterfaceDaofindByServiceType
- Specified by:
findByServiceTypein interfaceIpInterfaceDao- Parameters:
svcName- aStringobject.- Returns:
- a
Collectionobject.
-
findHierarchyByServiceType
public List<OnmsIpInterface> findHierarchyByServiceType(String svcName)
Description copied from interface:IpInterfaceDaofindHierarchyByServiceType
- Specified by:
findHierarchyByServiceTypein interfaceIpInterfaceDao- Parameters:
svcName- aStringobject.- Returns:
- a
Collectionobject.
-
getInterfacesForNodes
public Map<InetAddress,Integer> getInterfacesForNodes()
Description copied from interface:IpInterfaceDaoReturns a map of all IP to node ID mappings in the database.- Specified by:
getInterfacesForNodesin interfaceIpInterfaceDao- Returns:
- a
Mapobject.
-
findPrimaryInterfaceByNodeId
public OnmsIpInterface findPrimaryInterfaceByNodeId(Integer nodeId)
- Specified by:
findPrimaryInterfaceByNodeIdin interfaceIpInterfaceDao
-
-