Class SqmSortSpecification
- java.lang.Object
-
- org.hibernate.query.sqm.tree.select.SqmSortSpecification
-
- All Implemented Interfaces:
Order
,Serializable
,JpaCriteriaNode
,JpaOrder
public class SqmSortSpecification extends Object implements JpaOrder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmSortSpecification(SqmExpression sortExpression)
SqmSortSpecification(SqmExpression sortExpression, SortDirection sortOrder)
SqmSortSpecification(SqmExpression sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence)
SqmSortSpecification(SqmExpression sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence, boolean ignoreCase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendHqlString(StringBuilder sb)
SqmSortSpecification
copy(SqmCopyContext context)
boolean
equals(Object o)
JpaExpression<?>
getExpression()
The expression to sort byNullPrecedence
getNullPrecedence()
The precedence for nulls for this order elementSortDirection
getSortDirection()
The direction, ascending or descending, in which to sortSqmExpression<?>
getSortExpression()
int
hashCode()
boolean
isAscending()
boolean
isIgnoreCase()
JpaOrder
nullPrecedence(NullPrecedence nullPrecedence)
Set the precedence of nulls for this order elementJpaOrder
reverse()
Reverse the sorting direction
-
-
-
Constructor Detail
-
SqmSortSpecification
public SqmSortSpecification(SqmExpression sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence)
-
SqmSortSpecification
public SqmSortSpecification(SqmExpression sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence, boolean ignoreCase)
-
SqmSortSpecification
public SqmSortSpecification(SqmExpression sortExpression)
-
SqmSortSpecification
public SqmSortSpecification(SqmExpression sortExpression, SortDirection sortOrder)
-
-
Method Detail
-
copy
public SqmSortSpecification copy(SqmCopyContext context)
-
getSortExpression
public SqmExpression<?> getSortExpression()
-
getSortDirection
public SortDirection 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
public JpaOrder nullPrecedence(NullPrecedence nullPrecedence)
Description copied from interface:JpaOrder
Set the precedence of nulls for this order element- Specified by:
nullPrecedence
in interfaceJpaOrder
-
getNullPrecedence
public NullPrecedence getNullPrecedence()
Description copied from interface:JpaOrder
The precedence for nulls for this order element- Specified by:
getNullPrecedence
in interfaceJpaOrder
-
reverse
public JpaOrder reverse()
Description copied from interface:JpaOrder
Reverse the sorting direction
-
getExpression
public JpaExpression<?> 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
public void appendHqlString(StringBuilder sb)
-
-