public class PredicateImpl extends CompoundExpressionImpl implements javax.persistence.criteria.Predicate
Purpose: Contains the implementation of the Predicate interface of the JPA criteria API.
Description: The predicate forms the least specific expression node. Predicates result in boolean expressions that are combined to form the final expression.
Predicate
,
Serialized FormConstructor and Description |
---|
PredicateImpl(javax.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
java.util.List<javax.persistence.criteria.Expression<?>> parentExpressions,
javax.persistence.criteria.Predicate.BooleanOperator operator) |
Modifier and Type | Method and Description |
---|---|
java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> |
getExpressions()
Return the top-level conjuncts or disjuncts of the predicate.
|
java.lang.Boolean |
getJunctionValue()
INTERNAL:
This method returns null if this is not a conjunction/disjunction
TRUE if this is a conjunction, FALSE for disjunction.
|
javax.persistence.criteria.Predicate.BooleanOperator |
getOperator()
Return the boolean operator for the predicate.
|
boolean |
isCompoundExpression() |
boolean |
isJunction() |
javax.persistence.criteria.Predicate |
not()
Apply negation to the predicate.
|
void |
setOperator(javax.persistence.criteria.Predicate.BooleanOperator operator) |
isExpression, isNegated, isPredicate, setParentNode
findRootAndParameters, getChildExpressions, getOperation
as, in, in, in, in, isLiteral, isNotNull, isNull, isParameter, isSubquery
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
public PredicateImpl(javax.persistence.metamodel.Metamodel metamodel, Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> parentExpressions, javax.persistence.criteria.Predicate.BooleanOperator operator)
public java.lang.Boolean getJunctionValue()
public javax.persistence.criteria.Predicate.BooleanOperator getOperator()
CompoundExpressionImpl
getOperator
in interface javax.persistence.criteria.Predicate
getOperator
in class CompoundExpressionImpl
public java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> getExpressions()
getExpressions
in interface javax.persistence.criteria.Predicate
getExpressions
in class CompoundExpressionImpl
public javax.persistence.criteria.Predicate not()
not
in interface javax.persistence.criteria.Predicate
not
in class CompoundExpressionImpl
public void setOperator(javax.persistence.criteria.Predicate.BooleanOperator operator)
setOperator
in class CompoundExpressionImpl
operator
- the operator to setpublic boolean isJunction()
isJunction
in interface InternalExpression
isJunction
in class ExpressionImpl<java.lang.Boolean>
public boolean isCompoundExpression()
isCompoundExpression
in interface InternalExpression
isCompoundExpression
in class CompoundExpressionImpl
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference