net.sf.sail.webapp.dao.workgroup.impl
Class HibernateWorkgroupDao

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<Workgroup>
              extended by net.sf.sail.webapp.dao.workgroup.impl.HibernateWorkgroupDao
All Implemented Interfaces:
SimpleDao<Workgroup>, WorkgroupDao<Workgroup>, org.springframework.beans.factory.InitializingBean

public class HibernateWorkgroupDao
extends AbstractHibernateDao<Workgroup>
implements WorkgroupDao<Workgroup>

Version:
$Id$
Author:
Hiroki Terashima

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateWorkgroupDao()
           
 
Method Summary
protected  Class<WorkgroupImpl> 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.
 List<Workgroup> getListByOfferingAndUser(Offering offering, User user)
          Gets a list of workgroups for the specified user in for the specified offering
 List<Workgroup> getListByUser(User user)
          Gets a list of workgroups for the specified user
 
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

HibernateWorkgroupDao

public HibernateWorkgroupDao()
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<Workgroup>
Returns:
String query
See Also:
AbstractHibernateDao.getFindAllQuery()

getListByOfferingAndUser

public List<Workgroup> getListByOfferingAndUser(Offering offering,
                                                User user)
Description copied from interface: WorkgroupDao
Gets a list of workgroups for the specified user in for the specified offering

Specified by:
getListByOfferingAndUser in interface WorkgroupDao<Workgroup>
Returns:
a Workgroup List
See Also:
WorkgroupDao.getListByOfferingAndUser(net.sf.sail.webapp.domain.Offering, net.sf.sail.webapp.domain.User)

getListByUser

public List<Workgroup> getListByUser(User user)
Description copied from interface: WorkgroupDao
Gets a list of workgroups for the specified user

Specified by:
getListByUser in interface WorkgroupDao<Workgroup>
Returns:
a Workgroup List
See Also:
WorkgroupDao.getListByUser(net.sf.sail.webapp.domain.User)

getDataObjectClass

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

Specified by:
getDataObjectClass in class AbstractHibernateDao<Workgroup>
Returns:
the Class
See Also:
AbstractHibernateDao.getDataObjectClass()


Copyright © 2012. All Rights Reserved.