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)
-
setSchema
public void setSchema(String schema)
-
createStatement
public void createStatement(Statement result)
-
createStatement
public void createStatement(Throwable cause)
-
getCatalog
public void getCatalog(String result)
-
getCatalog
public void getCatalog(Throwable cause)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, int[] columnIndexes)
-
setNetworkTimeout
public void setNetworkTimeout(Executor executor, int milliseconds)
-
setNetworkTimeout
public void setNetworkTimeout(Throwable cause, Executor executor, int milliseconds)
-
setAutoCommit
public void setAutoCommit(boolean autoCommit)
-
setAutoCommit
public void setAutoCommit(Throwable cause, boolean autoCommit)
-
releaseSavepoint
public void releaseSavepoint(Savepoint savepoint)
-
createBlob
public void createBlob(Blob result)
-
createBlob
public void createBlob(Throwable cause)
-
commit
public void commit()
-
commit
public void commit(Throwable cause)
-
setCatalog
public void setCatalog(String catalog)
-
setSavepoint
public void setSavepoint(Savepoint result)
-
setSavepoint
public void setSavepoint(Throwable cause)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, int resultSetType, int resultSetConcurrency)
-
prepareStatement
public void prepareStatement(Throwable cause, String sql, int resultSetType, int resultSetConcurrency)
-
getHoldability
public void getHoldability(int result)
-
getHoldability
public void getHoldability(Throwable cause)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql)
-
isClosed
public void isClosed(boolean result)
-
isClosed
public void isClosed(Throwable cause)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, int autoGeneratedKeys)
-
close
public void close()
-
close
public void close(Throwable cause)
-
isReadOnly
public void isReadOnly(boolean result)
-
isReadOnly
public void isReadOnly(Throwable cause)
-
unwrap
public <T> void unwrap(T result, Class<T> iface)
-
createClob
public void createClob(Clob result)
-
createClob
public void createClob(Throwable cause)
-
createSQLXML
public void createSQLXML(SQLXML result)
-
createSQLXML
public void createSQLXML(Throwable cause)
-
isValid
public void isValid(boolean result, int timeout)
-
isValid
public void isValid(Throwable cause, int timeout)
-
getSchema
public void getSchema(String result)
-
getSchema
public void getSchema(Throwable cause)
-
createStatement
public void createStatement(Statement result, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
createStatement
public void createStatement(Throwable cause, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
prepareStatement
public void prepareStatement(PreparedStatement result, String sql, String[] columnNames)
-
prepareCall
public void prepareCall(CallableStatement result, String sql)
-
getWarnings
public void getWarnings(SQLWarning result)
-
getWarnings
public void getWarnings(Throwable cause)
-
rollback
public void rollback(Savepoint savepoint)
-
setTransactionIsolation
public void setTransactionIsolation(int level)
-
setTransactionIsolation
public void setTransactionIsolation(Throwable cause, int level)
-
setClientInfo
public void setClientInfo(Properties properties)
-
setClientInfo
public void setClientInfo(Throwable cause, Properties properties)
-
rollback
public void rollback()
-
rollback
public void rollback(Throwable cause)
-
getClientInfo
public void getClientInfo(Properties result)
-
getClientInfo
public void getClientInfo(Throwable cause)
-
getTransactionIsolation
public void getTransactionIsolation(int result)
-
getTransactionIsolation
public void getTransactionIsolation(Throwable cause)
-
getNetworkTimeout
public void getNetworkTimeout(int result)
-
getNetworkTimeout
public void getNetworkTimeout(Throwable cause)
-
isWrapperFor
public void isWrapperFor(boolean result, Class<?> iface)
-
createStatement
public void createStatement(Statement result, int resultSetType, int resultSetConcurrency)
-
createStatement
public void createStatement(Throwable cause, int resultSetType, int resultSetConcurrency)
-
clearWarnings
public void clearWarnings()
-
clearWarnings
public void clearWarnings(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)
-
getAutoCommit
public void getAutoCommit(boolean result)
-
getAutoCommit
public void getAutoCommit(Throwable cause)
-
getMetaData
public void getMetaData(DatabaseMetaData result)
-
getMetaData
public void getMetaData(Throwable cause)
-
createNClob
public void createNClob(NClob result)
-
createNClob
public void createNClob(Throwable cause)
-
abort
public void abort(Executor executor)
-
setReadOnly
public void setReadOnly(boolean readOnly)
-
setReadOnly
public void setReadOnly(Throwable cause, boolean readOnly)
-
getTypeMap
public void getTypeMap(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)
-
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)
-
setHoldability
public void setHoldability(int holdability)
-
setHoldability
public void setHoldability(Throwable cause, int holdability)
-
newStatementListener
public com.impossibl.jdbc.spy.StatementListener newStatementListener()
-
newPreparedStatementListener
public com.impossibl.jdbc.spy.PreparedStatementListener newPreparedStatementListener()
-
newStructListener
public com.impossibl.jdbc.spy.StructListener newStructListener()
-
newBlobListener
public com.impossibl.jdbc.spy.BlobListener newBlobListener()
-
newSavepointListener
public com.impossibl.jdbc.spy.SavepointListener newSavepointListener()
-
newClobListener
public com.impossibl.jdbc.spy.ClobListener newClobListener()
-
newSQLXMLListener
public com.impossibl.jdbc.spy.SQLXMLListener newSQLXMLListener()
-
newCallableStatementListener
public com.impossibl.jdbc.spy.CallableStatementListener newCallableStatementListener()
-
newArrayListener
public com.impossibl.jdbc.spy.ArrayListener newArrayListener()
-
newDatabaseMetaDataListener
public com.impossibl.jdbc.spy.DatabaseMetaDataListener newDatabaseMetaDataListener()
-
newNClobListener
public com.impossibl.jdbc.spy.NClobListener newNClobListener()
-
-