Class JdbcQueryExecutionEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
net.ttddyy.observation.boot.event.JdbcEvent
net.ttddyy.observation.boot.event.JdbcQueryExecutionEvent
All Implemented Interfaces:
Serializable

public class JdbcQueryExecutionEvent extends JdbcEvent
An event published when queries are executed.

The event is published right before and after executing the queries.

Since:
1.1
Author:
Tadaya Tsuyukubo
See Also:
  • Constructor Details

    • JdbcQueryExecutionEvent

      public JdbcQueryExecutionEvent(boolean isBefore, net.ttddyy.dsproxy.ExecutionInfo execInfo, List<net.ttddyy.dsproxy.QueryInfo> queryInfoList)
  • Method Details

    • isBefore

      public boolean isBefore()
      true when the event is published right before executing queries.
      Returns:
      true if before execution
    • isAfter

      public boolean isAfter()
      true when the event is published right after executing queries.
      Returns:
      true if after execution
    • getExecInfo

      public net.ttddyy.dsproxy.ExecutionInfo getExecInfo()
    • getQueryInfoList

      public List<net.ttddyy.dsproxy.QueryInfo> getQueryInfoList()