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
getTimestampMethods 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()truewhen the event is published right before executing queries.- Returns:
trueif before execution
-
isAfter
public boolean isAfter()truewhen the event is published right after executing queries.- Returns:
trueif after execution
-
getExecInfo
public net.ttddyy.dsproxy.ExecutionInfo getExecInfo() -
getQueryInfoList
-