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

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.HibernateAssemblyDao
All Implemented Interfaces:
AssemblyDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernateAssemblyDao
extends HibernateObjectDao
implements AssemblyDao

Implementation of AssemblyDao 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
HibernateAssemblyDao()
          Creates a new instance of HibernateAssemblyDao
 
Method Summary
 java.util.List getAssembliesByRelease(Release release)
          Retrieve all the assemblies produced for a spcified release
 java.util.List getAssembliesComposedByUser(java.lang.String userId)
          Retrieve assemblies composed by a specified user
 java.util.List getAssembliesWithDeliverables(java.util.List deliverables)
          Retrieve assemblies having the deliverables specified into list
 Assembly getAssembly(java.lang.String key)
          Retrieve an Assembly using its unique key identifier
 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

HibernateAssemblyDao

public HibernateAssemblyDao()
Creates a new instance of HibernateAssemblyDao

Method Detail

getAssembliesByRelease

public java.util.List getAssembliesByRelease(Release release)
Retrieve all the assemblies produced for a spcified release

Specified by:
getAssembliesByRelease in interface AssemblyDao
Parameters:
release - The release to retrieve assemblies for
Returns:
A list of org.figure8.join.businessobjects.artifact.Assemblys

getAssembliesComposedByUser

public java.util.List getAssembliesComposedByUser(java.lang.String userId)
Retrieve assemblies composed by a specified user

Specified by:
getAssembliesComposedByUser in interface AssemblyDao
Parameters:
userId - The unique identifier of the composer
Returns:
A list of org.figure8.join.businessobjects.artifact.Assemblys

getAssembliesWithDeliverables

public java.util.List getAssembliesWithDeliverables(java.util.List deliverables)
Retrieve assemblies having the deliverables specified into list

Specified by:
getAssembliesWithDeliverables in interface AssemblyDao
Parameters:
deliverables - The list of deliverables assemblies should have
Returns:
A list of org.figure8.join.businessobjects.artifact.Assemblys

getAssembly

public Assembly getAssembly(java.lang.String key)
Retrieve an Assembly using its unique key identifier

Specified by:
getAssembly in interface AssemblyDao
Parameters:
key - The unique key identifier of assembly to retrieve
Returns:
The Assembly corresponding to key or null if no assembly with this key exists

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.Assembly class


Copyright © 2005-2008 Join. All Rights Reserved.