org.opennms.netmgt.dao.hibernate
Class NodeDaoHibernate

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<OnmsNode,Integer>
              extended by 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

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
NodeDaoHibernate()
           
 
Method Summary
 List<OnmsNode> findAll()
          Returns a list of nodes ordered by label.
 Collection<OnmsNode> findAllByCategoryList(Collection<OnmsCategory> categories)
           
 Collection<OnmsNode> findAllByCategoryLists(Collection<OnmsCategory> rowCatNames, Collection<OnmsCategory> colCatNames)
           
 Collection<OnmsNode> findAllByVarCharAssetColumn(String columnName, String columnValue)
           
 Collection<OnmsNode> findAllByVarCharAssetColumnCategoryList(String columnName, String columnValue, Collection<OnmsCategory> categories)
           
 Collection<OnmsNode> findByCategory(OnmsCategory category)
           
 OnmsNode findByForeignId(String foreignSource, String foreignId)
           
 Collection<OnmsNode> findByLabel(String label)
           
 Collection<OnmsNode> findNodes(OnmsDistPoller distPoller)
           
 Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
           
 OnmsNode getHierarchy(Integer id)
           
 int getNodeCountForForeignSource(String foreignSource)
           
 
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
clear, countAll, delete, evict, find, find, findMatching, findObjects, 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, delete, findMatching, flush, get, initialize, load, save, saveOrUpdate, update
 

Constructor Detail

NodeDaoHibernate

public NodeDaoHibernate()
Method Detail

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

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>


Copyright © 2008. All Rights Reserved.