Package org.opennms.netmgt.dao.mock
Class UnimplementedIpInterfaceDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.UnimplementedIpInterfaceDao
-
- All Implemented Interfaces:
IpInterfaceDao
,LegacyOnmsDao<OnmsIpInterface,java.lang.Integer>
,OnmsDao<OnmsIpInterface,java.lang.Integer>
public abstract class UnimplementedIpInterfaceDao extends java.lang.Object implements IpInterfaceDao
-
-
Constructor Summary
Constructors Constructor Description UnimplementedIpInterfaceDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
countAll()
int
countMatching(Criteria onmsCrit)
int
countMatching(OnmsCriteria onmsCrit)
void
delete(java.lang.Integer key)
void
delete(OnmsIpInterface entity)
java.util.List<OnmsIpInterface>
findAll()
OnmsIpInterface
findByForeignKeyAndIpAddress(java.lang.String foreignSource, java.lang.String foreignId, java.lang.String ipAddress)
findByForeignKeyAndIpAddressjava.util.List<OnmsIpInterface>
findByIpAddress(java.lang.String ipAddress)
findByIpAddressjava.util.List<OnmsIpInterface>
findByNodeId(java.lang.Integer nodeId)
findByNodeIdOnmsIpInterface
findByNodeIdAndIpAddress(java.lang.Integer nodeId, java.lang.String ipAddress)
findByNodeIdAndIpAddressjava.util.List<OnmsIpInterface>
findByServiceType(java.lang.String svcName)
findByServiceTypejava.util.List<OnmsIpInterface>
findHierarchyByServiceType(java.lang.String svcName)
findHierarchyByServiceTypejava.util.List<OnmsIpInterface>
findMatching(Criteria criteria)
java.util.List<OnmsIpInterface>
findMatching(OnmsCriteria criteria)
OnmsIpInterface
findPrimaryInterfaceByNodeId(java.lang.Integer nodeId)
void
flush()
OnmsIpInterface
get(java.lang.Integer id)
OnmsIpInterface
get(OnmsNode node, java.lang.String ipAddress)
getjava.util.Map<java.net.InetAddress,java.lang.Integer>
getInterfacesForNodes()
Returns a map of all IP to node ID mappings in the database.void
initialize(java.lang.Object obj)
OnmsIpInterface
load(java.lang.Integer id)
void
lock()
This is used to lock the table in order to implement upsert type operationsjava.lang.Integer
save(OnmsIpInterface entity)
void
saveOrUpdate(OnmsIpInterface entity)
void
update(OnmsIpInterface entity)
-
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 java.util.List<OnmsIpInterface> findMatching(OnmsCriteria criteria)
- Specified by:
findMatching
in interfaceLegacyOnmsDao<OnmsIpInterface,java.lang.Integer>
-
countMatching
public int countMatching(OnmsCriteria onmsCrit)
- Specified by:
countMatching
in interfaceLegacyOnmsDao<OnmsIpInterface,java.lang.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,java.lang.Integer>
-
initialize
public void initialize(java.lang.Object obj)
- Specified by:
initialize
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
flush
public void flush()
- Specified by:
flush
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
clear
public void clear()
- Specified by:
clear
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
countAll
public int countAll()
- Specified by:
countAll
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
delete
public void delete(OnmsIpInterface entity)
- Specified by:
delete
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
delete
public void delete(java.lang.Integer key)
- Specified by:
delete
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
findAll
public java.util.List<OnmsIpInterface> findAll()
- Specified by:
findAll
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
findMatching
public java.util.List<OnmsIpInterface> findMatching(Criteria criteria)
- Specified by:
findMatching
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatching
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
get
public OnmsIpInterface get(java.lang.Integer id)
- Specified by:
get
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
load
public OnmsIpInterface load(java.lang.Integer id)
- Specified by:
load
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
save
public java.lang.Integer save(OnmsIpInterface entity)
- Specified by:
save
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
saveOrUpdate
public void saveOrUpdate(OnmsIpInterface entity)
- Specified by:
saveOrUpdate
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
update
public void update(OnmsIpInterface entity)
- Specified by:
update
in interfaceOnmsDao<OnmsIpInterface,java.lang.Integer>
-
get
public OnmsIpInterface get(OnmsNode node, java.lang.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(java.lang.Integer nodeId, java.lang.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(java.lang.String foreignSource, java.lang.String foreignId, java.lang.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 java.util.List<OnmsIpInterface> findByIpAddress(java.lang.String ipAddress)
Description copied from interface:IpInterfaceDao
findByIpAddress
- Specified by:
findByIpAddress
in interfaceIpInterfaceDao
- Parameters:
ipAddress
- aString
object.- Returns:
- a
Collection
object.
-
findByNodeId
public java.util.List<OnmsIpInterface> findByNodeId(java.lang.Integer nodeId)
Description copied from interface:IpInterfaceDao
findByNodeId
- Specified by:
findByNodeId
in interfaceIpInterfaceDao
- Parameters:
nodeId
- aInteger
object.- Returns:
- a
Collection
object.
-
findByServiceType
public java.util.List<OnmsIpInterface> findByServiceType(java.lang.String svcName)
Description copied from interface:IpInterfaceDao
findByServiceType
- Specified by:
findByServiceType
in interfaceIpInterfaceDao
- Parameters:
svcName
- aString
object.- Returns:
- a
Collection
object.
-
findHierarchyByServiceType
public java.util.List<OnmsIpInterface> findHierarchyByServiceType(java.lang.String svcName)
Description copied from interface:IpInterfaceDao
findHierarchyByServiceType
- Specified by:
findHierarchyByServiceType
in interfaceIpInterfaceDao
- Parameters:
svcName
- aString
object.- Returns:
- a
Collection
object.
-
getInterfacesForNodes
public java.util.Map<java.net.InetAddress,java.lang.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(java.lang.Integer nodeId)
- Specified by:
findPrimaryInterfaceByNodeId
in interfaceIpInterfaceDao
-
-