Package org.opennms.netmgt.dao.mock
Class MockResourceReferenceDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.AbstractMockDao<ResourceReference,Integer>
-
- org.opennms.netmgt.dao.mock.MockResourceReferenceDao
-
- All Implemented Interfaces:
LegacyOnmsDao<ResourceReference,Integer>
,OnmsDao<ResourceReference,Integer>
,ResourceReferenceDao
,org.springframework.beans.factory.InitializingBean
public class MockResourceReferenceDao extends AbstractMockDao<ResourceReference,Integer> implements ResourceReferenceDao
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
AbstractMockDao.NullEventForwarder
-
-
Constructor Summary
Constructors Constructor Description MockResourceReferenceDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generateId(ResourceReference reference)
ResourceReference
getByResourceId(String resourceId)
getByResourceIdprotected Integer
getId(ResourceReference reference)
-
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
-
getByResourceId
public ResourceReference getByResourceId(String resourceId)
Description copied from interface:ResourceReferenceDao
getByResourceId
- Specified by:
getByResourceId
in interfaceResourceReferenceDao
- Parameters:
resourceId
- aString
object.- Returns:
- a
ResourceReference
object.
-
getId
protected Integer getId(ResourceReference reference)
- Specified by:
getId
in classAbstractMockDao<ResourceReference,Integer>
-
generateId
protected void generateId(ResourceReference reference)
- Specified by:
generateId
in classAbstractMockDao<ResourceReference,Integer>
-
-