接口 HibernateCriteriaBuilder

  • 所有超级接口:
    javax.persistence.criteria.CriteriaBuilder
    所有已知实现类:
    CriteriaBuilderImpl

    public interface HibernateCriteriaBuilder
    extends javax.persistence.criteria.CriteriaBuilder
    Hibernate extensions to the JPA CriteriaBuilder. Currently there are no extensions; these are coming in 6.0
    作者:
    Steve Ebersole
    • 嵌套类概要

      • 从接口继承的嵌套类/接口 javax.persistence.criteria.CriteriaBuilder

        javax.persistence.criteria.CriteriaBuilder.Case<R extends Object>, javax.persistence.criteria.CriteriaBuilder.Coalesce<T extends Object>, javax.persistence.criteria.CriteriaBuilder.In<T extends Object>, javax.persistence.criteria.CriteriaBuilder.SimpleCase<C extends Object,​R extends Object>, javax.persistence.criteria.CriteriaBuilder.Trimspec
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      <M extends Map<?,​?>>
      javax.persistence.criteria.Predicate
      isMapEmpty​(javax.persistence.criteria.Expression<M> mapExpression)
      Create a predicate that tests whether a Map is empty.
      <M extends Map<?,​?>>
      javax.persistence.criteria.Predicate
      isMapNotEmpty​(javax.persistence.criteria.Expression<M> mapExpression)
      Create a predicate that tests whether a Map is not empty.
      <M extends Map<?,​?>>
      javax.persistence.criteria.Expression<Integer>
      mapSize​(javax.persistence.criteria.Expression<M> mapExpression)
      Create an expression that tests the size of a map.
      <M extends Map<?,​?>>
      javax.persistence.criteria.Expression<Integer>
      mapSize​(M map)
      Create an expression that tests the size of a map.
      • 从接口继承的方法 javax.persistence.criteria.CriteriaBuilder

        abs, all, and, and, any, array, asc, avg, between, between, 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, 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, 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, prod, prod, prod, quot, quot, quot, selectCase, selectCase, 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
    • 方法详细资料

      • isMapEmpty

        <M extends Map<?,​?>> javax.persistence.criteria.Predicate isMapEmpty​(javax.persistence.criteria.Expression<M> mapExpression)
        Create a predicate that tests whether a Map is empty.

        NOTE : Due to type-erasure we cannot name this the same as CriteriaBuilder.isEmpty(javax.persistence.criteria.Expression<C>)

        参数:
        mapExpression - The expression resolving to a Map which we want to check for emptiness
        返回:
        is-empty predicate
      • isMapNotEmpty

        <M extends Map<?,​?>> javax.persistence.criteria.Predicate isMapNotEmpty​(javax.persistence.criteria.Expression<M> mapExpression)
        Create a predicate that tests whether a Map is not empty.

        NOTE : Due to type-erasure we cannot name this the same as CriteriaBuilder.isNotEmpty(javax.persistence.criteria.Expression<C>)

        参数:
        mapExpression - The expression resolving to a Map which we want to check for non-emptiness
        返回:
        is-not-empty predicate
      • mapSize

        <M extends Map<?,​?>> javax.persistence.criteria.Expression<Integer> mapSize​(javax.persistence.criteria.Expression<M> mapExpression)
        Create an expression that tests the size of a map.

        NOTE : Due to type-erasure we cannot name this the same as CriteriaBuilder.size(javax.persistence.criteria.Expression<C>)

        参数:
        mapExpression - The expression resolving to a Map for which we want to know the size
        返回:
        size expression
      • mapSize

        <M extends Map<?,​?>> javax.persistence.criteria.Expression<Integer> mapSize​(M map)
        Create an expression that tests the size of a map.
        参数:
        map - The Map for which we want to know the size
        返回:
        size expression