org.appfuse.persistence.hibernate
Class LookupDAOHibernate

java.lang.Object
  extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
      extended byorg.appfuse.persistence.hibernate.LookupDAOHibernate
All Implemented Interfaces:
DAO, InitializingBean, LookupDAO

public class LookupDAOHibernate
extends HibernateDaoSupport
implements LookupDAO

Hibernate implementation of LookupDAO.

View Source

Version:
$Revision: 1.2 $ $Date: 2004/04/02 08:49:28 $
Author:
Matt Raible

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
LookupDAOHibernate()
           
 
Method Summary
 List getAvailableTemplates()
          Get a list of of all the templates in the database
 List getDegrees()
          Get a list of available degrees from the database.
 List getRoles()
          Returns a list of all roles in the database
 List getWorkStatuses()
          Get a list of available work statuses from the database.
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, 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

LookupDAOHibernate

public LookupDAOHibernate()
Method Detail

getRoles

public List getRoles()
              throws DAOException
Description copied from interface: LookupDAO
Returns a list of all roles in the database

Specified by:
getRoles in interface LookupDAO
Returns:
List roles in database
Throws:
DAOException
See Also:
LookupDAO.getRoles()

getAvailableTemplates

public List getAvailableTemplates()
                           throws DAOException
Description copied from interface: LookupDAO
Get a list of of all the templates in the database

Specified by:
getAvailableTemplates in interface LookupDAO
Returns:
List list of templates
Throws:
DAOException
See Also:
LookupDAO.getAvailableTemplates()

getWorkStatuses

public List getWorkStatuses()
                     throws DAOException
Description copied from interface: LookupDAO
Get a list of available work statuses from the database.

Specified by:
getWorkStatuses in interface LookupDAO
Returns:
a List of populated work status objects
Throws:
DAOException
See Also:
LookupDAO.getWorkStatuses()

getDegrees

public List getDegrees()
                throws DAOException
Description copied from interface: LookupDAO
Get a list of available degrees from the database.

Specified by:
getDegrees in interface LookupDAO
Returns:
a List of populated degree objects
Throws:
DAOException
See Also:
LookupDAO.getDegrees()


Copyright © 2002-2004