Class PrepStmtQuerySource

java.lang.Object
com.inductiveautomation.reporting.gateway.data.queries.PrepStmtQuerySource
All Implemented Interfaces:
QuerySource<PrepStmtQueryConfig>

public class PrepStmtQuerySource extends Object implements QuerySource<PrepStmtQueryConfig>
  • Constructor Details

    • PrepStmtQuerySource

      public PrepStmtQuerySource()
  • Method Details

    • getId

      public String getId()
      Description copied from interface: QuerySource
      The unique ID for this query source. Should be qualified with module name first
      Specified by:
      getId in interface QuerySource<PrepStmtQueryConfig>
    • query

      public Dataset query(ReportExecutionContext execContext, PrepStmtQueryConfig config, Map<String,Object> extraConfigs) throws Exception
      Description copied from interface: QuerySource
      Execute a top level query.
      Specified by:
      query in interface QuerySource<PrepStmtQueryConfig>
      Parameters:
      execContext - The context for the report being executed.
      config - 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

      public QuerySource.SubQueryTransaction begin(ReportExecutionContext context, PrepStmtQueryConfig config, Map<String,Object> extraConfigs, QueryResults parent) throws Exception
      Description copied from interface: QuerySource
      Begin 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:
      begin in interface QuerySource<PrepStmtQueryConfig>
      Parameters:
      context - The context for the report being executed
      config - 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