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

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateResourceMappingDao

public interface ResourceMappingDao
extends ObjectDao

Data access interface for ResourceMapping business objects.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Method Summary
 ResourceMapping getResourceMapping(long id)
          Retrieve the resource mapping having this identifier
 java.util.List getResourceMappingsForEnvironment(PhysicalEnvironment environment, java.util.Date date)
          Retrieve the list of resource mappings active for environment on specfied date
 java.util.List getResourceMappingsForEnvironment(PhysicalEnvironment environment, java.util.Date startDate, java.util.Date endDate)
          Retrieve a list of resource mappings done onto an environment during a specified interval.
 java.util.List getResourceMappingsForResource(AbstractResource resource, java.util.Date startDate, java.util.Date endDate)
          Retrieve a list of resource mappings 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

getResourceMapping

ResourceMapping getResourceMapping(long id)
Retrieve the resource mapping having this identifier

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

getResourceMappingsForResource

java.util.List getResourceMappingsForResource(AbstractResource resource,
                                              java.util.Date startDate,
                                              java.util.Date endDate)
Retrieve a list of resource mappings done onto a resource during a specified interval

Parameters:
resource - The resource to retrieve mappings for
startDate - The starting date of time interval to search
endDate - The ending date of time interval to search
Returns:
A list of org.figure8.join.businessobjects.environment.ResourceMapping objects

getResourceMappingsForEnvironment

java.util.List getResourceMappingsForEnvironment(PhysicalEnvironment environment,
                                                 java.util.Date date)
Retrieve the list of resource mappings active for environment on specfied date

Parameters:
environment - The physical environment to retrieve mappings for
date - The date to retrieve active mappings
Returns:
A list of org.figure8.join.businessobjects.environment.ResourceMapping objects

getResourceMappingsForEnvironment

java.util.List getResourceMappingsForEnvironment(PhysicalEnvironment environment,
                                                 java.util.Date startDate,
                                                 java.util.Date endDate)
Retrieve a list of resource mappings done onto an environment during a specified interval.

Parameters:
environment - The physical environment to retrieve mappings for
startDate - The starting date of time interval to search
endDate - The ending date of time interval to search
Returns:
A list of org.figure8.join.businessobjects.environment.ResourceMapping objects


Copyright © 2005-2008 Join. All Rights Reserved.