public class OmnivorousConnectionPoolDataSource<D extends CommonDataSource,P extends PooledConnection> extends Object implements ConnectionPoolDataSource
| Constructor and Description |
|---|
OmnivorousConnectionPoolDataSource(D dataSource,
Class<P> pooledConnectionClass) |
OmnivorousConnectionPoolDataSource(D dataSource,
Class<P> pooledConnectionClass,
int maxStatements) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
P |
getPooledConnection() |
P |
getPooledConnection(String user,
String password) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
public OmnivorousConnectionPoolDataSource(D dataSource, Class<P> pooledConnectionClass)
public P getPooledConnection() throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic P getPooledConnection(String user, String password) throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionCopyright © 2017. All rights reserved.