Package javax.jcr.query.qom
Interface Ordering
-
- All Known Implementing Classes:
OrderingImpl
public interface Ordering
Determines the relative order of two node-tuples by evaluatingoperand
for each.For a first node-tuple,
nt1
, for whichoperand
evaluates tov1
, and a second node-tuple,nt2
, for whichoperand
evaluates tov2
:- If
order
isAscending
, then:- if either
v1
is null,v2
is null, or bothv1
andv2
are null, the relative order ofnt1
andnt2
is implementation determined, otherwise - if
v1
is a different property type thanv2
, the relative order ofnt1
andnt2
is implementation determined, otherwise - if
v1
is ordered beforev2
, thennt1
precedesnt2
, otherwise - if
v1
is ordered afterv2
, thennt2
precedesnt1
, otherwise - the relative order of
nt1
andnt2
is implementation determined and may be arbitrary.
- if either
- Otherwise, if
order
isDescending
, then:- if either
v1
is null,v2
is null, or bothv1
andv2
are null, the relative order ofnt1
andnt2
is implementation determined, otherwise - if
v1
is a different property type thanv2
, the relative order ofnt1
andnt2
is implementation determined, otherwise - if
v1
is ordered beforev2
, thennt2
precedesnt1
, otherwise - if
v1
is ordered afterv2
, thennt1
precedesnt2
, otherwise - the relative order of
nt1
andnt2
is implementation determined and may be arbitrary.
- if either
- Since:
- JCR 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicOperand
getOperand()
The operand by which to order.java.lang.String
getOrder()
Gets the order.
-
-
-
Method Detail
-
getOperand
DynamicOperand getOperand()
The operand by which to order.- Returns:
- the operand; non-null
-
getOrder
java.lang.String getOrder()
Gets the order.
-
-