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>
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 TokenForgetokenForge
-
Constructor Summary
Constructors Modifier Constructor Description protectedSQLBaseTransactionStore(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 Vget(AccessToken accessToken)Vget(AuthorizationGrant tempCred)StringgetCreationTSField()protected VgetTransaction(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.BasicTransactionTablegetTransactionTable()-
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, removeByID, save, 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 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, removeByID, save, search, search, search, search, size, update, 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:
getin interfaceTransactionStore<V extends BasicTransaction>
-
get
public V get(AccessToken accessToken)
- Specified by:
getin interfaceTransactionStore<V extends BasicTransaction>
-
getCreationTSField
public String getCreationTSField()
- Specified by:
getCreationTSFieldin classedu.uiuc.ncsa.security.storage.sql.SQLStore<V extends BasicTransaction>
-
-