public class JPADataProvider<T>
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.
| Constructor and Description |
|---|
JPADataProvider(java.lang.Class<T> entity)
Provides instances of given JPA class from the database. Currently only supports sorting, currently does not support joins.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<T> |
fetchFromBackEnd(com.vaadin.data.provider.Query<T,eu.vaadinonkotlin.vaadin8.jpa.JPAFilter> query) |
java.lang.Class<T> |
getEntity() |
java.lang.Object |
getId(T item) |
int |
sizeInBackEnd(com.vaadin.data.provider.Query<T,eu.vaadinonkotlin.vaadin8.jpa.JPAFilter> query) |
java.lang.String |
toString() |
public JPADataProvider(java.lang.Class<T> entity)
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.
public java.util.stream.Stream<T> fetchFromBackEnd(com.vaadin.data.provider.Query<T,eu.vaadinonkotlin.vaadin8.jpa.JPAFilter> query)
public int sizeInBackEnd(com.vaadin.data.provider.Query<T,eu.vaadinonkotlin.vaadin8.jpa.JPAFilter> query)
public java.lang.Object getId(T item)
public java.lang.String toString()
public java.lang.Class<T> getEntity()