Record Class JpqlAccessSupport.ReferenceTarget
java.lang.Object
java.lang.Record
io.jmix.aitools.dataload.execution.JpqlAccessSupport.ReferenceTarget
- Record Components:
nullCheck- the path whoseis nulltells that no record is referred to, ornullwhen the reference is not the owning sideowner- entity the path's variable ranges overreadsRecord- whether the query reads the referenced record's key (d.parent.id), which needs READ on the referenced entity, rather than only the reference itself
- Enclosing class:
JpqlAccessSupport
protected static record JpqlAccessSupport.ReferenceTarget(@Nullable String nullCheck, MetaClass owner, boolean readsRecord)
extends Record
A reference the query reads by itself or through its primary key.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReferenceTarget(@Nullable String nullCheck, MetaClass owner, boolean readsRecord) Creates an instance of aReferenceTargetrecord 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.@Nullable StringReturns the value of thenullCheckrecord component.owner()Returns the value of theownerrecord component.booleanReturns the value of thereadsRecordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReferenceTarget
Creates an instance of aReferenceTargetrecord class.- Parameters:
nullCheck- the value for thenullCheckrecord componentowner- the value for theownerrecord componentreadsRecord- the value for thereadsRecordrecord 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 '=='. -
nullCheck
Returns the value of thenullCheckrecord component.- Returns:
- the value of the
nullCheckrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
readsRecord
public boolean readsRecord()Returns the value of thereadsRecordrecord component.- Returns:
- the value of the
readsRecordrecord component
-