org.apache.olingo.odata2.api.uri.expression

## Interface OrderByExpression

- All Superinterfaces:
    CommonExpression, Visitable

      public interface OrderByExpression
      extends CommonExpression

  Represents a $orderby expression Used to define the root expression node in an $filter expression tree.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getExpressionString()`
    `List<OrderExpression>` | `getOrders()`
    `int` | `getOrdersCount()`

    - ### Methods inherited from interface org.apache.olingo.odata2.api.uri.expression.CommonExpression

      `getEdmType, getKind, getUriLiteral, setEdmType`

    - ### Methods inherited from interface org.apache.olingo.odata2.api.uri.expression.Visitable

      `accept`

- - ### Method Detail

    - #### getExpressionString

          String getExpressionString()

      Returns:
        Returns the $filter expression string used to build the expression tree

    - #### getOrders

          List<OrderExpression> getOrders()

      Returns:
        Returns a ordered list of order expressions contained in the $orderby expression string

        For example: The orderby expression build from "$orderby=name asc, age desc" would contain to order expression.

    - #### getOrdersCount

          int getOrdersCount()

      Returns:
        Returns the count of order expressions contained in the $orderby expression string

Copyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.