Class SaxonXQPreparedExpression
java.lang.Object
net.sf.saxon.xqj.SaxonXQDynamicContext
net.sf.saxon.xqj.SaxonXQPreparedExpression
- All Implemented Interfaces:
XQDynamicContext, XQPreparedExpression
public class SaxonXQPreparedExpression
extends SaxonXQDynamicContext
implements XQPreparedExpression
Saxon implementation of the XQJ interface XQPreparedExpression. This represents a compiled XQuery
expression, together with the dynamic context for its evaluation. Note that this means the object
should not be used in more than one thread concurrently.
Note that an expression is scrollable or not depending on the scrollability property of the XQConnection that was used to compile this expression (at the time it was compiled). If the expression is scrollable then its results are delivered in an XQSequence that supports scrolling backwards as well as forwards.
For full Javadoc details, see the XQJ interface specification.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSaxonXQPreparedExpression(SaxonXQConnection connection, XQueryExpression expression, DynamicQueryContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()protected voidvoidvoidclose()QName[]protected SaxonXQDataFactoryprotected DynamicQueryContextintgetStaticVariableType(QName name) QName[]booleanisClosed()voidsetQueryTimeout(int seconds) Methods inherited from class SaxonXQDynamicContext
bindAtomicValue, bindBoolean, bindByte, bindContextItem, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, getImplicitTimeZone, setImplicitTimeZoneMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XQDynamicContext
bindAtomicValue, bindBoolean, bindByte, bindContextItem, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, getImplicitTimeZone, setImplicitTimeZone
-
Constructor Details
-
SaxonXQPreparedExpression
protected SaxonXQPreparedExpression(SaxonXQConnection connection, XQueryExpression expression, DynamicQueryContext context) throws XQException - Throws:
XQException
-
-
Method Details
-
getDynamicContext
- Specified by:
getDynamicContextin classSaxonXQDynamicContext
-
checkNotClosed
- Specified by:
checkNotClosedin classSaxonXQDynamicContext- Throws:
XQException
-
getDataFactory
- Specified by:
getDataFactoryin classSaxonXQDynamicContext- Throws:
XQException
-
cancel
- Specified by:
cancelin interfaceXQPreparedExpression- Throws:
XQException
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceXQPreparedExpression
-
close
public void close()- Specified by:
closein interfaceXQPreparedExpression
-
executeQuery
- Specified by:
executeQueryin interfaceXQPreparedExpression- Throws:
XQException
-
getAllExternalVariables
- Specified by:
getAllExternalVariablesin interfaceXQPreparedExpression- Throws:
XQException
-
getUnboundExternalVariables
- Specified by:
getUnboundExternalVariablesin interfaceXQPreparedExpression- Throws:
XQException
-
getQueryTimeout
- Specified by:
getQueryTimeoutin interfaceXQPreparedExpression- Throws:
XQException
-
getStaticResultType
- Specified by:
getStaticResultTypein interfaceXQPreparedExpression- Throws:
XQException
-
getStaticVariableType
- Specified by:
getStaticVariableTypein interfaceXQPreparedExpression- Throws:
XQException
-
getWarnings
- Specified by:
getWarningsin interfaceXQPreparedExpression- Throws:
XQException
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceXQPreparedExpression
-
setQueryTimeout
public void setQueryTimeout(int seconds) - Specified by:
setQueryTimeoutin interfaceXQPreparedExpression
-