org.figure8.join.businessobjects.artifact.persistence
Class HibernateDeliverableDao

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.artifact.persistence.HibernateDeliverableDao
All Implemented Interfaces:
DeliverableDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernateDeliverableDao
extends HibernateObjectDao
implements DeliverableDao

Implementation of DeliverableDao using Hibernate ORM system.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernateDeliverableDao()
          Creates a new instance of HibernateDeliverableDao
 
Method Summary
 Deliverable getDeliverable(java.lang.String key)
          Retrieve a deliverable using its unique business key
 java.util.List getDeliverablesByRelease(DeliverableType type, Release release)
          Retrieve deliverables of specified type for a specified release
 java.util.List getDeliverablesSuppliedByUser(java.lang.String userId)
          Retrieve deliverables supplied by a specified user
 java.util.List getLastDeliverables(DeliverableType type, int maxResult)
          Retrieve the last deliverables for a specified type.
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 
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

HibernateDeliverableDao

public HibernateDeliverableDao()
Creates a new instance of HibernateDeliverableDao

Method Detail

getDeliverable

public Deliverable getDeliverable(java.lang.String key)
Retrieve a deliverable using its unique business key

Specified by:
getDeliverable in interface DeliverableDao
Parameters:
key - The key of deliverable to retrieve
Returns:
The deliverable having this ey or null if key not found

getLastDeliverables

public java.util.List getLastDeliverables(DeliverableType type,
                                          int maxResult)
Retrieve the last deliverables for a specified type. 'Last' are the one with most recent delivery creation date. Limit the result size with maxResult

Specified by:
getLastDeliverables in interface DeliverableDao
Parameters:
type - The deliverables type
maxResult - The maximum number of returned deliverables
Returns:
A list of org.figure8.join.businessobjects.artifact.Deliverables

getDeliverablesByRelease

public java.util.List getDeliverablesByRelease(DeliverableType type,
                                               Release release)
Retrieve deliverables of specified type for a specified release

Specified by:
getDeliverablesByRelease in interface DeliverableDao
Parameters:
type - The deliverables type
release - The release deliverables have been done for
Returns:
A list of org.figure8.join.businessobjects.artifact.Deliverables

getDeliverablesSuppliedByUser

public java.util.List getDeliverablesSuppliedByUser(java.lang.String userId)
Retrieve deliverables supplied by a specified user

Specified by:
getDeliverablesSuppliedByUser in interface DeliverableDao
Parameters:
userId - The unique identifier of the supplier
Returns:
A list of org.figure8.join.businessobjects.artifact.Deliverables

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.artifact.Deliverable class


Copyright © 2005-2008 Join. All Rights Reserved.