org.figure8.join.businessobjects.environment.persistence
Class HibernateVersionedResourceUpdateDao
java.lang.Object
org.springframework.orm.hibernate.support.HibernateDaoSupport
org.figure8.join.core.persistence.HibernateObjectDao
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
| 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 |
HibernateVersionedResourceUpdateDao
public HibernateVersionedResourceUpdateDao()
- Creates a new HibernateVersionedResourceUpdateDao
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 fordate - 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 forstartDate - The starting date of time interval to searchendDate - 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.