Class JdbcInterceptor

java.lang.Object
com.p6spy.engine.event.JdbcEventListener
com.p6spy.engine.event.SimpleJdbcEventListener
dev.inspector.spring.interceptors.db.JdbcInterceptor

@Service public class JdbcInterceptor extends com.p6spy.engine.event.SimpleJdbcEventListener
  • Constructor Summary

    Constructors
    Constructor
    Description
    JdbcInterceptor(InspectorMonitoringContext inspectorMonitoringContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAfterAnyExecute(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, SQLException e)
     
    void
    onBeforeAnyExecute(com.p6spy.engine.common.StatementInformation statementInformation)
     

    Methods inherited from class com.p6spy.engine.event.SimpleJdbcEventListener

    onAfterAddBatch, onAfterAddBatch, onAfterAnyAddBatch, onAfterExecute, onAfterExecute, onAfterExecuteBatch, onAfterExecuteQuery, onAfterExecuteQuery, onAfterExecuteUpdate, onAfterExecuteUpdate, onBeforeAddBatch, onBeforeAddBatch, onBeforeAnyAddBatch, onBeforeExecute, onBeforeExecute, onBeforeExecuteBatch, onBeforeExecuteQuery, onBeforeExecuteQuery, onBeforeExecuteUpdate, onBeforeExecuteUpdate

    Methods inherited from class com.p6spy.engine.event.JdbcEventListener

    onAfterCallableStatementSet, onAfterCommit, onAfterConnectionClose, onAfterGetConnection, onAfterGetResultSet, onAfterPreparedStatementSet, onAfterResultSetClose, onAfterResultSetGet, onAfterResultSetGet, onAfterResultSetNext, onAfterRollback, onAfterSetAutoCommit, onAfterStatementClose, onBeforeCommit, onBeforeGetConnection, onBeforeResultSetNext, onBeforeRollback, onBeforeSetAutoCommit, onConnectionWrapped

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • onBeforeAnyExecute

      public void onBeforeAnyExecute(com.p6spy.engine.common.StatementInformation statementInformation)
      Overrides:
      onBeforeAnyExecute in class com.p6spy.engine.event.SimpleJdbcEventListener
    • onAfterAnyExecute

      public void onAfterAnyExecute(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, SQLException e)
      Overrides:
      onAfterAnyExecute in class com.p6spy.engine.event.SimpleJdbcEventListener