Package org.opennms.netmgt.dao.mock
Class AbstractMockDao<T,K extends Serializable>
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.AbstractMockDao<T,K>
-
- All Implemented Interfaces:
LegacyOnmsDao<T,K>
,OnmsDao<T,K>
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
MockAcknowledgmentDao
,MockAlarmAssociationDao
,MockAlarmDao
,MockApplicationDao
,MockAssetRecordDao
,MockCategoryDao
,MockDistPollerDao
,MockEventDao
,MockFilterFavoriteDao
,MockHwEntityAttributeTypeDao
,MockHwEntityDao
,MockIpInterfaceDao
,MockMemoDao
,MockMonitoredServiceDao
,MockMonitoringLocationDao
,MockMonitoringSystemDao
,MockNodeDao
,MockNotificationDao
,MockOutageDao
,MockPathOutageDao
,MockReportCatalogDao
,MockRequisitionedCategoryAssociationDao
,MockResourceReferenceDao
,MockServiceTypeDao
,MockSnmpInterfaceDao
,MockStatisticsReportDao
,MockUserNotificationDao
public abstract class AbstractMockDao<T,K extends Serializable> extends Object implements LegacyOnmsDao<T,K>, org.springframework.beans.factory.InitializingBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractMockDao.NullEventForwarder
-
Constructor Summary
Constructors Constructor Description AbstractMockDao()
-
Method Summary
-
-
-
Method Detail
-
generateId
protected abstract void generateId(T entity)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getServiceRegistry
protected ServiceRegistry getServiceRegistry()
-
lock
public void lock()
Description copied from interface:OnmsDao
This is used to lock the table in order to implement upsert type operations- Specified by:
lock
in interfaceOnmsDao<T,K extends Serializable>
-
initialize
public void initialize(Object obj)
- Specified by:
initialize
in interfaceOnmsDao<T,K extends Serializable>
-
flush
public void flush()
- Specified by:
flush
in interfaceOnmsDao<T,K extends Serializable>
-
clear
public void clear()
- Specified by:
clear
in interfaceOnmsDao<T,K extends Serializable>
-
countAll
public int countAll()
- Specified by:
countAll
in interfaceOnmsDao<T,K extends Serializable>
-
delete
public void delete(T entity)
- Specified by:
delete
in interfaceOnmsDao<T,K extends Serializable>
-
delete
public void delete(K key)
- Specified by:
delete
in interfaceOnmsDao<T,K extends Serializable>
-
findAll
public List<T> findAll()
- Specified by:
findAll
in interfaceOnmsDao<T,K extends Serializable>
-
findMatching
public List<T> findMatching(Criteria criteria)
- Specified by:
findMatching
in interfaceOnmsDao<T,K extends Serializable>
-
findMatching
public List<T> findMatching(OnmsCriteria criteria)
- Specified by:
findMatching
in interfaceLegacyOnmsDao<T,K extends Serializable>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatching
in interfaceOnmsDao<T,K extends Serializable>
-
countMatching
public int countMatching(OnmsCriteria onmsCrit)
- Specified by:
countMatching
in interfaceLegacyOnmsDao<T,K extends Serializable>
-
saveOrUpdate
public void saveOrUpdate(T entity)
- Specified by:
saveOrUpdate
in interfaceOnmsDao<T,K extends Serializable>
-
update
public void update(T entity)
- Specified by:
update
in interfaceOnmsDao<T,K extends Serializable>
-
getIpInterfaceDao
protected IpInterfaceDao getIpInterfaceDao()
-
getSnmpInterfaceDao
protected SnmpInterfaceDao getSnmpInterfaceDao()
-
getAssetRecordDao
protected AssetRecordDao getAssetRecordDao()
-
getCategoryDao
protected CategoryDao getCategoryDao()
-
getMonitoringLocationDao
protected MonitoringLocationDao getMonitoringLocationDao()
-
getDistPollerDao
protected DistPollerDao getDistPollerDao()
-
getMonitoredServiceDao
protected MonitoredServiceDao getMonitoredServiceDao()
-
getServiceTypeDao
protected ServiceTypeDao getServiceTypeDao()
-
getEventDao
protected EventDao getEventDao()
-
getAlarmDao
protected AlarmDao getAlarmDao()
-
getAlarmAssociationDao
protected AlarmAssociationDao getAlarmAssociationDao()
-
getNodeDao
protected NodeDao getNodeDao()
-
-