Package org.hibernate.query.criteria
Interface HibernateCriteriaBuilder
-
- All Superinterfaces:
CriteriaBuilder
public interface HibernateCriteriaBuilder extends CriteriaBuilder
Hibernate extensions to the JPA CriteriaBuilder. Currently there are no extensions; these are coming in 6.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.persistence.criteria.CriteriaBuilder
CriteriaBuilder.Case<R extends java.lang.Object>, CriteriaBuilder.Coalesce<T extends java.lang.Object>, CriteriaBuilder.In<T extends java.lang.Object>, CriteriaBuilder.SimpleCase<C extends java.lang.Object,R extends java.lang.Object>, CriteriaBuilder.Trimspec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <M extends java.util.Map<?,?>>
PredicateisMapEmpty(Expression<M> mapExpression)
Create a predicate that tests whether a Map is empty.<M extends java.util.Map<?,?>>
PredicateisMapNotEmpty(Expression<M> mapExpression)
Create a predicate that tests whether a Map is not empty.<M extends java.util.Map<?,?>>
Expression<java.lang.Integer>mapSize(Expression<M> mapExpression)
Create an expression that tests the size of a map.<M extends java.util.Map<?,?>>
Expression<java.lang.Integer>mapSize(M map)
Create an expression that tests the size of a map.-
Methods inherited from interface 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
-
-
-
-
Method Detail
-
isMapEmpty
<M extends java.util.Map<?,?>> Predicate isMapEmpty(Expression<M> mapExpression)
Create a predicate that tests whether a Map is empty. NOTE : Due to type-erasure we cannot name this the same asCriteriaBuilder.isEmpty(javax.persistence.criteria.Expression<C>)
- Parameters:
mapExpression
- The expression resolving to a Map which we want to check for emptiness- Returns:
- is-empty predicate
-
isMapNotEmpty
<M extends java.util.Map<?,?>> Predicate isMapNotEmpty(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 asCriteriaBuilder.isNotEmpty(javax.persistence.criteria.Expression<C>)
- Parameters:
mapExpression
- The expression resolving to a Map which we want to check for non-emptiness- Returns:
- is-not-empty predicate
-
mapSize
<M extends java.util.Map<?,?>> Expression<java.lang.Integer> mapSize(Expression<M> mapExpression)
Create an expression that tests the size of a map. NOTE : Due to type-erasure we cannot name this the same asCriteriaBuilder.size(javax.persistence.criteria.Expression<C>)
- Parameters:
mapExpression
- The expression resolving to a Map for which we want to know the size- Returns:
- size expression
-
mapSize
<M extends java.util.Map<?,?>> Expression<java.lang.Integer> mapSize(M map)
Create an expression that tests the size of a map.- Parameters:
map
- The Map for which we want to know the size- Returns:
- size expression
-
-