Class InImpl<T>
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl<Boolean>
-
- org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl
-
- org.eclipse.persistence.internal.jpa.querydef.InImpl<T>
-
- All Implemented Interfaces:
jakarta.persistence.criteria.CriteriaBuilder.In<T>,jakarta.persistence.criteria.Expression<Boolean>,jakarta.persistence.criteria.Predicate,jakarta.persistence.criteria.Selection<Boolean>,jakarta.persistence.TupleElement<Boolean>,Serializable,InternalExpression,InternalSelection
public class InImpl<T> extends CompoundExpressionImpl implements jakarta.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.
- Since:
- EclipseLink 1.2
- Author:
- gyorke
- See Also:
Join, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionImplleftExpressionprotected ExpressionparentNode-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl
isNegated
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
expressions, operator
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodel
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
-
Constructor Summary
Constructors Constructor Description InImpl(jakarta.persistence.metamodel.Metamodel metamodel, ExpressionImpl leftExpression, Collection values, List expressions)InImpl(jakarta.persistence.metamodel.Metamodel metamodel, ExpressionImpl leftExpression, ExpressionImpl rightExp, List expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfindRootAndParameters(CommonAbstractCriteriaImpl query)jakarta.persistence.criteria.Expression<T>getExpression()Returns the expression to be tested against the list of values.booleanisPredicate()jakarta.persistence.criteria.Predicatenot()Apply negation to the predicate.voidsetParentNode(Expression parentNode)This method is used to store what will be the parent EclipseLink expression in the case the tree needs to be altered.jakarta.persistence.criteria.CriteriaBuilder.In<T>value(jakarta.persistence.criteria.Expression<? extends T> value)Add to list of values to be tested against.jakarta.persistence.criteria.CriteriaBuilder.In<T>value(T value)Add to list of values to be tested against.-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl
getExpressions, getOperator, isCompoundExpression, isExpression, isNegated, setIsNegated, setOperator
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
getChildExpressions, getOperation
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isSubquery
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
Methods inherited from interface jakarta.persistence.criteria.Predicate
getExpressions, getOperator, isNegated
-
-
-
-
Field Detail
-
parentNode
protected Expression parentNode
-
leftExpression
protected ExpressionImpl leftExpression
-
-
Constructor Detail
-
InImpl
public InImpl(jakarta.persistence.metamodel.Metamodel metamodel, ExpressionImpl leftExpression, Collection values, List expressions)
-
InImpl
public InImpl(jakarta.persistence.metamodel.Metamodel metamodel, ExpressionImpl leftExpression, ExpressionImpl rightExp, List expressions)
-
-
Method Detail
-
getExpression
public jakarta.persistence.criteria.Expression<T> getExpression()
Returns the expression to be tested against the list of values.- Specified by:
getExpressionin interfacejakarta.persistence.criteria.CriteriaBuilder.In<T>- Returns:
- expression
-
findRootAndParameters
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin classFunctionExpressionImpl<Boolean>
-
isPredicate
public boolean isPredicate()
- Specified by:
isPredicatein interfaceInternalExpression- Overrides:
isPredicatein classCompoundExpressionImpl
-
value
public jakarta.persistence.criteria.CriteriaBuilder.In<T> value(T value)
Add to list of values to be tested against.- Specified by:
valuein interfacejakarta.persistence.criteria.CriteriaBuilder.In<T>- Parameters:
value- value- Returns:
- in predicate
-
value
public jakarta.persistence.criteria.CriteriaBuilder.In<T> value(jakarta.persistence.criteria.Expression<? extends T> value)
Add to list of values to be tested against.- Specified by:
valuein interfacejakarta.persistence.criteria.CriteriaBuilder.In<T>- Parameters:
value- expression- Returns:
- in predicate
-
setParentNode
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.- Overrides:
setParentNodein classCompoundExpressionImpl
-
not
public jakarta.persistence.criteria.Predicate not()
Description copied from class:CompoundExpressionImplApply negation to the predicate.- Specified by:
notin interfacejakarta.persistence.criteria.Predicate- Overrides:
notin classCompoundExpressionImpl- Returns:
- the negated predicate
-
-