## Uses of Class
org.apache.cayenne.query.Ordering

- Packages that use Ordering
  Package | Description
  --- | ---
  org.apache.cayenne.query | Defines standard queries supported by Cayenne and extension mechanism to create custom queries.

- - ### Uses of Ordering in org.apache.cayenne.query

    Fields in org.apache.cayenne.query with type parameters of type Ordering
    Modifier and Type | Field and Description
    --- | ---
    `protected List<Ordering>` | SelectQuery.`orderings`

    Methods in org.apache.cayenne.query that return types with arguments of type Ordering
    Modifier and Type | Method and Description
    --- | ---
    `List<Ordering>` | SelectQuery.`getOrderings()` Returns a list of orderings used by this query.

    Methods in org.apache.cayenne.query with parameters of type Ordering
    Modifier and Type | Method and Description
    --- | ---
    `void` | SelectQuery.`addOrdering(Ordering ordering)` Adds ordering specification to this query orderings.
    `void` | SelectQuery.`removeOrdering(Ordering ordering)` Removes ordering.

    Method parameters in org.apache.cayenne.query with type arguments of type Ordering
    Modifier and Type | Method and Description
    --- | ---
    `void` | SelectQuery.`addOrderings(List<Ordering> orderings)` Adds a list of orderings.
    `static void` | Ordering.`orderList(List<?> objects, List<Ordering> orderings)` Orders a given list of objects, using a List of Orderings applied according the default iteration order of the Orderings list.

    Constructor parameters in org.apache.cayenne.query with type arguments of type Ordering
    Constructor and Description
    `SelectQuery(Class<?> rootClass, Expression qualifier, List<Ordering> orderings)` Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.
    `SelectQuery(DbEntity root, Expression qualifier, List<Ordering> orderings)` Creates a SelectQuery for the specified DbEntity with the given qualifier and orderings.
    `SelectQuery(ObjEntity root, Expression qualifier, List<Ordering> orderings)` Creates a SelectQuery for the specified ObjEntity with the given qualifier and orderings.
    `SelectQuery(String objEntityName, Expression qualifier, List<Ordering> orderings)` Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.

Copyright © 2001–2017 Apache Cayenne. All rights reserved.