Class MergeDataSourceProcessor

All Implemented Interfaces:
ConfigurationObject, CustomDependencies, Processor<MergeDataSourceProcessor.In,MergeDataSourceProcessor.Out>

public final class MergeDataSourceProcessor extends AbstractProcessor<MergeDataSourceProcessor.In,MergeDataSourceProcessor.Out> implements CustomDependencies
This processor combines DataSources and individual processor outputs (or attribute values) into a single DataSource which can be used in a jasper report's detail section.

An example use case is where we might have zero or many of tables and zero or many legends. You can configure the template with a detail section that contains a subreport, the name of which is a field in the DataSources and the DataSources for the sub-template another field. Then you can merge the legend and the tables into a single DataSources. This way the report will nicely expand depending on if you have a legend and how many tables you have in your report. [[examples=merged_datasource]]

  • Constructor Details

    • MergeDataSourceProcessor

      protected MergeDataSourceProcessor()
      Constructor.
  • Method Details