Package com.impossibl.jdbc.spy
Class DataSourceTracer
- java.lang.Object
-
- com.impossibl.jdbc.spy.DataSourceTracer
-
public class DataSourceTracer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DataSourceTracer(TraceOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetConnection(java.lang.Throwable cause)voidgetConnection(java.lang.Throwable cause, java.lang.String username, java.lang.String password)voidgetConnection(java.sql.Connection result)voidgetConnection(java.sql.Connection result, java.lang.String username, java.lang.String password)voidgetLoginTimeout(int result)voidgetLoginTimeout(java.lang.Throwable cause)voidgetLogWriter(java.io.PrintWriter result)voidgetLogWriter(java.lang.Throwable cause)voidgetParentLogger(java.lang.Throwable cause)voidgetParentLogger(java.util.logging.Logger result)voidisWrapperFor(boolean result, java.lang.Class<?> iface)voidisWrapperFor(java.lang.Throwable cause, java.lang.Class<?> iface)com.impossibl.jdbc.spy.ConnectionListenernewConnectionListener()voidsetLoginTimeout(int seconds)voidsetLoginTimeout(java.lang.Throwable cause, int seconds)voidsetLogWriter(java.io.PrintWriter out)voidsetLogWriter(java.lang.Throwable cause, java.io.PrintWriter out)voidtrace(Trace trace)<T> voidunwrap(java.lang.Throwable cause, java.lang.Class<T> iface)<T> voidunwrap(T result, java.lang.Class<T> iface)
-
-
-
Constructor Detail
-
DataSourceTracer
public DataSourceTracer(TraceOutput out)
-
-
Method Detail
-
trace
public void trace(Trace trace)
-
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
-
setLogWriter
public void setLogWriter(java.lang.Throwable cause, java.io.PrintWriter out)
-
isWrapperFor
public void isWrapperFor(boolean result, java.lang.Class<?> iface)
-
isWrapperFor
public void isWrapperFor(java.lang.Throwable cause, java.lang.Class<?> iface)
-
getLogWriter
public void getLogWriter(java.io.PrintWriter result)
-
getLogWriter
public void getLogWriter(java.lang.Throwable cause)
-
getParentLogger
public void getParentLogger(java.util.logging.Logger result)
-
getParentLogger
public void getParentLogger(java.lang.Throwable cause)
-
setLoginTimeout
public void setLoginTimeout(int seconds)
-
setLoginTimeout
public void setLoginTimeout(java.lang.Throwable cause, int seconds)
-
getConnection
public void getConnection(java.sql.Connection result)
-
getConnection
public void getConnection(java.lang.Throwable cause)
-
getLoginTimeout
public void getLoginTimeout(int result)
-
getLoginTimeout
public void getLoginTimeout(java.lang.Throwable cause)
-
unwrap
public <T> void unwrap(T result, java.lang.Class<T> iface)
-
unwrap
public <T> void unwrap(java.lang.Throwable cause, java.lang.Class<T> iface)
-
getConnection
public void getConnection(java.sql.Connection result, java.lang.String username, java.lang.String password)
-
getConnection
public void getConnection(java.lang.Throwable cause, java.lang.String username, java.lang.String password)
-
newConnectionListener
public com.impossibl.jdbc.spy.ConnectionListener newConnectionListener()
-
-