com.ontimize.report.engine.dynamicjasper
Class EntityResultDataSource
java.lang.Object
com.ontimize.report.engine.dynamicjasper.EntityResultDataSource
- public class EntityResultDataSource
- extends java.lang.Object
Wrappers a Ontimize EntityResult into a Jasper data source to
allow fill reports without data transformation.
- Since:
- 05/11/2008
- Author:
- Imatia Innovation S.L.
- See Also:
JRDataSource,
JasperFillManager#fillReport(JasperReport, String, Map, JRDataSource),
EntityDataSource,
ReportServer#fill(int, Hashtable, Hashtable, EntityResult)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
result
protected EntityResult result
EntityResultDataSource
public EntityResultDataSource(EntityResult result)
EntityResultDataSource
public EntityResultDataSource(javax.swing.table.TableModel originalmodel,
TableSorter sorter)
createEntityResultFromTableSorter
public EntityResult createEntityResultFromTableSorter(javax.swing.table.TableModel model,
TableSorter sorter)
getFieldValue
public java.lang.Object getFieldValue(JRField field)
throws JRException
- Throws:
JRException
next
public boolean next()
throws JRException
- Throws:
JRException
reset
public void reset()
getEntityResult
public EntityResult getEntityResult()
getFields
public JRField[] getFields()
getFields
public static JRField[] getFields(EntityResult result)