Class AlarmJournalQuerySource
java.lang.Object
com.inductiveautomation.reporting.gateway.data.queries.AlarmJournalQuerySource
- All Implemented Interfaces:
QuerySource<AlarmJournalQueryConfig>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.reporting.gateway.api.QuerySource
QuerySource.SubQueryTransaction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbegin(ReportExecutionContext execContext, AlarmJournalQueryConfig queryConfig, Map<String, Object> extraConfigs, QueryResults parent) Begin a nested query "transaction".getId()The unique ID for this query source.query(ReportExecutionContext execContext, AlarmJournalQueryConfig queryConfig, Map<String, Object> extraConfigs) Execute a top level query.
-
Constructor Details
-
AlarmJournalQuerySource
public AlarmJournalQuerySource()
-
-
Method Details
-
getId
Description copied from interface:QuerySourceThe unique ID for this query source. Should be qualified with module name first- Specified by:
getIdin interfaceQuerySource<AlarmJournalQueryConfig>
-
query
public Dataset query(ReportExecutionContext execContext, AlarmJournalQueryConfig queryConfig, Map<String, Object> extraConfigs) throws ExceptionDescription copied from interface:QuerySourceExecute a top level query.- Specified by:
queryin interfaceQuerySource<AlarmJournalQueryConfig>- Parameters:
execContext- The context for the report being executed.queryConfig- The config object which was configured in the designer for this query.extraConfigs- Extra configuration data the designer may need to send. Unused by most data sources, because the queryConfig should contain all data needed to execute the query. May be null.- Returns:
- A dataset of results for executing this query
- Throws:
Exception
-
begin
@Nonnull public QuerySource.SubQueryTransaction begin(ReportExecutionContext execContext, AlarmJournalQueryConfig queryConfig, Map<String, Object> extraConfigs, QueryResults parent) throws ExceptionDescription copied from interface:QuerySourceBegin a nested query "transaction". This means that a nested query (defined by a single query config) is about to be executed, and will probably be executed many times.- Specified by:
beginin interfaceQuerySource<AlarmJournalQueryConfig>- Parameters:
execContext- The context for the report being executedqueryConfig- The config object which was configured in designer for this nested query.extraConfigs- Extra configuration data the designer may need to send. Unused by most data sources, because the queryConfig should contain all data needed to execute the query. May be null.parent- The QueryResults object for the parent query of this nested query.- Returns:
- A new transaction object to handle the execution of this nested query.
- Throws:
Exception
-