org.apache.openejb.resource.jdbc.dbcp
Class BasicDataSource

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

public class BasicDataSource
extends org.apache.commons.dbcp.BasicDataSource


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
BasicDataSource()
           
BasicDataSource(String name)
           
 
Method Summary
 void close()
           
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 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)
           
 
Methods inherited from class org.apache.commons.dbcp.BasicDataSource
addConnectionProperty, createConnectionFactory, 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, validateConnectionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDataSource

public BasicDataSource()

BasicDataSource

public BasicDataSource(String name)
Method Detail

getPasswordCipher

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

Returns:
the password codec class

setPasswordCipher

public void setPasswordCipher(String passwordCipher)

Sets the passwordCipher.

Parameters:
passwordCipher - password codec value

getUserName

public String getUserName()

setUserName

public void setUserName(String string)

getJdbcDriver

public String getJdbcDriver()

setJdbcDriver

public void setJdbcDriver(String string)

getJdbcUrl

public String getJdbcUrl()

setJdbcUrl

public void setJdbcUrl(String string)

setDefaultTransactionIsolation

public void setDefaultTransactionIsolation(String s)

setMaxWait

public void setMaxWait(int maxWait)

createDataSource

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

close

public void close()
           throws SQLException
Overrides:
close in class org.apache.commons.dbcp.BasicDataSource
Throws:
SQLException

getParentLogger

public Logger getParentLogger()
                       throws SQLFeatureNotSupportedException
Throws:
SQLFeatureNotSupportedException

setName

public void setName(String name)


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.