public class SimpleSqlQuerySource extends java.lang.Object implements QuerySource<SimpleSqlQueryConfig>
SimpleSqlQuerySource provides a SQL Query data source that allows for binding-like paths to be added via {} refs in SQL queries.
QuerySource.SubQueryTransaction| Constructor and Description |
|---|
SimpleSqlQuerySource() |
| Modifier and Type | Method and Description |
|---|---|
QuerySource.SubQueryTransaction |
begin(ReportExecutionContext context,
SimpleSqlQueryConfig 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,
SimpleSqlQueryConfig config,
java.util.Map<java.lang.String,java.lang.Object> extraConfigs)
Execute a top level query.
|
public java.lang.String getId()
QuerySourcegetId in interface QuerySource<SimpleSqlQueryConfig>public Dataset query(ReportExecutionContext execContext, SimpleSqlQueryConfig config, java.util.Map<java.lang.String,java.lang.Object> extraConfigs) throws java.lang.Exception
QuerySourcequery in interface QuerySource<SimpleSqlQueryConfig>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.Exceptionpublic QuerySource.SubQueryTransaction begin(ReportExecutionContext context, SimpleSqlQueryConfig config, java.util.Map<java.lang.String,java.lang.Object> extraConfigs, QueryResults parent) throws java.lang.Exception
QuerySourcebegin in interface QuerySource<SimpleSqlQueryConfig>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