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 |
---|---|
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, wait
references
public static final SortOrderDTO[] EMPTY_SORT
public FunctionArg sortTerm()
public Expression expression()
expression
in interface SortOrder
public SortDirection direction()
public NullOrdering nullOrdering()
nullOrdering
in interface SortOrder
public 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.