public class

QueryStatisticsImpl

extends CategorizedStatistics
implements QueryStatistics
java.lang.Object
   ↳ org.hibernate.stat.CategorizedStatistics
     ↳ org.hibernate.stat.QueryStatisticsImpl

Class Overview

Query statistics (HQL and SQL)

Note that for a cached query, the cache miss is equals to the db count

Summary

Public Methods
long getCacheHitCount()
Queries retrieved successfully from the cache
long getCacheMissCount()
long getCachePutCount()
long getExecutionAvgTime()
average time in ms taken by the execution of this query onto the DB
long getExecutionCount()
queries executed to the DB
long getExecutionMaxTime()
max time in ms taken by the execution of this query onto the DB
long getExecutionMinTime()
min time in ms taken by the execution of this query onto the DB
long getExecutionRowCount()
Number of lines returned by all the executions of this query (from DB) For now, iterate() and org.hibernate.Query#scroll()() do not fill this statistic
String toString()
[Expand]
Inherited Methods
From class org.hibernate.stat.CategorizedStatistics
From class java.lang.Object
From interface org.hibernate.stat.QueryStatistics

Public Methods

public long getCacheHitCount ()

Queries retrieved successfully from the cache

public long getCacheMissCount ()

public long getCachePutCount ()

public long getExecutionAvgTime ()

average time in ms taken by the execution of this query onto the DB

public long getExecutionCount ()

queries executed to the DB

public long getExecutionMaxTime ()

max time in ms taken by the execution of this query onto the DB

public long getExecutionMinTime ()

min time in ms taken by the execution of this query onto the DB

public long getExecutionRowCount ()

Number of lines returned by all the executions of this query (from DB) For now, iterate() and org.hibernate.Query#scroll()() do not fill this statistic

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.

public String toString ()