public class CriteriaBuilderImpl extends Object implements HibernateCriteriaBuilder, Serializable
CriteriaBuilder
contract.CriteriaBuilder.Case<R>, CriteriaBuilder.Coalesce<T>, CriteriaBuilder.In<T>, CriteriaBuilder.SimpleCase<C,R>, CriteriaBuilder.Trimspec
Constructor and Description |
---|
CriteriaBuilderImpl(SessionFactoryImpl sessionFactory) |
Modifier and Type | Method and Description |
---|---|
<N extends Number> |
abs(Expression<N> expression)
Create an expression that returns the absolute value
of its argument.
|
<Y> Expression<Y> |
all(Subquery<Y> subquery)
Create an all expression over the subquery results.
|
Predicate |
and(Expression<Boolean> x,
Expression<Boolean> y)
Create a conjunction of the given boolean expressions.
|
Predicate |
and(Predicate... restrictions)
Create a conjunction of the given restriction predicates.
|
<Y> Expression<Y> |
any(Subquery<Y> subquery)
Create an any expression over the subquery results.
|
<Y> CompoundSelection<Y> |
array(Class<Y> type,
List<Selection<?>> selections)
Version of
array(Selection[]) taking a list of selections,
as well as the type of array. |
CompoundSelection<Object[]> |
array(List<Selection<?>> selections)
Version of
array(Selection[]) taking a list of selections. |
CompoundSelection<Object[]> |
array(Selection<?>... selections)
Create an array-valued selection item.
|
Order |
asc(Expression<?> x)
Create an ordering by the ascending value of the expression.
|
<N extends Number> |
avg(Expression<N> x)
Create an aggregate expression applying the avg operation.
|
<Y extends Comparable<? super Y>> |
between(Expression<? extends Y> expression,
Expression<? extends Y> lowerBound,
Expression<? extends Y> upperBound)
Create a predicate for testing whether the first argument is
between the second and third arguments in value.
|
<Y extends Comparable<? super Y>> |
between(Expression<? extends Y> expression,
Y lowerBound,
Y upperBound)
Create a predicate for testing whether the first argument is
between the second and third arguments in value.
|
<T> CriteriaBuilder.Coalesce<T> |
coalesce()
Create a coalesce expression.
|
<T> CriteriaBuilder.Coalesce<T> |
coalesce(Class<T> type) |
<Y> Expression<Y> |
coalesce(Class<Y> type,
Expression<? extends Y> exp1,
Expression<? extends Y> exp2) |
<Y> Expression<Y> |
coalesce(Class<Y> type,
Expression<? extends Y> exp1,
Y exp2) |
<Y> Expression<Y> |
coalesce(Expression<? extends Y> exp1,
Expression<? extends Y> exp2)
Create an expression that returns null if all its arguments
evaluate to null, and the value of the first non-null argument
otherwise.
|
<Y> Expression<Y> |
coalesce(Expression<? extends Y> exp1,
Y exp2)
Create an expression that returns null if all its arguments
evaluate to null, and the value of the first non-null argument
otherwise.
|
Expression<String> |
concat(Expression<String> string1,
Expression<String> string2)
Create an expression for string concatenation.
|
Expression<String> |
concat(Expression<String> string1,
String string2)
Create an expression for string concatenation.
|
Expression<String> |
concat(String string1,
Expression<String> string2)
Create an expression for string concatenation.
|
Predicate |
conjunction()
Create a conjunction (with zero conjuncts).
|
<Y> CompoundSelection<Y> |
construct(Class<Y> result,
List<Selection<?>> selections)
Version of
construct(Class,Selection[]) taking the
to-be-constructed type as well as a list of selections. |
<Y> CompoundSelection<Y> |
construct(Class<Y> result,
Selection<?>... selections)
Create a selection item corresponding to a constructor.
|
Expression<Long> |
count(Expression<?> x)
Create an aggregate expression applying the count operation.
|
Expression<Long> |
countDistinct(Expression<?> x)
Create an aggregate expression applying the count distinct
operation.
|
<T> CriteriaDelete<T> |
createCriteriaDelete(Class<T> targetEntity)
Create a
CriteriaDelete query object to perform a bulk delete operation. |
<T> CriteriaUpdate<T> |
createCriteriaUpdate(Class<T> targetEntity)
Create a
CriteriaUpdate query object to perform a bulk update operation. |
CriteriaQuery<Object> |
createQuery()
Create a
CriteriaQuery object. |
<T> CriteriaQuery<T> |
createQuery(Class<T> resultClass)
Create a
CriteriaQuery object with the specified result
type. |
CriteriaQuery<Tuple> |
createTupleQuery()
Create a
CriteriaQuery object that returns a tuple of
objects as its result. |
Expression<Date> |
currentDate()
Create expression to return current date.
|
Expression<Time> |
currentTime()
Create expression to return current time.
|
Expression<Timestamp> |
currentTimestamp()
Create expression to return current timestamp.
|
Order |
desc(Expression<?> x)
Create an ordering by the descending value of the expression.
|
<N extends Number> |
diff(Expression<? extends N> expression1,
Expression<? extends N> expression2)
Create an expression that returns the difference
between its arguments.
|
<N extends Number> |
diff(Expression<? extends N> expression,
N n)
Create an expression that returns the difference
between its arguments.
|
<N extends Number> |
diff(N n,
Expression<? extends N> expression)
Create an expression that returns the difference
between its arguments.
|
Predicate |
disjunction()
Create a disjunction (with zero disjuncts).
|
Predicate |
equal(Expression<?> x,
Expression<?> y)
Create a predicate for testing the arguments for equality.
|
Predicate |
equal(Expression<?> x,
Object y)
Create a predicate for testing the arguments for equality.
|
Predicate |
exists(Subquery<?> subquery)
Create a predicate testing the existence of a subquery result.
|
<T> Expression<T> |
function(String name,
Class<T> returnType)
Create a reference to a function taking no params.
|
<T> Expression<T> |
function(String name,
Class<T> returnType,
Expression<?>... arguments)
Create an expression for the execution of a database
function.
|
Predicate |
ge(Expression<? extends Number> x,
Expression<? extends Number> y)
Create a predicate for testing whether the first argument is
greater than or equal to the second.
|
Predicate |
ge(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
greater than or equal to the second.
|
SessionFactoryImpl |
getEntityManagerFactory()
Provides protected access to the underlying
SessionFactoryImpl . |
<Y extends Comparable<? super Y>> |
greaterThan(Expression<? extends Y> x,
Expression<? extends Y> y)
Create a predicate for testing whether the first argument is
greater than the second.
|
<Y extends Comparable<? super Y>> |
greaterThan(Expression<? extends Y> x,
Y y)
Create a predicate for testing whether the first argument is
greater than the second.
|
<Y extends Comparable<? super Y>> |
greaterThanOrEqualTo(Expression<? extends Y> x,
Expression<? extends Y> y)
Create a predicate for testing whether the first argument is
greater than or equal to the second.
|
<Y extends Comparable<? super Y>> |
greaterThanOrEqualTo(Expression<? extends Y> x,
Y y)
Create a predicate for testing whether the first argument is
greater than or equal to the second.
|
<X extends Comparable<? super X>> |
greatest(Expression<X> x)
Create an aggregate expression for finding the greatest of
the values (strings, dates, etc).
|
Predicate |
gt(Expression<? extends Number> x,
Expression<? extends Number> y)
Create a predicate for testing whether the first argument is
greater than the second.
|
Predicate |
gt(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
greater than the second.
|
<T> CriteriaBuilder.In<T> |
in(Expression<? extends T> expression)
Create predicate to test whether given expression
is contained in a list of values.
|
<T> CriteriaBuilder.In<T> |
in(Expression<? extends T> expression,
Collection<T> values) |
<T> CriteriaBuilder.In<T> |
in(Expression<? extends T> expression,
Expression<? extends T>... values) |
<T> CriteriaBuilder.In<T> |
in(Expression<? extends T> expression,
T... values) |
<C extends Collection<?>> |
isEmpty(Expression<C> collectionExpression)
Create a predicate that tests whether a collection is empty.
|
Predicate |
isFalse(Expression<Boolean> expression)
Create a predicate testing for a false value.
|
<M extends Map<?,?>> |
isMapEmpty(Expression<M> mapExpression)
Create a predicate that tests whether a Map is empty.
|
<M extends Map<?,?>> |
isMapNotEmpty(Expression<M> mapExpression)
Create a predicate that tests whether a Map is
not empty.
|
<E,C extends Collection<E>> |
isMember(E e,
Expression<C> collectionExpression)
Create a predicate that tests whether an element is
a member of a collection.
|
<E,C extends Collection<E>> |
isMember(Expression<E> elementExpression,
Expression<C> collectionExpression)
Create a predicate that tests whether an element is
a member of a collection.
|
<C extends Collection<?>> |
isNotEmpty(Expression<C> collectionExpression)
Create a predicate that tests whether a collection is
not empty.
|
<E,C extends Collection<E>> |
isNotMember(E e,
Expression<C> cExpression)
Create a predicate that tests whether an element is
not a member of a collection.
|
<E,C extends Collection<E>> |
isNotMember(Expression<E> eExpression,
Expression<C> cExpression)
Create a predicate that tests whether an element is
not a member of a collection.
|
Predicate |
isNotNull(Expression<?> x)
Create a predicate to test whether the expression is not null.
|
Predicate |
isNull(Expression<?> x)
Create a predicate to test whether the expression is null.
|
Predicate |
isTrue(Expression<Boolean> expression)
Create a predicate testing for a true value.
|
<K,M extends Map<K,?>> |
keys(M map)
Create an expression that returns the keys of a map.
|
Predicate |
le(Expression<? extends Number> x,
Expression<? extends Number> y)
Create a predicate for testing whether the first argument is
less than or equal to the second.
|
Predicate |
le(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
less than or equal to the second.
|
<X extends Comparable<? super X>> |
least(Expression<X> x)
Create an aggregate expression for finding the least of
the values (strings, dates, etc).
|
Expression<Integer> |
length(Expression<String> value)
Create expression to return length of a string.
|
<Y extends Comparable<? super Y>> |
lessThan(Expression<? extends Y> x,
Expression<? extends Y> y)
Create a predicate for testing whether the first argument is
less than the second.
|
<Y extends Comparable<? super Y>> |
lessThan(Expression<? extends Y> x,
Y y)
Create a predicate for testing whether the first argument is
less than the second.
|
<Y extends Comparable<? super Y>> |
lessThanOrEqualTo(Expression<? extends Y> x,
Expression<? extends Y> y)
Create a predicate for testing whether the first argument is
less than or equal to the second.
|
<Y extends Comparable<? super Y>> |
lessThanOrEqualTo(Expression<? extends Y> x,
Y y)
Create a predicate for testing whether the first argument is
less than or equal to the second.
|
Predicate |
like(Expression<String> matchExpression,
Expression<String> pattern)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
like(Expression<String> matchExpression,
Expression<String> pattern,
char escapeCharacter)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
like(Expression<String> matchExpression,
Expression<String> pattern,
Expression<Character> escapeCharacter)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
like(Expression<String> matchExpression,
String pattern)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
like(Expression<String> matchExpression,
String pattern,
char escapeCharacter)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
like(Expression<String> matchExpression,
String pattern,
Expression<Character> escapeCharacter)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
<T> Expression<T> |
literal(T value)
Create an expression for a literal.
|
Expression<Integer> |
locate(Expression<String> string,
Expression<String> pattern)
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<Integer> |
locate(Expression<String> string,
Expression<String> pattern,
Expression<Integer> start)
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<Integer> |
locate(Expression<String> string,
String pattern)
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<Integer> |
locate(Expression<String> string,
String pattern,
int start)
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<String> |
lower(Expression<String> value)
Create expression for converting a string to lowercase.
|
Predicate |
lt(Expression<? extends Number> x,
Expression<? extends Number> y)
Create a predicate for testing whether the first argument is
less than the second.
|
Predicate |
lt(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
less than the second.
|
<M extends Map<?,?>> |
mapSize(Expression<M> mapExpression)
Create an expression that tests the size of a map.
|
<M extends Map<?,?>> |
mapSize(M map)
Create an expression that tests the size of a map.
|
<N extends Number> |
max(Expression<N> x)
Create an aggregate expression applying the numerical max
operation.
|
<N extends Number> |
min(Expression<N> x)
Create an aggregate expression applying the numerical min
operation.
|
Expression<Integer> |
mod(Expression<Integer> expression1,
Expression<Integer> expression2)
Create an expression that returns the modulus
of its arguments.
|
Expression<Integer> |
mod(Expression<Integer> expression,
Integer integer)
Create an expression that returns the modulus
of its arguments.
|
Expression<Integer> |
mod(Integer integer,
Expression<Integer> expression)
Create an expression that returns the modulus
of its arguments.
|
<N extends Number> |
neg(Expression<N> expression)
Create an expression that returns the arithmetic negation
of its argument.
|
Predicate |
not(Expression<Boolean> expression)
Create a negation of the given restriction.
|
Predicate |
notEqual(Expression<?> x,
Expression<?> y)
Create a predicate for testing the arguments for inequality.
|
Predicate |
notEqual(Expression<?> x,
Object y)
Create a predicate for testing the arguments for inequality.
|
Predicate |
notLike(Expression<String> matchExpression,
Expression<String> pattern)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
notLike(Expression<String> matchExpression,
Expression<String> pattern,
char escapeCharacter)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
notLike(Expression<String> matchExpression,
Expression<String> pattern,
Expression<Character> escapeCharacter)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
notLike(Expression<String> matchExpression,
String pattern)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
notLike(Expression<String> matchExpression,
String pattern,
char escapeCharacter)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
notLike(Expression<String> matchExpression,
String pattern,
Expression<Character> escapeCharacter)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
<Y> Expression<Y> |
nullif(Class<Y> type,
Expression<Y> exp1,
Expression<?> exp2) |
<Y> Expression<Y> |
nullif(Class<Y> type,
Expression<Y> exp1,
Y exp2) |
<Y> Expression<Y> |
nullif(Expression<Y> exp1,
Expression<?> exp2)
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.
|
<Y> Expression<Y> |
nullif(Expression<Y> exp1,
Y exp2)
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.
|
<T> Expression<T> |
nullLiteral(Class<T> resultClass)
Create an expression for a null literal with the given type.
|
Predicate |
or(Expression<Boolean> x,
Expression<Boolean> y)
Create a disjunction of the given boolean expressions.
|
Predicate |
or(Predicate... restrictions)
Create a disjunction of the given restriction predicates.
|
<T> ParameterExpression<T> |
parameter(Class<T> paramClass)
Create a parameter expression.
|
<T> ParameterExpression<T> |
parameter(Class<T> paramClass,
String name)
Create a parameter expression with the given name.
|
<N extends Number> |
prod(Expression<? extends N> expression1,
Expression<? extends N> expression2)
Create an expression that returns the product
of its arguments.
|
<N extends Number> |
prod(Expression<? extends N> expression,
N n)
Create an expression that returns the product
of its arguments.
|
<N extends Number> |
prod(N n,
Expression<? extends N> expression)
Create an expression that returns the product
of its arguments.
|
Expression<Number> |
quot(Expression<? extends Number> expression1,
Expression<? extends Number> expression2)
Create an expression that returns the quotient
of its arguments.
|
Expression<Number> |
quot(Expression<? extends Number> expression,
Number number)
Create an expression that returns the quotient
of its arguments.
|
Expression<Number> |
quot(Number number,
Expression<? extends Number> expression)
Create an expression that returns the quotient
of its arguments.
|
<R> CriteriaBuilder.Case<R> |
selectCase()
Create a general case expression.
|
<R> CriteriaBuilder.Case<R> |
selectCase(Class<R> type) |
<C,R> CriteriaBuilder.SimpleCase<C,R> |
selectCase(Class<R> type,
Expression<? extends C> expression) |
<C,R> CriteriaBuilder.SimpleCase<C,R> |
selectCase(Expression<? extends C> expression)
Create a simple case expression.
|
<C extends Collection<?>> |
size(C c)
Create an expression that tests the size of a collection.
|
<C extends Collection<?>> |
size(Expression<C> exp)
Create an expression that tests the size of a collection.
|
<Y> Expression<Y> |
some(Subquery<Y> subquery)
Create a some expression over the subquery results.
|
Expression<Double> |
sqrt(Expression<? extends Number> expression)
Create an expression that returns the square root
of its argument.
|
Expression<String> |
substring(Expression<String> value,
Expression<Integer> start)
Create an expression for substring extraction.
|
Expression<String> |
substring(Expression<String> value,
Expression<Integer> start,
Expression<Integer> length)
Create an expression for substring extraction.
|
Expression<String> |
substring(Expression<String> value,
int start)
Create an expression for substring extraction.
|
Expression<String> |
substring(Expression<String> value,
int start,
int length)
Create an expression for substring extraction.
|
<N extends Number> |
sum(Expression<? extends N> expression1,
Expression<? extends N> expression2)
Create an expression that returns the sum
of its arguments.
|
<N extends Number> |
sum(Expression<? extends N> expression,
N n)
Create an expression that returns the sum
of its arguments.
|
<N extends Number> |
sum(Expression<N> x)
Create an aggregate expression applying the sum operation.
|
<N extends Number> |
sum(N n,
Expression<? extends N> expression)
Create an expression that returns the sum
of its arguments.
|
Expression<Double> |
sumAsDouble(Expression<Float> x)
Create an aggregate expression applying the sum operation to a
Float-valued expression, returning a Double result.
|
Expression<Long> |
sumAsLong(Expression<Integer> x)
Create an aggregate expression applying the sum operation to an
Integer-valued expression, returning a Long result.
|
ExpressionImplementor<BigDecimal> |
toBigDecimal(Expression<? extends Number> expression)
Typecast.
|
ExpressionImplementor<BigInteger> |
toBigInteger(Expression<? extends Number> expression)
Typecast.
|
ExpressionImplementor<Double> |
toDouble(Expression<? extends Number> expression)
Typecast.
|
ExpressionImplementor<Float> |
toFloat(Expression<? extends Number> expression)
Typecast.
|
ExpressionImplementor<Integer> |
toInteger(Expression<? extends Number> expression)
Typecast.
|
ExpressionImplementor<Long> |
toLong(Expression<? extends Number> expression)
Typecast.
|
ExpressionImplementor<String> |
toString(Expression<Character> characterExpression)
Typecast.
|
<X,T,E extends T> |
treat(CollectionJoin<X,T> join,
Class<E> type)
Downcast CollectionJoin object to the specified type.
|
<X,T,V extends T> |
treat(Join<X,T> join,
Class<V> type)
Downcast Join object to the specified type.
|
<X,T,E extends T> |
treat(ListJoin<X,T> join,
Class<E> type)
Downcast ListJoin object to the specified type.
|
<X,K,T,V extends T> |
treat(MapJoin<X,K,T> join,
Class<V> type)
Downcast MapJoin object to the specified type.
|
<X,T extends X> |
treat(Path<X> path,
Class<T> type)
Downcast Path object to the specified type.
|
<X,T extends X> |
treat(Root<X> root,
Class<T> type)
Downcast Root object to the specified type.
|
<X,T,E extends T> |
treat(SetJoin<X,T> join,
Class<E> type)
Downcast SetJoin object to the specified type.
|
Expression<String> |
trim(char trimCharacter,
Expression<String> trimSource)
Create expression to trim character from both ends of
a string.
|
Expression<String> |
trim(CriteriaBuilder.Trimspec trimspec,
char trimCharacter,
Expression<String> trimSource)
Create expression to trim character from a string.
|
Expression<String> |
trim(CriteriaBuilder.Trimspec trimspec,
Expression<Character> trimCharacter,
Expression<String> trimSource)
Create expression to trim character from a string.
|
Expression<String> |
trim(CriteriaBuilder.Trimspec trimspec,
Expression<String> trimSource)
Create expression to trim blanks from a string.
|
Expression<String> |
trim(Expression<Character> trimCharacter,
Expression<String> trimSource)
Create expression to trim character from both ends of
a string.
|
Expression<String> |
trim(Expression<String> trimSource)
Create expression to trim blanks from both ends of
a string.
|
CompoundSelection<Tuple> |
tuple(List<Selection<?>> selections)
Version of
tuple(Selection[]) taking a list. |
CompoundSelection<Tuple> |
tuple(Selection<?>... selections)
Create a tuple-valued selection item.
|
Expression<String> |
upper(Expression<String> value)
Create expression for converting a string to uppercase.
|
<V,M extends Map<?,V>> |
values(M map)
Create an expression that returns the values of a map.
|
Predicate |
wrap(Expression<Boolean> expression) |
public CriteriaBuilderImpl(SessionFactoryImpl sessionFactory)
public SessionFactoryImpl getEntityManagerFactory()
SessionFactoryImpl
.SessionFactoryImpl
public CriteriaQuery<Object> createQuery()
CriteriaBuilder
CriteriaQuery
object.createQuery
in interface CriteriaBuilder
public <T> CriteriaQuery<T> createQuery(Class<T> resultClass)
CriteriaBuilder
CriteriaQuery
object with the specified result
type.createQuery
in interface CriteriaBuilder
resultClass
- type of the query resultpublic CriteriaQuery<Tuple> createTupleQuery()
CriteriaBuilder
CriteriaQuery
object that returns a tuple of
objects as its result.createTupleQuery
in interface CriteriaBuilder
public <T> CriteriaUpdate<T> createCriteriaUpdate(Class<T> targetEntity)
CriteriaBuilder
CriteriaUpdate
query object to perform a bulk update operation.createCriteriaUpdate
in interface CriteriaBuilder
targetEntity
- target type for update operationpublic <T> CriteriaDelete<T> createCriteriaDelete(Class<T> targetEntity)
CriteriaBuilder
CriteriaDelete
query object to perform a bulk delete operation.createCriteriaDelete
in interface CriteriaBuilder
targetEntity
- target type for delete operationpublic CompoundSelection<Tuple> tuple(Selection<?>... selections)
CriteriaBuilder
tuple
in interface CriteriaBuilder
selections
- selection itemspublic CompoundSelection<Tuple> tuple(List<Selection<?>> selections)
tuple(Selection[])
taking a list.selections
- List of selections.public CompoundSelection<Object[]> array(Selection<?>... selections)
CriteriaBuilder
array
in interface CriteriaBuilder
selections
- selection itemspublic CompoundSelection<Object[]> array(List<Selection<?>> selections)
array(Selection[])
taking a list of selections.selections
- List of selections.public <Y> CompoundSelection<Y> array(Class<Y> type, List<Selection<?>> selections)
array(Selection[])
taking a list of selections,
as well as the type of array.type
- The type of arrayselections
- List of selections.public <Y> CompoundSelection<Y> construct(Class<Y> result, Selection<?>... selections)
CriteriaBuilder
construct
in interface CriteriaBuilder
result
- class whose instance is to be constructedselections
- arguments to the constructorpublic <Y> CompoundSelection<Y> construct(Class<Y> result, List<Selection<?>> selections)
construct(Class,Selection[])
taking the
to-be-constructed type as well as a list of selections.result
- The result class to be constructed.selections
- The selections to use in the constructor call.public Order asc(Expression<?> x)
CriteriaBuilder
asc
in interface CriteriaBuilder
x
- expression used to define the orderingpublic Order desc(Expression<?> x)
CriteriaBuilder
desc
in interface CriteriaBuilder
x
- expression used to define the orderingpublic Predicate wrap(Expression<Boolean> expression)
public Predicate not(Expression<Boolean> expression)
CriteriaBuilder
not
in interface CriteriaBuilder
expression
- restriction expressionpublic Predicate and(Expression<Boolean> x, Expression<Boolean> y)
CriteriaBuilder
and
in interface CriteriaBuilder
x
- boolean expressiony
- boolean expressionpublic Predicate or(Expression<Boolean> x, Expression<Boolean> y)
CriteriaBuilder
or
in interface CriteriaBuilder
x
- boolean expressiony
- boolean expressionpublic Predicate and(Predicate... restrictions)
CriteriaBuilder
and
in interface CriteriaBuilder
restrictions
- zero or more restriction predicatespublic Predicate or(Predicate... restrictions)
CriteriaBuilder
or
in interface CriteriaBuilder
restrictions
- zero or more restriction predicatespublic Predicate conjunction()
CriteriaBuilder
conjunction
in interface CriteriaBuilder
public Predicate disjunction()
CriteriaBuilder
disjunction
in interface CriteriaBuilder
public Predicate isTrue(Expression<Boolean> expression)
CriteriaBuilder
isTrue
in interface CriteriaBuilder
expression
- expression to be testedpublic Predicate isFalse(Expression<Boolean> expression)
CriteriaBuilder
isFalse
in interface CriteriaBuilder
expression
- expression to be testedpublic Predicate isNull(Expression<?> x)
CriteriaBuilder
isNull
in interface CriteriaBuilder
x
- expressionpublic Predicate isNotNull(Expression<?> x)
CriteriaBuilder
isNotNull
in interface CriteriaBuilder
x
- expressionpublic Predicate equal(Expression<?> x, Expression<?> y)
CriteriaBuilder
equal
in interface CriteriaBuilder
x
- expressiony
- expressionpublic Predicate notEqual(Expression<?> x, Expression<?> y)
CriteriaBuilder
notEqual
in interface CriteriaBuilder
x
- expressiony
- expressionpublic Predicate equal(Expression<?> x, Object y)
CriteriaBuilder
equal
in interface CriteriaBuilder
x
- expressiony
- objectpublic Predicate notEqual(Expression<?> x, Object y)
CriteriaBuilder
notEqual
in interface CriteriaBuilder
x
- expressiony
- objectpublic <Y extends Comparable<? super Y>> Predicate greaterThan(Expression<? extends Y> x, Expression<? extends Y> y)
CriteriaBuilder
greaterThan
in interface CriteriaBuilder
x
- expressiony
- expressionpublic <Y extends Comparable<? super Y>> Predicate lessThan(Expression<? extends Y> x, Expression<? extends Y> y)
CriteriaBuilder
lessThan
in interface CriteriaBuilder
x
- expressiony
- expressionpublic <Y extends Comparable<? super Y>> Predicate greaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y)
CriteriaBuilder
greaterThanOrEqualTo
in interface CriteriaBuilder
x
- expressiony
- expressionpublic <Y extends Comparable<? super Y>> Predicate lessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y)
CriteriaBuilder
lessThanOrEqualTo
in interface CriteriaBuilder
x
- expressiony
- expressionpublic <Y extends Comparable<? super Y>> Predicate greaterThan(Expression<? extends Y> x, Y y)
CriteriaBuilder
greaterThan
in interface CriteriaBuilder
x
- expressiony
- valuepublic <Y extends Comparable<? super Y>> Predicate lessThan(Expression<? extends Y> x, Y y)
CriteriaBuilder
lessThan
in interface CriteriaBuilder
x
- expressiony
- valuepublic <Y extends Comparable<? super Y>> Predicate greaterThanOrEqualTo(Expression<? extends Y> x, Y y)
CriteriaBuilder
greaterThanOrEqualTo
in interface CriteriaBuilder
x
- expressiony
- valuepublic <Y extends Comparable<? super Y>> Predicate lessThanOrEqualTo(Expression<? extends Y> x, Y y)
CriteriaBuilder
lessThanOrEqualTo
in interface CriteriaBuilder
x
- expressiony
- valuepublic Predicate gt(Expression<? extends Number> x, Expression<? extends Number> y)
CriteriaBuilder
gt
in interface CriteriaBuilder
x
- expressiony
- expressionpublic Predicate lt(Expression<? extends Number> x, Expression<? extends Number> y)
CriteriaBuilder
lt
in interface CriteriaBuilder
x
- expressiony
- expressionpublic Predicate ge(Expression<? extends Number> x, Expression<? extends Number> y)
CriteriaBuilder
ge
in interface CriteriaBuilder
x
- expressiony
- expressionpublic Predicate le(Expression<? extends Number> x, Expression<? extends Number> y)
CriteriaBuilder
le
in interface CriteriaBuilder
x
- expressiony
- expressionpublic Predicate gt(Expression<? extends Number> x, Number y)
CriteriaBuilder
gt
in interface CriteriaBuilder
x
- expressiony
- valuepublic Predicate lt(Expression<? extends Number> x, Number y)
CriteriaBuilder
lt
in interface CriteriaBuilder
x
- expressiony
- valuepublic Predicate ge(Expression<? extends Number> x, Number y)
CriteriaBuilder
ge
in interface CriteriaBuilder
x
- expressiony
- valuepublic Predicate le(Expression<? extends Number> x, Number y)
CriteriaBuilder
le
in interface CriteriaBuilder
x
- expressiony
- valuepublic <Y extends Comparable<? super Y>> Predicate between(Expression<? extends Y> expression, Y lowerBound, Y upperBound)
CriteriaBuilder
between
in interface CriteriaBuilder
expression
- expressionlowerBound
- valueupperBound
- valuepublic <Y extends Comparable<? super Y>> Predicate between(Expression<? extends Y> expression, Expression<? extends Y> lowerBound, Expression<? extends Y> upperBound)
CriteriaBuilder
between
in interface CriteriaBuilder
expression
- expressionlowerBound
- expressionupperBound
- expressionpublic <T> CriteriaBuilder.In<T> in(Expression<? extends T> expression)
CriteriaBuilder
in
in interface CriteriaBuilder
expression
- to be tested against list of valuespublic <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 Predicate like(Expression<String> matchExpression, Expression<String> pattern)
CriteriaBuilder
like
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- string expressionpublic Predicate like(Expression<String> matchExpression, Expression<String> pattern, Expression<Character> escapeCharacter)
CriteriaBuilder
like
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- string expressionescapeCharacter
- escape character expressionpublic Predicate like(Expression<String> matchExpression, Expression<String> pattern, char escapeCharacter)
CriteriaBuilder
like
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- string expressionescapeCharacter
- escape characterpublic Predicate like(Expression<String> matchExpression, String pattern)
CriteriaBuilder
like
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- stringpublic Predicate like(Expression<String> matchExpression, String pattern, Expression<Character> escapeCharacter)
CriteriaBuilder
like
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- stringescapeCharacter
- escape character expressionpublic Predicate like(Expression<String> matchExpression, String pattern, char escapeCharacter)
CriteriaBuilder
like
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- stringescapeCharacter
- escape characterpublic Predicate notLike(Expression<String> matchExpression, Expression<String> pattern)
CriteriaBuilder
notLike
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- string expressionpublic Predicate notLike(Expression<String> matchExpression, Expression<String> pattern, Expression<Character> escapeCharacter)
CriteriaBuilder
notLike
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- string expressionescapeCharacter
- escape character expressionpublic Predicate notLike(Expression<String> matchExpression, Expression<String> pattern, char escapeCharacter)
CriteriaBuilder
notLike
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- string expressionescapeCharacter
- escape characterpublic Predicate notLike(Expression<String> matchExpression, String pattern)
CriteriaBuilder
notLike
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- stringpublic Predicate notLike(Expression<String> matchExpression, String pattern, Expression<Character> escapeCharacter)
CriteriaBuilder
notLike
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- stringescapeCharacter
- escape character expressionpublic Predicate notLike(Expression<String> matchExpression, String pattern, char escapeCharacter)
CriteriaBuilder
notLike
in interface CriteriaBuilder
matchExpression
- string expressionpattern
- stringescapeCharacter
- escape characterpublic <T> ParameterExpression<T> parameter(Class<T> paramClass)
CriteriaBuilder
parameter
in interface CriteriaBuilder
paramClass
- parameter classpublic <T> ParameterExpression<T> parameter(Class<T> paramClass, String name)
CriteriaBuilder
parameter
in interface CriteriaBuilder
paramClass
- parameter classname
- name that can be used to refer to
the parameterpublic <T> Expression<T> literal(T value)
CriteriaBuilder
literal
in interface CriteriaBuilder
value
- value represented by the expressionpublic <T> Expression<T> nullLiteral(Class<T> resultClass)
CriteriaBuilder
nullLiteral
in interface CriteriaBuilder
resultClass
- type of the null literalpublic <N extends Number> Expression<Double> avg(Expression<N> x)
CriteriaBuilder
avg
in interface CriteriaBuilder
x
- expression representing input value to avg operationpublic <N extends Number> Expression<N> sum(Expression<N> x)
CriteriaBuilder
sum
in interface CriteriaBuilder
x
- expression representing input value to sum operationpublic Expression<Long> sumAsLong(Expression<Integer> x)
CriteriaBuilder
sumAsLong
in interface CriteriaBuilder
x
- expression representing input value to sum operationpublic Expression<Double> sumAsDouble(Expression<Float> x)
CriteriaBuilder
sumAsDouble
in interface CriteriaBuilder
x
- expression representing input value to sum operationpublic <N extends Number> Expression<N> max(Expression<N> x)
CriteriaBuilder
max
in interface CriteriaBuilder
x
- expression representing input value to max operationpublic <N extends Number> Expression<N> min(Expression<N> x)
CriteriaBuilder
min
in interface CriteriaBuilder
x
- expression representing input value to min operationpublic <X extends Comparable<? super X>> Expression<X> greatest(Expression<X> x)
CriteriaBuilder
greatest
in interface CriteriaBuilder
x
- expression representing input value to greatest
operationpublic <X extends Comparable<? super X>> Expression<X> least(Expression<X> x)
CriteriaBuilder
least
in interface CriteriaBuilder
x
- expression representing input value to least
operationpublic Expression<Long> count(Expression<?> x)
CriteriaBuilder
count
in interface CriteriaBuilder
x
- expression representing input value to count
operationpublic Expression<Long> countDistinct(Expression<?> x)
CriteriaBuilder
countDistinct
in interface CriteriaBuilder
x
- expression representing input value to
count distinct operationpublic <T> Expression<T> function(String name, Class<T> returnType, Expression<?>... arguments)
CriteriaBuilder
function
in interface CriteriaBuilder
name
- function namereturnType
- expected result typearguments
- function argumentspublic <T> Expression<T> function(String name, Class<T> returnType)
name
- The function name.returnType
- The return type.public <N extends Number> Expression<N> abs(Expression<N> expression)
CriteriaBuilder
abs
in interface CriteriaBuilder
expression
- expressionpublic Expression<Double> sqrt(Expression<? extends Number> expression)
CriteriaBuilder
sqrt
in interface CriteriaBuilder
expression
- expressionpublic Expression<Date> currentDate()
CriteriaBuilder
currentDate
in interface CriteriaBuilder
public Expression<Timestamp> currentTimestamp()
CriteriaBuilder
currentTimestamp
in interface CriteriaBuilder
public Expression<Time> currentTime()
CriteriaBuilder
currentTime
in interface CriteriaBuilder
public Expression<String> substring(Expression<String> value, Expression<Integer> start)
CriteriaBuilder
substring
in interface CriteriaBuilder
value
- string expressionstart
- start position expressionpublic Expression<String> substring(Expression<String> value, int start)
CriteriaBuilder
substring
in interface CriteriaBuilder
value
- string expressionstart
- start positionpublic Expression<String> substring(Expression<String> value, Expression<Integer> start, Expression<Integer> length)
CriteriaBuilder
substring
in interface CriteriaBuilder
value
- string expressionstart
- start position expressionlength
- length expressionpublic Expression<String> substring(Expression<String> value, int start, int length)
CriteriaBuilder
substring
in interface CriteriaBuilder
value
- string expressionstart
- start positionlength
- lengthpublic Expression<String> trim(Expression<String> trimSource)
CriteriaBuilder
trim
in interface CriteriaBuilder
trimSource
- expression for string to trimpublic Expression<String> trim(CriteriaBuilder.Trimspec trimspec, Expression<String> trimSource)
CriteriaBuilder
trim
in interface CriteriaBuilder
trimspec
- trim specificationtrimSource
- expression for string to trimpublic Expression<String> trim(Expression<Character> trimCharacter, Expression<String> trimSource)
CriteriaBuilder
trim
in interface CriteriaBuilder
trimCharacter
- expression for character to be trimmedtrimSource
- expression for string to trimpublic Expression<String> trim(CriteriaBuilder.Trimspec trimspec, Expression<Character> trimCharacter, Expression<String> trimSource)
CriteriaBuilder
trim
in interface CriteriaBuilder
trimspec
- trim specificationtrimCharacter
- expression for character to be trimmedtrimSource
- expression for string to trimpublic Expression<String> trim(char trimCharacter, Expression<String> trimSource)
CriteriaBuilder
trim
in interface CriteriaBuilder
trimCharacter
- character to be trimmedtrimSource
- expression for string to trimpublic Expression<String> trim(CriteriaBuilder.Trimspec trimspec, char trimCharacter, Expression<String> trimSource)
CriteriaBuilder
trim
in interface CriteriaBuilder
trimspec
- trim specificationtrimCharacter
- character to be trimmedtrimSource
- expression for string to trimpublic Expression<String> lower(Expression<String> value)
CriteriaBuilder
lower
in interface CriteriaBuilder
value
- string expressionpublic Expression<String> upper(Expression<String> value)
CriteriaBuilder
upper
in interface CriteriaBuilder
value
- string expressionpublic Expression<Integer> length(Expression<String> value)
CriteriaBuilder
length
in interface CriteriaBuilder
value
- string expressionpublic Expression<Integer> locate(Expression<String> string, Expression<String> pattern)
CriteriaBuilder
locate
in interface CriteriaBuilder
string
- expression for string to be searchedpattern
- expression for string to be locatedpublic Expression<Integer> locate(Expression<String> string, Expression<String> pattern, Expression<Integer> start)
CriteriaBuilder
locate
in interface CriteriaBuilder
string
- expression for string to be searchedpattern
- expression for string to be locatedstart
- expression for position at which to start searchpublic Expression<Integer> locate(Expression<String> string, String pattern)
CriteriaBuilder
locate
in interface CriteriaBuilder
string
- expression for string to be searchedpattern
- string to be locatedpublic Expression<Integer> locate(Expression<String> string, String pattern, int start)
CriteriaBuilder
locate
in interface CriteriaBuilder
string
- expression for string to be searchedpattern
- string to be locatedstart
- position at which to start searchpublic <N extends Number> Expression<N> neg(Expression<N> expression)
CriteriaBuilder
neg
in interface CriteriaBuilder
expression
- expressionpublic <N extends Number> Expression<N> sum(Expression<? extends N> expression1, Expression<? extends N> expression2)
CriteriaBuilder
sum
in interface CriteriaBuilder
expression1
- expressionexpression2
- expressionpublic <N extends Number> Expression<N> prod(Expression<? extends N> expression1, Expression<? extends N> expression2)
CriteriaBuilder
prod
in interface CriteriaBuilder
expression1
- expressionexpression2
- expressionpublic <N extends Number> Expression<N> diff(Expression<? extends N> expression1, Expression<? extends N> expression2)
CriteriaBuilder
diff
in interface CriteriaBuilder
expression1
- expressionexpression2
- expressionpublic <N extends Number> Expression<N> sum(Expression<? extends N> expression, N n)
CriteriaBuilder
sum
in interface CriteriaBuilder
expression
- expressionn
- valuepublic <N extends Number> Expression<N> prod(Expression<? extends N> expression, N n)
CriteriaBuilder
prod
in interface CriteriaBuilder
expression
- expressionn
- valuepublic <N extends Number> Expression<N> diff(Expression<? extends N> expression, N n)
CriteriaBuilder
diff
in interface CriteriaBuilder
expression
- expressionn
- valuepublic <N extends Number> Expression<N> sum(N n, Expression<? extends N> expression)
CriteriaBuilder
sum
in interface CriteriaBuilder
n
- valueexpression
- expressionpublic <N extends Number> Expression<N> prod(N n, Expression<? extends N> expression)
CriteriaBuilder
prod
in interface CriteriaBuilder
n
- valueexpression
- expressionpublic <N extends Number> Expression<N> diff(N n, Expression<? extends N> expression)
CriteriaBuilder
diff
in interface CriteriaBuilder
n
- valueexpression
- expressionpublic Expression<Number> quot(Expression<? extends Number> expression1, Expression<? extends Number> expression2)
CriteriaBuilder
quot
in interface CriteriaBuilder
expression1
- expressionexpression2
- expressionpublic Expression<Number> quot(Expression<? extends Number> expression, Number number)
CriteriaBuilder
quot
in interface CriteriaBuilder
expression
- expressionnumber
- valuepublic Expression<Number> quot(Number number, Expression<? extends Number> expression)
CriteriaBuilder
quot
in interface CriteriaBuilder
number
- valueexpression
- expressionpublic Expression<Integer> mod(Expression<Integer> expression1, Expression<Integer> expression2)
CriteriaBuilder
mod
in interface CriteriaBuilder
expression1
- expressionexpression2
- expressionpublic Expression<Integer> mod(Expression<Integer> expression, Integer integer)
CriteriaBuilder
mod
in interface CriteriaBuilder
expression
- expressioninteger
- valuepublic Expression<Integer> mod(Integer integer, Expression<Integer> expression)
CriteriaBuilder
mod
in interface CriteriaBuilder
integer
- valueexpression
- expressionpublic ExpressionImplementor<Long> toLong(Expression<? extends Number> expression)
CriteriaBuilder
toLong
in interface CriteriaBuilder
expression
- numeric expressionpublic ExpressionImplementor<Integer> toInteger(Expression<? extends Number> expression)
CriteriaBuilder
toInteger
in interface CriteriaBuilder
expression
- numeric expressionpublic ExpressionImplementor<Float> toFloat(Expression<? extends Number> expression)
CriteriaBuilder
toFloat
in interface CriteriaBuilder
expression
- numeric expressionpublic ExpressionImplementor<Double> toDouble(Expression<? extends Number> expression)
CriteriaBuilder
toDouble
in interface CriteriaBuilder
expression
- numeric expressionpublic ExpressionImplementor<BigDecimal> toBigDecimal(Expression<? extends Number> expression)
CriteriaBuilder
toBigDecimal
in interface CriteriaBuilder
expression
- numeric expressionpublic ExpressionImplementor<BigInteger> toBigInteger(Expression<? extends Number> expression)
CriteriaBuilder
toBigInteger
in interface CriteriaBuilder
expression
- numeric expressionpublic ExpressionImplementor<String> toString(Expression<Character> characterExpression)
CriteriaBuilder
toString
in interface CriteriaBuilder
characterExpression
- expressionpublic <X,T,V extends T> Join<X,V> treat(Join<X,T> join, Class<V> type)
CriteriaBuilder
treat
in interface CriteriaBuilder
join
- Join objecttype
- type to be downcast topublic <X,T,E extends T> CollectionJoin<X,E> treat(CollectionJoin<X,T> join, Class<E> type)
CriteriaBuilder
treat
in interface CriteriaBuilder
join
- CollectionJoin objecttype
- type to be downcast topublic <X,T,E extends T> SetJoin<X,E> treat(SetJoin<X,T> join, Class<E> type)
CriteriaBuilder
treat
in interface CriteriaBuilder
join
- SetJoin objecttype
- type to be downcast topublic <X,T,E extends T> ListJoin<X,E> treat(ListJoin<X,T> join, Class<E> type)
CriteriaBuilder
treat
in interface CriteriaBuilder
join
- ListJoin objecttype
- type to be downcast topublic <X,K,T,V extends T> MapJoin<X,K,V> treat(MapJoin<X,K,T> join, Class<V> type)
CriteriaBuilder
treat
in interface CriteriaBuilder
join
- MapJoin objecttype
- type to be downcast topublic <X,T extends X> Path<T> treat(Path<X> path, Class<T> type)
CriteriaBuilder
treat
in interface CriteriaBuilder
path
- pathtype
- type to be downcast topublic <X,T extends X> Root<T> treat(Root<X> root, Class<T> type)
CriteriaBuilder
treat
in interface CriteriaBuilder
root
- roottype
- type to be downcast topublic Predicate exists(Subquery<?> subquery)
CriteriaBuilder
exists
in interface CriteriaBuilder
subquery
- subquery whose result is to be testedpublic <Y> Expression<Y> all(Subquery<Y> subquery)
CriteriaBuilder
all
in interface CriteriaBuilder
subquery
- subquerypublic <Y> Expression<Y> some(Subquery<Y> subquery)
CriteriaBuilder
any
expression.some
in interface CriteriaBuilder
subquery
- subquerypublic <Y> Expression<Y> any(Subquery<Y> subquery)
CriteriaBuilder
some
expression.any
in interface CriteriaBuilder
subquery
- subquerypublic <Y> Expression<Y> coalesce(Expression<? extends Y> exp1, Expression<? extends Y> exp2)
CriteriaBuilder
coalesce
in interface CriteriaBuilder
exp1
- expressionexp2
- expressionpublic <Y> Expression<Y> coalesce(Class<Y> type, Expression<? extends Y> exp1, Expression<? extends Y> exp2)
public <Y> Expression<Y> coalesce(Expression<? extends Y> exp1, Y exp2)
CriteriaBuilder
coalesce
in interface CriteriaBuilder
exp1
- expressionexp2
- valuepublic <Y> Expression<Y> coalesce(Class<Y> type, Expression<? extends Y> exp1, Y exp2)
public <T> CriteriaBuilder.Coalesce<T> coalesce()
CriteriaBuilder
coalesce
in interface CriteriaBuilder
public <T> CriteriaBuilder.Coalesce<T> coalesce(Class<T> type)
public Expression<String> concat(Expression<String> string1, Expression<String> string2)
CriteriaBuilder
concat
in interface CriteriaBuilder
string1
- string expressionstring2
- string expressionpublic Expression<String> concat(Expression<String> string1, String string2)
CriteriaBuilder
concat
in interface CriteriaBuilder
string1
- string expressionstring2
- stringpublic Expression<String> concat(String string1, Expression<String> string2)
CriteriaBuilder
concat
in interface CriteriaBuilder
string1
- stringstring2
- string expressionpublic <Y> Expression<Y> nullif(Expression<Y> exp1, Expression<?> exp2)
CriteriaBuilder
nullif
in interface CriteriaBuilder
exp1
- expressionexp2
- expressionpublic <Y> Expression<Y> nullif(Class<Y> type, Expression<Y> exp1, Expression<?> exp2)
public <Y> Expression<Y> nullif(Expression<Y> exp1, Y exp2)
CriteriaBuilder
nullif
in interface CriteriaBuilder
exp1
- expressionexp2
- valuepublic <Y> Expression<Y> nullif(Class<Y> type, Expression<Y> exp1, Y exp2)
public <C,R> CriteriaBuilder.SimpleCase<C,R> selectCase(Expression<? extends C> expression)
CriteriaBuilder
selectCase
in interface CriteriaBuilder
expression
- to be tested against the case conditionspublic <C,R> CriteriaBuilder.SimpleCase<C,R> selectCase(Class<R> type, Expression<? extends C> expression)
public <R> CriteriaBuilder.Case<R> selectCase()
CriteriaBuilder
selectCase
in interface CriteriaBuilder
public <R> CriteriaBuilder.Case<R> selectCase(Class<R> type)
public <C extends Collection<?>> Expression<Integer> size(C c)
CriteriaBuilder
size
in interface CriteriaBuilder
c
- collectionpublic <C extends Collection<?>> Expression<Integer> size(Expression<C> exp)
CriteriaBuilder
size
in interface CriteriaBuilder
exp
- expressionpublic <V,M extends Map<?,V>> Expression<Collection<V>> values(M map)
CriteriaBuilder
values
in interface CriteriaBuilder
map
- mappublic <K,M extends Map<K,?>> Expression<Set<K>> keys(M map)
CriteriaBuilder
keys
in interface CriteriaBuilder
map
- mappublic <C extends Collection<?>> Predicate isEmpty(Expression<C> collectionExpression)
CriteriaBuilder
isEmpty
in interface CriteriaBuilder
collectionExpression
- expressionpublic <C extends Collection<?>> Predicate isNotEmpty(Expression<C> collectionExpression)
CriteriaBuilder
isNotEmpty
in interface CriteriaBuilder
collectionExpression
- expressionpublic <E,C extends Collection<E>> Predicate isMember(E e, Expression<C> collectionExpression)
CriteriaBuilder
isMember
in interface CriteriaBuilder
e
- elementcollectionExpression
- expressionpublic <E,C extends Collection<E>> Predicate isNotMember(E e, Expression<C> cExpression)
CriteriaBuilder
isNotMember
in interface CriteriaBuilder
e
- elementcExpression
- expressionpublic <E,C extends Collection<E>> Predicate isMember(Expression<E> elementExpression, Expression<C> collectionExpression)
CriteriaBuilder
isMember
in interface CriteriaBuilder
elementExpression
- element expressioncollectionExpression
- expressionpublic <E,C extends Collection<E>> Predicate isNotMember(Expression<E> eExpression, Expression<C> cExpression)
CriteriaBuilder
isNotMember
in interface CriteriaBuilder
eExpression
- element expressioncExpression
- expressionpublic <M extends Map<?,?>> Predicate isMapEmpty(Expression<M> mapExpression)
HibernateCriteriaBuilder
CriteriaBuilder.isEmpty(javax.persistence.criteria.Expression<C>)
isMapEmpty
in interface HibernateCriteriaBuilder
mapExpression
- The expression resolving to a Map which we
want to check for emptinesspublic <M extends Map<?,?>> Predicate isMapNotEmpty(Expression<M> mapExpression)
HibernateCriteriaBuilder
CriteriaBuilder.isNotEmpty(javax.persistence.criteria.Expression<C>)
isMapNotEmpty
in interface HibernateCriteriaBuilder
mapExpression
- The expression resolving to a Map which we
want to check for non-emptinesspublic <M extends Map<?,?>> Expression<Integer> mapSize(Expression<M> mapExpression)
HibernateCriteriaBuilder
CriteriaBuilder.size(javax.persistence.criteria.Expression<C>)
mapSize
in interface HibernateCriteriaBuilder
mapExpression
- The expression resolving to a Map for which we
want to know the sizepublic <M extends Map<?,?>> Expression<Integer> mapSize(M map)
HibernateCriteriaBuilder
mapSize
in interface HibernateCriteriaBuilder
map
- The Map for which we want to know the sizeCopyright © 2019 JBoss by Red Hat. All rights reserved.