public class HwEntityDaoHibernate extends AbstractDaoHibernate<OnmsHwEntity,Integer> implements HwEntityDao
m_criteriaConverter
Constructor and Description |
---|
HwEntityDaoHibernate()
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
OnmsHwEntity |
findEntityByIndex(Integer nodeId,
Integer entPhysicalIndex)
Find entity by index.
|
OnmsHwEntity |
findEntityByName(Integer nodeId,
String entPhysicalName)
Find entity by name.
|
OnmsHwEntity |
findRootByNodeId(Integer nodeId)
Find root by node id.
|
String |
getAttributeValue(Integer nodeId,
Integer entPhysicalIndex,
String attributeName)
Gets the attribute value.
|
String |
getAttributeValue(Integer nodeId,
String nameSource,
String attributeName)
Gets the attribute value.
|
buildHibernateCallback, bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, find, find, findAll, findMatching, findMatching, findObjects, findUnique, flush, get, initDao, initialize, load, lock, merge, queryInt, queryInt, save, saveOrUpdate, update
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
public OnmsHwEntity findRootByNodeId(Integer nodeId)
HwEntityDao
findRootByNodeId
in interface HwEntityDao
nodeId
- the node idpublic OnmsHwEntity findEntityByIndex(Integer nodeId, Integer entPhysicalIndex)
HwEntityDao
findEntityByIndex
in interface HwEntityDao
nodeId
- the node identPhysicalIndex
- the entity physical indexpublic OnmsHwEntity findEntityByName(Integer nodeId, String entPhysicalName)
HwEntityDao
findEntityByName
in interface HwEntityDao
nodeId
- the node identPhysicalName
- the entity physical namepublic String getAttributeValue(Integer nodeId, Integer entPhysicalIndex, String attributeName)
HwEntityDao
getAttributeValue
in interface HwEntityDao
nodeId
- the node identPhysicalIndex
- the entity physical indexattributeName
- the name of the desired attributepublic String getAttributeValue(Integer nodeId, String nameSource, String attributeName)
HwEntityDao
getAttributeValue
in interface HwEntityDao
nodeId
- the node idnameSource
- either the value of entPhysicalName or a regular expression to be applied over the entPhysicalName (should start with '~')attributeName
- the name of the desired attributeCopyright © 2021. All rights reserved.