Package com.axelor.meta.query.plan
Record Class QueryJoinClause.RelationJoin
java.lang.Object
java.lang.Record
com.axelor.meta.query.plan.QueryJoinClause.RelationJoin
- All Implemented Interfaces:
QueryJoinClause
- Enclosing interface:
QueryJoinClause
public static record QueryJoinClause.RelationJoin(QuerySource source, ResolvedField relationField, QuerySource target, String type)
extends Record
implements QueryJoinClause
Join via a relational field path (e.g.,
self.customer).-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.meta.query.plan.QueryJoinClause
QueryJoinClause.CrossJoin, QueryJoinClause.RelationJoin -
Constructor Summary
ConstructorsConstructorDescriptionRelationJoin(QuerySource source, ResolvedField relationField, QuerySource target, String type) Creates an instance of aRelationJoinrecord 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.Returns the value of therelationFieldrecord component.source()Returns the value of thesourcerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
RelationJoin
public RelationJoin(QuerySource source, ResolvedField relationField, QuerySource target, String type) Creates an instance of aRelationJoinrecord class.- Parameters:
source- the value for thesourcerecord componentrelationField- the value for therelationFieldrecord componenttarget- the value for thetargetrecord componenttype- the value for thetyperecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
relationField
Returns the value of therelationFieldrecord component.- Returns:
- the value of the
relationFieldrecord component
-
target
Returns the value of thetargetrecord component.- Specified by:
targetin interfaceQueryJoinClause- Returns:
- the value of the
targetrecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceQueryJoinClause- Returns:
- the value of the
typerecord component
-