Class SampleDataSchema

  • All Implemented Interfaces:
    Archivable

    public class SampleDataSchema
    extends RMDataSource

    This is a specialization of the RMDataSource class that understands the Map structures that we feed our reports.

    We feed this class a copy of report sample data, and it turns it into a reportmill "Schema" which powers the designer's key panel. It has special handling for datasets (they must be wrapped in ReportAccessibleDataset) and QueryResult objects.

    Created by carl.gould on 2/5/2015.

    • Constructor Detail

      • SampleDataSchema

        public SampleDataSchema​(java.util.Map<java.lang.String,​java.lang.Object> sampleData)
    • Method Detail

      • createDataset

        protected java.util.Map<java.lang.String,​java.lang.Object> createDataset()
        Description copied from class: RMDataSource
        Returns a sample dataset of objects associated with the datasource.
        Overrides:
        createDataset in class RMDataSource