Package javax.jcr.query.qom
Interface Ordering
- All Known Implementing Classes:
OrderingImpl
public interface Ordering
Determines the relative order of two node-tuples by evaluating
operand for each.
For a first node-tuple, nt1, for which operand evaluates to v1, and a second node-tuple,
nt2, for which operand evaluates to
v2:
- If
orderisAscending, then:- if either
v1is null,v2is null, or bothv1andv2are null, the relative order ofnt1andnt2is implementation determined, otherwise - if
v1is a different property type thanv2, the relative order ofnt1andnt2is implementation determined, otherwise - if
v1is ordered beforev2, thennt1precedesnt2, otherwise - if
v1is ordered afterv2, thennt2precedesnt1, otherwise - the relative order of
nt1andnt2is implementation determined and may be arbitrary.
- if either
- Otherwise, if
orderisDescending, then:- if either
v1is null,v2is null, or bothv1andv2are null, the relative order ofnt1andnt2is implementation determined, otherwise - if
v1is a different property type thanv2, the relative order ofnt1andnt2is implementation determined, otherwise - if
v1is ordered beforev2, thennt2precedesnt1, otherwise - if
v1is ordered afterv2, thennt1precedesnt2, otherwise - the relative order of
nt1andnt2is implementation determined and may be arbitrary.
- if either
- Since:
- JCR 2.0
-
Method Summary
-
Method Details
-
getOperand
DynamicOperand getOperand()The operand by which to order.- Returns:
- the operand; non-null
-
getOrder
String getOrder()Gets the order.
-