org.figure8.join.core.persistence
Class GenericHibernateObjectDao

java.lang.Object
  extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
      extended by org.figure8.join.core.persistence.HibernateObjectDao
          extended by org.figure8.join.core.persistence.GenericHibernateObjectDao
All Implemented Interfaces:
ObjectDao, org.springframework.beans.factory.InitializingBean

public class GenericHibernateObjectDao
extends HibernateObjectDao

This is a generic implementation of HibernateObjectDao that uses java.lang.Object as its persistent class.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Nested Class Summary
static class GenericHibernateObjectDao.PersistentObjectsLoader
          Inner class for loading all persistent objects
 
Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
GenericHibernateObjectDao()
          Creates a new instance of GenericHibernateObjectDao
 
Method Summary
 java.util.List findAll()
          Find all entity objects associated with this Dao.
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 
Methods inherited from class org.figure8.join.core.persistence.HibernateObjectDao
findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getById, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericHibernateObjectDao

public GenericHibernateObjectDao()
Creates a new instance of GenericHibernateObjectDao

Method Detail

findAll

public java.util.List findAll()
Find all entity objects associated with this Dao. Because this dao implementation is generic : this means all the persitent objects !

Specified by:
findAll in interface ObjectDao
Overrides:
findAll in class HibernateObjectDao
Returns:
A List of EntityObjects

getPersistentClass

public java.lang.Class getPersistentClass()
Get the persistent class associated to this Dao.

Returns:
The class of the persistent object


Copyright © 2005-2008 Join. All Rights Reserved.