org.qi4j.api.query.grammar
Class OrderBy

java.lang.Object
  extended by org.qi4j.api.query.grammar.OrderBy

public class OrderBy
extends java.lang.Object

Query sorting segment.


Nested Class Summary
static class OrderBy.Order
          Order direction.
 
Constructor Summary
OrderBy(PropertyFunction<?> propertyReference, OrderBy.Order order)
          Constructor.
 
Method Summary
 OrderBy.Order order()
          Getter.
 PropertyFunction<?> property()
          Getter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderBy

public OrderBy(PropertyFunction<?> propertyReference,
               OrderBy.Order order)
Constructor.

Parameters:
propertyReference - property that determines the order; cannot be null
order - direction
Throws:
java.lang.IllegalArgumentException - - If property is null
Method Detail

property

public PropertyFunction<?> property()
Getter.

Returns:
property; cannot be null

order

public OrderBy.Order order()
Getter.

Returns:
direction; cannot be null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object