public class StaticReportDataSource extends java.lang.Object implements ReportDataSource
Modifier and Type | Class and Description |
---|---|
protected class |
StaticReportDataSource.NumberConvertingDatasetBuilder
This Convenience Builder will look through all the rows of a given column, trying to parse the values as Numbers.
|
Constructor and Description |
---|
StaticReportDataSource() |
Modifier and Type | Method and Description |
---|---|
void |
gatherData(ReportExecutionContext context,
java.io.Serializable _configObject)
Called when a report is being executed to gather the data represented by this data source.
|
java.lang.String |
getId()
Return the unique ID for this data source.
|
static java.util.List |
toList(JSONArray array) |
static java.util.Map |
toMap(JSONObject object) |
public void gatherData(ReportExecutionContext context, java.io.Serializable _configObject) throws java.lang.Exception
ReportDataSource
gatherData
in interface ReportDataSource
context
- This context holds the data map for the report, as well as other information about the report, its
project, logging context, status feedback, etc._configObject
- The object that was saved for this data source in the designer.java.lang.Exception
public java.lang.String getId()
ReportDataSource
getId
in interface ReportDataSource
public static java.util.Map toMap(JSONObject object) throws JSONException
JSONException
public static java.util.List toList(JSONArray array) throws JSONException
JSONException