org.opennms.netmgt.dao
Interface NodeDao

All Superinterfaces:
OnmsDao<OnmsNode,Integer>
All Known Implementing Classes:
NodeDaoHibernate

@Repository
public interface NodeDao
extends OnmsDao<OnmsNode,Integer>


Method Summary
 void deleteObsoleteInterfaces(Integer nodeId, Date scanStamp)
           
 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)
           
 List<OnmsNode> findAllProvisionedNodes()
           
 Collection<OnmsNode> findByCategory(OnmsCategory category)
           
 OnmsNode findByForeignId(String foreignSource, String foreignId)
           
 List<OnmsNode> findByForeignSource(String foreignSource)
           
 Collection<OnmsNode> findByLabel(String label)
           
 Collection<OnmsNode> findNodes(OnmsDistPoller dp)
           
 List<OnmsIpInterface> findObsoleteIpInterfaces(Integer nodeId, Date scanStamp)
           
 OnmsNode get(String lookupCriteria)
          Get a node based on it's node ID or foreignSource:foreignId
 Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
           
 OnmsNode getHierarchy(Integer id)
           
 int getNodeCountForForeignSource(String groupName)
           
 void updateNodeScanStamp(Integer nodeId, Date scanStamp)
           
 
Methods inherited from interface org.opennms.netmgt.dao.OnmsDao
clear, countAll, countMatching, delete, findMatching, flush, get, initialize, load, save, saveOrUpdate, update
 

Method Detail

get

OnmsNode get(String lookupCriteria)
Get a node based on it's node ID or foreignSource:foreignId

Parameters:
lookupCriteria - the criteria, either the node ID, or a colon-separated string of foreignSource:foreignId
Returns:
the node

findByLabel

Collection<OnmsNode> findByLabel(String label)

findNodes

Collection<OnmsNode> findNodes(OnmsDistPoller dp)

getHierarchy

OnmsNode getHierarchy(Integer id)

getForeignIdToNodeIdMap

Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)

findAllByVarCharAssetColumn

Collection<OnmsNode> findAllByVarCharAssetColumn(String columnName,
                                                 String columnValue)

findAllByVarCharAssetColumnCategoryList

Collection<OnmsNode> findAllByVarCharAssetColumnCategoryList(String columnName,
                                                             String columnValue,
                                                             Collection<OnmsCategory> categories)

findByCategory

Collection<OnmsNode> findByCategory(OnmsCategory category)

findAllByCategoryList

Collection<OnmsNode> findAllByCategoryList(Collection<OnmsCategory> categories)

findAllByCategoryLists

Collection<OnmsNode> findAllByCategoryLists(Collection<OnmsCategory> rowCatNames,
                                            Collection<OnmsCategory> colCatNames)

findAll

List<OnmsNode> findAll()
Returns a list of nodes ordered by label.

Specified by:
findAll in interface OnmsDao<OnmsNode,Integer>

findByForeignSource

List<OnmsNode> findByForeignSource(String foreignSource)

findByForeignId

OnmsNode findByForeignId(String foreignSource,
                         String foreignId)

getNodeCountForForeignSource

int getNodeCountForForeignSource(String groupName)

findAllProvisionedNodes

List<OnmsNode> findAllProvisionedNodes()

findObsoleteIpInterfaces

List<OnmsIpInterface> findObsoleteIpInterfaces(Integer nodeId,
                                               Date scanStamp)

deleteObsoleteInterfaces

void deleteObsoleteInterfaces(Integer nodeId,
                              Date scanStamp)

updateNodeScanStamp

void updateNodeScanStamp(Integer nodeId,
                         Date scanStamp)


Copyright © 2009. All Rights Reserved.