public class InImpl<T> extends CompoundExpressionImpl implements javax.persistence.criteria.CriteriaBuilder.In<T>
Purpose: Contains the implementation of the In interface of the JPA criteria API.
Description: This class represents an In predicate.
Join
,
Serialized FormConstructor and Description |
---|
InImpl(javax.persistence.metamodel.Metamodel metamodel,
ExpressionImpl leftExpression,
java.util.Collection values,
java.util.List expressions) |
InImpl(javax.persistence.metamodel.Metamodel metamodel,
ExpressionImpl leftExpression,
ExpressionImpl rightExp,
java.util.List expressions) |
Modifier and Type | Method and Description |
---|---|
void |
findRootAndParameters(CommonAbstractCriteriaImpl query) |
javax.persistence.criteria.Expression<T> |
getExpression()
Returns the expression to be tested against the
list of values.
|
boolean |
isPredicate() |
javax.persistence.criteria.Predicate |
not()
Apply negation to the predicate.
|
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.
|
javax.persistence.criteria.CriteriaBuilder.In<T> |
value(javax.persistence.criteria.Expression<? extends T> value)
Add to list of values to be tested against.
|
javax.persistence.criteria.CriteriaBuilder.In<T> |
value(T value)
Add to list of values to be tested against.
|
getExpressions, getOperator, isCompoundExpression, isExpression, isNegated, setOperator
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
getExpressions, getOperator, isNegated
as, in, in, in, in, isNotNull, isNull
public InImpl(javax.persistence.metamodel.Metamodel metamodel, ExpressionImpl leftExpression, java.util.Collection values, java.util.List expressions)
public InImpl(javax.persistence.metamodel.Metamodel metamodel, ExpressionImpl leftExpression, ExpressionImpl rightExp, java.util.List expressions)
public javax.persistence.criteria.Expression<T> getExpression()
getExpression
in interface javax.persistence.criteria.CriteriaBuilder.In<T>
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
findRootAndParameters
in interface InternalSelection
findRootAndParameters
in class FunctionExpressionImpl<java.lang.Boolean>
public boolean isPredicate()
isPredicate
in interface InternalExpression
isPredicate
in class CompoundExpressionImpl
public javax.persistence.criteria.CriteriaBuilder.In<T> value(T value)
value
in interface javax.persistence.criteria.CriteriaBuilder.In<T>
value
- valuepublic javax.persistence.criteria.CriteriaBuilder.In<T> value(javax.persistence.criteria.Expression<? extends T> value)
value
in interface javax.persistence.criteria.CriteriaBuilder.In<T>
value
- expressionpublic void setParentNode(Expression parentNode)
setParentNode
in class CompoundExpressionImpl
public javax.persistence.criteria.Predicate not()
CompoundExpressionImpl
not
in interface javax.persistence.criteria.Predicate
not
in class CompoundExpressionImpl
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference