|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.reports.JacDataSource
A data source for JasperReports.
Constructor Summary | |
JacDataSource(ClassItem cl)
Create a data source of all instances of a class. |
|
JacDataSource(Collection collection,
ClassItem componentType)
Creates a data source for a collection. |
|
JacDataSource(Object substance,
CollectionItem collection)
Creates a data source for a collection of an object |
|
JacDataSource(Object substance,
String collectionName)
Creates a data source for a collection of an object |
Method Summary | |
Object |
getFieldValue(dori.jasper.engine.JRField field)
Uses the documentation of the field as the full name of the field, since the field's name can not contain dots. |
boolean |
next()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JacDataSource(ClassItem cl)
public JacDataSource(Collection collection, ClassItem componentType)
collection
- a collection to fetch data fromcomponentType
- the type of the elements in the collection. It can be null.public JacDataSource(Object substance, CollectionItem collection)
collection
- a collection to fetch data fromsubstance
- public JacDataSource(Object substance, String collectionName)
substance
- object holding the collectioncollectionName
- name of the collection to fetch data fromMethod Detail |
public boolean next() throws dori.jasper.engine.JRException
next
in interface dori.jasper.engine.JRDataSource
dori.jasper.engine.JRException
public Object getFieldValue(dori.jasper.engine.JRField field) throws dori.jasper.engine.JRException
getFieldValue
in interface dori.jasper.engine.JRDataSource
dori.jasper.engine.JRException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |