public class PooledDataSource extends AbstractPooledDataSource<DataSource,PooledConnection> implements DataSource
| Constructor and Description |
|---|
PooledDataSource(ComponentPool<PooledConnection> componentPool) |
PooledDataSource(String key,
ComponentPool<PooledConnection> componentPool) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
String |
getKey() |
void |
register() |
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 PooledDataSource(ComponentPool<PooledConnection> componentPool)
public PooledDataSource(String key, ComponentPool<PooledConnection> componentPool)
public void register()
public String getKey()
public 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.