public class OutageJdbcEventListener extends SimpleJdbcEventListener
P6OutageDetector| Modifier and Type | Field and Description |
|---|---|
static OutageJdbcEventListener |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
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 |
onAfterCommit(ConnectionInformation connectionInformation,
long timeElapsedNanos,
java.sql.SQLException e)
This callback method is executed after the
Connection.commit() method is invoked. |
void |
onAfterRollback(ConnectionInformation connectionInformation,
long timeElapsedNanos,
java.sql.SQLException e)
This callback method is executed after the
Connection.rollback() or the Connection.rollback(Savepoint) 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 |
onBeforeCommit(ConnectionInformation connectionInformation)
This callback method is executed before the
Connection.commit() method is invoked. |
void |
onBeforeRollback(ConnectionInformation connectionInformation)
This callback method is executed before the
Connection.rollback() or the Connection.rollback(Savepoint) method is invoked. |
onAfterAddBatch, onAfterAddBatch, onAfterExecute, onAfterExecute, onAfterExecuteBatch, onAfterExecuteQuery, onAfterExecuteQuery, onAfterExecuteUpdate, onAfterExecuteUpdate, onBeforeAddBatch, onBeforeAddBatch, onBeforeExecute, onBeforeExecute, onBeforeExecuteBatch, onBeforeExecuteQuery, onBeforeExecuteQuery, onBeforeExecuteUpdate, onBeforeExecuteUpdateonAfterCallableStatementSet, onAfterConnectionClose, onAfterGetConnection, onAfterGetResultSet, onAfterPreparedStatementSet, onAfterResultSetClose, onAfterResultSetGet, onAfterResultSetGet, onAfterResultSetNext, onAfterSetAutoCommit, onAfterStatementClose, onBeforeGetConnection, onBeforeResultSetNext, onBeforeSetAutoCommit, onConnectionWrappedpublic static final OutageJdbcEventListener INSTANCE
public void onBeforeCommit(ConnectionInformation connectionInformation)
JdbcEventListenerConnection.commit() method is invoked.onBeforeCommit in class JdbcEventListenerconnectionInformation - The meta information about the Connection being invokedpublic void onAfterCommit(ConnectionInformation connectionInformation, long timeElapsedNanos, java.sql.SQLException e)
JdbcEventListenerConnection.commit() method is invoked.onAfterCommit in class JdbcEventListenerconnectionInformation - 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 onBeforeRollback(ConnectionInformation connectionInformation)
JdbcEventListenerConnection.rollback() or the Connection.rollback(Savepoint) method is invoked.onBeforeRollback in class JdbcEventListenerconnectionInformation - The meta information about the Connection being invokedpublic void onAfterRollback(ConnectionInformation connectionInformation, long timeElapsedNanos, java.sql.SQLException e)
JdbcEventListenerConnection.rollback() or the Connection.rollback(Savepoint) method is invoked.onAfterRollback in class JdbcEventListenerconnectionInformation - 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 onBeforeAnyAddBatch(StatementInformation statementInformation)
SimpleJdbcEventListenerStatement.addBatch* method is invokedonBeforeAnyAddBatch in class SimpleJdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic void onAfterAnyAddBatch(StatementInformation statementInformation, long timeElapsedNanos, java.sql.SQLException e)
SimpleJdbcEventListenerStatement.addBatch* method is invokedonAfterAnyAddBatch in class SimpleJdbcEventListenerstatementInformation - 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 onBeforeAnyExecute(StatementInformation statementInformation)
SimpleJdbcEventListenerStatement.execute* method is invokedonBeforeAnyExecute in class SimpleJdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic void onAfterAnyExecute(StatementInformation statementInformation, long timeElapsedNanos, java.sql.SQLException e)
SimpleJdbcEventListenerStatement.execute* method is invokedonAfterAnyExecute in class SimpleJdbcEventListenerstatementInformation - 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).