Package com.impossibl.jdbc.spy
Class StatementTracer
- java.lang.Object
-
- com.impossibl.jdbc.spy.StatementTracer
-
public class StatementTracer extends Object
-
-
Constructor Summary
Constructors Constructor Description StatementTracer(TraceOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBatch(String sql)
void
addBatch(Throwable cause, String sql)
void
cancel()
void
cancel(Throwable cause)
void
clearBatch()
void
clearBatch(Throwable cause)
void
clearWarnings()
void
clearWarnings(Throwable cause)
void
close()
void
close(Throwable cause)
void
closeOnCompletion()
void
closeOnCompletion(Throwable cause)
void
execute(boolean result, String sql)
void
execute(boolean result, String sql, int autoGeneratedKeys)
void
execute(boolean result, String sql, int[] columnIndexes)
void
execute(boolean result, String sql, String[] columnNames)
void
execute(Throwable cause, String sql)
void
execute(Throwable cause, String sql, int autoGeneratedKeys)
void
execute(Throwable cause, String sql, int[] columnIndexes)
void
execute(Throwable cause, String sql, String[] columnNames)
void
executeBatch(int[] result)
void
executeBatch(Throwable cause)
void
executeLargeBatch(long[] result)
void
executeLargeBatch(Throwable cause)
void
executeLargeUpdate(long result, String sql)
void
executeLargeUpdate(long result, String sql, int autoGeneratedKeys)
void
executeLargeUpdate(long result, String sql, int[] columnIndexes)
void
executeLargeUpdate(long result, String sql, String[] columnNames)
void
executeLargeUpdate(Throwable cause, String sql)
void
executeLargeUpdate(Throwable cause, String sql, int autoGeneratedKeys)
void
executeLargeUpdate(Throwable cause, String sql, int[] columnIndexes)
void
executeLargeUpdate(Throwable cause, String sql, String[] columnNames)
void
executeQuery(Throwable cause, String sql)
void
executeQuery(ResultSet result, String sql)
void
executeUpdate(int result, String sql)
void
executeUpdate(int result, String sql, int autoGeneratedKeys)
void
executeUpdate(int result, String sql, int[] columnIndexes)
void
executeUpdate(int result, String sql, String[] columnNames)
void
executeUpdate(Throwable cause, String sql)
void
executeUpdate(Throwable cause, String sql, int autoGeneratedKeys)
void
executeUpdate(Throwable cause, String sql, int[] columnIndexes)
void
executeUpdate(Throwable cause, String sql, String[] columnNames)
void
getConnection(Throwable cause)
void
getConnection(Connection result)
void
getFetchDirection(int result)
void
getFetchDirection(Throwable cause)
void
getFetchSize(int result)
void
getFetchSize(Throwable cause)
void
getGeneratedKeys(Throwable cause)
void
getGeneratedKeys(ResultSet result)
void
getLargeMaxRows(long result)
void
getLargeMaxRows(Throwable cause)
void
getLargeUpdateCount(long result)
void
getLargeUpdateCount(Throwable cause)
void
getMaxFieldSize(int result)
void
getMaxFieldSize(Throwable cause)
void
getMaxRows(int result)
void
getMaxRows(Throwable cause)
void
getMoreResults(boolean result)
void
getMoreResults(boolean result, int current)
void
getMoreResults(Throwable cause)
void
getMoreResults(Throwable cause, int current)
void
getQueryTimeout(int result)
void
getQueryTimeout(Throwable cause)
void
getResultSet(Throwable cause)
void
getResultSet(ResultSet result)
void
getResultSetConcurrency(int result)
void
getResultSetConcurrency(Throwable cause)
void
getResultSetHoldability(int result)
void
getResultSetHoldability(Throwable cause)
void
getResultSetType(int result)
void
getResultSetType(Throwable cause)
void
getUpdateCount(int result)
void
getUpdateCount(Throwable cause)
void
getWarnings(Throwable cause)
void
getWarnings(SQLWarning result)
void
isClosed(boolean result)
void
isClosed(Throwable cause)
void
isCloseOnCompletion(boolean result)
void
isCloseOnCompletion(Throwable cause)
void
isPoolable(boolean result)
void
isPoolable(Throwable cause)
void
isWrapperFor(boolean result, Class<?> iface)
void
isWrapperFor(Throwable cause, Class<?> iface)
com.impossibl.jdbc.spy.ConnectionListener
newConnectionListener()
com.impossibl.jdbc.spy.ResultSetListener
newResultSetListener()
void
setCursorName(String name)
void
setCursorName(Throwable cause, String name)
void
setEscapeProcessing(boolean enable)
void
setEscapeProcessing(Throwable cause, boolean enable)
void
setFetchDirection(int direction)
void
setFetchDirection(Throwable cause, int direction)
void
setFetchSize(int rows)
void
setFetchSize(Throwable cause, int rows)
void
setLargeMaxRows(long max)
void
setLargeMaxRows(Throwable cause, long max)
void
setMaxFieldSize(int max)
void
setMaxFieldSize(Throwable cause, int max)
void
setMaxRows(int max)
void
setMaxRows(Throwable cause, int max)
void
setPoolable(boolean poolable)
void
setPoolable(Throwable cause, boolean poolable)
void
setQueryTimeout(int seconds)
void
setQueryTimeout(Throwable cause, int seconds)
void
trace(Trace trace)
<T> void
unwrap(Throwable cause, Class<T> iface)
<T> void
unwrap(T result, Class<T> iface)
-
-
-
Constructor Detail
-
StatementTracer
public StatementTracer(TraceOutput out)
-
-
Method Detail
-
trace
public void trace(Trace trace)
-
getResultSetType
public void getResultSetType(int result)
-
getResultSetType
public void getResultSetType(Throwable cause)
-
executeLargeUpdate
public void executeLargeUpdate(long result, String sql, int[] columnIndexes)
-
executeLargeUpdate
public void executeLargeUpdate(Throwable cause, String sql, int[] columnIndexes)
-
execute
public void execute(boolean result, String sql, int[] columnIndexes)
-
getResultSetHoldability
public void getResultSetHoldability(int result)
-
getResultSetHoldability
public void getResultSetHoldability(Throwable cause)
-
setMaxRows
public void setMaxRows(int max)
-
setMaxRows
public void setMaxRows(Throwable cause, int max)
-
getResultSetConcurrency
public void getResultSetConcurrency(int result)
-
getResultSetConcurrency
public void getResultSetConcurrency(Throwable cause)
-
getLargeMaxRows
public void getLargeMaxRows(long result)
-
getLargeMaxRows
public void getLargeMaxRows(Throwable cause)
-
close
public void close()
-
close
public void close(Throwable cause)
-
executeUpdate
public void executeUpdate(int result, String sql, int autoGeneratedKeys)
-
execute
public void execute(boolean result, String sql, int autoGeneratedKeys)
-
getMaxFieldSize
public void getMaxFieldSize(int result)
-
getMaxFieldSize
public void getMaxFieldSize(Throwable cause)
-
setPoolable
public void setPoolable(boolean poolable)
-
setPoolable
public void setPoolable(Throwable cause, boolean poolable)
-
getMoreResults
public void getMoreResults(boolean result)
-
getMoreResults
public void getMoreResults(Throwable cause)
-
getWarnings
public void getWarnings(SQLWarning result)
-
getWarnings
public void getWarnings(Throwable cause)
-
getUpdateCount
public void getUpdateCount(int result)
-
getUpdateCount
public void getUpdateCount(Throwable cause)
-
clearBatch
public void clearBatch()
-
clearBatch
public void clearBatch(Throwable cause)
-
getLargeUpdateCount
public void getLargeUpdateCount(long result)
-
getLargeUpdateCount
public void getLargeUpdateCount(Throwable cause)
-
executeUpdate
public void executeUpdate(int result, String sql)
-
executeUpdate
public void executeUpdate(int result, String sql, int[] columnIndexes)
-
getFetchDirection
public void getFetchDirection(int result)
-
getFetchDirection
public void getFetchDirection(Throwable cause)
-
executeLargeUpdate
public void executeLargeUpdate(long result, String sql)
-
isPoolable
public void isPoolable(boolean result)
-
isPoolable
public void isPoolable(Throwable cause)
-
getQueryTimeout
public void getQueryTimeout(int result)
-
getQueryTimeout
public void getQueryTimeout(Throwable cause)
-
setFetchDirection
public void setFetchDirection(int direction)
-
setFetchDirection
public void setFetchDirection(Throwable cause, int direction)
-
setQueryTimeout
public void setQueryTimeout(int seconds)
-
setQueryTimeout
public void setQueryTimeout(Throwable cause, int seconds)
-
setFetchSize
public void setFetchSize(int rows)
-
setFetchSize
public void setFetchSize(Throwable cause, int rows)
-
unwrap
public <T> void unwrap(T result, Class<T> iface)
-
getMaxRows
public void getMaxRows(int result)
-
getMaxRows
public void getMaxRows(Throwable cause)
-
setCursorName
public void setCursorName(String name)
-
executeLargeUpdate
public void executeLargeUpdate(long result, String sql, int autoGeneratedKeys)
-
executeLargeUpdate
public void executeLargeUpdate(Throwable cause, String sql, int autoGeneratedKeys)
-
clearWarnings
public void clearWarnings()
-
clearWarnings
public void clearWarnings(Throwable cause)
-
getConnection
public void getConnection(Connection result)
-
getConnection
public void getConnection(Throwable cause)
-
closeOnCompletion
public void closeOnCompletion()
-
closeOnCompletion
public void closeOnCompletion(Throwable cause)
-
executeLargeUpdate
public void executeLargeUpdate(Throwable cause, String sql, String[] columnNames)
-
isClosed
public void isClosed(boolean result)
-
isClosed
public void isClosed(Throwable cause)
-
isCloseOnCompletion
public void isCloseOnCompletion(boolean result)
-
isCloseOnCompletion
public void isCloseOnCompletion(Throwable cause)
-
setMaxFieldSize
public void setMaxFieldSize(int max)
-
setMaxFieldSize
public void setMaxFieldSize(Throwable cause, int max)
-
getGeneratedKeys
public void getGeneratedKeys(ResultSet result)
-
getGeneratedKeys
public void getGeneratedKeys(Throwable cause)
-
executeBatch
public void executeBatch(int[] result)
-
executeBatch
public void executeBatch(Throwable cause)
-
executeLargeBatch
public void executeLargeBatch(long[] result)
-
executeLargeBatch
public void executeLargeBatch(Throwable cause)
-
isWrapperFor
public void isWrapperFor(boolean result, Class<?> iface)
-
cancel
public void cancel()
-
cancel
public void cancel(Throwable cause)
-
getFetchSize
public void getFetchSize(int result)
-
getFetchSize
public void getFetchSize(Throwable cause)
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable)
-
setEscapeProcessing
public void setEscapeProcessing(Throwable cause, boolean enable)
-
getResultSet
public void getResultSet(ResultSet result)
-
getResultSet
public void getResultSet(Throwable cause)
-
execute
public void execute(boolean result, String sql)
-
getMoreResults
public void getMoreResults(boolean result, int current)
-
getMoreResults
public void getMoreResults(Throwable cause, int current)
-
setLargeMaxRows
public void setLargeMaxRows(long max)
-
setLargeMaxRows
public void setLargeMaxRows(Throwable cause, long max)
-
addBatch
public void addBatch(String sql)
-
newResultSetListener
public com.impossibl.jdbc.spy.ResultSetListener newResultSetListener()
-
newConnectionListener
public com.impossibl.jdbc.spy.ConnectionListener newConnectionListener()
-
-