public class PredicateImpl extends CompoundExpressionImpl 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 jakarta.persistence.criteria.Predicate.BooleanOperator |
booloperator |
isNegatedexpressions, operatorisLiteral, literal, metamodelalias, currentNode, javaType| Constructor and Description |
|---|
PredicateImpl(jakarta.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
List<jakarta.persistence.criteria.Expression<?>> parentExpressions,
jakarta.persistence.criteria.Predicate.BooleanOperator operator) |
| Modifier and Type | Method and Description |
|---|---|
List<jakarta.persistence.criteria.Expression<Boolean>> |
getExpressions()
Return the top-level conjuncts or disjuncts of the predicate.
|
Boolean |
getJunctionValue()
INTERNAL:
This method returns null if this is not a conjunction/disjunction
TRUE if this is a conjunction, FALSE for disjunction.
|
jakarta.persistence.criteria.Predicate.BooleanOperator |
getOperator()
Return the boolean operator for the predicate.
|
boolean |
isCompoundExpression() |
boolean |
isJunction() |
jakarta.persistence.criteria.Predicate |
not()
Apply negation to the predicate.
|
void |
setOperator(jakarta.persistence.criteria.Predicate.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, isRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullprotected jakarta.persistence.criteria.Predicate.BooleanOperator booloperator
public PredicateImpl(jakarta.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
List<jakarta.persistence.criteria.Expression<?>> parentExpressions,
jakarta.persistence.criteria.Predicate.BooleanOperator operator)
public Boolean getJunctionValue()
public jakarta.persistence.criteria.Predicate.BooleanOperator getOperator()
CompoundExpressionImplgetOperator in interface jakarta.persistence.criteria.PredicategetOperator in class CompoundExpressionImplpublic List<jakarta.persistence.criteria.Expression<Boolean>> getExpressions()
getExpressions in interface jakarta.persistence.criteria.PredicategetExpressions in class CompoundExpressionImplpublic jakarta.persistence.criteria.Predicate not()
not in interface jakarta.persistence.criteria.Predicatenot in class CompoundExpressionImplpublic void setOperator(jakarta.persistence.criteria.Predicate.BooleanOperator operator)
setOperator in class CompoundExpressionImploperator - the operator to setpublic boolean isJunction()
isJunction in interface InternalExpressionisJunction in class ExpressionImpl<Boolean>public boolean isCompoundExpression()
isCompoundExpression in interface InternalExpressionisCompoundExpression in class CompoundExpressionImplCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.