Class OrderingUtils
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.query.builder.OrderingUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.persistence.criteria.Expression
<?> orderByKeys
(CriteriaBuilderWrapper criteriaBuilder, jakarta.persistence.criteria.From<?, ?> queryRoot, PrimaryKeyList list) Creates an ORDER BYExpression
that orders the results in the same order as in the givenPrimaryKeyList
using 'CASE WHEN' expressions.
-
Method Details
-
orderByKeys
public static jakarta.persistence.criteria.Expression<?> orderByKeys(CriteriaBuilderWrapper criteriaBuilder, jakarta.persistence.criteria.From<?, ?> queryRoot, PrimaryKeyList list) Creates an ORDER BYExpression
that orders the results in the same order as in the givenPrimaryKeyList
using 'CASE WHEN' expressions.
-