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

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateResourceVersionDao

public interface ResourceVersionDao
extends ObjectDao

Data access interface for ResourceVersion business objects.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

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

Method Detail

getResourceVersion

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

Parameters:
id - The unique identifier of this resource version
Returns:
The corresponding version or null if no resource version has this id

getResourceVersion

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

Parameters:
name - The name of ResourceVersion to retrieve
Returns:
The corresponding version or null if no resource version has this name

getResourceVersionsByType

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

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


Copyright © 2005-2008 Join. All Rights Reserved.