public class NodeDaoHibernate extends AbstractDaoHibernate<OnmsNode,Integer> implements NodeDao
NodeDaoHibernate class.
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeDaoHibernate.SimpleSurveillanceStatus |
m_criteriaConverter| Constructor and Description |
|---|
NodeDaoHibernate()
Constructor for NodeDaoHibernate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
deleteObsoleteInterfaces
|
List<OnmsNode> |
findAll()
findAll
|
List<OnmsNode> |
findAllByCategoryList(Collection<OnmsCategory> categories)
findAllByCategoryList
|
List<OnmsNode> |
findAllByCategoryLists(Collection<OnmsCategory> rowCategories,
Collection<OnmsCategory> columnCategories)
findAllByCategoryLists
|
List<OnmsNode> |
findAllByVarCharAssetColumn(String columnName,
String columnValue)
findAllByVarCharAssetColumn
|
List<OnmsNode> |
findAllByVarCharAssetColumnCategoryList(String columnName,
String columnValue,
Collection<OnmsCategory> categories)
findAllByVarCharAssetColumnCategoryList
|
List<OnmsNode> |
findAllHavingEgressFlows() |
List<OnmsNode> |
findAllHavingFlows() |
List<OnmsNode> |
findAllHavingIngressFlows() |
List<OnmsNode> |
findAllProvisionedNodes()
findAllProvisionedNodes
|
List<OnmsNode> |
findByCategory(OnmsCategory category)
findByCategory
|
List<OnmsNode> |
findByForeignId(String foreignId)
findByForeignId
|
OnmsNode |
findByForeignId(String foreignSource,
String foreignId)
findByForeignId
|
List<OnmsNode> |
findByForeignIdForLocation(String foreignId,
String location)
findByForeignIdForLocation
|
List<OnmsNode> |
findByForeignSource(String foreignSource)
findByForeignSource
|
List<OnmsNode> |
findByForeignSourceAndIpAddress(String foreignSource,
String ipAddress)
findByForeignSourceAndIpAddress
|
List<OnmsNode> |
findByIpAddressAndService(InetAddress ipAddress,
String serviceName) |
List<OnmsNode> |
findByLabel(String label)
findByLabel
|
List<OnmsNode> |
findByLabelForLocation(String label,
String location)
findByLabel
|
List<OnmsNode> |
findNodeWithMetaData(String context,
String key,
String value) |
List<OnmsIpInterface> |
findObsoleteIpInterfaces(Integer nodeId,
Date scanStamp)
findObsoleteIpInterfaces
|
SurveillanceStatus |
findSurveillanceStatusByCategoryLists(Collection<OnmsCategory> rowCategories,
Collection<OnmsCategory> columnCategories) |
OnmsNode |
get(String lookupCriteria)
Get a node based on it's node ID or foreignSource:foreignId
|
Map<Integer,String> |
getAllLabelsById()
Retrieves all of node id/label tuples.
|
OnmsNode |
getDefaultFocusPoint() |
Set<String> |
getForeignIdsPerForeignSource(String foreignSource)
getForeignIdsPerForeignSource
|
Map<String,Set<String>> |
getForeignIdsPerForeignSourceMap()
getForeignIdsPerForeignSourceMap
|
Map<String,Integer> |
getForeignIdToNodeIdMap(String foreignSource)
getForeignIdToNodeIdMap
|
OnmsNode |
getHierarchy(Integer id)
getHierarchy
|
String |
getLabelForId(Integer id)
Test the ability to simply retrieve a String object (node label) without
having to return a bulky Node object.
|
String |
getLocationForId(Integer id)
Light weight call to simply get the node location without loading the entire node.
|
Integer |
getNextNodeId(Integer nodeId) |
int |
getNodeCountForForeignSource(String foreignSource)
getNodeCountForForeignSource
|
Collection<Integer> |
getNodeIds()
getNodeIds
|
Map<String,Long> |
getNumberOfNodesBySysOid()
Retrieves the number of nodes for each sysOid.
|
Integer |
getPreviousNodeId(Integer nodeId) |
void |
markHavingFlows(Collection<Integer> ingressIds,
Collection<Integer> egressIds) |
void |
updateNodeScanStamp(Integer nodeId,
Date scanStamp)
updateNodeScanStamp
|
buildHibernateCallback, bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, find, find, findMatching, findMatching, findObjects, findUnique, flush, get, initDao, initialize, load, lock, merge, queryInt, queryInt, save, saveOrUpdate, updatecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountMatching, findMatchingclear, countAll, countMatching, delete, delete, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, updatepublic OnmsNode get(String lookupCriteria)
public String getLabelForId(Integer id)
getLabelForId in interface NodeDaopublic String getLocationForId(Integer id)
NodeDaogetLocationForId in interface NodeDaopublic Map<Integer,String> getAllLabelsById()
getAllLabelsById in interface NodeDaoMap containing all node ids and their associated labels.public Map<String,Set<String>> getForeignIdsPerForeignSourceMap()
getForeignIdsPerForeignSourceMap
getForeignIdsPerForeignSourceMap in interface NodeDaoMap object.public Set<String> getForeignIdsPerForeignSource(String foreignSource)
getForeignIdsPerForeignSource
getForeignIdsPerForeignSource in interface NodeDaoforeignSource - a String object.Set object.public List<OnmsNode> findByForeignId(String foreignId)
findByForeignId
findByForeignId in interface NodeDaoforeignId - a String object.List object.public List<OnmsNode> findByForeignIdForLocation(String foreignId, String location)
findByForeignIdForLocation
findByForeignIdForLocation in interface NodeDaoforeignId - a String object.location - a String object.List 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> findByLabelForLocation(String label, String location)
findByLabel
findByLabelForLocation in interface NodeDaolabel - a String object.location - 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> findAllProvisionedNodes()
findAllProvisionedNodes
findAllProvisionedNodes in interface NodeDaoList object.public List<OnmsNode> findByIpAddressAndService(InetAddress ipAddress, String serviceName)
findByIpAddressAndService in interface NodeDaopublic 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 Map<String,Long> getNumberOfNodesBySysOid()
getNumberOfNodesBySysOid in interface NodeDaoMap containing the number of nodes for each sysOidpublic Integer getNextNodeId(Integer nodeId)
getNextNodeId in interface NodeDaopublic Integer getPreviousNodeId(Integer nodeId)
getPreviousNodeId in interface NodeDaopublic void markHavingFlows(Collection<Integer> ingressIds, Collection<Integer> egressIds)
markHavingFlows in interface NodeDaopublic List<OnmsNode> findAllHavingFlows()
findAllHavingFlows in interface NodeDaopublic List<OnmsNode> findAllHavingIngressFlows()
findAllHavingIngressFlows in interface NodeDaopublic List<OnmsNode> findAllHavingEgressFlows()
findAllHavingEgressFlows in interface NodeDaopublic OnmsNode getDefaultFocusPoint()
getDefaultFocusPoint in interface NodeDaoCopyright © 2022. All rights reserved.