Package org.hibernate.stat
Class QueryStatisticsImpl
java.lang.Object
org.hibernate.stat.CategorizedStatistics
org.hibernate.stat.QueryStatisticsImpl
- All Implemented Interfaces:
Serializable,QueryStatistics
Query statistics (HQL and SQL)
Note that for a cached query, the cache miss is equals to the db count
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlongQueries retrieved successfully from the cachelonglonglongaverage time in ms taken by the execution of this query onto the DBlongqueries executed to the DBlongmax time in ms taken by the execution of this query onto the DBlongmin time in ms taken by the execution of this query onto the DBlongNumber of lines returned by all the executions of this query (from DB) For now,Query.iterate()and} do not fill this statisticinvalid @link
{@link org.hibernate.Query#scroll()()toString()Methods inherited from class org.hibernate.stat.CategorizedStatistics
getCategoryName
-
Method Details
-
getExecutionCount
public long getExecutionCount()queries executed to the DB- Specified by:
getExecutionCountin interfaceQueryStatistics
-
getCacheHitCount
public long getCacheHitCount()Queries retrieved successfully from the cache- Specified by:
getCacheHitCountin interfaceQueryStatistics
-
getCachePutCount
public long getCachePutCount()- Specified by:
getCachePutCountin interfaceQueryStatistics
-
getCacheMissCount
public long getCacheMissCount()- Specified by:
getCacheMissCountin interfaceQueryStatistics
-
getExecutionRowCount
public long getExecutionRowCount()Number of lines returned by all the executions of this query (from DB) For now,Query.iterate()and} do not fill this statisticinvalid @link
{@link org.hibernate.Query#scroll()()- Specified by:
getExecutionRowCountin interfaceQueryStatistics- Returns:
- The number of rows cumulatively returned by the given query; iterate and scroll queries do not effect this total as their number of returned rows is not known at execution time.
-
getExecutionAvgTime
public long getExecutionAvgTime()average time in ms taken by the execution of this query onto the DB- Specified by:
getExecutionAvgTimein interfaceQueryStatistics
-
getExecutionMaxTime
public long getExecutionMaxTime()max time in ms taken by the execution of this query onto the DB- Specified by:
getExecutionMaxTimein interfaceQueryStatistics
-
getExecutionMinTime
public long getExecutionMinTime()min time in ms taken by the execution of this query onto the DB- Specified by:
getExecutionMinTimein interfaceQueryStatistics
-
toString
-