-
- All Implemented Interfaces:
-
com.vaadin.data.provider.BackEndDataProvider,com.vaadin.data.provider.DataProvider,java.io.Serializable
public final class JPADataProvider<T extends Object> extends AbstractBackEndDataProvider<T, JPAFilter>
Provides instances of given JPA class from the database. Currently only supports sorting, currently does not support joins.
This provider only supports listing of a single bean. If you need to list properties of two or more beans, or fields of some more complex query, you'll need to write a data provider yourself. It is actually a very easy thing to do, please see sources of this class for details.
-
-
Field Summary
Fields Modifier and Type Field Description private final Class<T>entityprivate final List<QuerySortOrder>sortOrdersprivate final EventRoutereventRouter
-
Constructor Summary
Constructors Constructor Description JPADataProvider(Class<T> entity)
-
Method Summary
Modifier and Type Method Description ObjectgetId(T item)StringtoString()final Class<T>getEntity()-
Methods inherited from class java.io.Serializable
equals, hashCode -
Methods inherited from class com.vaadin.data.provider.AbstractDataProvider
isInMemory, withConfigurableFilter, withConfigurableFilter, withConvertedFilter -
Methods inherited from class eu.vaadinonkotlin.vaadin8.jpa.JPADataProvider
fetch, mixInSortOrders, setSortOrders, size -
Methods inherited from class com.vaadin.data.provider.AbstractBackEndDataProvider
addDataProviderListener, addListener, fireEvent, refreshAll, refreshItem, setSortOrder, setSortOrders -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-