Package org.castor.cpa.query.object
Class OrderImpl.Item
java.lang.Object
org.castor.cpa.query.object.OrderImpl.Item
- Enclosing class:
OrderImpl
Inner class for order items to handel field and its order direction together.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct order item with given field and ascending order.Item
(Field field, OrderDirection direction) Construct order item with given field and direction. -
Method Summary
Modifier and TypeMethodDescriptionGets the order direction.getField()
Gets the field to order by.
-
Constructor Details
-
Item
Construct order item with given field and ascending order.- Parameters:
field
- The field to order by.
-
Item
Construct order item with given field and direction.- Parameters:
field
- The field to order by.direction
- The order direction.
-
-
Method Details
-
getField
Gets the field to order by.- Returns:
- The field to order by.
-
getDirection
Gets the order direction.- Returns:
- The order direction.
-