public class SortOrders
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SortOrders.SortImpl
Create a sort order by the given expression with the given sort direction and null ordering.
|
| Constructor and Description |
|---|
SortOrders() |
| Modifier and Type | Method and Description |
|---|---|
static SortOrders.SortImpl |
ascending(Expression expression)
Create a sort order by the given expression with the ascending sort direction and nulls first
ordering.
|
static SortOrders.SortImpl |
descending(Expression expression)
Create a sort order by the given expression with the descending sort direction and nulls last
ordering.
|
static SortOrders.SortImpl |
of(Expression expression,
SortDirection direction)
Create a sort order by the given expression with the given sort direction and default null
ordering.
|
static SortOrders.SortImpl |
of(Expression expression,
SortDirection direction,
NullOrdering nullOrdering)
Create a sort order by the given expression with the given sort direction and null ordering.
|
public static SortOrders.SortImpl ascending(Expression expression)
expression - The expression to sort bypublic static SortOrders.SortImpl descending(Expression expression)
expression - The expression to sort bypublic static SortOrders.SortImpl of(Expression expression, SortDirection direction)
expression - The expression to sort bydirection - The sort directionpublic static SortOrders.SortImpl of(Expression expression, SortDirection direction, NullOrdering nullOrdering)
expression - The expression to sort bydirection - The sort directionnullOrdering - The null ordering