Record Class JobChunkScope.RowError

java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.jobs.plans.JobChunkScope.RowError
Record Components:
rowNumber - the file row number (file sources), or null
recordPk - the record's primary key (table sources), or null
fieldName - the field the error is about, or null
errorCode - a short machine code (e.g., the error class), or null
message - the user-facing message
Enclosing class:
JobChunkScope

public static record JobChunkScope.RowError(Integer rowNumber, Serializable recordPk, String fieldName, String errorCode, String message) extends Record
One failed row.
  • Constructor Details

    • RowError

      public RowError(Integer rowNumber, Serializable recordPk, String fieldName, String errorCode, String message)
      Creates an instance of a RowError record class.
      Parameters:
      rowNumber - the value for the rowNumber record component
      recordPk - the value for the recordPk record component
      fieldName - the value for the fieldName record component
      errorCode - the value for the errorCode record component
      message - the value for the message 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • rowNumber

      public Integer rowNumber()
      Returns the value of the rowNumber record component.
      Returns:
      the value of the rowNumber record component
    • recordPk

      public Serializable recordPk()
      Returns the value of the recordPk record component.
      Returns:
      the value of the recordPk record component
    • fieldName

      public String fieldName()
      Returns the value of the fieldName record component.
      Returns:
      the value of the fieldName record component
    • errorCode

      public String errorCode()
      Returns the value of the errorCode record component.
      Returns:
      the value of the errorCode record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component