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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SortInfoApply an ascending order to the givenColumnstatic SortInfoasc(ColumnAlias a) Apply an ascending order to the givenColumnAliasstatic SortInfoApply an ascending order to the given field name or column alias namestatic SortInfoApply a descending order to the givenColumnstatic SortInfodesc(ColumnAlias a) Apply a descending order to the givenColumnAliasstatic SortInfoApply 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
SortInforepresenting ascending order
-
desc
Apply a descending order to the givenColumnAlias- Parameters:
a-ColumnAlias- Returns:
- a
SortInforepresenting descending order
-
asc
Apply an ascending order to the given field name or column alias name- Parameters:
c-ColumnAlias- Returns:
- a
SortInforepresenting ascending order
-
desc
Apply a descending order to the given field name or column alias name- Parameters:
c-ColumnAlias- Returns:
- a
SortInforepresenting descending order
-