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
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcQueryExecutionEvent
(boolean isBefore, net.ttddyy.dsproxy.ExecutionInfo execInfo, List<net.ttddyy.dsproxy.QueryInfo> queryInfoList) -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
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
-