Interface CriteriaBuilderWrapper

All Superinterfaces:
jakarta.persistence.criteria.CriteriaBuilder
All Known Implementing Classes:
AbstractCriteriaBuilderWrapper, DelegatingCriteriaBuilderWrapper, InterceptingCriteriaBuilderWrapper

public interface CriteriaBuilderWrapper extends jakarta.persistence.criteria.CriteriaBuilder
  • Nested Class Summary

    Nested classes/interfaces inherited from interface jakarta.persistence.criteria.CriteriaBuilder

    jakarta.persistence.criteria.CriteriaBuilder.Case<R>, jakarta.persistence.criteria.CriteriaBuilder.Coalesce<T>, jakarta.persistence.criteria.CriteriaBuilder.In<T>, jakarta.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>, jakarta.persistence.criteria.CriteriaBuilder.Trimspec
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.persistence.criteria.Order
    asc(jakarta.persistence.criteria.Expression<?> x, boolean nullsFirst)
    Create an ordering by the ascending value of the expression.
    jakarta.persistence.criteria.Order
    desc(jakarta.persistence.criteria.Expression<?> x, boolean nullsFirst)
    Create an ordering by the descending value of the expression.
    jakarta.persistence.criteria.Predicate
    in(jakarta.persistence.criteria.Expression<?> expression, jakarta.persistence.criteria.Expression<?>... values)
     
    <T> jakarta.persistence.criteria.Expression<T>
    inlineLiteral(T value)
    By default all literals are bound as parameters.
    <T> jakarta.persistence.criteria.ParameterExpression<T>
    parameter(Class<T> paramClass, String name, Class<?> targetClass)
    Used when the paramClass is a Collection and cannot be used to infer the target type that should be used for conversion.
     
    void
    registerSubqueryRoot(jakarta.persistence.criteria.From<?,?> join)
    Should be called for each subquery root that is part of the current query.

    Methods inherited from interface jakarta.persistence.criteria.CriteriaBuilder

    abs, all, and, and, any, array, asc, avg, between, between, ceiling, coalesce, coalesce, coalesce, concat, concat, concat, conjunction, construct, count, countDistinct, createCriteriaDelete, createCriteriaUpdate, createQuery, createQuery, createTupleQuery, currentDate, currentTime, currentTimestamp, desc, diff, diff, diff, disjunction, equal, equal, exists, exp, floor, function, ge, ge, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greatest, gt, gt, in, isEmpty, isFalse, isMember, isMember, isNotEmpty, isNotMember, isNotMember, isNotNull, isNull, isTrue, keys, le, le, least, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, like, like, like, like, like, like, literal, ln, localDate, localDateTime, localTime, locate, locate, locate, locate, lower, lt, lt, max, min, mod, mod, mod, neg, not, notEqual, notEqual, notLike, notLike, notLike, notLike, notLike, notLike, nullif, nullif, nullLiteral, or, or, parameter, parameter, power, power, prod, prod, prod, quot, quot, quot, round, selectCase, selectCase, sign, size, size, some, sqrt, substring, substring, substring, substring, sum, sum, sum, sum, sumAsDouble, sumAsLong, toBigDecimal, toBigInteger, toDouble, toFloat, toInteger, toLong, toString, treat, treat, treat, treat, treat, treat, treat, trim, trim, trim, trim, trim, trim, tuple, upper, values
  • Method Details

    • in

      jakarta.persistence.criteria.Predicate in(jakarta.persistence.criteria.Expression<?> expression, jakarta.persistence.criteria.Expression<?>... values)
    • inlineLiteral

      <T> jakarta.persistence.criteria.Expression<T> inlineLiteral(T value)
      By default all literals are bound as parameters. In rare cases, where it might be necessary to inline a literal, this method can be used.
    • asc

      jakarta.persistence.criteria.Order asc(jakarta.persistence.criteria.Expression<?> x, boolean nullsFirst)
      Create an ordering by the ascending value of the expression.
      Parameters:
      x - - expression used to define the ordering
      nullsFirst - Whether null should be sorted first (default is false)
      Returns:
      ascending ordering corresponding to the expression
    • desc

      jakarta.persistence.criteria.Order desc(jakarta.persistence.criteria.Expression<?> x, boolean nullsFirst)
      Create an ordering by the descending value of the expression.
      Parameters:
      x - - expression used to define the ordering
      nullsFirst - Whether null should be sorted first (default is true)
      Returns:
      descending ordering corresponding to the expression
    • parameter

      <T> jakarta.persistence.criteria.ParameterExpression<T> parameter(Class<T> paramClass, String name, Class<?> targetClass)
      Used when the paramClass is a Collection and cannot be used to infer the target type that should be used for conversion.
    • parameterTargetClasses

      Map<String,Class<?>> parameterTargetClasses()
      Returns:
      the target types registered by parameter(Class, String, Class).
    • registerSubqueryRoot

      void registerSubqueryRoot(jakarta.persistence.criteria.From<?,?> join)
      Should be called for each subquery root that is part of the current query.