Class OrderExpression
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.expression.OrderExpression
A class representing order expressions over fields, maintaining an order over them.
-
Method Summary
Modifier and TypeMethodDescriptionTo maintain a Map of OrderExpressions with field name and order.static OrderExpression
To create OrderExpression with a field and ordering.To translate OrderExpression to query string.
-
Method Details
-
of
To create OrderExpression with a field and ordering.- Parameters:
fieldName
- The field name to create an order expression for.order
- The order direction.- Returns:
- The order expression.
-
toOrderByString
To translate OrderExpression to query string.- Returns:
- The part of the query string dedicated to ordering.
-
and
To maintain a Map of OrderExpressions with field name and order.- Parameters:
fieldName
- The field name to create an order expression for.order
- The order direction.- Returns:
- The concatenated order expression (conjunction).
-