T - ID - public class ExampleFilterDataProvider<T,ID extends Serializable> extends Object implements com.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,T,T>, com.vaadin.flow.data.provider.BackEndDataProvider<T,T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExampleFilterDataProvider.Finder<T,ID> |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Supplier<Long> |
countAllFunction |
protected java.util.function.Function<org.springframework.data.domain.Example<T>,Long> |
countFilteredFunction |
protected java.util.function.Function<org.springframework.data.domain.Pageable,org.springframework.data.domain.Page<T>> |
findAllFunction |
protected java.util.function.BiFunction<org.springframework.data.domain.Example<T>,org.springframework.data.domain.Pageable,org.springframework.data.domain.Page<T>> |
findFilteredFunction |
static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
ExampleFilterDataProvider(ExampleFilterRepository<T,ID> r,
org.springframework.data.domain.ExampleMatcher matcher,
List<com.vaadin.flow.data.provider.QuerySortOrder> defaultSort) |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.shared.Registration |
addDataProviderListener(com.vaadin.flow.data.provider.DataProviderListener<T> listener) |
protected org.springframework.data.domain.Example<T> |
buildExample(T probe) |
java.util.stream.Stream<T> |
fetch(com.vaadin.flow.data.provider.Query<T,T> query) |
Object |
getId(T item) |
boolean |
isInMemory() |
void |
refreshAll() |
void |
refreshItem(T item) |
void |
setFilter(T filter) |
void |
setSortOrders(List<com.vaadin.flow.data.provider.QuerySortOrder> sortOrders) |
int |
size(com.vaadin.flow.data.provider.Query<T,T> query) |
com.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,Void,T> |
withConfigurableFilter() |
<Q,C> com.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,Q,C> |
withConfigurableFilter(com.vaadin.flow.function.SerializableBiFunction<Q,C,T> filterCombiner) |
<C> com.vaadin.flow.data.provider.DataProvider<T,C> |
withConvertedFilter(com.vaadin.flow.function.SerializableFunction<C,T> filterConverter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final org.slf4j.Logger LOGGER
protected java.util.function.Function<org.springframework.data.domain.Pageable,org.springframework.data.domain.Page<T>> findAllFunction
protected java.util.function.BiFunction<org.springframework.data.domain.Example<T>,org.springframework.data.domain.Pageable,org.springframework.data.domain.Page<T>> findFilteredFunction
protected java.util.function.Supplier<Long> countAllFunction
protected java.util.function.Function<org.springframework.data.domain.Example<T>,Long> countFilteredFunction
public ExampleFilterDataProvider(ExampleFilterRepository<T,ID> r, org.springframework.data.domain.ExampleMatcher matcher, List<com.vaadin.flow.data.provider.QuerySortOrder> defaultSort)
public void setFilter(T filter)
public boolean isInMemory()
public java.util.stream.Stream<T> fetch(com.vaadin.flow.data.provider.Query<T,T> query)
public void refreshItem(T item)
public void refreshAll()
public com.vaadin.flow.shared.Registration addDataProviderListener(com.vaadin.flow.data.provider.DataProviderListener<T> listener)
public <C> com.vaadin.flow.data.provider.DataProvider<T,C> withConvertedFilter(com.vaadin.flow.function.SerializableFunction<C,T> filterConverter)
public <Q,C> com.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,Q,C> withConfigurableFilter(com.vaadin.flow.function.SerializableBiFunction<Q,C,T> filterCombiner)
public com.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,Void,T> withConfigurableFilter()
Copyright © 2021. All rights reserved.