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, updatecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountMatching, findMatchingclear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, updatepublic IpInterfaceDaoHibernate()
Constructor for IpInterfaceDaoHibernate.
public OnmsIpInterface get(OnmsNode node, String ipAddress)
get
get in interface IpInterfaceDaonode - a OnmsNode object.ipAddress - a String object.OnmsIpInterface object.public List<OnmsIpInterface> findByIpAddress(String ipAddress)
findByIpAddress
findByIpAddress in interface IpInterfaceDaoipAddress - a String object.Collection object.public List<OnmsIpInterface> findByNodeId(Integer nodeId)
findByNodeId
findByNodeId in interface IpInterfaceDaonodeId - a Integer object.Collection object.public OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
findByNodeIdAndIpAddress
findByNodeIdAndIpAddress in interface IpInterfaceDaonodeId - a Integer object.ipAddress - a String object.OnmsIpInterface object.public OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource, String foreignId, String ipAddress)
findByForeignKeyAndIpAddress
findByForeignKeyAndIpAddress in interface IpInterfaceDaoforeignSource - a String object.foreignId - a String object.ipAddress - a String object.OnmsIpInterface object.public List<OnmsIpInterface> findByServiceType(String svcName)
findByServiceType
findByServiceType in interface IpInterfaceDaosvcName - a String object.Collection object.public List<OnmsIpInterface> findHierarchyByServiceType(String svcName)
findHierarchyByServiceType
findHierarchyByServiceType in interface IpInterfaceDaosvcName - a String object.Collection object.public Map<InetAddress,Integer> getInterfacesForNodes()
getInterfacesForNodes in interface IpInterfaceDaoMap object.public boolean addressExistsWithForeignSource(String ipAddress, String foreignSource)
addressExistsWithForeignSource
public OnmsIpInterface findPrimaryInterfaceByNodeId(Integer nodeId)
OnmsNode.getPrimaryInterface().findPrimaryInterfaceByNodeId in interface IpInterfaceDaopublic List<OnmsIpInterface> findInterfacesWithMetadata(String context, String key, String value)
findInterfacesWithMetadata in interface IpInterfaceDaoCopyright © 2022. All rights reserved.