Package org.opennms.netmgt.dao.mock
Class MockAssetRecordDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.AbstractMockDao<OnmsAssetRecord,Integer>
-
- org.opennms.netmgt.dao.mock.MockAssetRecordDao
-
- All Implemented Interfaces:
AssetRecordDao
,LegacyOnmsDao<OnmsAssetRecord,Integer>
,OnmsDao<OnmsAssetRecord,Integer>
,org.springframework.beans.factory.InitializingBean
public class MockAssetRecordDao extends AbstractMockDao<OnmsAssetRecord,Integer> implements AssetRecordDao
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
AbstractMockDao.NullEventForwarder
-
-
Constructor Summary
Constructors Constructor Description MockAssetRecordDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsAssetRecord
findByNodeId(Integer id)
Map<String,Integer>
findImportedAssetNumbersToNodeIds(String foreignSource)
protected void
generateId(OnmsAssetRecord asset)
List<OnmsAssetRecord>
getDistinctProperties()
protected Integer
getId(OnmsAssetRecord asset)
-
Methods inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmAssociationDao, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, 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, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
generateId
protected void generateId(OnmsAssetRecord asset)
- Specified by:
generateId
in classAbstractMockDao<OnmsAssetRecord,Integer>
-
getId
protected Integer getId(OnmsAssetRecord asset)
- Specified by:
getId
in classAbstractMockDao<OnmsAssetRecord,Integer>
-
findByNodeId
public OnmsAssetRecord findByNodeId(Integer id)
- Specified by:
findByNodeId
in interfaceAssetRecordDao
-
findImportedAssetNumbersToNodeIds
public Map<String,Integer> findImportedAssetNumbersToNodeIds(String foreignSource)
- Specified by:
findImportedAssetNumbersToNodeIds
in interfaceAssetRecordDao
-
getDistinctProperties
public List<OnmsAssetRecord> getDistinctProperties()
- Specified by:
getDistinctProperties
in interfaceAssetRecordDao
-
-