org.silverpeas.quota.service.dao.jdbc
Class JDBCQuotaRequester
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCQuotaRequester
public JDBCQuotaRequester()
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 quotaresourceId
- : 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.