public abstract class SimpleJdbcEventListener extends JdbcEventListener
| Constructor and Description |
|---|
SimpleJdbcEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAfterAddBatch(PreparedStatementInformation statementInformation,
long timeElapsedNanos,
java.sql.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,
java.lang.String sql,
java.sql.SQLException e)
This callback method is executed after the
Statement.addBatch(String) or
Statement.addBatch(String) method is invoked. |
void |
onAfterAnyAddBatch(StatementInformation statementInformation,
long timeElapsedNanos,
java.sql.SQLException e)
This callback method is executed before any
Statement.addBatch* method is invoked |
void |
onAfterAnyExecute(StatementInformation statementInformation,
long timeElapsedNanos,
java.sql.SQLException e)
This callback method is executed after any
Statement.execute* method is invoked |
void |
onAfterExecute(PreparedStatementInformation statementInformation,
long timeElapsedNanos,
java.sql.SQLException e)
This callback method is executed after any the
PreparedStatement.execute() methods are invoked. |
void |
onAfterExecute(StatementInformation statementInformation,
long timeElapsedNanos,
java.lang.String sql,
java.sql.SQLException e)
This callback method is executed after any the
Statement.execute(String) methods are invoked. |
void |
onAfterExecuteBatch(StatementInformation statementInformation,
long timeElapsedNanos,
int[] updateCounts,
java.sql.SQLException e)
This callback method is executed after the
Statement.executeBatch() method is invoked. |
void |
onAfterExecuteQuery(PreparedStatementInformation statementInformation,
long timeElapsedNanos,
java.sql.SQLException e)
This callback method is executed after the
PreparedStatement.executeQuery() method is invoked. |
void |
onAfterExecuteQuery(StatementInformation statementInformation,
long timeElapsedNanos,
java.lang.String sql,
java.sql.SQLException e)
This callback method is executed after the
Statement.executeQuery(String) method is invoked. |
void |
onAfterExecuteUpdate(PreparedStatementInformation statementInformation,
long timeElapsedNanos,
int rowCount,
java.sql.SQLException e)
This callback method is executed after the
PreparedStatement.executeUpdate() method is invoked. |
void |
onAfterExecuteUpdate(StatementInformation statementInformation,
long timeElapsedNanos,
java.lang.String sql,
int rowCount,
java.sql.SQLException e)
This callback method is executed after any of the
Statement.executeUpdate(String) methods are invoked. |
void |
onBeforeAddBatch(PreparedStatementInformation statementInformation)
This callback method is executed before the
PreparedStatement.addBatch() method is invoked. |
void |
onBeforeAddBatch(StatementInformation statementInformation,
java.lang.String sql)
This callback method is executed before the
Statement.addBatch(String) or
Statement.addBatch(String) method is invoked. |
void |
onBeforeAnyAddBatch(StatementInformation statementInformation)
This callback method is executed before any
Statement.addBatch* method is invoked |
void |
onBeforeAnyExecute(StatementInformation statementInformation)
This callback method is executed before any
Statement.execute* 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,
java.lang.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,
java.lang.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,
java.lang.String sql)
This callback method is executed before any of the
Statement.executeUpdate(String) methods are invoked. |
onAfterCallableStatementSet, onAfterCommit, onAfterConnectionClose, onAfterGetConnection, onAfterGetResultSet, onAfterPreparedStatementSet, onAfterResultSetClose, onAfterResultSetGet, onAfterResultSetGet, onAfterResultSetNext, onAfterRollback, onAfterSetAutoCommit, onAfterStatementClose, onBeforeCommit, onBeforeGetConnection, onBeforeResultSetNext, onBeforeRollback, onBeforeSetAutoCommit, onConnectionWrappedpublic void onBeforeAnyExecute(StatementInformation statementInformation)
Statement.execute* method is invokedstatementInformation - The meta information about the Statement being invokedpublic void onAfterAnyExecute(StatementInformation statementInformation, long timeElapsedNanos, java.sql.SQLException e)
Statement.execute* method is invokedstatementInformation - 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 onBeforeAnyAddBatch(StatementInformation statementInformation)
Statement.addBatch* method is invokedstatementInformation - The meta information about the Statement being invokedpublic void onAfterAnyAddBatch(StatementInformation statementInformation, long timeElapsedNanos, java.sql.SQLException e)
Statement.addBatch* method is invokedstatementInformation - 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(PreparedStatementInformation statementInformation)
JdbcEventListenerPreparedStatement.execute() methods are invoked.onBeforeExecute in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic void onBeforeExecute(StatementInformation statementInformation, java.lang.String sql)
JdbcEventListenerStatement.execute(String) methods are invoked.onBeforeExecute in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedsql - The SQL string provided to the execute methodpublic void onBeforeExecuteBatch(StatementInformation statementInformation)
JdbcEventListenerStatement.executeBatch() method is invoked.onBeforeExecuteBatch in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic void onBeforeExecuteUpdate(PreparedStatementInformation statementInformation)
JdbcEventListenerPreparedStatement.executeUpdate() method is invoked.onBeforeExecuteUpdate in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic void onBeforeExecuteUpdate(StatementInformation statementInformation, java.lang.String sql)
JdbcEventListenerStatement.executeUpdate(String) methods are invoked.onBeforeExecuteUpdate in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedsql - The SQL string provided to the execute methodpublic void onBeforeExecuteQuery(PreparedStatementInformation statementInformation)
JdbcEventListenerPreparedStatement.executeQuery() method is invoked.onBeforeExecuteQuery in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic void onBeforeExecuteQuery(StatementInformation statementInformation, java.lang.String sql)
JdbcEventListenerStatement.executeQuery(String) method is invoked.onBeforeExecuteQuery in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedsql - The SQL string provided to the execute methodpublic void onAfterExecute(PreparedStatementInformation statementInformation, long timeElapsedNanos, java.sql.SQLException e)
JdbcEventListenerPreparedStatement.execute() methods are invoked.onAfterExecute in class JdbcEventListenerstatementInformation - 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 onAfterExecute(StatementInformation statementInformation, long timeElapsedNanos, java.lang.String sql, java.sql.SQLException e)
JdbcEventListenerStatement.execute(String) methods are invoked.onAfterExecute in class JdbcEventListenerstatementInformation - 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 onAfterExecuteBatch(StatementInformation statementInformation, long timeElapsedNanos, int[] updateCounts, java.sql.SQLException e)
JdbcEventListenerStatement.executeBatch() method is invoked.onAfterExecuteBatch in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedtimeElapsedNanos - The execution time of the execute callupdateCounts - An array of update counts or null if an exception was throwne - The SQLException which may be triggered by the call (null if
there was no exception).public void onAfterExecuteUpdate(PreparedStatementInformation statementInformation, long timeElapsedNanos, int rowCount, java.sql.SQLException e)
JdbcEventListenerPreparedStatement.executeUpdate() method is invoked.onAfterExecuteUpdate in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedtimeElapsedNanos - The execution time of the execute callrowCount - Either the row count for SQL Data Manipulation Language (DML) statements or 0 for SQL
statements that return nothing or if an exception was throwne - The SQLException which may be triggered by the call (null if
there was no exception).public void onAfterExecuteUpdate(StatementInformation statementInformation, long timeElapsedNanos, java.lang.String sql, int rowCount, java.sql.SQLException e)
JdbcEventListenerStatement.executeUpdate(String) methods are invoked.onAfterExecuteUpdate in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedtimeElapsedNanos - The execution time of the execute callsql - The SQL string provided to the execute methodrowCount - Either the row count for SQL Data Manipulation Language (DML) statements or 0 for SQL
statements that return nothing or if an exception was throwne - The SQLException which may be triggered by the call (null if
there was no exception).public void onAfterExecuteQuery(PreparedStatementInformation statementInformation, long timeElapsedNanos, java.sql.SQLException e)
JdbcEventListenerPreparedStatement.executeQuery() method is invoked.onAfterExecuteQuery in class JdbcEventListenerstatementInformation - 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 onAfterExecuteQuery(StatementInformation statementInformation, long timeElapsedNanos, java.lang.String sql, java.sql.SQLException e)
JdbcEventListenerStatement.executeQuery(String) method is invoked.onAfterExecuteQuery in class JdbcEventListenerstatementInformation - 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 onBeforeAddBatch(PreparedStatementInformation statementInformation)
JdbcEventListenerPreparedStatement.addBatch() method is invoked.onBeforeAddBatch in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic void onBeforeAddBatch(StatementInformation statementInformation, java.lang.String sql)
JdbcEventListenerStatement.addBatch(String) or
Statement.addBatch(String) method is invoked.onBeforeAddBatch in class JdbcEventListenerstatementInformation - The meta information about the Statement being invokedsql - The SQL string provided to the execute methodpublic void onAfterAddBatch(PreparedStatementInformation statementInformation, long timeElapsedNanos, java.sql.SQLException e)
JdbcEventListenerStatement.addBatch(String) or
Statement.addBatch(String) method is invoked.onAfterAddBatch in class JdbcEventListenerstatementInformation - 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 onAfterAddBatch(StatementInformation statementInformation, long timeElapsedNanos, java.lang.String sql, java.sql.SQLException e)
JdbcEventListenerStatement.addBatch(String) or
Statement.addBatch(String) method is invoked.onAfterAddBatch in class JdbcEventListenerstatementInformation - 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).