public class NamedQuerySource extends java.lang.Object implements QuerySource<NamedQueryConfig>
QuerySource.SubQueryTransaction
Constructor and Description |
---|
NamedQuerySource() |
Modifier and Type | Method and Description |
---|---|
QuerySource.SubQueryTransaction |
begin(ReportExecutionContext context,
NamedQueryConfig 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 context,
NamedQueryConfig queryConfig,
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<NamedQueryConfig>
public Dataset query(ReportExecutionContext context, NamedQueryConfig queryConfig, java.util.Map<java.lang.String,java.lang.Object> extraConfigs) throws java.lang.Exception
QuerySource
query
in interface QuerySource<NamedQueryConfig>
context
- 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.java.lang.Exception
public QuerySource.SubQueryTransaction begin(ReportExecutionContext context, NamedQueryConfig config, java.util.Map<java.lang.String,java.lang.Object> extraConfigs, QueryResults parent) throws java.lang.Exception
QuerySource
begin
in interface QuerySource<NamedQueryConfig>
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