public interface Order
| Modifier and Type | Method and Description |
|---|---|
Direction |
getDirection()
Returns the order the property shall be sorted for.
|
NullHandling |
getNullHandling()
Returns the used
NullHandling hint, which can but may not be respected by the used datastore. |
String |
getProperty()
Returns the property to order for.
|
Order |
ignoreCase()
Returns a new
Order with case insensitive sorting enabled. |
boolean |
isAscending()
Returns whether sorting for this property shall be ascending.
|
boolean |
isDescending()
Returns whether sorting for this property shall be descending.
|
boolean |
isIgnoreCase()
Returns whether or not the sort will be case sensitive.
|
Order |
nullsFirst()
Returns a
Order with NullHandling.NULLS_FIRST as null handling hint. |
Order |
nullsLast()
Returns a
Order with NullHandling.NULLS_LAST as null handling hint. |
Order |
nullsNative()
Returns a
Order with NullHandling.NATIVE as null handling hint. |
Order |
with(Direction direction)
|
Order |
with(NullHandling nullHandling)
Returns a
Order with the given NullHandling. |
Sorting |
withProperties(String... properties)
Returns a new
Sorting instance for the given properties. |
Order |
withProperty(String property)
Returns a new
Order |
Direction getDirection()
NullHandling getNullHandling()
NullHandling hint, which can but may not be respected by the used datastore.String getProperty()
Order ignoreCase()
Order with case insensitive sorting enabled.boolean isAscending()
boolean isDescending()
boolean isIgnoreCase()
Order nullsFirst()
Order with NullHandling.NULLS_FIRST as null handling hint.Order nullsLast()
Order with NullHandling.NULLS_LAST as null handling hint.Order nullsNative()
Order with NullHandling.NATIVE as null handling hint.Order with(Direction direction)
direction - given directionOrder with(NullHandling nullHandling)
Order with the given NullHandling.nullHandling - can be null.Sorting withProperties(String... properties)
Sorting instance for the given properties.properties - given propertiesCopyright © 2018. All rights reserved.