Class QueryReportDataSource
- java.lang.Object
- 
- com.inductiveautomation.reporting.gateway.data.QueryReportDataSource
 
- 
- All Implemented Interfaces:
- ReportDataSource
 
 public class QueryReportDataSource extends java.lang.Object implements ReportDataSource Created by carl.gould on 3/5/2015.
- 
- 
Constructor SummaryConstructors Constructor Description QueryReportDataSource()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgatherData(ReportExecutionContext execContext, java.io.Serializable configObject, java.util.Map<java.lang.String,java.lang.Object> extraConfigs)Called when a report is being executed to gather the data represented by this data source.java.lang.StringgetId()Return the unique ID for this data source.
 
- 
- 
- 
Method Detail- 
getIdpublic java.lang.String getId() Description copied from interface:ReportDataSourceReturn the unique ID for this data source. Should be qualified, such as com.example.data-source-type. Must match the ID returned by your DataSourceConfigFactory in the designer scope.- Specified by:
- getIdin interface- ReportDataSource
 
 - 
gatherDatapublic void gatherData(ReportExecutionContext execContext, java.io.Serializable configObject, java.util.Map<java.lang.String,java.lang.Object> extraConfigs) throws java.lang.Exception Description copied from interface:ReportDataSourceCalled when a report is being executed to gather the data represented by this data source. This method is high re-entrant. A given data source instance will be used for concurrently executing reports. This method must inject the data it gathers into the data map.- Specified by:
- gatherDatain interface- ReportDataSource
- Parameters:
- execContext- 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.
- extraConfigs- Any extra info datasources might need when running. Will be null if not sample data. It's up to the datasource to decide what object(s) from this map it wants. Key is the datasource id.
- Throws:
- java.lang.Exception
 
 
- 
 
-