org.opennms.netmgt.dao.hibernate
Class AbstractDaoHibernate<T,K extends Serializable>
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<T,K>
- All Implemented Interfaces:
- OnmsDao<T,K>, org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- AlarmDaoHibernate, ApplicationDaoHibernate, AssetRecordDaoHibernate, AvailabilityReportLocatorDaoHibernate, CategoryDaoHibernate, DemandPollDaoHibernate, DistPollerDaoHibernate, EventDaoHibernate, IpInterfaceDaoHibernate, LocationMonitorDaoHibernate, MonitoredServiceDaoHibernate, NodeDaoHibernate, NotificationDaoHibernate, OutageDaoHibernate, ResourceReferenceDaoHibernate, ServiceTypeDaoHibernate, SnmpInterfaceDaoHibernate, StatisticsReportDaoHibernate, StatisticsReportDataDaoHibernate, UserNotificationDaoHibernate
public abstract class AbstractDaoHibernate<T,K extends Serializable>
- extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
- implements OnmsDao<T,K>
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDaoHibernate
public AbstractDaoHibernate(Class<T> entityClass)
initialize
public void initialize(Object obj)
- Specified by:
initialize in interface OnmsDao<T,K extends Serializable>
flush
public void flush()
- Specified by:
flush in interface OnmsDao<T,K extends Serializable>
clear
public void clear()
- Specified by:
clear in interface OnmsDao<T,K extends Serializable>
evict
public void evict(T entity)
merge
public void merge(T entity)
find
public List<T> find(String query)
find
public List<T> find(String query,
Object... values)
findObjects
public <S> List<S> findObjects(Class<S> clazz,
String query,
Object... values)
queryInt
protected int queryInt(String query)
queryInt
protected int queryInt(String queryString,
Object... args)
findUnique
protected T findUnique(String query)
findUnique
protected T findUnique(String queryString,
Object... args)
countAll
public int countAll()
- Specified by:
countAll in interface OnmsDao<T,K extends Serializable>
delete
public void delete(T entity)
- Specified by:
delete in interface OnmsDao<T,K extends Serializable>
findAll
public List<T> findAll()
- Specified by:
findAll in interface OnmsDao<T,K extends Serializable>
findMatching
public List<T> findMatching(org.opennms.netmgt.model.OnmsCriteria onmsCrit)
- Specified by:
findMatching in interface OnmsDao<T,K extends Serializable>
get
public T get(K id)
- Specified by:
get in interface OnmsDao<T,K extends Serializable>
load
public T load(K id)
- Specified by:
load in interface OnmsDao<T,K extends Serializable>
save
public void save(T entity)
- Specified by:
save in interface OnmsDao<T,K extends Serializable>
saveOrUpdate
public void saveOrUpdate(T entity)
- Specified by:
saveOrUpdate in interface OnmsDao<T,K extends Serializable>
update
public void update(T entity)
- Specified by:
update in interface OnmsDao<T,K extends Serializable>
Copyright ? 2008. All Rights Reserved.