org.promotego.dao.hibernate
Class HibernateDaoSupport<T>

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by 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>


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateDaoSupport()
           
 
Method Summary
 void create(java.util.List<T> listTees)
           
 void create(T tee)
           
 void delete(T theTee)
           
 void deleteAll()
           
 java.util.List<T> findAll()
           
 T getById(java.lang.Long id)
           
 int getCount()
           
protected abstract  java.lang.String getCountQuery()
           
protected abstract  java.lang.String getFindAllQuery()
           
protected abstract  java.lang.String getIdQuery()
           
 void reattach(T theTee)
           
 void saveOrUpdate(T theTee)
           
 void update(T theTee)
           
 
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
 

Constructor Detail

HibernateDaoSupport

public HibernateDaoSupport()
Method Detail

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.