Package | Description |
---|---|
javax.persistence.criteria | |
org.hibernate.ejb.criteria | |
org.hibernate.ejb.criteria.expression | |
org.hibernate.ejb.criteria.predicate |
Modifier and Type | Interface and Description |
---|---|
static interface |
CriteriaBuilder.In<T>
Interface used to build in predicates.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
CriteriaBuilder.and(Expression<Boolean> x,
Expression<Boolean> y)
Create a conjunction of the given boolean expressions.
|
Predicate |
CriteriaBuilder.and(Predicate... restrictions)
Create a conjunction of the given restriction predicates.
|
<Y extends 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 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.
|
Predicate |
CriteriaBuilder.conjunction()
Create a conjunction (with zero conjuncts).
|
Predicate |
CriteriaBuilder.disjunction()
Create a disjunction (with zero disjuncts).
|
Predicate |
CriteriaBuilder.equal(Expression<?> x,
Expression<?> y)
Create a predicate for testing the arguments for equality.
|
Predicate |
CriteriaBuilder.equal(Expression<?> x,
Object y)
Create a predicate for testing the arguments for equality.
|
Predicate |
CriteriaBuilder.exists(Subquery<?> subquery)
Create a predicate testing the existence of a subquery result.
|
Predicate |
CriteriaBuilder.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 |
CriteriaBuilder.ge(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
greater than or equal to the second.
|
Predicate |
AbstractQuery.getGroupRestriction()
Return the predicate that corresponds to the restriction(s)
over the grouping items, or null if no restrictions have
been specified.
|
Predicate |
AbstractQuery.getRestriction()
Return the predicate that corresponds to the where clause
restriction(s), or null if no restrictions have been
specified.
|
<Y extends 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 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 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 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.
|
Predicate |
CriteriaBuilder.gt(Expression<? extends Number> x,
Expression<? extends Number> y)
Create a predicate for testing whether the first argument is
greater than the second.
|
Predicate |
CriteriaBuilder.gt(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
greater than the second.
|
Predicate |
Expression.in(Collection<?> values)
Create a predicate to test whether the expression is a member
of the collection.
|
Predicate |
Expression.in(Expression<?>... values)
Create a predicate to test whether the expression is a member
of the argument list.
|
Predicate |
Expression.in(Expression<Collection<?>> values)
Create a predicate to test whether the expression is a member
of the collection.
|
Predicate |
Expression.in(Object... values)
Create a predicate to test whether the expression is a member
of the argument list.
|
<C extends Collection<?>> |
CriteriaBuilder.isEmpty(Expression<C> collection)
Create a predicate that tests whether a collection is empty.
|
Predicate |
CriteriaBuilder.isFalse(Expression<Boolean> x)
Create a predicate testing for a false value.
|
<E,C extends 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 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 Collection<?>> |
CriteriaBuilder.isNotEmpty(Expression<C> collection)
Create a predicate that tests whether a collection is
not empty.
|
<E,C extends 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 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 |
Expression.isNotNull()
Create a predicate to test whether the expression is
not null.
|
Predicate |
CriteriaBuilder.isNotNull(Expression<?> x)
Create a predicate to test whether the expression is not null.
|
Predicate |
Expression.isNull()
Create a predicate to test whether the expression is null.
|
Predicate |
CriteriaBuilder.isNull(Expression<?> x)
Create a predicate to test whether the expression is null.
|
Predicate |
CriteriaBuilder.isTrue(Expression<Boolean> x)
Create a predicate testing for a true value.
|
Predicate |
CriteriaBuilder.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 |
CriteriaBuilder.le(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
less than or equal to the second.
|
<Y extends 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 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 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 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<String> x,
Expression<String> pattern)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<String> x,
Expression<String> pattern,
char escapeChar)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<String> x,
Expression<String> pattern,
Expression<Character> escapeChar)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<String> x,
String pattern)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<String> x,
String pattern,
char escapeChar)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.like(Expression<String> x,
String pattern,
Expression<Character> escapeChar)
Create a predicate for testing whether the expression
satisfies the given pattern.
|
Predicate |
CriteriaBuilder.lt(Expression<? extends Number> x,
Expression<? extends Number> y)
Create a predicate for testing whether the first argument is
less than the second.
|
Predicate |
CriteriaBuilder.lt(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
less than the second.
|
Predicate |
Predicate.not()
Create a negation of the predicate.
|
Predicate |
CriteriaBuilder.not(Expression<Boolean> restriction)
Create a negation of the given restriction.
|
Predicate |
CriteriaBuilder.notEqual(Expression<?> x,
Expression<?> y)
Create a predicate for testing the arguments for inequality.
|
Predicate |
CriteriaBuilder.notEqual(Expression<?> x,
Object y)
Create a predicate for testing the arguments for inequality.
|
Predicate |
CriteriaBuilder.notLike(Expression<String> x,
Expression<String> pattern)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<String> x,
Expression<String> pattern,
char escapeChar)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<String> x,
Expression<String> pattern,
Expression<Character> escapeChar)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<String> x,
String pattern)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<String> x,
String pattern,
char escapeChar)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.notLike(Expression<String> x,
String pattern,
Expression<Character> escapeChar)
Create a predicate for testing whether the expression
does not satisfy the given pattern.
|
Predicate |
CriteriaBuilder.or(Expression<Boolean> x,
Expression<Boolean> y)
Create a disjunction of the given boolean expressions.
|
Predicate |
CriteriaBuilder.or(Predicate... restrictions)
Create a disjunction of the given restriction predicates.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
CriteriaBuilder.and(Predicate... restrictions)
Create a conjunction of the given restriction predicates.
|
Subquery<T> |
Subquery.having(Predicate... restrictions)
Specify restrictions over the groups of the subquery
according the conjunction of the specified restriction
predicates.
|
CriteriaQuery<T> |
CriteriaQuery.having(Predicate... restrictions)
Specify restrictions over the groups of the query
according the conjunction of the specified restriction
predicates.
|
AbstractQuery<T> |
AbstractQuery.having(Predicate... restrictions)
Specify restrictions over the groups of the query
according the conjunction of the specified restriction
predicates.
|
Predicate |
CriteriaBuilder.or(Predicate... restrictions)
Create a disjunction of the given restriction predicates.
|
Subquery<T> |
Subquery.where(Predicate... restrictions)
Modify the subquery to restrict the result according
to the conjunction of the specified restriction predicates.
|
CriteriaQuery<T> |
CriteriaQuery.where(Predicate... restrictions)
Modify the query to restrict the query result according
to the conjunction of the specified restriction predicates.
|
AbstractQuery<T> |
AbstractQuery.where(Predicate... restrictions)
Modify the query to restrict the query results according
to the conjunction of the specified restriction predicates.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
CriteriaBuilderImpl.and(Expression<Boolean> x,
Expression<Boolean> y)
Create a conjunction of the given boolean expressions.
|
Predicate |
CriteriaBuilderImpl.and(Predicate... restrictions)
Create a conjunction of the given restriction predicates.
|
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.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.
|
Predicate |
CriteriaBuilderImpl.conjunction()
Create a conjunction (with zero conjuncts).
|
Predicate |
CriteriaBuilderImpl.disjunction()
Create a disjunction (with zero disjuncts).
|
Predicate |
CriteriaBuilderImpl.equal(Expression<?> x,
Expression<?> y)
Create a predicate for testing the arguments for equality.
|
Predicate |
CriteriaBuilderImpl.equal(Expression<?> x,
Object y)
Create a predicate for testing the arguments for equality.
|
Predicate |
CriteriaBuilderImpl.exists(Subquery<?> subquery)
Create a predicate testing the existence of a subquery result.
|
Predicate |
CriteriaBuilderImpl.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 |
CriteriaBuilderImpl.ge(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
greater than or equal to the second.
|
Predicate |
CriteriaSubqueryImpl.getGroupRestriction()
Return the predicate that corresponds to the restriction(s)
over the grouping items, or null if no restrictions have
been specified.
|
Predicate |
CriteriaQueryImpl.getGroupRestriction()
Return the predicate that corresponds to the restriction(s)
over the grouping items, or null if no restrictions have
been specified.
|
Predicate |
QueryStructure.getHaving() |
Predicate |
QueryStructure.getRestriction() |
Predicate |
CriteriaSubqueryImpl.getRestriction()
Return the predicate that corresponds to the where clause
restriction(s), or null if no restrictions have been
specified.
|
Predicate |
CriteriaQueryImpl.getRestriction()
Return the predicate that corresponds to the where clause
restriction(s), or null if no restrictions have been
specified.
|
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.greaterThanOrEqualTo(Expression<? extends Y> x,
Y y)
Create a predicate for testing whether the first argument is
greater than or equal to the second.
|
Predicate |
CriteriaBuilderImpl.gt(Expression<? extends Number> x,
Expression<? extends Number> y)
Create a predicate for testing whether the first argument is
greater than the second.
|
Predicate |
CriteriaBuilderImpl.gt(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
greater than the second.
|
<C extends Collection<?>> |
CriteriaBuilderImpl.isEmpty(Expression<C> collectionExpression)
Create a predicate that tests whether a collection is empty.
|
Predicate |
CriteriaBuilderImpl.isFalse(Expression<Boolean> expression)
Create a predicate testing for a false value.
|
<E,C extends Collection<E>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.isMember(Expression<E> elementExpression,
Expression<C> collectionExpression)
Create a predicate that tests whether an element is
a member of a collection.
|
<C extends Collection<?>> |
CriteriaBuilderImpl.isNotEmpty(Expression<C> collectionExpression)
Create a predicate that tests whether a collection is
not empty.
|
<E,C extends Collection<E>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.isNotMember(Expression<E> eExpression,
Expression<C> cExpression)
Create a predicate that tests whether an element is
not a member of a collection.
|
Predicate |
CriteriaBuilderImpl.isNotNull(Expression<?> x)
Create a predicate to test whether the expression is not null.
|
Predicate |
CriteriaBuilderImpl.isNull(Expression<?> x)
s
Create a predicate to test whether the expression is null.
|
Predicate |
CriteriaBuilderImpl.isTrue(Expression<Boolean> expression)
Create a predicate testing for a true value.
|
Predicate |
CriteriaBuilderImpl.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 |
CriteriaBuilderImpl.le(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
less than or equal to the second.
|
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.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>> |
CriteriaBuilderImpl.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 |
CriteriaBuilderImpl.like(Expression<String> matchExpression,
Expression<String> pattern) |
Predicate |
CriteriaBuilderImpl.like(Expression<String> matchExpression,
Expression<String> pattern,
char escapeCharacter) |
Predicate |
CriteriaBuilderImpl.like(Expression<String> matchExpression,
Expression<String> pattern,
Expression<Character> escapeCharacter) |
Predicate |
CriteriaBuilderImpl.like(Expression<String> matchExpression,
String pattern) |
Predicate |
CriteriaBuilderImpl.like(Expression<String> matchExpression,
String pattern,
char escapeCharacter) |
Predicate |
CriteriaBuilderImpl.like(Expression<String> matchExpression,
String pattern,
Expression<Character> escapeCharacter) |
Predicate |
CriteriaBuilderImpl.lt(Expression<? extends Number> x,
Expression<? extends Number> y)
Create a predicate for testing whether the first argument is
less than the second.
|
Predicate |
CriteriaBuilderImpl.lt(Expression<? extends Number> x,
Number y)
Create a predicate for testing whether the first argument is
less than the second.
|
Predicate |
CriteriaBuilderImpl.not(Expression<Boolean> expression)
Create a negation of the given restriction.
|
Predicate |
CriteriaBuilderImpl.notEqual(Expression<?> x,
Expression<?> y)
Create a predicate for testing the arguments for inequality.
|
Predicate |
CriteriaBuilderImpl.notEqual(Expression<?> x,
Object y)
Create a predicate for testing the arguments for inequality.
|
Predicate |
CriteriaBuilderImpl.notLike(Expression<String> matchExpression,
Expression<String> pattern) |
Predicate |
CriteriaBuilderImpl.notLike(Expression<String> matchExpression,
Expression<String> pattern,
char escapeCharacter) |
Predicate |
CriteriaBuilderImpl.notLike(Expression<String> matchExpression,
Expression<String> pattern,
Expression<Character> escapeCharacter) |
Predicate |
CriteriaBuilderImpl.notLike(Expression<String> matchExpression,
String pattern) |
Predicate |
CriteriaBuilderImpl.notLike(Expression<String> matchExpression,
String pattern,
char escapeCharacter) |
Predicate |
CriteriaBuilderImpl.notLike(Expression<String> matchExpression,
String pattern,
Expression<Character> escapeCharacter) |
Predicate |
CriteriaBuilderImpl.or(Expression<Boolean> x,
Expression<Boolean> y)
Create a disjunction of the given boolean expressions.
|
Predicate |
CriteriaBuilderImpl.or(Predicate... restrictions)
Create a disjunction of the given restriction predicates.
|
Predicate |
CriteriaBuilderImpl.wrap(Expression<Boolean> expression) |
Modifier and Type | Method and Description |
---|---|
Predicate |
CriteriaBuilderImpl.and(Predicate... restrictions)
Create a conjunction of the given restriction predicates.
|
Subquery<T> |
CriteriaSubqueryImpl.having(Predicate... predicates)
Specify restrictions over the groups of the subquery
according the conjunction of the specified restriction
predicates.
|
CriteriaQuery<T> |
CriteriaQueryImpl.having(Predicate... predicates)
Specify restrictions over the groups of the query
according the conjunction of the specified restriction
predicates.
|
Predicate |
CriteriaBuilderImpl.or(Predicate... restrictions)
Create a disjunction of the given restriction predicates.
|
void |
QueryStructure.setHaving(Predicate having) |
void |
QueryStructure.setRestriction(Predicate restriction) |
Subquery<T> |
CriteriaSubqueryImpl.where(Predicate... predicates)
Modify the subquery to restrict the result according
to the conjunction of the specified restriction predicates.
|
CriteriaQuery<T> |
CriteriaQueryImpl.where(Predicate... predicates)
Modify the query to restrict the query result according
to the conjunction of the specified restriction predicates.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
ExpressionImpl.in(Collection<?> values)
Create a predicate to test whether the expression is a member
of the collection.
|
Predicate |
ExpressionImpl.in(Expression<?>... values)
Create a predicate to test whether the expression is a member
of the argument list.
|
Predicate |
ExpressionImpl.in(Expression<Collection<?>> values)
Create a predicate to test whether the expression is a member
of the collection.
|
Predicate |
ExpressionImpl.in(Object... values)
Create a predicate to test whether the expression is a member
of the argument list.
|
Predicate |
ExpressionImpl.isNotNull()
Create a predicate to test whether the expression is
not null.
|
Predicate |
ExpressionImpl.isNull()
Create a predicate to test whether the expression is null.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPredicateImpl
Basic template support for
Predicate implementors providing
expression handling, negation and conjunction/disjunction handling. |
class |
AbstractSimplePredicate
TODO : javadoc
|
class |
BetweenPredicate<Y>
Models a BETWEEN
Predicate . |
class |
BooleanAssertionPredicate
Predicate to assert the explicit value of a boolean expression:
x = true
x = false
x <> true
x <> false
|
class |
BooleanExpressionPredicate
Defines a
Predicate used to wrap an Expression<Boolean> . |
class |
BooleanStaticAssertionPredicate
Predicate used to assert a static boolean condition.
|
class |
ComparisonPredicate
Models a basic relational comparison predicate.
|
class |
CompoundPredicate
A compound
predicate is a grouping of other predicates in order to convert
either a conjunction (logical AND) or a disjunction (logical OR). |
class |
ExistsPredicate
Models an EXISTS(
|
class |
ExplicitTruthValueCheck
ANSI-SQL defines TRUE, FALSE and UNKNOWN as truth values.
|
class |
InPredicate<T>
Models an [NOT] IN restriction
|
class |
IsEmptyPredicate<C extends Collection>
Models an IS [NOT] EMPTY restriction
|
class |
LikePredicate
Models a SQL LIKE expression.
|
class |
MemberOfPredicate<E,C extends Collection<E>>
Models an [NOT] MEMBER OF restriction
|
class |
NullnessPredicate
Defines a
Predicate for checking the
nullness state of an expression, aka an IS [NOT] NULL predicate. |
Modifier and Type | Method and Description |
---|---|
Predicate |
CompoundPredicate.not()
Create negation of compound predicate by using logic rules:
1.
|
Predicate |
AbstractPredicateImpl.not() |
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.