public class JRHibernateListDataSource extends JRHibernateAbstractDataSource implements JRRewindableDataSource
org.hibernate.Query.list().
The query result can be paginated by not retrieving all the rows at once.JRHibernateQueryExecuterFactory.PROPERTY_HIBERNATE_QUERY_LIST_PAGE_SIZEJRHibernateAbstractDataSource.FieldReader, JRHibernateAbstractDataSource.IdentityFieldReader, JRHibernateAbstractDataSource.IndexFieldReader, JRHibernateAbstractDataSource.IndexPropertyFieldReader, JRHibernateAbstractDataSource.PropertyFieldReaderqueryExecuter| Constructor and Description |
|---|
JRHibernateListDataSource(JRHibernateQueryExecuter queryExecuter,
boolean useFieldDescription,
int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fetchPage() |
void |
moveFirst()
Moves back to the first element in the data source.
|
boolean |
next()
Tries to position the cursor on the next element in the data source.
|
assignReaders, getFieldMapping, getFieldReader, getFieldReaderSingleReturn, getFieldValue, setCurrentRowValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFieldValuepublic JRHibernateListDataSource(JRHibernateQueryExecuter queryExecuter, boolean useFieldDescription, int pageSize)
protected void fetchPage()
public boolean next()
JRDataSourcenext in interface JRDataSourcepublic void moveFirst()
JRRewindableDataSourcemoveFirst in interface JRRewindableDataSource© 2001-2010 Jaspersoft Corporation www.jaspersoft.com