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
ConstructorDescriptionOutputJobItemReferenceNrContribution
(String relationName, String referenceField, int priority) Creates an instance of aOutputJobItemReferenceNrContribution
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
priority()
Returns the value of thepriority
record component.Returns the value of thereferenceField
record component.Returns the value of therelationName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OutputJobItemReferenceNrContribution
public OutputJobItemReferenceNrContribution(String relationName, String referenceField, int priority) Creates an instance of aOutputJobItemReferenceNrContribution
record class.- Parameters:
relationName
- the value for therelationName
record componentreferenceField
- the value for thereferenceField
record componentpriority
- the value for thepriority
record 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 therelationName
record component.- Returns:
- the value of the
relationName
record component
-
referenceField
Returns the value of thereferenceField
record component.- Returns:
- the value of the
referenceField
record component
-
priority
public int priority()Returns the value of thepriority
record component.- Returns:
- the value of the
priority
record component
-