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
Constructors Modifier Constructor Description protectedSaxonXQPreparedExpression(SaxonXQConnection connection, XQueryExpression expression, DynamicQueryContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()protected voidcheckNotClosed()voidclearWarnings()voidclose()XQResultSequenceexecuteQuery()javax.xml.namespace.QName[]getAllExternalVariables()protected SaxonXQDataFactorygetDataFactory()protected DynamicQueryContextgetDynamicContext()intgetQueryTimeout()XQSequenceTypegetStaticResultType()XQSequenceTypegetStaticVariableType(javax.xml.namespace.QName name)javax.xml.namespace.QName[]getUnboundExternalVariables()XQWarninggetWarnings()booleanisClosed()voidsetQueryTimeout(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 Detail
-
SaxonXQPreparedExpression
protected SaxonXQPreparedExpression(SaxonXQConnection connection, XQueryExpression expression, DynamicQueryContext context) throws XQException
- Throws:
XQException
-
-
Method Detail
-
getDynamicContext
protected DynamicQueryContext getDynamicContext()
- Specified by:
getDynamicContextin classSaxonXQDynamicContext
-
checkNotClosed
protected void checkNotClosed() throws XQException- Specified by:
checkNotClosedin classSaxonXQDynamicContext- Throws:
XQException
-
getDataFactory
protected SaxonXQDataFactory getDataFactory() throws XQException
- Specified by:
getDataFactoryin classSaxonXQDynamicContext- Throws:
XQException
-
cancel
public void cancel() throws XQException- Specified by:
cancelin interfaceXQPreparedExpression- Throws:
XQException
-
clearWarnings
public void clearWarnings()
- Specified by:
clearWarningsin interfaceXQPreparedExpression
-
close
public void close()
- Specified by:
closein interfaceXQPreparedExpression
-
executeQuery
public XQResultSequence executeQuery() throws XQException
- Specified by:
executeQueryin interfaceXQPreparedExpression- Throws:
XQException
-
getAllExternalVariables
public javax.xml.namespace.QName[] getAllExternalVariables() throws XQException- Specified by:
getAllExternalVariablesin interfaceXQPreparedExpression- Throws:
XQException
-
getUnboundExternalVariables
public javax.xml.namespace.QName[] getUnboundExternalVariables() throws XQException- Specified by:
getUnboundExternalVariablesin interfaceXQPreparedExpression- Throws:
XQException
-
getQueryTimeout
public int getQueryTimeout() throws XQException- Specified by:
getQueryTimeoutin interfaceXQPreparedExpression- Throws:
XQException
-
getStaticResultType
public XQSequenceType getStaticResultType() throws XQException
- Specified by:
getStaticResultTypein interfaceXQPreparedExpression- Throws:
XQException
-
getStaticVariableType
public XQSequenceType getStaticVariableType(javax.xml.namespace.QName name) throws XQException
- Specified by:
getStaticVariableTypein interfaceXQPreparedExpression- Throws:
XQException
-
getWarnings
public XQWarning getWarnings() throws XQException
- Specified by:
getWarningsin interfaceXQPreparedExpression- Throws:
XQException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceXQPreparedExpression
-
setQueryTimeout
public void setQueryTimeout(int seconds)
- Specified by:
setQueryTimeoutin interfaceXQPreparedExpression
-
-