com.ontimize.report.engine.dynamicjasper
Class EntityDataSource
java.lang.Object
com.ontimize.report.engine.dynamicjasper.EntityDataSource
- public class EntityDataSource
- extends java.lang.Object
Wrappers a Ontimize Entity into a Jasper data source to allow
allow fill reports without data transformation.
This data source can rewinds the internal index and return to first
element.
- Since:
- 07/11/2008
- Author:
- Imatia Innovation S.L.
- See Also:
JRDataSource,
JRRewindableDataSource,
JasperFillManager#fillReport(JasperReport, String, Map, JRDataSource)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessionId
protected int sessionId
entity
protected Entity entity
keys
protected java.lang.String[] keys
keysValues
protected java.util.Hashtable keysValues
result
protected EntityResult result
EntityDataSource
public EntityDataSource(int sessionId,
Entity entity)
getFieldValue
public java.lang.Object getFieldValue(JRField field)
throws JRException
- Throws:
JRException
next
public boolean next()
throws JRException
- Throws:
JRException
moveFirst
public void moveFirst()
setKeys
public void setKeys(java.lang.String[] keys)
Set entity keys list.
- Parameters:
keys - Entity keys list
setKeysValues
public void setKeysValues(java.util.Map kv)
- Set the filter keys values.
- If keys attribute is null, the query is filter by all keys.
- If keys attribute is not null, only given keys are choosed.
- Parameters:
kv - Keys values
doQuery
protected EntityResult doQuery()
throws JRException
- Throws:
JRException