Class ItemDataProvider

java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<Item,com.vaadin.flow.function.SerializablePredicate<Item>>
com.vaadin.flow.data.provider.AbstractBackEndDataProvider<Item,com.vaadin.flow.function.SerializablePredicate<Item>>
com.vaadin.featurepack.data.ItemDataProvider
All Implemented Interfaces:
com.vaadin.flow.data.provider.BackEndDataProvider<Item,com.vaadin.flow.function.SerializablePredicate<Item>>, com.vaadin.flow.data.provider.DataProvider<Item,com.vaadin.flow.function.SerializablePredicate<Item>>, Serializable

public class ItemDataProvider extends com.vaadin.flow.data.provider.AbstractBackEndDataProvider<Item,com.vaadin.flow.function.SerializablePredicate<Item>>
Data provider for a Container that provides items of type Item.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemDataProvider(com.vaadin.flow.function.SerializableSupplier<Container> containerSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected Stream<Item>
    fetchFromBackEnd(com.vaadin.flow.data.provider.Query<Item,com.vaadin.flow.function.SerializablePredicate<Item>> query)
     
     
     
    void
    put(Item item, Object itemId)
     
    protected int
    sizeInBackEnd(com.vaadin.flow.data.provider.Query<Item,com.vaadin.flow.function.SerializablePredicate<Item>> query)
     

    Methods inherited from class com.vaadin.flow.data.provider.AbstractBackEndDataProvider

    fetch, setSortOrders, size

    Methods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider

    addDataProviderListener, addListener, fireEvent, refreshAll, refreshItem, refreshItem

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.data.provider.BackEndDataProvider

    isInMemory, setSortOrder, setSortOrders

    Methods inherited from interface com.vaadin.flow.data.provider.DataProvider

    addDataProviderListener, getId, refreshAll, refreshItem, refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
  • Constructor Details

    • ItemDataProvider

      public ItemDataProvider(com.vaadin.flow.function.SerializableSupplier<Container> containerSupplier)
  • Method Details

    • getContainerDataSource

      public Container getContainerDataSource()
    • fetchFromBackEnd

      protected Stream<Item> fetchFromBackEnd(com.vaadin.flow.data.provider.Query<Item,com.vaadin.flow.function.SerializablePredicate<Item>> query)
      Specified by:
      fetchFromBackEnd in class com.vaadin.flow.data.provider.AbstractBackEndDataProvider<Item,com.vaadin.flow.function.SerializablePredicate<Item>>
    • sizeInBackEnd

      protected int sizeInBackEnd(com.vaadin.flow.data.provider.Query<Item,com.vaadin.flow.function.SerializablePredicate<Item>> query)
      Specified by:
      sizeInBackEnd in class com.vaadin.flow.data.provider.AbstractBackEndDataProvider<Item,com.vaadin.flow.function.SerializablePredicate<Item>>
    • getItemId

      public Object getItemId(Item item)
    • clear

      public void clear()
    • put

      public void put(Item item, Object itemId)