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 voidabort(Throwable cause, Executor executor)voidabort(Executor executor)voidclearWarnings()voidclearWarnings(Throwable cause)voidclose()voidclose(Throwable cause)voidcommit()voidcommit(Throwable cause)voidcreateArrayOf(Throwable cause, String typeName, Object[] elements)voidcreateArrayOf(Array result, String typeName, Object[] elements)voidcreateBlob(Throwable cause)voidcreateBlob(Blob result)voidcreateClob(Throwable cause)voidcreateClob(Clob result)voidcreateNClob(Throwable cause)voidcreateNClob(NClob result)voidcreateSQLXML(Throwable cause)voidcreateSQLXML(SQLXML result)voidcreateStatement(Throwable cause)voidcreateStatement(Throwable cause, int resultSetType, int resultSetConcurrency)voidcreateStatement(Throwable cause, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidcreateStatement(Statement result)voidcreateStatement(Statement result, int resultSetType, int resultSetConcurrency)voidcreateStatement(Statement result, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidcreateStruct(Throwable cause, String typeName, Object[] attributes)voidcreateStruct(Struct result, String typeName, Object[] attributes)voidgetAutoCommit(boolean result)voidgetAutoCommit(Throwable cause)voidgetCatalog(String result)voidgetCatalog(Throwable cause)voidgetClientInfo(String result, String name)voidgetClientInfo(Throwable cause)voidgetClientInfo(Throwable cause, String name)voidgetClientInfo(Properties result)voidgetHoldability(int result)voidgetHoldability(Throwable cause)voidgetMetaData(Throwable cause)voidgetMetaData(DatabaseMetaData result)voidgetNetworkTimeout(int result)voidgetNetworkTimeout(Throwable cause)voidgetSchema(String result)voidgetSchema(Throwable cause)voidgetTransactionIsolation(int result)voidgetTransactionIsolation(Throwable cause)voidgetTypeMap(Throwable cause)voidgetTypeMap(Map<String,Class<?>> result)voidgetWarnings(Throwable cause)voidgetWarnings(SQLWarning result)voidisClosed(boolean result)voidisClosed(Throwable cause)voidisReadOnly(boolean result)voidisReadOnly(Throwable cause)voidisValid(boolean result, int timeout)voidisValid(Throwable cause, int timeout)voidisWrapperFor(boolean result, Class<?> iface)voidisWrapperFor(Throwable cause, Class<?> iface)voidnativeSQL(String result, String sql)voidnativeSQL(Throwable cause, String sql)com.impossibl.jdbc.spy.ArrayListenernewArrayListener()com.impossibl.jdbc.spy.BlobListenernewBlobListener()com.impossibl.jdbc.spy.CallableStatementListenernewCallableStatementListener()com.impossibl.jdbc.spy.ClobListenernewClobListener()com.impossibl.jdbc.spy.DatabaseMetaDataListenernewDatabaseMetaDataListener()com.impossibl.jdbc.spy.NClobListenernewNClobListener()com.impossibl.jdbc.spy.PreparedStatementListenernewPreparedStatementListener()com.impossibl.jdbc.spy.SavepointListenernewSavepointListener()com.impossibl.jdbc.spy.SQLXMLListenernewSQLXMLListener()com.impossibl.jdbc.spy.StatementListenernewStatementListener()com.impossibl.jdbc.spy.StructListenernewStructListener()voidprepareCall(Throwable cause, String sql)voidprepareCall(Throwable cause, String sql, int resultSetType, int resultSetConcurrency)voidprepareCall(Throwable cause, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidprepareCall(CallableStatement result, String sql)voidprepareCall(CallableStatement result, String sql, int resultSetType, int resultSetConcurrency)voidprepareCall(CallableStatement result, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidprepareStatement(Throwable cause, String sql)voidprepareStatement(Throwable cause, String sql, int autoGeneratedKeys)voidprepareStatement(Throwable cause, String sql, int[] columnIndexes)voidprepareStatement(Throwable cause, String sql, int resultSetType, int resultSetConcurrency)voidprepareStatement(Throwable cause, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidprepareStatement(Throwable cause, String sql, String[] columnNames)voidprepareStatement(PreparedStatement result, String sql)voidprepareStatement(PreparedStatement result, String sql, int autoGeneratedKeys)voidprepareStatement(PreparedStatement result, String sql, int[] columnIndexes)voidprepareStatement(PreparedStatement result, String sql, int resultSetType, int resultSetConcurrency)voidprepareStatement(PreparedStatement result, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidprepareStatement(PreparedStatement result, String sql, String[] columnNames)voidreleaseSavepoint(Throwable cause, Savepoint savepoint)voidreleaseSavepoint(Savepoint savepoint)voidrollback()voidrollback(Throwable cause)voidrollback(Throwable cause, Savepoint savepoint)voidrollback(Savepoint savepoint)voidsetAutoCommit(boolean autoCommit)voidsetAutoCommit(Throwable cause, boolean autoCommit)voidsetCatalog(String catalog)voidsetCatalog(Throwable cause, String catalog)voidsetClientInfo(String name, String value)voidsetClientInfo(Throwable cause, String name, String value)voidsetClientInfo(Throwable cause, Properties properties)voidsetClientInfo(Properties properties)voidsetHoldability(int holdability)voidsetHoldability(Throwable cause, int holdability)voidsetNetworkTimeout(Throwable cause, Executor executor, int milliseconds)voidsetNetworkTimeout(Executor executor, int milliseconds)voidsetReadOnly(boolean readOnly)voidsetReadOnly(Throwable cause, boolean readOnly)voidsetSavepoint(Throwable cause)voidsetSavepoint(Throwable cause, String name)voidsetSavepoint(Savepoint result)voidsetSavepoint(Savepoint result, String name)voidsetSchema(String schema)voidsetSchema(Throwable cause, String schema)voidsetTransactionIsolation(int level)voidsetTransactionIsolation(Throwable cause, int level)voidsetTypeMap(Throwable cause, Map<String,Class<?>> map)voidsetTypeMap(Map<String,Class<?>> map)voidtrace(Trace trace)<T> voidunwrap(Throwable cause, Class<T> iface)<T> voidunwrap(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()
-
-