You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.data.provider.

Class QuerySortOrder

    • Constructor Detail

      • 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 Detail

      • 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