## Uses of Interface
javax.persistence.criteria.Order

- Packages that use Order
  Package | Description
  --- | ---
  javax.persistence.criteria | Java Persistence Criteria API

- - ### Uses of Order in javax.persistence.criteria

    Methods in javax.persistence.criteria that return Order
    Modifier and Type | Method and Description
    --- | ---
    `Order` | CriteriaBuilder.`asc(Expression<?> x)` Create an ordering by the ascending value of the expression.
    `Order` | CriteriaBuilder.`desc(Expression<?> x)` Create an ordering by the descending value of the expression.
    `Order` | Order.`reverse()` Switch the ordering.

    Methods in javax.persistence.criteria that return types with arguments of type Order
    Modifier and Type | Method and Description
    --- | ---
    `List<Order>` | CriteriaQuery.`getOrderList()` Return the ordering expressions in order of precedence.

    Methods in javax.persistence.criteria with parameters of type Order
    Modifier and Type | Method and Description
    --- | ---
    `CriteriaQuery<T>` | CriteriaQuery.`orderBy(Order... o)` Specify the ordering expressions that are used to order the query results.

    Method parameters in javax.persistence.criteria with type arguments of type Order
    Modifier and Type | Method and Description
    --- | ---
    `CriteriaQuery<T>` | CriteriaQuery.`orderBy(List<Order> o)` Specify the ordering expressions that are used to order the query results.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.