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 CommonDataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public PooledConnection getPooledConnection() throws SQLException
getPooledConnection
in interface ConnectionPoolDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
public PooledConnection getPooledConnection(String user, String password) throws SQLException
getPooledConnection
in interface ConnectionPoolDataSource
SQLException