public class CompoundExpressionImpl extends FunctionExpressionImpl<java.lang.Boolean> implements javax.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| Constructor and Description |
|---|
CompoundExpressionImpl(javax.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions) |
CompoundExpressionImpl(javax.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions,
java.lang.String operator) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> |
getExpressions() |
javax.persistence.criteria.Predicate.BooleanOperator |
getOperator()
Return the boolean operator for the predicate.
|
boolean |
isCompoundExpression() |
boolean |
isExpression() |
boolean |
isNegated()
Has negation been applied to the predicate.
|
boolean |
isPredicate() |
javax.persistence.criteria.Predicate |
not()
Apply negation to the predicate.
|
void |
setOperator(javax.persistence.criteria.Predicate.BooleanOperator operator) |
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.
|
findRootAndParameters, getChildExpressions, getOperationas, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isSubqueryalias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRootequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullpublic CompoundExpressionImpl(javax.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions)
public CompoundExpressionImpl(javax.persistence.metamodel.Metamodel metamodel,
Expression expressionNode,
java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions,
java.lang.String operator)
public javax.persistence.criteria.Predicate.BooleanOperator getOperator()
getOperator in interface javax.persistence.criteria.Predicatepublic java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> getExpressions()
getExpressions in interface javax.persistence.criteria.Predicatepublic boolean isCompoundExpression()
isCompoundExpression in interface InternalExpressionisCompoundExpression in class FunctionExpressionImpl<java.lang.Boolean>public boolean isExpression()
isExpression in interface InternalExpressionisExpression in class FunctionExpressionImpl<java.lang.Boolean>public boolean isNegated()
isNegated in interface javax.persistence.criteria.Predicatepublic javax.persistence.criteria.Predicate not()
not in interface javax.persistence.criteria.Predicatepublic boolean isPredicate()
isPredicate in interface InternalExpressionisPredicate in class ExpressionImpl<java.lang.Boolean>public void setOperator(javax.persistence.criteria.Predicate.BooleanOperator operator)
operator - the operator to setpublic void setParentNode(Expression parentNode)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference