Java org.hibernate.stat Statistics fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate.stat Statistics fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate.stat Statistics.

The text is from its open source code.

Implementation

org.hibernate.stat.Statistics has the following implementations.
Click this link to see all its implementation.

Method

voidclear()
reset all statistics
longgetCloseStatementCount()
The number of prepared statements that were released
longgetCollectionFetchCount()
Global number of collections fetched
longgetCollectionLoadCount()
Global number of collections loaded
longgetCollectionRecreateCount()
Global number of collections recreated
longgetCollectionRemoveCount()
Global number of collections removed
String[]getCollectionRoleNames()
Get the names of all collection roles
CollectionStatisticsgetCollectionStatistics(String role)
Get collection statistics per role
longgetCollectionUpdateCount()
Global number of collections updated
longgetConnectCount()
Get the global number of connections asked by the sessions (the actual number of connections used may be much smaller depending whether you use a connection pool or not)
longgetEntityDeleteCount()
Get global number of entity deletes
longgetEntityFetchCount()
Get global number of entity fetches
longgetEntityInsertCount()
Get global number of entity inserts
longgetEntityLoadCount()
Get global number of entity loads
String[]getEntityNames()
Get the names of all entities
EntityStatisticsgetEntityStatistics(String entityName)
find entity statistics per name
longgetEntityUpdateCount()
Get global number of entity updates
longgetFlushCount()
Get the global number of flush operations executed (either manual or automatic).
longgetNaturalIdCacheHitCount()
Get the global number of cached natural id lookups successfully retrieved from cache
longgetNaturalIdCacheMissCount()
Get the global number of cached natural id lookups *not* found in cache
longgetNaturalIdCachePutCount()
Get the global number of cacheable natural id lookups put in cache
longgetNaturalIdQueryExecutionCount()
Get the global number of natural id queries executed against the database
longgetNaturalIdQueryExecutionMaxTime()
Get the global maximum query time for natural id queries executed against the database
StringgetNaturalIdQueryExecutionMaxTimeRegion()
Get the region for the maximum natural id query time
longgetOptimisticFailureCount()
The number of Hibernate StaleObjectStateExceptions or JPA OptimisticLockExceptions that occurred.
longgetPrepareStatementCount()
The number of prepared statements that were acquired
String[]getQueries()
Get all executed query strings.
longgetQueryCacheHitCount()
Get the global number of cached queries successfully retrieved from cache
longgetQueryCacheMissCount()
Get the global number of cached queries *not* found in cache
longgetQueryCachePutCount()
Get the global number of cacheable queries put in cache
longgetQueryExecutionCount()
Get global number of executed queries
longgetQueryExecutionMaxTime()
Get the time in milliseconds of the slowest query.
StringgetQueryExecutionMaxTimeQueryString()
Get the query string for the slowest query.
QueryStatisticsgetQueryStatistics(String queryString)
Query statistics from query string (HQL or SQL)
longgetSecondLevelCacheHitCount()
Global number of cacheable entities/collections successfully retrieved from the cache
longgetSecondLevelCacheMissCount()
Global number of cacheable entities/collections not found in the cache and loaded from the database.
longgetSecondLevelCachePutCount()
Global number of cacheable entities/collections put in the cache
String[]getSecondLevelCacheRegionNames()
Get all second-level cache region names.
SecondLevelCacheStatisticsgetSecondLevelCacheStatistics(String regionName)
Second-level cache statistics per region
longgetSessionCloseCount()
Global number of sessions closed
longgetSessionOpenCount()
Global number of sessions opened
longgetStartTime()
The milliseconds (JVM standard System#currentTimeMillis() ) since the initial creation of this Statistics instance or the last time #clear() was called.
longgetSuccessfulTransactionCount()
The number of transactions we know to have been successful
longgetTransactionCount()
The number of transactions we know to have completed
longgetUpdateTimestampsCacheHitCount()
Get the global number of timestamps successfully retrieved from cache
longgetUpdateTimestampsCacheMissCount()
Get the global number of timestamp requests that were not found in the cache
longgetUpdateTimestampsCachePutCount()
Get the global number of timestamps put in cache
booleanisStatisticsEnabled()
Are statistics enabled
voidlogSummary()
log in info level the main statistics
voidsetStatisticsEnabled(boolean b)
Enable statistics logs (this is a dynamic parameter)