public class PerUserPoolDataSource extends InstanceKeyDataSource
A pooling DataSource appropriate for deployment within
J2EE environment.
instanceKey, UNKNOWN_TRANSACTIONISOLATION| Constructor and Description |
|---|
PerUserPoolDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.datanucleus.store.rdbms.datasource.dbcp.datasources.PooledConnectionManager |
getConnectionManager(org.datanucleus.store.rdbms.datasource.dbcp.datasources.UserPassKey upkey) |
int |
getDefaultMaxActive() |
int |
getDefaultMaxIdle() |
int |
getDefaultMaxWait() |
int |
getNumActive() |
int |
getNumActive(String username,
String password) |
int |
getNumIdle() |
int |
getNumIdle(String username,
String password) |
Logger |
getParentLogger() |
Boolean |
getPerUserDefaultAutoCommit(String key) |
Boolean |
getPerUserDefaultReadOnly(String username) |
Integer |
getPerUserDefaultTransactionIsolation(String username) |
Integer |
getPerUserMaxActive(String username) |
Integer |
getPerUserMaxIdle(String username) |
Integer |
getPerUserMaxWait(String username) |
protected org.datanucleus.store.rdbms.datasource.dbcp.datasources.PooledConnectionAndInfo |
getPooledConnectionAndInfo(String username,
String password) |
Reference |
getReference()
Returns a
PerUserPoolDataSource Reference. |
void |
setDefaultMaxActive(int maxActive) |
void |
setDefaultMaxIdle(int defaultMaxIdle) |
void |
setDefaultMaxWait(int defaultMaxWait) |
void |
setPerUserDefaultAutoCommit(String username,
Boolean value) |
void |
setPerUserDefaultReadOnly(String username,
Boolean value) |
void |
setPerUserDefaultTransactionIsolation(String username,
Integer value) |
void |
setPerUserMaxActive(String username,
Integer value) |
void |
setPerUserMaxIdle(String username,
Integer value) |
void |
setPerUserMaxWait(String username,
Integer value) |
protected void |
setupDefaults(Connection con,
String username) |
assertInitializationAllowed, getConnection, getConnection, getConnectionPoolDataSource, getDataSourceName, getDefaultTransactionIsolation, getDescription, getJndiEnvironment, getLoginTimeout, getLogWriter, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getValidationQuery, isDefaultAutoCommit, isDefaultReadOnly, isRollbackAfterValidation, isTestOnBorrow, isTestOnReturn, isTestWhileIdle, isWrapperFor, setConnectionPoolDataSource, setDataSourceName, setDefaultAutoCommit, setDefaultReadOnly, setDefaultTransactionIsolation, setDescription, setJndiEnvironment, setLoginTimeout, setLogWriter, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setRollbackAfterValidation, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setValidationQuery, testCPDS, unwrap, whenExhaustedActionpublic void close()
close in class InstanceKeyDataSourcepublic int getDefaultMaxActive()
public void setDefaultMaxActive(int maxActive)
public int getDefaultMaxIdle()
public void setDefaultMaxIdle(int defaultMaxIdle)
public int getDefaultMaxWait()
public void setDefaultMaxWait(int defaultMaxWait)
public Integer getPerUserDefaultTransactionIsolation(String username)
public void setPerUserDefaultTransactionIsolation(String username, Integer value)
public int getNumActive()
public int getNumIdle()
protected org.datanucleus.store.rdbms.datasource.dbcp.datasources.PooledConnectionAndInfo getPooledConnectionAndInfo(String username, String password) throws SQLException
getPooledConnectionAndInfo in class InstanceKeyDataSourceSQLExceptionprotected void setupDefaults(Connection con, String username) throws SQLException
setupDefaults in class InstanceKeyDataSourceSQLExceptionprotected org.datanucleus.store.rdbms.datasource.dbcp.datasources.PooledConnectionManager getConnectionManager(org.datanucleus.store.rdbms.datasource.dbcp.datasources.UserPassKey upkey)
getConnectionManager in class InstanceKeyDataSourcepublic Reference getReference() throws NamingException
PerUserPoolDataSource Reference.getReference in interface ReferenceablegetReference in class InstanceKeyDataSourceNamingExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
SQLFeatureNotSupportedExceptionCopyright © 2015. All rights reserved.