de.fraunhofer.ipsi.ipsixq.api.impl
Class XQPreparedExpressionImpl

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractExprCommons
      extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQExprCommonsImpl
          extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQPreparedExpressionImpl
All Implemented Interfaces:
XQDynamicContext, XQExprCommons, XQPreparedExpression

public class XQPreparedExpressionImpl
extends XQExprCommonsImpl
implements XQPreparedExpression

Author:
Michael Stark

Constructor Summary
XQPreparedExpressionImpl(StaticContext staticContext, EvaluationContext dynamicContext, XQueryModule module, java.util.List<de.fraunhofer.ipsi.ipsixq.coretree.CoreExpression> coreExpressions, de.fraunhofer.ipsi.ipsixq.datatypes.Type type)
           
 
Method Summary
 void close()
          Closes the expression object and release associated resources.
 XQResultSequence executeQuery()
          Executes the prepared query expression.
 javax.xml.namespace.QName[] getAllExternalVariables()
          Retrieves all the external variables defined in the prolog of the prepared expression.
 javax.xml.namespace.QName[] getAllUnboundExternalVariables()
          Retrieves the names of all unbound external variables.
 XQSequenceType getStaticResultType()
          Gets the static type information of the result sequence.
 XQSequenceType getStaticVariableType(javax.xml.namespace.QName name)
          Retrieves the static type of a given external variable.
 
Methods inherited from class de.fraunhofer.ipsi.ipsixq.api.impl.XQExprCommonsImpl
bindBoolean, bindByte, bindDecimal, bindDouble, bindFloat, bindInt, bindLong, bindNode, bindString, bindURI, isClosed
 
Methods inherited from class de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractExprCommons
bindBase64Binary, bindContextItem, bindHexBinary, bindItem, bindLexicalValue, bindNotation, bindSequence, bindTime, bindTimestamp, cancel, clearWarnings, getImplicitTimeZone, getQueryTimeout, getWarnings, setImplicitTimeZone, setQueryTimeout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.xquery.XQExprCommons
cancel, clearWarnings, getQueryTimeout, getWarnings, isClosed, setQueryTimeout
 
Methods inherited from interface javax.xml.xquery.XQDynamicContext
bindBase64Binary, bindBoolean, bindByte, bindContextItem, bindDecimal, bindDouble, bindFloat, bindHexBinary, bindInt, bindItem, bindLexicalValue, bindLong, bindNode, bindNotation, bindSequence, bindString, bindTime, bindTimestamp, bindURI, getImplicitTimeZone, setImplicitTimeZone
 

Constructor Detail

XQPreparedExpressionImpl

public XQPreparedExpressionImpl(StaticContext staticContext,
                                EvaluationContext dynamicContext,
                                XQueryModule module,
                                java.util.List<de.fraunhofer.ipsi.ipsixq.coretree.CoreExpression> coreExpressions,
                                de.fraunhofer.ipsi.ipsixq.datatypes.Type type)
Method Detail

executeQuery

public XQResultSequence executeQuery()
                              throws XQException
Description copied from interface: XQPreparedExpression
Executes the prepared query expression.

Specified by:
executeQuery in interface XQPreparedExpression
Throws:
XQException

getStaticVariableType

public XQSequenceType getStaticVariableType(javax.xml.namespace.QName name)
                                     throws XQException
Description copied from interface: XQPreparedExpression
Retrieves the static type of a given external variable.

Specified by:
getStaticVariableType in interface XQPreparedExpression
Throws:
XQException

close

public void close()
           throws XQException
Description copied from interface: XQExprCommons
Closes the expression object and release associated resources.

Specified by:
close in interface XQExprCommons
Overrides:
close in class XQExprCommonsImpl
Throws:
XQException

getStaticResultType

public XQSequenceType getStaticResultType()
                                   throws XQException
Description copied from interface: XQPreparedExpression
Gets the static type information of the result sequence.

Specified by:
getStaticResultType in interface XQPreparedExpression
Throws:
XQException

getAllExternalVariables

public javax.xml.namespace.QName[] getAllExternalVariables()
                                                    throws XQException
Description copied from interface: XQPreparedExpression
Retrieves all the external variables defined in the prolog of the prepared expression.

Specified by:
getAllExternalVariables in interface XQPreparedExpression
Throws:
XQException

getAllUnboundExternalVariables

public javax.xml.namespace.QName[] getAllUnboundExternalVariables()
                                                           throws XQException
Description copied from interface: XQPreparedExpression
Retrieves the names of all unbound external variables.

Specified by:
getAllUnboundExternalVariables in interface XQPreparedExpression
Throws:
XQException