Class SQLBaseTransactionStore<V extends BasicTransaction>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<V>
-
- org.oa4mp.delegation.common.storage.transactions.SQLBaseTransactionStore<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
,TransactionStore<V>
- Direct Known Subclasses:
SQLServiceTransactionStore
public abstract class SQLBaseTransactionStore<V extends BasicTransaction> extends edu.uiuc.ncsa.security.storage.sql.SQLStore<V> implements TransactionStore<V>
Generic SQL implementation. This is SQL:2003 compliant and should work with most major vendors databases without change.Created by Jeff Gaynor
on May 10, 2010 at 3:45:05 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected TokenForge
tokenForge
-
Constructor Summary
Constructors Modifier Constructor Description protected
SQLBaseTransactionStore(TokenForge tokenForge, 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 V
get(AccessToken accessToken)
V
get(AuthorizationGrant tempCred)
V
get(Verifier verifier)
String
getCreationTSField()
protected V
getTransaction(String identifier, String statement)
Since there are several possible statements (by temp cred, access token, verifier) that will return a transaction, this method will handle them all.BasicTransactionTable
getTransactionTable()
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
checkColumns, checkTable, clear, containsKey, containsValue, crappySQLParser, crappySQLParser, create, depopulate, doRegisterStatement, entrySet, get, getAll, getDerbyMostRecent, getMapConverter, getMostRecent, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, remove, remove, save, search, search, search, setUpdateValues, size, size, size, toString, 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 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
-
Methods inherited from interface edu.uiuc.ncsa.security.core.Store
create, getAll, getMostRecent, getXMLConverter, register, remove, save, search, search, search, size, update
-
Methods inherited from interface org.oa4mp.delegation.common.storage.TransactionStore
getByProxyID, getMapConverter
-
-
-
-
Field Detail
-
tokenForge
protected TokenForge tokenForge
-
-
Constructor Detail
-
SQLBaseTransactionStore
protected SQLBaseTransactionStore(TokenForge tokenForge, 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
-
getTransactionTable
public BasicTransactionTable getTransactionTable()
-
getTransaction
protected V getTransaction(String identifier, String statement)
Since there are several possible statements (by temp cred, access token, verifier) that will return a transaction, this method will handle them all.- Parameters:
identifier
-statement
-- Returns:
-
get
public V get(AuthorizationGrant tempCred)
- Specified by:
get
in interfaceTransactionStore<V extends BasicTransaction>
-
get
public V get(AccessToken accessToken)
- Specified by:
get
in interfaceTransactionStore<V extends BasicTransaction>
-
get
public V get(Verifier verifier)
- Specified by:
get
in interfaceTransactionStore<V extends BasicTransaction>
-
getCreationTSField
public String getCreationTSField()
- Specified by:
getCreationTSField
in classedu.uiuc.ncsa.security.storage.sql.SQLStore<V extends BasicTransaction>
-
-