public class BasicDataSource
extends org.apache.commons.dbcp2.BasicDataSource
implements java.io.Serializable
Constructor and Description |
---|
BasicDataSource() |
BasicDataSource(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected ConnectionFactory |
createConnectionFactory() |
protected javax.sql.DataSource |
createDataSource() |
java.lang.String |
getJdbcDriver() |
java.lang.String |
getJdbcUrl() |
int |
getLoginTimeout() |
java.util.logging.Logger |
getParentLogger() |
java.lang.String |
getPasswordCipher()
Returns the password codec class name to use to retrieve plain text
password.
|
java.lang.String |
getUserName() |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name) |
void |
setDefaultTransactionIsolation(java.lang.String s) |
void |
setDelegate(javax.sql.CommonDataSource delegate) |
void |
setJdbcDriver(java.lang.String string) |
void |
setJdbcUrl(java.lang.String string) |
void |
setMaxWait(int maxWait) |
void |
setName(java.lang.String name) |
void |
setPassword(java.lang.String password) |
void |
setPasswordCipher(java.lang.String passwordCipher)
Sets the
passwordCipher . |
void |
setUserName(java.lang.String string) |
static java.sql.SQLException |
toSQLException(java.lang.Throwable e) |
public BasicDataSource()
public BasicDataSource(java.lang.String name)
public int getLoginTimeout() throws java.sql.SQLException
java.sql.SQLException
public void setDelegate(javax.sql.CommonDataSource delegate)
protected ConnectionFactory createConnectionFactory() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getPasswordCipher()
public void setPasswordCipher(java.lang.String passwordCipher)
Sets the passwordCipher
.
passwordCipher
- password codec valuepublic void setPassword(java.lang.String password)
public java.lang.String getUserName()
public void setUserName(java.lang.String string)
public java.lang.String getJdbcDriver()
public void setJdbcDriver(java.lang.String string)
public java.lang.String getJdbcUrl()
public void setJdbcUrl(java.lang.String string)
public void setDefaultTransactionIsolation(java.lang.String s)
public void setMaxWait(int maxWait)
protected javax.sql.DataSource createDataSource() throws java.sql.SQLException
java.sql.SQLException
public static java.sql.SQLException toSQLException(java.lang.Throwable e)
public void close() throws java.sql.SQLException
java.sql.SQLException
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
java.sql.SQLFeatureNotSupportedException
public void setName(java.lang.String name)
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)