uk.ac.soton.itinnovation.grid.service.sla.dao.hibernate
Class ResourceWithUsageByMetricDAOImpl

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.sla.dao.GenericHibernateDAO<ResourceWithUsageByMetric,Long>
      extended by uk.ac.soton.itinnovation.grid.service.sla.dao.hibernate.ResourceWithUsageByMetricDAOImpl
All Implemented Interfaces:
GenericDAO<ResourceWithUsageByMetric,Long>, ResourceWithUsageByMetricDAO

public class ResourceWithUsageByMetricDAOImpl
extends GenericHibernateDAO<ResourceWithUsageByMetric,Long>
implements ResourceWithUsageByMetricDAO


Constructor Summary
ResourceWithUsageByMetricDAOImpl()
           
 
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 class uk.ac.soton.itinnovation.grid.service.sla.dao.GenericHibernateDAO
delete, findAll, findByCriteria, findById, findById, getPersistentClass, saveOrUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.service.sla.dao.GenericDAO
delete, findAll, findById, findById, saveOrUpdate
 

Constructor Detail

ResourceWithUsageByMetricDAOImpl

public ResourceWithUsageByMetricDAOImpl()
Method Detail

findByResourceId

public ResourceWithUsageByMetric findByResourceId(String resourceId)
Specified by:
findByResourceId in interface ResourceWithUsageByMetricDAO

findByResourceId

public ResourceWithUsageByMetric findByResourceId(String resourceId,
                                                  boolean lock)
Description copied from interface: ResourceWithUsageByMetricDAO
If the value of the lock parameter is true, you MUST later unlock the entity by calling unlock.

Specified by:
findByResourceId in interface ResourceWithUsageByMetricDAO
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.