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