public interface OXQPreparedExpression extends OXQDynamicContext
javax.xml.xquery.XQPreparedExpression
.
Use method OXQView.getPreparedExpression(XQPreparedExpression)
to access these extensions. For example:
OXQDataSource ds = new OXQDataSource(); XQConnection con = ds.getConnection(); XQPreparedExpression expr = con.prepareExpression(query); OXQPreparedExpression oexpr = OXQView.getPreparedExpression(expr); ...
Modifier and Type | Field and Description |
---|---|
static int |
CATEGORY_SIMPLE
Indicates that the expression category is simple.
|
static int |
CATEGORY_UPDATING
Indicates that the expression category is updating.
|
Modifier and Type | Method and Description |
---|---|
boolean |
createsNewNodes()
Indicates whether the expression creates new nodes using XQuery node constructors.
|
javax.xml.namespace.QName[] |
getAllUnboundAndUsedExternalVariables()
Retrieves the names of all unbound external variables that are also used within the query.
|
int |
getExpressionCategory()
Returns the expression category.
|
XQStaticContext |
getExpressionStaticContext()
Retrieves the static context of the expression's main module.
|
XQPreparedExpression |
getXQView()
Returns the
XQPreparedExpression instance corresponding to this instance. |
boolean |
isContextItemUnbound()
Indicates whether the context item is unbound.
|
boolean |
isFunction()
Returns
true if the expression is a function. |
bindBigDecimal, bindBigInteger, bindBinary, bindCalendar, bindDocument, bindDuration, bindQName, getConnection, getDebugListener, getDefaultCollection, getDefaultResourceCollection, getPageManager, getUpdateMode, getUserExtension, setDebugListener, setDefaultCollection, setDefaultResourceCollection, setPageManager, setUpdateMode, setUserExtension, unbindAllExternalVariablesAndContextItem
static final int CATEGORY_SIMPLE
getExpressionCategory()
, Constant Field Valuesstatic final int CATEGORY_UPDATING
getExpressionCategory()
, Constant Field ValuesXQPreparedExpression getXQView()
XQPreparedExpression
instance corresponding to this instance.getXQView
in interface OXQDynamicContext
boolean createsNewNodes() throws XQException
true
if the expression creates new nodes, false
otherwiseXQException
- if (1) the current expression is closed, (2) the method is not supported for this particular expressionboolean isFunction() throws XQException
true
if the expression is a function. In other words, returns true
if the expression will return the same result given the same input (bindings).true
if the current expression is a function, false
otherwiseXQException
- if the current expression is closedboolean isContextItemUnbound() throws XQException
true
if the context item is unbound, false
otherwiseXQException
- if (1) the current expression is closed, (2) the method is not supported for this particular expressionint getExpressionCategory() throws XQException
CATEGORY_SIMPLE
or CATEGORY_UPDATING
XQException
- if (1) the current expression is closed, or (2) the method is not supported for this particular queryjavax.xml.namespace.QName[] getAllUnboundAndUsedExternalVariables() throws XQException
XQPreparedExpression.getAllUnboundExternalVariables()
method returns all unbound external variables, even if they are not used in the query. This method is added to be able to retrieve only the used unbound external variables.XQException
- if the prepared expression is in a closed stateXQStaticContext getExpressionStaticContext() throws XQException
XQPreparedExpression.getStaticContext()
which returns the starting context used to create the expression. Also, unlike the context returned from getStaticContext()
, the module context may not be used to prepare another expression.if
- the prepared expression is in a closed stateXQException