|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<OnmsNode,Integer>
org.opennms.netmgt.dao.hibernate.NodeDaoHibernate
public class NodeDaoHibernate
NodeDaoHibernate class.
| Nested Class Summary | |
|---|---|
static class |
NodeDaoHibernate.SimpleSurveillanceStatus
|
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
NodeDaoHibernate()
Constructor for NodeDaoHibernate. |
|
| Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate |
|---|
bulkDelete, clear, countAll, countMatching, delete, deleteAll, evict, find, find, findMatching, findMatchingObjects, findObjects, findUnique, findUnique, 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 org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet |
| 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, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update |
| Constructor Detail |
|---|
public NodeDaoHibernate()
Constructor for NodeDaoHibernate.
| Method Detail |
|---|
public OnmsNode get(String lookupCriteria)
get in interface NodeDaolookupCriteria - the criteria, either the node ID, or a colon-separated string of foreignSource:foreignId
public List<OnmsNode> findNodes(OnmsDistPoller distPoller)
findNodes
findNodes in interface NodeDaodistPoller - a OnmsDistPoller object.
Collection object.public OnmsNode getHierarchy(Integer id)
getHierarchy
getHierarchy in interface NodeDaoid - a Integer object.
OnmsNode object.public List<OnmsNode> findByLabel(String label)
findByLabel
findByLabel in interface NodeDaolabel - a String object.
Collection object.
public List<OnmsNode> findAllByVarCharAssetColumn(String columnName,
String columnValue)
findAllByVarCharAssetColumn
findAllByVarCharAssetColumn in interface NodeDaocolumnName - a String object.columnValue - a String object.
Collection object.
public List<OnmsNode> findAllByVarCharAssetColumnCategoryList(String columnName,
String columnValue,
Collection<OnmsCategory> categories)
findAllByVarCharAssetColumnCategoryList
findAllByVarCharAssetColumnCategoryList in interface NodeDaocolumnName - a String object.columnValue - a String object.categories - a Collection object.
Collection object.public List<OnmsNode> findByCategory(OnmsCategory category)
findByCategory
findByCategory in interface NodeDaocategory - a OnmsCategory object.
Collection object.public List<OnmsNode> findAllByCategoryList(Collection<OnmsCategory> categories)
findAllByCategoryList
findAllByCategoryList in interface NodeDaocategories - a Collection object.
Collection object.
public List<OnmsNode> findAllByCategoryLists(Collection<OnmsCategory> rowCategories,
Collection<OnmsCategory> columnCategories)
findAllByCategoryLists
findAllByCategoryLists in interface NodeDaorowCategories - a Collection object.columnCategories - a Collection object.
Collection object.
public SurveillanceStatus findSurveillanceStatusByCategoryLists(Collection<OnmsCategory> rowCategories,
Collection<OnmsCategory> columnCategories)
findSurveillanceStatusByCategoryLists in interface NodeDaopublic Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
getForeignIdToNodeIdMap
getForeignIdToNodeIdMap in interface NodeDaoforeignSource - a String object.
Map object.public List<OnmsNode> findByForeignSource(String foreignSource)
findByForeignSource
findByForeignSource in interface NodeDaoforeignSource - a String object.
List object.
public OnmsNode findByForeignId(String foreignSource,
String foreignId)
findByForeignId
findByForeignId in interface NodeDaoforeignSource - a String object.foreignId - a String object.
OnmsNode object.
public List<OnmsNode> findByForeignSourceAndIpAddress(String foreignSource,
String ipAddress)
findByForeignSourceAndIpAddress
findByForeignSourceAndIpAddress in interface NodeDaoforeignSource - a String object.ipAddress - a String object.
List object.public int getNodeCountForForeignSource(String foreignSource)
getNodeCountForForeignSource
getNodeCountForForeignSource in interface NodeDaoforeignSource - a String object.
public List<OnmsNode> findAll()
findAll
findAll in interface NodeDaofindAll in interface OnmsDao<OnmsNode,Integer>findAll in class AbstractDaoHibernate<OnmsNode,Integer>List object.public List<OnmsNode> findAllProvisionedNodes()
findAllProvisionedNodes
findAllProvisionedNodes in interface NodeDaoList object.
public List<OnmsIpInterface> findObsoleteIpInterfaces(Integer nodeId,
Date scanStamp)
findObsoleteIpInterfaces
findObsoleteIpInterfaces in interface NodeDaonodeId - a Integer object.scanStamp - a Date object.
List object.
public void deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
deleteObsoleteInterfaces
deleteObsoleteInterfaces in interface NodeDaonodeId - a Integer object.scanStamp - a Date object.
public void updateNodeScanStamp(Integer nodeId,
Date scanStamp)
updateNodeScanStamp
updateNodeScanStamp in interface NodeDaonodeId - a Integer object.scanStamp - a Date object.public Collection<Integer> getNodeIds()
getNodeIds
getNodeIds in interface NodeDaoCollection object.public Integer getNextNodeId(Integer nodeId)
getNextNodeId in interface NodeDaopublic Integer getPreviousNodeId(Integer nodeId)
getPreviousNodeId in interface NodeDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||