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, onAfterStatementClose, onBeforeCommit, onBeforeResultSetNext, onBeforeRollback, onConnectionWrapped
public 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)
JdbcEventListener
PreparedStatement.execute()
methods are invoked.onBeforeExecute
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onBeforeExecute(StatementInformation statementInformation, java.lang.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 onBeforeExecuteBatch(StatementInformation statementInformation)
JdbcEventListener
Statement.executeBatch()
method is invoked.onBeforeExecuteBatch
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onBeforeExecuteUpdate(PreparedStatementInformation statementInformation)
JdbcEventListener
PreparedStatement.executeUpdate()
method is invoked.onBeforeExecuteUpdate
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onBeforeExecuteUpdate(StatementInformation statementInformation, java.lang.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 onBeforeExecuteQuery(PreparedStatementInformation statementInformation)
JdbcEventListener
PreparedStatement.executeQuery()
method is invoked.onBeforeExecuteQuery
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onBeforeExecuteQuery(StatementInformation statementInformation, java.lang.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 onAfterExecute(PreparedStatementInformation statementInformation, long timeElapsedNanos, java.sql.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 onAfterExecute(StatementInformation statementInformation, long timeElapsedNanos, java.lang.String sql, java.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 onAfterExecuteBatch(StatementInformation statementInformation, long timeElapsedNanos, int[] updateCounts, java.sql.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 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)
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 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)
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 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)
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 onAfterExecuteQuery(StatementInformation statementInformation, long timeElapsedNanos, java.lang.String sql, java.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 onBeforeAddBatch(PreparedStatementInformation statementInformation)
JdbcEventListener
PreparedStatement.addBatch()
method is invoked.onBeforeAddBatch
in class JdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onBeforeAddBatch(StatementInformation statementInformation, java.lang.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(PreparedStatementInformation statementInformation, long timeElapsedNanos, java.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 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)
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).