public final class OrderExpression extends Object
Modifier and Type | Method and Description |
---|---|
OrderExpression |
and(String fieldName,
Order order)
To maintain a Map of OrderExpressions with field name and order.
|
static OrderExpression |
of(String fieldName,
Order order)
To create OrderExpression with a field and ordering.
|
String |
toOrderByString()
To translate OrderExpression to query string.
|
@Nonnull public static OrderExpression of(@Nonnull String fieldName, @Nonnull Order order)
fieldName
- The field name to create an order expression for.order
- The order direction.@Nonnull public String toOrderByString()
@Nonnull public OrderExpression and(@Nonnull String fieldName, @Nonnull Order order)
fieldName
- The field name to create an order expression for.order
- The order direction.Copyright © 2021 SAP SE. All rights reserved.