Package com.appiancorp.common.query
Class QueryBuilderTools.Order
java.lang.Object
com.appiancorp.common.query.QueryBuilderTools.Order
- Direct Known Subclasses:
GenericQuery.GenericBuilder.Order
,TypedValueQuery.TypedValueBuilder.Order
- Enclosing interface:
- QueryBuilderTools
This class is available as a preview of functionality that will be added to
the supported public API in a future release. While it is in the preview
phase, it is subject to change or removal without deprecation or notice.
Although notice of change is not guaranteed, we will try to let developers
know of major changes through announcements in release notes.
This class helps to construct a SortInfo
according to the desired order.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SortInfo
Apply an ascending order to the givenColumn
static SortInfo
asc
(ColumnAlias a) Apply an ascending order to the givenColumnAlias
static SortInfo
Apply an ascending order to the given field name or column alias namestatic SortInfo
Apply a descending order to the givenColumn
static SortInfo
desc
(ColumnAlias a) Apply a descending order to the givenColumnAlias
static SortInfo
Apply a descending order to the given field name or column alias name
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
asc
Apply an ascending order to the givenColumn
-
desc
Apply a descending order to the givenColumn
-
asc
Apply an ascending order to the givenColumnAlias
- Parameters:
a
-ColumnAlias
- Returns:
- a
SortInfo
representing ascending order
-
desc
Apply a descending order to the givenColumnAlias
- Parameters:
a
-ColumnAlias
- Returns:
- a
SortInfo
representing descending order
-
asc
Apply an ascending order to the given field name or column alias name- Parameters:
c
-ColumnAlias
- Returns:
- a
SortInfo
representing ascending order
-
desc
Apply a descending order to the given field name or column alias name- Parameters:
c
-ColumnAlias
- Returns:
- a
SortInfo
representing descending order
-