Module org.eclipse.persistence.jpa
Class PredicateImpl
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<Boolean>
org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<Boolean>
org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl<Boolean>
org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl
org.eclipse.persistence.internal.jpa.querydef.PredicateImpl
- All Implemented Interfaces:
Expression<Boolean>,Predicate,Selection<Boolean>,TupleElement<Boolean>,Serializable,InternalExpression,InternalSelection
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.
- Since:
- EclipseLink 1.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.Predicate
Predicate.BooleanOperator -
Field Summary
FieldsFields inherited from class org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl
isNegatedFields inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
expressions, operatorFields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodelFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType -
Constructor Summary
ConstructorsConstructorDescriptionPredicateImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> parentExpressions, Predicate.BooleanOperator operator) -
Method Summary
Modifier and TypeMethodDescriptionReturn the top-level conjuncts or disjuncts of the predicate.INTERNAL: This method returns null if this is not a conjunction/disjunction TRUE if this is a conjunction, FALSE for disjunction.Return the boolean operator for the predicate.booleanbooleannot()Apply negation to the predicate.voidsetOperator(Predicate.BooleanOperator operator) Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl
isExpression, isNegated, isPredicate, setIsNegated, setParentNodeMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
findRootAndParameters, getChildExpressions, getOperationMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isLiteral, isNotNull, isNull, isParameter, isSubqueryMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNullMethods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Field Details
-
booloperator
-
-
Constructor Details
-
PredicateImpl
public PredicateImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> parentExpressions, Predicate.BooleanOperator operator)
-
-
Method Details
-
getJunctionValue
INTERNAL: This method returns null if this is not a conjunction/disjunction TRUE if this is a conjunction, FALSE for disjunction. -
getOperator
Description copied from class:CompoundExpressionImplReturn the boolean operator for the predicate. If the predicate is simple, this is AND.- Specified by:
getOperatorin interfacePredicate- Overrides:
getOperatorin classCompoundExpressionImpl- Returns:
- boolean operator for the predicate
-
getExpressions
Return the top-level conjuncts or disjuncts of the predicate.- Specified by:
getExpressionsin interfacePredicate- Overrides:
getExpressionsin classCompoundExpressionImpl- Returns:
- list boolean expressions forming the predicate
-
not
Apply negation to the predicate.- Specified by:
notin interfacePredicate- Overrides:
notin classCompoundExpressionImpl- Returns:
- the negated predicate
-
setOperator
- Overrides:
setOperatorin classCompoundExpressionImpl- Parameters:
operator- the operator to set
-
isJunction
public boolean isJunction()- Specified by:
isJunctionin interfaceInternalExpression- Overrides:
isJunctionin classExpressionImpl<Boolean>
-
isCompoundExpression
public boolean isCompoundExpression()- Specified by:
isCompoundExpressionin interfaceInternalExpression- Overrides:
isCompoundExpressionin classCompoundExpressionImpl
-