Package com.axelor.meta.query.render
Record Class RenderedQuery
java.lang.Object
java.lang.Record
com.axelor.meta.query.render.RenderedQuery
public record RenderedQuery(RenderedQuery.QueryTemplate dataQuery, RenderedQuery.QueryTemplate countQuery, RenderedQuery.QueryTemplate summaryQuery, List<String> summaryKeys, boolean countByRows, Map<String,Object> params, List<QueryParameter> parameters, List<String> columnKeys, Class<? extends Model> model, String alias, QueryResultKind resultKind, Integer limit, Integer offset, boolean limitCapped)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRenderedQuery(RenderedQuery.QueryTemplate dataQuery, RenderedQuery.QueryTemplate countQuery, RenderedQuery.QueryTemplate summaryQuery, List<String> summaryKeys, boolean countByRows, Map<String, Object> params, List<QueryParameter> parameters, List<String> columnKeys, Class<? extends Model> model, String alias, QueryResultKind resultKind, Integer limit, Integer offset, boolean limitCapped) Creates an instance of aRenderedQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.Returns the value of thecolumnKeysrecord component.booleanReturns the value of thecountByRowsrecord component.Returns the value of thecountQueryrecord component.Returns the value of thedataQueryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jpql()limit()Returns the value of thelimitrecord component.booleanReturns the value of thelimitCappedrecord component.model()Returns the value of themodelrecord component.offset()Returns the value of theoffsetrecord component.Returns the value of theparametersrecord component.params()Returns the value of theparamsrecord component.Returns the value of theresultKindrecord component.The query-scope aggregate query, or null when the query declares no summaries.Returns the value of thesummaryKeysrecord component.Returns the value of thesummaryQueryrecord component.final StringtoString()Returns a string representation of this record class.The same query over a different window.
-
Constructor Details
-
RenderedQuery
public RenderedQuery(RenderedQuery.QueryTemplate dataQuery, RenderedQuery.QueryTemplate countQuery, RenderedQuery.QueryTemplate summaryQuery, List<String> summaryKeys, boolean countByRows, Map<String, Object> params, List<QueryParameter> parameters, List<String> columnKeys, Class<? extends Model> model, String alias, QueryResultKind resultKind, Integer limit, Integer offset, boolean limitCapped) Creates an instance of aRenderedQueryrecord class.- Parameters:
dataQuery- the value for thedataQueryrecord componentcountQuery- the value for thecountQueryrecord componentsummaryQuery- the value for thesummaryQueryrecord componentsummaryKeys- the value for thesummaryKeysrecord componentcountByRows- the value for thecountByRowsrecord componentparams- the value for theparamsrecord componentparameters- the value for theparametersrecord componentcolumnKeys- the value for thecolumnKeysrecord componentmodel- the value for themodelrecord componentalias- the value for thealiasrecord componentresultKind- the value for theresultKindrecord componentlimit- the value for thelimitrecord componentoffset- the value for theoffsetrecord componentlimitCapped- the value for thelimitCappedrecord component
-
-
Method Details
-
jpql
-
jpql
-
summaryJpql
The query-scope aggregate query, or null when the query declares no summaries. -
countJpql
-
countJpql
-
withPage
The same query over a different window.- Parameters:
limitCapped- whether the limit was imposed by the engine rather than chosen by the caller or the query, which is what separates a truncated result from a deliberate page
-
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 '=='. -
dataQuery
Returns the value of thedataQueryrecord component.- Returns:
- the value of the
dataQueryrecord component
-
countQuery
Returns the value of thecountQueryrecord component.- Returns:
- the value of the
countQueryrecord component
-
summaryQuery
Returns the value of thesummaryQueryrecord component.- Returns:
- the value of the
summaryQueryrecord component
-
summaryKeys
Returns the value of thesummaryKeysrecord component.- Returns:
- the value of the
summaryKeysrecord component
-
countByRows
public boolean countByRows()Returns the value of thecountByRowsrecord component.- Returns:
- the value of the
countByRowsrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
columnKeys
Returns the value of thecolumnKeysrecord component.- Returns:
- the value of the
columnKeysrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
resultKind
Returns the value of theresultKindrecord component.- Returns:
- the value of the
resultKindrecord 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
-
limitCapped
public boolean limitCapped()Returns the value of thelimitCappedrecord component.- Returns:
- the value of the
limitCappedrecord component
-