Top Description Inners Methods
javax.persistence.criteria

public Interface Predicate

extends Expression<Boolean>
Known Direct Subinterfaces
javax.persistence.criteria.CriteriaBuilder.In
Imports
java.util.List

The type of a simple or compound predicate: a conjunction or disjunction of restrictions. A simple predicate is considered to be a conjunction with a single conjunct.
Since
Java Persistence 2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Method Summary

Modifier and TypeMethod and Description
public List<Expression<Boolean>>

Returns:

list of boolean expressions forming the predicate
getExpressions
()

Return the top-level conjuncts or disjuncts of the predicate.

public Predicate.BooleanOperator

Returns:

boolean operator for the predicate
getOperator
()

Return the boolean operator for the predicate.

public boolean

Returns:

boolean indicating if the predicate is a negated predicate
isNegated
()

Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not() method.

public Predicate

Returns:

negated predicate
not
()

Create a negation of the predicate.

Inherited from javax.persistence.criteria.Expression:
asininininisNotNullisNull

Method Detail

getExpressionsback to summary
public 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.

Returns:List<Expression<Boolean>>

list of boolean expressions forming the predicate

getOperatorback to summary
public Predicate.BooleanOperator getOperator()

Return the boolean operator for the predicate. If the predicate is simple, this is AND.

Returns:Predicate.BooleanOperator

boolean operator for the predicate

isNegatedback to summary
public boolean isNegated()

Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not() method.

Returns:boolean

boolean indicating if the predicate is a negated predicate

notback to summary
public Predicate not()

Create a negation of the predicate.

Returns:Predicate

negated predicate

javax.persistence.criteria back to summary

public final Enum Predicate.BooleanOperator

extends Enum<Predicate.BooleanOperator>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Predicate.BooleanOperator
public static final Predicate.BooleanOperator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Predicate.BooleanOperator
public static Predicate.BooleanOperator[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ANDback to summary
public static final Predicate.BooleanOperator AND
ORback to summary
public static final Predicate.BooleanOperator OR

Constructor Detail

BooleanOperatorback to summary
private BooleanOperator()

Method Detail

valueOfback to summary
public static Predicate.BooleanOperator valueOf(String name)
valuesback to summary
public static Predicate.BooleanOperator[] values()