@GwtCompatible public class AggregationColumn extends Column
Immutable bean representing the column dot notation, alias, visibility (if it's should be shown to the client or not). Along with this it indicates if this function should be grouped by or which aggregation function is applied to this column instead.
This column can either be grouped or aggregated but not both, since they are mutually exclusive.
An instance can only be obtain by using the helper class QueryBuilder.Selecting
or
in a more object oriented way by using the helper class QueryBuilder.Aggregating
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_PART |
static javax.xml.namespace.QName |
QNAME |
Modifier | Constructor and Description |
---|---|
|
AggregationColumn(AggregationColumn ac)
Copy constructor
|
protected |
AggregationColumn(java.lang.String field,
java.lang.String alias,
boolean visible)
Constructs a new
AggregationColumn which groups by the given field name
with the given alias name. |
protected |
AggregationColumn(java.lang.String field,
java.lang.String alias,
boolean visible,
AggregationFunction function)
Constructs a new
AggregationColumn which groups by the given field name
with the given alias name. |
protected |
AggregationColumn(java.lang.String field,
java.lang.String alias,
boolean visible,
AggregationFunction aggregationFunction,
com.appiancorp.common.query.GroupingFunction groupingFunction)
Constructs a new
AggregationColumn which groups by the given field name
with the given alias name. |
protected |
AggregationColumn(java.lang.String field,
java.lang.String alias,
boolean visible,
boolean isGrouping,
AggregationFunction aggregationFunction,
com.appiancorp.common.query.GroupingFunction groupingFunction) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEquals(java.lang.Object obj)
Checks if this instance can compare against the given object.
|
boolean |
equals(java.lang.Object obj) |
AggregationFunction |
getFunction() |
com.appiancorp.common.query.GroupingFunction |
getGroupingFunction() |
int |
hashCode() |
boolean |
isGrouping() |
java.lang.String |
toString() |
appendForToString, getAliasToFieldPathMap, isVisible
appendForToString, getAlias, getField
public static final java.lang.String LOCAL_PART
public static final javax.xml.namespace.QName QNAME
protected AggregationColumn(java.lang.String field, java.lang.String alias, boolean visible)
AggregationColumn
which groups by the given field name
with the given alias name.field
- a field namealias
- an alias namevisible
- determines if this column will be visible or not.protected AggregationColumn(java.lang.String field, java.lang.String alias, boolean visible, AggregationFunction function)
AggregationColumn
which groups by the given field name
with the given alias name.field
- a field namealias
- an alias namevisible
- determines if this column will be visible or not.function
- the AggregationFunction
which will be apply for this columnprotected AggregationColumn(java.lang.String field, java.lang.String alias, boolean visible, AggregationFunction aggregationFunction, com.appiancorp.common.query.GroupingFunction groupingFunction)
AggregationColumn
which groups by the given field name
with the given alias name.field
- a field namealias
- an alias namevisible
- determines if this column will be visible or not.aggregationFunction
- the AggregationFunction
which will be applied for this columngroupingFunction
- the GroupingFunction
which will be applied for this columnprotected AggregationColumn(java.lang.String field, java.lang.String alias, boolean visible, boolean isGrouping, AggregationFunction aggregationFunction, com.appiancorp.common.query.GroupingFunction groupingFunction)
public AggregationColumn(AggregationColumn ac)
ac
- an AggregationColumn
public boolean isGrouping()
public AggregationFunction getFunction()
public com.appiancorp.common.query.GroupingFunction getGroupingFunction()
protected boolean canEquals(java.lang.Object obj)
ColumnAlias
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.