Java org.apache.commons.dbcp.managed BasicManagedDataSource fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Subclass

org.apache.commons.dbcp.managed.BasicManagedDataSource has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidaddConnectionProperty(String name, String value)
Add a custom connection property to the set that will be passed to our JDBC driver.
intgetInitialSize()
Returns the initial size of the connection pool.
PrintWritergetLogWriter()

Returns the log writer being used by this data source.

Calls #createDataSource() , so has the side effect of initializing the connection pool.

XADataSourcegetXaDataSourceInstance()
Gets the XADataSource instance used by the XAConnectionFactory.
voidsetAccessToUnderlyingConnectionAllowed(boolean allow)

Sets the value of the accessToUnderlyingConnectionAllowed property.

voidsetDefaultAutoCommit(boolean defaultAutoCommit)

Sets default auto-commit state of connections returned by this datasource.

Note: this method currently has no effect once the pool has been initialized.

voidsetDefaultCatalog(String defaultCatalog)

Sets the default catalog.

Note: this method currently has no effect once the pool has been initialized.

voidsetDefaultReadOnly(boolean defaultReadOnly)

Sets defaultReadonly property.

Note: this method currently has no effect once the pool has been initialized.

voidsetDefaultTransactionIsolation(int defaultTransactionIsolation)

Sets the default transaction isolation state for returned connections.

Note: this method currently has no effect once the pool has been initialized.

voidsetDriverClassName(String driverClassName)

Sets the jdbc driver class name.

Note: this method currently has no effect once the pool has been initialized.

voidsetInitialSize(int initialSize)

Sets the initial size of the connection pool.

Note: this method currently has no effect once the pool has been initialized.

voidsetLogAbandoned(boolean logAbandoned)
voidsetMaxActive(int maxActive)
Sets the maximum number of active connections that can be allocated at the same time.
voidsetMaxIdle(int maxIdle)
Sets the maximum number of connections that can remail idle in the pool.
voidsetMaxOpenPreparedStatements(int maxOpenStatements)

Sets the value of the #maxOpenPreparedStatements property.

Note: this method currently has no effect once the pool has been initialized.

voidsetMaxWait(long maxWait)
Sets the maxWait property.
voidsetMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
Sets the #minEvictableIdleTimeMillis property.
voidsetMinIdle(int minIdle)
Sets the minimum number of idle connections in the pool.
voidsetNumTestsPerEvictionRun(int numTestsPerEvictionRun)
Sets the value of the #numTestsPerEvictionRun property.
voidsetPassword(String password)

Sets the #password .

Note: this method currently has no effect once the pool has been initialized.

voidsetPoolPreparedStatements(boolean poolingStatements)

Sets whether to pool statements or not.

Note: this method currently has no effect once the pool has been initialized.

voidsetRemoveAbandoned(boolean removeAbandoned)
voidsetRemoveAbandonedTimeout(int removeAbandonedTimeout)
voidsetTestOnBorrow(boolean testOnBorrow)
Sets the #testOnBorrow property.
voidsetTestOnReturn(boolean testOnReturn)
Sets the testOnReturn property.
voidsetTestWhileIdle(boolean testWhileIdle)
Sets the testWhileIdle property.
voidsetTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
Sets the #timeBetweenEvictionRunsMillis property.
voidsetTransactionManager(TransactionManager transactionManager)
Sets the required transaction manager property.
voidsetUrl(String url)

Sets the #url .

Note: this method currently has no effect once the pool has been initialized.

voidsetUsername(String username)

Sets the #username .

Note: this method currently has no effect once the pool has been initialized.

voidsetValidationQuery(String validationQuery)

Sets the #validationQuery .

Note: this method currently has no effect once the pool has been initialized.

voidsetXaDataSourceInstance(XADataSource xaDataSourceInstance)

Sets the XADataSource instance used by the XAConnectionFactory.

Note: this method currently has no effect once the pool has been initialized.