Module org.eclipse.persistence.jpa
Class CompoundExpressionImpl
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
- All Implemented Interfaces:
Expression<Boolean>,Predicate,Selection<Boolean>,TupleElement<Boolean>,Serializable,InternalExpression,InternalSelection
- Direct Known Subclasses:
InImpl,PredicateImpl
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.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
ConstructorsConstructorDescriptionCompoundExpressionImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> compoundExpressions) CompoundExpressionImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator) -
Method Summary
Modifier and TypeMethodDescriptionReturn the boolean operator for the predicate.booleanbooleanbooleanHas negation been applied to the predicate.booleannot()Apply negation to the predicate.protected voidsetIsNegated(boolean isNegated) voidsetOperator(Predicate.BooleanOperator operator) voidsetParentNode(Expression parentNode) This method is used to store what will be the parent EclipseLink expression in the case the tree needs to be altered.Methods 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, isJunction, 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
-
isNegated
protected boolean isNegated
-
-
Constructor Details
-
CompoundExpressionImpl
public CompoundExpressionImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> compoundExpressions) -
CompoundExpressionImpl
public CompoundExpressionImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator)
-
-
Method Details
-
getOperator
Return the boolean operator for the predicate. If the predicate is simple, this is AND.- Specified by:
getOperatorin interfacePredicate- Returns:
- boolean operator for the predicate
-
getExpressions
- Specified by:
getExpressionsin interfacePredicate
-
isCompoundExpression
public boolean isCompoundExpression()- Specified by:
isCompoundExpressionin interfaceInternalExpression- Overrides:
isCompoundExpressionin classFunctionExpressionImpl<Boolean>
-
isExpression
public boolean isExpression()- Specified by:
isExpressionin interfaceInternalExpression- Overrides:
isExpressionin classFunctionExpressionImpl<Boolean>
-
isNegated
public boolean isNegated()Has negation been applied to the predicate. -
not
Apply negation to the predicate. -
isPredicate
public boolean isPredicate()- Specified by:
isPredicatein interfaceInternalExpression- Overrides:
isPredicatein classExpressionImpl<Boolean>
-
setIsNegated
protected void setIsNegated(boolean isNegated) -
setOperator
- Parameters:
operator- the operator to set
-
setParentNode
This method is used to store what will be the parent EclipseLink expression in the case the tree needs to be altered. Currently used for In.
-