Package com.impossibl.jdbc.spy
Class ConnectionTracer
- java.lang.Object
-
- com.impossibl.jdbc.spy.ConnectionTracer
-
public class ConnectionTracer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConnectionTracer(TraceOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort(java.lang.Throwable cause, java.util.concurrent.Executor executor)voidabort(java.util.concurrent.Executor executor)voidclearWarnings()voidclearWarnings(java.lang.Throwable cause)voidclose()voidclose(java.lang.Throwable cause)voidcommit()voidcommit(java.lang.Throwable cause)voidcreateArrayOf(java.lang.Throwable cause, java.lang.String typeName, java.lang.Object[] elements)voidcreateArrayOf(java.sql.Array result, java.lang.String typeName, java.lang.Object[] elements)voidcreateBlob(java.lang.Throwable cause)voidcreateBlob(java.sql.Blob result)voidcreateClob(java.lang.Throwable cause)voidcreateClob(java.sql.Clob result)voidcreateNClob(java.lang.Throwable cause)voidcreateNClob(java.sql.NClob result)voidcreateSQLXML(java.lang.Throwable cause)voidcreateSQLXML(java.sql.SQLXML result)voidcreateStatement(java.lang.Throwable cause)voidcreateStatement(java.lang.Throwable cause, int resultSetType, int resultSetConcurrency)voidcreateStatement(java.lang.Throwable cause, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidcreateStatement(java.sql.Statement result)voidcreateStatement(java.sql.Statement result, int resultSetType, int resultSetConcurrency)voidcreateStatement(java.sql.Statement result, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidcreateStruct(java.lang.Throwable cause, java.lang.String typeName, java.lang.Object[] attributes)voidcreateStruct(java.sql.Struct result, java.lang.String typeName, java.lang.Object[] attributes)voidgetAutoCommit(boolean result)voidgetAutoCommit(java.lang.Throwable cause)voidgetCatalog(java.lang.String result)voidgetCatalog(java.lang.Throwable cause)voidgetClientInfo(java.lang.String result, java.lang.String name)voidgetClientInfo(java.lang.Throwable cause)voidgetClientInfo(java.lang.Throwable cause, java.lang.String name)voidgetClientInfo(java.util.Properties result)voidgetHoldability(int result)voidgetHoldability(java.lang.Throwable cause)voidgetMetaData(java.lang.Throwable cause)voidgetMetaData(java.sql.DatabaseMetaData result)voidgetNetworkTimeout(int result)voidgetNetworkTimeout(java.lang.Throwable cause)voidgetSchema(java.lang.String result)voidgetSchema(java.lang.Throwable cause)voidgetTransactionIsolation(int result)voidgetTransactionIsolation(java.lang.Throwable cause)voidgetTypeMap(java.lang.Throwable cause)voidgetTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> result)voidgetWarnings(java.lang.Throwable cause)voidgetWarnings(java.sql.SQLWarning result)voidisClosed(boolean result)voidisClosed(java.lang.Throwable cause)voidisReadOnly(boolean result)voidisReadOnly(java.lang.Throwable cause)voidisValid(boolean result, int timeout)voidisValid(java.lang.Throwable cause, int timeout)voidisWrapperFor(boolean result, java.lang.Class<?> iface)voidisWrapperFor(java.lang.Throwable cause, java.lang.Class<?> iface)voidnativeSQL(java.lang.String result, java.lang.String sql)voidnativeSQL(java.lang.Throwable cause, java.lang.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(java.lang.Throwable cause, java.lang.String sql)voidprepareCall(java.lang.Throwable cause, java.lang.String sql, int resultSetType, int resultSetConcurrency)voidprepareCall(java.lang.Throwable cause, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidprepareCall(java.sql.CallableStatement result, java.lang.String sql)voidprepareCall(java.sql.CallableStatement result, java.lang.String sql, int resultSetType, int resultSetConcurrency)voidprepareCall(java.sql.CallableStatement result, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidprepareStatement(java.lang.Throwable cause, java.lang.String sql)voidprepareStatement(java.lang.Throwable cause, java.lang.String sql, int autoGeneratedKeys)voidprepareStatement(java.lang.Throwable cause, java.lang.String sql, int[] columnIndexes)voidprepareStatement(java.lang.Throwable cause, java.lang.String sql, int resultSetType, int resultSetConcurrency)voidprepareStatement(java.lang.Throwable cause, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidprepareStatement(java.lang.Throwable cause, java.lang.String sql, java.lang.String[] columnNames)voidprepareStatement(java.sql.PreparedStatement result, java.lang.String sql)voidprepareStatement(java.sql.PreparedStatement result, java.lang.String sql, int autoGeneratedKeys)voidprepareStatement(java.sql.PreparedStatement result, java.lang.String sql, int[] columnIndexes)voidprepareStatement(java.sql.PreparedStatement result, java.lang.String sql, int resultSetType, int resultSetConcurrency)voidprepareStatement(java.sql.PreparedStatement result, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)voidprepareStatement(java.sql.PreparedStatement result, java.lang.String sql, java.lang.String[] columnNames)voidreleaseSavepoint(java.lang.Throwable cause, java.sql.Savepoint savepoint)voidreleaseSavepoint(java.sql.Savepoint savepoint)voidrollback()voidrollback(java.lang.Throwable cause)voidrollback(java.lang.Throwable cause, java.sql.Savepoint savepoint)voidrollback(java.sql.Savepoint savepoint)voidsetAutoCommit(boolean autoCommit)voidsetAutoCommit(java.lang.Throwable cause, boolean autoCommit)voidsetCatalog(java.lang.String catalog)voidsetCatalog(java.lang.Throwable cause, java.lang.String catalog)voidsetClientInfo(java.lang.String name, java.lang.String value)voidsetClientInfo(java.lang.Throwable cause, java.lang.String name, java.lang.String value)voidsetClientInfo(java.lang.Throwable cause, java.util.Properties properties)voidsetClientInfo(java.util.Properties properties)voidsetHoldability(int holdability)voidsetHoldability(java.lang.Throwable cause, int holdability)voidsetNetworkTimeout(java.lang.Throwable cause, java.util.concurrent.Executor executor, int milliseconds)voidsetNetworkTimeout(java.util.concurrent.Executor executor, int milliseconds)voidsetReadOnly(boolean readOnly)voidsetReadOnly(java.lang.Throwable cause, boolean readOnly)voidsetSavepoint(java.lang.Throwable cause)voidsetSavepoint(java.lang.Throwable cause, java.lang.String name)voidsetSavepoint(java.sql.Savepoint result)voidsetSavepoint(java.sql.Savepoint result, java.lang.String name)voidsetSchema(java.lang.String schema)voidsetSchema(java.lang.Throwable cause, java.lang.String schema)voidsetTransactionIsolation(int level)voidsetTransactionIsolation(java.lang.Throwable cause, int level)voidsetTypeMap(java.lang.Throwable cause, java.util.Map<java.lang.String,java.lang.Class<?>> map)voidsetTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)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
-
ConnectionTracer
public ConnectionTracer(TraceOutput out)
-
-
Method Detail
-
trace
public void trace(Trace trace)
-
close
public void close()
-
close
public void close(java.lang.Throwable cause)
-
setNetworkTimeout
public void setNetworkTimeout(java.util.concurrent.Executor executor, int milliseconds)
-
setNetworkTimeout
public void setNetworkTimeout(java.lang.Throwable cause, java.util.concurrent.Executor executor, int milliseconds)
-
prepareCall
public void prepareCall(java.sql.CallableStatement result, java.lang.String sql)
-
prepareCall
public void prepareCall(java.lang.Throwable cause, java.lang.String sql)
-
setClientInfo
public void setClientInfo(java.lang.String name, java.lang.String value)
-
setClientInfo
public void setClientInfo(java.lang.Throwable cause, java.lang.String name, java.lang.String value)
-
isClosed
public void isClosed(boolean result)
-
isClosed
public void isClosed(java.lang.Throwable cause)
-
createStruct
public void createStruct(java.sql.Struct result, java.lang.String typeName, java.lang.Object[] attributes)
-
createStruct
public void createStruct(java.lang.Throwable cause, java.lang.String typeName, java.lang.Object[] attributes)
-
rollback
public void rollback()
-
rollback
public void rollback(java.lang.Throwable cause)
-
getNetworkTimeout
public void getNetworkTimeout(int result)
-
getNetworkTimeout
public void getNetworkTimeout(java.lang.Throwable cause)
-
prepareStatement
public void prepareStatement(java.sql.PreparedStatement result, java.lang.String sql, java.lang.String[] columnNames)
-
prepareStatement
public void prepareStatement(java.lang.Throwable cause, java.lang.String sql, java.lang.String[] columnNames)
-
setAutoCommit
public void setAutoCommit(boolean autoCommit)
-
setAutoCommit
public void setAutoCommit(java.lang.Throwable cause, boolean autoCommit)
-
prepareStatement
public void prepareStatement(java.sql.PreparedStatement result, java.lang.String sql, int autoGeneratedKeys)
-
prepareStatement
public void prepareStatement(java.lang.Throwable cause, java.lang.String sql, int autoGeneratedKeys)
-
prepareStatement
public void prepareStatement(java.sql.PreparedStatement result, java.lang.String sql, int resultSetType, int resultSetConcurrency)
-
prepareStatement
public void prepareStatement(java.lang.Throwable cause, java.lang.String sql, int resultSetType, int resultSetConcurrency)
-
getTypeMap
public void getTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> result)
-
getTypeMap
public void getTypeMap(java.lang.Throwable cause)
-
abort
public void abort(java.util.concurrent.Executor executor)
-
abort
public void abort(java.lang.Throwable cause, java.util.concurrent.Executor executor)
-
commit
public void commit()
-
commit
public void commit(java.lang.Throwable cause)
-
setCatalog
public void setCatalog(java.lang.String catalog)
-
setCatalog
public void setCatalog(java.lang.Throwable cause, java.lang.String catalog)
-
createStatement
public void createStatement(java.sql.Statement result, int resultSetType, int resultSetConcurrency)
-
createStatement
public void createStatement(java.lang.Throwable cause, int resultSetType, int resultSetConcurrency)
-
createBlob
public void createBlob(java.sql.Blob result)
-
createBlob
public void createBlob(java.lang.Throwable cause)
-
createStatement
public void createStatement(java.sql.Statement result)
-
createStatement
public void createStatement(java.lang.Throwable cause)
-
setSavepoint
public void setSavepoint(java.sql.Savepoint result)
-
setSavepoint
public void setSavepoint(java.lang.Throwable cause)
-
prepareStatement
public void prepareStatement(java.sql.PreparedStatement result, java.lang.String sql, int[] columnIndexes)
-
prepareStatement
public void prepareStatement(java.lang.Throwable cause, java.lang.String sql, int[] columnIndexes)
-
setTransactionIsolation
public void setTransactionIsolation(int level)
-
setTransactionIsolation
public void setTransactionIsolation(java.lang.Throwable cause, int level)
-
getClientInfo
public void getClientInfo(java.lang.String result, java.lang.String name)
-
getClientInfo
public void getClientInfo(java.lang.Throwable cause, java.lang.String name)
-
setHoldability
public void setHoldability(int holdability)
-
setHoldability
public void setHoldability(java.lang.Throwable cause, int holdability)
-
prepareCall
public void prepareCall(java.sql.CallableStatement result, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
prepareCall
public void prepareCall(java.lang.Throwable cause, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
getSchema
public void getSchema(java.lang.String result)
-
getSchema
public void getSchema(java.lang.Throwable cause)
-
getAutoCommit
public void getAutoCommit(boolean result)
-
getAutoCommit
public void getAutoCommit(java.lang.Throwable cause)
-
prepareCall
public void prepareCall(java.sql.CallableStatement result, java.lang.String sql, int resultSetType, int resultSetConcurrency)
-
prepareCall
public void prepareCall(java.lang.Throwable cause, java.lang.String sql, int resultSetType, int resultSetConcurrency)
-
setReadOnly
public void setReadOnly(boolean readOnly)
-
setReadOnly
public void setReadOnly(java.lang.Throwable cause, boolean readOnly)
-
createStatement
public void createStatement(java.sql.Statement result, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
createStatement
public void createStatement(java.lang.Throwable cause, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
nativeSQL
public void nativeSQL(java.lang.String result, java.lang.String sql)
-
nativeSQL
public void nativeSQL(java.lang.Throwable cause, java.lang.String sql)
-
getMetaData
public void getMetaData(java.sql.DatabaseMetaData result)
-
getMetaData
public void getMetaData(java.lang.Throwable cause)
-
createArrayOf
public void createArrayOf(java.sql.Array result, java.lang.String typeName, java.lang.Object[] elements)
-
createArrayOf
public void createArrayOf(java.lang.Throwable cause, java.lang.String typeName, java.lang.Object[] elements)
-
isValid
public void isValid(boolean result, int timeout)
-
isValid
public void isValid(java.lang.Throwable cause, int timeout)
-
prepareStatement
public void prepareStatement(java.sql.PreparedStatement result, java.lang.String sql)
-
prepareStatement
public void prepareStatement(java.lang.Throwable cause, java.lang.String sql)
-
clearWarnings
public void clearWarnings()
-
clearWarnings
public void clearWarnings(java.lang.Throwable cause)
-
getTransactionIsolation
public void getTransactionIsolation(int result)
-
getTransactionIsolation
public void getTransactionIsolation(java.lang.Throwable cause)
-
rollback
public void rollback(java.sql.Savepoint savepoint)
-
rollback
public void rollback(java.lang.Throwable cause, java.sql.Savepoint savepoint)
-
isWrapperFor
public void isWrapperFor(boolean result, java.lang.Class<?> iface)
-
isWrapperFor
public void isWrapperFor(java.lang.Throwable cause, java.lang.Class<?> iface)
-
getWarnings
public void getWarnings(java.sql.SQLWarning result)
-
getWarnings
public void getWarnings(java.lang.Throwable cause)
-
getHoldability
public void getHoldability(int result)
-
getHoldability
public void getHoldability(java.lang.Throwable cause)
-
setSavepoint
public void setSavepoint(java.sql.Savepoint result, java.lang.String name)
-
setSavepoint
public void setSavepoint(java.lang.Throwable cause, java.lang.String name)
-
createSQLXML
public void createSQLXML(java.sql.SQLXML result)
-
createSQLXML
public void createSQLXML(java.lang.Throwable cause)
-
getClientInfo
public void getClientInfo(java.util.Properties result)
-
getClientInfo
public void getClientInfo(java.lang.Throwable cause)
-
releaseSavepoint
public void releaseSavepoint(java.sql.Savepoint savepoint)
-
releaseSavepoint
public void releaseSavepoint(java.lang.Throwable cause, java.sql.Savepoint savepoint)
-
getCatalog
public void getCatalog(java.lang.String result)
-
getCatalog
public void getCatalog(java.lang.Throwable cause)
-
setTypeMap
public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
-
setTypeMap
public void setTypeMap(java.lang.Throwable cause, java.util.Map<java.lang.String,java.lang.Class<?>> map)
-
setClientInfo
public void setClientInfo(java.util.Properties properties)
-
setClientInfo
public void setClientInfo(java.lang.Throwable cause, java.util.Properties properties)
-
createClob
public void createClob(java.sql.Clob result)
-
createClob
public void createClob(java.lang.Throwable cause)
-
prepareStatement
public void prepareStatement(java.sql.PreparedStatement result, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
prepareStatement
public void prepareStatement(java.lang.Throwable cause, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
-
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)
-
setSchema
public void setSchema(java.lang.String schema)
-
setSchema
public void setSchema(java.lang.Throwable cause, java.lang.String schema)
-
isReadOnly
public void isReadOnly(boolean result)
-
isReadOnly
public void isReadOnly(java.lang.Throwable cause)
-
createNClob
public void createNClob(java.sql.NClob result)
-
createNClob
public void createNClob(java.lang.Throwable cause)
-
newCallableStatementListener
public com.impossibl.jdbc.spy.CallableStatementListener newCallableStatementListener()
-
newStructListener
public com.impossibl.jdbc.spy.StructListener newStructListener()
-
newPreparedStatementListener
public com.impossibl.jdbc.spy.PreparedStatementListener newPreparedStatementListener()
-
newStatementListener
public com.impossibl.jdbc.spy.StatementListener newStatementListener()
-
newBlobListener
public com.impossibl.jdbc.spy.BlobListener newBlobListener()
-
newSavepointListener
public com.impossibl.jdbc.spy.SavepointListener newSavepointListener()
-
newDatabaseMetaDataListener
public com.impossibl.jdbc.spy.DatabaseMetaDataListener newDatabaseMetaDataListener()
-
newArrayListener
public com.impossibl.jdbc.spy.ArrayListener newArrayListener()
-
newSQLXMLListener
public com.impossibl.jdbc.spy.SQLXMLListener newSQLXMLListener()
-
newClobListener
public com.impossibl.jdbc.spy.ClobListener newClobListener()
-
newNClobListener
public com.impossibl.jdbc.spy.NClobListener newNClobListener()
-
-