Package org.opennms.netmgt.dao.mock
Class MockAlarmAssociationDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.AbstractMockDao<AlarmAssociation,java.lang.Integer>
-
- org.opennms.netmgt.dao.mock.MockAlarmAssociationDao
-
- All Implemented Interfaces:
AlarmAssociationDao
,LegacyOnmsDao<AlarmAssociation,java.lang.Integer>
,OnmsDao<AlarmAssociation,java.lang.Integer>
,org.springframework.beans.factory.InitializingBean
public class MockAlarmAssociationDao extends AbstractMockDao<AlarmAssociation,java.lang.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 void
generateId(AlarmAssociation ass)
java.util.List<AlarmAssociation>
getAssociationsForSituation(int situationId)
protected java.lang.Integer
getId(AlarmAssociation ass)
java.lang.Integer
save(AlarmAssociation ass)
void
update(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 java.lang.Integer save(AlarmAssociation ass)
- Specified by:
save
in interfaceOnmsDao<AlarmAssociation,java.lang.Integer>
- Overrides:
save
in classAbstractMockDao<AlarmAssociation,java.lang.Integer>
-
update
public void update(AlarmAssociation ass)
- Specified by:
update
in interfaceOnmsDao<AlarmAssociation,java.lang.Integer>
- Overrides:
update
in classAbstractMockDao<AlarmAssociation,java.lang.Integer>
-
generateId
protected void generateId(AlarmAssociation ass)
- Specified by:
generateId
in classAbstractMockDao<AlarmAssociation,java.lang.Integer>
-
getId
protected java.lang.Integer getId(AlarmAssociation ass)
- Specified by:
getId
in classAbstractMockDao<AlarmAssociation,java.lang.Integer>
-
getAssociationsForSituation
public java.util.List<AlarmAssociation> getAssociationsForSituation(int situationId)
- Specified by:
getAssociationsForSituation
in interfaceAlarmAssociationDao
-
-