Package com.axelor.meta.query.dataset
Record Class DatasetColumn
java.lang.Object
java.lang.Record
com.axelor.meta.query.dataset.DatasetColumn
- Record Components:
name- the exact record keytitle- display titletype- scalar type as declared by the queryaggregate- the method behind this measure, or null when the column is not aggregatedformat- how values in this column are presentedcurrency- ISO currency code for a currency columncurrencyField- the column holding each row's currency code, for amounts in several currencies, which a consumer never adds togetherscale- what a percentage column's stored number meansselection- the selection the column's values are shown withoptions- that selection's options, so a consumer shows a stored value by its title
public record DatasetColumn(String name, String title, String type, AggregateFn aggregate, FormatType format, String currency, String currencyField, FormatScale scale, String selection, List<DatasetOption> options)
extends Record
One result column's identity, type and presentation metadata.
aggregate is populated from the query's own <select fn=>, so a consumer knows
a measure's method rather than guessing it from the values. A pivot needs this to refuse to
average averages.
-
Constructor Summary
ConstructorsConstructorDescriptionDatasetColumn(String name, String title, String type, AggregateFn aggregate, FormatType format, String currency, String currencyField, FormatScale scale, String selection, List<DatasetOption> options) Creates an instance of aDatasetColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregaterecord component.currency()Returns the value of thecurrencyrecord component.Returns the value of thecurrencyFieldrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.options()Returns the value of theoptionsrecord component.scale()Returns the value of thescalerecord component.Returns the value of theselectionrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
DatasetColumn
public DatasetColumn(String name, String title, String type, AggregateFn aggregate, FormatType format, String currency, String currencyField, FormatScale scale, String selection, List<DatasetOption> options) Creates an instance of aDatasetColumnrecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componenttype- the value for thetyperecord componentaggregate- the value for theaggregaterecord componentformat- the value for theformatrecord componentcurrency- the value for thecurrencyrecord componentcurrencyField- the value for thecurrencyFieldrecord componentscale- the value for thescalerecord componentselection- the value for theselectionrecord componentoptions- the value for theoptionsrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
aggregate
Returns the value of theaggregaterecord component.- Returns:
- the value of the
aggregaterecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
currencyField
Returns the value of thecurrencyFieldrecord component.- Returns:
- the value of the
currencyFieldrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
selection
Returns the value of theselectionrecord component.- Returns:
- the value of the
selectionrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-