org.castor.cpa.query.object
Class OrderImpl.Item

java.lang.Object
  extended by org.castor.cpa.query.object.OrderImpl.Item
Enclosing class:
OrderImpl

public static final class OrderImpl.Item
extends java.lang.Object

Inner class for order items to handel field and its order direction together.


Constructor Summary
OrderImpl.Item(Field field)
          Construct order item with given field and ascending order.
OrderImpl.Item(Field field, OrderDirection direction)
          Construct order item with given field and direction.
 
Method Summary
 OrderDirection getDirection()
          Gets the order direction.
 Field getField()
          Gets the field to order by.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderImpl.Item

public OrderImpl.Item(Field field)
Construct order item with given field and ascending order.

Parameters:
field - The field to order by.

OrderImpl.Item

public OrderImpl.Item(Field field,
                      OrderDirection direction)
Construct order item with given field and direction.

Parameters:
field - The field to order by.
direction - The order direction.
Method Detail

getField

public Field getField()
Gets the field to order by.

Returns:
The field to order by.

getDirection

public OrderDirection getDirection()
Gets the order direction.

Returns:
The order direction.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com