java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.query.builder.OrderingUtils

public abstract class OrderingUtils extends Object
  • Method Details

    • orderByKeys

      public static jakarta.persistence.criteria.Expression<?> orderByKeys(CriteriaBuilderWrapper criteriaBuilder, jakarta.persistence.criteria.From<?,?> queryRoot, PrimaryKeyList list)
      Creates an ORDER BY Expression that orders the results in the same order as in the given PrimaryKeyList using 'CASE WHEN' expressions.