Top Description Methods
org.hibernate.query.criteria

public Interface JpaSearchOrder

extends JpaCriteriaNode
Known Direct Implementers
org.hibernate.query.sqm.tree.cte.SqmSearchClauseSpecification
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.query.NullPrecedence, .SortDirection

Represents the search order for a recursive CTE (common table expression).
See Also
JpaCteCriteria

Method Summary

Modifier and TypeMethod and Description
public JpaCteCriteriaAttribute

Returns:

CTE attribute used for ordering
getAttribute
()

Return the CTE attribute that is used for ordering.

public NullPrecedence
getNullPrecedence()

The precedence for nulls for this search order element

public SortDirection
public boolean

Returns:

boolean indicating whether ordering is ascending
isAscending
()

Whether ascending ordering is in effect.

public JpaSearchOrder
nullPrecedence(NullPrecedence precedence)

Set the precedence of nulls for this search order element

public JpaSearchOrder

Returns:

a new Order instance with the reversed ordering
reverse
()

Switch the ordering.

Method Detail

getAttributeback to summary
public JpaCteCriteriaAttribute getAttribute()

Return the CTE attribute that is used for ordering.

Returns:JpaCteCriteriaAttribute

CTE attribute used for ordering

getNullPrecedenceback to summary
public NullPrecedence getNullPrecedence()

The precedence for nulls for this search order element

getSortOrderback to summary
public SortDirection getSortOrder()
isAscendingback to summary
public boolean isAscending()

Whether ascending ordering is in effect.

Returns:boolean

boolean indicating whether ordering is ascending

nullPrecedenceback to summary
public JpaSearchOrder nullPrecedence(NullPrecedence precedence)

Set the precedence of nulls for this search order element

reverseback to summary
public JpaSearchOrder reverse()

Switch the ordering.

Returns:JpaSearchOrder

a new Order instance with the reversed ordering