Package javax.jcr.query.qom
Interface Ordering
- 
- All Known Implementing Classes:
 OrderingImpl
public interface OrderingDetermines the relative order of two node-tuples by evaluatingoperandfor each.For a first node-tuple,
nt1, for whichoperandevaluates tov1, and a second node-tuple,nt2, for whichoperandevaluates tov2:- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicOperandgetOperand()The operand by which to order.java.lang.StringgetOrder()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. 
 - 
 
 -