|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A prepared data engine query ready for execution. An instance of this class is compiled from the static
definition of an IQueryDefinition
object.
Method Summary | |
IQueryResults |
execute(IQueryResults outerResults,
org.mozilla.javascript.Scriptable queryScope)
Executes the prepared execution plan as an inner query that appears within the scope of another query. |
IQueryResults |
execute(org.mozilla.javascript.Scriptable queryScope)
Executes the prepared execution plan. |
java.util.Collection |
getParameterMetaData()
Returns a collection of IParameterMetaData that
each describes the meta-data of a parameter defined in this query. |
IQueryDefinition |
getReportQueryDefn()
Returns the same IQueryDefinition
used to prepare this instance, without any changes. |
Method Detail |
public IQueryDefinition getReportQueryDefn()
IQueryDefinition
used to prepare this instance, without any changes.
public java.util.Collection getParameterMetaData() throws BirtException
IParameterMetaData
that
each describes the meta-data of a parameter defined in this query.
The sequence in the collection has no implied meaning.
A parameter's position value, if defined, is specified
in a IParameterMetaData
.
Each parameter can be of input and/or output mode.
IParameterMetaData
to describe
the meta-data of all parameters defined in this
prepared query. Returns null if no parameters
are defined, or if no parameter metadata is available.
BirtException
public IQueryResults execute(org.mozilla.javascript.Scriptable queryScope) throws BirtException
IQueryResults
object which can be used
to obtain the result set metadata and the result iterator.
The caller should create a separate Javascript scope, which uses the data engine's shared scope as its prototype, and pass that scope as a parameter to this method. The Data Engine is responsible for setting up necessary Javascript objects to facilitate evaluation of data related expressions (e.g., those that uses the Javascript "row" object).
queryScope
- The Javascript scope for evaluating query's script expressions.
This is expected to be a top-level scope with the Data Engine's global scope
at its top prototype chain.
BirtException
public IQueryResults execute(IQueryResults outerResults, org.mozilla.javascript.Scriptable queryScope) throws BirtException
outerResults
- IQueryResults
for the executed outer queryqueryScope
- Javascript defined for this runtime instance of report query.
IQueryResults
object for this report query
BirtException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |