org.figure8.join.businessobjects.artifact.persistence
Class HibernateComponentDao
java.lang.Object
org.springframework.orm.hibernate.support.HibernateDaoSupport
org.figure8.join.core.persistence.HibernateObjectDao
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
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
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 |
HibernateComponentDao
public HibernateComponentDao()
- Creates a new instance of HibernateComponentDao
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 typerelease
- The release components have been generated for
- Returns:
- A list of
org.figure8.join.businessobjects.artifact.Component
s
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 typerelease
- The release containing returned components
- Returns:
- A list of
org.figure8.join.businessobjects.artifact.Component
s
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.