Class OspfElementDaoHibernate
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<OspfElement,Integer>
-
- org.opennms.netmgt.enlinkd.persistence.impl.OspfElementDaoHibernate
-
- All Implemented Interfaces:
OnmsDao<OspfElement,Integer>
,OspfElementDao
,org.springframework.beans.factory.InitializingBean
public class OspfElementDaoHibernate extends AbstractDaoHibernate<OspfElement,Integer> implements OspfElementDao
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
m_criteriaConverter
-
-
Constructor Summary
Constructors Constructor Description OspfElementDaoHibernate()
Constructor for OspfElementDaoHibernate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteByNodeId(Integer nodeId)
List<OspfElement>
findAllByRouterId(InetAddress routerId)
OspfElement
findByNodeId(Integer id)
findByNodeIdOspfElement
findByRouterId(InetAddress routerId)
List<OspfElement>
findByRouterIdOfRelatedOspfLink(int nodeId)
Returns all OspfElements that have an ospfRouterId that matches an ospfRemRouterId of an OspfLink related to the given node.-
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.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
findByNodeId
public OspfElement findByNodeId(Integer id)
findByNodeId
- Specified by:
findByNodeId
in interfaceOspfElementDao
- Parameters:
id
- aInteger
object.- Returns:
- a
OspfElement
object.
-
findByRouterId
public OspfElement findByRouterId(InetAddress routerId)
- Specified by:
findByRouterId
in interfaceOspfElementDao
-
findAllByRouterId
public List<OspfElement> findAllByRouterId(InetAddress routerId)
- Specified by:
findAllByRouterId
in interfaceOspfElementDao
-
findByRouterIdOfRelatedOspfLink
public List<OspfElement> findByRouterIdOfRelatedOspfLink(int nodeId)
Description copied from interface:OspfElementDao
Returns all OspfElements that have an ospfRouterId that matches an ospfRemRouterId of an OspfLink related to the given node. Used to retrieve all OspfElements that need to be accessed when finding Ospf links of a node.- Specified by:
findByRouterIdOfRelatedOspfLink
in interfaceOspfElementDao
-
deleteByNodeId
public void deleteByNodeId(Integer nodeId)
- Specified by:
deleteByNodeId
in interfaceOspfElementDao
-
-