Package org.hibernate.query.sqm.tree.cte
Class SqmSearchClauseSpecification
- java.lang.Object
-
- org.hibernate.query.sqm.tree.cte.SqmSearchClauseSpecification
-
- All Implemented Interfaces:
Serializable
,JpaCriteriaNode
,JpaSearchOrder
public class SqmSearchClauseSpecification extends Object implements JpaSearchOrder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmSearchClauseSpecification(SqmCteTableColumn cteColumn, SortDirection sortOrder, NullPrecedence nullPrecedence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqmSearchClauseSpecification
copy(SqmCopyContext context)
JpaCteCriteriaAttribute
getAttribute()
Return the CTE attribute that is used for ordering.SqmCteTableColumn
getCteColumn()
NullPrecedence
getNullPrecedence()
The precedence for nulls for this search order elementSortDirection
getSortOrder()
boolean
isAscending()
Whether ascending ordering is in effect.JpaSearchOrder
nullPrecedence(NullPrecedence precedence)
Set the precedence of nulls for this search order elementJpaSearchOrder
reverse()
Switch the ordering.
-
-
-
Constructor Detail
-
SqmSearchClauseSpecification
public SqmSearchClauseSpecification(SqmCteTableColumn cteColumn, SortDirection sortOrder, NullPrecedence nullPrecedence)
-
-
Method Detail
-
copy
public SqmSearchClauseSpecification copy(SqmCopyContext context)
-
getCteColumn
public SqmCteTableColumn getCteColumn()
-
nullPrecedence
public JpaSearchOrder nullPrecedence(NullPrecedence precedence)
Description copied from interface:JpaSearchOrder
Set the precedence of nulls for this search order element- Specified by:
nullPrecedence
in interfaceJpaSearchOrder
-
isAscending
public boolean isAscending()
Description copied from interface:JpaSearchOrder
Whether ascending ordering is in effect.- Specified by:
isAscending
in interfaceJpaSearchOrder
- Returns:
- boolean indicating whether ordering is ascending
-
reverse
public JpaSearchOrder reverse()
Description copied from interface:JpaSearchOrder
Switch the ordering.- Specified by:
reverse
in interfaceJpaSearchOrder
- Returns:
- a new
Order
instance with the reversed ordering
-
getAttribute
public JpaCteCriteriaAttribute getAttribute()
Description copied from interface:JpaSearchOrder
Return the CTE attribute that is used for ordering.- Specified by:
getAttribute
in interfaceJpaSearchOrder
- Returns:
- CTE attribute used for ordering
-
getSortOrder
public SortDirection getSortOrder()
- Specified by:
getSortOrder
in interfaceJpaSearchOrder
-
getNullPrecedence
public NullPrecedence getNullPrecedence()
Description copied from interface:JpaSearchOrder
The precedence for nulls for this search order element- Specified by:
getNullPrecedence
in interfaceJpaSearchOrder
-
-