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 and Description |
---|
SampleDataSchema(java.util.Map<java.lang.String,java.lang.Object> sampleData) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
createDataset()
Returns a sample dataset of objects associated with the datasource.
|
protected Schema |
createSchema()
Creates the schema.
|
fromXML, getCustomSchema, getDataset, getName, getSchema, setCustomSchema, toString, toXML
public SampleDataSchema(java.util.Map<java.lang.String,java.lang.Object> sampleData)
protected java.util.Map<java.lang.String,java.lang.Object> createDataset()
RMDataSource
createDataset
in class RMDataSource
protected Schema createSchema()
RMDataSource
createSchema
in class RMDataSource