public class IpInterfaceDaoHibernate extends AbstractDaoHibernate<OnmsIpInterface,Integer> implements IpInterfaceDao
IpInterfaceDaoHibernate class.
m_criteriaConverter
Constructor and Description |
---|
IpInterfaceDaoHibernate()
Constructor for IpInterfaceDaoHibernate.
|
buildHibernateCallback, bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, find, find, findAll, findMatching, findMatching, findObjects, findUnique, flush, get, initDao, initialize, load, lock, merge, queryInt, queryInt, save, saveOrUpdate, update
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countMatching, findMatching
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
public IpInterfaceDaoHibernate()
Constructor for IpInterfaceDaoHibernate.
public OnmsIpInterface get(OnmsNode node, String ipAddress)
get
get
in interface IpInterfaceDao
node
- a OnmsNode
object.ipAddress
- a String
object.OnmsIpInterface
object.public List<OnmsIpInterface> findByIpAddress(String ipAddress)
findByIpAddress
findByIpAddress
in interface IpInterfaceDao
ipAddress
- a String
object.Collection
object.public List<OnmsIpInterface> findByNodeId(Integer nodeId)
findByNodeId
findByNodeId
in interface IpInterfaceDao
nodeId
- a Integer
object.Collection
object.public OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
findByNodeIdAndIpAddress
findByNodeIdAndIpAddress
in interface IpInterfaceDao
nodeId
- a Integer
object.ipAddress
- a String
object.OnmsIpInterface
object.public OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource, String foreignId, String ipAddress)
findByForeignKeyAndIpAddress
findByForeignKeyAndIpAddress
in interface IpInterfaceDao
foreignSource
- a String
object.foreignId
- a String
object.ipAddress
- a String
object.OnmsIpInterface
object.public List<OnmsIpInterface> findByServiceType(String svcName)
findByServiceType
findByServiceType
in interface IpInterfaceDao
svcName
- a String
object.Collection
object.public List<OnmsIpInterface> findHierarchyByServiceType(String svcName)
findHierarchyByServiceType
findHierarchyByServiceType
in interface IpInterfaceDao
svcName
- a String
object.Collection
object.public Map<InetAddress,Integer> getInterfacesForNodes()
getInterfacesForNodes
in interface IpInterfaceDao
Map
object.public boolean addressExistsWithForeignSource(String ipAddress, String foreignSource)
addressExistsWithForeignSource
public OnmsIpInterface findPrimaryInterfaceByNodeId(Integer nodeId)
OnmsNode.getPrimaryInterface()
.findPrimaryInterfaceByNodeId
in interface IpInterfaceDao
public List<OnmsIpInterface> findInterfacesWithMetadata(String context, String key, String value)
findInterfacesWithMetadata
in interface IpInterfaceDao
Copyright © 2021. All rights reserved.