Class HwEntityDaoHibernate

    • Constructor Detail

      • HwEntityDaoHibernate

        public HwEntityDaoHibernate()
        The Constructor.
    • Method Detail

      • findRootByNodeId

        public OnmsHwEntity findRootByNodeId​(java.lang.Integer nodeId)
        Description copied from interface: HwEntityDao
        Find root by node id.
        Specified by:
        findRootByNodeId in interface HwEntityDao
        Parameters:
        nodeId - the node id
        Returns:
        the OpenNMS hardware entity
      • findEntityByIndex

        public OnmsHwEntity findEntityByIndex​(java.lang.Integer nodeId,
                                              java.lang.Integer entPhysicalIndex)
        Description copied from interface: HwEntityDao
        Find entity by index.
        Specified by:
        findEntityByIndex in interface HwEntityDao
        Parameters:
        nodeId - the node id
        entPhysicalIndex - the entity physical index
        Returns:
        the OpenNMS hardware entity
      • findEntityByName

        public OnmsHwEntity findEntityByName​(java.lang.Integer nodeId,
                                             java.lang.String entPhysicalName)
        Description copied from interface: HwEntityDao
        Find entity by name.
        Specified by:
        findEntityByName in interface HwEntityDao
        Parameters:
        nodeId - the node id
        entPhysicalName - the entity physical name
        Returns:
        the OpenNMS hardware entity
      • getAttributeValue

        public java.lang.String getAttributeValue​(java.lang.Integer nodeId,
                                                  java.lang.Integer entPhysicalIndex,
                                                  java.lang.String attributeName)
        Description copied from interface: HwEntityDao
        Gets the attribute value.
        Specified by:
        getAttributeValue in interface HwEntityDao
        Parameters:
        nodeId - the node id
        entPhysicalIndex - the entity physical index
        attributeName - the name of the desired attribute
        Returns:
        the attribute value
      • getAttributeValue

        public java.lang.String getAttributeValue​(java.lang.Integer nodeId,
                                                  java.lang.String nameSource,
                                                  java.lang.String attributeName)
        Description copied from interface: HwEntityDao
        Gets the attribute value.
        Specified by:
        getAttributeValue in interface HwEntityDao
        Parameters:
        nodeId - the node id
        nameSource - either the value of entPhysicalName or a regular expression to be applied over the entPhysicalName (should start with '~')
        attributeName - the name of the desired attribute
        Returns:
        the attribute value