org.figure8.join.businessobjects.environment.persistence
Class HibernateResourceVersionDao

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.environment.persistence.HibernateResourceVersionDao
All Implemented Interfaces:
ResourceVersionDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernateResourceVersionDao
extends HibernateObjectDao
implements ResourceVersionDao

Implementation of ResourceVersionDao 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
HibernateResourceVersionDao()
          Creates a new instance of HibernateResourceVersionDao.
 
Method Summary
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 ResourceVersion getResourceVersion(long id)
          Retrieve a ResourceVersion using its identifier
 ResourceVersion getResourceVersion(java.lang.String name)
          Retrieve a ResourceVersion using its name
 java.util.List getResourceVersionsByType(AbstractResourceType type)
          Retrieve all ResourceVersions corresponding to a specified type of resources
 
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

HibernateResourceVersionDao

public HibernateResourceVersionDao()
Creates a new instance of HibernateResourceVersionDao.

Method Detail

getResourceVersion

public ResourceVersion getResourceVersion(long id)
Retrieve a ResourceVersion using its identifier

Specified by:
getResourceVersion in interface ResourceVersionDao
Parameters:
id - The unique identifier of this resource version
Returns:
The corresponding version or null if no resource version has this id

getResourceVersion

public ResourceVersion getResourceVersion(java.lang.String name)
Retrieve a ResourceVersion using its name

Specified by:
getResourceVersion in interface ResourceVersionDao
Parameters:
name - The name of ResourceVersion to retrieve
Returns:
The corresponding version or null if no resource version has this name

getResourceVersionsByType

public java.util.List getResourceVersionsByType(AbstractResourceType type)
Retrieve all ResourceVersions corresponding to a specified type of resources

Specified by:
getResourceVersionsByType in interface ResourceVersionDao
Parameters:
type - The resource type of ResourceVersions to retrieve (only persistent types are supported at that time)
Returns:
A list of ResourceVersion corresponding to this type

getPersistentClass

public java.lang.Class getPersistentClass()
Get the persistent class associated to this Dao.

Specified by:
getPersistentClass in interface ObjectDao
Returns:
The org.figure8.join.businessobjects.environment.ResourceVersion class


Copyright © 2005-2008 Join. All Rights Reserved.