Class OrderImpl.Item

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

public static final class OrderImpl.Item extends Object
Inner class for order items to handel field and its order direction together.
  • Constructor Details

    • 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 Details

    • 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.