Interface Order


public interface Order
An object that defines an ordering over the query results.
Since:
2.0
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Return the expression that is used for ordering.
    Return the precedence of null values.
    boolean
    Whether ascending ordering is in effect.
    Switch the ordering.
  • Method Details Link icon

    • reverse Link icon

      Order reverse()
      Switch the ordering.
      Returns:
      a new Order instance with the reversed ordering
    • isAscending Link icon

      boolean isAscending()
      Whether ascending ordering is in effect.
      Returns:
      boolean indicating whether ordering is ascending
    • getNullPrecedence Link icon

      Nulls getNullPrecedence()
      Return the precedence of null values.
      Returns:
      the precedence of null values
      Since:
      3.2
    • getExpression Link icon

      Expression<?> getExpression()
      Return the expression that is used for ordering.
      Returns:
      expression used for ordering