public class BasicManagedDataSource
extends org.apache.commons.dbcp2.managed.BasicManagedDataSource
implements java.io.Serializable
Constructor and Description |
---|
BasicManagedDataSource(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected ConnectionFactory |
createConnectionFactory() |
protected javax.sql.DataSource |
createDataSource() |
protected javax.sql.DataSource |
createDataSourceInstance() |
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 |
setJdbcDriver(java.lang.String string) |
void |
setJdbcUrl(java.lang.String string) |
void |
setMaxWait(int maxWait) |
void |
setPassword(java.lang.String password) |
void |
setPasswordCipher(java.lang.String passwordCipher)
Sets the
passwordCipher . |
void |
setUserName(java.lang.String string) |
protected void |
wrapTransactionManager() |
protected javax.sql.DataSource createDataSourceInstance() throws java.sql.SQLException
java.sql.SQLException
public int getLoginTimeout() throws java.sql.SQLException
java.sql.SQLException
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
protected void wrapTransactionManager()
public void close() throws java.sql.SQLException
java.sql.SQLException
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
java.sql.SQLFeatureNotSupportedException
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)