Module org.eclipse.persistence.jpa
Class InImpl<T>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<Boolean>
org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<Boolean>
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:
- CriteriaBuilder.In<T>,- Expression<Boolean>,- Predicate,- Selection<Boolean>,- TupleElement<Boolean>,- Serializable,- InternalExpression,- InternalSelection
Purpose: Contains the implementation of the In interface of the JPA criteria API.
Description: This class represents an In predicate.
- Since:
- EclipseLink 1.2
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface jakarta.persistence.criteria.PredicatePredicate.BooleanOperator
- 
Field SummaryFieldsFields inherited from class org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImplisNegatedFields inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImplexpressions, operatorFields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImplisLiteral, literal, metamodelFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImplalias, currentNode, javaType
- 
Constructor SummaryConstructorsConstructorDescriptionInImpl(Metamodel metamodel, ExpressionImpl leftExpression, Collection values, List expressions) InImpl(Metamodel metamodel, ExpressionImpl leftExpression, ExpressionImpl rightExp, List expressions) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidReturns the expression to be tested against the list of values.booleannot()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.value(Expression<? extends T> value) Add to list of values to be tested against.Add to list of values to be tested against.Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImplgetExpressions, getOperator, isCompoundExpression, isExpression, isNegated, setIsNegated, setOperatorMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImplgetChildExpressions, getOperationMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImplas, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isSubqueryMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImplalias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaTypeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.Expressionas, in, in, in, in, isNotNull, isNullMethods inherited from interface jakarta.persistence.criteria.PredicategetExpressions, getOperator, isNegatedMethods inherited from interface jakarta.persistence.criteria.Selectionalias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElementgetAlias, getJavaType
- 
Field Details- 
parentNode
- 
leftExpression
 
- 
- 
Constructor Details- 
InImplpublic InImpl(Metamodel metamodel, ExpressionImpl leftExpression, Collection values, List expressions) 
- 
InImplpublic InImpl(Metamodel metamodel, ExpressionImpl leftExpression, ExpressionImpl rightExp, List expressions) 
 
- 
- 
Method Details- 
getExpressionReturns the expression to be tested against the list of values.- Specified by:
- getExpressionin interface- CriteriaBuilder.In<T>
- Returns:
- expression
 
- 
findRootAndParameters- Specified by:
- findRootAndParametersin interface- InternalSelection
- Overrides:
- findRootAndParametersin class- FunctionExpressionImpl<Boolean>
 
- 
isPredicatepublic boolean isPredicate()- Specified by:
- isPredicatein interface- InternalExpression
- Overrides:
- isPredicatein class- CompoundExpressionImpl
 
- 
valueAdd to list of values to be tested against.- Specified by:
- valuein interface- CriteriaBuilder.In<T>
- Parameters:
- value- value
- Returns:
- in predicate
 
- 
valueAdd to list of values to be tested against.- Specified by:
- valuein interface- CriteriaBuilder.In<T>
- Parameters:
- value- expression
- Returns:
- in predicate
 
- 
setParentNodeThis 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 class- CompoundExpressionImpl
 
- 
notDescription copied from class:CompoundExpressionImplApply negation to the predicate.- Specified by:
- notin interface- Predicate
- Overrides:
- notin class- CompoundExpressionImpl
- Returns:
- the negated predicate
 
 
-