Package javax.xml.xquery
Class XQConstants
java.lang.Object
javax.xml.xquery.XQConstants
XQConstants
class provides constants that can be
used in the XQJ API.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The constant indicating the binding mode deferred, refer toXQDynamicContext
for more information.static final int
The constant indicating the binding mode immediate, refer toXQDynamicContext
for more information.static final int
The constant indicating the the boundary-space policy for expression evaluation is to preserve white spacesstatic final int
The constant indicating the the boundary-space policy for expression evaluation is to strip white spacesstatic final int
The constant indicating that the type of a constructed element node isxs:anyType
, and all attribute and element nodes copied during node construction retain their original types.static final int
The constant indicating that the type of a constructed element node isxs:untyped
; all element nodes copied during node construction receive the typexs:untyped
, and all attribute nodes copied during node construction receive the typexs:untypedAtomic
.static final QName
Defines theQName
for the context item.static final int
The constant indicating that the inherit mode should be used in namespace binding assignement when an existing element node is copied by an element constructor, as described in 3.7.1 Direct Element Constructors, XQuery 1.0: An XML Query Languagestatic final int
The constant indicating that the no-inherit mode should be used in namespace binding assignement when an existing element node is copied by an element constructor, as described in 3.7.1 Direct Element Constructors, XQuery 1.0: An XML Query Languagestatic final int
The constant indicating that the no-preserve mode should be used in namespace binding assignement when an existing element node is copied by an element constructor, as described in 3.7.1 Direct Element Constructors, XQuery 1.0: An XML Query Languagestatic final int
The constant indicating that the preserve mode should be used in namespace binding assignement when an existing element node is copied by an element constructor, as described in 3.7.1 Direct Element Constructors, XQuery 1.0: An XML Query Languagestatic final int
The constant indicating that ordering of empty sequences and NaN values as keys in an order by clause in a FLWOR expression is "greatest".static final int
The constant indicating that ordering of empty sequences and NaN values as keys in an order by clause in a FLWOR expression is "least".static final int
The constant indicating that the result sequences must be closed when the commit on the connection is called.static final int
The constant indicating that the result sequences must be preserved when the commit on the connection is called.static final int
The constant indicating that the expression language used inXQConnection.prepareExpression
andXQExpression.execute
is XQuery (any version).static final int
The constant indicating that the expression language used inXQConnection.prepareExpression
andXQExpression.execute
is XQueryX.static final int
The constant indicating that ordered results are to be returned by certain path expressions, union, intersect, and except expressions, and FLWOR expressions that have no order by clause.static final int
The constant indicating that unordered results are to be returned by certain path expressions, union, intersect, and except expressions, and FLWOR expressions that have no order by clause.static final int
The constant indicating that the result sequence can only be scrolled forward.static final int
The constant indicating that the result sequence can be scrolled forward or backward and is insensitive to any updates done on the underlying objects -
Method Summary
-
Field Details
-
HOLDTYPE_CLOSE_CURSORS_AT_COMMIT
public static final int HOLDTYPE_CLOSE_CURSORS_AT_COMMITThe constant indicating that the result sequences must be closed when the commit on the connection is called.- See Also:
-
HOLDTYPE_HOLD_CURSORS_OVER_COMMIT
public static final int HOLDTYPE_HOLD_CURSORS_OVER_COMMITThe constant indicating that the result sequences must be preserved when the commit on the connection is called.- See Also:
-
SCROLLTYPE_FORWARD_ONLY
public static final int SCROLLTYPE_FORWARD_ONLYThe constant indicating that the result sequence can only be scrolled forward.- See Also:
-
SCROLLTYPE_SCROLLABLE
public static final int SCROLLTYPE_SCROLLABLEThe constant indicating that the result sequence can be scrolled forward or backward and is insensitive to any updates done on the underlying objects- See Also:
-
LANGTYPE_XQUERY
public static final int LANGTYPE_XQUERYThe constant indicating that the expression language used inXQConnection.prepareExpression
andXQExpression.execute
is XQuery (any version).- See Also:
-
LANGTYPE_XQUERYX
public static final int LANGTYPE_XQUERYXThe constant indicating that the expression language used inXQConnection.prepareExpression
andXQExpression.execute
is XQueryX.- See Also:
-
BOUNDARY_SPACE_PRESERVE
public static final int BOUNDARY_SPACE_PRESERVEThe constant indicating the the boundary-space policy for expression evaluation is to preserve white spaces- See Also:
-
BOUNDARY_SPACE_STRIP
public static final int BOUNDARY_SPACE_STRIPThe constant indicating the the boundary-space policy for expression evaluation is to strip white spaces- See Also:
-
CONSTRUCTION_MODE_PRESERVE
public static final int CONSTRUCTION_MODE_PRESERVEThe constant indicating that the type of a constructed element node isxs:anyType
, and all attribute and element nodes copied during node construction retain their original types.- See Also:
-
CONSTRUCTION_MODE_STRIP
public static final int CONSTRUCTION_MODE_STRIPThe constant indicating that the type of a constructed element node isxs:untyped
; all element nodes copied during node construction receive the typexs:untyped
, and all attribute nodes copied during node construction receive the typexs:untypedAtomic
.- See Also:
-
ORDERING_MODE_ORDERED
public static final int ORDERING_MODE_ORDEREDThe constant indicating that ordered results are to be returned by certain path expressions, union, intersect, and except expressions, and FLWOR expressions that have no order by clause.- See Also:
-
ORDERING_MODE_UNORDERED
public static final int ORDERING_MODE_UNORDEREDThe constant indicating that unordered results are to be returned by certain path expressions, union, intersect, and except expressions, and FLWOR expressions that have no order by clause.- See Also:
-
DEFAULT_ORDER_FOR_EMPTY_SEQUENCES_GREATEST
public static final int DEFAULT_ORDER_FOR_EMPTY_SEQUENCES_GREATESTThe constant indicating that ordering of empty sequences and NaN values as keys in an order by clause in a FLWOR expression is "greatest". See 3.8.3 Order By and Return Clauses, XQuery 1.0: An XML Query Language for details.- See Also:
-
DEFAULT_ORDER_FOR_EMPTY_SEQUENCES_LEAST
public static final int DEFAULT_ORDER_FOR_EMPTY_SEQUENCES_LEASTThe constant indicating that ordering of empty sequences and NaN values as keys in an order by clause in a FLWOR expression is "least". See 3.8.3 Order By and Return Clauses, XQuery 1.0: An XML Query Language for details.- See Also:
-
COPY_NAMESPACES_MODE_PRESERVE
public static final int COPY_NAMESPACES_MODE_PRESERVEThe constant indicating that the preserve mode should be used in namespace binding assignement when an existing element node is copied by an element constructor, as described in 3.7.1 Direct Element Constructors, XQuery 1.0: An XML Query Language- See Also:
-
COPY_NAMESPACES_MODE_NO_PRESERVE
public static final int COPY_NAMESPACES_MODE_NO_PRESERVEThe constant indicating that the no-preserve mode should be used in namespace binding assignement when an existing element node is copied by an element constructor, as described in 3.7.1 Direct Element Constructors, XQuery 1.0: An XML Query Language- See Also:
-
COPY_NAMESPACES_MODE_INHERIT
public static final int COPY_NAMESPACES_MODE_INHERITThe constant indicating that the inherit mode should be used in namespace binding assignement when an existing element node is copied by an element constructor, as described in 3.7.1 Direct Element Constructors, XQuery 1.0: An XML Query Language- See Also:
-
COPY_NAMESPACES_MODE_NO_INHERIT
public static final int COPY_NAMESPACES_MODE_NO_INHERITThe constant indicating that the no-inherit mode should be used in namespace binding assignement when an existing element node is copied by an element constructor, as described in 3.7.1 Direct Element Constructors, XQuery 1.0: An XML Query Language- See Also:
-
CONTEXT_ITEM
Defines theQName
for the context item. This is used to bind values to the context item via the bind methods ofXQDynamicContext
. -
BINDING_MODE_IMMEDIATE
public static final int BINDING_MODE_IMMEDIATEThe constant indicating the binding mode immediate, refer toXQDynamicContext
for more information.- See Also:
-
BINDING_MODE_DEFERRED
public static final int BINDING_MODE_DEFERREDThe constant indicating the binding mode deferred, refer toXQDynamicContext
for more information.- See Also:
-