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

Packages that use Ordering
Package
Description
org.apache.cayenne.access.translator.select
org.apache.cayenne.exp.property
Property API
org.apache.cayenne.map
Contains O/R mapping classes that store relational database metadata information and map it to Java classes.
org.apache.cayenne.query
Defines standard queries supported by Cayenne and extension mechanism to create custom queries.

- ## Uses of Ordering in org.apache.cayenne.access.translator.select

  Methods in org.apache.cayenne.access.translator.select that return types with arguments of type Ordering
  Modifier and Type
  Method
  Description
  `Collection<Ordering>`
  FluentSelectWrapper.`getOrderings()`
  `Collection<Ordering>`
  TranslatableQueryWrapper.`getOrderings()`

- ## Uses of Ordering in org.apache.cayenne.exp.property

  Methods in org.apache.cayenne.exp.property that return Ordering
  Modifier and Type
  Method
  Description
  `Ordering`
  BaseProperty.`asc()`
  `Ordering`
  BaseProperty.`ascInsensitive()`
  `Ordering`
  BaseProperty.`desc()`
  `Ordering`
  BaseProperty.`descInsensitive()`

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

  Fields in org.apache.cayenne.map with type parameters of type Ordering
  Modifier and Type
  Field
  Description
  `protected List<Ordering>`
  QueryDescriptorLoader.`orderings`
  `protected List<Ordering>`
  SelectQueryDescriptor.`orderings`
  Methods in org.apache.cayenne.map that return types with arguments of type Ordering
  Modifier and Type
  Method
  Description
  `List<Ordering>`
  SelectQueryDescriptor.`getOrderings()`
  Returns list of orderings for this query.
  Methods in org.apache.cayenne.map with parameters of type Ordering
  Modifier and Type
  Method
  Description
  `void`
  SelectQueryDescriptor.`addOrdering(Ordering ordering)`
  Adds single ordering for this query.
  `void`
  SelectQueryDescriptor.`removeOrdering(Ordering ordering)`
  Removes single ordering from this query.
  Method parameters in org.apache.cayenne.map with type arguments of type Ordering
  Modifier and Type
  Method
  Description
  `void`
  SelectQueryDescriptor.`setOrderings(List<Ordering> orderings)`
  Sets list of orderings for this query.

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

  Subclasses with type arguments of type Ordering in org.apache.cayenne.query
  Modifier and Type
  Class
  Description
  `class`
  `Orderings`
  Orderings is provided so that you can chain Ordering together and then use the result to pass into methods that require List<Ordering>
  Fields in org.apache.cayenne.query with type parameters of type Ordering
  Modifier and Type
  Field
  Description
  `protected Collection<Ordering>`
  FluentSelect.`orderings`
  Methods in org.apache.cayenne.query that return types with arguments of type Ordering
  Modifier and Type
  Method
  Description
  `Collection<Ordering>`
  FluentSelect.`getOrderings()`
  Methods in org.apache.cayenne.query with parameters of type Ordering
  Modifier and Type
  Method
  Description
  `S`
  FluentSelect.`orderBy(Ordering... orderings)`
  Add one or more orderings to this query.
  `Orderings`
  Ordering.`then(Ordering nextOrdering)`
  Returns Orderings with this Ordering followed by the provided next Ordering.
  `Orderings`
  Orderings.`then(Ordering nextOrdering)`
  Adds the given sort ordering to the end of this list and returns "this" so it can be chained again.
  Method parameters in org.apache.cayenne.query with type arguments of type Ordering
  Modifier and Type
  Method
  Description
  `S`
  FluentSelect.`orderBy(Collection<Ordering> orderings)`
  Adds a list of orderings to this query.
  `static <E> List<E>`
  Ordering.`orderedList(Collection<E> objects, List<? extends Ordering> orderings)`
  Orders a given list of objects, using a List of Orderings applied according the default iteration order of the Orderings list.
  `static <T> ObjectSelect<T>`
  ObjectSelect.`query(Class<T> entityType, Expression expression, List<Ordering> orderings)`
  Creates a ObjectSelect that selects objects of a given persistent class and uses provided expression for its qualifier.
  `Orderings`
  Ordering.`then(List<Ordering> nextOrderings)`
  `Orderings`
  Orderings.`then(List<Ordering> nextOrderings)`
  Constructors in org.apache.cayenne.query with parameters of type Ordering
  Modifier
  Constructor
  Description
  ``
  `Orderings(Ordering ordering)`
  ``
  `Orderings(Ordering... orderings)`
  Constructor parameters in org.apache.cayenne.query with type arguments of type Ordering
  Modifier
  Constructor
  Description
  ``
  `Orderings(Collection<? extends Ordering> c)`