Interface JpaSearchOrder
- All Superinterfaces:
JpaCriteriaNode, Serializable
- All Known Implementing Classes:
SqmSearchClauseSpecification
Represents the search order for a recursive CTE (common table expression).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn the CTE attribute that is used for ordering.The precedence for nulls for this search order elementReturn the sort direction.booleanWhether ascending ordering is in effect.nullPrecedence(Nulls precedence) Set the precedence of nulls for this search order elementreverse()Switch the ordering.
-
Method Details
-
getSortOrder
Return the sort direction. -
nullPrecedence
Set the precedence of nulls for this search order element -
getNullPrecedence
-
isAscending
boolean isAscending()Whether ascending ordering is in effect.- Returns:
- boolean indicating whether ordering is ascending
-
reverse
Switch the ordering.- Returns:
- a new
Orderinstance with the reversed ordering
-
getAttribute
Return the CTE attribute that is used for ordering.- Returns:
- CTE attribute used for ordering
-