public class SaxonXQExpression extends SaxonXQDynamicContext implements XQExpression
connection| Modifier and Type | Method and Description | 
|---|---|
| void | cancel()Attempts to cancel the execution if both the XQuery engine and XQJ
 driver support aborting the execution of an  XQExpression. | 
| void | executeCommand(Reader command)Executes an implementation-defined command. | 
| void | executeCommand(String command)Executes an implementation-defined command. | 
| XQResultSequence | executeQuery(InputStream query)Executes a query expression. | 
| XQResultSequence | executeQuery(Reader query)Executes a query expression. | 
| XQResultSequence | executeQuery(String query)Executes a query expression. | 
| protected boolean | externalVariableExists(QName name) | 
| protected SaxonXQDataFactory | getDataFactory() | 
| protected DynamicQueryContext | getDynamicContext() | 
| XQStaticContext | getStaticContext()Gets an  XQStaticContextrepresenting the values for all
 expression properties. | 
bindAtomicValue, bindBoolean, bindByte, bindDocument, bindDocument, bindDocument, bindDocument, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, bindString, getConfiguration, getImplicitTimeZone, setImplicitTimeZoneclose, isClosed, setClosableContainerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, isClosedbindAtomicValue, bindBoolean, bindByte, bindDocument, bindDocument, bindDocument, bindDocument, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, bindString, getImplicitTimeZone, setImplicitTimeZoneprotected DynamicQueryContext getDynamicContext()
getDynamicContext in class SaxonXQDynamicContextprotected SaxonXQDataFactory getDataFactory() throws XQException
getDataFactory in class SaxonXQDynamicContextXQExceptionpublic void cancel()
            throws XQException
XQExpressionXQExpression. This method can
 be used by one thread to cancel an XQExpression, that is being executed
 in another thread. If cancellation is not supported or the attempt to
 cancel the execution was not successful, the method returns without any
 error. If the cancellation is successful, an XQException is
 thrown, to indicate that it has been aborted, by executeQuery,
 executeCommand or any method accessing the XQResultSequence
 returned by executeQuery. If applicable, any open XQResultSequence
 and XQResultItem objects will also be implicitly closed in this case.cancel in interface XQExpressionXQException - if the expression is in a closed statepublic void executeCommand(Reader command) throws XQException
XQExpressionexecuteCommand in interface XQExpressioncommand - the input command as a string readerXQException - if (1) there are errors when executing the command,
                            (2) the expression is in a closed state,
                            or (3) the execution is cancelledpublic void executeCommand(String command) throws XQException
XQExpressionexecuteCommand in interface XQExpressioncommand - the input command as a stringXQException - if (1) there are errors when executing the command,
                            or (2) the expression is in a closed statepublic XQResultSequence executeQuery(InputStream query) throws XQException
XQExpressionexecuteQuery in interface XQExpressionquery - the input query expression as a input stream object.
                            Cannot be nullXQResultSequence containing the
                            result of the query executionXQException - if (1) there are errors when executing the query,
                            (2) the expression is in a closed state,
                            (3) the execution is cancelled, or
                            (4) the xquery parameter is nullpublic XQResultSequence executeQuery(Reader query) throws XQException
XQExpressionexecuteQuery in interface XQExpressionquery - the input query expression as a reader object.
                            Cannot be nullXQResultSequence object containing
                            the result of the query executionXQException - if (1) there are errors when executing the query,
                            (2) the expression is in a closed state,
                            (3) the execution is cancelled, or
                            (4) the query parameter is nullpublic XQResultSequence executeQuery(String query) throws XQException
XQExpressionexecuteQuery in interface XQExpressionquery - the input query expression string.
                            Cannot be nullXQResultSequence object containing
                            the result of the query executionXQException - if (1) there are errors when executing the query,
                            (2) the expression is in a closed state,
                            (3) the execution is cancelled,
                            (4) the query parameter is nullpublic XQStaticContext getStaticContext() throws XQException
XQExpressionXQStaticContext representing the values for all
 expression properties. Note that these properties cannot be changed; in
 order to change, a new XQExpression needs to be created.getStaticContext in interface XQExpressionXQStaticContext representing
                            the values for all expression propertiesXQException - if the expression is in a closed stateprotected boolean externalVariableExists(QName name)
externalVariableExists in class SaxonXQDynamicContextCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.