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
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
ConstructorsConstructorDescriptionJdbcMethodExecutionEvent
(boolean before, net.ttddyy.dsproxy.listener.MethodExecutionContext executionContext) -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
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()
-