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

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

public class HibernateBuildDao
extends HibernateObjectDao
implements BuildDao

Implementation of BuildDao 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
HibernateBuildDao()
          Creates a new instance of HibernateBuildDao
 
Method Summary
 Build getBuild(java.lang.String key)
          Retrieve a Build using its unique key identifier
 java.util.List getBuildsByRelease(Release release)
          Retrieve all the builds produced for a spcified release
 java.util.List getBuildsComposedByUser(java.lang.String userId)
          Retrieve builds composed by a specified user
 java.util.List getBuildsWithComponents(java.util.List components)
          Retrieve builds having the components specified into list
 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

HibernateBuildDao

public HibernateBuildDao()
Creates a new instance of HibernateBuildDao

Method Detail

getBuildsByRelease

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

Specified by:
getBuildsByRelease in interface BuildDao
Parameters:
release - The release to retrieve builds for
Returns:
A list of org.figure8.join.businessobjects.artifact.Builds

getBuildsComposedByUser

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

Specified by:
getBuildsComposedByUser in interface BuildDao
Parameters:
userId - The unique identifier of the composer
Returns:
A list of org.figure8.join.businessobjects.artifact.Builds

getBuildsWithComponents

public java.util.List getBuildsWithComponents(java.util.List components)
Retrieve builds having the components specified into list

Specified by:
getBuildsWithComponents in interface BuildDao
Parameters:
components - The list of components builds should have
Returns:
A list of org.figure8.join.businessobjects.artifact.Builds

getBuild

public Build getBuild(java.lang.String key)
Retrieve a Build using its unique key identifier

Specified by:
getBuild in interface BuildDao
Parameters:
key - The unique key identifier of build to retrieve
Returns:
The Build corresponding to key or null if no build 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.Build class


Copyright © 2005-2008 Join. All Rights Reserved.