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:
findMatching
in interfaceLegacyOnmsDao<OnmsIpInterface,Integer>
-
countMatching
public int countMatching(OnmsCriteria onmsCrit)
- Specified by:
countMatching
in interfaceLegacyOnmsDao<OnmsIpInterface,Integer>
-
lock
public void lock()
Description copied from interface:OnmsDao
This is used to lock the table in order to implement upsert type operations- Specified by:
lock
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
initialize
public void initialize(Object obj)
- Specified by:
initialize
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
flush
public void flush()
- Specified by:
flush
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
clear
public void clear()
- Specified by:
clear
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
countAll
public int countAll()
- Specified by:
countAll
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
delete
public void delete(OnmsIpInterface entity)
- Specified by:
delete
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
delete
public void delete(Integer key)
- Specified by:
delete
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
findAll
public List<OnmsIpInterface> findAll()
- Specified by:
findAll
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
findMatching
public List<OnmsIpInterface> findMatching(Criteria criteria)
- Specified by:
findMatching
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatching
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
get
public OnmsIpInterface get(Integer id)
- Specified by:
get
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
load
public OnmsIpInterface load(Integer id)
- Specified by:
load
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
save
public Integer save(OnmsIpInterface entity)
- Specified by:
save
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
saveOrUpdate
public void saveOrUpdate(OnmsIpInterface entity)
- Specified by:
saveOrUpdate
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
update
public void update(OnmsIpInterface entity)
- Specified by:
update
in interfaceOnmsDao<OnmsIpInterface,Integer>
-
get
public OnmsIpInterface get(OnmsNode node, String ipAddress)
Description copied from interface:IpInterfaceDao
get
- Specified by:
get
in interfaceIpInterfaceDao
- Parameters:
node
- aOnmsNode
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByNodeIdAndIpAddress
public OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
Description copied from interface:IpInterfaceDao
findByNodeIdAndIpAddress
- Specified by:
findByNodeIdAndIpAddress
in interfaceIpInterfaceDao
- Parameters:
nodeId
- aInteger
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByForeignKeyAndIpAddress
public OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource, String foreignId, String ipAddress)
Description copied from interface:IpInterfaceDao
findByForeignKeyAndIpAddress
- Specified by:
findByForeignKeyAndIpAddress
in interfaceIpInterfaceDao
- Parameters:
foreignSource
- aString
object.foreignId
- aString
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByIpAddress
public List<OnmsIpInterface> findByIpAddress(String ipAddress)
Description copied from interface:IpInterfaceDao
findByIpAddress
- Specified by:
findByIpAddress
in interfaceIpInterfaceDao
- Parameters:
ipAddress
- aString
object.- Returns:
- a
Collection
object.
-
findByNodeId
public List<OnmsIpInterface> findByNodeId(Integer nodeId)
Description copied from interface:IpInterfaceDao
findByNodeId
- Specified by:
findByNodeId
in interfaceIpInterfaceDao
- Parameters:
nodeId
- aInteger
object.- Returns:
- a
Collection
object.
-
findByServiceType
public List<OnmsIpInterface> findByServiceType(String svcName)
Description copied from interface:IpInterfaceDao
findByServiceType
- Specified by:
findByServiceType
in interfaceIpInterfaceDao
- Parameters:
svcName
- aString
object.- Returns:
- a
Collection
object.
-
findHierarchyByServiceType
public List<OnmsIpInterface> findHierarchyByServiceType(String svcName)
Description copied from interface:IpInterfaceDao
findHierarchyByServiceType
- Specified by:
findHierarchyByServiceType
in interfaceIpInterfaceDao
- Parameters:
svcName
- aString
object.- Returns:
- a
Collection
object.
-
getInterfacesForNodes
public Map<InetAddress,Integer> getInterfacesForNodes()
Description copied from interface:IpInterfaceDao
Returns a map of all IP to node ID mappings in the database.- Specified by:
getInterfacesForNodes
in interfaceIpInterfaceDao
- Returns:
- a
Map
object.
-
findPrimaryInterfaceByNodeId
public OnmsIpInterface findPrimaryInterfaceByNodeId(Integer nodeId)
- Specified by:
findPrimaryInterfaceByNodeId
in interfaceIpInterfaceDao
-
-