public class ConnectionPoolDataSourceRelay extends Object implements Relay<ConnectionPoolDataSource>, ConnectionPoolDataSource
| Modifier and Type | Field and Description |
|---|---|
com.impossibl.jdbc.spy.ConnectionPoolDataSourceListener |
listener |
ConnectionPoolDataSource |
target |
| Constructor and Description |
|---|
ConnectionPoolDataSourceRelay(ConnectionPoolDataSource target,
com.impossibl.jdbc.spy.ConnectionPoolDataSourceListener listener) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
PooledConnection |
getPooledConnection() |
PooledConnection |
getPooledConnection(String user,
String password) |
ConnectionPoolDataSource |
getTarget() |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
public ConnectionPoolDataSource target
public com.impossibl.jdbc.spy.ConnectionPoolDataSourceListener listener
public ConnectionPoolDataSourceRelay(ConnectionPoolDataSource target, com.impossibl.jdbc.spy.ConnectionPoolDataSourceListener listener)
public ConnectionPoolDataSource getTarget()
getTarget in interface Relay<ConnectionPoolDataSource>public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic PooledConnection getPooledConnection() throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic PooledConnection getPooledConnection(String user, String password) throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLException