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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnAliasCreates aColumnAliasfor the given field name as the given aliasstatic Columncolumn(ColumnAlias ca) Creates a projection with the givenColumnAlias.static ColumnCreates a projection for the given field name.static ColumnCreates a visible or hidden projection for the given field namestatic ColumnCreates a projection for the given field name.static ColumnCreates a visible or hidden projection for the given field name.
-
Constructor Details
-
Selector
public Selector()
-
-
Method Details
-
as
Creates aColumnAliasfor the given field name as the given alias- Parameters:
field- a field namealias- an alias name to assign to the column- Returns:
- a
ColumnAliasto assign to the projection
-
column
Creates a projection for the given field name.- Parameters:
field- a field name- Returns:
- a
Columnrepresenting 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- aColumnAliasto assign to the projection- Returns:
- a
Columnrepresenting 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
Columnrepresenting 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- iftruethe projection will be visible; otherwise it will be hidden- Returns:
- a
Columnrepresenting 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- iftruethe projection will be visible; otherwise it will be hidden- Returns:
- a
Columnrepresenting a projection for the given field.
-