Class SqmSortSpecification
java.lang.Object
org.hibernate.query.sqm.tree.select.SqmSortSpecification
- All Implemented Interfaces:
Order
,Serializable
,JpaCriteriaNode
,JpaOrder
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSqmSortSpecification
(SqmExpression sortExpression) SqmSortSpecification
(SqmExpression<?> sortExpression, SortDirection sortOrder, Nulls nullPrecedence, boolean ignoreCase) SqmSortSpecification
(SqmExpression sortExpression, SortDirection sortOrder) SqmSortSpecification
(SqmExpression sortExpression, SortDirection sortOrder, Nulls nullPrecedence) SqmSortSpecification
(SqmExpression sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendHqlString
(StringBuilder sb, SqmRenderContext context) copy
(SqmCopyContext context) boolean
The expression to sort byThe precedence for nulls for this order elementThe direction, ascending or descending, in which to sortint
hashCode()
boolean
boolean
nullPrecedence
(Nulls nullPrecedence) Set the precedence of nulls for this order elementreverse()
Reverse the sorting direction
-
Constructor Details
-
SqmSortSpecification
public SqmSortSpecification(SqmExpression sortExpression, SortDirection sortOrder, Nulls nullPrecedence) -
SqmSortSpecification
public SqmSortSpecification(SqmExpression<?> sortExpression, SortDirection sortOrder, Nulls nullPrecedence, boolean ignoreCase) -
SqmSortSpecification
@Deprecated(since="7", forRemoval=true) public SqmSortSpecification(SqmExpression sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence) Deprecated, for removal: This API element is subject to removal in a future version. -
SqmSortSpecification
-
SqmSortSpecification
-
-
Method Details
-
copy
-
getSortExpression
-
getSortDirection
Description copied from interface:JpaOrder
The direction, ascending or descending, in which to sort- Specified by:
getSortDirection
in interfaceJpaOrder
-
isIgnoreCase
public boolean isIgnoreCase() -
nullPrecedence
Description copied from interface:JpaOrder
Set the precedence of nulls for this order element- Specified by:
nullPrecedence
in interfaceJpaOrder
-
getNullPrecedence
Description copied from interface:JpaOrder
The precedence for nulls for this order element- Specified by:
getNullPrecedence
in interfaceJpaOrder
- Specified by:
getNullPrecedence
in interfaceOrder
-
reverse
Description copied from interface:JpaOrder
Reverse the sorting direction -
getExpression
Description copied from interface:JpaOrder
The expression to sort by- Specified by:
getExpression
in interfaceJpaOrder
- Specified by:
getExpression
in interfaceOrder
-
isAscending
public boolean isAscending()- Specified by:
isAscending
in interfaceOrder
-
appendHqlString
-
equals
-
hashCode
public int hashCode()
-
SqmSortSpecification(SqmExpression, SortDirection, Nulls)
instead