Class QueryStats
java.lang.Object
org.javalite.activejdbc.statistics.QueryStats
This class represents statistical information for one query.
- Author:
- Igor Polevoy
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
QueryStats
-
-
Method Details
-
addQueryTime
public void addQueryTime(long time)Whenever this query was executed, add execution time with this method. This class will then recalculate all statistics.- Parameters:
time
- time in milliseconds it took to execute the query
-
getAvg
public long getAvg() -
getMin
public long getMin() -
getMax
public long getMax() -
getCount
public long getCount() -
getTotal
public long getTotal() -
getQuery
-
toString
-