public class ContextualPooledDataSource extends AbstractPooledDataSource<DataSource,PooledConnection> implements DataSource
| Constructor and Description |
|---|
ContextualPooledDataSource(ContextualPoolNameTranslator poolNameTranslator,
ComponentPool... componentPools) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
void |
shutdown() |
void |
startup() |
getDataSourceClass, getLoginTimeout, getLogWriter, getParentLogger, getPooledConnectionClass, isWrapperFor, setLoginTimeout, setLogWriter, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterisWrapperFor, unwrappublic ContextualPooledDataSource(ContextualPoolNameTranslator poolNameTranslator, ComponentPool... componentPools) throws ComponentPoolException
ComponentPoolExceptionpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password)
getConnection in interface DataSourcepublic void startup()
throws ComponentPoolException
startup in class AbstractPooledDataSource<DataSource,PooledConnection>ComponentPoolExceptionpublic void shutdown()
throws ComponentPoolException
shutdown in class AbstractPooledDataSource<DataSource,PooledConnection>ComponentPoolExceptionCopyright © 2020. All rights reserved.