org.apache.openejb.resource.jdbc
Class BasicManagedDataSource

java.lang.Object
  extended by org.apache.commons.dbcp.BasicDataSource
      extended by org.apache.commons.dbcp.managed.BasicManagedDataSource
          extended by org.apache.openejb.resource.jdbc.BasicManagedDataSource
All Implemented Interfaces:
java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource
Direct Known Subclasses:
ManagedDataSourceWithRecovery

public class BasicManagedDataSource
extends org.apache.commons.dbcp.managed.BasicManagedDataSource


Field Summary
 
Fields inherited from class 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 Summary
BasicManagedDataSource()
           
 
Method Summary
protected  javax.sql.DataSource createDataSource()
           
 java.lang.String getJdbcDriver()
           
 java.lang.String getJdbcUrl()
           
 java.lang.String getPasswordCipher()
          Returns the password codec class name to use to retrieve plain text password.
 java.lang.String getUserName()
           
 void setDefaultTransactionIsolation(java.lang.String s)
           
 void setJdbcDriver(java.lang.String string)
           
 void setJdbcUrl(java.lang.String string)
           
 void setPasswordCipher(java.lang.String passwordCipher)
           Sets the passwordCipher.
 void setUserName(java.lang.String string)
           
protected  void wrapTransactionManager()
           
 
Methods inherited from class org.apache.commons.dbcp.managed.BasicManagedDataSource
createConnectionFactory, createDataSourceInstance, createPoolableConnectionFactory, getTransactionManager, getTransactionRegistry, getXADataSource, getXaDataSourceInstance, setTransactionManager, setXADataSource, setXaDataSourceInstance
 
Methods inherited from class org.apache.commons.dbcp.BasicDataSource
addConnectionProperty, close, createConnectionPool, 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, validateConnectionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicManagedDataSource

public BasicManagedDataSource()
Method Detail

getPasswordCipher

public java.lang.String getPasswordCipher()
Returns the password codec class name to use to retrieve plain text password.

Returns:
the password codec class

setPasswordCipher

public void setPasswordCipher(java.lang.String passwordCipher)

Sets the passwordCipher.

Parameters:
passwordCipher - password codec value

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String string)

getJdbcDriver

public java.lang.String getJdbcDriver()

setJdbcDriver

public void setJdbcDriver(java.lang.String string)

getJdbcUrl

public java.lang.String getJdbcUrl()

setJdbcUrl

public void setJdbcUrl(java.lang.String string)

setDefaultTransactionIsolation

public void setDefaultTransactionIsolation(java.lang.String s)

createDataSource

protected javax.sql.DataSource createDataSource()
                                         throws java.sql.SQLException
Overrides:
createDataSource in class org.apache.commons.dbcp.BasicDataSource
Throws:
java.sql.SQLException

wrapTransactionManager

protected void wrapTransactionManager()


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.