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

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

Introduction

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

The text is from its open source code.

Constructor

Method

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.

voidsetDefaultReadOnly(boolean defaultReadOnly)

Sets defaultReadonly property.

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

voidsetDefaultTransactionIsolationString(String defaultTransactionIsolation)
Set the default transaction isolation level from a string value, based on the settings and values in java.sql.Connection
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.

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.

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.
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.