public class PrepStmtQuerySource extends java.lang.Object implements QuerySource<PrepStmtQueryConfig>
QuerySource.SubQueryTransaction
Constructor and Description |
---|
PrepStmtQuerySource() |
Modifier and Type | Method and Description |
---|---|
QuerySource.SubQueryTransaction |
begin(ReportExecutionContext context,
PrepStmtQueryConfig config,
java.util.Map<java.lang.String,java.lang.Object> extraConfigs,
QueryResults parent)
Begin a nested query "transaction".
|
java.lang.String |
getId()
The unique ID for this query source.
|
Dataset |
query(ReportExecutionContext execContext,
PrepStmtQueryConfig config,
java.util.Map<java.lang.String,java.lang.Object> extraConfigs)
Execute a top level query.
|
public java.lang.String getId()
QuerySource
getId
in interface QuerySource<PrepStmtQueryConfig>
public Dataset query(ReportExecutionContext execContext, PrepStmtQueryConfig config, java.util.Map<java.lang.String,java.lang.Object> extraConfigs) throws java.lang.Exception
QuerySource
query
in interface QuerySource<PrepStmtQueryConfig>
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.java.lang.Exception
public QuerySource.SubQueryTransaction begin(ReportExecutionContext context, PrepStmtQueryConfig config, java.util.Map<java.lang.String,java.lang.Object> extraConfigs, QueryResults parent) throws java.lang.Exception
QuerySource
begin
in interface QuerySource<PrepStmtQueryConfig>
context
- The context for the report being executedconfig
- 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.java.lang.Exception