net.sf.sail.webapp.dao.annotation.impl
Class HibernateAnnotationBundleDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by net.sf.sail.webapp.dao.impl.AbstractHibernateDao<AnnotationBundle>
              extended by net.sf.sail.webapp.dao.annotation.impl.HibernateAnnotationBundleDao
All Implemented Interfaces:
AnnotationBundleDao<AnnotationBundle>, SimpleDao<AnnotationBundle>, org.springframework.beans.factory.InitializingBean

public class HibernateAnnotationBundleDao
extends AbstractHibernateDao<AnnotationBundle>
implements AnnotationBundleDao<AnnotationBundle>

Version:
$Id$ Hibernate implementation of the AnnotationBundleDao.
Author:
Laurel Williams

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateAnnotationBundleDao()
           
 
Method Summary
protected  Class<AnnotationBundleImpl> getDataObjectClass()
          Gets the class of the persistent entity.
protected  String getFindAllQuery()
          Gets a string that will perform a query to retrieve all available objects from the persistent data store.
 AnnotationBundle retrieveAnnotationBundle(Workgroup workgroup)
          Retrieves the annotation for the specified Workgroup
 
Methods inherited from class net.sf.sail.webapp.dao.impl.AbstractHibernateDao
delete, getById, getList, save
 
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
 
Methods inherited from interface net.sf.sail.webapp.dao.SimpleDao
delete, getById, getList, save
 

Constructor Detail

HibernateAnnotationBundleDao

public HibernateAnnotationBundleDao()
Method Detail

getFindAllQuery

protected String getFindAllQuery()
Description copied from class: AbstractHibernateDao
Gets a string that will perform a query to retrieve all available objects from the persistent data store.

Specified by:
getFindAllQuery in class AbstractHibernateDao<AnnotationBundle>
Returns:
String query
See Also:
AbstractHibernateDao.getFindAllQuery()

getDataObjectClass

protected Class<AnnotationBundleImpl> getDataObjectClass()
Description copied from class: AbstractHibernateDao
Gets the class of the persistent entity.

Specified by:
getDataObjectClass in class AbstractHibernateDao<AnnotationBundle>
Returns:
the Class

retrieveAnnotationBundle

public AnnotationBundle retrieveAnnotationBundle(Workgroup workgroup)
Description copied from interface: AnnotationBundleDao
Retrieves the annotation for the specified Workgroup

Specified by:
retrieveAnnotationBundle in interface AnnotationBundleDao<AnnotationBundle>
Parameters:
workgroup - Workgroup to retrieved the associated AnnotationBundle
Returns:
AnnotationBundle associated with the workgroup
See Also:
AnnotationBundleDao.retrieveAnnotationBundle(net.sf.sail.webapp.domain.Workgroup)


Copyright © 2012. All Rights Reserved.