public class ContextualPooledDataSource extends AbstractPooledDataSource<DataSource,PooledConnection> implements DataSource
| Constructor and Description |
|---|
ContextualPooledDataSource(ContextualPoolNameTranslator poolNameTranslator,
ComponentPool<? extends PooledConnection>... 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<? extends PooledConnection>... 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 © 2017. All rights reserved.