edu.uiuc.ncsa.myproxy.oa4mp.client.storage
Class SQLAssetStore

java.lang.Object
  extended by edu.uiuc.ncsa.security.storage.sql.SQLDatabase
      extended by edu.uiuc.ncsa.security.storage.sql.SQLStore<Asset>
          extended by edu.uiuc.ncsa.myproxy.oa4mp.client.storage.SQLAssetStore
All Implemented Interfaces:
AssetStore, edu.uiuc.ncsa.security.core.Store<Asset>, Map<edu.uiuc.ncsa.security.core.Identifier,Asset>

public class SQLAssetStore
extends edu.uiuc.ncsa.security.storage.sql.SQLStore<Asset>
implements AssetStore

Created by Jeff Gaynor
on 1/28/13 at 2:11 PM


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static String DEFAULT_TABLENAME
           
 
Fields inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
converter, identifiableProvider
 
Constructor Summary
SQLAssetStore()
           
SQLAssetStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider<Asset> assetProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<Asset> converter)
           
 
Method Summary
 Asset get(String identifier)
          Simplifying calls.
 void save(String identifier, Asset asset)
           
 
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
clear, containsKey, containsValue, create, depopulate, entrySet, get, getTable, isEmpty, keySet, populate, put, putAll, register, remove, rsToMap, save, size, size, toString, update, values
 
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLDatabase
destroyConnection, getConnection, getConnectionPool, releaseConnection, setConnectionPool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.uiuc.ncsa.security.core.Store
create, register, save, update
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

DEFAULT_TABLENAME

public static final String DEFAULT_TABLENAME
See Also:
Constant Field Values
Constructor Detail

SQLAssetStore

public SQLAssetStore()

SQLAssetStore

public SQLAssetStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool,
                     edu.uiuc.ncsa.security.storage.sql.internals.Table table,
                     javax.inject.Provider<Asset> assetProvider,
                     edu.uiuc.ncsa.security.storage.data.MapConverter<Asset> converter)
Method Detail

get

public Asset get(String identifier)
Description copied from interface: AssetStore
Simplifying calls. These should simply convert the string to an identifier.

Specified by:
get in interface AssetStore
Returns:

save

public void save(String identifier,
                 Asset asset)
Specified by:
save in interface AssetStore


Copyright © 2013. All Rights Reserved.