org.opennms.netmgt.dao.hibernate
Class IpInterfaceDaoHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<OnmsIpInterface,Integer>
              extended by org.opennms.netmgt.dao.hibernate.IpInterfaceDaoHibernate
All Implemented Interfaces:
IpInterfaceDao, OnmsDao<OnmsIpInterface,Integer>, org.springframework.beans.factory.InitializingBean

public class IpInterfaceDaoHibernate
extends AbstractDaoHibernate<OnmsIpInterface,Integer>
implements IpInterfaceDao

Author:
david

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
IpInterfaceDaoHibernate()
           
 
Method Summary
 OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource, String foreignId, String ipAddress)
           
 Collection<OnmsIpInterface> findByIpAddress(String ipAddress)
           
 OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
           
 Collection<OnmsIpInterface> findByServiceType(String svcName)
           
 Collection<OnmsIpInterface> findHierarchyByServiceType(String svcName)
           
 OnmsIpInterface get(OnmsNode node, String ipAddress)
           
 Map<String,Integer> getInterfacesForNodes()
          Returns a map of all IP to node ID mappings in the database.
 
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
bulkDelete, clear, countAll, countMatching, delete, deleteAll, evict, find, find, findAll, findMatching, findMatchingObjects, findObjects, findUnique, findUnique, findUnique, flush, get, initialize, load, merge, queryInt, queryInt, save, saveOrUpdate, update
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
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.OnmsDao
clear, countAll, countMatching, delete, findAll, findMatching, flush, get, initialize, load, save, saveOrUpdate, update
 

Constructor Detail

IpInterfaceDaoHibernate

public IpInterfaceDaoHibernate()
Method Detail

get

public OnmsIpInterface get(OnmsNode node,
                           String ipAddress)
Specified by:
get in interface IpInterfaceDao

findByIpAddress

public Collection<OnmsIpInterface> findByIpAddress(String ipAddress)
Specified by:
findByIpAddress in interface IpInterfaceDao

findByNodeIdAndIpAddress

public OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId,
                                                String ipAddress)
Specified by:
findByNodeIdAndIpAddress in interface IpInterfaceDao

findByForeignKeyAndIpAddress

public OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource,
                                                    String foreignId,
                                                    String ipAddress)
Specified by:
findByForeignKeyAndIpAddress in interface IpInterfaceDao

findByServiceType

public Collection<OnmsIpInterface> findByServiceType(String svcName)
Specified by:
findByServiceType in interface IpInterfaceDao

findHierarchyByServiceType

public Collection<OnmsIpInterface> findHierarchyByServiceType(String svcName)
Specified by:
findHierarchyByServiceType in interface IpInterfaceDao

getInterfacesForNodes

public Map<String,Integer> getInterfacesForNodes()
Description copied from interface: IpInterfaceDao
Returns a map of all IP to node ID mappings in the database.

Specified by:
getInterfacesForNodes in interface IpInterfaceDao


Copyright © 2009. All Rights Reserved.