Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.querydef

public Class PredicateImpl

extends CompoundExpressionImpl
implements Predicate
Class Inheritance
All Implemented Interfaces
jakarta.persistence.criteria.Predicate, jakarta.persistence.criteria.Expression, jakarta.persistence.criteria.Selection, jakarta.persistence.TupleElement
Imports
java.util.ArrayList, .List, jakarta.persistence.criteria.Expression, .Predicate, jakarta.persistence.metamodel.Metamodel

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.

Author
gyorke
Since
EclipseLink 1.2
See Also
Predicate

Field Summary

Modifier and TypeField and Description
protected Predicate.BooleanOperator
Inherited from org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl:
isNegated

Constructor Summary

AccessConstructor and Description
public <T>
PredicateImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> parentExpressions, Predicate.BooleanOperator operator)

Method Summary

Modifier and TypeMethod and Description
public List<Expression<Boolean>>

Returns:

list boolean expressions forming the predicate
getExpressions
()

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.getExpressions.

Implements jakarta.persistence.criteria.Predicate.getExpressions.

Return the top-level conjuncts or disjuncts of the predicate.
public Boolean
getJunctionValue()

INTERNAL: This method returns null if this is not a conjunction/disjunction TRUE if this is a conjunction, FALSE for disjunction.

public Predicate.BooleanOperator
public boolean
public boolean
public Predicate

Returns:

the negated predicate
not
()

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.not.

Implements jakarta.persistence.criteria.Predicate.not.

Apply negation to the predicate.
public void
Inherited from org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl:
isExpressionisNegatedisPredicatesetIsNegatedsetParentNode

Field Detail

booloperatorback to summary
protected Predicate.BooleanOperator booloperator

Constructor Detail

PredicateImplback to summary
public <T> PredicateImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> parentExpressions, Predicate.BooleanOperator operator)

Method Detail

getExpressionsback to summary
public List<Expression<Boolean>> getExpressions()

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.getExpressions.

Implements jakarta.persistence.criteria.Predicate.getExpressions.

Return the top-level conjuncts or disjuncts of the predicate.

Returns:List<Expression<Boolean>>

list boolean expressions forming the predicate

Annotations
@Override
getJunctionValueback to summary
public Boolean getJunctionValue()

INTERNAL: This method returns null if this is not a conjunction/disjunction TRUE if this is a conjunction, FALSE for disjunction.

getOperatorback to summary
public Predicate.BooleanOperator getOperator()

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.getOperator.

Implements jakarta.persistence.criteria.Predicate.getOperator.

Doc from jakarta.persistence.criteria.Predicate.getOperator.

Return the boolean operator for the predicate. If the predicate is simple, this is AND.

Returns:Predicate.BooleanOperator

boolean operator for the predicate

Annotations
@Override
isCompoundExpressionback to summary
public boolean isCompoundExpression()

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.isCompoundExpression.

Implements org.eclipse.persistence.internal.jpa.querydef.InternalExpression.isCompoundExpression.

Annotations
@Override
isJunctionback to summary
public boolean isJunction()

Overrides org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl.isJunction.

Implements org.eclipse.persistence.internal.jpa.querydef.InternalExpression.isJunction.

Annotations
@Override
notback to summary
public Predicate not()

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.not.

Implements jakarta.persistence.criteria.Predicate.not.

Apply negation to the predicate.

Returns:Predicate

the negated predicate

Annotations
@Override
setOperatorback to summary
public void setOperator(Predicate.BooleanOperator operator)

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.setOperator.

Parameters
operator:Predicate.BooleanOperator

the operator to set

Annotations
@Override