Package com.axelor.meta.query.plan
Record Class QueryPlan
java.lang.Object
java.lang.Record
com.axelor.meta.query.plan.QueryPlan
public record QueryPlan(String name, QuerySource root, boolean distinct, List<QuerySelection> selections, List<QuerySelection> summaries, List<QueryJoinClause> joins, QueryPredicate where, List<QueryExpression> groupBy, QueryPredicate having, List<QueryParameter> parameters, List<QuerySort> orderBy, Integer limit, Integer offset, QueryResultKind resultKind)
extends Record
An analyzed query.
summaries are aggregates over the whole filtered set, evaluated without the result
window and without the grouping, so a consumer can state a query total rather than adding up the
rows it happens to be holding.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryPlan(String name, QuerySource root, boolean distinct, List<QuerySelection> selections, List<QuerySelection> summaries, List<QueryJoinClause> joins, QueryPredicate where, List<QueryExpression> groupBy, QueryPredicate having, List<QueryParameter> parameters, List<QuerySort> orderBy, Integer limit, Integer offset, QueryResultKind resultKind) Creates an instance of aQueryPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandistinct()Returns the value of thedistinctrecord component.final booleanIndicates whether some other object is "equal to" this one.groupBy()Returns the value of thegroupByrecord component.final inthashCode()Returns a hash code value for this object.having()Returns the value of thehavingrecord component.joins()Returns the value of thejoinsrecord component.limit()Returns the value of thelimitrecord component.name()Returns the value of thenamerecord component.offset()Returns the value of theoffsetrecord component.orderBy()Returns the value of theorderByrecord component.Returns the value of theparametersrecord component.Returns the value of theresultKindrecord component.root()Returns the value of therootrecord component.Returns the value of theselectionsrecord component.Returns the value of thesummariesrecord component.final StringtoString()Returns a string representation of this record class.where()Returns the value of thewhererecord component.
-
Constructor Details
-
QueryPlan
public QueryPlan(String name, QuerySource root, boolean distinct, List<QuerySelection> selections, List<QuerySelection> summaries, List<QueryJoinClause> joins, QueryPredicate where, List<QueryExpression> groupBy, QueryPredicate having, List<QueryParameter> parameters, List<QuerySort> orderBy, Integer limit, Integer offset, QueryResultKind resultKind) Creates an instance of aQueryPlanrecord class.- Parameters:
name- the value for thenamerecord componentroot- the value for therootrecord componentdistinct- the value for thedistinctrecord componentselections- the value for theselectionsrecord componentsummaries- the value for thesummariesrecord componentjoins- the value for thejoinsrecord componentwhere- the value for thewhererecord componentgroupBy- the value for thegroupByrecord componenthaving- the value for thehavingrecord componentparameters- the value for theparametersrecord componentorderBy- the value for theorderByrecord componentlimit- the value for thelimitrecord componentoffset- the value for theoffsetrecord componentresultKind- the value for theresultKindrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
distinct
public boolean distinct()Returns the value of thedistinctrecord component.- Returns:
- the value of the
distinctrecord component
-
selections
Returns the value of theselectionsrecord component.- Returns:
- the value of the
selectionsrecord component
-
summaries
Returns the value of thesummariesrecord component.- Returns:
- the value of the
summariesrecord component
-
joins
Returns the value of thejoinsrecord component.- Returns:
- the value of the
joinsrecord component
-
where
Returns the value of thewhererecord component.- Returns:
- the value of the
whererecord component
-
groupBy
Returns the value of thegroupByrecord component.- Returns:
- the value of the
groupByrecord component
-
having
Returns the value of thehavingrecord component.- Returns:
- the value of the
havingrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
orderBy
Returns the value of theorderByrecord component.- Returns:
- the value of the
orderByrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
resultKind
Returns the value of theresultKindrecord component.- Returns:
- the value of the
resultKindrecord component
-