JPA Interface

In

Super Interfaces:
Expression<Boolean>, Predicate, Selection<Boolean>, TupleElement<Boolean>

Interface used to build in predicates.
Since:
JPA 2.0

Public Methods

Return the expression to be tested against the list of values.
Return:
expression
Since:
JPA 2.0
List<Expression<Boolean>> getExpressions()
Return the top-level conjuncts or disjuncts of the predicate.
Returns empty list if there are no top-level conjuncts or disjuncts of the predicate. Modifications to the list do not affect the query.
Return:
list of boolean expressions forming the predicate
Inherited from:
Predicate
Since:
JPA 2.0
Predicate.BooleanOperator getOperator()
Return the boolean operator for the predicate.
If the predicate is simple, this is AND.
Return:
boolean operator for the predicate
Inherited from:
Predicate
Since:
JPA 2.0
boolean isNegated()
Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not() method.
Return:
boolean indicating if the predicate is a negated predicate
Inherited from:
Predicate
Since:
JPA 2.0
Create a negation of the predicate.
Return:
negated predicate
Inherited from:
Predicate
Since:
JPA 2.0
CriteriaBuilder.In<T> value(Expression<?extendsT> value)
Add to list of values to be tested against.
Parameters:
value - expression
Return:
in predicate
Since:
JPA 2.0
CriteriaBuilder.In<T> value(T value)
Add to list of values to be tested against.
Parameters:
value - value
Return:
in predicate
Since:
JPA 2.0