Package io.jmix.core
Class Sort
java.lang.Object
io.jmix.core.Sort
- All Implemented Interfaces:
Serializable
Defines sorting of queries.
Based on the Sort
class from Spring Data project.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Sort direction.static class
Sort order defines a property and correspondingSort.Direction
. -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Sort
(Sort.Direction direction, List<String> properties) protected
Sort
(List<Sort.Order> orders) -
Method Summary
Modifier and TypeMethodDescriptionstatic Sort
by
(Sort.Direction direction, String... properties) Creates newSort
for the given properties with the given direction.static Sort
by
(Sort.Order... orders) Creates newSort
for the given orders.static Sort
Creates newSort
for the given properties with ASC direction.static Sort
by
(List<Sort.Order> orders) Creates newSort
for the given list of orders.Returns unmodifiable list of orders.toString()
-
Field Details
-
UNSORTED
Undefined sort order.
-
-
Constructor Details
-
Sort
-
Sort
-
-
Method Details
-
by
Creates newSort
for the given list of orders. -
by
Creates newSort
for the given orders. -
by
Creates newSort
for the given properties with ASC direction. -
by
Creates newSort
for the given properties with the given direction. -
getOrders
Returns unmodifiable list of orders. -
toString
-