Example usage for Java org.apache.commons.dbcp.managed BasicManagedDataSource fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addConnectionProperty(String name, String value) Add a custom connection property to the set that will be passed to our JDBC driver. |
int | getInitialSize() Returns the initial size of the connection pool. |
PrintWriter | getLogWriter() Returns the log writer being used by this data source. Calls #createDataSource() , so has the side effect of initializing the connection pool. |
XADataSource | getXaDataSourceInstance() Gets the XADataSource instance used by the XAConnectionFactory. |
void | setAccessToUnderlyingConnectionAllowed(boolean allow) Sets the value of the accessToUnderlyingConnectionAllowed property. |
void | setDefaultAutoCommit(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. |
void | setDefaultCatalog(String defaultCatalog) Sets the default catalog. Note: this method currently has no effect once the pool has been initialized. |
void | setDefaultReadOnly(boolean defaultReadOnly) Sets defaultReadonly property. Note: this method currently has no effect once the pool has been initialized. |
void | setDefaultTransactionIsolation(int defaultTransactionIsolation) Sets the default transaction isolation state for returned connections. Note: this method currently has no effect once the pool has been initialized. |
void | setDriverClassName(String driverClassName) Sets the jdbc driver class name. Note: this method currently has no effect once the pool has been initialized. |
void | setInitialSize(int initialSize) Sets the initial size of the connection pool. Note: this method currently has no effect once the pool has been initialized. |
void | setLogAbandoned(boolean logAbandoned) |
void | setMaxActive(int maxActive) Sets the maximum number of active connections that can be allocated at the same time. |
void | setMaxIdle(int maxIdle) Sets the maximum number of connections that can remail idle in the pool. |
void | setMaxOpenPreparedStatements(int maxOpenStatements) Sets the value of the #maxOpenPreparedStatements property. Note: this method currently has no effect once the pool has been initialized. |
void | setMaxWait(long maxWait) Sets the maxWait property. |
void | setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis) Sets the #minEvictableIdleTimeMillis property. |
void | setMinIdle(int minIdle) Sets the minimum number of idle connections in the pool. |
void | setNumTestsPerEvictionRun(int numTestsPerEvictionRun) Sets the value of the #numTestsPerEvictionRun property. |
void | setPassword(String password) Sets the #password . Note: this method currently has no effect once the pool has been initialized. |
void | setPoolPreparedStatements(boolean poolingStatements) Sets whether to pool statements or not. Note: this method currently has no effect once the pool has been initialized. |
void | setRemoveAbandoned(boolean removeAbandoned) |
void | setRemoveAbandonedTimeout(int removeAbandonedTimeout) |
void | setTestOnBorrow(boolean testOnBorrow) Sets the #testOnBorrow property. |
void | setTestOnReturn(boolean testOnReturn) Sets the testOnReturn property. |
void | setTestWhileIdle(boolean testWhileIdle) Sets the testWhileIdle property. |
void | setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) Sets the #timeBetweenEvictionRunsMillis property. |
void | setTransactionManager(TransactionManager transactionManager) Sets the required transaction manager property. |
void | setUrl(String url) Sets the #url . Note: this method currently has no effect once the pool has been initialized. |
void | setUsername(String username) Sets the #username . Note: this method currently has no effect once the pool has been initialized. |
void | setValidationQuery(String validationQuery) Sets the #validationQuery . Note: this method currently has no effect once the pool has been initialized. |
void | setXaDataSourceInstance(XADataSource xaDataSourceInstance) Sets the XADataSource instance used by the XAConnectionFactory. Note: this method currently has no effect once the pool has been initialized. |