org.figure8.join.businessobjects.environment.persistence
Interface VersionedResourceUpdateDao

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateVersionedResourceUpdateDao

public interface VersionedResourceUpdateDao
extends ObjectDao

Data access interface for VersionedResourceUpdate business objects.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Method Summary
 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 interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 

Method Detail

getVersionedResourceUpdate

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

Parameters:
id - The unique identifier of update to retrieve
Returns:
The VersionedResourceUpdate having this identifier or null if no one match

getVersionedResourceUpdateForResource

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

Parameters:
resource - The VersionedResource to retrieve update for
date - The date to retrieve active update
Returns:
The active VersionedResourceUpdate at date

getVersionedResourceUpdatesForResource

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

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


Copyright © 2005-2008 Join. All Rights Reserved.