XQStaticContext Interface
This interface represents default values for XQuery Static Context components. Additionally, it includes the static XQJ properties for an XQExpression or XQPreparedExpression object.
Table G-15 describes how DataDirect XQuery supports the methods of the XQStaticContext interface.
Table G-15. XQStaticContext Method Summary Method Support void declareNamespace(String prefix, String uri) Supported. String getBaseURI( ) Supported. Returns the base URI as specified in the BaseUri property of DDXQDataSource or the directory of your current JVM if no base URI is specified. int getBindingMode( ) Supported. XQItemType getContextItemStaticType( ) Supported. int getCopyNamespacesModeInherit( ) Supported. Always returns the same constant value, XQConstants.
COPY_NAMESPACES_MODE_INHERIT. int getCopyNamespacesModePreserve( ) Supported. Always returns the same constant value, XQConstants.
COPY_NAMESPACES_MODE_PRESERVE. String getDefaultCollation( ) Supported. Returns the collation as specified in the Collation property of DDXQDataSource or the default JVM collation if no collation is specified. String getDefaultElementTypeNamespace( ) Supported. Returns an empty string. String getDefaultFunctionNamespace( ) Supported. Returns
http://www.w3.org/2005/xpath-functions int getDefaultOrderForEmptySequences( ) Supported. Returns the default order for empty sequences. See the "Default order for empty sequences" description in Table A-1. int getHoldability( ) Supported. Always returns the same constant value. See the corresponding set method for the value returned. String[] getNamespacePrefixes( ) Supported. Returns xsi, xdt, xml, ddtek-sql, fn, ddtek, local, ddtek-sql-jdbc, and xs. String getNamespaceURI(String prefix) Supported. int getOrderingMode Supported. Always returns the same constant value, XQConstants.
ORDERING_MODE_ORDERED. int getQueryLanguageTypeAndVersion( ) Supported. Always returns the same constant value, XQConstants.LANGTYPE_XQUERY int getQueryTimeout( ) Supported. Always returns 0, which means there is no timeout. int getScrollability( ) Supported. Always returns the same constant value, XQConstants.
SCROLLTYPE_FORWARD_ONLY. void setBaseURI(String baseUri) Supported. void setBindingMode( ) Supported. See Support of Deferred Binding. void setBoundarySpacePolicy(int policy) Supported. void setConstructionMode(int mode) Supported. mode must be set to XQConstants.CONSTRUCTION_MODE_
PRESERVE. void setContextItemStaticType(XQItemType contextItemType) Supported. void setCopyNamespacesModeInherit(int mode) Supported. mode must be set to XQConstants.COPY_NAMESPACES_
MODE_INHERIT. void setCopyNamespacesModePreserve(int mode) Supported. Must be set to XQConstants.COPY_NAMESPACES_
MODE_PRESERVE. void setDefaultCollation(String uri) Supported. void setDefaultElementTypeNamespace(String uri) Supported. void setDefaultFunctionNamespace(String uri) Supported. void setDefaultOrderForEmptySequences(int order) Supported. void setHoldability(int holdability) Supported. holdability must be
CURSORS_OVER_COMMIT. void setOrderingMode(int mode) Supported. void setQueryLanguageAndVersion(int langType) Supported. langType must be set to XQConstants.LANGTYPE_XQUERY. void setQueryTimeout(int seconds) Supported. void setScrollability(int scrollability) Supported. scrollability must be set to XQConstants.SCROLLTYPE_FORWARD
_ONLY