public class P6spyJdbcEventListener extends JdbcEventListener
| 构造器和说明 |
|---|
P6spyJdbcEventListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
onAfterAnyAddBatch(StatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed before any
Statement.addBatch* method is invoked |
void |
onAfterAnyExecute(StatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after any
Statement.execute* 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,
int[] updateCounts,
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,
int rowCount,
SQLException e)
This callback method is executed after the
PreparedStatement.executeUpdate() method is invoked. |
void |
onAfterExecuteUpdate(StatementInformation statementInformation,
long timeElapsedNanos,
String sql,
int rowCount,
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. |
String |
onBeforeAddBatch(StatementInformation statementInformation,
String sql)
This callback method is executed before the
Statement.addBatch(String) or
Statement.addBatch(String) method is invoked. |
String |
onBeforeAnyAddBatch(StatementInformation statementInformation)
This callback method is executed before any
Statement.addBatch* method is invoked |
String |
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. |
String |
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. |
String |
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. |
String |
onBeforeExecuteUpdate(StatementInformation statementInformation,
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, onBeforeGetConnection, onBeforeResultSetNext, onBeforeRollback, onConnectionWrappedpublic String onBeforeAnyExecute(StatementInformation statementInformation) throws SQLException
Statement.execute* method is invokedstatementInformation - The meta information about the Statement being invokedSQLException - SQLExceptionpublic void onAfterAnyExecute(StatementInformation statementInformation, long timeElapsedNanos, 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 String onBeforeAnyAddBatch(StatementInformation statementInformation)
Statement.addBatch* method is invokedstatementInformation - The meta information about the Statement being invokedpublic void onAfterAnyAddBatch(StatementInformation statementInformation, long timeElapsedNanos, 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) throws SQLException
JdbcEventListenerPreparedStatement.execute() methods are invoked.onBeforeExecute 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedSQLException - SQLExceptionpublic String onBeforeExecute(StatementInformation statementInformation, String sql) throws SQLException
JdbcEventListenerStatement.execute(String) methods are invoked.onBeforeExecute 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedsql - The SQL string provided to the execute methodSQLException - SQLExceptionpublic void onBeforeExecuteBatch(StatementInformation statementInformation) throws SQLException
JdbcEventListenerStatement.executeBatch() method is invoked.onBeforeExecuteBatch 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedSQLException - SQLExceptionpublic void onBeforeExecuteUpdate(PreparedStatementInformation statementInformation) throws SQLException
JdbcEventListenerPreparedStatement.executeUpdate() method is invoked.onBeforeExecuteUpdate 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedSQLException - SQLExceptionpublic String onBeforeExecuteUpdate(StatementInformation statementInformation, String sql) throws SQLException
JdbcEventListenerStatement.executeUpdate(String) methods are invoked.onBeforeExecuteUpdate 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedsql - The SQL string provided to the execute methodSQLException - SQLExceptionpublic void onBeforeExecuteQuery(PreparedStatementInformation statementInformation) throws SQLException
JdbcEventListenerPreparedStatement.executeQuery() method is invoked.onBeforeExecuteQuery 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedSQLException - SQLExceptionpublic String onBeforeExecuteQuery(StatementInformation statementInformation, String sql) throws SQLException
JdbcEventListenerStatement.executeQuery(String) method is invoked.onBeforeExecuteQuery 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedsql - The SQL string provided to the execute methodSQLException - SQLExceptionpublic void onAfterExecute(PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e)
JdbcEventListenerPreparedStatement.execute() methods are invoked.onAfterExecute 在类中 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, String sql, SQLException e)
JdbcEventListenerStatement.execute(String) methods are invoked.onAfterExecute 在类中 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, SQLException e)
JdbcEventListenerStatement.executeBatch() method is invoked.onAfterExecuteBatch 在类中 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, SQLException e)
JdbcEventListenerPreparedStatement.executeUpdate() method is invoked.onAfterExecuteUpdate 在类中 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, String sql, int rowCount, SQLException e)
JdbcEventListenerStatement.executeUpdate(String) methods are invoked.onAfterExecuteUpdate 在类中 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, SQLException e)
JdbcEventListenerPreparedStatement.executeQuery() method is invoked.onAfterExecuteQuery 在类中 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, String sql, SQLException e)
JdbcEventListenerStatement.executeQuery(String) method is invoked.onAfterExecuteQuery 在类中 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 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic String onBeforeAddBatch(StatementInformation statementInformation, String sql)
JdbcEventListenerStatement.addBatch(String) or
Statement.addBatch(String) method is invoked.onBeforeAddBatch 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedsql - The SQL string provided to the execute methodpublic void onAfterAddBatch(PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e)
JdbcEventListenerStatement.addBatch(String) or
Statement.addBatch(String) method is invoked.onAfterAddBatch 在类中 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, String sql, SQLException e)
JdbcEventListenerStatement.addBatch(String) or
Statement.addBatch(String) method is invoked.onAfterAddBatch 在类中 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).Copyright © 2019. All rights reserved.