Package com.axelor.meta.query.dataset
Record Class QueryCapabilities
java.lang.Object
java.lang.Record
com.axelor.meta.query.dataset.QueryCapabilities
- Record Components:
serverSort- whether the source can sort server-side, so sorting is not limited to the returned windowquerySummary- whether the source can produce query-scope aggregates over the filtered setfullExport- whether the source can export beyond the returned window
public record QueryCapabilities(boolean serverSort, boolean querySummary, boolean fullExport)
extends Record
What a query source supports, so a client disables what is unsupported instead of inventing an
endpoint or approximating an answer.
This is what keeps a page total from being captioned as an overall total: a client that knows
querySummary is false knows the total it can compute is a page total.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryCapabilities(boolean serverSort, boolean querySummary, boolean fullExport) Creates an instance of aQueryCapabilitiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefullExportrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thequerySummaryrecord component.booleanReturns the value of theserverSortrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryCapabilities
public QueryCapabilities(boolean serverSort, boolean querySummary, boolean fullExport) Creates an instance of aQueryCapabilitiesrecord class.- Parameters:
serverSort- the value for theserverSortrecord componentquerySummary- the value for thequerySummaryrecord componentfullExport- the value for thefullExportrecord 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 with '=='. -
serverSort
public boolean serverSort()Returns the value of theserverSortrecord component.- Returns:
- the value of the
serverSortrecord component
-
querySummary
public boolean querySummary()Returns the value of thequerySummaryrecord component.- Returns:
- the value of the
querySummaryrecord component
-
fullExport
public boolean fullExport()Returns the value of thefullExportrecord component.- Returns:
- the value of the
fullExportrecord component
-