Package org.opennms.netmgt.dao.mock
Class MockHwEntityAttributeTypeDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.AbstractMockDao<HwEntityAttributeType,Integer>
-
- org.opennms.netmgt.dao.mock.MockHwEntityAttributeTypeDao
-
- All Implemented Interfaces:
HwEntityAttributeTypeDao
,LegacyOnmsDao<HwEntityAttributeType,Integer>
,OnmsDao<HwEntityAttributeType,Integer>
,org.springframework.beans.factory.InitializingBean
public class MockHwEntityAttributeTypeDao extends AbstractMockDao<HwEntityAttributeType,Integer> implements HwEntityAttributeTypeDao
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
AbstractMockDao.NullEventForwarder
-
-
Constructor Summary
Constructors Constructor Description MockHwEntityAttributeTypeDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HwEntityAttributeType
findTypeByName(String name)
Find type by name.HwEntityAttributeType
findTypeByOid(String oid)
Find type by OID.protected void
generateId(HwEntityAttributeType outage)
HwEntityAttributeType
get(Integer id)
protected Integer
getId(HwEntityAttributeType outage)
HwEntityAttributeType
load(Integer id)
-
Methods inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, getAlarmAssociationDao, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, lock, save, saveOrUpdate, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, initialize, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
generateId
protected void generateId(HwEntityAttributeType outage)
- Specified by:
generateId
in classAbstractMockDao<HwEntityAttributeType,Integer>
-
getId
protected Integer getId(HwEntityAttributeType outage)
- Specified by:
getId
in classAbstractMockDao<HwEntityAttributeType,Integer>
-
get
public HwEntityAttributeType get(Integer id)
- Specified by:
get
in interfaceOnmsDao<HwEntityAttributeType,Integer>
- Overrides:
get
in classAbstractMockDao<HwEntityAttributeType,Integer>
-
load
public HwEntityAttributeType load(Integer id)
- Specified by:
load
in interfaceOnmsDao<HwEntityAttributeType,Integer>
- Overrides:
load
in classAbstractMockDao<HwEntityAttributeType,Integer>
-
findTypeByName
public HwEntityAttributeType findTypeByName(String name)
Description copied from interface:HwEntityAttributeTypeDao
Find type by name.- Specified by:
findTypeByName
in interfaceHwEntityAttributeTypeDao
- Parameters:
name
- the name- Returns:
- the hardware entity attribute type
-
findTypeByOid
public HwEntityAttributeType findTypeByOid(String oid)
Description copied from interface:HwEntityAttributeTypeDao
Find type by OID.- Specified by:
findTypeByOid
in interfaceHwEntityAttributeTypeDao
- Parameters:
oid
- the OID- Returns:
- the hardware entity attribute type
-
-