Package | Description |
---|---|
javax.persistence.criteria |
Java Persistence Criteria API
|
org.hibernate.query.criteria | |
org.hibernate.query.criteria.internal | |
org.hibernate.query.criteria.internal.expression | |
org.hibernate.query.criteria.internal.path | |
org.hibernate.query.criteria.internal.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 |
Join.getOn()
Return the predicate that corresponds to the ON
restriction(s) on the join, or null if no ON condition
has been specified.
|
Predicate |
CommonAbstractCriteria.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.
|
SetJoin<Z,E> |
SetJoin.on(Predicate... restrictions)
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
MapJoin<Z,K,V> |
MapJoin.on(Predicate... restrictions)
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
ListJoin<Z,E> |
ListJoin.on(Predicate... restrictions)
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
Join<Z,X> |
Join.on(Predicate... restrictions)
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
CollectionJoin<Z,E> |
CollectionJoin.on(Predicate... restrictions)
Modify the join to restrict the result according to the
specified ON condition and return the join object.
|
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.
|
CriteriaUpdate<T> |
CriteriaUpdate.where(Predicate... restrictions)
Modify the update query to restrict the target of the update
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.
|
CriteriaDelete<T> |
CriteriaDelete.where(Predicate... restrictions)
Modify the delete query to restrict the target of the deletion
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 |
---|---|
<M extends Map<?,?>> |
HibernateCriteriaBuilder.isMapEmpty(Expression<M> mapExpression)
Create a predicate that tests whether a Map is empty.
|
<M extends Map<?,?>> |
HibernateCriteriaBuilder.isMapNotEmpty(Expression<M> mapExpression)
Create a predicate that tests whether a Map is
not empty.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
CriteriaBuilderImpl.and(Expression<Boolean> x,
Expression<Boolean> y) |
Predicate |
CriteriaBuilderImpl.and(Predicate... restrictions) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.between(Expression<? extends Y> expression,
Expression<? extends Y> lowerBound,
Expression<? extends Y> upperBound) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.between(Expression<? extends Y> expression,
Y lowerBound,
Y upperBound) |
Predicate |
CriteriaBuilderImpl.conjunction() |
Predicate |
CriteriaBuilderImpl.disjunction() |
Predicate |
CriteriaBuilderImpl.equal(Expression<?> x,
Expression<?> y) |
Predicate |
CriteriaBuilderImpl.equal(Expression<?> x,
Object y) |
Predicate |
CriteriaBuilderImpl.exists(Subquery<?> subquery) |
Predicate |
CriteriaBuilderImpl.ge(Expression<? extends Number> x,
Expression<? extends Number> y) |
Predicate |
CriteriaBuilderImpl.ge(Expression<? extends Number> x,
Number y) |
Predicate |
CriteriaSubqueryImpl.getGroupRestriction() |
Predicate |
CriteriaQueryImpl.getGroupRestriction() |
Predicate |
QueryStructure.getHaving() |
Predicate |
QueryStructure.getRestriction() |
Predicate |
CriteriaSubqueryImpl.getRestriction() |
Predicate |
CriteriaQueryImpl.getRestriction() |
Predicate |
AbstractManipulationCriteriaQuery.getRestriction() |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.greaterThan(Expression<? extends Y> x,
Expression<? extends Y> y) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.greaterThan(Expression<? extends Y> x,
Y y) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.greaterThanOrEqualTo(Expression<? extends Y> x,
Expression<? extends Y> y) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.greaterThanOrEqualTo(Expression<? extends Y> x,
Y y) |
Predicate |
CriteriaBuilderImpl.gt(Expression<? extends Number> x,
Expression<? extends Number> y) |
Predicate |
CriteriaBuilderImpl.gt(Expression<? extends Number> x,
Number y) |
<C extends Collection<?>> |
CriteriaBuilderImpl.isEmpty(Expression<C> collectionExpression) |
Predicate |
CriteriaBuilderImpl.isFalse(Expression<Boolean> expression) |
<M extends Map<?,?>> |
CriteriaBuilderImpl.isMapEmpty(Expression<M> mapExpression) |
<M extends Map<?,?>> |
CriteriaBuilderImpl.isMapNotEmpty(Expression<M> mapExpression) |
<E,C extends Collection<E>> |
CriteriaBuilderImpl.isMember(E e,
Expression<C> collectionExpression) |
<E,C extends Collection<E>> |
CriteriaBuilderImpl.isMember(Expression<E> elementExpression,
Expression<C> collectionExpression) |
<C extends Collection<?>> |
CriteriaBuilderImpl.isNotEmpty(Expression<C> collectionExpression) |
<E,C extends Collection<E>> |
CriteriaBuilderImpl.isNotMember(E e,
Expression<C> cExpression) |
<E,C extends Collection<E>> |
CriteriaBuilderImpl.isNotMember(Expression<E> eExpression,
Expression<C> cExpression) |
Predicate |
CriteriaBuilderImpl.isNotNull(Expression<?> x) |
Predicate |
CriteriaBuilderImpl.isNull(Expression<?> x) |
Predicate |
CriteriaBuilderImpl.isTrue(Expression<Boolean> expression) |
Predicate |
CriteriaBuilderImpl.le(Expression<? extends Number> x,
Expression<? extends Number> y) |
Predicate |
CriteriaBuilderImpl.le(Expression<? extends Number> x,
Number y) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.lessThan(Expression<? extends Y> x,
Expression<? extends Y> y) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.lessThan(Expression<? extends Y> x,
Y y) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.lessThanOrEqualTo(Expression<? extends Y> x,
Expression<? extends Y> y) |
<Y extends Comparable<? super Y>> |
CriteriaBuilderImpl.lessThanOrEqualTo(Expression<? extends Y> x,
Y y) |
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) |
Predicate |
CriteriaBuilderImpl.lt(Expression<? extends Number> x,
Number y) |
Predicate |
CriteriaBuilderImpl.not(Expression<Boolean> expression) |
Predicate |
CriteriaBuilderImpl.notEqual(Expression<?> x,
Expression<?> y) |
Predicate |
CriteriaBuilderImpl.notEqual(Expression<?> x,
Object y) |
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) |
Predicate |
CriteriaBuilderImpl.or(Predicate... restrictions) |
Predicate |
CriteriaBuilderImpl.wrap(Expression<Boolean> expression) |
Modifier and Type | Method and Description |
---|---|
Predicate |
CriteriaBuilderImpl.and(Predicate... restrictions) |
Subquery<T> |
CriteriaSubqueryImpl.having(Predicate... predicates) |
CriteriaQuery<T> |
CriteriaQueryImpl.having(Predicate... predicates) |
SetJoinImplementor<Z,X> |
SetJoinImplementor.on(Predicate... restrictions) |
MapJoinImplementor<Z,K,V> |
MapJoinImplementor.on(Predicate... restrictions) |
ListJoinImplementor<Z,X> |
ListJoinImplementor.on(Predicate... restrictions) |
JoinImplementor<Z,X> |
JoinImplementor.on(Predicate... restrictions)
Coordinate return type between
Join.on(Predicate...) and Fetch#on(Predicate...) |
CollectionJoinImplementor<Z,X> |
CollectionJoinImplementor.on(Predicate... restrictions) |
Predicate |
CriteriaBuilderImpl.or(Predicate... restrictions) |
void |
QueryStructure.setHaving(Predicate having) |
void |
AbstractManipulationCriteriaQuery.setRestriction(Predicate... restrictions) |
void |
QueryStructure.setRestriction(Predicate restriction) |
CriteriaUpdate<T> |
CriteriaUpdateImpl.where(Predicate... restrictions) |
Subquery<T> |
CriteriaSubqueryImpl.where(Predicate... predicates) |
CriteriaQuery<T> |
CriteriaQueryImpl.where(Predicate... predicates) |
CriteriaDelete<T> |
CriteriaDeleteImpl.where(Predicate... restrictions) |
Modifier and Type | Method and Description |
---|---|
Predicate |
ExpressionImpl.in(Collection<?> values) |
Predicate |
ExpressionImpl.in(Expression<?>... values) |
Predicate |
ExpressionImpl.in(Expression<Collection<?>> values) |
Predicate |
ExpressionImpl.in(Object... values) |
Predicate |
ExpressionImpl.isNotNull() |
Predicate |
ExpressionImpl.isNull() |
Modifier and Type | Method and Description |
---|---|
Predicate |
AbstractJoinImpl.getOn() |
Modifier and Type | Method and Description |
---|---|
SetJoinImplementor<O,E> |
SetAttributeJoin.on(Predicate... restrictions) |
JoinImplementor<O,E> |
PluralAttributeJoinSupport.on(Predicate... restrictions) |
MapJoinImplementor<O,K,V> |
MapAttributeJoin.on(Predicate... restrictions) |
ListAttributeJoin<O,E> |
ListAttributeJoin.on(Predicate... restrictions) |
CollectionAttributeJoin<O,E> |
CollectionAttributeJoin.on(Predicate... restrictions) |
JoinImplementor<Z,X> |
AbstractJoinImpl.on(Predicate... restrictions) |
Modifier and Type | Interface and Description |
---|---|
interface |
PredicateImplementor |
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 a [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 a [NOT] MEMBER OF restriction
|
class |
NegatedPredicateWrapper |
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 |
NegatedPredicateWrapper.not() |
Predicate |
CompoundPredicate.not()
Create negation of compound predicate by using logic rules:
1.
|
Predicate |
AbstractPredicateImpl.not() |
Copyright © 2019 JBoss by Red Hat. All rights reserved.