@Component public class CompoundJdbcEventListener extends JdbcEventListener
| 构造器和说明 |
|---|
CompoundJdbcEventListener(P6spyJdbcEventListener p6spyEventListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
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,
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 |
onAfterGetConnection(ConnectionInformation connectionInformation,
SQLException e)
|
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 |
onAfterStatementClose(StatementInformation statementInformation,
SQLException e)
This callback method is executed after the
Statement.close() method is 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. |
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. |
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. |
void |
onBeforeGetConnection(ConnectionInformation connectionInformation)
|
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. |
void |
onConnectionWrapped(ConnectionInformation connectionInformation)
已过时。
|
@Autowired public CompoundJdbcEventListener(P6spyJdbcEventListener p6spyEventListener)
public void onBeforeGetConnection(ConnectionInformation connectionInformation)
JdbcEventListenerConnection obtained from a DataSource or a Driver.
The ConnectionInformation holds information about the creator of the connection which is either
,though ConnectionInformation.connection itself is null.
onBeforeGetConnection 在类中 JdbcEventListenerconnectionInformation - The meta information about the wrapped Connectionpublic void onAfterGetConnection(ConnectionInformation connectionInformation, SQLException e)
JdbcEventListenerConnection obtained from a DataSource or a Driver.
The ConnectionInformation holds information about the creator of the connection which is either
, though ConnectionInformation.connection itself is null
when SQLException is not null and vise versa.
onAfterGetConnection 在类中 JdbcEventListenerconnectionInformation - The meta information about the wrapped Connectione - The SQLException which may be triggered by the call (null if
there was no exception).@Deprecated public void onConnectionWrapped(ConnectionInformation connectionInformation)
JdbcEventListenerConnection has been created.
The ConnectionInformation holds information about the creator of the connection which is either
onConnectionWrapped 在类中 JdbcEventListenerconnectionInformation - The meta information about the wrapped Connectionpublic void onBeforeAddBatch(PreparedStatementInformation statementInformation)
JdbcEventListenerPreparedStatement.addBatch() method is invoked.onBeforeAddBatch 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedpublic 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 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(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).public void onBeforeExecute(PreparedStatementInformation statementInformation) throws SQLException
JdbcEventListenerPreparedStatement.execute() methods are invoked.onBeforeExecute 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedSQLException - 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 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 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 onBeforeExecuteBatch(StatementInformation statementInformation) throws SQLException
JdbcEventListenerStatement.executeBatch() method is invoked.onBeforeExecuteBatch 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedSQLException - SQLExceptionpublic 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 onBeforeExecuteUpdate(PreparedStatementInformation statementInformation) throws SQLException
JdbcEventListenerPreparedStatement.executeUpdate() method is invoked.onBeforeExecuteUpdate 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedSQLException - SQLExceptionpublic 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 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 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 onBeforeExecuteQuery(PreparedStatementInformation statementInformation) throws SQLException
JdbcEventListenerPreparedStatement.executeQuery() method is invoked.onBeforeExecuteQuery 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokedSQLException - SQLExceptionpublic 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 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 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 onAfterPreparedStatementSet(PreparedStatementInformation statementInformation, int parameterIndex, Object value, SQLException e)
JdbcEventListenerPreparedStatement.set* methods are invoked.onAfterPreparedStatementSet 在类中 JdbcEventListenerstatementInformation - 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)
JdbcEventListenerCallableStatement.set* methods are invoked.onAfterCallableStatementSet 在类中 JdbcEventListenerstatementInformation - 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)
JdbcEventListenerStatement.getResultSet() method is invoked.onAfterGetResultSet 在类中 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 onBeforeResultSetNext(ResultSetInformation resultSetInformation)
JdbcEventListenerResultSet.next() method is invoked.onBeforeResultSetNext 在类中 JdbcEventListenerresultSetInformation - The meta information about the ResultSet being invokedpublic void onAfterResultSetNext(ResultSetInformation resultSetInformation, long timeElapsedNanos, boolean hasNext, SQLException e)
JdbcEventListenerResultSet.next() method is invoked.onAfterResultSetNext 在类中 JdbcEventListenerresultSetInformation - 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)
JdbcEventListenerResultSet.close() method is invoked.onAfterResultSetClose 在类中 JdbcEventListenerresultSetInformation - 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)
JdbcEventListenerResultSet#get*(String) methods are invoked.onAfterResultSetGet 在类中 JdbcEventListenerresultSetInformation - 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)
JdbcEventListenerResultSet#get*(int) methods are invoked.onAfterResultSetGet 在类中 JdbcEventListenerresultSetInformation - 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)
JdbcEventListenerConnection.commit() method is invoked.onBeforeCommit 在类中 JdbcEventListenerconnectionInformation - The meta information about the Connection being invokedpublic void onAfterCommit(ConnectionInformation connectionInformation, long timeElapsedNanos, SQLException e)
JdbcEventListenerConnection.commit() method is invoked.onAfterCommit 在类中 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 onAfterConnectionClose(ConnectionInformation connectionInformation, SQLException e)
JdbcEventListenerConnection.close() method is invoked.onAfterConnectionClose 在类中 JdbcEventListenerconnectionInformation - 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)
JdbcEventListenerConnection.rollback() or the Connection.rollback(Savepoint) method is invoked.onBeforeRollback 在类中 JdbcEventListenerconnectionInformation - The meta information about the Connection being invokedpublic void onAfterRollback(ConnectionInformation connectionInformation, long timeElapsedNanos, SQLException e)
JdbcEventListenerConnection.rollback() or the Connection.rollback(Savepoint) method is invoked.onAfterRollback 在类中 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 onAfterStatementClose(StatementInformation statementInformation, SQLException e)
JdbcEventListenerStatement.close() method is invoked.onAfterStatementClose 在类中 JdbcEventListenerstatementInformation - The meta information about the Statement being invokede - The SQLException which may be triggered by the call (null if
there was no exception).Copyright © 2019. All rights reserved.