Package com.impossibl.jdbc.spy
Class StatementTracer
- java.lang.Object
-
- com.impossibl.jdbc.spy.StatementTracer
-
public class StatementTracer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StatementTracer(TraceOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBatch(java.lang.String sql)voidaddBatch(java.lang.Throwable cause, java.lang.String sql)voidcancel()voidcancel(java.lang.Throwable cause)voidclearBatch()voidclearBatch(java.lang.Throwable cause)voidclearWarnings()voidclearWarnings(java.lang.Throwable cause)voidclose()voidclose(java.lang.Throwable cause)voidcloseOnCompletion()voidcloseOnCompletion(java.lang.Throwable cause)voidexecute(boolean result, java.lang.String sql)voidexecute(boolean result, java.lang.String sql, int autoGeneratedKeys)voidexecute(boolean result, java.lang.String sql, int[] columnIndexes)voidexecute(boolean result, java.lang.String sql, java.lang.String[] columnNames)voidexecute(java.lang.Throwable cause, java.lang.String sql)voidexecute(java.lang.Throwable cause, java.lang.String sql, int autoGeneratedKeys)voidexecute(java.lang.Throwable cause, java.lang.String sql, int[] columnIndexes)voidexecute(java.lang.Throwable cause, java.lang.String sql, java.lang.String[] columnNames)voidexecuteBatch(int[] result)voidexecuteBatch(java.lang.Throwable cause)voidexecuteLargeBatch(long[] result)voidexecuteLargeBatch(java.lang.Throwable cause)voidexecuteLargeUpdate(long result, java.lang.String sql)voidexecuteLargeUpdate(long result, java.lang.String sql, int autoGeneratedKeys)voidexecuteLargeUpdate(long result, java.lang.String sql, int[] columnIndexes)voidexecuteLargeUpdate(long result, java.lang.String sql, java.lang.String[] columnNames)voidexecuteLargeUpdate(java.lang.Throwable cause, java.lang.String sql)voidexecuteLargeUpdate(java.lang.Throwable cause, java.lang.String sql, int autoGeneratedKeys)voidexecuteLargeUpdate(java.lang.Throwable cause, java.lang.String sql, int[] columnIndexes)voidexecuteLargeUpdate(java.lang.Throwable cause, java.lang.String sql, java.lang.String[] columnNames)voidexecuteQuery(java.lang.Throwable cause, java.lang.String sql)voidexecuteQuery(java.sql.ResultSet result, java.lang.String sql)voidexecuteUpdate(int result, java.lang.String sql)voidexecuteUpdate(int result, java.lang.String sql, int autoGeneratedKeys)voidexecuteUpdate(int result, java.lang.String sql, int[] columnIndexes)voidexecuteUpdate(int result, java.lang.String sql, java.lang.String[] columnNames)voidexecuteUpdate(java.lang.Throwable cause, java.lang.String sql)voidexecuteUpdate(java.lang.Throwable cause, java.lang.String sql, int autoGeneratedKeys)voidexecuteUpdate(java.lang.Throwable cause, java.lang.String sql, int[] columnIndexes)voidexecuteUpdate(java.lang.Throwable cause, java.lang.String sql, java.lang.String[] columnNames)voidgetConnection(java.lang.Throwable cause)voidgetConnection(java.sql.Connection result)voidgetFetchDirection(int result)voidgetFetchDirection(java.lang.Throwable cause)voidgetFetchSize(int result)voidgetFetchSize(java.lang.Throwable cause)voidgetGeneratedKeys(java.lang.Throwable cause)voidgetGeneratedKeys(java.sql.ResultSet result)voidgetLargeMaxRows(long result)voidgetLargeMaxRows(java.lang.Throwable cause)voidgetLargeUpdateCount(long result)voidgetLargeUpdateCount(java.lang.Throwable cause)voidgetMaxFieldSize(int result)voidgetMaxFieldSize(java.lang.Throwable cause)voidgetMaxRows(int result)voidgetMaxRows(java.lang.Throwable cause)voidgetMoreResults(boolean result)voidgetMoreResults(boolean result, int current)voidgetMoreResults(java.lang.Throwable cause)voidgetMoreResults(java.lang.Throwable cause, int current)voidgetQueryTimeout(int result)voidgetQueryTimeout(java.lang.Throwable cause)voidgetResultSet(java.lang.Throwable cause)voidgetResultSet(java.sql.ResultSet result)voidgetResultSetConcurrency(int result)voidgetResultSetConcurrency(java.lang.Throwable cause)voidgetResultSetHoldability(int result)voidgetResultSetHoldability(java.lang.Throwable cause)voidgetResultSetType(int result)voidgetResultSetType(java.lang.Throwable cause)voidgetUpdateCount(int result)voidgetUpdateCount(java.lang.Throwable cause)voidgetWarnings(java.lang.Throwable cause)voidgetWarnings(java.sql.SQLWarning result)voidisClosed(boolean result)voidisClosed(java.lang.Throwable cause)voidisCloseOnCompletion(boolean result)voidisCloseOnCompletion(java.lang.Throwable cause)voidisPoolable(boolean result)voidisPoolable(java.lang.Throwable cause)voidisWrapperFor(boolean result, java.lang.Class<?> iface)voidisWrapperFor(java.lang.Throwable cause, java.lang.Class<?> iface)com.impossibl.jdbc.spy.ConnectionListenernewConnectionListener()com.impossibl.jdbc.spy.ResultSetListenernewResultSetListener()voidsetCursorName(java.lang.String name)voidsetCursorName(java.lang.Throwable cause, java.lang.String name)voidsetEscapeProcessing(boolean enable)voidsetEscapeProcessing(java.lang.Throwable cause, boolean enable)voidsetFetchDirection(int direction)voidsetFetchDirection(java.lang.Throwable cause, int direction)voidsetFetchSize(int rows)voidsetFetchSize(java.lang.Throwable cause, int rows)voidsetLargeMaxRows(long max)voidsetLargeMaxRows(java.lang.Throwable cause, long max)voidsetMaxFieldSize(int max)voidsetMaxFieldSize(java.lang.Throwable cause, int max)voidsetMaxRows(int max)voidsetMaxRows(java.lang.Throwable cause, int max)voidsetPoolable(boolean poolable)voidsetPoolable(java.lang.Throwable cause, boolean poolable)voidsetQueryTimeout(int seconds)voidsetQueryTimeout(java.lang.Throwable cause, int seconds)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
-
StatementTracer
public StatementTracer(TraceOutput out)
-
-
Method Detail
-
trace
public void trace(Trace trace)
-
getResultSetConcurrency
public void getResultSetConcurrency(int result)
-
getResultSetConcurrency
public void getResultSetConcurrency(java.lang.Throwable cause)
-
addBatch
public void addBatch(java.lang.String sql)
-
addBatch
public void addBatch(java.lang.Throwable cause, java.lang.String sql)
-
setQueryTimeout
public void setQueryTimeout(int seconds)
-
setQueryTimeout
public void setQueryTimeout(java.lang.Throwable cause, int seconds)
-
getFetchDirection
public void getFetchDirection(int result)
-
getFetchDirection
public void getFetchDirection(java.lang.Throwable cause)
-
getWarnings
public void getWarnings(java.sql.SQLWarning result)
-
getWarnings
public void getWarnings(java.lang.Throwable cause)
-
setFetchSize
public void setFetchSize(int rows)
-
setFetchSize
public void setFetchSize(java.lang.Throwable cause, int rows)
-
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)
-
executeLargeUpdate
public void executeLargeUpdate(long result, java.lang.String sql, int[] columnIndexes)
-
executeLargeUpdate
public void executeLargeUpdate(java.lang.Throwable cause, java.lang.String sql, int[] columnIndexes)
-
clearBatch
public void clearBatch()
-
clearBatch
public void clearBatch(java.lang.Throwable cause)
-
getLargeUpdateCount
public void getLargeUpdateCount(long result)
-
getLargeUpdateCount
public void getLargeUpdateCount(java.lang.Throwable cause)
-
executeLargeBatch
public void executeLargeBatch(long[] result)
-
executeLargeBatch
public void executeLargeBatch(java.lang.Throwable cause)
-
setMaxFieldSize
public void setMaxFieldSize(int max)
-
setMaxFieldSize
public void setMaxFieldSize(java.lang.Throwable cause, int max)
-
getResultSetType
public void getResultSetType(int result)
-
getResultSetType
public void getResultSetType(java.lang.Throwable cause)
-
execute
public void execute(boolean result, java.lang.String sql, int autoGeneratedKeys)
-
execute
public void execute(java.lang.Throwable cause, java.lang.String sql, int autoGeneratedKeys)
-
closeOnCompletion
public void closeOnCompletion()
-
closeOnCompletion
public void closeOnCompletion(java.lang.Throwable cause)
-
getResultSet
public void getResultSet(java.sql.ResultSet result)
-
getResultSet
public void getResultSet(java.lang.Throwable cause)
-
getConnection
public void getConnection(java.sql.Connection result)
-
getConnection
public void getConnection(java.lang.Throwable cause)
-
executeLargeUpdate
public void executeLargeUpdate(long result, java.lang.String sql)
-
executeLargeUpdate
public void executeLargeUpdate(java.lang.Throwable cause, java.lang.String sql)
-
execute
public void execute(boolean result, java.lang.String sql, int[] columnIndexes)
-
execute
public void execute(java.lang.Throwable cause, java.lang.String sql, int[] columnIndexes)
-
executeUpdate
public void executeUpdate(int result, java.lang.String sql, int[] columnIndexes)
-
executeUpdate
public void executeUpdate(java.lang.Throwable cause, java.lang.String sql, int[] columnIndexes)
-
clearWarnings
public void clearWarnings()
-
clearWarnings
public void clearWarnings(java.lang.Throwable cause)
-
cancel
public void cancel()
-
cancel
public void cancel(java.lang.Throwable cause)
-
executeLargeUpdate
public void executeLargeUpdate(long result, java.lang.String sql, int autoGeneratedKeys)
-
executeLargeUpdate
public void executeLargeUpdate(java.lang.Throwable cause, java.lang.String sql, int autoGeneratedKeys)
-
executeUpdate
public void executeUpdate(int result, java.lang.String sql, java.lang.String[] columnNames)
-
executeUpdate
public void executeUpdate(java.lang.Throwable cause, java.lang.String sql, java.lang.String[] columnNames)
-
getGeneratedKeys
public void getGeneratedKeys(java.sql.ResultSet result)
-
getGeneratedKeys
public void getGeneratedKeys(java.lang.Throwable cause)
-
getMoreResults
public void getMoreResults(boolean result)
-
getMoreResults
public void getMoreResults(java.lang.Throwable cause)
-
execute
public void execute(boolean result, java.lang.String sql)
-
execute
public void execute(java.lang.Throwable cause, java.lang.String sql)
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable)
-
setEscapeProcessing
public void setEscapeProcessing(java.lang.Throwable cause, boolean enable)
-
executeLargeUpdate
public void executeLargeUpdate(long result, java.lang.String sql, java.lang.String[] columnNames)
-
executeLargeUpdate
public void executeLargeUpdate(java.lang.Throwable cause, java.lang.String sql, java.lang.String[] columnNames)
-
setCursorName
public void setCursorName(java.lang.String name)
-
setCursorName
public void setCursorName(java.lang.Throwable cause, java.lang.String name)
-
getResultSetHoldability
public void getResultSetHoldability(int result)
-
getResultSetHoldability
public void getResultSetHoldability(java.lang.Throwable cause)
-
executeQuery
public void executeQuery(java.sql.ResultSet result, java.lang.String sql)
-
executeQuery
public void executeQuery(java.lang.Throwable cause, java.lang.String sql)
-
setFetchDirection
public void setFetchDirection(int direction)
-
setFetchDirection
public void setFetchDirection(java.lang.Throwable cause, int direction)
-
close
public void close()
-
close
public void close(java.lang.Throwable cause)
-
getQueryTimeout
public void getQueryTimeout(int result)
-
getQueryTimeout
public void getQueryTimeout(java.lang.Throwable cause)
-
getUpdateCount
public void getUpdateCount(int result)
-
getUpdateCount
public void getUpdateCount(java.lang.Throwable cause)
-
executeBatch
public void executeBatch(int[] result)
-
executeBatch
public void executeBatch(java.lang.Throwable cause)
-
getMoreResults
public void getMoreResults(boolean result, int current)
-
getMoreResults
public void getMoreResults(java.lang.Throwable cause, int current)
-
isCloseOnCompletion
public void isCloseOnCompletion(boolean result)
-
isCloseOnCompletion
public void isCloseOnCompletion(java.lang.Throwable cause)
-
isWrapperFor
public void isWrapperFor(boolean result, java.lang.Class<?> iface)
-
isWrapperFor
public void isWrapperFor(java.lang.Throwable cause, java.lang.Class<?> iface)
-
setPoolable
public void setPoolable(boolean poolable)
-
setPoolable
public void setPoolable(java.lang.Throwable cause, boolean poolable)
-
executeUpdate
public void executeUpdate(int result, java.lang.String sql)
-
executeUpdate
public void executeUpdate(java.lang.Throwable cause, java.lang.String sql)
-
setLargeMaxRows
public void setLargeMaxRows(long max)
-
setLargeMaxRows
public void setLargeMaxRows(java.lang.Throwable cause, long max)
-
getMaxRows
public void getMaxRows(int result)
-
getMaxRows
public void getMaxRows(java.lang.Throwable cause)
-
isClosed
public void isClosed(boolean result)
-
isClosed
public void isClosed(java.lang.Throwable cause)
-
execute
public void execute(boolean result, java.lang.String sql, java.lang.String[] columnNames)
-
execute
public void execute(java.lang.Throwable cause, java.lang.String sql, java.lang.String[] columnNames)
-
executeUpdate
public void executeUpdate(int result, java.lang.String sql, int autoGeneratedKeys)
-
executeUpdate
public void executeUpdate(java.lang.Throwable cause, java.lang.String sql, int autoGeneratedKeys)
-
getFetchSize
public void getFetchSize(int result)
-
getFetchSize
public void getFetchSize(java.lang.Throwable cause)
-
isPoolable
public void isPoolable(boolean result)
-
isPoolable
public void isPoolable(java.lang.Throwable cause)
-
getMaxFieldSize
public void getMaxFieldSize(int result)
-
getMaxFieldSize
public void getMaxFieldSize(java.lang.Throwable cause)
-
setMaxRows
public void setMaxRows(int max)
-
setMaxRows
public void setMaxRows(java.lang.Throwable cause, int max)
-
getLargeMaxRows
public void getLargeMaxRows(long result)
-
getLargeMaxRows
public void getLargeMaxRows(java.lang.Throwable cause)
-
newResultSetListener
public com.impossibl.jdbc.spy.ResultSetListener newResultSetListener()
-
newConnectionListener
public com.impossibl.jdbc.spy.ConnectionListener newConnectionListener()
-
-