Package com.impossibl.jdbc.spy
Class ConnectionTracer
- java.lang.Object
-
- com.impossibl.jdbc.spy.ConnectionTracer
-
public class ConnectionTracer extends Object
-
-
Constructor Summary
Constructors Constructor Description ConnectionTracer(TraceOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort(Throwable cause, Executor executor)
void
abort(Executor executor)
void
clearWarnings()
void
clearWarnings(Throwable cause)
void
close()
void
close(Throwable cause)
void
commit()
void
commit(Throwable cause)
void
createArrayOf(Throwable cause, String typeName, Object[] elements)
void
createArrayOf(Array result, String typeName, Object[] elements)
void
createBlob(Throwable cause)
void
createBlob(Blob result)
void
createClob(Throwable cause)
void
createClob(Clob result)
void
createNClob(Throwable cause)
void
createNClob(NClob result)
void
createSQLXML(Throwable cause)
void
createSQLXML(SQLXML result)
void
createStatement(Throwable cause)
void
createStatement(Throwable cause, int resultSetType, int resultSetConcurrency)
void
createStatement(Throwable cause, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
void
createStatement(Statement result)
void
createStatement(Statement result, int resultSetType, int resultSetConcurrency)
void
createStatement(Statement result, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
void
createStruct(Throwable cause, String typeName, Object[] attributes)
void
createStruct(Struct result, String typeName, Object[] attributes)
void
getAutoCommit(boolean result)
void
getAutoCommit(Throwable cause)
void
getCatalog(String result)
void
getCatalog(Throwable cause)
void
getClientInfo(String result, String name)
void
getClientInfo(Throwable cause)
void
getClientInfo(Throwable cause, String name)
void
getClientInfo(Properties result)
void
getHoldability(int result)
void
getHoldability(Throwable cause)
void
getMetaData(Throwable cause)
void
getMetaData(DatabaseMetaData result)
void
getNetworkTimeout(int result)
void
getNetworkTimeout(Throwable cause)
void
getSchema(String result)
void
getSchema(Throwable cause)
void
getTransactionIsolation(int result)
void
getTransactionIsolation(Throwable cause)
void
getTypeMap(Throwable cause)
void
getTypeMap(Map<String,Class<?>> result)
void
getWarnings(Throwable cause)
void
getWarnings(SQLWarning result)
void
isClosed(boolean result)
void
isClosed(Throwable cause)
void
isReadOnly(boolean result)
void
isReadOnly(Throwable cause)
void
isValid(boolean result, int timeout)
void
isValid(Throwable cause, int timeout)
void
isWrapperFor(boolean result, Class<?> iface)
void
isWrapperFor(Throwable cause, Class<?> iface)
void
nativeSQL(String result, String sql)
void
nativeSQL(Throwable cause, String sql)
com.impossibl.jdbc.spy.ArrayListener
newArrayListener()
com.impossibl.jdbc.spy.BlobListener
newBlobListener()
com.impossibl.jdbc.spy.CallableStatementListener
newCallableStatementListener()
com.impossibl.jdbc.spy.ClobListener
newClobListener()
com.impossibl.jdbc.spy.DatabaseMetaDataListener
newDatabaseMetaDataListener()
com.impossibl.jdbc.spy.NClobListener
newNClobListener()
com.impossibl.jdbc.spy.PreparedStatementListener
newPreparedStatementListener()
com.impossibl.jdbc.spy.SavepointListener
newSavepointListener()
com.impossibl.jdbc.spy.SQLXMLListener
newSQLXMLListener()
com.impossibl.jdbc.spy.StatementListener
newStatementListener()
com.impossibl.jdbc.spy.StructListener
newStructListener()
void
prepareCall(Throwable cause, String sql)
void
prepareCall(Throwable cause, String sql, int resultSetType, int resultSetConcurrency)
void
prepareCall(Throwable cause, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
void
prepareCall(CallableStatement result, String sql)
void
prepareCall(CallableStatement result, String sql, int resultSetType, int resultSetConcurrency)
void
prepareCall(CallableStatement result, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
void
prepareStatement(Throwable cause, String sql)
void
prepareStatement(Throwable cause, String sql, int autoGeneratedKeys)
void
prepareStatement(Throwable cause, String sql, int[] columnIndexes)
void
prepareStatement(Throwable cause, String sql, int resultSetType, int resultSetConcurrency)
void
prepareStatement(Throwable cause, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
void
prepareStatement(Throwable cause, String sql, String[] columnNames)
void
prepareStatement(PreparedStatement result, String sql)
void
prepareStatement(PreparedStatement result, String sql, int autoGeneratedKeys)
void
prepareStatement(PreparedStatement result, String sql, int[] columnIndexes)
void
prepareStatement(PreparedStatement result, String sql, int resultSetType, int resultSetConcurrency)
void
prepareStatement(PreparedStatement result, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
void
prepareStatement(PreparedStatement result, String sql, String[] columnNames)
void
releaseSavepoint(Throwable cause, Savepoint savepoint)
void
releaseSavepoint(Savepoint savepoint)
void
rollback()
void
rollback(Throwable cause)
void
rollback(Throwable cause, Savepoint savepoint)
void
rollback(Savepoint savepoint)
void
setAutoCommit(boolean autoCommit)
void
setAutoCommit(Throwable cause, boolean autoCommit)
void
setCatalog(String catalog)
void
setCatalog(Throwable cause, String catalog)
void
setClientInfo(String name, String value)
void
setClientInfo(Throwable cause, String name, String value)
void
setClientInfo(Throwable cause, Properties properties)
void
setClientInfo(Properties properties)
void
setHoldability(int holdability)
void
setHoldability(Throwable cause, int holdability)
void
setNetworkTimeout(Throwable cause, Executor executor, int milliseconds)
void
setNetworkTimeout(Executor executor, int milliseconds)
void
setReadOnly(boolean readOnly)
void
setReadOnly(Throwable cause, boolean readOnly)
void
setSavepoint(Throwable cause)
void
setSavepoint(Throwable cause, String name)
void
setSavepoint(Savepoint result)
void
setSavepoint(Savepoint result, String name)
void
setSchema(String schema)
void
setSchema(Throwable cause, String schema)
void
setTransactionIsolation(int level)
void
setTransactionIsolation(Throwable cause, int level)
void
setTypeMap(Throwable cause, Map<String,Class<?>> map)
void
setTypeMap(Map<String,Class<?>> map)
void
trace(Trace trace)
<T> void
unwrap(Throwable cause, Class<T> iface)
<T> void
unwrap(T result, Class<T> iface)
-
-
-
Constructor Detail
-
ConnectionTracer
public ConnectionTracer(TraceOutput out)
-
-
Method Detail
-
trace
public void trace(Trace trace)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
prepareStatement
public void prepareStatement(Throwable cause, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
getNetworkTimeout
public void getNetworkTimeout(int result)
-
getNetworkTimeout
public void getNetworkTimeout(Throwable cause)
-
createBlob
public void createBlob(Blob result)
-
createBlob
public void createBlob(Throwable cause)
-
setClientInfo
public void setClientInfo(Properties properties)
-
setClientInfo
public void setClientInfo(Throwable cause, Properties properties)
-
setAutoCommit
public void setAutoCommit(boolean autoCommit)
-
setAutoCommit
public void setAutoCommit(Throwable cause, boolean autoCommit)
-
createClob
public void createClob(Clob result)
-
createClob
public void createClob(Throwable cause)
-
releaseSavepoint
public void releaseSavepoint(Savepoint savepoint)
-
unwrap
public <T> void unwrap(T result, Class<T> iface)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, int resultSetType, int resultSetConcurrency)
-
prepareStatement
public void prepareStatement(Throwable cause, String sql, int resultSetType, int resultSetConcurrency)
-
getSchema
public void getSchema(String result)
-
getSchema
public void getSchema(Throwable cause)
-
prepareCall
public void prepareCall(CallableStatement result, String sql)
-
close
public void close()
-
close
public void close(Throwable cause)
-
getTypeMap
public void getTypeMap(Throwable cause)
-
isWrapperFor
public void isWrapperFor(boolean result, Class<?> iface)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, String[] columnNames)
-
isClosed
public void isClosed(boolean result)
-
isClosed
public void isClosed(Throwable cause)
-
clearWarnings
public void clearWarnings()
-
clearWarnings
public void clearWarnings(Throwable cause)
-
setSchema
public void setSchema(String schema)
-
isReadOnly
public void isReadOnly(boolean result)
-
isReadOnly
public void isReadOnly(Throwable cause)
-
createStatement
public void createStatement(Statement result)
-
createStatement
public void createStatement(Throwable cause)
-
prepareCall
public void prepareCall(CallableStatement result, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
prepareCall
public void prepareCall(Throwable cause, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
abort
public void abort(Executor executor)
-
getHoldability
public void getHoldability(int result)
-
getHoldability
public void getHoldability(Throwable cause)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, int autoGeneratedKeys)
-
createStatement
public void createStatement(Statement result, int resultSetType, int resultSetConcurrency)
-
createStatement
public void createStatement(Throwable cause, int resultSetType, int resultSetConcurrency)
-
rollback
public void rollback(Savepoint savepoint)
-
setNetworkTimeout
public void setNetworkTimeout(Executor executor, int milliseconds)
-
setNetworkTimeout
public void setNetworkTimeout(Throwable cause, Executor executor, int milliseconds)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, int[] columnIndexes)
-
isValid
public void isValid(boolean result, int timeout)
-
isValid
public void isValid(Throwable cause, int timeout)
-
getWarnings
public void getWarnings(SQLWarning result)
-
getWarnings
public void getWarnings(Throwable cause)
-
prepareCall
public void prepareCall(CallableStatement result, String sql, int resultSetType, int resultSetConcurrency)
-
prepareCall
public void prepareCall(Throwable cause, String sql, int resultSetType, int resultSetConcurrency)
-
setSavepoint
public void setSavepoint(Savepoint result)
-
setSavepoint
public void setSavepoint(Throwable cause)
-
getCatalog
public void getCatalog(String result)
-
getCatalog
public void getCatalog(Throwable cause)
-
commit
public void commit()
-
commit
public void commit(Throwable cause)
-
setReadOnly
public void setReadOnly(boolean readOnly)
-
setReadOnly
public void setReadOnly(Throwable cause, boolean readOnly)
-
getTransactionIsolation
public void getTransactionIsolation(int result)
-
getTransactionIsolation
public void getTransactionIsolation(Throwable cause)
-
getClientInfo
public void getClientInfo(Properties result)
-
getClientInfo
public void getClientInfo(Throwable cause)
-
createNClob
public void createNClob(NClob result)
-
createNClob
public void createNClob(Throwable cause)
-
setTransactionIsolation
public void setTransactionIsolation(int level)
-
setTransactionIsolation
public void setTransactionIsolation(Throwable cause, int level)
-
setCatalog
public void setCatalog(String catalog)
-
setHoldability
public void setHoldability(int holdability)
-
setHoldability
public void setHoldability(Throwable cause, int holdability)
-
createStatement
public void createStatement(Statement result, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
createStatement
public void createStatement(Throwable cause, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
createSQLXML
public void createSQLXML(SQLXML result)
-
createSQLXML
public void createSQLXML(Throwable cause)
-
getAutoCommit
public void getAutoCommit(boolean result)
-
getAutoCommit
public void getAutoCommit(Throwable cause)
-
rollback
public void rollback()
-
rollback
public void rollback(Throwable cause)
-
getMetaData
public void getMetaData(DatabaseMetaData result)
-
getMetaData
public void getMetaData(Throwable cause)
-
newPreparedStatementListener
public com.impossibl.jdbc.spy.PreparedStatementListener newPreparedStatementListener()
-
newBlobListener
public com.impossibl.jdbc.spy.BlobListener newBlobListener()
-
newStructListener
public com.impossibl.jdbc.spy.StructListener newStructListener()
-
newClobListener
public com.impossibl.jdbc.spy.ClobListener newClobListener()
-
newCallableStatementListener
public com.impossibl.jdbc.spy.CallableStatementListener newCallableStatementListener()
-
newStatementListener
public com.impossibl.jdbc.spy.StatementListener newStatementListener()
-
newSavepointListener
public com.impossibl.jdbc.spy.SavepointListener newSavepointListener()
-
newArrayListener
public com.impossibl.jdbc.spy.ArrayListener newArrayListener()
-
newNClobListener
public com.impossibl.jdbc.spy.NClobListener newNClobListener()
-
newSQLXMLListener
public com.impossibl.jdbc.spy.SQLXMLListener newSQLXMLListener()
-
newDatabaseMetaDataListener
public com.impossibl.jdbc.spy.DatabaseMetaDataListener newDatabaseMetaDataListener()
-
-