Package ch.tocco.nice2.outputcenter.api
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 Summary
ConstructorsConstructorDescriptionOutputJobItemReferenceNrContribution(String relationName, String referenceField, int priority) Creates an instance of aOutputJobItemReferenceNrContributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpriority()Returns the value of thepriorityrecord component.Returns the value of thereferenceFieldrecord component.Returns the value of therelationNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutputJobItemReferenceNrContribution
public OutputJobItemReferenceNrContribution(String relationName, String referenceField, int priority) Creates an instance of aOutputJobItemReferenceNrContributionrecord class.- Parameters:
relationName- the value for therelationNamerecord componentreferenceField- the value for thereferenceFieldrecord componentpriority- the value for thepriorityrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
relationName
Returns the value of therelationNamerecord component.- Returns:
- the value of the
relationNamerecord component
-
referenceField
Returns the value of thereferenceFieldrecord component.- Returns:
- the value of the
referenceFieldrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-