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, unwrapprotected JDBCConfiguration conf
public Connection getConnection(Properties props) throws SQLException
getConnection in class SimpleDriverDataSourceSQLExceptionpublic void close()
throws SQLException
close in interface CloseableSQLExceptionprotected Connection getDBCPConnection(Properties props) throws SQLException
SQLExceptionprotected DataSource getDBCPDataSource(Properties props)
protected boolean isDBCPDataSource()
protected static boolean isDBCPLoaded(ClassLoader cl)
public void setConfiguration(Configuration conf)
ConfigurablesetConfiguration in interface Configurablepublic void startConfiguration()
ConfigurablestartConfiguration in interface Configurablepublic void endConfiguration()
ConfigurableendConfiguration in interface ConfigurableCopyright © 2006–2022 Apache Software Foundation. All rights reserved.