public class CompoundExpressionImpl extends FunctionExpressionImpl<java.lang.Boolean>
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 boolean |
isNegated |
expressions, operatorisLiteral, literal, metamodelalias, currentNode, javaType| Constructor and Description |
|---|
CompoundExpressionImpl(Metamodel metamodel,
org.eclipse.persistence.expressions.Expression expressionNode,
java.util.List<<any>> compoundExpressions) |
CompoundExpressionImpl(Metamodel metamodel,
org.eclipse.persistence.expressions.Expression expressionNode,
java.util.List<<any>> compoundExpressions,
java.lang.String operator) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<<any>> |
getExpressions() |
BooleanOperator |
getOperator()
Return the boolean operator for the predicate.
|
boolean |
isCompoundExpression() |
boolean |
isExpression() |
boolean |
isNegated()
Has negation been applied to the predicate.
|
boolean |
isPredicate() |
Predicate |
not()
Apply negation to the predicate.
|
protected void |
setIsNegated(boolean isNegated) |
void |
setOperator(BooleanOperator operator) |
void |
setParentNode(org.eclipse.persistence.expressions.Expression parentNode)
This method is used to store what will be the parent EclipseLink expression in the case the tree needs to be altered.
|
findRootAndParameters, getChildExpressions, getOperationas, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isSubqueryalias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRootpublic CompoundExpressionImpl(Metamodel metamodel,
org.eclipse.persistence.expressions.Expression expressionNode,
java.util.List<<any>> compoundExpressions)
public CompoundExpressionImpl(Metamodel metamodel,
org.eclipse.persistence.expressions.Expression expressionNode,
java.util.List<<any>> compoundExpressions,
java.lang.String operator)
public BooleanOperator getOperator()
public java.util.List<<any>> getExpressions()
public boolean isCompoundExpression()
isCompoundExpression in interface InternalExpressionisCompoundExpression in class FunctionExpressionImpl<java.lang.Boolean>public boolean isExpression()
isExpression in interface InternalExpressionisExpression in class FunctionExpressionImpl<java.lang.Boolean>public boolean isNegated()
public Predicate not()
public boolean isPredicate()
isPredicate in interface InternalExpressionisPredicate in class ExpressionImpl<java.lang.Boolean>protected void setIsNegated(boolean isNegated)
public void setOperator(BooleanOperator operator)
operator - the operator to setpublic void setParentNode(org.eclipse.persistence.expressions.Expression parentNode)