Package com.impossibl.jdbc.spy
Class ConnectionPoolDataSourceRelay
- java.lang.Object
-
- com.impossibl.jdbc.spy.ConnectionPoolDataSourceRelay
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoolDataSourceRelay(javax.sql.ConnectionPoolDataSource target, com.impossibl.jdbc.spy.ConnectionPoolDataSourceListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLoginTimeout()java.io.PrintWritergetLogWriter()java.util.logging.LoggergetParentLogger()javax.sql.PooledConnectiongetPooledConnection()javax.sql.PooledConnectiongetPooledConnection(java.lang.String user, java.lang.String password)javax.sql.ConnectionPoolDataSourcegetTarget()voidsetLoginTimeout(int seconds)voidsetLogWriter(java.io.PrintWriter out)
-
-
-
Method Detail
-
getTarget
public javax.sql.ConnectionPoolDataSource getTarget()
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException- Specified by:
getPooledConnectionin interfacejavax.sql.ConnectionPoolDataSource- Throws:
java.sql.SQLException
-
setLoginTimeout
public void setLoginTimeout(int seconds) throws java.sql.SQLException- Specified by:
setLoginTimeoutin interfacejavax.sql.CommonDataSource- Specified by:
setLoginTimeoutin interfacejavax.sql.ConnectionPoolDataSource- Throws:
java.sql.SQLException
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException- Specified by:
getPooledConnectionin interfacejavax.sql.ConnectionPoolDataSource- Throws:
java.sql.SQLException
-
setLogWriter
public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException- Specified by:
setLogWriterin interfacejavax.sql.CommonDataSource- Specified by:
setLogWriterin interfacejavax.sql.ConnectionPoolDataSource- Throws:
java.sql.SQLException
-
getParentLogger
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException- Specified by:
getParentLoggerin interfacejavax.sql.CommonDataSource- Throws:
java.sql.SQLFeatureNotSupportedException
-
getLoginTimeout
public int getLoginTimeout() throws java.sql.SQLException- Specified by:
getLoginTimeoutin interfacejavax.sql.CommonDataSource- Specified by:
getLoginTimeoutin interfacejavax.sql.ConnectionPoolDataSource- Throws:
java.sql.SQLException
-
getLogWriter
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException- Specified by:
getLogWriterin interfacejavax.sql.CommonDataSource- Specified by:
getLogWriterin interfacejavax.sql.ConnectionPoolDataSource- Throws:
java.sql.SQLException
-
-