public class XQueryExecutable
extends java.lang.Object
XQueryEvaluator
.
An XQueryExecutable is immutable, and therefore thread-safe. It is simplest to load a new XsltTransformer each time the stylesheet is to be run. However, the XsltTransformer is serially reusable within a single thread.
An XQueryExecutable is created by using one of the compile
methods on the
XQueryCompiler
class.
Modifier | Constructor | Description |
---|---|---|
protected |
XQueryExecutable(Processor processor,
XQueryExpression exp) |
Modifier and Type | Method | Description |
---|---|---|
OccurrenceIndicator |
getResultCardinality() |
Get the statically-determined cardinality of the result of the query.
|
ItemType |
getResultItemType() |
Get the ItemType of the items in the result of the query, as determined by static analysis.
|
XQueryExpression |
getUnderlyingCompiledQuery() |
Get the underlying implementation object representing the compiled stylesheet.
|
boolean |
isUpdateQuery() |
Ask whether the query is an updating query: that is, whether it returns a Pending Update List
rather than a Value.
|
XQueryEvaluator |
load() |
Load the stylesheet to prepare it for execution.
|
protected XQueryExecutable(Processor processor, XQueryExpression exp)
public XQueryEvaluator load()
public ItemType getResultItemType()
public OccurrenceIndicator getResultCardinality()
public boolean isUpdateQuery()
public XQueryExpression getUnderlyingCompiledQuery()