Package com.vaadin.flow.data.provider
Class QuerySortOrder
- All Implemented Interfaces:
Serializable
Sorting information for
Query
.- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionQuerySortOrder
(String sorted, SortDirection direction) Constructs sorting information for usage in aQuery
. -
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 aQuery
.- 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 by- Returns:
- the query sort builder
-
desc
Creates a new query sort builder with given sorting using descending sort direction.- Parameters:
by
- the string to sort by- Returns:
- the query sort builder
-