Class SpringPageableDataProvider<T,F>
java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T,F>
com.vaadin.flow.data.provider.AbstractBackEndDataProvider<T,F>
org.vaadin.addons.antlerflow.grid.dataprovider.SpringPageableDataProvider<T,F>
- Type Parameters:
T- the type of the data items to provideF- the type of the filter used for querying the data
- All Implemented Interfaces:
com.vaadin.flow.data.provider.BackEndDataProvider<T,F>, com.vaadin.flow.data.provider.DataProvider<T, F>, Serializable
public class SpringPageableDataProvider<T,F>
extends com.vaadin.flow.data.provider.AbstractBackEndDataProvider<T,F>
A data provider for Vaadin that integrates with Spring Data's a pageable mechanism to retrieve
and cache paginated data through a backend service.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSpringPageableDataProvider(BiFunction<Optional<F>, org.springframework.data.domain.Pageable, org.springframework.data.domain.Page<T>> dataSupplier) -
Method Summary
Modifier and TypeMethodDescriptionfetchFromBackEnd(com.vaadin.flow.data.provider.Query<T, F> query) voidvoidprotected intsizeInBackEnd(com.vaadin.flow.data.provider.Query<T, F> query) protected StringstableSortString(List<com.vaadin.flow.data.provider.QuerySortOrder> sortOrders) protected StringMethods inherited from class com.vaadin.flow.data.provider.AbstractBackEndDataProvider
fetch, setSortOrders, sizeMethods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider
addDataProviderListener, addListener, fireEvent, refreshItem, refreshItemMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.data.provider.BackEndDataProvider
isInMemory, setSortOrder, setSortOrdersMethods inherited from interface com.vaadin.flow.data.provider.DataProvider
addDataProviderListener, getId, refreshItem, refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
-
Constructor Details
-
SpringPageableDataProvider
public SpringPageableDataProvider(BiFunction<Optional<F>, org.springframework.data.domain.Pageable, org.springframework.data.domain.Page<T>> dataSupplier)
-
-
Method Details
-
getFilter
-
setFilter
-
fetchFromBackEnd
-
sizeInBackEnd
-
refreshAll
-
stableSortString
-
stableString
-