public class BasicDataSource
extends org.apache.commons.dbcp.BasicDataSource
closed, connectionInitSqls, connectionPool, connectionProperties, dataSource, defaultAutoCommit, defaultCatalog, defaultReadOnly, defaultTransactionIsolation, driverClassLoader, driverClassName, initialSize, logWriter, maxActive, maxIdle, maxOpenPreparedStatements, maxWait, minEvictableIdleTimeMillis, minIdle, numTestsPerEvictionRun, password, poolPreparedStatements, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, url, username, validationQuery, validationQueryTimeout| Constructor and Description |
|---|
BasicDataSource() |
BasicDataSource(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.apache.commons.dbcp.ConnectionFactory |
createConnectionFactory() |
protected DataSource |
createDataSource() |
String |
getJdbcDriver() |
String |
getJdbcUrl() |
Logger |
getParentLogger() |
String |
getPasswordCipher()
Returns the password codec class name to use to retrieve plain text
password.
|
String |
getUserName() |
void |
setDefaultTransactionIsolation(String s) |
void |
setDelegate(CommonDataSource delegate) |
void |
setJdbcDriver(String string) |
void |
setJdbcUrl(String string) |
void |
setMaxWait(int maxWait) |
void |
setName(String name) |
void |
setPasswordCipher(String passwordCipher)
Sets the
passwordCipher. |
void |
setUserName(String string) |
static SQLException |
toSQLException(Throwable e) |
addConnectionProperty, createConnectionPool, createDataSourceInstance, createPoolableConnectionFactory, getConnection, getConnection, getConnectionInitSqls, getDefaultAutoCommit, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDriverClassLoader, getDriverClassName, getInitialSize, getLogAbandoned, getLoginTimeout, getLogWriter, getMaxActive, getMaxIdle, getMaxOpenPreparedStatements, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getPassword, getRemoveAbandoned, getRemoveAbandonedTimeout, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getValidationQuery, getValidationQueryTimeout, isAccessToUnderlyingConnectionAllowed, isClosed, isPoolPreparedStatements, isWrapperFor, log, removeConnectionProperty, setAccessToUnderlyingConnectionAllowed, setConnectionInitSqls, setConnectionProperties, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultTransactionIsolation, setDriverClassLoader, setDriverClassName, setInitialSize, setLogAbandoned, setLoginTimeout, setLogWriter, setMaxActive, setMaxIdle, setMaxOpenPreparedStatements, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setPassword, setPoolPreparedStatements, setRemoveAbandoned, setRemoveAbandonedTimeout, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUsername, setValidationQuery, setValidationQueryTimeout, unwrap, validateConnectionFactorypublic BasicDataSource()
public BasicDataSource(String name)
public void setDelegate(CommonDataSource delegate)
protected org.apache.commons.dbcp.ConnectionFactory createConnectionFactory()
throws SQLException
createConnectionFactory in class org.apache.commons.dbcp.BasicDataSourceSQLExceptionpublic String getPasswordCipher()
public void setPasswordCipher(String passwordCipher)
Sets the passwordCipher.
passwordCipher - password codec valuepublic String getUserName()
public void setUserName(String string)
public String getJdbcDriver()
public void setJdbcDriver(String string)
public String getJdbcUrl()
public void setJdbcUrl(String string)
public void setDefaultTransactionIsolation(String s)
public void setMaxWait(int maxWait)
protected DataSource createDataSource() throws SQLException
createDataSource in class org.apache.commons.dbcp.BasicDataSourceSQLExceptionpublic static SQLException toSQLException(Throwable e)
public void close()
throws SQLException
close in class org.apache.commons.dbcp.BasicDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
SQLFeatureNotSupportedExceptionpublic void setName(String name)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.