org.silverpeas.quota.service.dao.jdbc
Class JDBCQuotaRequester

java.lang.Object
  extended by org.silverpeas.quota.service.dao.jdbc.JDBCQuotaRequester

public class JDBCQuotaRequester
extends Object

A specific JDBC requester dedicated on the quota persisted in the underlying data source.


Constructor Summary
JDBCQuotaRequester()
           
 
Method Summary
static Quota getByTypeAndResourceId(Connection con, String type, String resourceId)
          Gets the quota that corresponds at all of given parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCQuotaRequester

public JDBCQuotaRequester()
Method Detail

getByTypeAndResourceId

public static Quota getByTypeAndResourceId(Connection con,
                                           String type,
                                           String resourceId)
                                    throws SQLException
Gets the quota that corresponds at all of given parameters

Parameters:
con - : the connection to use for getting the quota.
type - : criteria of the type of quota
resourceId - : criteria of the id of the resource
Returns:
the quota that corresponds at all of given parameters, null otherwise
Throws:
SQLException


Copyright © 2016 Silverpeas. All Rights Reserved.