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

public Class CollectionStatisticsImpl

extends AbstractCacheableDataStatistics
implements CollectionStatistics, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.stat.CollectionStatistics, org.hibernate.stat.CacheableDataStatistics
Imports
java.io.Serializable, java.util.concurrent.atomic.LongAdder, org.hibernate.persister.collection.CollectionPersister, org.hibernate.stat.CollectionStatistics

Collection related statistics
Author
Alex Snaps

Field Summary

Modifier and TypeField and Description
private final String
private final LongAdder
private final LongAdder
private final LongAdder
private final LongAdder
private final LongAdder

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
getFetchCount()

Implements org.hibernate.stat.CollectionStatistics.getFetchCount.

Number of times (since last Statistics clearing) this collection has been fetched
public long
getLoadCount()

Implements org.hibernate.stat.CollectionStatistics.getLoadCount.

Number of times (since last Statistics clearing) this collection has been loaded
public long
getRecreateCount()

Implements org.hibernate.stat.CollectionStatistics.getRecreateCount.

Number of times (since last Statistics clearing) this collection has been recreated (rows potentially deleted and then rows (re-)inserted)
public long
getRemoveCount()

Implements org.hibernate.stat.CollectionStatistics.getRemoveCount.

Number of times (since last Statistics clearing) this collection has been removed
public long
getUpdateCount()

Implements org.hibernate.stat.CollectionStatistics.getUpdateCount.

Number of times (since last Statistics clearing) this collection has been updated
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
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

collectionRoleback to summary
private final String collectionRole
fetchCountback to summary
private final LongAdder fetchCount
loadCountback to summary
private final LongAdder loadCount
recreateCountback to summary
private final LongAdder recreateCount
removeCountback to summary
private final LongAdder removeCount
updateCountback to summary
private final LongAdder updateCount

Constructor Detail

CollectionStatisticsImplback to summary
pack-priv CollectionStatisticsImpl(CollectionPersister persister)

Method Detail

getFetchCountback to summary
public long getFetchCount()

Implements org.hibernate.stat.CollectionStatistics.getFetchCount.

Doc from org.hibernate.stat.CollectionStatistics.getFetchCount.

Number of times (since last Statistics clearing) this collection has been fetched

getLoadCountback to summary
public long getLoadCount()

Implements org.hibernate.stat.CollectionStatistics.getLoadCount.

Doc from org.hibernate.stat.CollectionStatistics.getLoadCount.

Number of times (since last Statistics clearing) this collection has been loaded

getRecreateCountback to summary
public long getRecreateCount()

Implements org.hibernate.stat.CollectionStatistics.getRecreateCount.

Doc from org.hibernate.stat.CollectionStatistics.getRecreateCount.

Number of times (since last Statistics clearing) this collection has been recreated (rows potentially deleted and then rows (re-)inserted)

getRemoveCountback to summary
public long getRemoveCount()

Implements org.hibernate.stat.CollectionStatistics.getRemoveCount.

Doc from org.hibernate.stat.CollectionStatistics.getRemoveCount.

Number of times (since last Statistics clearing) this collection has been removed

getUpdateCountback to summary
public long getUpdateCount()

Implements org.hibernate.stat.CollectionStatistics.getUpdateCount.

Doc from org.hibernate.stat.CollectionStatistics.getUpdateCount.

Number of times (since last Statistics clearing) this collection has been updated

incrementFetchCountback to summary
pack-priv void incrementFetchCount()
incrementLoadCountback to summary
pack-priv void incrementLoadCount()
incrementRecreateCountback to summary
pack-priv void incrementRecreateCount()
incrementRemoveCountback to summary
pack-priv void incrementRemoveCount()
incrementUpdateCountback to summary
pack-priv void incrementUpdateCount()
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.