Class DerbyConnectionPoolProvider
- java.lang.Object
- 
- edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider<T>
- 
- edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<ConnectionPool>
- 
- edu.uiuc.ncsa.security.storage.sql.derby.DerbyConnectionPoolProvider
 
 
 
- 
- All Implemented Interfaces:
- ConfigurationTags,- CfgEventListener,- StorageConfigurationTags,- EventListener,- javax.inject.Provider<ConnectionPool>
 
 public class DerbyConnectionPoolProvider extends ConnectionPoolProvider<ConnectionPool> implements StorageConfigurationTags Created by Jeff Gaynor 
 on 5/2/12 at 1:46 PM
- 
- 
Field Summary- 
Fields inherited from class edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProviderBOOT_PASSWORD, CONNECTION_CLEANUP_ENABLE, CONNECTION_CLEANUP_INTERVAL, CONNECTION_ENABLE_QUEUE, CONNECTION_IDLE_TIMEOUT, CONNECTION_MAX, CONNECTION_QUEUE_INTERVAL, database, DATABASE, DEFAULT_CLEANUP_ENABLE, DEFAULT_CLEANUP_INTERVAL, DEFAULT_IDLE_TIMEOUT, DEFAULT_MAX_CONNECTIONS, DEFAULT_QUEUE_INTERVAL, DERBY_CREATE_SCRIPT, DERBY_FS_DEFAULT_BOOT_PASSWORD, DERBY_FS_DEFAULT_PASSWORD, DERBY_FS_DEFAULT_SCHEMA, DERBY_FS_DEFAULT_USER, DERBY_STORE_TYPE, driver, DRIVER, host, HOST, PARAMETERS, PASSWORD, port, PORT, schema, SCHEMA, USE_SSL, USERNAME, useSSL
 - 
Fields inherited from interface edu.uiuc.ncsa.security.core.configuration.ConfigurationTagsDEBUG
 - 
Fields inherited from interface edu.uiuc.ncsa.security.core.configuration.StorageConfigurationTagsAGGREGATE_STORE, DERBY_STORE, DERBY_STORE_TYPE_FILE, DERBY_STORE_TYPE_MEMORY, DERBY_STORE_TYPE_SERVER, FILE_STORE, FS_DATA, FS_INDEX, FS_PATH, FS_REMOVE_EMPTY_FILES, FS_REMOVE_FAILED_FILES, MARIADB_STORE, MEMORY_STORE, MYSQL_STORE, POSTGRESQL_STORE, SQL_DATABASE, SQL_PREFIX, SQL_SCHEMA, SQL_TABLENAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description DerbyConnectionPoolProvider()DerbyConnectionPoolProvider(String database)DerbyConnectionPoolProvider(String database, String schema)DerbyConnectionPoolProvider(String database, String schema, String host, int port, String driver, boolean useSSL)
 - 
Method Summary- 
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvidercheckTime, checkValue, checkValue, checkValue, checkValue, checkValue, getDatabase, getDriver, getHost, getPort, getSchema, isUseSSL, setPoolParameters
 - 
Methods inherited from class edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvideraddListener, fireComponentFound, getAttribute, getAttribute, getBooleanAttribute, getCFNode, getConfig, getConfigurationAt, getIntAttribute, getIntAttribute, getListeners, hasA, hasCFNode, isA, removeListener, setCFNode, setConfig
 
- 
 
- 
- 
- 
Constructor Detail- 
DerbyConnectionPoolProviderpublic DerbyConnectionPoolProvider() 
 - 
DerbyConnectionPoolProviderpublic DerbyConnectionPoolProvider(String database, String schema, String host, int port, String driver, boolean useSSL) 
 - 
DerbyConnectionPoolProviderpublic DerbyConnectionPoolProvider(String database) 
 
- 
 - 
Method Detail- 
newInstancepublic static DerbyConnectionPoolProvider newInstance() Use this for builder/factory pattern.- Returns:
 
 - 
getStoreTypepublic String getStoreType() 
 - 
setStoreTypepublic DerbyConnectionPoolProvider setStoreType(String storeType) 
 - 
getUsernamepublic String getUsername() 
 - 
setUsernamepublic DerbyConnectionPoolProvider setUsername(String username) 
 - 
getPasswordpublic String getPassword() 
 - 
setPasswordpublic DerbyConnectionPoolProvider setPassword(String password) 
 - 
getBootPasswordpublic String getBootPassword() 
 - 
setBootPasswordpublic DerbyConnectionPoolProvider setBootPassword(String bootPassword) 
 - 
getRootDirectorypublic String getRootDirectory() 
 - 
setRootDirectorypublic DerbyConnectionPoolProvider setRootDirectory(String rootDirectory) 
 - 
checkEventprotected boolean checkEvent(CfgEvent cfgEvent) Description copied from class:HierarchicalConfigProviderChecks that the event applies to this component. The type is the component and the target is Normally you set the component key as a static field in the class (e.g. "mysql") and pass it along in the theCfgEventListener.componentFound(CfgEvent)method. If checkEvent fails, do no more processing with the event.- Specified by:
- checkEventin class- HierarchicalConfigProvider<ConnectionPool>
- Returns:
 
 - 
componentFoundpublic Object componentFound(CfgEvent configurationEvent) - Specified by:
- componentFoundin interface- CfgEventListener
 
 - 
getCreateScriptPathpublic String getCreateScriptPath() 
 - 
getpublic ConnectionPool get() - Specified by:
- getin interface- javax.inject.Provider<ConnectionPool>
 
 - 
createNewPoolpublic DerbyConnectionPool createNewPool(DerbyConnectionParameters x) So this may be overriden.- Parameters:
- x-
- Returns:
 
 - 
getCreateScriptpublic List<String> getCreateScript() The default creation script is injected- Returns:
 
 - 
setCreateScriptpublic DerbyConnectionPoolProvider setCreateScript(List<String> createScript) 
 - 
setHostpublic DerbyConnectionPoolProvider setHost(String host) - Overrides:
- setHostin class- ConnectionPoolProvider<ConnectionPool>
 
 - 
setDriverpublic DerbyConnectionPoolProvider setDriver(String driver) - Overrides:
- setDriverin class- ConnectionPoolProvider<ConnectionPool>
 
 - 
setPortpublic DerbyConnectionPoolProvider setPort(int port) - Overrides:
- setPortin class- ConnectionPoolProvider<ConnectionPool>
 
 - 
setSchemapublic DerbyConnectionPoolProvider setSchema(String schema) - Overrides:
- setSchemain class- ConnectionPoolProvider<ConnectionPool>
 
 - 
setDatabasepublic DerbyConnectionPoolProvider setDatabase(String database) - Overrides:
- setDatabasein class- ConnectionPoolProvider<ConnectionPool>
 
 - 
setUseSSLpublic DerbyConnectionPoolProvider setUseSSL(boolean useSSL) - Overrides:
- setUseSSLin class- ConnectionPoolProvider<ConnectionPool>
 
 
- 
 
-