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

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

public class HibernateVersionedResourceUpdateDao
extends HibernateObjectDao
implements VersionedResourceUpdateDao

Implementation of VersionedResourceUpdateDao 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
HibernateVersionedResourceUpdateDao()
          Creates a new HibernateVersionedResourceUpdateDao
 
Method Summary
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 VersionedResourceUpdate getVersionedResourceUpdate(long id)
          Retrieve the VersionedResourceUpdate having this identifier
 VersionedResourceUpdate getVersionedResourceUpdateForResource(VersionedResource resource, java.util.Date date)
          Retrieve the resource update for a resource that was active at specified date
 java.util.List getVersionedResourceUpdatesForResource(VersionedResource resource, java.util.Date startDate, java.util.Date endDate)
          Retrieve a list of resource updates done onto a resource during a specified interval
 
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

HibernateVersionedResourceUpdateDao

public HibernateVersionedResourceUpdateDao()
Creates a new HibernateVersionedResourceUpdateDao

Method Detail

getVersionedResourceUpdate

public VersionedResourceUpdate getVersionedResourceUpdate(long id)
Retrieve the VersionedResourceUpdate having this identifier

Specified by:
getVersionedResourceUpdate in interface VersionedResourceUpdateDao
Parameters:
id - The unique identifier of update to retrieve
Returns:
The VersionedResourceUpdate having this identifier or null if no one match

getVersionedResourceUpdateForResource

public VersionedResourceUpdate getVersionedResourceUpdateForResource(VersionedResource resource,
                                                                     java.util.Date date)
Retrieve the resource update for a resource that was active at specified date

Specified by:
getVersionedResourceUpdateForResource in interface VersionedResourceUpdateDao
Parameters:
resource - The VersionedResource to retrieve update for
date - The date to retrieve active update
Returns:
The active VersionedResourceUpdate at date

getVersionedResourceUpdatesForResource

public java.util.List getVersionedResourceUpdatesForResource(VersionedResource resource,
                                                             java.util.Date startDate,
                                                             java.util.Date endDate)
Retrieve a list of resource updates done onto a resource during a specified interval

Specified by:
getVersionedResourceUpdatesForResource in interface VersionedResourceUpdateDao
Parameters:
resource - The VersionedResource to retrieve updates for
startDate - The starting date of time interval to search
endDate - The ending date of time interval to search
Returns:
A list of VersionedResourceUpdate objects

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


Copyright © 2005-2008 Join. All Rights Reserved.