Record Class HibernateQueryInfo
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.hibernate.model.HibernateQueryInfo
- Record Components:
query- query stringexecutionCount- execution countexecutionRowCount- execution row countexecutionAvgTime- average execution timeexecutionMaxTime- maximum execution timeexecutionMinTime- minimum execution timeexecutionTotalTime- total execution timecacheHitCount- query cache hit countcacheMissCount- query cache miss countcachePutCount- query cache put countplanCacheHitCount- query plan cache hit countplanCacheMissCount- query plan cache miss countslowTime- 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 Summary
ConstructorsConstructorDescriptionHibernateQueryInfo(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 aHibernateQueryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecacheHitCountrecord component.longReturns the value of thecacheMissCountrecord component.longReturns the value of thecachePutCountrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionAvgTimerecord component.longReturns the value of theexecutionCountrecord component.longReturns the value of theexecutionMaxTimerecord component.longReturns the value of theexecutionMinTimerecord component.longReturns the value of theexecutionRowCountrecord component.longReturns the value of theexecutionTotalTimerecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theplanCacheHitCountrecord component.longReturns the value of theplanCacheMissCountrecord component.query()Returns the value of thequeryrecord component.longslowTime()Returns the value of theslowTimerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aHibernateQueryInforecord class.- Parameters:
query- the value for thequeryrecord componentexecutionCount- the value for theexecutionCountrecord componentexecutionRowCount- the value for theexecutionRowCountrecord componentexecutionAvgTime- the value for theexecutionAvgTimerecord componentexecutionMaxTime- the value for theexecutionMaxTimerecord componentexecutionMinTime- the value for theexecutionMinTimerecord componentexecutionTotalTime- the value for theexecutionTotalTimerecord componentcacheHitCount- the value for thecacheHitCountrecord componentcacheMissCount- the value for thecacheMissCountrecord componentcachePutCount- the value for thecachePutCountrecord componentplanCacheHitCount- the value for theplanCacheHitCountrecord componentplanCacheMissCount- the value for theplanCacheMissCountrecord componentslowTime- the value for theslowTimerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
query
-
executionCount
public long executionCount()Returns the value of theexecutionCountrecord component.- Returns:
- the value of the
executionCountrecord component
-
executionRowCount
public long executionRowCount()Returns the value of theexecutionRowCountrecord component.- Returns:
- the value of the
executionRowCountrecord component
-
executionAvgTime
public long executionAvgTime()Returns the value of theexecutionAvgTimerecord component.- Returns:
- the value of the
executionAvgTimerecord component
-
executionMaxTime
public long executionMaxTime()Returns the value of theexecutionMaxTimerecord component.- Returns:
- the value of the
executionMaxTimerecord component
-
executionMinTime
public long executionMinTime()Returns the value of theexecutionMinTimerecord component.- Returns:
- the value of the
executionMinTimerecord component
-
executionTotalTime
public long executionTotalTime()Returns the value of theexecutionTotalTimerecord component.- Returns:
- the value of the
executionTotalTimerecord component
-
cacheHitCount
public long cacheHitCount()Returns the value of thecacheHitCountrecord component.- Returns:
- the value of the
cacheHitCountrecord component
-
cacheMissCount
public long cacheMissCount()Returns the value of thecacheMissCountrecord component.- Returns:
- the value of the
cacheMissCountrecord component
-
cachePutCount
public long cachePutCount()Returns the value of thecachePutCountrecord component.- Returns:
- the value of the
cachePutCountrecord component
-
planCacheHitCount
public long planCacheHitCount()Returns the value of theplanCacheHitCountrecord component.- Returns:
- the value of the
planCacheHitCountrecord component
-
planCacheMissCount
public long planCacheMissCount()Returns the value of theplanCacheMissCountrecord component.- Returns:
- the value of the
planCacheMissCountrecord component
-
slowTime
-