org.skyscreamer.yoga.demo.dao
Class GenericDaoBean

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.skyscreamer.yoga.demo.dao.GenericDaoBean
All Implemented Interfaces:
GenericDao, org.springframework.beans.factory.InitializingBean

@Repository
@Transactional
public class GenericDaoBean
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements GenericDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
GenericDaoBean()
           
 
Method Summary
<T> T
find(Class<T> type, long id)
           
<T> List<T>
findAll(Class<T> type)
           
 void setSession(org.hibernate.SessionFactory sessionFactory)
           
 
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

GenericDaoBean

public GenericDaoBean()
Method Detail

find

public <T> T find(Class<T> type,
                  long id)
Specified by:
find in interface GenericDao

findAll

public <T> List<T> findAll(Class<T> type)
Specified by:
findAll in interface GenericDao

setSession

public void setSession(org.hibernate.SessionFactory sessionFactory)


Copyright © 2011. All Rights Reserved.