public class CompoundExpressionImpl extends FunctionExpressionImpl<Boolean> implements jakarta.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 Form| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isNegated |
expressions, operatorisLiteral, literal, metamodelalias, currentNode, javaType| Constructor and Description |
|---|
CompoundExpressionImpl(jakarta.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
List<jakarta.persistence.criteria.Expression<?>> compoundExpressions) |
CompoundExpressionImpl(jakarta.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
List<jakarta.persistence.criteria.Expression<?>> compoundExpressions,
String operator) |
| Modifier and Type | Method and Description |
|---|---|
List<jakarta.persistence.criteria.Expression<Boolean>> |
getExpressions() |
jakarta.persistence.criteria.Predicate.BooleanOperator |
getOperator()
Return the boolean operator for the predicate.
|
boolean |
isCompoundExpression() |
boolean |
isExpression() |
boolean |
isNegated()
Has negation been applied to the predicate.
|
boolean |
isPredicate() |
jakarta.persistence.criteria.Predicate |
not()
Apply negation to the predicate.
|
protected void |
setIsNegated(boolean isNegated) |
void |
setOperator(jakarta.persistence.criteria.Predicate.BooleanOperator operator) |
void |
setParentNode(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, isRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullpublic CompoundExpressionImpl(jakarta.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
List<jakarta.persistence.criteria.Expression<?>> compoundExpressions)
public CompoundExpressionImpl(jakarta.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
List<jakarta.persistence.criteria.Expression<?>> compoundExpressions,
String operator)
public jakarta.persistence.criteria.Predicate.BooleanOperator getOperator()
getOperator in interface jakarta.persistence.criteria.Predicatepublic List<jakarta.persistence.criteria.Expression<Boolean>> getExpressions()
getExpressions in interface jakarta.persistence.criteria.Predicatepublic boolean isCompoundExpression()
isCompoundExpression in interface InternalExpressionisCompoundExpression in class FunctionExpressionImpl<Boolean>public boolean isExpression()
isExpression in interface InternalExpressionisExpression in class FunctionExpressionImpl<Boolean>public boolean isNegated()
isNegated in interface jakarta.persistence.criteria.Predicatepublic jakarta.persistence.criteria.Predicate not()
not in interface jakarta.persistence.criteria.Predicatepublic boolean isPredicate()
isPredicate in interface InternalExpressionisPredicate in class ExpressionImpl<Boolean>protected void setIsNegated(boolean isNegated)
public void setOperator(jakarta.persistence.criteria.Predicate.BooleanOperator operator)
operator - the operator to setpublic void setParentNode(Expression parentNode)
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.