Package org.hibernate.query.criteria
Interface JpaSearchOrder
-
- All Superinterfaces:
JpaCriteriaNode,Serializable
- All Known Implementing Classes:
SqmSearchClauseSpecification
@Incubating public interface JpaSearchOrder extends JpaCriteriaNode
Represents the search order for a recursive CTE (common table expression).- See Also:
JpaCteCriteria
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JpaCteCriteriaAttributegetAttribute()Return the CTE attribute that is used for ordering.NullPrecedencegetNullPrecedence()The precedence for nulls for this search order elementSortOrdergetSortOrder()booleanisAscending()Whether ascending ordering is in effect.JpaSearchOrdernullPrecedence(NullPrecedence precedence)Set the precedence for nulls for this search order elementJpaSearchOrderreverse()Switch the ordering.
-
-
-
Method Detail
-
getSortOrder
SortOrder getSortOrder()
-
nullPrecedence
JpaSearchOrder nullPrecedence(NullPrecedence precedence)
Set the precedence for nulls for this search order element
-
getNullPrecedence
NullPrecedence getNullPrecedence()
The precedence for nulls for this search order element
-
isAscending
boolean isAscending()
Whether ascending ordering is in effect.- Returns:
- boolean indicating whether ordering is ascending
-
reverse
JpaSearchOrder reverse()
Switch the ordering.- Returns:
- a new
Orderinstance with the reversed ordering
-
getAttribute
JpaCteCriteriaAttribute getAttribute()
Return the CTE attribute that is used for ordering.- Returns:
- CTE attribute used for ordering
-
-