Top Description Fields Constructors Methods
org.hibernate.query.criteria.internal

public Class CriteriaBuilderImpl

extends Object
implements HibernateCriteriaBuilder, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.query.criteria.HibernateCriteriaBuilder, javax.persistence.criteria.CriteriaBuilder
Imports
java.io.Serializable, java.math.BigDecimal, .BigInteger, java.util.Arrays, .Collection, .HashSet, .List, .Map, .Set, java.util.function.BiFunction, javax.persistence.Tuple, javax.persistence.criteria.CollectionJoin, .CompoundSelection, .CriteriaBuilder, .CriteriaDelete, .CriteriaQuery, .CriteriaUpdate, .Expression, .Join, .ListJoin, .MapJoin, .Order, .ParameterExpression, .Path, .Predicate, .Root, .Selection, .SetJoin, .Subquery, org.hibernate.internal.SessionFactoryImpl, org.hibernate.internal.util.StringHelper, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.query.criteria.HibernateCriteriaBuilder, org.hibernate.query.criteria.internal.expression.BinaryArithmeticOperation, .CoalesceExpression, .CompoundSelectionImpl, .ConcatExpression, .LiteralExpression, .NullLiteralExpression, .NullifExpression, .ParameterExpressionImpl, .SearchedCaseExpression, .SimpleCaseExpression, .SizeOfPluralAttributeExpression, .SubqueryComparisonModifierExpression, .UnaryArithmeticOperation, org.hibernate.query.criteria.internal.expression.function.AbsFunction, .AggregationFunction, .BasicFunctionExpression, .CurrentDateFunction, .CurrentTimeFunction, .CurrentTimestampFunction, .LengthFunction, .LocateFunction, .LowerFunction, .ParameterizedFunctionExpression, .SqrtFunction, .SubstringFunction, .TrimFunction, .UpperFunction, org.hibernate.query.criteria.internal.path.PluralAttributePath, .RootImpl, org.hibernate.query.criteria.internal.predicate.BetweenPredicate, .BooleanAssertionPredicate, .BooleanExpressionPredicate, .BooleanStaticAssertionPredicate, .ComparisonPredicate, .ComparisonPredicate.ComparisonOperator, .CompoundPredicate, .ExistsPredicate, .InPredicate, .IsEmptyPredicate, .LikePredicate, .MemberOfPredicate, .NullnessPredicate

Hibernate implementation of the JPA CriteriaBuilder contract.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final SessionFactoryImpl
sessionFactory

Deprecated as a consequence of SessionFactoryImpl being deprecated.

Constructor Summary

AccessConstructor and Description
public
CriteriaBuilderImpl(SessionFactoryImpl sessionFactory)

Deprecated as a consequence of SessionFactoryImpl being deprecated.

Method Summary

Modifier and TypeMethod and Description
public <N extends Number> Expression<N>
abs(Expression<N>
expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.abs.

Create an expression that returns the absolute value of its argument.
public <Y> Expression<Y>
all(Subquery<Y>
subquery
subquery
)

Implements javax.persistence.criteria.CriteriaBuilder.all.

Create an all expression over the subquery results.
public Predicate
and(Expression<Boolean>
boolean expression
x
,
Expression<Boolean>
boolean expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.and.

Create a conjunction of the given boolean expressions.
public Predicate
and(Predicate...
zero or more restriction predicates
restrictions
)

Implements javax.persistence.criteria.CriteriaBuilder.and.

Create a conjunction of the given restriction predicates.
public <Y> Expression<Y>
any(Subquery<Y>
subquery
subquery
)

Implements javax.persistence.criteria.CriteriaBuilder.any.

Create an any expression over the subquery results.
public CompoundSelection<Object[]>
array(Selection<?>...
selection items
selections
)

Implements javax.persistence.criteria.CriteriaBuilder.array.

Create an array-valued selection item.
public CompoundSelection<Object[]>

Returns:

The array compound selection
array
(List<Selection<?>>
List of selections.
selections
)

Version of array(Selection[]) taking a list of selections.

public <Y> CompoundSelection<Y>

Returns:

The array compound selection
array
(Class<Y>
The type of array
type
,
List<Selection<?>>
List of selections.
selections
)

Version of array(Selection[]) taking a list of selections, as well as the type of array.

public Order
asc(Expression<?>
expression used to define the ordering
x
)

Implements javax.persistence.criteria.CriteriaBuilder.asc.

Create an ordering by the ascending value of the expression.
public Order
asc(Expression<?>
expression used to define the ordering
x
,
boolean
Whether null should be sorted first
nullsFirst
)

Implements org.hibernate.query.criteria.HibernateCriteriaBuilder.asc.

Create an ordering by the ascending value of the expression.
public <N extends Number> Expression<Double>
avg(Expression<N>
expression representing input value to avg operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.avg.

Create an aggregate expression applying the avg operation.
public <Y extends Comparable<? super Y>> Predicate
between(Expression<? extends Y>
expression
expression
,
Y
value
lowerBound
,
Y
value
upperBound
)

Implements javax.persistence.criteria.CriteriaBuilder.between.

Create a predicate for testing whether the first argument is between the second and third arguments in value.
public <Y extends Comparable<? super Y>> Predicate
between(Expression<? extends Y>
expression
expression
,
Expression<? extends Y>
expression
lowerBound
,
Expression<? extends Y>
expression
upperBound
)

Implements javax.persistence.criteria.CriteriaBuilder.between, javax.persistence.criteria.CriteriaBuilder.between.

Create a predicate for testing whether the first argument is between the second and third arguments in value.
pack-priv void
checkMultiselect(List<Selection<?>>
The selection varargs to check
selections
)

Package-protected method to centralize checking of criteria query multi-selects as defined by the CriteriaQuery#multiselect(List) method.

public <Y> Expression<Y>
coalesce(Expression<? extends Y>
expression
exp1
,
Expression<? extends Y>
expression
exp2
)

Implements javax.persistence.criteria.CriteriaBuilder.coalesce, javax.persistence.criteria.CriteriaBuilder.coalesce.

Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.
public <Y> Expression<Y>
coalesce(Class<Y> type, Expression<? extends Y> exp1, Expression<? extends Y> exp2)

public <Y> Expression<Y>
coalesce(Expression<? extends Y>
expression
exp1
,
Y
value
exp2
)

Implements javax.persistence.criteria.CriteriaBuilder.coalesce.

Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.
public <Y> Expression<Y>
coalesce(Class<Y> type, Expression<? extends Y> exp1, Y exp2)

public <T> CriteriaBuilder.Coalesce<T>
coalesce()

Implements javax.persistence.criteria.CriteriaBuilder.coalesce.

Create a coalesce expression.
public <T> CriteriaBuilder.Coalesce<T>
coalesce(Class<T> type)

public Expression<String>
concat(Expression<String>
string expression
string1
,
Expression<String>
string expression
string2
)

Implements javax.persistence.criteria.CriteriaBuilder.concat.

Create an expression for string concatenation.
public Expression<String>
concat(Expression<String>
string expression
string1
,
String
string
string2
)

Implements javax.persistence.criteria.CriteriaBuilder.concat.

Create an expression for string concatenation.
public Expression<String>
concat(String
string
string1
,
Expression<String>
string expression
string2
)

Implements javax.persistence.criteria.CriteriaBuilder.concat.

Create an expression for string concatenation.
public Predicate
conjunction()

Implements javax.persistence.criteria.CriteriaBuilder.conjunction.

Create a conjunction (with zero conjuncts).
public <Y> CompoundSelection<Y>
construct(Class<Y>
class whose instance is to be constructed
result
,
Selection<?>...
arguments to the constructor
selections
)

Implements javax.persistence.criteria.CriteriaBuilder.construct.

Create a selection item corresponding to a constructor.
public <Y> CompoundSelection<Y>

Returns:

The view compound selection.
construct
(Class<Y>
The result class to be constructed.
result
,
List<Selection<?>>
The selections to use in the constructor call.
selections
)

Version of construct(Class, Selection[]) taking the to-be-constructed type as well as a list of selections.

public Expression<Long>
count(Expression<?>
expression representing input value to count operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.count.

Create an aggregate expression applying the count operation.
public Expression<Long>
countDistinct(Expression<?>
expression representing input value to count distinct operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.countDistinct.

Create an aggregate expression applying the count distinct operation.
public <T> CriteriaDelete<T>
createCriteriaDelete(Class<T>
target type for delete operation
targetEntity
)

Implements javax.persistence.criteria.CriteriaBuilder.createCriteriaDelete.

Create a CriteriaDelete query object to perform a bulk delete operation.
public <T> CriteriaUpdate<T>
createCriteriaUpdate(Class<T>
target type for update operation
targetEntity
)

Implements javax.persistence.criteria.CriteriaBuilder.createCriteriaUpdate.

Create a CriteriaUpdate query object to perform a bulk update operation.
public CriteriaQuery<Object>
createQuery()

Implements javax.persistence.criteria.CriteriaBuilder.createQuery.

Create a CriteriaQuery object.
public <T> CriteriaQuery<T>
createQuery(Class<T>
type of the query result
resultClass
)

Implements javax.persistence.criteria.CriteriaBuilder.createQuery.

Create a CriteriaQuery object with the specified result type.
public CriteriaQuery<Tuple>
createTupleQuery()

Implements javax.persistence.criteria.CriteriaBuilder.createTupleQuery.

Create a CriteriaQuery object that returns a tuple of objects as its result.
public Expression<Date>
currentDate()

Implements javax.persistence.criteria.CriteriaBuilder.currentDate.

Create expression to return current date.
public Expression<Time>
currentTime()

Implements javax.persistence.criteria.CriteriaBuilder.currentTime.

Create expression to return current time.
public Expression<Timestamp>
currentTimestamp()

Implements javax.persistence.criteria.CriteriaBuilder.currentTimestamp.

Create expression to return current timestamp.
public Order
desc(Expression<?>
expression used to define the ordering
x
)

Implements javax.persistence.criteria.CriteriaBuilder.desc.

Create an ordering by the descending value of the expression.
public Order
desc(Expression<?>
expression used to define the ordering
x
,
boolean
Whether null should be sorted first
nullsFirst
)

Implements org.hibernate.query.criteria.HibernateCriteriaBuilder.desc.

Create an ordering by the descending value of the expression.
public <N extends Number> Expression<N>
diff(Expression<? extends N>
expression
expression1
,
Expression<? extends N>
expression
expression2
)

Implements javax.persistence.criteria.CriteriaBuilder.diff, javax.persistence.criteria.CriteriaBuilder.diff, javax.persistence.criteria.CriteriaBuilder.diff.

Create an expression that returns the difference between its arguments.
public <N extends Number> Expression<N>
diff(Expression<? extends N>
expression
expression
,
N
value
n
)

Implements javax.persistence.criteria.CriteriaBuilder.diff.

Create an expression that returns the difference between its arguments.
public <N extends Number> Expression<N>
diff(N
value
n
,
Expression<? extends N>
expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.diff.

Create an expression that returns the difference between its arguments.
public Predicate
disjunction()

Implements javax.persistence.criteria.CriteriaBuilder.disjunction.

Create a disjunction (with zero disjuncts).
public Predicate
equal(Expression<?>
expression
x
,
Expression<?>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.equal.

Create a predicate for testing the arguments for equality.
public Predicate
equal(Expression<?>
expression
x
,
Object
object
y
)

Implements javax.persistence.criteria.CriteriaBuilder.equal.

Create a predicate for testing the arguments for equality.
public Predicate
exists(Subquery<?>
subquery whose result is to be tested
subquery
)

Implements javax.persistence.criteria.CriteriaBuilder.exists.

Create a predicate testing the existence of a subquery result.
public <T> Expression<T>
function(String
function name
name
,
Class<T>
expected result type
returnType
,
Expression<?>...
function arguments
arguments
)

Implements javax.persistence.criteria.CriteriaBuilder.function.

Create an expression for the execution of a database function.
public <T> Expression<T>

Returns:

The function expression
function
(String
The function name.
name
,
Class<T>
The return type.
returnType
)

Create a reference to a function taking no params.

public Predicate
ge(Expression<? extends Number>
expression
x
,
Expression<? extends Number>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.ge.

Create a predicate for testing whether the first argument is greater than or equal to the second.
public Predicate
ge(Expression<? extends Number>
expression
x
,
Number
value
y
)

Implements javax.persistence.criteria.CriteriaBuilder.ge.

Create a predicate for testing whether the first argument is greater than or equal to the second.
public SessionFactoryImpl

Returns:

The underlying SessionFactoryImpl
getEntityManagerFactory
()

Deprecated as a consequence of SessionFactoryImpl being deprecated.
Provides protected access to the underlying SessionFactoryImpl.
public <Y extends Comparable<? super Y>> Predicate
greaterThan(Expression<? extends Y>
expression
x
,
Expression<? extends Y>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.greaterThan, javax.persistence.criteria.CriteriaBuilder.greaterThan.

Create a predicate for testing whether the first argument is greater than the second.
public <Y extends Comparable<? super Y>> Predicate
greaterThan(Expression<? extends Y>
expression
x
,
Y
value
y
)

Implements javax.persistence.criteria.CriteriaBuilder.greaterThan.

Create a predicate for testing whether the first argument is greater than the second.
public <Y extends Comparable<? super Y>> Predicate
greaterThanOrEqualTo(Expression<? extends Y>
expression
x
,
Expression<? extends Y>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.greaterThanOrEqualTo, javax.persistence.criteria.CriteriaBuilder.greaterThanOrEqualTo.

Create a predicate for testing whether the first argument is greater than or equal to the second.
public <Y extends Comparable<? super Y>> Predicate
greaterThanOrEqualTo(Expression<? extends Y>
expression
x
,
Y
value
y
)

Implements javax.persistence.criteria.CriteriaBuilder.greaterThanOrEqualTo.

Create a predicate for testing whether the first argument is greater than or equal to the second.
public <X extends Comparable<? super X>> Expression<X>
greatest(Expression<X>
expression representing input value to greatest operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.greatest.

Create an aggregate expression for finding the greatest of the values (strings, dates, etc).
public Predicate
gt(Expression<? extends Number>
expression
x
,
Expression<? extends Number>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.gt.

Create a predicate for testing whether the first argument is greater than the second.
public Predicate
gt(Expression<? extends Number>
expression
x
,
Number
value
y
)

Implements javax.persistence.criteria.CriteriaBuilder.gt.

Create a predicate for testing whether the first argument is greater than the second.
public <T> CriteriaBuilder.In<T>
in(Expression<? extends T>
to be tested against list of values
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.in.

Create predicate to test whether given expression is contained in a list of values.
public <T> CriteriaBuilder.In<T>
in(Expression<? extends T> expression, Expression<? extends T>... values)

public <T> CriteriaBuilder.In<T>
in(Expression<? extends T> expression, T... values)

public <T> CriteriaBuilder.In<T>
in(Expression<? extends T> expression, Collection<T> values)

public <C extends Collection<?>> Predicate
isEmpty(Expression<C>
expression
collectionExpression
)

Implements javax.persistence.criteria.CriteriaBuilder.isEmpty.

Create a predicate that tests whether a collection is empty.
public Predicate
isFalse(Expression<Boolean>
expression to be tested
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.isFalse.

Create a predicate testing for a false value.
public <M extends Map<?, ?>> Predicate
isMapEmpty(Expression<M>
The expression resolving to a Map which we want to check for emptiness
mapExpression
)

Implements org.hibernate.query.criteria.HibernateCriteriaBuilder.isMapEmpty.

Create a predicate that tests whether a Map is empty.
public <M extends Map<?, ?>> Predicate
isMapNotEmpty(Expression<M>
The expression resolving to a Map which we want to check for non-emptiness
mapExpression
)

Implements org.hibernate.query.criteria.HibernateCriteriaBuilder.isMapNotEmpty.

Create a predicate that tests whether a Map is not empty.
public <E, C extends Collection<E>> Predicate
isMember(E
element
e
,
Expression<C>
expression
collectionExpression
)

Implements javax.persistence.criteria.CriteriaBuilder.isMember.

Create a predicate that tests whether an element is a member of a collection.
public <E, C extends Collection<E>> Predicate
isMember(Expression<E>
element expression
elementExpression
,
Expression<C>
expression
collectionExpression
)

Implements javax.persistence.criteria.CriteriaBuilder.isMember, javax.persistence.criteria.CriteriaBuilder.isMember.

Create a predicate that tests whether an element is a member of a collection.
public <C extends Collection<?>> Predicate
isNotEmpty(Expression<C>
expression
collectionExpression
)

Implements javax.persistence.criteria.CriteriaBuilder.isNotEmpty.

Create a predicate that tests whether a collection is not empty.
public <E, C extends Collection<E>> Predicate
isNotMember(E
element
e
,
Expression<C>
expression
cExpression
)

Implements javax.persistence.criteria.CriteriaBuilder.isNotMember.

Create a predicate that tests whether an element is not a member of a collection.
public <E, C extends Collection<E>> Predicate
isNotMember(Expression<E>
element expression
eExpression
,
Expression<C>
expression
cExpression
)

Implements javax.persistence.criteria.CriteriaBuilder.isNotMember, javax.persistence.criteria.CriteriaBuilder.isNotMember.

Create a predicate that tests whether an element is not a member of a collection.
public Predicate
isNotNull(Expression<?>
expression
x
)

Implements javax.persistence.criteria.CriteriaBuilder.isNotNull.

Create a predicate to test whether the expression is not null.
public Predicate
isNull(Expression<?>
expression
x
)

Implements javax.persistence.criteria.CriteriaBuilder.isNull.

Create a predicate to test whether the expression is null.
public Predicate
isTrue(Expression<Boolean>
expression to be tested
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.isTrue.

Create a predicate testing for a true value.
public <K, M extends Map<K, ?>> Expression<Set<K>>
keys(M
map
map
)

Implements javax.persistence.criteria.CriteriaBuilder.keys.

Create an expression that returns the keys of a map.
public Predicate
le(Expression<? extends Number>
expression
x
,
Expression<? extends Number>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.le.

Create a predicate for testing whether the first argument is less than or equal to the second.
public Predicate
le(Expression<? extends Number>
expression
x
,
Number
value
y
)

Implements javax.persistence.criteria.CriteriaBuilder.le.

Create a predicate for testing whether the first argument is less than or equal to the second.
public <X extends Comparable<? super X>> Expression<X>
least(Expression<X>
expression representing input value to least operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.least.

Create an aggregate expression for finding the least of the values (strings, dates, etc).
public Expression<Integer>
length(Expression<String>
string expression
value
)

Implements javax.persistence.criteria.CriteriaBuilder.length.

Create expression to return length of a string.
public <Y extends Comparable<? super Y>> Predicate
lessThan(Expression<? extends Y>
expression
x
,
Expression<? extends Y>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.lessThan, javax.persistence.criteria.CriteriaBuilder.lessThan.

Create a predicate for testing whether the first argument is less than the second.
public <Y extends Comparable<? super Y>> Predicate
lessThan(Expression<? extends Y>
expression
x
,
Y
value
y
)

Implements javax.persistence.criteria.CriteriaBuilder.lessThan.

Create a predicate for testing whether the first argument is less than the second.
public <Y extends Comparable<? super Y>> Predicate
lessThanOrEqualTo(Expression<? extends Y>
expression
x
,
Expression<? extends Y>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.lessThanOrEqualTo, javax.persistence.criteria.CriteriaBuilder.lessThanOrEqualTo.

Create a predicate for testing whether the first argument is less than or equal to the second.
public <Y extends Comparable<? super Y>> Predicate
lessThanOrEqualTo(Expression<? extends Y>
expression
x
,
Y
value
y
)

Implements javax.persistence.criteria.CriteriaBuilder.lessThanOrEqualTo.

Create a predicate for testing whether the first argument is less than or equal to the second.
public Predicate
like(Expression<String>
string expression
matchExpression
,
Expression<String>
string expression
pattern
)

Implements javax.persistence.criteria.CriteriaBuilder.like.

Create a predicate for testing whether the expression satisfies the given pattern.
public Predicate
like(Expression<String>
string expression
matchExpression
,
Expression<String>
string expression
pattern
,
Expression<Character>
escape character expression
escapeCharacter
)

Implements javax.persistence.criteria.CriteriaBuilder.like.

Create a predicate for testing whether the expression satisfies the given pattern.
public Predicate
like(Expression<String>
string expression
matchExpression
,
Expression<String>
string expression
pattern
,
char
escape character
escapeCharacter
)

Implements javax.persistence.criteria.CriteriaBuilder.like.

Create a predicate for testing whether the expression satisfies the given pattern.
public Predicate
like(Expression<String>
string expression
matchExpression
,
String
string
pattern
)

Implements javax.persistence.criteria.CriteriaBuilder.like.

Create a predicate for testing whether the expression satisfies the given pattern.
public Predicate
like(Expression<String>
string expression
matchExpression
,
String
string
pattern
,
Expression<Character>
escape character expression
escapeCharacter
)

Implements javax.persistence.criteria.CriteriaBuilder.like.

Create a predicate for testing whether the expression satisfies the given pattern.
public Predicate
like(Expression<String>
string expression
matchExpression
,
String
string
pattern
,
char
escape character
escapeCharacter
)

Implements javax.persistence.criteria.CriteriaBuilder.like.

Create a predicate for testing whether the expression satisfies the given pattern.
public <T> Expression<T>
literal(T
value represented by the expression
value
)

Implements javax.persistence.criteria.CriteriaBuilder.literal.

Create an expression for a literal.
public Expression<Integer>
locate(Expression<String>
expression for string to be searched
string
,
Expression<String>
expression for string to be located
pattern
)

Implements javax.persistence.criteria.CriteriaBuilder.locate.

Create expression to locate the position of one string within another, returning position of first character if found.
public Expression<Integer>
locate(Expression<String>
expression for string to be searched
string
,
Expression<String>
expression for string to be located
pattern
,
Expression<Integer>
expression for position at which to start search
start
)

Implements javax.persistence.criteria.CriteriaBuilder.locate.

Create expression to locate the position of one string within another, returning position of first character if found.
public Expression<Integer>
locate(Expression<String>
expression for string to be searched
string
,
String
string to be located
pattern
)

Implements javax.persistence.criteria.CriteriaBuilder.locate.

Create expression to locate the position of one string within another, returning position of first character if found.
public Expression<Integer>
locate(Expression<String>
expression for string to be searched
string
,
String
string to be located
pattern
,
int
position at which to start search
start
)

Implements javax.persistence.criteria.CriteriaBuilder.locate.

Create expression to locate the position of one string within another, returning position of first character if found.
public Expression<String>
lower(Expression<String>
string expression
value
)

Implements javax.persistence.criteria.CriteriaBuilder.lower.

Create expression for converting a string to lowercase.
public Predicate
lt(Expression<? extends Number>
expression
x
,
Expression<? extends Number>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.lt.

Create a predicate for testing whether the first argument is less than the second.
public Predicate
lt(Expression<? extends Number>
expression
x
,
Number
value
y
)

Implements javax.persistence.criteria.CriteriaBuilder.lt.

Create a predicate for testing whether the first argument is less than the second.
public <M extends Map<?, ?>> Expression<Integer>
mapSize(Expression<M>
The expression resolving to a Map for which we want to know the size
mapExpression
)

Implements org.hibernate.query.criteria.HibernateCriteriaBuilder.mapSize, org.hibernate.query.criteria.HibernateCriteriaBuilder.mapSize.

Create an expression that tests the size of a map.
public <M extends Map<?, ?>> Expression<Integer>
mapSize(M
The Map for which we want to know the size
map
)

Implements org.hibernate.query.criteria.HibernateCriteriaBuilder.mapSize.

Create an expression that tests the size of a map.
public <N extends Number> Expression<N>
max(Expression<N>
expression representing input value to max operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.max.

Create an aggregate expression applying the numerical max operation.
public <N extends Number> Expression<N>
min(Expression<N>
expression representing input value to min operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.min.

Create an aggregate expression applying the numerical min operation.
public Expression<Integer>
mod(Expression<Integer>
expression
expression1
,
Expression<Integer>
expression
expression2
)

Implements javax.persistence.criteria.CriteriaBuilder.mod.

Create an expression that returns the modulus of its arguments.
public Expression<Integer>
mod(Expression<Integer>
expression
expression
,
Integer
value
integer
)

Implements javax.persistence.criteria.CriteriaBuilder.mod.

Create an expression that returns the modulus of its arguments.
public Expression<Integer>
mod(Integer
value
integer
,
Expression<Integer>
expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.mod.

Create an expression that returns the modulus of its arguments.
public <N extends Number> Expression<N>
neg(Expression<N>
expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.neg.

Create an expression that returns the arithmetic negation of its argument.
public Predicate
not(Expression<Boolean>
restriction expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.not.

Create a negation of the given restriction.
public Predicate
notEqual(Expression<?>
expression
x
,
Expression<?>
expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.notEqual.

Create a predicate for testing the arguments for inequality.
public Predicate
notEqual(Expression<?>
expression
x
,
Object
object
y
)

Implements javax.persistence.criteria.CriteriaBuilder.notEqual.

Create a predicate for testing the arguments for inequality.
public Predicate
notLike(Expression<String>
string expression
matchExpression
,
Expression<String>
string expression
pattern
)

Implements javax.persistence.criteria.CriteriaBuilder.notLike.

Create a predicate for testing whether the expression does not satisfy the given pattern.
public Predicate
notLike(Expression<String>
string expression
matchExpression
,
Expression<String>
string expression
pattern
,
Expression<Character>
escape character expression
escapeCharacter
)

Implements javax.persistence.criteria.CriteriaBuilder.notLike.

Create a predicate for testing whether the expression does not satisfy the given pattern.
public Predicate
notLike(Expression<String>
string expression
matchExpression
,
Expression<String>
string expression
pattern
,
char
escape character
escapeCharacter
)

Implements javax.persistence.criteria.CriteriaBuilder.notLike.

Create a predicate for testing whether the expression does not satisfy the given pattern.
public Predicate
notLike(Expression<String>
string expression
matchExpression
,
String
string
pattern
)

Implements javax.persistence.criteria.CriteriaBuilder.notLike.

Create a predicate for testing whether the expression does not satisfy the given pattern.
public Predicate
notLike(Expression<String>
string expression
matchExpression
,
String
string
pattern
,
Expression<Character>
escape character expression
escapeCharacter
)

Implements javax.persistence.criteria.CriteriaBuilder.notLike.

Create a predicate for testing whether the expression does not satisfy the given pattern.
public Predicate
notLike(Expression<String>
string expression
matchExpression
,
String
string
pattern
,
char
escape character
escapeCharacter
)

Implements javax.persistence.criteria.CriteriaBuilder.notLike.

Create a predicate for testing whether the expression does not satisfy the given pattern.
public <Y> Expression<Y>
nullif(Expression<Y>
expression
exp1
,
Expression<?>
expression
exp2
)

Implements javax.persistence.criteria.CriteriaBuilder.nullif, javax.persistence.criteria.CriteriaBuilder.nullif.

Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.
public <Y> Expression<Y>
nullif(Class<Y> type, Expression<Y> exp1, Expression<?> exp2)

public <Y> Expression<Y>
nullif(Expression<Y>
expression
exp1
,
Y
value
exp2
)

Implements javax.persistence.criteria.CriteriaBuilder.nullif.

Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.
public <Y> Expression<Y>
nullif(Class<Y> type, Expression<Y> exp1, Y exp2)

public <T> Expression<T>
nullLiteral(Class<T>
type of the null literal
resultClass
)

Implements javax.persistence.criteria.CriteriaBuilder.nullLiteral.

Create an expression for a null literal with the given type.
public Predicate
or(Expression<Boolean>
boolean expression
x
,
Expression<Boolean>
boolean expression
y
)

Implements javax.persistence.criteria.CriteriaBuilder.or.

Create a disjunction of the given boolean expressions.
public Predicate
or(Predicate...
zero or more restriction predicates
restrictions
)

Implements javax.persistence.criteria.CriteriaBuilder.or.

Create a disjunction of the given restriction predicates.
public <T> ParameterExpression<T>
parameter(Class<T>
parameter class
paramClass
)

Implements javax.persistence.criteria.CriteriaBuilder.parameter.

Create a parameter expression.
public <T> ParameterExpression<T>
parameter(Class<T>
parameter class
paramClass
,
String
name that can be used to refer to the parameter
name
)

Implements javax.persistence.criteria.CriteriaBuilder.parameter.

Create a parameter expression with the given name.
public <N extends Number> Expression<N>
prod(Expression<? extends N>
expression
expression1
,
Expression<? extends N>
expression
expression2
)

Implements javax.persistence.criteria.CriteriaBuilder.prod, javax.persistence.criteria.CriteriaBuilder.prod, javax.persistence.criteria.CriteriaBuilder.prod.

Create an expression that returns the product of its arguments.
public <N extends Number> Expression<N>
prod(Expression<? extends N>
expression
expression
,
N
value
n
)

Implements javax.persistence.criteria.CriteriaBuilder.prod.

Create an expression that returns the product of its arguments.
public <N extends Number> Expression<N>
prod(N
value
n
,
Expression<? extends N>
expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.prod.

Create an expression that returns the product of its arguments.
public Expression<Number>
quot(Expression<? extends Number>
expression
expression1
,
Expression<? extends Number>
expression
expression2
)

Implements javax.persistence.criteria.CriteriaBuilder.quot.

Create an expression that returns the quotient of its arguments.
public Expression<Number>
quot(Expression<? extends Number>
expression
expression
,
Number
value
number
)

Implements javax.persistence.criteria.CriteriaBuilder.quot.

Create an expression that returns the quotient of its arguments.
public Expression<Number>
quot(Number
value
number
,
Expression<? extends Number>
expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.quot.

Create an expression that returns the quotient of its arguments.
public <C, R> CriteriaBuilder.SimpleCase<C, R>
selectCase(Expression<? extends C>
to be tested against the case conditions
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.selectCase.

Create a simple case expression.
public <C, R> CriteriaBuilder.SimpleCase<C, R>
selectCase(Class<R> type, Expression<? extends C> expression)

public <R> CriteriaBuilder.Case<R>
selectCase()

Implements javax.persistence.criteria.CriteriaBuilder.selectCase.

Create a general case expression.
public <R> CriteriaBuilder.Case<R>
selectCase(Class<R> type)

public <C extends Collection<?>> Expression<Integer>
size(C
collection
c
)

Implements javax.persistence.criteria.CriteriaBuilder.size.

Create an expression that tests the size of a collection.
public <C extends Collection<?>> Expression<Integer>
size(Expression<C>
expression
exp
)

Implements javax.persistence.criteria.CriteriaBuilder.size, javax.persistence.criteria.CriteriaBuilder.size.

Create an expression that tests the size of a collection.
public <Y> Expression<Y>
some(Subquery<Y>
subquery
subquery
)

Implements javax.persistence.criteria.CriteriaBuilder.some.

Create a some expression over the subquery results.
public Expression<Double>
sqrt(Expression<? extends Number>
expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.sqrt.

Create an expression that returns the square root of its argument.
public Expression<String>
substring(Expression<String>
string expression
value
,
Expression<Integer>
start position expression
start
)

Implements javax.persistence.criteria.CriteriaBuilder.substring.

Create an expression for substring extraction.
public Expression<String>
substring(Expression<String>
string expression
value
,
int
start position
start
)

Implements javax.persistence.criteria.CriteriaBuilder.substring.

Create an expression for substring extraction.
public Expression<String>
substring(Expression<String>
string expression
value
,
Expression<Integer>
start position expression
start
,
Expression<Integer>
length expression
length
)

Implements javax.persistence.criteria.CriteriaBuilder.substring.

Create an expression for substring extraction.
public Expression<String>
substring(Expression<String>
string expression
value
,
int
start position
start
,
int
length
length
)

Implements javax.persistence.criteria.CriteriaBuilder.substring.

Create an expression for substring extraction.
public <N extends Number> Expression<N>
sum(Expression<N>
expression representing input value to sum operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.sum.

Create an aggregate expression applying the sum operation.
public <N extends Number> Expression<N>
sum(Expression<? extends N>
expression
expression1
,
Expression<? extends N>
expression
expression2
)

Implements javax.persistence.criteria.CriteriaBuilder.sum, javax.persistence.criteria.CriteriaBuilder.sum, javax.persistence.criteria.CriteriaBuilder.sum.

Create an expression that returns the sum of its arguments.
public <N extends Number> Expression<N>
sum(Expression<? extends N>
expression
expression
,
N
value
n
)

Implements javax.persistence.criteria.CriteriaBuilder.sum.

Create an expression that returns the sum of its arguments.
public <N extends Number> Expression<N>
sum(N
value
n
,
Expression<? extends N>
expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.sum.

Create an expression that returns the sum of its arguments.
public Expression<Double>
sumAsDouble(Expression<Float>
expression representing input value to sum operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.sumAsDouble.

Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result.
public Expression<Long>
sumAsLong(Expression<Integer>
expression representing input value to sum operation
x
)

Implements javax.persistence.criteria.CriteriaBuilder.sumAsLong.

Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.
public ExpressionImplementor<BigDecimal>
toBigDecimal(Expression<? extends Number>
numeric expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.toBigDecimal.

Typecast.
public ExpressionImplementor<BigInteger>
toBigInteger(Expression<? extends Number>
numeric expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.toBigInteger.

Typecast.
public ExpressionImplementor<Double>
toDouble(Expression<? extends Number>
numeric expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.toDouble.

Typecast.
public ExpressionImplementor<Float>
toFloat(Expression<? extends Number>
numeric expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.toFloat.

Typecast.
public ExpressionImplementor<Integer>
toInteger(Expression<? extends Number>
numeric expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.toInteger.

Typecast.
public ExpressionImplementor<Long>
toLong(Expression<? extends Number>
numeric expression
expression
)

Implements javax.persistence.criteria.CriteriaBuilder.toLong.

Typecast.
public ExpressionImplementor<String>
toString(Expression<Character>
expression
characterExpression
)

Implements javax.persistence.criteria.CriteriaBuilder.toString.

Typecast.
public <X, T, V extends T> Join<X, V>
treat(Join<X, T>
Join object
join
,
Class<V>
type to be downcast to
type
)

Implements javax.persistence.criteria.CriteriaBuilder.treat.

Downcast Join object to the specified type.
public <X, T, E extends T> CollectionJoin<X, E>
treat(CollectionJoin<X, T>
CollectionJoin object
join
,
Class<E>
type to be downcast to
type
)

Implements javax.persistence.criteria.CriteriaBuilder.treat.

Downcast CollectionJoin object to the specified type.
public <X, T, E extends T> SetJoin<X, E>
treat(SetJoin<X, T>
SetJoin object
join
,
Class<E>
type to be downcast to
type
)

Implements javax.persistence.criteria.CriteriaBuilder.treat.

Downcast SetJoin object to the specified type.
public <X, T, E extends T> ListJoin<X, E>
treat(ListJoin<X, T>
ListJoin object
join
,
Class<E>
type to be downcast to
type
)

Implements javax.persistence.criteria.CriteriaBuilder.treat.

Downcast ListJoin object to the specified type.
public <X, K, T, V extends T> MapJoin<X, K, V>
treat(MapJoin<X, K, T>
MapJoin object
join
,
Class<V>
type to be downcast to
type
)

Implements javax.persistence.criteria.CriteriaBuilder.treat.

Downcast MapJoin object to the specified type.
public <X, T extends X> Path<T>
treat(Path<X>
path
path
,
Class<T>
type to be downcast to
type
)

Implements javax.persistence.criteria.CriteriaBuilder.treat.

Downcast Path object to the specified type.
public <X, T extends X> Root<T>
treat(Root<X>
root
root
,
Class<T>
type to be downcast to
type
)

Implements javax.persistence.criteria.CriteriaBuilder.treat.

Downcast Root object to the specified type.
private <X, T, V extends T, K extends JoinImplementor> K
treat(Join<X, T> join, Class<V> type, BiFunction<Join<X, T>, Class<V>, K> f)

public Expression<String>
trim(Expression<String>
expression for string to trim
trimSource
)

Implements javax.persistence.criteria.CriteriaBuilder.trim.

Create expression to trim blanks from both ends of a string.
public Expression<String>
trim(CriteriaBuilder.Trimspec
trim specification
trimspec
,
Expression<String>
expression for string to trim
trimSource
)

Implements javax.persistence.criteria.CriteriaBuilder.trim.

Create expression to trim blanks from a string.
public Expression<String>
trim(Expression<Character>
expression for character to be trimmed
trimCharacter
,
Expression<String>
expression for string to trim
trimSource
)

Implements javax.persistence.criteria.CriteriaBuilder.trim.

Create expression to trim character from both ends of a string.
public Expression<String>
trim(CriteriaBuilder.Trimspec
trim specification
trimspec
,
Expression<Character>
expression for character to be trimmed
trimCharacter
,
Expression<String>
expression for string to trim
trimSource
)

Implements javax.persistence.criteria.CriteriaBuilder.trim.

Create expression to trim character from a string.
public Expression<String>
trim(char
character to be trimmed
trimCharacter
,
Expression<String>
expression for string to trim
trimSource
)

Implements javax.persistence.criteria.CriteriaBuilder.trim.

Create expression to trim character from both ends of a string.
public Expression<String>
trim(CriteriaBuilder.Trimspec
trim specification
trimspec
,
char
character to be trimmed
trimCharacter
,
Expression<String>
expression for string to trim
trimSource
)

Implements javax.persistence.criteria.CriteriaBuilder.trim.

Create expression to trim character from a string.
public CompoundSelection<Tuple>
tuple(Selection<?>...
selection items
selections
)

Implements javax.persistence.criteria.CriteriaBuilder.tuple.

Create a tuple-valued selection item.
public CompoundSelection<Tuple>

Returns:

The tuple compound selection
tuple
(List<Selection<?>>
List of selections.
selections
)

Version of tuple(Selection[]) taking a list.

public Expression<String>
upper(Expression<String>
string expression
value
)

Implements javax.persistence.criteria.CriteriaBuilder.upper.

Create expression for converting a string to uppercase.
public <V, M extends Map<?, V>> Expression<Collection<V>>
values(M
map
map
)

Implements javax.persistence.criteria.CriteriaBuilder.values.

Create an expression that returns the values of a map.
public Predicate
wrap(Expression<Boolean> expression)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait