Top Description Fields Constructors Methods
org.hibernate.stat.internal

public Class NaturalIdStatisticsImpl

extends AbstractCacheableDataStatistics
implements NaturalIdStatistics, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.stat.NaturalIdStatistics, org.hibernate.stat.CacheableDataStatistics
Imports
java.io.Serializable, java.util.concurrent.atomic.AtomicLong, java.util.concurrent.locks.Lock, .ReadWriteLock, .ReentrantReadWriteLock, org.hibernate.persister.entity.EntityPersister, org.hibernate.stat.NaturalIdStatistics

NaturalId cache statistics of a specific entity
Author
Eric Dalquist

Field Summary

Modifier and TypeField and Description
private final AtomicLong
private final AtomicLong
private final AtomicLong
private final Lock
private final String
private final AtomicLong
private final Lock

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
getExecutionAvgTime()

Implements org.hibernate.stat.NaturalIdStatistics.getExecutionAvgTime.

average time in ms taken by the execution of this query onto the DB
public long
public long
getExecutionMaxTime()

Implements org.hibernate.stat.NaturalIdStatistics.getExecutionMaxTime.

max time in ms taken by the execution of this query onto the DB
public long
getExecutionMinTime()

Implements org.hibernate.stat.NaturalIdStatistics.getExecutionMinTime.

min time in ms taken by the execution of this query onto the DB
pack-priv void
queryExecuted(long time)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.stat.internal.AbstractCacheableDataStatistics:
appendCacheStatsgetCacheHitCountgetCacheMissCountgetCachePutCountgetCacheRegionNameincrementCacheHitCountincrementCacheMissCountincrementCachePutCount

Field Detail

executionCountback to summary
private final AtomicLong executionCount
executionMaxTimeback to summary
private final AtomicLong executionMaxTime
executionMinTimeback to summary
private final AtomicLong executionMinTime
readLockback to summary
private final Lock readLock
rootEntityNameback to summary
private final String rootEntityName
totalExecutionTimeback to summary
private final AtomicLong totalExecutionTime
writeLockback to summary
private final Lock writeLock

Constructor Detail

NaturalIdStatisticsImplback to summary
pack-priv NaturalIdStatisticsImpl(EntityPersister rootEntityDescriptor)

Method Detail

getExecutionAvgTimeback to summary
public long getExecutionAvgTime()

Implements org.hibernate.stat.NaturalIdStatistics.getExecutionAvgTime.

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

Annotations
@Override
getExecutionCountback to summary
public long getExecutionCount()

Implements org.hibernate.stat.NaturalIdStatistics.getExecutionCount.

queries executed to the DB

Annotations
@Override
getExecutionMaxTimeback to summary
public long getExecutionMaxTime()

Implements org.hibernate.stat.NaturalIdStatistics.getExecutionMaxTime.

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

Annotations
@Override
getExecutionMinTimeback to summary
public long getExecutionMinTime()

Implements org.hibernate.stat.NaturalIdStatistics.getExecutionMinTime.

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

Annotations
@Override
queryExecutedback to summary
pack-priv void queryExecuted(long time)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override