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

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

public class DbcpDataSource
extends BasicDataSource


Field Summary
protected  DataSource ds
           
 
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
DbcpDataSource(String name, DataSource dataSource)
           
 
Method Summary
protected  org.apache.commons.dbcp.ConnectionFactory createConnectionFactory()
           
 void setJdbcUrl(String url)
           
 
Methods inherited from class org.apache.openejb.resource.jdbc.dbcp.BasicDataSource
close, createDataSource, getJdbcDriver, getJdbcUrl, getParentLogger, getPasswordCipher, getUserName, setDefaultTransactionIsolation, setDelegate, setJdbcDriver, setMaxWait, setName, setPasswordCipher, setUserName, toSQLException
 
Methods inherited from class org.apache.commons.dbcp.BasicDataSource
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, validateConnectionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ds

protected final DataSource ds
Constructor Detail

DbcpDataSource

public DbcpDataSource(String name,
                      DataSource dataSource)
Method Detail

createConnectionFactory

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

setJdbcUrl

public void setJdbcUrl(String url)
Overrides:
setJdbcUrl in class BasicDataSource


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.