Class JdbcMethodExecutionEvent

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

public class JdbcMethodExecutionEvent extends JdbcEvent
An event published when JDBC proxy methods are invoked.

The event is published right before and after executing the proxy methods.

Since:
1.1
Author:
Tadaya Tsuyukubo
See Also:
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    JdbcMethodExecutionEvent(boolean before, net.ttddyy.dsproxy.listener.MethodExecutionContext executionContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.ttddyy.dsproxy.listener.MethodExecutionContext
     
    boolean
    true when the event is published right after performing the method.
    boolean
    true when the event is published right before performing the method.

    Methods inherited from class org.springframework.context.ApplicationEvent

    getTimestamp

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

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

    • JdbcMethodExecutionEvent

      public JdbcMethodExecutionEvent(boolean before, net.ttddyy.dsproxy.listener.MethodExecutionContext executionContext)
  • Method Details

    • isBefore

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

      public boolean isAfter()
      true when the event is published right after performing the method.
      Returns:
      true if after execution
    • getExecutionContext

      public net.ttddyy.dsproxy.listener.MethodExecutionContext getExecutionContext()