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 FormConstructor 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, getOperation
as, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isSubquery
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
public 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.Predicate
public java.util.List<javax.persistence.criteria.Expression<java.lang.Boolean>> getExpressions()
getExpressions
in interface javax.persistence.criteria.Predicate
public boolean isCompoundExpression()
isCompoundExpression
in interface InternalExpression
isCompoundExpression
in class FunctionExpressionImpl<java.lang.Boolean>
public boolean isExpression()
isExpression
in interface InternalExpression
isExpression
in class FunctionExpressionImpl<java.lang.Boolean>
public boolean isNegated()
isNegated
in interface javax.persistence.criteria.Predicate
public javax.persistence.criteria.Predicate not()
not
in interface javax.persistence.criteria.Predicate
public boolean isPredicate()
isPredicate
in interface InternalExpression
isPredicate
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