org.opennms.netmgt.dao.hibernate
Class NodeDaoHibernate
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<OnmsNode,Integer>
org.opennms.netmgt.dao.hibernate.NodeDaoHibernate
- All Implemented Interfaces:
- NodeDao, OnmsDao<OnmsNode,Integer>, org.springframework.beans.factory.InitializingBean
public class NodeDaoHibernate
- extends AbstractDaoHibernate<OnmsNode,Integer>
- implements NodeDao
- Author:
- Ted Kazmark, David Hustace
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| 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, 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, findMatching, flush, get, initialize, load, save, saveOrUpdate, update |
NodeDaoHibernate
public NodeDaoHibernate()
get
public OnmsNode get(String lookupCriteria)
- Description copied from interface:
NodeDao
- Get a node based on it's node ID or foreignSource:foreignId
- Specified by:
get in interface NodeDao
- Parameters:
lookupCriteria - the criteria, either the node ID, or a colon-separated string of foreignSource:foreignId
- Returns:
- the node
findNodes
public Collection<OnmsNode> findNodes(OnmsDistPoller distPoller)
- Specified by:
findNodes in interface NodeDao
getHierarchy
public OnmsNode getHierarchy(Integer id)
- Specified by:
getHierarchy in interface NodeDao
findByLabel
public Collection<OnmsNode> findByLabel(String label)
- Specified by:
findByLabel in interface NodeDao
findAllByVarCharAssetColumn
public Collection<OnmsNode> findAllByVarCharAssetColumn(String columnName,
String columnValue)
- Specified by:
findAllByVarCharAssetColumn in interface NodeDao
findAllByVarCharAssetColumnCategoryList
public Collection<OnmsNode> findAllByVarCharAssetColumnCategoryList(String columnName,
String columnValue,
Collection<OnmsCategory> categories)
- Specified by:
findAllByVarCharAssetColumnCategoryList in interface NodeDao
findByCategory
public Collection<OnmsNode> findByCategory(OnmsCategory category)
- Specified by:
findByCategory in interface NodeDao
findAllByCategoryList
public Collection<OnmsNode> findAllByCategoryList(Collection<OnmsCategory> categories)
- Specified by:
findAllByCategoryList in interface NodeDao
findAllByCategoryLists
public Collection<OnmsNode> findAllByCategoryLists(Collection<OnmsCategory> rowCatNames,
Collection<OnmsCategory> colCatNames)
- Specified by:
findAllByCategoryLists in interface NodeDao
getForeignIdToNodeIdMap
public Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
- Specified by:
getForeignIdToNodeIdMap in interface NodeDao
findByForeignSource
public List<OnmsNode> findByForeignSource(String foreignSource)
- Specified by:
findByForeignSource in interface NodeDao
findByForeignId
public OnmsNode findByForeignId(String foreignSource,
String foreignId)
- Specified by:
findByForeignId in interface NodeDao
getNodeCountForForeignSource
public int getNodeCountForForeignSource(String foreignSource)
- Specified by:
getNodeCountForForeignSource in interface NodeDao
findAll
public List<OnmsNode> findAll()
- Description copied from interface:
NodeDao
- Returns a list of nodes ordered by label.
- Specified by:
findAll in interface NodeDao- Specified by:
findAll in interface OnmsDao<OnmsNode,Integer>- Overrides:
findAll in class AbstractDaoHibernate<OnmsNode,Integer>
findAllProvisionedNodes
public List<OnmsNode> findAllProvisionedNodes()
- Specified by:
findAllProvisionedNodes in interface NodeDao
findObsoleteIpInterfaces
public List<OnmsIpInterface> findObsoleteIpInterfaces(Integer nodeId,
Date scanStamp)
- Specified by:
findObsoleteIpInterfaces in interface NodeDao
deleteObsoleteInterfaces
public void deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
- Specified by:
deleteObsoleteInterfaces in interface NodeDao
updateNodeScanStamp
public void updateNodeScanStamp(Integer nodeId,
Date scanStamp)
- Specified by:
updateNodeScanStamp in interface NodeDao
Copyright © 2009. All Rights Reserved.