Record Class HibernateQueryInfo

java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.hibernate.model.HibernateQueryInfo
Record Components:
query - query string
executionCount - execution count
executionRowCount - execution row count
executionAvgTime - average execution time
executionMaxTime - maximum execution time
executionMinTime - minimum execution time
executionTotalTime - total execution time
cacheHitCount - query cache hit count
cacheMissCount - query cache miss count
cachePutCount - query cache put count
planCacheHitCount - query plan cache hit count
planCacheMissCount - query plan cache miss count
slowTime - slow query time

public record HibernateQueryInfo(String query, long executionCount, long executionRowCount, long executionAvgTime, long executionMaxTime, long executionMinTime, long executionTotalTime, long cacheHitCount, long cacheMissCount, long cachePutCount, long planCacheHitCount, long planCacheMissCount, long slowTime) extends Record
Hibernate query statistics.
  • Constructor Details

    • HibernateQueryInfo

      public HibernateQueryInfo(String query, long executionCount, long executionRowCount, long executionAvgTime, long executionMaxTime, long executionMinTime, long executionTotalTime, long cacheHitCount, long cacheMissCount, long cachePutCount, long planCacheHitCount, long planCacheMissCount, long slowTime)
      Creates an instance of a HibernateQueryInfo record class.
      Parameters:
      query - the value for the query record component
      executionCount - the value for the executionCount record component
      executionRowCount - the value for the executionRowCount record component
      executionAvgTime - the value for the executionAvgTime record component
      executionMaxTime - the value for the executionMaxTime record component
      executionMinTime - the value for the executionMinTime record component
      executionTotalTime - the value for the executionTotalTime record component
      cacheHitCount - the value for the cacheHitCount record component
      cacheMissCount - the value for the cacheMissCount record component
      cachePutCount - the value for the cachePutCount record component
      planCacheHitCount - the value for the planCacheHitCount record component
      planCacheMissCount - the value for the planCacheMissCount record component
      slowTime - the value for the slowTime 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.
    • query

      public String query()
      Returns the value of the query record component.
      Returns:
      the value of the query record component
    • executionCount

      public long executionCount()
      Returns the value of the executionCount record component.
      Returns:
      the value of the executionCount record component
    • executionRowCount

      public long executionRowCount()
      Returns the value of the executionRowCount record component.
      Returns:
      the value of the executionRowCount record component
    • executionAvgTime

      public long executionAvgTime()
      Returns the value of the executionAvgTime record component.
      Returns:
      the value of the executionAvgTime record component
    • executionMaxTime

      public long executionMaxTime()
      Returns the value of the executionMaxTime record component.
      Returns:
      the value of the executionMaxTime record component
    • executionMinTime

      public long executionMinTime()
      Returns the value of the executionMinTime record component.
      Returns:
      the value of the executionMinTime record component
    • executionTotalTime

      public long executionTotalTime()
      Returns the value of the executionTotalTime record component.
      Returns:
      the value of the executionTotalTime record component
    • cacheHitCount

      public long cacheHitCount()
      Returns the value of the cacheHitCount record component.
      Returns:
      the value of the cacheHitCount record component
    • cacheMissCount

      public long cacheMissCount()
      Returns the value of the cacheMissCount record component.
      Returns:
      the value of the cacheMissCount record component
    • cachePutCount

      public long cachePutCount()
      Returns the value of the cachePutCount record component.
      Returns:
      the value of the cachePutCount record component
    • planCacheHitCount

      public long planCacheHitCount()
      Returns the value of the planCacheHitCount record component.
      Returns:
      the value of the planCacheHitCount record component
    • planCacheMissCount

      public long planCacheMissCount()
      Returns the value of the planCacheMissCount record component.
      Returns:
      the value of the planCacheMissCount record component
    • slowTime

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