public class JDBCDiskCachePoolAccessManager extends Object
jcs.jdbcconnectionpool.MyPool.attributes.userName=MyUserName jcs.jdbcconnectionpool.MyPool.attributes.password=MyPassword jcs.jdbcconnectionpool.MyPool.attributes.url=MyUrl jcs.jdbcconnectionpool.MyPool.attributes.maxActive=MyMaxActive jcs.jdbcconnectionpool.MyPool.attributes.driverClassName=MyDriverClassName
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_PREFIX
.attributes
|
static String |
POOL_CONFIGURATION_PREFIX
props prefix
|
Modifier and Type | Method and Description |
---|---|
protected JDBCDiskCachePoolAccessAttributes |
configurePoolAccessAttributes(String poolName,
Properties props)
Configures the attributes using the properties.
|
static JDBCDiskCachePoolAccess |
createPoolAccess(JDBCDiskCacheAttributes cattr)
Creates a JDBCDiskCachePoolAccess object from the JDBCDiskCacheAttributes.
|
static JDBCDiskCachePoolAccess |
createPoolAccess(JDBCDiskCachePoolAccessAttributes poolAttributes)
Creates a JDBCDiskCachePoolAccess object from the JDBCDiskCachePoolAccessAttributes.
|
static JDBCDiskCachePoolAccess |
createPoolAccess(String driverClassName,
String poolName,
String fullURL,
String userName,
String password,
int maxActive)
Creates a pool access object and registers the driver.
|
static JDBCDiskCachePoolAccessManager |
getInstance()
returns a singleton instance
|
JDBCDiskCachePoolAccess |
getJDBCDiskCachePoolAccess(String poolName,
Properties props)
Returns a pool for the name if one has been created.
|
public static final String POOL_CONFIGURATION_PREFIX
public static final String ATTRIBUTE_PREFIX
public static JDBCDiskCachePoolAccessManager getInstance()
public JDBCDiskCachePoolAccess getJDBCDiskCachePoolAccess(String poolName, Properties props) throws SQLException
poolName
- the name of the poolprops
- the configuration properties for the poolSQLException
- if a database access error occursprotected JDBCDiskCachePoolAccessAttributes configurePoolAccessAttributes(String poolName, Properties props)
poolName
- the name of the poolprops
- the configuration properties for the poolpublic static JDBCDiskCachePoolAccess createPoolAccess(String driverClassName, String poolName, String fullURL, String userName, String password, int maxActive) throws SQLException
driverClassName
- poolName
- fullURL
- = (url + database)userName
- password
- maxActive
- SQLException
- if a database access error occurspublic static JDBCDiskCachePoolAccess createPoolAccess(JDBCDiskCacheAttributes cattr) throws SQLException
cattr
- SQLException
- if a database access error occurspublic static JDBCDiskCachePoolAccess createPoolAccess(JDBCDiskCachePoolAccessAttributes poolAttributes) throws SQLException
poolAttributes
- SQLException
- if a database access error occursCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.