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

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateResourceDao

public interface ResourceDao
extends ObjectDao

Data Access interface for Resources business objects.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Method Summary
 Resource getResource(long id)
          Retrieve a Resource using its identifier
 Resource getResource(java.lang.String name)
          Retrieve a Resource using its name
 java.util.List getResourcesByCategory(java.lang.String category)
          Retrieve all Resources corresponding to a specified category of resources
 java.util.List getResourcesByType(AbstractResourceType type)
          Retrieve all Resource 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

getResource

Resource getResource(long id)
Retrieve a Resource using its identifier

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

getResource

Resource getResource(java.lang.String name)
Retrieve a Resource using its name

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

getResourcesByCategory

java.util.List getResourcesByCategory(java.lang.String category)
Retrieve all Resources corresponding to a specified category of resources

Parameters:
category - The string representing the category of resource (Service, Gwateway, ..)
Returns:
A list of Resource corresponding to this category

getResourcesByType

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

Parameters:
type - The resource type of Resources to retrieve (only persistent types are supported at that time)
Returns:
A list of Resource corresponding to this type


Copyright © 2005-2008 Join. All Rights Reserved.