public class SortOrderDTO extends java.lang.Object implements SortOrder
| Modifier and Type | Class and Description |
|---|---|
static class |
SortOrderDTO.Builder
Builder for SortOrderDTO.
|
| Modifier and Type | Field and Description |
|---|---|
static SortOrderDTO[] |
EMPTY_SORT
An empty array of SortOrderDTO.
|
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE| Modifier and Type | Method and Description |
|---|---|
static SortOrderDTO.Builder |
builder() |
SortDirection |
direction() |
Expression |
expression() |
NullOrdering |
nullOrdering() |
FunctionArg |
sortTerm() |
void |
validate(ColumnDTO[] columns)
Validates the sort order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreferencespublic static final SortOrderDTO[] EMPTY_SORT
public FunctionArg sortTerm()
public Expression expression()
expression in interface SortOrderpublic SortDirection direction()
public NullOrdering nullOrdering()
nullOrdering in interface SortOrderpublic void validate(ColumnDTO[] columns) throws java.lang.IllegalArgumentException
columns - The column DTOs to validate against.java.lang.IllegalArgumentException - If the sort order is invalid, this exception is thrown.public static SortOrderDTO.Builder builder()