public abstract class AbstractMockDao<T,K extends Serializable> extends Object implements LegacyOnmsDao<T,K>, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
AbstractMockDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
clear() |
int |
countAll() |
int |
countMatching(Criteria onmsCrit) |
int |
countMatching(OnmsCriteria onmsCrit) |
void |
delete(K key) |
void |
delete(T entity) |
List<T> |
findAll() |
List<T> |
findMatching(Criteria criteria) |
List<T> |
findMatching(OnmsCriteria criteria) |
void |
flush() |
protected abstract void |
generateId(T entity) |
T |
get(K id) |
protected AlarmDao |
getAlarmDao() |
protected AssetRecordDao |
getAssetRecordDao() |
protected CategoryDao |
getCategoryDao() |
protected DistPollerDao |
getDistPollerDao() |
protected EventDao |
getEventDao() |
protected abstract K |
getId(T entity) |
protected IpInterfaceDao |
getIpInterfaceDao() |
protected MonitoredServiceDao |
getMonitoredServiceDao() |
protected NodeDao |
getNodeDao() |
protected ServiceRegistry |
getServiceRegistry() |
protected ServiceTypeDao |
getServiceTypeDao() |
protected SnmpInterfaceDao |
getSnmpInterfaceDao() |
void |
initialize(Object obj) |
T |
load(K id) |
void |
lock()
This is used to lock the table in order to implement upsert type operations
|
void |
save(T entity) |
void |
saveOrUpdate(T entity) |
void |
update(T entity) |
protected abstract void generateId(T entity)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanprotected ServiceRegistry getServiceRegistry()
public void lock()
OnmsDaolock in interface OnmsDao<T,K extends Serializable>public void initialize(Object obj)
initialize in interface OnmsDao<T,K extends Serializable>public void flush()
flush in interface OnmsDao<T,K extends Serializable>public void clear()
clear in interface OnmsDao<T,K extends Serializable>public int countAll()
countAll in interface OnmsDao<T,K extends Serializable>public void delete(T entity)
delete in interface OnmsDao<T,K extends Serializable>public void delete(K key)
delete in interface OnmsDao<T,K extends Serializable>public List<T> findAll()
findAll in interface OnmsDao<T,K extends Serializable>public List<T> findMatching(Criteria criteria)
findMatching in interface OnmsDao<T,K extends Serializable>public List<T> findMatching(OnmsCriteria criteria)
findMatching in interface LegacyOnmsDao<T,K extends Serializable>public int countMatching(Criteria onmsCrit)
countMatching in interface OnmsDao<T,K extends Serializable>public int countMatching(OnmsCriteria onmsCrit)
countMatching in interface LegacyOnmsDao<T,K extends Serializable>public void saveOrUpdate(T entity)
saveOrUpdate in interface OnmsDao<T,K extends Serializable>public void update(T entity)
update in interface OnmsDao<T,K extends Serializable>protected IpInterfaceDao getIpInterfaceDao()
protected SnmpInterfaceDao getSnmpInterfaceDao()
protected AssetRecordDao getAssetRecordDao()
protected CategoryDao getCategoryDao()
protected DistPollerDao getDistPollerDao()
protected MonitoredServiceDao getMonitoredServiceDao()
protected ServiceTypeDao getServiceTypeDao()
protected EventDao getEventDao()
protected AlarmDao getAlarmDao()
protected NodeDao getNodeDao()
Copyright © 2015. All rights reserved.