T
- data provider data typeF
- data provider filter typepublic interface BackEndDataProvider<T,F> extends DataProvider<T,F>
Modifier and Type | Method and Description |
---|---|
default boolean |
isInMemory()
Gets whether the DataProvider content all available in memory or does it
use some external backend.
|
default void |
setSortOrder(QuerySortOrder sortOrder)
Sets a single sort order to use as the default sorting for this data
provider.
|
void |
setSortOrders(List<QuerySortOrder> sortOrders)
Sets a list of sort orders to use as the default sorting for this data
provider.
|
default void |
setSortOrders(QuerySortOrderBuilder builder)
Sets the sort order to use, given a
QuerySortOrderBuilder . |
addDataProviderListener, fetch, fromCallbacks, fromFilteringCallbacks, fromStream, getId, ofCollection, ofItems, refreshAll, refreshItem, refreshItem, size, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
void setSortOrders(List<QuerySortOrder> sortOrders)
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.
sortOrders
- a list of sort orders to set, not null
setSortOrder(QuerySortOrder)
default void setSortOrders(QuerySortOrderBuilder builder)
QuerySortOrderBuilder
.
Shorthand for setSortOrders(builder.build())
.builder
- the sort builder to retrieve the sort order fromNullPointerException
- if builder is nullQuerySortOrderBuilder
default void setSortOrder(QuerySortOrder sortOrder)
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.
sortOrder
- a sort order to set, or null
to clear any
previously set sort orderssetSortOrders(List)
default boolean isInMemory()
DataProvider
isInMemory
in interface DataProvider<T,F>
true
if all data is in memory; false
if notCopyright © 2021. All rights reserved.