public class CriteriaBuilderImpl extends java.lang.Object implements JpaCriteriaBuilder, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
CriteriaBuilderImpl.CaseImpl<R>
Implementation of Case interface from Criteria Builder
|
static class |
CriteriaBuilderImpl.CoalesceImpl<X>
Interface used to build coalesce expressions.
|
static class |
CriteriaBuilderImpl.SimpleCaseImpl<C,R>
Implementation of SimpleCase interface from CriteriaBuilder
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONCAT |
protected Metamodel |
metamodel |
static java.lang.String |
SIZE |
| Constructor and Description |
|---|
CriteriaBuilderImpl(Metamodel metamodel) |
| Modifier and Type | Method and Description |
|---|---|
<N extends java.lang.Number> |
abs(<any> x)
Create an expression that returns the absolute value of its argument.
|
<Y> <any> |
all(<any> subquery)
Create a predicate corresponding to an all expression over the subquery
results.
|
Predicate |
and(<any> x,
<any> y)
Create a conjunction of the given boolean expressions.
|
Predicate |
and(Predicate... restrictions)
Create a conjunction of the given restriction predicates.
|
<Y> <any> |
any(<any> subquery)
Create a predicate corresponding to an any expression over the subquery
results.
|
<any> |
array(<any>... selections)
Create an array-valued selection item
|
Order |
asc(<any> x)
Create an ordering by the ascending value of the expression.
|
<N extends java.lang.Number> |
avg(<any> x)
Create an expression applying the avg operation.
|
<Y extends java.lang.Comparable<? super Y>> |
between(<any> v,
<any> x,
<any> y)
Create a predicate for testing whether the first argument is between the
second and third arguments in value.
|
<Y extends java.lang.Comparable<? super Y>> |
between(<any> v,
Y x,
Y y)
Create a predicate for testing whether the first argument is between the
second and third arguments in value.
|
protected java.util.List<<any>> |
buildList(<any>... expressions) |
<T> <any> |
coalesce()
Create a coalesce expression.
|
<Y> <any> |
coalesce(<any> x,
<any> y)
Create an expression that returns null if all its arguments evaluate to
null, and the value of the first non-null argument otherwise.
|
<Y> <any> |
coalesce(<any> x,
Y y)
Create an expression that returns null if all its arguments evaluate to
null, and the value of the first non-null argument otherwise.
|
<any> |
concat(<any> x,
<any> y)
String concatenation operation.
|
<any> |
concat(<any> x,
java.lang.String y)
String concatenation operation.
|
<any> |
concat(java.lang.String x,
<any> y)
String concatenation operation.
|
Predicate |
conjunction()
Create a conjunction (with zero conjuncts).
|
<Y> <any> |
construct(java.lang.Class<Y> result,
<any>... selections)
Define a select list item corresponding to a constructor.
|
<any> |
count(<any> x)
Create an expression applying the count operation.
|
<any> |
countDistinct(<any> x)
Create an expression applying the count distinct operation.
|
<T> <any> |
createCriteriaDelete(java.lang.Class<T> targetEntity) |
<T> <any> |
createCriteriaUpdate(java.lang.Class<T> targetEntity) |
<any> |
createQuery()
Create a Criteria query object.
|
<T> <any> |
createQuery(java.lang.Class<T> resultClass)
Create a Criteria query object.
|
<any> |
createTupleQuery()
Create a Criteria query object that returns a tuple of
objects as its result.
|
<any> |
currentDate()
Create expression to return current date.
|
<any> |
currentTime()
Create expression to return current time.
|
<any> |
currentTimestamp()
Create expression to return current timestamp.
|
Order |
desc(<any> x)
Create an ordering by the descending value of the expression.
|
<N extends java.lang.Number> |
diff(<any> x,
<any> y)
Create an expression that returns the difference between its arguments.
|
<N extends java.lang.Number> |
diff(<any> x,
N y)
Create an expression that returns the difference between its arguments.
|
<N extends java.lang.Number> |
diff(N x,
<any> y)
Create an expression that returns the difference between its arguments.
|
Predicate |
disjunction()
Create a disjunction (with zero disjuncts).
|
Predicate |
equal(<any> x,
<any> y)
Create a predicate for testing the arguments for equality.
|
Predicate |
equal(<any> x,
java.lang.Object y)
Create a predicate for testing the arguments for equality.
|
Predicate |
exists(<any> subquery)
Create a predicate testing the existence of a subquery result.
|
Expression |
fromExpression(org.eclipse.persistence.expressions.Expression expression)
ADVANCED:
Allow a Criteria Expression to be built from a EclipseLink native API Expression object.
|
<T> <any> |
fromExpression(org.eclipse.persistence.expressions.Expression expression,
java.lang.Class<T> type)
ADVANCED:
Allow a Criteria Expression to be built from a EclipseLink native API Expression object.
|
<T> <any> |
function(java.lang.String name,
java.lang.Class<T> type,
<any>... args)
Create an expression for execution of a database function.
|
Predicate |
ge(<any> x,
<any> y)
Create a predicate for testing whether the first argument is greater than
or equal to the second.
|
Predicate |
ge(<any> x,
java.lang.Number y)
Create a predicate for testing whether the first argument is greater than
or equal to the second.
|
<Y extends java.lang.Comparable<? super Y>> |
greaterThan(<any> x,
<any> y)
Create a predicate for testing whether the first argument is greater than
the second.
|
<Y extends java.lang.Comparable<? super Y>> |
greaterThan(<any> x,
Y y)
Create a predicate for testing whether the first argument is greater than
the second.
|
<Y extends java.lang.Comparable<? super Y>> |
greaterThanOrEqualTo(<any> x,
<any> y)
Create a predicate for testing whether the first argument is greater than
or equal to the second.
|
<Y extends java.lang.Comparable<? super Y>> |
greaterThanOrEqualTo(<any> x,
Y y)
Create a predicate for testing whether the first argument is greater than
or equal to the second.
|
<X extends java.lang.Comparable<? super X>> |
greatest(<any> x)
Create an aggregate expression for finding the greatest of the values
(strings, dates, etc).
|
Predicate |
gt(<any> x,
<any> y)
Create a predicate for testing whether the first argument is greater than
the second.
|
Predicate |
gt(<any> x,
java.lang.Number y)
Create a predicate for testing whether the first argument is greater than
the second.
|
<T> <any> |
in(<any> expression)
Create predicate to test whether given expression is contained in a list
of values.
|
protected <T> <any> |
internalLiteral(T value)
Create an expression literal but without null validation.
|
<C extends java.util.Collection<?>> |
isEmpty(<any> collection)
Create a predicate that tests whether a collection is empty.
|
Predicate |
isFalse(<any> x)
Create a predicate testing for a false value.
|
<E,C extends java.util.Collection<E>> |
isMember(<any> elem,
<any> collection)
Create a predicate that tests whether an element is a member of a
collection.
|
<E,C extends java.util.Collection<E>> |
isMember(E elem,
<any> collection)
Create a predicate that tests whether an element is a member of a
collection.
|
<C extends java.util.Collection<?>> |
isNotEmpty(<any> collection)
Create a predicate that tests whether a collection is not empty.
|
<E,C extends java.util.Collection<E>> |
isNotMember(<any> elem,
<any> collection)
Create a predicate that tests whether an element is not a member of a
collection.
|
<E,C extends java.util.Collection<E>> |
isNotMember(E elem,
<any> collection)
Create a predicate that tests whether an element is not a member of a
collection.
|
Predicate |
isNotNull(<any> x)
Create a predicate to test whether the expression is not null.
|
Predicate |
isNull(<any> x)
Create a predicate to test whether the expression is null.
|
Predicate |
isTrue(<any> x)
Create a predicate testing for a true value.
|
<K,M extends java.util.Map<K,?>> |
keys(M map)
Create an expression that returns the keys of a map.
|
Predicate |
le(<any> x,
<any> y)
Create a predicate for testing whether the first argument is less than or
equal to the second.
|
Predicate |
le(<any> x,
java.lang.Number y)
Create a predicate for testing whether the first argument is less than or
equal to the second.
|
<X extends java.lang.Comparable<? super X>> |
least(<any> x)
Create an aggregate expression for finding the least of the values
(strings, dates, etc).
|
<any> |
length(<any> x)
Create expression to return length of a string.
|
<Y extends java.lang.Comparable<? super Y>> |
lessThan(<any> x,
<any> y)
Create a predicate for testing whether the first argument is less than
the second.
|
<Y extends java.lang.Comparable<? super Y>> |
lessThan(<any> x,
Y y)
Create a predicate for testing whether the first argument is less than
the second.
|
<Y extends java.lang.Comparable<? super Y>> |
lessThanOrEqualTo(<any> x,
<any> y)
Create a predicate for testing whether the first argument is less than or
equal to the second.
|
<Y extends java.lang.Comparable<? super Y>> |
lessThanOrEqualTo(<any> x,
Y y)
Create a predicate for testing whether the first argument is less than or
equal to the second.
|
Predicate |
like(<any> x,
<any> pattern)
Create a predicate for testing whether the expression satisfies the given
pattern.
|
Predicate |
like(<any> x,
<any> pattern,
<any> escapeChar)
Create a predicate for testing whether the expression satisfies the given
pattern.
|
Predicate |
like(<any> x,
<any> pattern,
char escapeChar)
Create a predicate for testing whether the expression satisfies the given
pattern.
|
Predicate |
like(<any> x,
java.lang.String pattern)
Create a predicate for testing whether the expression satisfies the given
pattern.
|
Predicate |
like(<any> x,
java.lang.String pattern,
<any> escapeChar)
Create a predicate for testing whether the expression satisfies the given
pattern.
|
Predicate |
like(<any> x,
java.lang.String pattern,
char escapeChar)
Create a predicate for testing whether the expression satisfies the given
pattern.
|
<T> <any> |
literal(T value)
Create an expression literal.
|
<any> |
locate(<any> x,
<any> pattern)
Create expression to locate the position of one string within another,
returning position of first character if found.
|
<any> |
locate(<any> x,
<any> pattern,
<any> from)
Create expression to locate the position of one string within another,
returning position of first character if found.
|
<any> |
locate(<any> x,
java.lang.String pattern)
Create expression to locate the position of one string within another,
returning position of first character if found.
|
<any> |
locate(<any> x,
java.lang.String pattern,
int from)
Create expression to locate the position of one string within another,
returning position of first character if found.
|
<any> |
lower(<any> x)
Create expression for converting a string to lowercase.
|
Predicate |
lt(<any> x,
<any> y)
Create a predicate for testing whether the first argument is less than
the second.
|
Predicate |
lt(<any> x,
java.lang.Number y)
Create a predicate for testing whether the first argument is less than
the second.
|
<N extends java.lang.Number> |
max(<any> x)
Create an expression applying the numerical max operation.
|
<N extends java.lang.Number> |
min(<any> x)
Create an expression applying the numerical min operation.
|
<any> |
mod(<any> x,
<any> y)
Create an expression that returns the modulus of its arguments.
|
<any> |
mod(<any> x,
java.lang.Integer y)
Create an expression that returns the modulus of its arguments.
|
<any> |
mod(java.lang.Integer x,
<any> y)
Create an expression that returns the modulus of its arguments.
|
<N extends java.lang.Number> |
neg(<any> x)
Create an expression that returns the arithmetic negation of its
argument.
|
Predicate |
not(<any> restriction)
Create a negation of the given restriction.
|
Predicate |
notEqual(<any> x,
<any> y)
Create a predicate for testing the arguments for inequality.
|
Predicate |
notEqual(<any> x,
java.lang.Object y)
Create a predicate for testing the arguments for inequality.
|
Predicate |
notLike(<any> x,
<any> pattern)
Create a predicate for testing whether the expression does not satisfy
the given pattern.
|
Predicate |
notLike(<any> x,
<any> pattern,
<any> escapeChar)
Create a predicate for testing whether the expression does not satisfy
the given pattern.
|
Predicate |
notLike(<any> x,
<any> pattern,
char escapeChar)
Create a predicate for testing whether the expression does not satisfy
the given pattern.
|
Predicate |
notLike(<any> x,
java.lang.String pattern)
Create a predicate for testing whether the expression does not satisfy
the given pattern.
|
Predicate |
notLike(<any> x,
java.lang.String pattern,
<any> escapeChar)
Create a predicate for testing whether the expression does not satisfy
the given pattern.
|
Predicate |
notLike(<any> x,
java.lang.String pattern,
char escapeChar)
Create a predicate for testing whether the expression does not satisfy
the given pattern.
|
<Y> <any> |
nullif(<any> x,
<any> y)
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> <any> |
nullif(<any> x,
Y y)
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> <any> |
nullLiteral(java.lang.Class<T> resultClass)
Create an expression for a null literal with the given type.
|
Predicate |
or(<any> x,
<any> y)
Create a disjunction of the given boolean expressions.
|
Predicate |
or(Predicate... restrictions)
Create a disjunction of the given restriction predicates.
|
<T> <any> |
parameter(java.lang.Class<T> paramClass)
Create a parameter.
|
<T> <any> |
parameter(java.lang.Class<T> paramClass,
java.lang.String name)
Create a parameter expression with the given name.
|
<N extends java.lang.Number> |
prod(<any> x,
<any> y)
Create an expression that returns the product of its arguments.
|
<N extends java.lang.Number> |
prod(<any> x,
N y)
Create an expression that returns the product of its arguments.
|
<N extends java.lang.Number> |
prod(N x,
<any> y)
Create an expression that returns the product of its arguments.
|
<any> |
quot(<any> x,
<any> y)
Create an expression that returns the quotient of its arguments.
|
<any> |
quot(<any> x,
java.lang.Number y)
Create an expression that returns the quotient of its arguments.
|
<any> |
quot(java.lang.Number x,
<any> y)
Create an expression that returns the quotient of its arguments.
|
<R> <any> |
selectCase()
Create a general case expression.
|
<C,R> <any> |
selectCase(<any> expression)
Create simple case expression.
|
<C extends java.util.Collection<?>> |
size(<any> collection)
Create an expression that tests the size of a collection.
|
<C extends java.util.Collection<?>> |
size(C collection)
Create an expression that tests the size of a collection.
|
<Y> <any> |
some(<any> subquery)
Create a predicate corresponding to a some expression over the subquery
results.
|
<any> |
sqrt(<any> x)
Create an expression that returns the square root of its argument.
|
<any> |
substring(<any> x,
<any> from)
Substring extraction operation.
|
<any> |
substring(<any> x,
<any> from,
<any> len)
Substring extraction operation.
|
<any> |
substring(<any> x,
int from)
Substring extraction operation.
|
<any> |
substring(<any> x,
int from,
int len)
Substring extraction operation.
|
<N extends java.lang.Number> |
sum(<any> x)
Create an expression applying the sum operation.
|
<N extends java.lang.Number> |
sum(<any> x,
<any> y)
Create an expression that returns the sum of its arguments.
|
<N extends java.lang.Number> |
sum(<any> x,
N y)
Create an expression that returns the sum of its arguments.
|
<N extends java.lang.Number> |
sum(N x,
<any> y)
Create an expression that returns the sum of its arguments.
|
<any> |
sumAsDouble(<any> x)
Create an aggregate expression applying the sum operation to a
Float-valued expression, returning a Double result.
|
<any> |
sumAsLong(<any> x)
Create an aggregate expression applying the sum operation to an
Integer-valued expression, returning a Long result.
|
<any> |
toBigDecimal(<any> number)
Typecast.
|
<any> |
toBigInteger(<any> number)
Typecast.
|
<any> |
toDouble(<any> number)
Typecast.
|
org.eclipse.persistence.expressions.Expression |
toExpression(Expression expression)
ADVANCED:
Allow a Criteria Expression to be converted to a EclipseLink native API Expression object.
|
<any> |
toFloat(<any> number)
Typecast.
|
<any> |
toInteger(<any> number)
Typecast.
|
<any> |
toLong(<any> number)
Typecast.
|
<any> |
toString(<any> character)
Typecast.
|
<X,T,E extends T> |
treat(<any> join,
java.lang.Class<E> type) |
<X,T,E extends T> |
treat(<any> join,
java.lang.Class<E> type) |
<X,T,E extends T> |
treat(<any> join,
java.lang.Class<E> type) |
<X,T extends X> |
treat(<any> path,
java.lang.Class<T> type) |
<X,T extends X> |
treat(<any> root,
java.lang.Class<T> type) |
<X,K,T,V extends T> |
treat(<any> join,
java.lang.Class<V> type) |
<X,T,V extends T> |
treat(<any> join,
java.lang.Class<V> type) |
<any> |
trim(<any> x)
Create expression to trim blanks from both ends of a string.
|
<any> |
trim(<any> t,
<any> x)
Create expression to trim character from both ends of a string.
|
<any> |
trim(char t,
<any> x)
Create expression to trim character from both ends of a string.
|
<any> |
trim(Trimspec ts,
<any> x)
Create expression to trim blanks from a string.
|
<any> |
trim(Trimspec ts,
<any> t,
<any> x)
Create expression to trim character from a string.
|
<any> |
trim(Trimspec ts,
char t,
<any> x)
Create expression to trim character from a string.
|
<any> |
tuple(<any>... selections) |
<any> |
upper(<any> x)
Create expression for converting a string to uppercase.
|
<V,M extends java.util.Map<?,V>> |
values(M map)
Create an expression that returns the values of a map.
|
public static final java.lang.String CONCAT
public static final java.lang.String SIZE
protected Metamodel metamodel
public <any> createQuery()
public <T> <any> createQuery(java.lang.Class<T> resultClass)
public <any> createTupleQuery()
public <Y> <any> construct(java.lang.Class<Y> result,
<any>... selections)
result - class whose instance is to be constructedselections - arguments to the constructorpublic <any> tuple(<any>... selections)
public <any> array(<any>... selections)
selections - selection itemsjava.lang.IllegalArgumentException - if an argument is a tuple- or
array-valued selection itempublic Order asc(<any> x)
x - expression used to define the orderingpublic Order desc(<any> x)
x - expression used to define the orderingpublic <N extends java.lang.Number> <any> avg(<any> x)
x - expression representing input value to avg operationpublic <N extends java.lang.Number> <any> sum(<any> x)
x - expression representing input value to sum operationpublic <N extends java.lang.Number> <any> max(<any> x)
x - expression representing input value to max operationpublic <N extends java.lang.Number> <any> min(<any> x)
x - expression representing input value to min operationpublic <X extends java.lang.Comparable<? super X>> <any> greatest(<any> x)
x - expression representing input value to greatest operationpublic <X extends java.lang.Comparable<? super X>> <any> least(<any> x)
x - expression representing input value to least operationpublic <any> count(<any> x)
x - expression representing input value to count operationpublic <any> countDistinct(<any> x)
x - expression representing input value to count distinct
operationpublic Predicate exists(<any> subquery)
subquery - subquery whose result is to be testedpublic <Y> <any> all(<any> subquery)
subquery - public <Y> <any> some(<any> subquery)
subquery - public <Y> <any> any(<any> subquery)
subquery - public Predicate and(<any> x,
<any> y)
x - boolean expressiony - boolean expressionpublic Predicate or(<any> x,
<any> y)
x - boolean expressiony - boolean expressionpublic Predicate and(Predicate... restrictions)
restrictions - zero or more restriction predicatespublic Predicate or(Predicate... restrictions)
restrictions - zero or more restriction predicatespublic Predicate not(<any> restriction)
restriction - restriction expressionpublic Predicate conjunction()
public Predicate disjunction()
public Predicate isTrue(<any> x)
x - expression to be tested if truepublic Predicate isFalse(<any> x)
x - expression to be tested if falsepublic Predicate isNull(<any> x)
x - expressionpublic Predicate isNotNull(<any> x)
x - expressionpublic Predicate equal(<any> x,
<any> y)
x - expressiony - expressionpublic Predicate notEqual(<any> x,
<any> y)
x - expressiony - expressionpublic Predicate equal(<any> x,
java.lang.Object y)
x - expressiony - objectpublic Predicate notEqual(<any> x,
java.lang.Object y)
x - expressiony - objectpublic <Y extends java.lang.Comparable<? super Y>> Predicate greaterThan(<any> x,
<any> y)
x - expressiony - expressionpublic <Y extends java.lang.Comparable<? super Y>> Predicate lessThan(<any> x,
<any> y)
x - expressiony - expressionpublic <Y extends java.lang.Comparable<? super Y>> Predicate greaterThanOrEqualTo(<any> x,
<any> y)
x - expressiony - expressionpublic <Y extends java.lang.Comparable<? super Y>> Predicate lessThanOrEqualTo(<any> x,
<any> y)
x - expressiony - expressionpublic <Y extends java.lang.Comparable<? super Y>> Predicate between(<any> v,
<any> x,
<any> y)
v - expressionx - expressiony - expressionpublic <Y extends java.lang.Comparable<? super Y>> Predicate greaterThan(<any> x,
Y y)
x - expressiony - valuepublic <Y extends java.lang.Comparable<? super Y>> Predicate lessThan(<any> x,
Y y)
x - expressiony - valuepublic <Y extends java.lang.Comparable<? super Y>> Predicate greaterThanOrEqualTo(<any> x,
Y y)
x - expressiony - valuepublic <Y extends java.lang.Comparable<? super Y>> Predicate lessThanOrEqualTo(<any> x,
Y y)
x - expressiony - valuepublic <Y extends java.lang.Comparable<? super Y>> Predicate between(<any> v,
Y x,
Y y)
v - expressionx - valuey - valueprotected java.util.List<<any>> buildList(<any>... expressions)
public Predicate gt(<any> x,
<any> y)
x - expressiony - expressionpublic Predicate lt(<any> x,
<any> y)
x - expressiony - expressionpublic Predicate ge(<any> x,
<any> y)
x - expressiony - expressionpublic Predicate le(<any> x,
<any> y)
x - expressiony - expressionpublic Predicate gt(<any> x,
java.lang.Number y)
x - expressiony - valuepublic Predicate lt(<any> x,
java.lang.Number y)
x - expressiony - valuepublic Predicate ge(<any> x,
java.lang.Number y)
x - expressiony - valuepublic Predicate le(<any> x,
java.lang.Number y)
x - expressiony - valuepublic <N extends java.lang.Number> <any> neg(<any> x)
x - expressionpublic <N extends java.lang.Number> <any> abs(<any> x)
x - expressionpublic <N extends java.lang.Number> <any> sum(<any> x,
<any> y)
x - expressiony - expressionpublic <any> sumAsLong(<any> x)
x - expression representing input value to sum operationpublic <any> sumAsDouble(<any> x)
x - expression representing input value to sum operationpublic <N extends java.lang.Number> <any> prod(<any> x,
<any> y)
x - expressiony - expressionpublic <N extends java.lang.Number> <any> diff(<any> x,
<any> y)
x - expressiony - expressionpublic <N extends java.lang.Number> <any> sum(<any> x,
N y)
x - expressiony - valuepublic <N extends java.lang.Number> <any> prod(<any> x,
N y)
x - expressiony - valuepublic <N extends java.lang.Number> <any> diff(<any> x,
N y)
x - expressiony - valuepublic <N extends java.lang.Number> <any> sum(N x,
<any> y)
x - valuey - expressionpublic <N extends java.lang.Number> <any> prod(N x,
<any> y)
x - valuey - expressionpublic <N extends java.lang.Number> <any> diff(N x,
<any> y)
x - valuey - expressionpublic <any> quot(<any> x,
<any> y)
x - expressiony - expressionpublic <any> quot(<any> x,
java.lang.Number y)
x - expressiony - valuepublic <any> quot(java.lang.Number x,
<any> y)
x - valuey - expressionpublic <any> mod(<any> x,
<any> y)
x - expressiony - expressionpublic <any> mod(<any> x,
java.lang.Integer y)
x - expressiony - valuepublic <any> mod(java.lang.Integer x,
<any> y)
x - valuey - expressionpublic <any> sqrt(<any> x)
x - expressionpublic <any> toLong(<any> number)
number - numeric expressionpublic <any> toInteger(<any> number)
number - numeric expressionpublic <any> toFloat(<any> number)
number - numeric expressionpublic <any> toDouble(<any> number)
number - numeric expressionpublic <any> toBigDecimal(<any> number)
number - numeric expressionpublic <any> toBigInteger(<any> number)
number - numeric expressionpublic <any> toString(<any> character)
character - expressionpublic <T> <any> literal(T value)
value - public <T> <any> nullLiteral(java.lang.Class<T> resultClass)
resultClass - type of the null literalprotected <T> <any> internalLiteral(T value)
value - public <T> <any> parameter(java.lang.Class<T> paramClass)
paramClass - parameter classpublic <T> <any> parameter(java.lang.Class<T> paramClass,
java.lang.String name)
paramClass - parameter classname - public <C extends java.util.Collection<?>> Predicate isEmpty(<any> collection)
collection - expressionpublic <C extends java.util.Collection<?>> Predicate isNotEmpty(<any> collection)
collection - expressionpublic <C extends java.util.Collection<?>> <any> size(C collection)
collection - public <C extends java.util.Collection<?>> <any> size(<any> collection)
collection - expressionpublic <E,C extends java.util.Collection<E>> Predicate isMember(E elem,
<any> collection)
elem - elementcollection - expressionpublic <E,C extends java.util.Collection<E>> Predicate isNotMember(E elem,
<any> collection)
elem - elementcollection - expressionpublic <E,C extends java.util.Collection<E>> Predicate isMember(<any> elem,
<any> collection)
elem - element expressioncollection - expressionpublic <E,C extends java.util.Collection<E>> Predicate isNotMember(<any> elem,
<any> collection)
elem - element expressioncollection - expressionpublic <V,M extends java.util.Map<?,V>> <any> values(M map)
map - public <K,M extends java.util.Map<K,?>> <any> keys(M map)
map - public Predicate like(<any> x,
<any> pattern)
x - string expressionpattern - string expressionpublic Predicate like(<any> x,
<any> pattern,
<any> escapeChar)
x - string expressionpattern - string expressionescapeChar - escape character expressionpublic Predicate like(<any> x,
<any> pattern,
char escapeChar)
x - string expressionpattern - string expressionescapeChar - escape characterpublic Predicate like(<any> x,
java.lang.String pattern)
x - string expressionpattern - stringpublic Predicate like(<any> x,
java.lang.String pattern,
<any> escapeChar)
x - string expressionpattern - stringescapeChar - escape character expressionpublic Predicate like(<any> x,
java.lang.String pattern,
char escapeChar)
x - string expressionpattern - stringescapeChar - escape characterpublic Predicate notLike(<any> x,
<any> pattern)
x - string expressionpattern - string expressionpublic Predicate notLike(<any> x,
<any> pattern,
<any> escapeChar)
x - string expressionpattern - string expressionescapeChar - escape character expressionpublic Predicate notLike(<any> x,
<any> pattern,
char escapeChar)
x - string expressionpattern - string expressionescapeChar - escape characterpublic Predicate notLike(<any> x,
java.lang.String pattern)
x - string expressionpattern - stringpublic Predicate notLike(<any> x,
java.lang.String pattern,
<any> escapeChar)
x - string expressionpattern - stringescapeChar - escape character expressionpublic Predicate notLike(<any> x,
java.lang.String pattern,
char escapeChar)
x - string expressionpattern - stringescapeChar - escape characterpublic <any> concat(<any> x,
<any> y)
x - string expressiony - string expressionpublic <any> concat(<any> x,
java.lang.String y)
x - string expressiony - stringpublic <any> concat(java.lang.String x,
<any> y)
x - stringy - string expressionpublic <any> substring(<any> x,
<any> from)
x - string expressionfrom - start position expressionpublic <any> substring(<any> x,
int from)
x - string expressionfrom - start positionpublic <any> substring(<any> x,
<any> from,
<any> len)
x - string expressionfrom - start position expressionlen - length expressionpublic <any> substring(<any> x,
int from,
int len)
x - string expressionfrom - start positionlen - lengthpublic <any> trim(<any> x)
x - expression for string to trimpublic <any> trim(Trimspec ts,
<any> x)
ts - trim specificationx - expression for string to trimpublic <any> trim(<any> t,
<any> x)
t - expression for character to be trimmedx - expression for string to trimpublic <any> trim(Trimspec ts,
<any> t,
<any> x)
ts - trim specificationt - expression for character to be trimmedx - expression for string to trimpublic <any> trim(char t,
<any> x)
t - character to be trimmedx - expression for string to trimpublic <any> trim(Trimspec ts,
char t,
<any> x)
ts - trim specificationt - character to be trimmedx - expression for string to trimpublic <any> lower(<any> x)
x - string expressionpublic <any> upper(<any> x)
x - string expressionpublic <any> length(<any> x)
x - string expressionpublic <any> locate(<any> x,
<any> pattern)
x - expression for string to be searchedpattern - expression for string to be locatedpublic <any> locate(<any> x,
<any> pattern,
<any> from)
x - expression for string to be searchedpattern - expression for string to be locatedfrom - expression for position at which to start searchpublic <any> locate(<any> x,
java.lang.String pattern)
x - expression for string to be searchedpattern - string to be locatedpublic <any> locate(<any> x,
java.lang.String pattern,
int from)
x - expression for string to be searchedpattern - string to be locatedfrom - position at which to start searchpublic <any> currentDate()
public <any> currentTimestamp()
public <any> currentTime()
public <T> <any> in(<any> expression)
expression - to be tested against list of valuespublic <Y> <any> coalesce(<any> x,
<any> y)
x - expressiony - expressionpublic <Y> <any> coalesce(<any> x,
Y y)
x - expressiony - valuepublic <Y> <any> nullif(<any> x,
<any> y)
x - expressiony - expressionpublic <Y> <any> nullif(<any> x,
Y y)
x - expressiony - valuepublic <T> <any> coalesce()
public <C,R> <any> selectCase(<any> expression)
expression - to be tested against the case conditionspublic <R> <any> selectCase()
public <T> <any> function(java.lang.String name,
java.lang.Class<T> type,
<any>... args)
name - function nametype - expected result typeargs - function argumentspublic <T> <any> fromExpression(org.eclipse.persistence.expressions.Expression expression,
java.lang.Class<T> type)
fromExpression in interface JpaCriteriaBuilderpublic Expression fromExpression(org.eclipse.persistence.expressions.Expression expression)
fromExpression in interface JpaCriteriaBuilderpublic org.eclipse.persistence.expressions.Expression toExpression(Expression expression)
toExpression in interface JpaCriteriaBuilderpublic <T> <any> createCriteriaDelete(java.lang.Class<T> targetEntity)
public <T> <any> createCriteriaUpdate(java.lang.Class<T> targetEntity)
public <X,T,V extends T> <any> treat(<any> join,
java.lang.Class<V> type)
public <X,T,E extends T> <any> treat(<any> join,
java.lang.Class<E> type)
public <X,T,E extends T> <any> treat(<any> join,
java.lang.Class<E> type)
public <X,T,E extends T> <any> treat(<any> join,
java.lang.Class<E> type)
public <X,K,T,V extends T> <any> treat(<any> join,
java.lang.Class<V> type)
public <X,T extends X> <any> treat(<any> path,
java.lang.Class<T> type)
public <X,T extends X> <any> treat(<any> root,
java.lang.Class<T> type)