public class JasperReportsEntityDataSource extends java.lang.Object implements net.sf.jasperreports.engine.JRDataSource, ReportDataWrapper<net.sf.jasperreports.engine.JRDataSource>
Constructor and Description |
---|
JasperReportsEntityDataSource(java.util.Iterator<Entity> reportIterator) |
Modifier and Type | Method and Description |
---|---|
protected Entity |
getCurrentEntity() |
net.sf.jasperreports.engine.JRDataSource |
getDataSource() |
java.lang.Object |
getFieldValue(net.sf.jasperreports.engine.JRField jrField)
Returns the table value of the property identified by
jrField.getName() |
boolean |
next() |
public JasperReportsEntityDataSource(java.util.Iterator<Entity> reportIterator)
reportIterator
- the iterator providing the report datapublic final boolean next()
next
in interface net.sf.jasperreports.engine.JRDataSource
public final net.sf.jasperreports.engine.JRDataSource getDataSource()
getDataSource
in interface ReportDataWrapper<net.sf.jasperreports.engine.JRDataSource>
public java.lang.Object getFieldValue(net.sf.jasperreports.engine.JRField jrField) throws net.sf.jasperreports.engine.JRException
jrField.getName()
getFieldValue
in interface net.sf.jasperreports.engine.JRDataSource
jrField
- the report field which value to retrievejrField.getName()
net.sf.jasperreports.engine.JRException
- in case of an exceptionprotected final Entity getCurrentEntity()