org.figure8.join.businessobjects.commons.persistence
Class HibernateStatusDao

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

public class HibernateStatusDao
extends HibernateObjectDao
implements StatusDao

Implementation of StatusDao using Hibernate ORM system.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernateStatusDao()
          Create a new instance of HibernateStatusDao
 
Method Summary
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 Status getStatus(long id)
          Retrieve a status using its datastore identifier
 Status getStatus(java.lang.String key)
          Retrieve a status using its key
 java.util.List getStatusByType(java.lang.String type)
          Retrieve status having the specified type
 
Methods inherited from class org.figure8.join.core.persistence.HibernateObjectDao
findAll, 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
 
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 

Constructor Detail

HibernateStatusDao

public HibernateStatusDao()
Create a new instance of HibernateStatusDao

Method Detail

getStatus

public Status getStatus(long id)
Retrieve a status using its datastore identifier

Specified by:
getStatus in interface StatusDao
Parameters:
id - The unique id within datatstore
Returns:
The corresponding status or null if no status has this id

getStatus

public Status getStatus(java.lang.String key)
Retrieve a status using its key

Specified by:
getStatus in interface StatusDao
Parameters:
key - The key of status to retrieve
Returns:
The corresponding status or null if no status has this label

getStatusByType

public java.util.List getStatusByType(java.lang.String type)
Retrieve status having the specified type

Specified by:
getStatusByType in interface StatusDao
Parameters:
type - The type of status to retrieve
Returns:
A list of org.figure8.join.businessobjects.commons.Status objects

getPersistentClass

public java.lang.Class getPersistentClass()
Description copied from interface: ObjectDao
Get the persistent class associated to this Dao.

Specified by:
getPersistentClass in interface ObjectDao
Returns:
org.figure8.join.businessobjects.commons.Status Class


Copyright © 2005-2008 Join. All Rights Reserved.