Top Description Fields Methods
org.hibernate.stat

public Interface NaturalIdStatistics

extends CacheableDataStatistics, Serializable
Known Direct Implementers
org.hibernate.stat.internal.NaturalIdStatisticsImpl
Imports
java.io.Serializable

Statistics pertaining to the execution of queries which resolve a natural id lookup against the database.

API Note

The natural-id resolution data is allowed to be stored in the second-level cache, and if so stored will have available caching stats as well available via Statistics#getDomainDataRegionStatistics using the configured region name

Authors
Eric Dalquist, Steve Ebersole

Field Summary

Inherited from org.hibernate.stat.CacheableDataStatistics:
NOT_CACHED_COUNT

Method Summary

Modifier and TypeMethod and Description
public long
getExecutionAvgTime()

The average amount of time it takes (since last Statistics clearing) for the execution of this "natural id resolution" query

public long
getExecutionCount()

Number of times (since last Statistics clearing) the "natural id resolution" query has been executed

public long
getExecutionMaxTime()

The maximum amount of time it takes (since last Statistics clearing) for the execution of this "natural id resolution" query

public long
getExecutionMinTime()

The minimum amount of time it takes (since last Statistics clearing) for the execution of this "natural id resolution" query

Inherited from org.hibernate.stat.CacheableDataStatistics:
getCacheHitCountgetCacheMissCountgetCachePutCountgetCacheRegionName

Method Detail

getExecutionAvgTimeback to summary
public long getExecutionAvgTime()

The average amount of time it takes (since last Statistics clearing) for the execution of this "natural id resolution" query

getExecutionCountback to summary
public long getExecutionCount()

Number of times (since last Statistics clearing) the "natural id resolution" query has been executed

getExecutionMaxTimeback to summary
public long getExecutionMaxTime()

The maximum amount of time it takes (since last Statistics clearing) for the execution of this "natural id resolution" query

getExecutionMinTimeback to summary
public long getExecutionMinTime()

The minimum amount of time it takes (since last Statistics clearing) for the execution of this "natural id resolution" query