com.vaadin.flow.data.provider.
Package com.vaadin.flow.data.provider
Class QuerySortOrder
All Implemented Interfaces:
Sorting information for Query
.
Since:
1.0
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQuerySortOrder
(String sorted, SortDirection direction) Constructs sorting information for usage in a
Query
. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuerySortOrderBuilder
Creates a new query sort builder with given sorting using ascending sort direction.
static QuerySortOrderBuilder
Creates a new query sort builder with given sorting using descending sort direction.
Methods inherited from class com.vaadin.flow.data.provider.SortOrder
getDirection, getSorted
-
Constructor Details
-
QuerySortOrder
Constructs sorting information for usage in a
Query
.Parameters:
sorted
- sorting information, usually field iddirection
- sorting direction
-
-
Method Details
-
asc
Creates a new query sort builder with given sorting using ascending sort direction.
Parameters:
by
- the string to sort byReturns:
the query sort builder
-
desc
Creates a new query sort builder with given sorting using descending sort direction.
Parameters:
by
- the string to sort byReturns:
the query sort builder
-