tools.dynamia.reports.ReportDataSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools.dynamia.reports Show documentation
Show all versions of tools.dynamia.reports Show documentation
A set of classes and interfaces that help building Reports
package tools.dynamia.reports;
import java.util.Collection;
/**
* Simple wrapper for report datasource, when is used in report params the param value will be replaced with a
* proper report engine value. For example
*
*
*
* params.put("details",new ReportDatasource(collection));
*
* //will be replace to something like:
*
* params.put("details",new JRBeanCollectionDatasource(collection));
*
*
*/
public class ReportDataSource {
private final Object value;
public ReportDataSource(Object value) {
this.value = value;
}
public ReportDataSource(Collection value) {
this.value = value;
}
public Object getValue() {
return value;
}
}