Package org.opennms.netmgt.dao.hibernate
Class SnmpInterfaceDaoHibernate
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<OnmsSnmpInterface,Integer>
-
- org.opennms.netmgt.dao.hibernate.SnmpInterfaceDaoHibernate
-
- All Implemented Interfaces:
LegacyOnmsDao<OnmsSnmpInterface,Integer>
,OnmsDao<OnmsSnmpInterface,Integer>
,SnmpInterfaceDao
,org.springframework.beans.factory.InitializingBean
public class SnmpInterfaceDaoHibernate extends AbstractDaoHibernate<OnmsSnmpInterface,Integer> implements SnmpInterfaceDao
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
m_criteriaConverter
-
-
Constructor Summary
Constructors Constructor Description SnmpInterfaceDaoHibernate()
Constructor for SnmpInterfaceDaoHibernate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OnmsSnmpInterface>
findAllHavingEgressFlows(Integer nodeId)
List<OnmsSnmpInterface>
findAllHavingFlows(Integer nodeId)
List<OnmsSnmpInterface>
findAllHavingIngressFlows(Integer nodeId)
OnmsSnmpInterface
findByForeignKeyAndIfIndex(String foreignSource, String foreignId, Integer ifIndex)
findByForeignKeyAndIfIndexOnmsSnmpInterface
findByNodeIdAndDescription(Integer nodeId, String description)
OnmsSnmpInterface
findByNodeIdAndIfIndex(Integer nodeId, Integer ifIndex)
findByNodeIdAndIfIndexvoid
markHavingEgressFlows(Integer nodeId, Collection<Integer> egressSnmpIfIndexes)
void
markHavingIngressFlows(Integer nodeId, Collection<Integer> ingressSnmpIfIndexes)
-
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
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
-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
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.LegacyOnmsDao
countMatching, findMatching
-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
findByNodeIdAndIfIndex
public OnmsSnmpInterface findByNodeIdAndIfIndex(Integer nodeId, Integer ifIndex)
Description copied from interface:SnmpInterfaceDao
findByNodeIdAndIfIndex
- Specified by:
findByNodeIdAndIfIndex
in interfaceSnmpInterfaceDao
- Parameters:
nodeId
- aInteger
object.ifIndex
- aInteger
object.- Returns:
- a
OnmsSnmpInterface
object.
-
findByForeignKeyAndIfIndex
public OnmsSnmpInterface findByForeignKeyAndIfIndex(String foreignSource, String foreignId, Integer ifIndex)
Description copied from interface:SnmpInterfaceDao
findByForeignKeyAndIfIndex
- Specified by:
findByForeignKeyAndIfIndex
in interfaceSnmpInterfaceDao
- Parameters:
foreignSource
- aString
object.foreignId
- aString
object.ifIndex
- aInteger
object.- Returns:
- a
OnmsSnmpInterface
object.
-
findByNodeIdAndDescription
public OnmsSnmpInterface findByNodeIdAndDescription(Integer nodeId, String description)
- Specified by:
findByNodeIdAndDescription
in interfaceSnmpInterfaceDao
-
markHavingIngressFlows
public void markHavingIngressFlows(Integer nodeId, Collection<Integer> ingressSnmpIfIndexes)
- Specified by:
markHavingIngressFlows
in interfaceSnmpInterfaceDao
-
markHavingEgressFlows
public void markHavingEgressFlows(Integer nodeId, Collection<Integer> egressSnmpIfIndexes)
- Specified by:
markHavingEgressFlows
in interfaceSnmpInterfaceDao
-
findAllHavingFlows
public List<OnmsSnmpInterface> findAllHavingFlows(Integer nodeId)
- Specified by:
findAllHavingFlows
in interfaceSnmpInterfaceDao
-
findAllHavingIngressFlows
public List<OnmsSnmpInterface> findAllHavingIngressFlows(Integer nodeId)
- Specified by:
findAllHavingIngressFlows
in interfaceSnmpInterfaceDao
-
findAllHavingEgressFlows
public List<OnmsSnmpInterface> findAllHavingEgressFlows(Integer nodeId)
- Specified by:
findAllHavingEgressFlows
in interfaceSnmpInterfaceDao
-
-