| java.lang.Object net.sf.jasperreports.engine.data.JRAbstractBeanDataSource net.sf.jasperreports.engine.data.JRJpaDataSource
JRJpaDataSource | public class JRJpaDataSource extends JRAbstractBeanDataSource implements JRRewindableDataSource(Code) | | Java Persistence API data source that uses javax.persistence.Query.getResultList() .
The query result can be paginated by not retrieving all the rows at once.
Fields are mapped to values in the result following these rules:
- if the query returns a single object/bean (e.g.
SELECT m FROM Movie m or
SELECT NEW MovieDescription(m.title, m.genre) FROM Movie m ), then the fields are
mapped to bean property names.
- if the query returns multiple objects per row (e.g.
SELECT m.title, m.gender FROM Movie m ),
the fields are mapped using the following syntax: COLUMN_index[.property], with the
indexes starting from 1. Example mappings: COLUMN_1, COLUMN_2, COLUMN_2.title, COLUMN_2.movie.title.
author: Marcel Overdijk (marceloverdijk@hotmail.com) version: $Id: JRJpaDataSource.java 1744 2007-06-11 14:30:11Z teodord $ See Also: net.sf.jasperreports.engine.query.JRJpaQueryExecuterFactory.PROPERTY_JPA_QUERY_PAGE_SIZE |
Inner Class :protected static interface FieldValueReader | |
Inner Class :protected class PropertyReader implements FieldValueReader | |
Inner Class :protected class IndexReader implements FieldValueReader | |
Inner Class :protected class IndexPropertyReader implements FieldValueReader | |
fetchPage | protected void fetchPage()(Code) | | |
getFieldValueReader | protected FieldValueReader getFieldValueReader(JRField field)(Code) | | |
moveFirst | public void moveFirst()(Code) | | |
next | public boolean next()(Code) | | |
Fields inherited from net.sf.jasperreports.engine.data.JRAbstractBeanDataSource | final public static String CURRENT_BEAN_MAPPING(Code)(Java Doc) final protected static PropertyNameProvider FIELD_DESCRIPTION_PROPERTY_NAME_PROVIDER(Code)(Java Doc) final protected static PropertyNameProvider FIELD_NAME_PROPERTY_NAME_PROVIDER(Code)(Java Doc) protected PropertyNameProvider propertyNameProvider(Code)(Java Doc)
|
|
|