public class EntityResultDataSource extends Object implements net.sf.jasperreports.engine.JRDataSource, net.sf.jasperreports.engine.JRRewindableDataSource
Wrappers a Ontimize EntityResult into a Jasper data source to allow
fill reports without data transformation.
JRDataSource,
JasperFillManager#fillReport(JasperReport, String, Map, JRDataSource),
EntityDataSource,
ReportServer#fill(int, Hashtable, Hashtable, EntityResult)| Modifier and Type | Field and Description |
|---|---|
protected EntityResult |
result |
| Constructor and Description |
|---|
EntityResultDataSource(EntityResult result) |
EntityResultDataSource(TableModel originalmodel,
TableSorter sorter) |
| Modifier and Type | Method and Description |
|---|---|
EntityResult |
createEntityResultFromTableSorter(TableModel model,
TableSorter sorter) |
EntityResult |
getEntityResult() |
net.sf.jasperreports.engine.JRField[] |
getFields() |
static net.sf.jasperreports.engine.JRField[] |
getFields(EntityResult result) |
Object |
getFieldValue(net.sf.jasperreports.engine.JRField field) |
void |
moveFirst() |
boolean |
next() |
void |
reset() |
protected EntityResult result
public EntityResultDataSource(EntityResult result)
public EntityResultDataSource(TableModel originalmodel, TableSorter sorter)
public EntityResult createEntityResultFromTableSorter(TableModel model, TableSorter sorter)
public Object getFieldValue(net.sf.jasperreports.engine.JRField field) throws net.sf.jasperreports.engine.JRException
getFieldValue in interface net.sf.jasperreports.engine.JRDataSourcenet.sf.jasperreports.engine.JRExceptionpublic boolean next()
throws net.sf.jasperreports.engine.JRException
next in interface net.sf.jasperreports.engine.JRDataSourcenet.sf.jasperreports.engine.JRExceptionpublic void reset()
public void moveFirst()
throws net.sf.jasperreports.engine.JRException
moveFirst in interface net.sf.jasperreports.engine.JRRewindableDataSourcenet.sf.jasperreports.engine.JRExceptionpublic EntityResult getEntityResult()
public net.sf.jasperreports.engine.JRField[] getFields()
public static net.sf.jasperreports.engine.JRField[] getFields(EntityResult result)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.