org.opennms.netmgt.dao
Interface NodeDao
- All Superinterfaces:
- OnmsDao<OnmsNode,Integer>
- All Known Implementing Classes:
- NodeDaoHibernate
@Repository
public interface NodeDao
- extends OnmsDao<OnmsNode,Integer>
| Methods inherited from interface org.opennms.netmgt.dao.OnmsDao |
clear, countAll, countMatching, delete, findMatching, flush, get, initialize, load, save, saveOrUpdate, update |
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.