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
Nested ClassesModifier and TypeClassDescriptionstatic enumSort direction.static classSort order defines a property and correspondingSort.Direction. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSort(Sort.Direction direction, List<String> properties) protectedSort(List<Sort.Order> orders) -
Method Summary
Modifier and TypeMethodDescriptionstatic Sortby(Sort.Direction direction, String... properties) Creates newSortfor the given properties with the given direction.static Sortby(Sort.Order... orders) Creates newSortfor the given orders.static SortCreates newSortfor the given properties with ASC direction.static Sortby(List<Sort.Order> orders) Creates newSortfor 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 newSortfor the given list of orders. -
by
Creates newSortfor the given orders. -
by
Creates newSortfor the given properties with ASC direction. -
by
Creates newSortfor the given properties with the given direction. -
getOrders
Returns unmodifiable list of orders. -
toString
-