Record Class HibernateStatisticsInfo

java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.hibernate.model.HibernateStatisticsInfo
Record Components:
statisticsEnabled - whether statistics collection is enabled
startedAt - statistics start instant
sessionOpenCount - opened session count
sessionCloseCount - closed session count
transactionCount - transaction count
successfulTransactionCount - successful transaction count
connectCount - connection count
flushCount - flush count
prepareStatementCount - prepared statement count
closeStatementCount - closed statement count
entityLoadCount - entity load count
entityFetchCount - entity fetch count
entityInsertCount - entity insert count
entityUpdateCount - entity update count
entityDeleteCount - entity delete count
collectionLoadCount - collection load count
collectionFetchCount - collection fetch count
collectionUpdateCount - collection update count
collectionRemoveCount - collection remove count
collectionRecreateCount - collection recreate count
queryExecutionCount - query execution count
queryExecutionMaxTime - slowest query time
queryExecutionMaxTimeQueryString - slowest query string
queryCacheHitCount - query cache hit count
queryCacheMissCount - query cache miss count
queryCachePutCount - query cache put count
secondLevelCacheHitCount - second-level cache hit count
secondLevelCacheMissCount - second-level cache miss count
secondLevelCachePutCount - second-level cache put count
naturalIdCacheHitCount - natural-id cache hit count
naturalIdCacheMissCount - natural-id cache miss count
naturalIdCachePutCount - natural-id cache put count
queryPlanCacheHitCount - query plan cache hit count
queryPlanCacheMissCount - query plan cache miss count
optimisticFailureCount - optimistic failure count

public record HibernateStatisticsInfo(boolean statisticsEnabled, String startedAt, long sessionOpenCount, long sessionCloseCount, long transactionCount, long successfulTransactionCount, long connectCount, long flushCount, long prepareStatementCount, long closeStatementCount, long entityLoadCount, long entityFetchCount, long entityInsertCount, long entityUpdateCount, long entityDeleteCount, long collectionLoadCount, long collectionFetchCount, long collectionUpdateCount, long collectionRemoveCount, long collectionRecreateCount, long queryExecutionCount, long queryExecutionMaxTime, String queryExecutionMaxTimeQueryString, long queryCacheHitCount, long queryCacheMissCount, long queryCachePutCount, long secondLevelCacheHitCount, long secondLevelCacheMissCount, long secondLevelCachePutCount, long naturalIdCacheHitCount, long naturalIdCacheMissCount, long naturalIdCachePutCount, long queryPlanCacheHitCount, long queryPlanCacheMissCount, long optimisticFailureCount) extends Record
Aggregated Hibernate statistics.
  • Constructor Details

    • HibernateStatisticsInfo

      public HibernateStatisticsInfo(boolean statisticsEnabled, String startedAt, long sessionOpenCount, long sessionCloseCount, long transactionCount, long successfulTransactionCount, long connectCount, long flushCount, long prepareStatementCount, long closeStatementCount, long entityLoadCount, long entityFetchCount, long entityInsertCount, long entityUpdateCount, long entityDeleteCount, long collectionLoadCount, long collectionFetchCount, long collectionUpdateCount, long collectionRemoveCount, long collectionRecreateCount, long queryExecutionCount, long queryExecutionMaxTime, String queryExecutionMaxTimeQueryString, long queryCacheHitCount, long queryCacheMissCount, long queryCachePutCount, long secondLevelCacheHitCount, long secondLevelCacheMissCount, long secondLevelCachePutCount, long naturalIdCacheHitCount, long naturalIdCacheMissCount, long naturalIdCachePutCount, long queryPlanCacheHitCount, long queryPlanCacheMissCount, long optimisticFailureCount)
      Creates an instance of a HibernateStatisticsInfo record class.
      Parameters:
      statisticsEnabled - the value for the statisticsEnabled record component
      startedAt - the value for the startedAt record component
      sessionOpenCount - the value for the sessionOpenCount record component
      sessionCloseCount - the value for the sessionCloseCount record component
      transactionCount - the value for the transactionCount record component
      successfulTransactionCount - the value for the successfulTransactionCount record component
      connectCount - the value for the connectCount record component
      flushCount - the value for the flushCount record component
      prepareStatementCount - the value for the prepareStatementCount record component
      closeStatementCount - the value for the closeStatementCount record component
      entityLoadCount - the value for the entityLoadCount record component
      entityFetchCount - the value for the entityFetchCount record component
      entityInsertCount - the value for the entityInsertCount record component
      entityUpdateCount - the value for the entityUpdateCount record component
      entityDeleteCount - the value for the entityDeleteCount record component
      collectionLoadCount - the value for the collectionLoadCount record component
      collectionFetchCount - the value for the collectionFetchCount record component
      collectionUpdateCount - the value for the collectionUpdateCount record component
      collectionRemoveCount - the value for the collectionRemoveCount record component
      collectionRecreateCount - the value for the collectionRecreateCount record component
      queryExecutionCount - the value for the queryExecutionCount record component
      queryExecutionMaxTime - the value for the queryExecutionMaxTime record component
      queryExecutionMaxTimeQueryString - the value for the queryExecutionMaxTimeQueryString record component
      queryCacheHitCount - the value for the queryCacheHitCount record component
      queryCacheMissCount - the value for the queryCacheMissCount record component
      queryCachePutCount - the value for the queryCachePutCount record component
      secondLevelCacheHitCount - the value for the secondLevelCacheHitCount record component
      secondLevelCacheMissCount - the value for the secondLevelCacheMissCount record component
      secondLevelCachePutCount - the value for the secondLevelCachePutCount record component
      naturalIdCacheHitCount - the value for the naturalIdCacheHitCount record component
      naturalIdCacheMissCount - the value for the naturalIdCacheMissCount record component
      naturalIdCachePutCount - the value for the naturalIdCachePutCount record component
      queryPlanCacheHitCount - the value for the queryPlanCacheHitCount record component
      queryPlanCacheMissCount - the value for the queryPlanCacheMissCount record component
      optimisticFailureCount - the value for the optimisticFailureCount record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • statisticsEnabled

      public boolean statisticsEnabled()
      Returns the value of the statisticsEnabled record component.
      Returns:
      the value of the statisticsEnabled record component
    • startedAt

      public String startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • sessionOpenCount

      public long sessionOpenCount()
      Returns the value of the sessionOpenCount record component.
      Returns:
      the value of the sessionOpenCount record component
    • sessionCloseCount

      public long sessionCloseCount()
      Returns the value of the sessionCloseCount record component.
      Returns:
      the value of the sessionCloseCount record component
    • transactionCount

      public long transactionCount()
      Returns the value of the transactionCount record component.
      Returns:
      the value of the transactionCount record component
    • successfulTransactionCount

      public long successfulTransactionCount()
      Returns the value of the successfulTransactionCount record component.
      Returns:
      the value of the successfulTransactionCount record component
    • connectCount

      public long connectCount()
      Returns the value of the connectCount record component.
      Returns:
      the value of the connectCount record component
    • flushCount

      public long flushCount()
      Returns the value of the flushCount record component.
      Returns:
      the value of the flushCount record component
    • prepareStatementCount

      public long prepareStatementCount()
      Returns the value of the prepareStatementCount record component.
      Returns:
      the value of the prepareStatementCount record component
    • closeStatementCount

      public long closeStatementCount()
      Returns the value of the closeStatementCount record component.
      Returns:
      the value of the closeStatementCount record component
    • entityLoadCount

      public long entityLoadCount()
      Returns the value of the entityLoadCount record component.
      Returns:
      the value of the entityLoadCount record component
    • entityFetchCount

      public long entityFetchCount()
      Returns the value of the entityFetchCount record component.
      Returns:
      the value of the entityFetchCount record component
    • entityInsertCount

      public long entityInsertCount()
      Returns the value of the entityInsertCount record component.
      Returns:
      the value of the entityInsertCount record component
    • entityUpdateCount

      public long entityUpdateCount()
      Returns the value of the entityUpdateCount record component.
      Returns:
      the value of the entityUpdateCount record component
    • entityDeleteCount

      public long entityDeleteCount()
      Returns the value of the entityDeleteCount record component.
      Returns:
      the value of the entityDeleteCount record component
    • collectionLoadCount

      public long collectionLoadCount()
      Returns the value of the collectionLoadCount record component.
      Returns:
      the value of the collectionLoadCount record component
    • collectionFetchCount

      public long collectionFetchCount()
      Returns the value of the collectionFetchCount record component.
      Returns:
      the value of the collectionFetchCount record component
    • collectionUpdateCount

      public long collectionUpdateCount()
      Returns the value of the collectionUpdateCount record component.
      Returns:
      the value of the collectionUpdateCount record component
    • collectionRemoveCount

      public long collectionRemoveCount()
      Returns the value of the collectionRemoveCount record component.
      Returns:
      the value of the collectionRemoveCount record component
    • collectionRecreateCount

      public long collectionRecreateCount()
      Returns the value of the collectionRecreateCount record component.
      Returns:
      the value of the collectionRecreateCount record component
    • queryExecutionCount

      public long queryExecutionCount()
      Returns the value of the queryExecutionCount record component.
      Returns:
      the value of the queryExecutionCount record component
    • queryExecutionMaxTime

      public long queryExecutionMaxTime()
      Returns the value of the queryExecutionMaxTime record component.
      Returns:
      the value of the queryExecutionMaxTime record component
    • queryExecutionMaxTimeQueryString

      public String queryExecutionMaxTimeQueryString()
      Returns the value of the queryExecutionMaxTimeQueryString record component.
      Returns:
      the value of the queryExecutionMaxTimeQueryString record component
    • queryCacheHitCount

      public long queryCacheHitCount()
      Returns the value of the queryCacheHitCount record component.
      Returns:
      the value of the queryCacheHitCount record component
    • queryCacheMissCount

      public long queryCacheMissCount()
      Returns the value of the queryCacheMissCount record component.
      Returns:
      the value of the queryCacheMissCount record component
    • queryCachePutCount

      public long queryCachePutCount()
      Returns the value of the queryCachePutCount record component.
      Returns:
      the value of the queryCachePutCount record component
    • secondLevelCacheHitCount

      public long secondLevelCacheHitCount()
      Returns the value of the secondLevelCacheHitCount record component.
      Returns:
      the value of the secondLevelCacheHitCount record component
    • secondLevelCacheMissCount

      public long secondLevelCacheMissCount()
      Returns the value of the secondLevelCacheMissCount record component.
      Returns:
      the value of the secondLevelCacheMissCount record component
    • secondLevelCachePutCount

      public long secondLevelCachePutCount()
      Returns the value of the secondLevelCachePutCount record component.
      Returns:
      the value of the secondLevelCachePutCount record component
    • naturalIdCacheHitCount

      public long naturalIdCacheHitCount()
      Returns the value of the naturalIdCacheHitCount record component.
      Returns:
      the value of the naturalIdCacheHitCount record component
    • naturalIdCacheMissCount

      public long naturalIdCacheMissCount()
      Returns the value of the naturalIdCacheMissCount record component.
      Returns:
      the value of the naturalIdCacheMissCount record component
    • naturalIdCachePutCount

      public long naturalIdCachePutCount()
      Returns the value of the naturalIdCachePutCount record component.
      Returns:
      the value of the naturalIdCachePutCount record component
    • queryPlanCacheHitCount

      public long queryPlanCacheHitCount()
      Returns the value of the queryPlanCacheHitCount record component.
      Returns:
      the value of the queryPlanCacheHitCount record component
    • queryPlanCacheMissCount

      public long queryPlanCacheMissCount()
      Returns the value of the queryPlanCacheMissCount record component.
      Returns:
      the value of the queryPlanCacheMissCount record component
    • optimisticFailureCount

      public long optimisticFailureCount()
      Returns the value of the optimisticFailureCount record component.
      Returns:
      the value of the optimisticFailureCount record component