uk.ac.soton.itinnovation.grid.service.sla.dao
Interface ResourceWithUsageByMetricDAO

All Superinterfaces:
GenericDAO<ResourceWithUsageByMetric,Long>
All Known Implementing Classes:
ResourceWithUsageByMetricDAOImpl

public interface ResourceWithUsageByMetricDAO
extends GenericDAO<ResourceWithUsageByMetric,Long>


Method Summary
 ResourceWithUsageByMetric findByResourceId(String resourceId)
           
 ResourceWithUsageByMetric findByResourceId(String resourceId, boolean lock)
          If the value of the lock parameter is true, you MUST later unlock the entity by calling unlock.
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.service.sla.dao.GenericDAO
delete, findAll, findById, findById, saveOrUpdate
 

Method Detail

findByResourceId

ResourceWithUsageByMetric findByResourceId(String resourceId)

findByResourceId

ResourceWithUsageByMetric findByResourceId(String resourceId,
                                           boolean lock)
If the value of the lock parameter is true, you MUST later unlock the entity by calling unlock.

Parameters:
resourceId - the resource ID for the entity
lock - whether or not to obtain a pessimistic lock
Returns:
the entity or null if it does not exist
See Also:
GenericDAO#unlock


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.