public class IpInterfaceDaoHibernate extends AbstractDaoHibernate<OnmsIpInterface,Integer> implements IpInterfaceDao
IpInterfaceDaoHibernate class.
m_criteriaConverter| Constructor and Description |
|---|
IpInterfaceDaoHibernate()
Constructor for IpInterfaceDaoHibernate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addressExistsWithForeignSource(String ipAddress,
String foreignSource)
addressExistsWithForeignSource
|
OnmsIpInterface |
findByForeignKeyAndIpAddress(String foreignSource,
String foreignId,
String ipAddress)
findByForeignKeyAndIpAddress
|
List<OnmsIpInterface> |
findByIpAddress(String ipAddress)
findByIpAddress
|
List<OnmsIpInterface> |
findByNodeId(Integer nodeId)
findByNodeId
|
OnmsIpInterface |
findByNodeIdAndIpAddress(Integer nodeId,
String ipAddress)
findByNodeIdAndIpAddress
|
List<OnmsIpInterface> |
findByServiceType(String svcName)
findByServiceType
|
List<OnmsIpInterface> |
findHierarchyByServiceType(String svcName)
findHierarchyByServiceType
|
OnmsIpInterface |
findPrimaryInterfaceByNodeId(Integer nodeId)
This function should be kept similar to
OnmsNode.getPrimaryInterface(). |
OnmsIpInterface |
get(OnmsNode node,
String ipAddress)
get
|
Map<InetAddress,Integer> |
getInterfacesForNodes()
TODO: This function should filter out deleted interfaces
|
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 IpInterfaceDaoCopyright © 2020. All rights reserved.