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 constructingQuerySortOrderlists. 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 QuerySortOrdercreateSortOrder(String by, SortDirection direction)Creates a sort order object with the given parameters.QuerySortOrderBuilderthenAsc(String by)Appends sorting with ascending sort direction.QuerySortOrderBuilderthenDesc(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:SortOrderBuilderAppends sorting with ascending sort direction.- Overrides:
thenAscin classSortOrderBuilder<QuerySortOrder,String>- Parameters:
by- the object to sort by- Returns:
- this sort builder
-
thenDesc
public QuerySortOrderBuilder thenDesc(String by)
Description copied from class:SortOrderBuilderAppends sorting with descending sort direction.- Overrides:
thenDescin 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:SortOrderBuilderCreates a sort order object with the given parameters.- Specified by:
createSortOrderin classSortOrderBuilder<QuerySortOrder,String>- Parameters:
by- the object to sort bydirection- the sort direction- Returns:
- the sort order object
-
-