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
| Modifier and Type | Field and Description |
|---|---|
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public <T> | CompoundExpressionImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> compoundExpressions)
|
| public <T> | CompoundExpressionImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | getExpressions()
Implements jakarta. |
| public Predicate. | Returns: boolean operator for the predicateImplements jakarta. |
| public boolean | |
| public boolean | |
| public boolean | Returns: boolean indicating if the predicate has been negatedImplements jakarta. |
| public boolean | |
| public Predicate | Returns: the negated predicateImplements jakarta. |
| protected void | |
| public void | |
| public 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. |
| isNegated | back to summary |
|---|---|
| protected boolean isNegated | |
| CompoundExpressionImpl | back to summary |
|---|---|
| public <T> CompoundExpressionImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> compoundExpressions) | |
| CompoundExpressionImpl | back to summary |
|---|---|
| public <T> CompoundExpressionImpl(Metamodel metamodel, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator) | |
| getExpressions | back to summary |
|---|---|
| public List Implements jakarta. Doc from jakarta. Return the top-level conjuncts or disjuncts of the predicate. Returns empty list if there are no top-level conjuncts or disjuncts of the predicate. Modifications to the list do not affect the query.
| |
| getOperator | back to summary |
|---|---|
| public Predicate. Implements jakarta. Return the boolean operator for the predicate. If the predicate is simple, this is AND.
| |
| isCompoundExpression | back to summary |
|---|---|
| public boolean isCompoundExpression() Overrides org. Implements org.
| |
| isExpression | back to summary |
|---|---|
| public boolean isExpression() Overrides org. Implements org.
| |
| isNegated | back to summary |
|---|---|
| public boolean isNegated() Implements jakarta. Has negation been applied to the predicate.
| |
| isPredicate | back to summary |
|---|---|
| public boolean isPredicate() Overrides org. Implements org.
| |
| not | back to summary |
|---|---|
| public Predicate not() Implements jakarta. Apply negation to the predicate. | |
| setIsNegated | back to summary |
|---|---|
| protected void setIsNegated(boolean isNegated) | |
| setOperator | back to summary |
|---|---|
public void setOperator(Predicate.
| |
| setParentNode | back to summary |
|---|---|
| public 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. Currently used for In. | |