|
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OXQPreparedExpression
Extensions to 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); ...
| Field Summary | |
|---|---|
static int |
CATEGORY_SIMPLEIndicates that the expression category is simple. |
static int |
CATEGORY_UPDATINGIndicates that the expression category is updating. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface oracle.xml.xquery.OXQDynamicContext |
|---|
bindBigDecimal, bindBigInteger, bindBinary, bindCalendar, bindDocument, bindDuration, bindQName, getConnection, getDebugListener, getDefaultCollection, getPageManager, getUpdateMode, getUserExtension, setDebugListener, setDefaultCollection, setPageManager, setUpdateMode, setUserExtension |
| Field Detail |
|---|
static final int CATEGORY_SIMPLE
getExpressionCategory(), Constant Field Valuesstatic final int CATEGORY_UPDATING
getExpressionCategory(), Constant Field Values| Method Detail |
|---|
XQPreparedExpression 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 expression
boolean 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 closed
boolean 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 expression
int getExpressionCategory()
throws XQException
CATEGORY_SIMPLE or CATEGORY_UPDATINGXQException - if (1) the current expression is closed, or (2) the method is not supported for this particular query
javax.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 state
XQStaticContext 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
|
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2003, 2014, Oracle and/or its affiliates. All rights reserved.