public class DBCPDriverDataSource extends SimpleDriverDataSource implements Configurable, Closeable
Modifier and Type | Field and Description |
---|---|
protected JDBCConfiguration |
conf |
_eloc, _loc
Constructor and Description |
---|
DBCPDriverDataSource() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object.
|
java.sql.Connection |
getConnection(java.util.Properties props) |
protected java.sql.Connection |
getDBCPConnection(java.util.Properties props) |
protected javax.sql.DataSource |
getDBCPDataSource(java.util.Properties props) |
protected boolean |
isDBCPDataSource()
This method should not throw an exception, as it is called by
AutoDriverDataSource to determine if user already specified
to use Commons DBCP.
|
protected static boolean |
isDBCPLoaded(java.lang.ClassLoader cl)
This method should not throw an exception, as it is called by
AutoDriverDataSource to determine if it should use DBCP or not
based on if org.apache.commons.dbcp.BasicDataSource can be loaded.
|
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties.
|
void |
startConfiguration()
Invoked before bean property configuration is begun on this object.
|
createConnectionDecorators, getClassLoader, getConnection, getConnection, getConnectionDriverName, getConnectionFactoryProperties, getConnectionPassword, getConnectionProperties, getConnectionURL, getConnectionUserName, getLoginTimeout, getLogWriter, getParentLogger, getSimpleConnection, getSimpleDriver, initDBDictionary, isWrapperFor, setClassLoader, setConnectionDriverName, setConnectionFactoryProperties, setConnectionPassword, setConnectionProperties, setConnectionURL, setConnectionUserName, setLoginTimeout, setLogWriter, unwrap
protected JDBCConfiguration conf
public java.sql.Connection getConnection(java.util.Properties props) throws java.sql.SQLException
getConnection
in class SimpleDriverDataSource
java.sql.SQLException
public void close() throws java.sql.SQLException
protected java.sql.Connection getDBCPConnection(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
protected javax.sql.DataSource getDBCPDataSource(java.util.Properties props)
protected boolean isDBCPDataSource()
protected static boolean isDBCPLoaded(java.lang.ClassLoader cl)
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.