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.
|
Connection |
getConnection(Properties props) |
protected Connection |
getDBCPConnection(Properties props) |
protected DataSource |
getDBCPDataSource(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(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.dbcp2.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 Connection getConnection(Properties props) throws SQLException
getConnection
in class SimpleDriverDataSource
SQLException
public void close() throws SQLException
close
in interface Closeable
SQLException
protected Connection getDBCPConnection(Properties props) throws SQLException
SQLException
protected DataSource getDBCPDataSource(Properties props)
protected boolean isDBCPDataSource()
protected static boolean isDBCPLoaded(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–2022 Apache Software Foundation. All rights reserved.