Package org.opennms.netmgt.dao.mock
Class MockAlarmAssociationDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.AbstractMockDao<AlarmAssociation,Integer>
-
- org.opennms.netmgt.dao.mock.MockAlarmAssociationDao
-
- All Implemented Interfaces:
AlarmAssociationDao,LegacyOnmsDao<AlarmAssociation,Integer>,OnmsDao<AlarmAssociation,Integer>,org.springframework.beans.factory.InitializingBean
public class MockAlarmAssociationDao extends AbstractMockDao<AlarmAssociation,Integer> implements AlarmAssociationDao
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
AbstractMockDao.NullEventForwarder
-
-
Constructor Summary
Constructors Constructor Description MockAlarmAssociationDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgenerateId(AlarmAssociation ass)List<AlarmAssociation>getAssociationsForSituation(int situationId)protected IntegergetId(AlarmAssociation ass)Integersave(AlarmAssociation ass)voidupdate(AlarmAssociation ass)-
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, saveOrUpdate
-
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, saveOrUpdate
-
-
-
-
Method Detail
-
save
public Integer save(AlarmAssociation ass)
- Specified by:
savein interfaceOnmsDao<AlarmAssociation,Integer>- Overrides:
savein classAbstractMockDao<AlarmAssociation,Integer>
-
update
public void update(AlarmAssociation ass)
- Specified by:
updatein interfaceOnmsDao<AlarmAssociation,Integer>- Overrides:
updatein classAbstractMockDao<AlarmAssociation,Integer>
-
generateId
protected void generateId(AlarmAssociation ass)
- Specified by:
generateIdin classAbstractMockDao<AlarmAssociation,Integer>
-
getId
protected Integer getId(AlarmAssociation ass)
- Specified by:
getIdin classAbstractMockDao<AlarmAssociation,Integer>
-
getAssociationsForSituation
public List<AlarmAssociation> getAssociationsForSituation(int situationId)
- Specified by:
getAssociationsForSituationin interfaceAlarmAssociationDao
-
-