Package io.ebean.config
Class SlowQueryEvent
java.lang.Object
io.ebean.config.SlowQueryEvent
public class SlowQueryEvent extends Object
Slow query event.
-
Constructor Summary
Constructors Constructor Description SlowQueryEvent(String sql, long timeMillis, int rowCount, ObjectGraphNode originNode)Construct with the SQL and execution time in millis. -
Method Summary
Modifier and Type Method Description ObjectGraphNodegetOriginNode()Return the origin point for the root query.intgetRowCount()Return the total row count associated with the query.StringgetSql()Return the SQL for the slow query.longgetTimeMillis()Return the execution time in millis.
-
Constructor Details
-
SlowQueryEvent
Construct with the SQL and execution time in millis.
-
-
Method Details
-
getSql
Return the SQL for the slow query. -
getTimeMillis
Return the execution time in millis. -
getRowCount
Return the total row count associated with the query. -
getOriginNode
Return the origin point for the root query.Typically the
originNode.getOriginQueryPoint().getFirstStackElement()provides the stack line that shows the code that invoked the query.
-