| Modifier and Type | Method and Description |
|---|---|
OrderByField |
asc()
Creates a new
OrderByField from a the current one using ascending sorting. |
OrderByField |
desc()
Creates a new
OrderByField from a the current one using descending sorting. |
boolean |
equals(Object obj)
|
static OrderByField |
from(Column column)
Creates a new
OrderByField from a Column applying default ordering. |
static OrderByField |
from(Column column,
Sort.Direction direction)
Creates a new
OrderByField from a Column applying a given ordering. |
Sort.Direction |
getDirection() |
Expression |
getExpression() |
Sort.NullHandling |
getNullHandling() |
int |
hashCode()
Generate a hash code from this
Segment. |
String |
toString()
Return a SQL string representation of this
Segment. |
void |
visit(Visitor visitor)
|
OrderByField |
withNullHandling(Sort.NullHandling nullHandling)
Creates a new
OrderByField with Sort.NullHandling applied. |
public static OrderByField from(Column column)
OrderByField from a Column applying default ordering.column - must not be null.OrderByField.public static OrderByField from(Column column, Sort.Direction direction)
OrderByField from a Column applying a given ordering.column - must not be null.direction - order directionOrderByField.public OrderByField asc()
OrderByField from a the current one using ascending sorting.OrderByField with ascending sorting.desc()public OrderByField desc()
OrderByField from a the current one using descending sorting.OrderByField with descending sorting.asc()public OrderByField withNullHandling(Sort.NullHandling nullHandling)
OrderByField with Sort.NullHandling applied.nullHandling - must not be null.OrderByField with Sort.NullHandling applied.public Expression getExpression()
@Nullable public Sort.Direction getDirection()
public Sort.NullHandling getNullHandling()
public String toString()
SegmentSegment.
The representation is intended for debugging purposes and an approximation to the generated SQL. While it might
work in the context of a specific dialect, you should not that the Segment.toString() representation works across
multiple databases.public int hashCode()
SegmentSegment.
Hashcode typically derives from the Segment.toString() representation so two Segments yield the same
Segment.hashCode() if their Segment.toString() representation matches.public boolean equals(Object obj)
SegmentSegment is equal to another Segment.
Equality is typically given if the Segment.toString() representation matches.Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.