Class SQLStoreProvider<T extends Store>
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider<T>
-
- edu.uiuc.ncsa.security.core.configuration.provider.TypedProvider<T>
-
- edu.uiuc.ncsa.security.storage.sql.SQLStoreProvider<T>
-
- All Implemented Interfaces:
CfgEventListener
,EventListener
,javax.inject.Provider<T>
- Direct Known Subclasses:
SQLClientStoreProvider
public abstract class SQLStoreProvider<T extends Store> extends TypedProvider<T>
For creating SQL-based storesCreated by Jeff Gaynor
on 1/10/12 at 2:47 PM
-
-
Constructor Summary
Constructors Modifier Constructor Description SQLStoreProvider()
protected
SQLStoreProvider(ConnectionPoolProvider<? extends ConnectionPool> cpp, String type, String target, MapConverter converter)
protected
SQLStoreProvider(ConnectionPoolProvider<? extends ConnectionPool> cpp, String type, String target, String tablename, MapConverter converter)
protected
SQLStoreProvider(String type, String target)
protected
SQLStoreProvider(org.apache.commons.configuration.tree.ConfigurationNode config, ConnectionPoolProvider<? extends ConnectionPool> cpp, String type, String target, MapConverter converter)
protected
SQLStoreProvider(org.apache.commons.configuration.tree.ConfigurationNode config, ConnectionPoolProvider<? extends ConnectionPool> cpp, String type, String target, String tablename, MapConverter converter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
componentFound(CfgEvent configurationEvent)
protected ConnectionPool
getConnectionPool()
String
getDatabaseName()
String
getPrefix()
String
getSchema()
String
getTablename()
Return the configured tablename if there is one, otherwise return the default.UpkeepConfiguration
getUpkeepConfiguration()
abstract T
newInstance(Table table)
void
setConfig(org.apache.commons.configuration.tree.ConfigurationNode config)
void
setTablename(String tablename)
void
setUpkeepConfiguration(UpkeepConfiguration upkeepConfiguration)
-
Methods inherited from class edu.uiuc.ncsa.security.core.configuration.provider.TypedProvider
checkEvent, getTarget, getType, getTypeAttribute, getTypeAttribute, getTypeBooleanAttribute, getTypeConfig, getTypeIntAttribute, getTypeIntAttribute, setTarget, setType, setTypeConfig, toString
-
Methods inherited from class edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider
addListener, fireComponentFound, getAttribute, getAttribute, getBooleanAttribute, getConfig, getConfigurationAt, getIntAttribute, getIntAttribute, getListeners, hasA, isA, removeListener
-
-
-
-
Field Detail
-
converter
protected MapConverter converter
-
TABLENAME
public static final String TABLENAME
- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
SCHEMA
public static final String SCHEMA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SQLStoreProvider
protected SQLStoreProvider(org.apache.commons.configuration.tree.ConfigurationNode config, ConnectionPoolProvider<? extends ConnectionPool> cpp, String type, String target, MapConverter converter)
-
SQLStoreProvider
protected SQLStoreProvider(org.apache.commons.configuration.tree.ConfigurationNode config, ConnectionPoolProvider<? extends ConnectionPool> cpp, String type, String target, String tablename, MapConverter converter)
-
SQLStoreProvider
protected SQLStoreProvider(ConnectionPoolProvider<? extends ConnectionPool> cpp, String type, String target, MapConverter converter)
-
SQLStoreProvider
protected SQLStoreProvider(ConnectionPoolProvider<? extends ConnectionPool> cpp, String type, String target, String tablename, MapConverter converter)
-
SQLStoreProvider
public SQLStoreProvider()
-
-
Method Detail
-
getSchema
public String getSchema()
-
getPrefix
public String getPrefix()
-
getTablename
public String getTablename()
Return the configured tablename if there is one, otherwise return the default.- Returns:
-
setTablename
public void setTablename(String tablename)
-
getDatabaseName
public String getDatabaseName()
-
getConnectionPool
protected ConnectionPool getConnectionPool()
-
getUpkeepConfiguration
public UpkeepConfiguration getUpkeepConfiguration()
-
setUpkeepConfiguration
public void setUpkeepConfiguration(UpkeepConfiguration upkeepConfiguration)
-
setConfig
public void setConfig(org.apache.commons.configuration.tree.ConfigurationNode config)
- Overrides:
setConfig
in classHierarchicalConfigProvider<T extends Store>
-
-