Java org.apache.commons.dbcp.datasources PerUserPoolDataSource fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.dbcp.datasources PerUserPoolDataSource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.dbcp.datasources PerUserPoolDataSource.

The text is from its open source code.

Constructor

PerUserPoolDataSource()
Default no-arg constructor for Serialization

Method

voidclose()
Close pool(s) being maintained by this datasource.
ConnectionPoolDataSourcegetConnectionPoolDataSource()
Get the value of connectionPoolDataSource.
StringgetDataSourceName()
Get the name of the ConnectionPoolDataSource which backs this pool.
intgetDefaultMaxActive()
The maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit.
intgetDefaultMaxIdle()
The maximum number of active connections that can remain idle in the pool, without extra ones being released, or negative for no limit.
intgetDefaultMaxWait()
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely.
intgetDefaultTransactionIsolation()
Get the value of defaultTransactionIsolation, which defines the state of connections handed out from this pool.
StringgetDescription()
Get the description.
StringgetJndiEnvironment(String key)
Get the value of jndiEnvironment which is used when instantiating a jndi InitialContext.
intgetLoginTimeout()
Get the value of loginTimeout.
intgetMinEvictableIdleTimeMillis()
Returns the minimum amount of time an object may sit idle in the pool before it is eligable for eviction by the idle object evictor (if any).
intgetNumTestsPerEvictionRun()
Returns the number of objects to examine during each run of the idle object evictor thread (if any).
BooleangetPerUserDefaultAutoCommit(String key)
The keys are usernames and the value is the --.
BooleangetPerUserDefaultReadOnly(String username)
The keys are usernames and the value is the --.
IntegergetPerUserDefaultTransactionIsolation(String username)
The isolation level of connections when returned from getConnection.
IntegergetPerUserMaxActive(String username)
The maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit.
IntegergetPerUserMaxIdle(String username)
The maximum number of active connections that can remain idle in the pool, without extra ones being released, or negative for no limit.
IntegergetPerUserMaxWait(String username)
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely.
intgetTimeBetweenEvictionRunsMillis()
Returns the number of milliseconds to sleep between runs of the idle object evictor thread.
StringgetValidationQuery()
The SQL query that will be used to validate connections from this pool before returning them to the caller.
booleanisDefaultAutoCommit()
Get the value of defaultAutoCommit, which defines the state of connections handed out from this pool.
booleanisDefaultReadOnly()
Get the value of defaultReadOnly, which defines the state of connections handed out from this pool.
booleanisRollbackAfterValidation()
Whether a rollback will be issued after executing the SQL query that will be used to validate connections from this pool before returning them to the caller.
booleanisTestOnBorrow()
booleanisTestOnReturn()
booleanisTestWhileIdle()
voidsetConnectionPoolDataSource(ConnectionPoolDataSource v)
Set the backend ConnectionPoolDataSource.
voidsetDefaultAutoCommit(boolean v)
Set the value of defaultAutoCommit, which defines the state of connections handed out from this pool.
voidsetDefaultMaxActive(int maxActive)
The maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit.
voidsetDefaultMaxIdle(int defaultMaxIdle)
The maximum number of active connections that can remain idle in the pool, without extra ones being released, or negative for no limit.
voidsetDefaultMaxWait(int defaultMaxWait)
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely.
voidsetDefaultReadOnly(boolean v)
Set the value of defaultReadOnly, which defines the state of connections handed out from this pool.
voidsetDefaultTransactionIsolation(int v)
Set the value of defaultTransactionIsolation, which defines the state of connections handed out from this pool.
voidsetMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis)
Sets the minimum amount of time an object may sit idle in the pool before it is eligable for eviction by the idle object evictor (if any).
voidsetNumTestsPerEvictionRun(int numTestsPerEvictionRun)
Sets the number of objects to examine during each run of the idle object evictor thread (if any).
voidsetTestOnBorrow(boolean testOnBorrow)
When true, objects will be {*link PoolableObjectFactory#validateObject validated} before being returned by the {*link #borrowObject} method.
voidsetTestOnReturn(boolean testOnReturn)
When true, objects will be {*link PoolableObjectFactory#validateObject validated} before being returned to the pool within the {*link #returnObject}.
voidsetTestWhileIdle(boolean testWhileIdle)
When true, objects will be {*link PoolableObjectFactory#validateObject validated} by the idle object evictor (if any).
voidsetTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis)
Sets the number of milliseconds to sleep between runs of the idle object evictor thread.
voidsetValidationQuery(String validationQuery)
The SQL query that will be used to validate connections from this pool before returning them to the caller.