Package com.vaadin.data.provider
Class QuerySortOrderBuilder
- java.lang.Object
-
- com.vaadin.data.provider.SortOrderBuilder<QuerySortOrder,String>
-
- com.vaadin.data.provider.QuerySortOrderBuilder
-
- All Implemented Interfaces:
Serializable
public class QuerySortOrderBuilder extends SortOrderBuilder<QuerySortOrder,String>
Helper classes with fluent API for constructingQuerySortOrder
lists. When the sort order is ready to be passed on, callingSortOrderBuilder.build()
will create the list of sort orders.- Since:
- 8.0
- See Also:
QuerySortOrder
,thenDesc(String)
,thenDesc(String)
,SortOrderBuilder.build()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QuerySortOrderBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QuerySortOrder
createSortOrder(String by, SortDirection direction)
Creates a sort order object with the given parameters.QuerySortOrderBuilder
thenAsc(String by)
Appends sorting with ascending sort direction.QuerySortOrderBuilder
thenDesc(String by)
Appends sorting with descending sort direction.-
Methods inherited from class com.vaadin.data.provider.SortOrderBuilder
build
-
-
-
-
Method Detail
-
thenAsc
public QuerySortOrderBuilder thenAsc(String by)
Description copied from class:SortOrderBuilder
Appends sorting with ascending sort direction.- Overrides:
thenAsc
in classSortOrderBuilder<QuerySortOrder,String>
- Parameters:
by
- the object to sort by- Returns:
- this sort builder
-
thenDesc
public QuerySortOrderBuilder thenDesc(String by)
Description copied from class:SortOrderBuilder
Appends sorting with descending sort direction.- Overrides:
thenDesc
in classSortOrderBuilder<QuerySortOrder,String>
- Parameters:
by
- the object to sort by- Returns:
- this sort builder
-
createSortOrder
protected QuerySortOrder createSortOrder(String by, SortDirection direction)
Description copied from class:SortOrderBuilder
Creates a sort order object with the given parameters.- Specified by:
createSortOrder
in classSortOrderBuilder<QuerySortOrder,String>
- Parameters:
by
- the object to sort bydirection
- the sort direction- Returns:
- the sort order object
-
-