Package org.oa4mp.server.api.storage.sql
Class SQLClientStore<V extends org.oa4mp.delegation.common.storage.clients.Client>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<V>
-
- edu.uiuc.ncsa.security.storage.monitored.MonitoredSQLStore<V>
-
- org.oa4mp.delegation.server.storage.BaseClientSQLStore<V>
-
- org.oa4mp.server.api.storage.sql.SQLClientStore<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<V>,edu.uiuc.ncsa.security.storage.MonitoredStoreInterface<V>,Map<edu.uiuc.ncsa.security.core.Identifier,V>,BaseClientStore<V>,ClientStore<V>
public class SQLClientStore<V extends org.oa4mp.delegation.common.storage.clients.Client> extends BaseClientSQLStore<V> implements ClientStore<V>
Created by Jeff Gaynor
on May 16, 2011 at 4:37:15 PM
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_TABLENAME
-
Constructor Summary
Constructors Constructor Description SQLClientStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.uiuc.ncsa.security.storage.data.MapConverter<V>getMapConverter()voidsave(V value)longupdateHook(String action, edu.uiuc.ncsa.security.core.util.AbstractEnvironment environment, List<edu.uiuc.ncsa.security.core.Identifier> identifiers)-
Methods inherited from class org.oa4mp.delegation.server.storage.BaseClientSQLStore
getByApprover, getByField, getByStatus, getCreationTSField, getKeys
-
Methods inherited from class edu.uiuc.ncsa.security.storage.monitored.MonitoredSQLStore
addLastAccessedEventListener, doUpkeep, doUpkeep, fireLastAccessedEvent, gatherStats, get, getLastAccessedEventListeners, getMostRecent, getUpkeepConfiguration, getUuid, hasUpkeepConfiguration, isMonitorEnabled, lastAccessUpdate, setMonitorEnabled, setUpkeepConfiguration
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
checkColumns, checkTable, clear, containsKey, containsValue, crappySQLParser, crappySQLParser, create, depopulate, doRegisterStatement, entrySet, getAll, getDerbyMostRecent, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, remove, remove, removeByID, search, search, search, search, setUpdateValues, size, size, size, toString, update, update, update, values
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLDatabase
destroyConnection, getConnection, getConnectionPool, releaseConnection, rsToMap, setConnectionPool
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.oa4mp.delegation.server.storage.BaseClientStore
getByApprover, getByStatus
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
DEFAULT_TABLENAME
public static final String DEFAULT_TABLENAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SQLClientStore
public SQLClientStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
-
Method Detail
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter<V> getMapConverter()
- Specified by:
getMapConverterin interfaceClientStore<V extends org.oa4mp.delegation.common.storage.clients.Client>- Overrides:
getMapConverterin classedu.uiuc.ncsa.security.storage.sql.SQLStore<V extends org.oa4mp.delegation.common.storage.clients.Client>
-
save
public void save(V value)
-
updateHook
public long updateHook(String action, edu.uiuc.ncsa.security.core.util.AbstractEnvironment environment, List<edu.uiuc.ncsa.security.core.Identifier> identifiers)
- Specified by:
updateHookin interfaceedu.uiuc.ncsa.security.storage.MonitoredStoreInterface<V extends org.oa4mp.delegation.common.storage.clients.Client>- Overrides:
updateHookin classedu.uiuc.ncsa.security.storage.monitored.MonitoredSQLStore<V extends org.oa4mp.delegation.common.storage.clients.Client>
-
-