Package com.appiancorp.common.query
Class QueryBuilderTools.Selector
java.lang.Object
com.appiancorp.common.query.QueryBuilderTools.Selector
- Direct Known Subclasses:
GenericQuery.GenericBuilder.Selector
,TypedValueQuery.TypedValueBuilder.Selector
- Enclosing interface:
- QueryBuilderTools
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnAlias
Creates aColumnAlias
for the given field name as the given aliasstatic Column
column
(ColumnAlias ca) Creates a projection with the givenColumnAlias
.static Column
Creates a projection for the given field name.static Column
Creates a visible or hidden projection for the given field namestatic Column
Creates a projection for the given field name.static Column
Creates a visible or hidden projection for the given field name.
-
Constructor Details
-
Selector
public Selector()
-
-
Method Details
-
as
Creates aColumnAlias
for the given field name as the given alias- Parameters:
field
- a field namealias
- an alias name to assign to the column- Returns:
- a
ColumnAlias
to assign to the projection
-
column
Creates a projection for the given field name.- Parameters:
field
- a field name- Returns:
- a
Column
representing a projection for the given field
-
column
Creates a projection with the givenColumnAlias
. This projection can be referred to by the given alias.- Parameters:
ca
- aColumnAlias
to assign to the projection- Returns:
- a
Column
representing a projection for the given field
-
column
Creates a projection for the given field name. This projection can be referred to by the given alias.- Parameters:
field
- a field namealias
- an alias name to assign to the projection- Returns:
- a
Column
representing a projection for the given field as the given alias
-
column
Creates a visible or hidden projection for the given field name- Parameters:
field
- a field namevisible
- iftrue
the projection will be visible; otherwise it will be hidden- Returns:
- a
Column
representing a projection for the given field.
-
column
Creates a visible or hidden projection for the given field name. This projection can be referred to by the given alias.- Parameters:
field
- a field namealias
- an alias name to assign to the projectionvisible
- iftrue
the projection will be visible; otherwise it will be hidden- Returns:
- a
Column
representing a projection for the given field.
-