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 classAbstractMockDao.NullEventForwarder
-
Constructor Summary
Constructors Constructor Description AbstractMockDao()
-
Method Summary
-
-
-
Method Detail
-
generateId
protected abstract void generateId(T entity)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getServiceRegistry
protected ServiceRegistry getServiceRegistry()
-
lock
public void lock()
Description copied from interface:OnmsDaoThis is used to lock the table in order to implement upsert type operations- Specified by:
lockin interfaceOnmsDao<T,K extends Serializable>
-
initialize
public void initialize(Object obj)
- Specified by:
initializein interfaceOnmsDao<T,K extends Serializable>
-
flush
public void flush()
- Specified by:
flushin interfaceOnmsDao<T,K extends Serializable>
-
clear
public void clear()
- Specified by:
clearin interfaceOnmsDao<T,K extends Serializable>
-
countAll
public int countAll()
- Specified by:
countAllin interfaceOnmsDao<T,K extends Serializable>
-
delete
public void delete(T entity)
- Specified by:
deletein interfaceOnmsDao<T,K extends Serializable>
-
delete
public void delete(K key)
- Specified by:
deletein interfaceOnmsDao<T,K extends Serializable>
-
findAll
public List<T> findAll()
- Specified by:
findAllin interfaceOnmsDao<T,K extends Serializable>
-
findMatching
public List<T> findMatching(Criteria criteria)
- Specified by:
findMatchingin interfaceOnmsDao<T,K extends Serializable>
-
findMatching
public List<T> findMatching(OnmsCriteria criteria)
- Specified by:
findMatchingin interfaceLegacyOnmsDao<T,K extends Serializable>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatchingin interfaceOnmsDao<T,K extends Serializable>
-
countMatching
public int countMatching(OnmsCriteria onmsCrit)
- Specified by:
countMatchingin interfaceLegacyOnmsDao<T,K extends Serializable>
-
saveOrUpdate
public void saveOrUpdate(T entity)
- Specified by:
saveOrUpdatein interfaceOnmsDao<T,K extends Serializable>
-
update
public void update(T entity)
- Specified by:
updatein 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()
-
-