Package com.axelor.meta.query.dataset
Record Class DatasetSummary
java.lang.Object
java.lang.Record
com.axelor.meta.query.dataset.DatasetSummary
- Record Components:
field- the field the aggregate was taken overfn- the aggregation methodvalue- the computed value
A query-scope aggregate, computed unwindowed over the filtered set.
This is what lets a table caption a true query total. Without it, a total computed from the returned page is a page total and must be labelled as one.
-
Constructor Summary
ConstructorsConstructorDescriptionDatasetSummary(String field, AggregateFn fn, Object value) Creates an instance of aDatasetSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.fn()Returns the value of thefnrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
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). -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
fn
Returns the value of thefnrecord component.- Returns:
- the value of the
fnrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-