public class InImpl<T> extends CompoundExpressionImpl
Purpose: Contains the implementation of the In interface of the JPA criteria API.
Description: This class represents an In predicate.
Join,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected ExpressionImpl |
leftExpression |
protected org.eclipse.persistence.expressions.Expression |
parentNode |
isNegatedexpressions, operatorisLiteral, literal, metamodelalias, currentNode, javaType| Constructor and Description |
|---|
InImpl(Metamodel metamodel,
ExpressionImpl leftExpression,
java.util.Collection values,
java.util.List expressions) |
InImpl(Metamodel metamodel,
ExpressionImpl leftExpression,
ExpressionImpl rightExp,
java.util.List expressions) |
| Modifier and Type | Method and Description |
|---|---|
void |
findRootAndParameters(CommonAbstractCriteriaImpl query) |
<any> |
getExpression()
Returns the expression to be tested against the
list of values.
|
boolean |
isPredicate() |
Predicate |
not()
Apply negation to the predicate.
|
void |
setParentNode(org.eclipse.persistence.expressions.Expression parentNode)
This method is used to store what will be the parent EclipseLink expression in the case the tree needs to be altered.
|
<any> |
value(<any> value)
Add to list of values to be tested against.
|
<any> |
value(T value)
Add to list of values to be tested against.
|
getExpressions, getOperator, isCompoundExpression, isExpression, isNegated, setIsNegated, setOperatorgetChildExpressions, getOperationas, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isSubqueryalias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRootprotected org.eclipse.persistence.expressions.Expression parentNode
protected ExpressionImpl leftExpression
public InImpl(Metamodel metamodel,
ExpressionImpl leftExpression,
java.util.Collection values,
java.util.List expressions)
public InImpl(Metamodel metamodel,
ExpressionImpl leftExpression,
ExpressionImpl rightExp,
java.util.List expressions)
public <any> getExpression()
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
findRootAndParameters in interface InternalSelectionfindRootAndParameters in class FunctionExpressionImpl<java.lang.Boolean>public boolean isPredicate()
isPredicate in interface InternalExpressionisPredicate in class CompoundExpressionImplpublic <any> value(T value)
value - valuepublic <any> value(<any> value)
value - expressionpublic void setParentNode(org.eclipse.persistence.expressions.Expression parentNode)
setParentNode in class CompoundExpressionImplpublic Predicate not()
CompoundExpressionImplnot in class CompoundExpressionImpl