public enum RecordSummaryFunctionType extends java.lang.Enum<RecordSummaryFunctionType> implements ValueEnum
"summary" type ListGrid fields. Record summary functions may be specified in one of two ways:
StringMethod. Takes 3 parameters: record the record for which
the value is being calculated fields Array of listGridFields from which summaries should be calculated
summaryField pointer to the summary type field on which the summary function is being run.DataSource.registerRecordSummaryFunction() DataSource.registerRecordSummaryFunction()
may be used to expand the set of registered record summary functions.
| Enum Constant and Description |
|---|
AVG
Iterates through each field, picking up the numeric field values from the record and calculating the mean value.
|
MAX
Iterates through each field, picking up the numeric field values from the record and calculating the maximum value.
|
MIN
Iterates through each field, picking up the numeric field values from the record and calculating the minimum value.
|
MULTIPLIER
Iterates through each field, picking up the numeric field values from the record and multiplying them together.
|
SUM
Iterates through each field, picking up the numeric field values from the record and summing them.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue() |
static RecordSummaryFunctionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RecordSummaryFunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecordSummaryFunctionType SUM
ListGridField.recordSummaryFunction
is not specified and ListGridField.getRecordSummary() is not implemented.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "sum".
public static final RecordSummaryFunctionType AVG
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "avg".
public static final RecordSummaryFunctionType MAX
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "max".
public static final RecordSummaryFunctionType MIN
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "min".
public static final RecordSummaryFunctionType MULTIPLIER
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "multiplier".
public static RecordSummaryFunctionType[] values()
for (RecordSummaryFunctionType c : RecordSummaryFunctionType.values()) System.out.println(c);
public static RecordSummaryFunctionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null