Package net.sf.saxon.xqj
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
ConstructorsModifierConstructorDescriptionprotected
SaxonXQPreparedExpression
(SaxonXQConnection connection, XQueryExpression expression, DynamicQueryContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
protected void
void
void
close()
QName[]
protected SaxonXQDataFactory
protected DynamicQueryContext
int
getStaticVariableType
(QName name) QName[]
boolean
isClosed()
void
setQueryTimeout
(int seconds) Methods inherited from class net.sf.saxon.xqj.SaxonXQDynamicContext
bindAtomicValue, bindBoolean, bindByte, bindContextItem, bindDocument, bindDouble, bindFloat, bindInt, bindItem, bindLong, bindNode, bindObject, bindSequence, bindShort, getImplicitTimeZone, setImplicitTimeZone
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.saxon.javax.xml.xquery.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:
getDynamicContext
in classSaxonXQDynamicContext
-
checkNotClosed
- Specified by:
checkNotClosed
in classSaxonXQDynamicContext
- Throws:
XQException
-
getDataFactory
- Specified by:
getDataFactory
in classSaxonXQDynamicContext
- Throws:
XQException
-
cancel
- Specified by:
cancel
in interfaceXQPreparedExpression
- Throws:
XQException
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarnings
in interfaceXQPreparedExpression
-
close
public void close()- Specified by:
close
in interfaceXQPreparedExpression
-
executeQuery
- Specified by:
executeQuery
in interfaceXQPreparedExpression
- Throws:
XQException
-
getAllExternalVariables
- Specified by:
getAllExternalVariables
in interfaceXQPreparedExpression
- Throws:
XQException
-
getUnboundExternalVariables
- Specified by:
getUnboundExternalVariables
in interfaceXQPreparedExpression
- Throws:
XQException
-
getQueryTimeout
- Specified by:
getQueryTimeout
in interfaceXQPreparedExpression
- Throws:
XQException
-
getStaticResultType
- Specified by:
getStaticResultType
in interfaceXQPreparedExpression
- Throws:
XQException
-
getStaticVariableType
- Specified by:
getStaticVariableType
in interfaceXQPreparedExpression
- Throws:
XQException
-
getWarnings
- Specified by:
getWarnings
in interfaceXQPreparedExpression
- Throws:
XQException
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceXQPreparedExpression
-
setQueryTimeout
public void setQueryTimeout(int seconds) - Specified by:
setQueryTimeout
in interfaceXQPreparedExpression
-