Package org.castor.cpa.query.object
Class OrderImpl.Item
- java.lang.Object
-
- 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
Constructors Constructor Description Item(Field field)
Construct order item with given field and ascending order.Item(Field field, OrderDirection direction)
Construct order item with given field and direction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderDirection
getDirection()
Gets the order direction.Field
getField()
Gets the field to order by.
-
-
-
Constructor Detail
-
Item
public Item(Field field)
Construct order item with given field and ascending order.- Parameters:
field
- The field to order by.
-
Item
public 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.
-
-