public static class QueryBuilderTools.Selector
extends java.lang.Object
This is how you instantiate columns to configure a query for selection, grouping or aggregation.
For aggregations there is QueryBuilder.Aggregator
to help
creating an aggregation it in a more organic way.
Constructor and Description |
---|
Selector() |
Modifier and Type | Method and Description |
---|---|
static ColumnAlias |
as(java.lang.String field,
java.lang.String alias)
Creates a
ColumnAlias for the given field name as the given alias |
static Column |
column(ColumnAlias ca)
Creates a projection with the given
ColumnAlias . |
static Column |
column(java.lang.String field)
Creates a projection for the given field name.
|
static Column |
column(java.lang.String field,
boolean visible)
Creates a visible or hidden projection for the given field name
|
static Column |
column(java.lang.String field,
java.lang.String alias)
Creates a projection for the given field name.
|
static Column |
column(java.lang.String field,
java.lang.String alias,
boolean visible)
Creates a visible or hidden projection for the given field name.
|
public static ColumnAlias as(java.lang.String field, java.lang.String alias)
ColumnAlias
for the given field name as the given aliasfield
- a field namealias
- an alias name to assign to the columnColumnAlias
to assign to the projectionpublic static Column column(java.lang.String field)
field
- a field nameColumn
representing a projection for the given fieldpublic static Column column(ColumnAlias ca)
ColumnAlias
.
This projection can be referred to by the given alias.ca
- a ColumnAlias
to assign to the projectionColumn
representing a projection for the given fieldpublic static Column column(java.lang.String field, java.lang.String alias)
field
- a field namealias
- an alias name to assign to the projectionColumn
representing a projection for the given field as the given aliaspublic static Column column(java.lang.String field, boolean visible)
field
- a field namevisible
- if true
the projection will be visible; otherwise it will be hiddenColumn
representing a projection for the given field.public static Column column(java.lang.String field, java.lang.String alias, boolean visible)
field
- a field namealias
- an alias name to assign to the projectionvisible
- if true
the projection will be visible; otherwise it will be hiddenColumn
representing a projection for the given field.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.