|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.xqj.Closable
net.sf.saxon.xqj.SaxonXQDynamicContext
net.sf.saxon.xqj.SaxonXQExpression
public class SaxonXQExpression
Saxon implementation of the XQJ XQExpression interface
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.xqj.SaxonXQDynamicContext |
|---|
connection |
| Method Summary | |
|---|---|
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. |
javax.xml.xquery.XQResultSequence |
executeQuery(InputStream query)
Executes a query expression. |
javax.xml.xquery.XQResultSequence |
executeQuery(Reader query)
Executes a query expression. |
javax.xml.xquery.XQResultSequence |
executeQuery(String query)
Executes a query expression. |
protected boolean |
externalVariableExists(QName name)
|
protected SaxonXQDataFactory |
getDataFactory()
|
protected DynamicQueryContext |
getDynamicContext()
|
javax.xml.xquery.XQStaticContext |
getStaticContext()
Gets an XQStaticContext representing the values for all
expression properties. |
| Methods inherited from class net.sf.saxon.xqj.SaxonXQDynamicContext |
|---|
bindAtomicValue, bindBoolean, bindByte, bindDocument, bindDocument, bindDocument, bindDocument, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, bindString, getConfiguration, getImplicitTimeZone, setImplicitTimeZone |
| Methods inherited from class net.sf.saxon.xqj.Closable |
|---|
close, isClosed, setClosableContainer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.xquery.XQExpression |
|---|
close, isClosed |
| Methods inherited from interface javax.xml.xquery.XQDynamicContext |
|---|
bindAtomicValue, bindBoolean, bindByte, bindDocument, bindDocument, bindDocument, bindDocument, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, bindString, getImplicitTimeZone, setImplicitTimeZone |
| Method Detail |
|---|
protected DynamicQueryContext getDynamicContext()
getDynamicContext in class SaxonXQDynamicContext
protected SaxonXQDataFactory getDataFactory()
throws javax.xml.xquery.XQException
getDataFactory in class SaxonXQDynamicContextjavax.xml.xquery.XQException
public void cancel()
throws javax.xml.xquery.XQException
javax.xml.xquery.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 javax.xml.xquery.XQExpressionjavax.xml.xquery.XQException - if the expression is in a closed state
public void executeCommand(Reader command)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQExpression
executeCommand in interface javax.xml.xquery.XQExpressioncommand - the input command as a string reader
javax.xml.xquery.XQException - if (1) there are errors when executing the command,
(2) the expression is in a closed state,
or (3) the execution is cancelled
public void executeCommand(String command)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQExpression
executeCommand in interface javax.xml.xquery.XQExpressioncommand - the input command as a string
javax.xml.xquery.XQException - if (1) there are errors when executing the command,
or (2) the expression is in a closed state
public javax.xml.xquery.XQResultSequence executeQuery(InputStream query)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQExpression
executeQuery in interface javax.xml.xquery.XQExpressionquery - the input query expression as a input stream object.
Cannot be null
XQResultSequence containing the
result of the query execution
javax.xml.xquery.XQException - 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 null
public javax.xml.xquery.XQResultSequence executeQuery(Reader query)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQExpression
executeQuery in interface javax.xml.xquery.XQExpressionquery - the input query expression as a reader object.
Cannot be null
XQResultSequence object containing
the result of the query execution
javax.xml.xquery.XQException - 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 null
public javax.xml.xquery.XQResultSequence executeQuery(String query)
throws javax.xml.xquery.XQException
javax.xml.xquery.XQExpression
executeQuery in interface javax.xml.xquery.XQExpressionquery - the input query expression string.
Cannot be null
XQResultSequence object containing
the result of the query execution
javax.xml.xquery.XQException - 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 null
public javax.xml.xquery.XQStaticContext getStaticContext()
throws javax.xml.xquery.XQException
javax.xml.xquery.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 javax.xml.xquery.XQExpressionXQStaticContext representing
the values for all expression properties
javax.xml.xquery.XQException - if the expression is in a closed stateprotected boolean externalVariableExists(QName name)
externalVariableExists in class SaxonXQDynamicContext
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||