Package | Description |
---|---|
javax.persistence.criteria |
Java Persistence Criteria API
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
CollectionJoin<Z,E> |
The
CollectionJoin interface is the type of the result of
joining to a collection over an association or element
collection that has been specified as a java.util.Collection . |
static interface |
CriteriaBuilder.Case<R> |
Interface used to build general case expressions.
|
static interface |
CriteriaBuilder.Coalesce<T> |
Interface used to build coalesce expressions.
|
static interface |
CriteriaBuilder.In<T> |
Interface used to build in predicates.
|
static interface |
CriteriaBuilder.SimpleCase<C,R> |
Interface used to build simple case expressions.
|
interface |
From<Z,X> |
Represents a bound type, usually an entity that appears in
the from clause, but may also be an embeddable belonging to
an entity in the from clause.
|
interface |
Join<Z,X> |
A join to an entity, embeddable, or basic type.
|
interface |
ListJoin<Z,E> |
The
ListJoin interface is the type of the result of
joining to a collection over an association or element
collection that has been specified as a java.util.List . |
interface |
MapJoin<Z,K,V> |
The
MapJoin interface is the type of the result of
joining to a collection over an association or element
collection that has been specified as a java.util.Map . |
interface |
ParameterExpression<T> |
Type of criteria query parameter expressions.
|
interface |
Path<X> |
Represents a simple or compound attribute path from a
bound type or collection, and is a "primitive" expression.
|
interface |
PluralJoin<Z,C,E> |
The
PluralJoin interface defines functionality
that is common to joins to all collection types. |
interface |
Predicate |
The type of a simple or compound predicate: a conjunction or
disjunction of restrictions.
|
interface |
Root<X> |
A root type in the from clause.
|
interface |
SetJoin<Z,E> |
The
SetJoin interface is the type of the result of
joining to a collection over an association or element
collection that has been specified as a java.util.Set . |
interface |
Subquery<T> |
The
Subquery interface defines functionality that is
specific to subqueries. |
Modifier and Type | Method | Description |
---|---|---|
<N extends java.lang.Number> |
CriteriaBuilder.abs(Expression<N> x) |
Create an expression that returns the absolute value
of its argument.
|
<Y> Expression<Y> |
CriteriaBuilder.all(Subquery<Y> subquery) |
Create an all expression over the subquery results.
|
<Y> Expression<Y> |
CriteriaBuilder.any(Subquery<Y> subquery) |
Create an any expression over the subquery results.
|
<X> Expression<X> |
Expression.as(java.lang.Class<X> type) |
Perform a typecast upon the expression, returning a new
expression object.
|
<N extends java.lang.Number> |
CriteriaBuilder.avg(Expression<N> x) |
Create an aggregate expression applying the avg operation.
|
<Y> Expression<Y> |
CriteriaBuilder.coalesce(Expression<? extends Y> x,
Expression<? extends 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.
|
<Y> Expression<Y> |
CriteriaBuilder.coalesce(Expression<? extends Y> 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.
|
Expression<java.lang.String> |
CriteriaBuilder.concat(java.lang.String x,
Expression<java.lang.String> y) |
Create an expression for string concatenation.
|
Expression<java.lang.String> |
CriteriaBuilder.concat(Expression<java.lang.String> x,
java.lang.String y) |
Create an expression for string concatenation.
|
Expression<java.lang.String> |
CriteriaBuilder.concat(Expression<java.lang.String> x,
Expression<java.lang.String> y) |
Create an expression for string concatenation.
|
Expression<java.lang.Long> |
CriteriaBuilder.count(Expression<?> x) |
Create an aggregate expression applying the count operation.
|
Expression<java.lang.Long> |
CriteriaBuilder.countDistinct(Expression<?> x) |
Create an aggregate expression applying the count distinct
operation.
|
Expression<java.sql.Date> |
CriteriaBuilder.currentDate() |
Create expression to return current date.
|
Expression<java.sql.Time> |
CriteriaBuilder.currentTime() |
Create expression to return current time.
|
Expression<java.sql.Timestamp> |
CriteriaBuilder.currentTimestamp() |
Create expression to return current timestamp.
|
<N extends java.lang.Number> |
CriteriaBuilder.diff(Expression<? extends N> x,
Expression<? extends N> y) |
Create an expression that returns the difference
between its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.diff(Expression<? extends N> x,
N y) |
Create an expression that returns the difference
between its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.diff(N x,
Expression<? extends N> y) |
Create an expression that returns the difference
between its arguments.
|
Expression<java.util.Map.Entry<K,V>> |
MapJoin.entry() |
Create an expression that corresponds to the map entry.
|
<T> Expression<T> |
CriteriaBuilder.function(java.lang.String name,
java.lang.Class<T> type,
Expression<?>... args) |
Create an expression for the execution of a database
function.
|
<K,V,M extends java.util.Map<K,V>> |
Path.get(MapAttribute<X,K,V> map) |
Create a path corresponding to the referenced
map-valued attribute.
|
<E,C extends java.util.Collection<E>> |
Path.get(PluralAttribute<X,C,E> collection) |
Create a path corresponding to the referenced
collection-valued attribute.
|
Expression<T> |
CriteriaBuilder.In.getExpression() |
Return the expression to be tested against the
list of values.
|
Expression<C> |
CriteriaBuilder.SimpleCase.getExpression() |
Return the expression to be tested against the
conditions.
|
Expression<?> |
Order.getExpression() |
Return the expression that is used for ordering.
|
Expression<T> |
Subquery.getSelection() |
Return the selection expression.
|
<X extends java.lang.Comparable<? super X>> |
CriteriaBuilder.greatest(Expression<X> x) |
Create an aggregate expression for finding the greatest of
the values (strings, dates, etc).
|
Expression<java.lang.Integer> |
ListJoin.index() |
Create an expression that corresponds to the index of
the object in the referenced association or element
collection.
|
<K,M extends java.util.Map<K,?>> |
CriteriaBuilder.keys(M map) |
Create an expression that returns the keys of a map.
|
<X extends java.lang.Comparable<? super X>> |
CriteriaBuilder.least(Expression<X> x) |
Create an aggregate expression for finding the least of
the values (strings, dates, etc).
|
Expression<java.lang.Integer> |
CriteriaBuilder.length(Expression<java.lang.String> x) |
Create expression to return length of a string.
|
<T> Expression<T> |
CriteriaBuilder.literal(T value) |
Create an expression for a literal.
|
Expression<java.lang.Integer> |
CriteriaBuilder.locate(Expression<java.lang.String> x,
java.lang.String pattern) |
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<java.lang.Integer> |
CriteriaBuilder.locate(Expression<java.lang.String> 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.
|
Expression<java.lang.Integer> |
CriteriaBuilder.locate(Expression<java.lang.String> x,
Expression<java.lang.String> pattern) |
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<java.lang.Integer> |
CriteriaBuilder.locate(Expression<java.lang.String> x,
Expression<java.lang.String> pattern,
Expression<java.lang.Integer> from) |
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<java.lang.String> |
CriteriaBuilder.lower(Expression<java.lang.String> x) |
Create expression for converting a string to lowercase.
|
<N extends java.lang.Number> |
CriteriaBuilder.max(Expression<N> x) |
Create an aggregate expression applying the numerical max
operation.
|
<N extends java.lang.Number> |
CriteriaBuilder.min(Expression<N> x) |
Create an aggregate expression applying the numerical min
operation.
|
Expression<java.lang.Integer> |
CriteriaBuilder.mod(java.lang.Integer x,
Expression<java.lang.Integer> y) |
Create an expression that returns the modulus
of its arguments.
|
Expression<java.lang.Integer> |
CriteriaBuilder.mod(Expression<java.lang.Integer> x,
java.lang.Integer y) |
Create an expression that returns the modulus
of its arguments.
|
Expression<java.lang.Integer> |
CriteriaBuilder.mod(Expression<java.lang.Integer> x,
Expression<java.lang.Integer> y) |
Create an expression that returns the modulus
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.neg(Expression<N> x) |
Create an expression that returns the arithmetic negation
of its argument.
|
<Y> Expression<Y> |
CriteriaBuilder.nullif(Expression<Y> x,
Expression<?> 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> Expression<Y> |
CriteriaBuilder.nullif(Expression<Y> 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> Expression<T> |
CriteriaBuilder.nullLiteral(java.lang.Class<T> resultClass) |
Create an expression for a null literal with the given type.
|
Expression<R> |
CriteriaBuilder.Case.otherwise(Expression<? extends R> result) |
Add an "else" clause to the case expression.
|
Expression<R> |
CriteriaBuilder.Case.otherwise(R result) |
Add an "else" clause to the case expression.
|
Expression<R> |
CriteriaBuilder.SimpleCase.otherwise(Expression<? extends R> result) |
Add an "else" clause to the case expression.
|
Expression<R> |
CriteriaBuilder.SimpleCase.otherwise(R result) |
Add an "else" clause to the case expression.
|
<N extends java.lang.Number> |
CriteriaBuilder.prod(Expression<? extends N> x,
Expression<? extends N> y) |
Create an expression that returns the product
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.prod(Expression<? extends N> x,
N y) |
Create an expression that returns the product
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.prod(N x,
Expression<? extends N> y) |
Create an expression that returns the product
of its arguments.
|
Expression<java.lang.Number> |
CriteriaBuilder.quot(java.lang.Number x,
Expression<? extends java.lang.Number> y) |
Create an expression that returns the quotient
of its arguments.
|
Expression<java.lang.Number> |
CriteriaBuilder.quot(Expression<? extends java.lang.Number> x,
java.lang.Number y) |
Create an expression that returns the quotient
of its arguments.
|
Expression<java.lang.Number> |
CriteriaBuilder.quot(Expression<? extends java.lang.Number> x,
Expression<? extends java.lang.Number> y) |
Create an expression that returns the quotient
of its arguments.
|
<C extends java.util.Collection<?>> |
CriteriaBuilder.size(C collection) |
Create an expression that tests the size of a collection.
|
<C extends java.util.Collection<?>> |
CriteriaBuilder.size(Expression<C> collection) |
Create an expression that tests the size of a collection.
|
<Y> Expression<Y> |
CriteriaBuilder.some(Subquery<Y> subquery) |
Create a some expression over the subquery results.
|
Expression<java.lang.Double> |
CriteriaBuilder.sqrt(Expression<? extends java.lang.Number> x) |
Create an expression that returns the square root
of its argument.
|
Expression<java.lang.String> |
CriteriaBuilder.substring(Expression<java.lang.String> x,
int from) |
Create an expression for substring extraction.
|
Expression<java.lang.String> |
CriteriaBuilder.substring(Expression<java.lang.String> x,
int from,
int len) |
Create an expression for substring extraction.
|
Expression<java.lang.String> |
CriteriaBuilder.substring(Expression<java.lang.String> x,
Expression<java.lang.Integer> from) |
Create an expression for substring extraction.
|
Expression<java.lang.String> |
CriteriaBuilder.substring(Expression<java.lang.String> x,
Expression<java.lang.Integer> from,
Expression<java.lang.Integer> len) |
Create an expression for substring extraction.
|
<N extends java.lang.Number> |
CriteriaBuilder.sum(Expression<? extends N> x,
Expression<? extends N> y) |
Create an expression that returns the sum
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.sum(Expression<? extends N> x,
N y) |
Create an expression that returns the sum
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.sum(Expression<N> x) |
Create an aggregate expression applying the sum operation.
|
<N extends java.lang.Number> |
CriteriaBuilder.sum(N x,
Expression<? extends N> y) |
Create an expression that returns the sum
of its arguments.
|
Expression<java.lang.Double> |
CriteriaBuilder.sumAsDouble(Expression<java.lang.Float> x) |
Create an aggregate expression applying the sum operation to a
Float-valued expression, returning a Double result.
|
Expression<java.lang.Long> |
CriteriaBuilder.sumAsLong(Expression<java.lang.Integer> x) |
Create an aggregate expression applying the sum operation to an
Integer-valued expression, returning a Long result.
|
Expression<java.math.BigDecimal> |
CriteriaBuilder.toBigDecimal(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.math.BigInteger> |
CriteriaBuilder.toBigInteger(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.Double> |
CriteriaBuilder.toDouble(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.Float> |
CriteriaBuilder.toFloat(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.Integer> |
CriteriaBuilder.toInteger(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.Long> |
CriteriaBuilder.toLong(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.String> |
CriteriaBuilder.toString(Expression<java.lang.Character> character) |
Typecast.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(char t,
Expression<java.lang.String> x) |
Create expression to trim character from both ends of
a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(CriteriaBuilder.Trimspec ts,
char t,
Expression<java.lang.String> x) |
Create expression to trim character from a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(CriteriaBuilder.Trimspec ts,
Expression<java.lang.Character> t,
Expression<java.lang.String> x) |
Create expression to trim character from a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(CriteriaBuilder.Trimspec ts,
Expression<java.lang.String> x) |
Create expression to trim blanks from a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(Expression<java.lang.Character> t,
Expression<java.lang.String> x) |
Create expression to trim character from both ends of
a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(Expression<java.lang.String> x) |
Create expression to trim blanks from both ends of
a string.
|
Expression<java.lang.Class<? extends X>> |
Path.type() |
Create an expression corresponding to the type of the path.
|
Expression<java.lang.String> |
CriteriaBuilder.upper(Expression<java.lang.String> x) |
Create expression for converting a string to uppercase.
|
<V,M extends java.util.Map<?,V>> |
CriteriaBuilder.values(M map) |
Create an expression that returns the values of a map.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.List<Expression<java.lang.Boolean>> |
Predicate.getExpressions() |
Return the top-level conjuncts or disjuncts of the predicate.
|
java.util.List<Expression<?>> |
AbstractQuery.getGroupList() |
Return a list of the grouping expressions.
|
Modifier and Type | Method | Description |
---|---|---|
<N extends java.lang.Number> |
CriteriaBuilder.abs(Expression<N> x) |
Create an expression that returns the absolute value
of its argument.
|
Predicate |
CriteriaBuilder.and(Expression<java.lang.Boolean> x,
Expression<java.lang.Boolean> y) |
Create a conjunction of the given boolean expressions.
|
Order |
CriteriaBuilder.asc(Expression<?> x) |
Create an ordering by the ascending value of the expression.
|
<N extends java.lang.Number> |
CriteriaBuilder.avg(Expression<N> x) |
Create an aggregate expression applying the avg operation.
|
<Y extends java.lang.Comparable<? super Y>> |
CriteriaBuilder.between(Expression<? extends Y> v,
Expression<? extends Y> x,
Expression<? extends Y> 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>> |
CriteriaBuilder.between(Expression<? extends Y> v,
Y x,
Y y) |
Create a predicate for testing whether the first argument is
between the second and third arguments in value.
|
<Y> Expression<Y> |
CriteriaBuilder.coalesce(Expression<? extends Y> x,
Expression<? extends 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.
|
<Y> Expression<Y> |
CriteriaBuilder.coalesce(Expression<? extends Y> 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.
|
Expression<java.lang.String> |
CriteriaBuilder.concat(java.lang.String x,
Expression<java.lang.String> y) |
Create an expression for string concatenation.
|
Expression<java.lang.String> |
CriteriaBuilder.concat(Expression<java.lang.String> x,
java.lang.String y) |
Create an expression for string concatenation.
|
Expression<java.lang.String> |
CriteriaBuilder.concat(Expression<java.lang.String> x,
Expression<java.lang.String> y) |
Create an expression for string concatenation.
|
Expression<java.lang.Long> |
CriteriaBuilder.count(Expression<?> x) |
Create an aggregate expression applying the count operation.
|
Expression<java.lang.Long> |
CriteriaBuilder.countDistinct(Expression<?> x) |
Create an aggregate expression applying the count distinct
operation.
|
Order |
CriteriaBuilder.desc(Expression<?> x) |
Create an ordering by the descending value of the expression.
|
<N extends java.lang.Number> |
CriteriaBuilder.diff(Expression<? extends N> x,
Expression<? extends N> y) |
Create an expression that returns the difference
between its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.diff(Expression<? extends N> x,
N y) |
Create an expression that returns the difference
between its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.diff(N x,
Expression<? extends N> y) |
Create an expression that returns the difference
between its arguments.
|
Predicate |
CriteriaBuilder.equal(Expression<?> x,
java.lang.Object y) |
Create a predicate for testing the arguments for equality.
|
Predicate |
CriteriaBuilder.equal(Expression<?> x,
Expression<?> y) |
Create a predicate for testing the arguments for equality.
|
<T> Expression<T> |
CriteriaBuilder.function(java.lang.String name,
java.lang.Class<T> type,
Expression<?>... args) |
Create an expression for the execution of a database
function.
|
Predicate |
CriteriaBuilder.ge(Expression<? extends java.lang.Number> x,
java.lang.Number y) |
Create a predicate for testing whether the first argument is
greater than or equal to the second.
|
Predicate |
CriteriaBuilder.ge(Expression<? extends java.lang.Number> x,
Expression<? extends 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>> |
CriteriaBuilder.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 java.lang.Comparable<? super Y>> |
CriteriaBuilder.greaterThan(Expression<? extends Y> x,
Y y) |
Create a predicate for testing whether the first argument is
greater than the second.
|
<Y extends java.lang.Comparable<? super Y>> |
CriteriaBuilder.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 java.lang.Comparable<? super Y>> |
CriteriaBuilder.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 java.lang.Comparable<? super X>> |
CriteriaBuilder.greatest(Expression<X> x) |
Create an aggregate expression for finding the greatest of
the values (strings, dates, etc).
|
AbstractQuery<T> |
AbstractQuery.groupBy(Expression<?>... grouping) |
Specify the expressions that are used to form groups over
the query results.
|
CriteriaQuery<T> |
CriteriaQuery.groupBy(Expression<?>... grouping) |
Specify the expressions that are used to form groups over
the query results.
|
Subquery<T> |
Subquery.groupBy(Expression<?>... grouping) |
Specify the expressions that are used to form groups over
the subquery results.
|
Predicate |
CriteriaBuilder.gt(Expression<? extends java.lang.Number> x,
java.lang.Number y) |
Create a predicate for testing whether the first argument is
greater than the second.
|
Predicate |
CriteriaBuilder.gt(Expression<? extends java.lang.Number> x,
Expression<? extends java.lang.Number> y) |
Create a predicate for testing whether the first argument is
greater than the second.
|
AbstractQuery<T> |
AbstractQuery.having(Expression<java.lang.Boolean> restriction) |
Specify a restriction over the groups of the query.
|
CriteriaQuery<T> |
CriteriaQuery.having(Expression<java.lang.Boolean> restriction) |
Specify a restriction over the groups of the query.
|
Subquery<T> |
Subquery.having(Expression<java.lang.Boolean> restriction) |
Specify a restriction over the groups of the subquery.
|
<T> CriteriaBuilder.In<T> |
CriteriaBuilder.in(Expression<? extends T> expression) |
Create predicate to test whether given expression
is contained in a list of values.
|
Predicate |
Expression.in(Expression<?>... values) |
Create a predicate to test whether the expression is a member
of the argument list.
|
Predicate |
Expression.in(Expression<java.util.Collection<?>> values) |
Create a predicate to test whether the expression is a member
of the collection.
|
<C extends java.util.Collection<?>> |
CriteriaBuilder.isEmpty(Expression<C> collection) |
Create a predicate that tests whether a collection is empty.
|
Predicate |
CriteriaBuilder.isFalse(Expression<java.lang.Boolean> x) |
Create a predicate testing for a false value.
|
<E,C extends java.util.Collection<E>> |
CriteriaBuilder.isMember(E elem,
Expression<C> collection) |
Create a predicate that tests whether an element is
a member of a collection.
|
<E,C extends java.util.Collection<E>> |
CriteriaBuilder.isMember(Expression<E> elem,
Expression<C> collection) |
Create a predicate that tests whether an element is
a member of a collection.
|
<C extends java.util.Collection<?>> |
CriteriaBuilder.isNotEmpty(Expression<C> collection) |
Create a predicate that tests whether a collection is
not empty.
|
<E,C extends java.util.Collection<E>> |
CriteriaBuilder.isNotMember(E elem,
Expression<C> collection) |
Create a predicate that tests whether an element is
not a member of a collection.
|
<E,C extends java.util.Collection<E>> |
CriteriaBuilder.isNotMember(Expression<E> elem,
Expression<C> collection) |
Create a predicate that tests whether an element is
not a member of a collection.
|
Predicate |
CriteriaBuilder.isNotNull(Expression<?> x) |
Create a predicate to test whether the expression is not null.
|
Predicate |
CriteriaBuilder.isNull(Expression<?> x) |
Create a predicate to test whether the expression is null.
|
Predicate |
CriteriaBuilder.isTrue(Expression<java.lang.Boolean> x) |
Create a predicate testing for a true value.
|
Predicate |
CriteriaBuilder.le(Expression<? extends java.lang.Number> x,
java.lang.Number y) |
Create a predicate for testing whether the first argument is
less than or equal to the second.
|
Predicate |
CriteriaBuilder.le(Expression<? extends java.lang.Number> x,
Expression<? extends 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>> |
CriteriaBuilder.least(Expression<X> x) |
Create an aggregate expression for finding the least of
the values (strings, dates, etc).
|
Expression<java.lang.Integer> |
CriteriaBuilder.length(Expression<java.lang.String> x) |
Create expression to return length of a string.
|
<Y extends java.lang.Comparable<? super Y>> |
CriteriaBuilder.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 java.lang.Comparable<? super Y>> |
CriteriaBuilder.lessThan(Expression<? extends Y> x,
Y y) |
Create a predicate for testing whether the first argument is
less than the second.
|
<Y extends java.lang.Comparable<? super Y>> |
CriteriaBuilder.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 java.lang.Comparable<? super Y>> |
CriteriaBuilder.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 |
CriteriaBuilder.like(Expression<java.lang.String> x,
java.lang.String pattern) |
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<java.lang.String> x,
java.lang.String pattern,
char escapeChar) |
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<java.lang.String> x,
java.lang.String pattern,
Expression<java.lang.Character> escapeChar) |
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<java.lang.String> x,
Expression<java.lang.String> pattern) |
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<java.lang.String> x,
Expression<java.lang.String> pattern,
char escapeChar) |
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<java.lang.String> x,
Expression<java.lang.String> pattern,
Expression<java.lang.Character> escapeChar) |
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Expression<java.lang.Integer> |
CriteriaBuilder.locate(Expression<java.lang.String> x,
java.lang.String pattern) |
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<java.lang.Integer> |
CriteriaBuilder.locate(Expression<java.lang.String> 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.
|
Expression<java.lang.Integer> |
CriteriaBuilder.locate(Expression<java.lang.String> x,
Expression<java.lang.String> pattern) |
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<java.lang.Integer> |
CriteriaBuilder.locate(Expression<java.lang.String> x,
Expression<java.lang.String> pattern,
Expression<java.lang.Integer> from) |
Create expression to locate the position of one string
within another, returning position of first character
if found.
|
Expression<java.lang.String> |
CriteriaBuilder.lower(Expression<java.lang.String> x) |
Create expression for converting a string to lowercase.
|
Predicate |
CriteriaBuilder.lt(Expression<? extends java.lang.Number> x,
java.lang.Number y) |
Create a predicate for testing whether the first argument is
less than the second.
|
Predicate |
CriteriaBuilder.lt(Expression<? extends java.lang.Number> x,
Expression<? extends java.lang.Number> y) |
Create a predicate for testing whether the first argument is
less than the second.
|
<N extends java.lang.Number> |
CriteriaBuilder.max(Expression<N> x) |
Create an aggregate expression applying the numerical max
operation.
|
<N extends java.lang.Number> |
CriteriaBuilder.min(Expression<N> x) |
Create an aggregate expression applying the numerical min
operation.
|
Expression<java.lang.Integer> |
CriteriaBuilder.mod(java.lang.Integer x,
Expression<java.lang.Integer> y) |
Create an expression that returns the modulus
of its arguments.
|
Expression<java.lang.Integer> |
CriteriaBuilder.mod(Expression<java.lang.Integer> x,
java.lang.Integer y) |
Create an expression that returns the modulus
of its arguments.
|
Expression<java.lang.Integer> |
CriteriaBuilder.mod(Expression<java.lang.Integer> x,
Expression<java.lang.Integer> y) |
Create an expression that returns the modulus
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.neg(Expression<N> x) |
Create an expression that returns the arithmetic negation
of its argument.
|
Predicate |
CriteriaBuilder.not(Expression<java.lang.Boolean> restriction) |
Create a negation of the given restriction.
|
Predicate |
CriteriaBuilder.notEqual(Expression<?> x,
java.lang.Object y) |
Create a predicate for testing the arguments for inequality.
|
Predicate |
CriteriaBuilder.notEqual(Expression<?> x,
Expression<?> y) |
Create a predicate for testing the arguments for inequality.
|
Predicate |
CriteriaBuilder.notLike(Expression<java.lang.String> x,
java.lang.String pattern) |
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<java.lang.String> x,
java.lang.String pattern,
char escapeChar) |
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<java.lang.String> x,
java.lang.String pattern,
Expression<java.lang.Character> escapeChar) |
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<java.lang.String> x,
Expression<java.lang.String> pattern) |
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<java.lang.String> x,
Expression<java.lang.String> pattern,
char escapeChar) |
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<java.lang.String> x,
Expression<java.lang.String> pattern,
Expression<java.lang.Character> escapeChar) |
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
<Y> Expression<Y> |
CriteriaBuilder.nullif(Expression<Y> x,
Expression<?> 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> Expression<Y> |
CriteriaBuilder.nullif(Expression<Y> 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.
|
CollectionJoin<Z,E> |
CollectionJoin.on(Expression<java.lang.Boolean> restriction) |
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
Join<Z,X> |
Join.on(Expression<java.lang.Boolean> restriction) |
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
ListJoin<Z,E> |
ListJoin.on(Expression<java.lang.Boolean> restriction) |
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
MapJoin<Z,K,V> |
MapJoin.on(Expression<java.lang.Boolean> restriction) |
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
SetJoin<Z,E> |
SetJoin.on(Expression<java.lang.Boolean> restriction) |
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
Predicate |
CriteriaBuilder.or(Expression<java.lang.Boolean> x,
Expression<java.lang.Boolean> y) |
Create a disjunction of the given boolean expressions.
|
Expression<R> |
CriteriaBuilder.Case.otherwise(Expression<? extends R> result) |
Add an "else" clause to the case expression.
|
Expression<R> |
CriteriaBuilder.SimpleCase.otherwise(Expression<? extends R> result) |
Add an "else" clause to the case expression.
|
<N extends java.lang.Number> |
CriteriaBuilder.prod(Expression<? extends N> x,
Expression<? extends N> y) |
Create an expression that returns the product
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.prod(Expression<? extends N> x,
N y) |
Create an expression that returns the product
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.prod(N x,
Expression<? extends N> y) |
Create an expression that returns the product
of its arguments.
|
Expression<java.lang.Number> |
CriteriaBuilder.quot(java.lang.Number x,
Expression<? extends java.lang.Number> y) |
Create an expression that returns the quotient
of its arguments.
|
Expression<java.lang.Number> |
CriteriaBuilder.quot(Expression<? extends java.lang.Number> x,
java.lang.Number y) |
Create an expression that returns the quotient
of its arguments.
|
Expression<java.lang.Number> |
CriteriaBuilder.quot(Expression<? extends java.lang.Number> x,
Expression<? extends java.lang.Number> y) |
Create an expression that returns the quotient
of its arguments.
|
Subquery<T> |
Subquery.select(Expression<T> expression) |
Specify the item that is to be returned as the subquery
result.
|
<C,R> CriteriaBuilder.SimpleCase<C,R> |
CriteriaBuilder.selectCase(Expression<? extends C> expression) |
Create a simple case expression.
|
<Y> CriteriaUpdate<T> |
CriteriaUpdate.set(Path<Y> attribute,
Expression<? extends Y> value) |
Update the value of the specified attribute.
|
<Y> CriteriaUpdate<T> |
CriteriaUpdate.set(SingularAttribute<? super T,Y> attribute,
Expression<? extends Y> value) |
Update the value of the specified attribute.
|
<C extends java.util.Collection<?>> |
CriteriaBuilder.size(Expression<C> collection) |
Create an expression that tests the size of a collection.
|
Expression<java.lang.Double> |
CriteriaBuilder.sqrt(Expression<? extends java.lang.Number> x) |
Create an expression that returns the square root
of its argument.
|
Expression<java.lang.String> |
CriteriaBuilder.substring(Expression<java.lang.String> x,
int from) |
Create an expression for substring extraction.
|
Expression<java.lang.String> |
CriteriaBuilder.substring(Expression<java.lang.String> x,
int from,
int len) |
Create an expression for substring extraction.
|
Expression<java.lang.String> |
CriteriaBuilder.substring(Expression<java.lang.String> x,
Expression<java.lang.Integer> from) |
Create an expression for substring extraction.
|
Expression<java.lang.String> |
CriteriaBuilder.substring(Expression<java.lang.String> x,
Expression<java.lang.Integer> from,
Expression<java.lang.Integer> len) |
Create an expression for substring extraction.
|
<N extends java.lang.Number> |
CriteriaBuilder.sum(Expression<? extends N> x,
Expression<? extends N> y) |
Create an expression that returns the sum
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.sum(Expression<? extends N> x,
N y) |
Create an expression that returns the sum
of its arguments.
|
<N extends java.lang.Number> |
CriteriaBuilder.sum(Expression<N> x) |
Create an aggregate expression applying the sum operation.
|
<N extends java.lang.Number> |
CriteriaBuilder.sum(N x,
Expression<? extends N> y) |
Create an expression that returns the sum
of its arguments.
|
Expression<java.lang.Double> |
CriteriaBuilder.sumAsDouble(Expression<java.lang.Float> x) |
Create an aggregate expression applying the sum operation to a
Float-valued expression, returning a Double result.
|
Expression<java.lang.Long> |
CriteriaBuilder.sumAsLong(Expression<java.lang.Integer> x) |
Create an aggregate expression applying the sum operation to an
Integer-valued expression, returning a Long result.
|
Expression<java.math.BigDecimal> |
CriteriaBuilder.toBigDecimal(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.math.BigInteger> |
CriteriaBuilder.toBigInteger(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.Double> |
CriteriaBuilder.toDouble(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.Float> |
CriteriaBuilder.toFloat(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.Integer> |
CriteriaBuilder.toInteger(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.Long> |
CriteriaBuilder.toLong(Expression<? extends java.lang.Number> number) |
Typecast.
|
Expression<java.lang.String> |
CriteriaBuilder.toString(Expression<java.lang.Character> character) |
Typecast.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(char t,
Expression<java.lang.String> x) |
Create expression to trim character from both ends of
a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(CriteriaBuilder.Trimspec ts,
char t,
Expression<java.lang.String> x) |
Create expression to trim character from a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(CriteriaBuilder.Trimspec ts,
Expression<java.lang.Character> t,
Expression<java.lang.String> x) |
Create expression to trim character from a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(CriteriaBuilder.Trimspec ts,
Expression<java.lang.String> x) |
Create expression to trim blanks from a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(Expression<java.lang.Character> t,
Expression<java.lang.String> x) |
Create expression to trim character from both ends of
a string.
|
Expression<java.lang.String> |
CriteriaBuilder.trim(Expression<java.lang.String> x) |
Create expression to trim blanks from both ends of
a string.
|
Expression<java.lang.String> |
CriteriaBuilder.upper(Expression<java.lang.String> x) |
Create expression for converting a string to uppercase.
|
CriteriaBuilder.Coalesce<T> |
CriteriaBuilder.Coalesce.value(Expression<? extends T> value) |
Add an argument to the coalesce expression.
|
CriteriaBuilder.In<T> |
CriteriaBuilder.In.value(Expression<? extends T> value) |
Add to list of values to be tested against.
|
CriteriaBuilder.Case<R> |
CriteriaBuilder.Case.when(Expression<java.lang.Boolean> condition,
Expression<? extends R> result) |
Add a when/then clause to the case expression.
|
CriteriaBuilder.Case<R> |
CriteriaBuilder.Case.when(Expression<java.lang.Boolean> condition,
R result) |
Add a when/then clause to the case expression.
|
CriteriaBuilder.SimpleCase<C,R> |
CriteriaBuilder.SimpleCase.when(C condition,
Expression<? extends R> result) |
Add a when/then clause to the case expression.
|
AbstractQuery<T> |
AbstractQuery.where(Expression<java.lang.Boolean> restriction) |
Modify the query to restrict the query results according
to the specified boolean expression.
|
CriteriaDelete<T> |
CriteriaDelete.where(Expression<java.lang.Boolean> restriction) |
Modify the delete query to restrict the target of the deletion
according to the specified boolean expression.
|
CriteriaQuery<T> |
CriteriaQuery.where(Expression<java.lang.Boolean> restriction) |
Modify the query to restrict the query result according
to the specified boolean expression.
|
CriteriaUpdate<T> |
CriteriaUpdate.where(Expression<java.lang.Boolean> restriction) |
Modify the update query to restrict the target of the update
according to the specified boolean expression.
|
Subquery<T> |
Subquery.where(Expression<java.lang.Boolean> restriction) |
Modify the subquery to restrict the result according
to the specified boolean expression.
|
Modifier and Type | Method | Description |
---|---|---|
AbstractQuery<T> |
AbstractQuery.groupBy(java.util.List<Expression<?>> grouping) |
Specify the expressions that are used to form groups over
the query results.
|
CriteriaQuery<T> |
CriteriaQuery.groupBy(java.util.List<Expression<?>> grouping) |
Specify the expressions that are used to form groups over
the query results.
|
Subquery<T> |
Subquery.groupBy(java.util.List<Expression<?>> grouping) |
Specify the expressions that are used to form groups over
the subquery results.
|
Copyright © 2018. All rights reserved.