public class CompoundJdbcEventListener extends JdbcEventListener
Constructor and Description |
---|
CompoundJdbcEventListener() |
CompoundJdbcEventListener(List<JdbcEventListener> eventListeners) |
Modifier and Type | Method and Description |
---|---|
void |
addListender(JdbcEventListener listener) |
void |
onAfterAddBatch(PreparedStatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
Statement.addBatch(String) or
Statement.addBatch(String) method is invoked. |
void |
onAfterAddBatch(StatementInformation statementInformation,
long timeElapsedNanos,
String sql,
SQLException e)
This callback method is executed after the
Statement.addBatch(String) or
Statement.addBatch(String) method is invoked. |
void |
onAfterCallableStatementSet(CallableStatementInformation statementInformation,
String parameterName,
Object value,
SQLException e)
This callback method is executed after any of the
CallableStatement .set* methods are invoked. |
void |
onAfterCommit(ConnectionInformation connectionInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
Connection.commit() method is invoked. |
void |
onAfterConnectionClose(ConnectionInformation connectionInformation,
SQLException e)
This callback method is executed after the
Connection.close() method is invoked. |
void |
onAfterExecute(PreparedStatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after any the
PreparedStatement.execute() methods are invoked. |
void |
onAfterExecute(StatementInformation statementInformation,
long timeElapsedNanos,
String sql,
SQLException e)
This callback method is executed after any the
Statement.execute(String) methods are invoked. |
void |
onAfterExecuteBatch(StatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
Statement.executeBatch() method is invoked. |
void |
onAfterExecuteQuery(PreparedStatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
PreparedStatement.executeQuery() method is invoked. |
void |
onAfterExecuteQuery(StatementInformation statementInformation,
long timeElapsedNanos,
String sql,
SQLException e)
This callback method is executed after the
Statement.executeQuery(String) method is invoked. |
void |
onAfterExecuteUpdate(PreparedStatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
PreparedStatement.executeUpdate() method is invoked. |
void |
onAfterExecuteUpdate(StatementInformation statementInformation,
long timeElapsedNanos,
String sql,
SQLException e)
This callback method is executed after any of the
Statement.executeUpdate(String) methods are invoked. |
void |
onAfterGetResultSet(StatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
Statement.getResultSet() method is invoked. |
void |
onAfterPreparedStatementSet(PreparedStatementInformation statementInformation,
int parameterIndex,
Object value,
SQLException e)
This callback method is executed after any of the
PreparedStatement .set* methods are invoked. |
void |
onAfterResultSetClose(ResultSetInformation resultSetInformation,
SQLException e)
This callback method is executed after the
ResultSet.close() method is invoked. |
void |
onAfterResultSetGet(ResultSetInformation resultSetInformation,
int columnIndex,
Object value,
SQLException e)
This callback method is executed after any of the
ResultSet #get*(int) methods are invoked. |
void |
onAfterResultSetGet(ResultSetInformation resultSetInformation,
String columnLabel,
Object value,
SQLException e)
This callback method is executed after any of the
ResultSet #get*(String) methods are invoked. |
void |
onAfterResultSetNext(ResultSetInformation resultSetInformation,
long timeElapsedNanos,
boolean hasNext,
SQLException e)
This callback method is executed after the
ResultSet.next() method is invoked. |
void |
onAfterRollback(ConnectionInformation connectionInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
Connection.rollback() or the Connection.rollback(Savepoint) method is invoked. |
void |
onBeforeAddBatch(PreparedStatementInformation statementInformation)
This callback method is executed before the
PreparedStatement.addBatch() method is invoked. |
void |
onBeforeAddBatch(StatementInformation statementInformation,
String sql)
This callback method is executed before the
Statement.addBatch(String) or
Statement.addBatch(String) method is invoked. |
void |
onBeforeCommit(ConnectionInformation connectionInformation)
This callback method is executed before the
Connection.commit() method is invoked. |
void |
onBeforeExecute(PreparedStatementInformation statementInformation)
This callback method is executed before any of the
PreparedStatement.execute() methods are invoked. |
void |
onBeforeExecute(StatementInformation statementInformation,
String sql)
This callback method is executed before any of the
Statement.execute(String) methods are invoked. |
void |
onBeforeExecuteBatch(StatementInformation statementInformation)
This callback method is executed before the
Statement.executeBatch() method is invoked. |
void |
onBeforeExecuteQuery(PreparedStatementInformation statementInformation)
This callback method is executed before the
PreparedStatement.executeQuery() method is invoked. |
void |
onBeforeExecuteQuery(StatementInformation statementInformation,
String sql)
This callback method is executed before the
Statement.executeQuery(String) method is invoked. |
void |
onBeforeExecuteUpdate(PreparedStatementInformation statementInformation)
This callback method is executed before the
PreparedStatement.executeUpdate() method is invoked. |
void |
onBeforeExecuteUpdate(StatementInformation statementInformation,
String sql)
This callback method is executed before any of the
Statement.executeUpdate(String) methods are invoked. |
void |
onBeforeResultSetNext(ResultSetInformation resultSetInformation)
This callback method is executed before the
ResultSet.next() method is invoked. |
void |
onBeforeRollback(ConnectionInformation connectionInformation)
This callback method is executed before the
Connection.rollback() or the Connection.rollback(Savepoint) method is invoked. |
public CompoundJdbcEventListener()
public CompoundJdbcEventListener(List<JdbcEventListener> eventListeners)
public void addListender(JdbcEventListener listener)
public void onBeforeAddBatch(PreparedStatementInformation statementInformation)
JdbcEventListener
PreparedStatement.addBatch()
method is invoked.onBeforeAddBatch
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onAfterAddBatch(PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
Statement.addBatch(String)
or
Statement.addBatch(String)
method is invoked.onAfterAddBatch
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeAddBatch(StatementInformation statementInformation, String sql)
JdbcEventListener
Statement.addBatch(String)
or
Statement.addBatch(String)
method is invoked.onBeforeAddBatch
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedsql
- The SQL string provided to the execute methodpublic void onAfterAddBatch(StatementInformation statementInformation, long timeElapsedNanos, String sql, SQLException e)
JdbcEventListener
Statement.addBatch(String)
or
Statement.addBatch(String)
method is invoked.onAfterAddBatch
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute callsql
- The SQL string provided to the execute methode
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeExecute(PreparedStatementInformation statementInformation)
JdbcEventListener
PreparedStatement.execute()
methods are invoked.onBeforeExecute
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onAfterExecute(PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
PreparedStatement.execute()
methods are invoked.onAfterExecute
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeExecute(StatementInformation statementInformation, String sql)
JdbcEventListener
Statement.execute(String)
methods are invoked.onBeforeExecute
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedsql
- The SQL string provided to the execute methodpublic void onAfterExecute(StatementInformation statementInformation, long timeElapsedNanos, String sql, SQLException e)
JdbcEventListener
Statement.execute(String)
methods are invoked.onAfterExecute
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute callsql
- The SQL string provided to the execute methode
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeExecuteBatch(StatementInformation statementInformation)
JdbcEventListener
Statement.executeBatch()
method is invoked.onBeforeExecuteBatch
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onAfterExecuteBatch(StatementInformation statementInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
Statement.executeBatch()
method is invoked.onAfterExecuteBatch
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeExecuteUpdate(PreparedStatementInformation statementInformation)
JdbcEventListener
PreparedStatement.executeUpdate()
method is invoked.onBeforeExecuteUpdate
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onAfterExecuteUpdate(PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
PreparedStatement.executeUpdate()
method is invoked.onAfterExecuteUpdate
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeExecuteUpdate(StatementInformation statementInformation, String sql)
JdbcEventListener
Statement.executeUpdate(String)
methods are invoked.onBeforeExecuteUpdate
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedsql
- The SQL string provided to the execute methodpublic void onAfterExecuteUpdate(StatementInformation statementInformation, long timeElapsedNanos, String sql, SQLException e)
JdbcEventListener
Statement.executeUpdate(String)
methods are invoked.onAfterExecuteUpdate
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute callsql
- The SQL string provided to the execute methode
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeExecuteQuery(PreparedStatementInformation statementInformation)
JdbcEventListener
PreparedStatement.executeQuery()
method is invoked.onBeforeExecuteQuery
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onAfterExecuteQuery(PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
PreparedStatement.executeQuery()
method is invoked.onAfterExecuteQuery
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeExecuteQuery(StatementInformation statementInformation, String sql)
JdbcEventListener
Statement.executeQuery(String)
method is invoked.onBeforeExecuteQuery
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedsql
- The SQL string provided to the execute methodpublic void onAfterExecuteQuery(StatementInformation statementInformation, long timeElapsedNanos, String sql, SQLException e)
JdbcEventListener
Statement.executeQuery(String)
method is invoked.onAfterExecuteQuery
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute callsql
- The SQL string provided to the execute methode
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onAfterPreparedStatementSet(PreparedStatementInformation statementInformation, int parameterIndex, Object value, SQLException e)
JdbcEventListener
PreparedStatement
.set* methods are invoked.onAfterPreparedStatementSet
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedparameterIndex
- The first parameter is 1, the second is 2, ...value
- the column value; if the value is SQL NULL, the value returned is nulle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onAfterCallableStatementSet(CallableStatementInformation statementInformation, String parameterName, Object value, SQLException e)
JdbcEventListener
CallableStatement
.set* methods are invoked.onAfterCallableStatementSet
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedparameterName
- The name of the parametervalue
- the column value; if the value is SQL NULL, the value returned is nulle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onAfterGetResultSet(StatementInformation statementInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
Statement.getResultSet()
method is invoked.onAfterGetResultSet
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeResultSetNext(ResultSetInformation resultSetInformation)
JdbcEventListener
ResultSet.next()
method is invoked.onBeforeResultSetNext
in class JdbcEventListener
resultSetInformation
- The meta information about the ResultSet
being invokedpublic void onAfterResultSetNext(ResultSetInformation resultSetInformation, long timeElapsedNanos, boolean hasNext, SQLException e)
JdbcEventListener
ResultSet.next()
method is invoked.onAfterResultSetNext
in class JdbcEventListener
resultSetInformation
- The meta information about the ResultSet
being invokedtimeElapsedNanos
- The execution time of the execute callhasNext
- The return value of ResultSet.next()
e
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onAfterResultSetClose(ResultSetInformation resultSetInformation, SQLException e)
JdbcEventListener
ResultSet.close()
method is invoked.onAfterResultSetClose
in class JdbcEventListener
resultSetInformation
- The meta information about the ResultSet
being invokede
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onAfterResultSetGet(ResultSetInformation resultSetInformation, String columnLabel, Object value, SQLException e)
JdbcEventListener
ResultSet
#get*(String) methods are invoked.onAfterResultSetGet
in class JdbcEventListener
resultSetInformation
- The meta information about the ResultSet
being invokedcolumnLabel
- The label for the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the columnvalue
- The column value; if the value is SQL NULL, the value returned is nulle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onAfterResultSetGet(ResultSetInformation resultSetInformation, int columnIndex, Object value, SQLException e)
JdbcEventListener
ResultSet
#get*(int) methods are invoked.onAfterResultSetGet
in class JdbcEventListener
resultSetInformation
- The meta information about the ResultSet
being invokedcolumnIndex
- the first column is 1, the second is 2, ...value
- the column value; if the value is SQL NULL, the value returned is nulle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeCommit(ConnectionInformation connectionInformation)
JdbcEventListener
Connection.commit()
method is invoked.onBeforeCommit
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokedpublic void onAfterCommit(ConnectionInformation connectionInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
Connection.commit()
method is invoked.onAfterCommit
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onAfterConnectionClose(ConnectionInformation connectionInformation, SQLException e)
JdbcEventListener
Connection.close()
method is invoked.onAfterConnectionClose
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokede
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeRollback(ConnectionInformation connectionInformation)
JdbcEventListener
Connection.rollback()
or the Connection.rollback(Savepoint)
method is invoked.onBeforeRollback
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokedpublic void onAfterRollback(ConnectionInformation connectionInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
Connection.rollback()
or the Connection.rollback(Savepoint)
method is invoked.onAfterRollback
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).Copyright © 2002-2016 P6Spy. All Rights Reserved.