Class QuerySortOrder

java.lang.Object
com.vaadin.flow.data.provider.SortOrder<String>
com.vaadin.flow.data.provider.QuerySortOrder
All Implemented Interfaces:
Serializable

public class QuerySortOrder extends SortOrder<String>
Sorting information for Query.
Since:
1.0
See Also:
  • Constructor Details

    • QuerySortOrder

      public QuerySortOrder(String sorted, SortDirection direction)
      Constructs sorting information for usage in a Query.
      Parameters:
      sorted - sorting information, usually field id
      direction - sorting direction
  • Method Details

    • asc

      public static QuerySortOrderBuilder asc(String by)
      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

      public static QuerySortOrderBuilder desc(String by)
      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