Ontimize 5.2072EN

com.ontimize.report.engine.dynamicjasper
Class EntityResultDataSource

java.lang.Object
  extended bycom.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)

Field Summary
protected  EntityResult result
           
 
Constructor Summary
EntityResultDataSource(EntityResult result)
           
EntityResultDataSource(javax.swing.table.TableModel originalmodel, TableSorter sorter)
           
 
Method Summary
 EntityResult createEntityResultFromTableSorter(javax.swing.table.TableModel model, TableSorter sorter)
           
 EntityResult getEntityResult()
           
 JRField[] getFields()
           
static JRField[] getFields(EntityResult result)
           
 java.lang.Object getFieldValue(JRField field)
           
 boolean next()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected EntityResult result
Constructor Detail

EntityResultDataSource

public EntityResultDataSource(EntityResult result)

EntityResultDataSource

public EntityResultDataSource(javax.swing.table.TableModel originalmodel,
                              TableSorter sorter)
Method Detail

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)

Ontimize