Package org.opennms.netmgt.dao.mock
Class AbstractMockDao<T,K extends java.io.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 java.io.Serializable> extends java.lang.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
-
initialize
public void initialize(java.lang.Object obj)
- Specified by:
initialize
in interfaceOnmsDao<T,K extends java.io.Serializable>
-
flush
public void flush()
-
clear
public void clear()
-
countAll
public int countAll()
-
delete
public void delete(T entity)
-
delete
public void delete(K key)
-
findAll
public java.util.List<T> findAll()
-
findMatching
public java.util.List<T> findMatching(Criteria criteria)
- Specified by:
findMatching
in interfaceOnmsDao<T,K extends java.io.Serializable>
-
findMatching
public java.util.List<T> findMatching(OnmsCriteria criteria)
- Specified by:
findMatching
in interfaceLegacyOnmsDao<T,K extends java.io.Serializable>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatching
in interfaceOnmsDao<T,K extends java.io.Serializable>
-
countMatching
public int countMatching(OnmsCriteria onmsCrit)
- Specified by:
countMatching
in interfaceLegacyOnmsDao<T,K extends java.io.Serializable>
-
saveOrUpdate
public void saveOrUpdate(T entity)
- Specified by:
saveOrUpdate
in interfaceOnmsDao<T,K extends java.io.Serializable>
-
update
public void update(T entity)
-
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()
-
-