Class SqmSortSpecification
java.lang.Object
org.hibernate.query.sqm.tree.select.SqmSortSpecification
- All Implemented Interfaces:
Order, Serializable, JpaCriteriaNode, JpaOrder, SqmCacheable
- 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 TypeMethodDescriptionvoidappendHqlString(StringBuilder sb, SqmRenderContext context) intcopy(SqmCopyContext context) booleanThe expression to sort byThe precedence for nulls for this order elementThe direction, ascending or descending, in which to sortinthashCode()booleanbooleanisCompatible(Object other) booleannullPrecedence(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:JpaOrderThe direction, ascending or descending, in which to sort- Specified by:
getSortDirectionin interfaceJpaOrder
-
isIgnoreCase
public boolean isIgnoreCase() -
nullPrecedence
Description copied from interface:JpaOrderSet the precedence of nulls for this order element- Specified by:
nullPrecedencein interfaceJpaOrder
-
getNullPrecedence
Description copied from interface:JpaOrderThe precedence for nulls for this order element- Specified by:
getNullPrecedencein interfaceJpaOrder- Specified by:
getNullPrecedencein interfaceOrder
-
reverse
-
getExpression
Description copied from interface:JpaOrderThe expression to sort by- Specified by:
getExpressionin interfaceJpaOrder- Specified by:
getExpressionin interfaceOrder
-
isAscending
public boolean isAscending()- Specified by:
isAscendingin interfaceOrder
-
appendHqlString
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-
SqmSortSpecification(SqmExpression, SortDirection, Nulls)instead