public class PredicateImpl extends CompoundExpressionImpl
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 Form| Modifier and Type | Field and Description |
|---|---|
protected BooleanOperator |
booloperator |
isNegatedexpressions, operatorisLiteral, literal, metamodelalias, currentNode, javaType| Constructor and Description |
|---|
PredicateImpl(Metamodel metamodel,
org.eclipse.persistence.expressions.Expression expressionNode,
java.util.List<<any>> parentExpressions,
BooleanOperator operator) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<<any>> |
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.
|
BooleanOperator |
getOperator()
Return the boolean operator for the predicate.
|
boolean |
isCompoundExpression() |
boolean |
isJunction() |
Predicate |
not()
Apply negation to the predicate.
|
void |
setOperator(BooleanOperator operator) |
isExpression, isNegated, isPredicate, setIsNegated, setParentNodefindRootAndParameters, getChildExpressions, getOperationas, buildExpressionForAs, in, in, in, in, isLiteral, isNotNull, isNull, isParameter, isSubqueryalias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRootpublic PredicateImpl(Metamodel metamodel,
org.eclipse.persistence.expressions.Expression expressionNode,
java.util.List<<any>> parentExpressions,
BooleanOperator operator)
public java.lang.Boolean getJunctionValue()
public BooleanOperator getOperator()
CompoundExpressionImplgetOperator in class CompoundExpressionImplpublic java.util.List<<any>> getExpressions()
getExpressions in class CompoundExpressionImplpublic Predicate not()
not in class CompoundExpressionImplpublic void setOperator(BooleanOperator operator)
setOperator in class CompoundExpressionImploperator - the operator to setpublic boolean isJunction()
isJunction in interface InternalExpressionisJunction in class ExpressionImpl<java.lang.Boolean>public boolean isCompoundExpression()
isCompoundExpression in interface InternalExpressionisCompoundExpression in class CompoundExpressionImpl