Record Class OutputJobItemReferenceNrContribution

java.lang.Object
java.lang.Record
ch.tocco.nice2.outputcenter.api.OutputJobItemReferenceNrContribution
Record Components:
relationName - relation name from Output_job_item to related entity (e.g. `relEvaluation_data`)
referenceField - field name to reference nr on related entity (e.g. `nr`). Can also be a nested path (e.g. `relUser.user_nr`)
priority - a lower number is evaluated first

public record OutputJobItemReferenceNrContribution(String relationName, String referenceField, int priority) extends Record
If there is no contribution the label and timestamp of the related Output_job is used as default display of the Output_job_item. If for a related entity such a contribution exists, the reference nr is resolved and added to the default display. Contributions in customer modules override a contribution in the standard.
  • Constructor Details

    • OutputJobItemReferenceNrContribution

      public OutputJobItemReferenceNrContribution(String relationName, String referenceField, int priority)
      Creates an instance of a OutputJobItemReferenceNrContribution record class.
      Parameters:
      relationName - the value for the relationName record component
      referenceField - the value for the referenceField record component
      priority - the value for the priority 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 '=='.
      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.
    • relationName

      public String relationName()
      Returns the value of the relationName record component.
      Returns:
      the value of the relationName record component
    • referenceField

      public String referenceField()
      Returns the value of the referenceField record component.
      Returns:
      the value of the referenceField record component
    • priority

      public int priority()
      Returns the value of the priority record component.
      Returns:
      the value of the priority record component