org.promotego.dao.hibernate
Class HibernateDaoSupport<T>
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.promotego.dao.hibernate.HibernateDaoSupport<T>
- All Implemented Interfaces:
- Dao<T>, org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- HibernateAddressDao, HibernateLocationTypeDao, HibernateRadiusSearchDaoSupport, HibernateUserDao, HibernateValidationRecordDao
public abstract class HibernateDaoSupport<T>
- extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
- implements Dao<T>
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 |
HibernateDaoSupport
public HibernateDaoSupport()
create
public void create(T tee)
- Specified by:
create
in interface Dao<T>
create
public void create(java.util.List<T> listTees)
- Specified by:
create
in interface Dao<T>
findAll
public java.util.List<T> findAll()
- Specified by:
findAll
in interface Dao<T>
getById
public T getById(java.lang.Long id)
- Specified by:
getById
in interface Dao<T>
delete
public void delete(T theTee)
- Specified by:
delete
in interface Dao<T>
deleteAll
public void deleteAll()
- Specified by:
deleteAll
in interface Dao<T>
reattach
public void reattach(T theTee)
- Specified by:
reattach
in interface Dao<T>
update
public void update(T theTee)
- Specified by:
update
in interface Dao<T>
saveOrUpdate
public void saveOrUpdate(T theTee)
- Specified by:
saveOrUpdate
in interface Dao<T>
getCount
public int getCount()
- Specified by:
getCount
in interface Dao<T>
getFindAllQuery
protected abstract java.lang.String getFindAllQuery()
getIdQuery
protected abstract java.lang.String getIdQuery()
getCountQuery
protected abstract java.lang.String getCountQuery()
Copyright © 2007. All Rights Reserved.