Interface BackEndDataProvider<T,​F>

    • Method Detail

      • setSortOrders

        void setSortOrders​(List<QuerySortOrder> sortOrders)
        Sets a list of sort orders to use as the default sorting for this data provider. This overrides the sorting set by any other method that manipulates the default sorting of this data provider.

        The default sorting is used if the query defines no sorting. The default sorting is also used to determine the ordering of items that are considered equal by the sorting defined in the query.

        Parameters:
        sortOrders - a list of sort orders to set, not null
        See Also:
        setSortOrder(QuerySortOrder)
      • setSortOrder

        default void setSortOrder​(QuerySortOrder sortOrder)
        Sets a single sort order to use as the default sorting for this data provider. This overrides the sorting set by any other method that manipulates the default sorting of this data provider.

        The default sorting is used if the query defines no sorting. The default sorting is also used to determine the ordering of items that are considered equal by the sorting defined in the query.

        Parameters:
        sortOrder - a sort order to set, or null to clear any previously set sort orders
        See Also:
        setSortOrders(List)
      • isInMemory

        default boolean isInMemory()
        Description copied from interface: DataProvider
        Gets whether the DataProvider content all available in memory or does it use some external backend.
        Specified by:
        isInMemory in interface DataProvider<T,​F>
        Returns:
        true if all data is in memory; false if not