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

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

public class HibernateComponentDao
extends HibernateObjectDao
implements ComponentDao

Implementation of ComponentDao 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
HibernateComponentDao()
          Creates a new instance of HibernateComponentDao
 
Method Summary
 Component getComponent(java.lang.String key)
          Retrieve the component having the specified key
 java.util.List getComponentsByRelease(ComponentType type, Release release)
          Retrieve components of specified type generated by a specified release
 java.util.List getComponentsInRelease(ComponentType type, Release release)
          Retrieve components of specified type contained by a specified release
 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

HibernateComponentDao

public HibernateComponentDao()
Creates a new instance of HibernateComponentDao

Method Detail

getComponent

public Component getComponent(java.lang.String key)
Retrieve the component having the specified key

Specified by:
getComponent in interface ComponentDao
Parameters:
key - The key of component to retrieve
Returns:
The component having this key or null if no one matches

getComponentsByRelease

public java.util.List getComponentsByRelease(ComponentType type,
                                             Release release)
Retrieve components of specified type generated by a specified release

Specified by:
getComponentsByRelease in interface ComponentDao
Parameters:
type - The components type
release - The release components have been generated for
Returns:
A list of org.figure8.join.businessobjects.artifact.Components

getComponentsInRelease

public java.util.List getComponentsInRelease(ComponentType type,
                                             Release release)
Retrieve components of specified type contained by a specified release

Specified by:
getComponentsInRelease in interface ComponentDao
Parameters:
type - The components type
release - The release containing returned components
Returns:
A list of org.figure8.join.businessobjects.artifact.Components

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


Copyright © 2005-2008 Join. All Rights Reserved.