Record Class StatementExecution
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.instrumentation.StatementExecution
- Record Components:
backendName- the QQQ backend's nametableName- the QQQ table the action was on (may be null)operation- the action's kindsql- the statement as sent, with bind placeholders; parameter values are never includedelapsedNanos- time from just before execution to completion (including reading results)rowCount- rows read or affected when known, else nullsucceeded- false when the statement threwunitOfWork- the outermost open unit of work on the thread, or nullprocessName- the outermost process on the thread's action stack, or null
public record StatementExecution(String backendName, String tableName, StatementOperation operation, String sql, long elapsedNanos, Integer rowCount, boolean succeeded, UnitOfWork unitOfWork, String processName)
extends Record
One statement a backend module ran on behalf of a table action.
-
Constructor Summary
ConstructorsConstructorDescriptionStatementExecution(String backendName, String tableName, StatementOperation operation, String sql, long elapsedNanos, Integer rowCount, boolean succeeded, UnitOfWork unitOfWork, String processName) Creates an instance of aStatementExecutionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackendNamerecord component.longReturns the value of theelapsedNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.Returns the value of theprocessNamerecord component.rowCount()Returns the value of therowCountrecord component.sql()Returns the value of thesqlrecord component.booleanReturns the value of thesucceededrecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunitOfWorkrecord component.
-
Constructor Details
-
StatementExecution
public StatementExecution(String backendName, String tableName, StatementOperation operation, String sql, long elapsedNanos, Integer rowCount, boolean succeeded, UnitOfWork unitOfWork, String processName) Creates an instance of aStatementExecutionrecord class.- Parameters:
backendName- the value for thebackendNamerecord componenttableName- the value for thetableNamerecord componentoperation- the value for theoperationrecord componentsql- the value for thesqlrecord componentelapsedNanos- the value for theelapsedNanosrecord componentrowCount- the value for therowCountrecord componentsucceeded- the value for thesucceededrecord componentunitOfWork- the value for theunitOfWorkrecord componentprocessName- the value for theprocessNamerecord 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. -
backendName
Returns the value of thebackendNamerecord component.- Returns:
- the value of the
backendNamerecord component
-
tableName
-
operation
-
sql
-
elapsedNanos
public long elapsedNanos()Returns the value of theelapsedNanosrecord component.- Returns:
- the value of the
elapsedNanosrecord component
-
rowCount
-
succeeded
-
unitOfWork
Returns the value of theunitOfWorkrecord component.- Returns:
- the value of the
unitOfWorkrecord component
-
processName
Returns the value of theprocessNamerecord component.- Returns:
- the value of the
processNamerecord component
-