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 Summary
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.Predicate
Predicate.BooleanOperator -
Field Summary
FieldsFields inherited from class org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl
isNegatedFields inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
expressions, operatorFields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodelFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType -
Constructor Summary
ConstructorsConstructorDescriptionInImpl(Metamodel metamodel, ExpressionImpl leftExpression, Collection values, List expressions) InImpl(Metamodel metamodel, ExpressionImpl leftExpression, ExpressionImpl rightExp, List expressions) -
Method Summary
Modifier 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.CompoundExpressionImpl
getExpressions, getOperator, isCompoundExpression, isExpression, isNegated, setIsNegated, setOperatorMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
getChildExpressions, getOperationMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isSubqueryMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNullMethods inherited from interface jakarta.persistence.criteria.Predicate
getExpressions, getOperator, isNegatedMethods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Field Details
-
parentNode
-
leftExpression
-
-
Constructor Details
-
InImpl
public InImpl(Metamodel metamodel, ExpressionImpl leftExpression, Collection values, List expressions) -
InImpl
public InImpl(Metamodel metamodel, ExpressionImpl leftExpression, ExpressionImpl rightExp, List expressions)
-
-
Method Details
-
getExpression
Returns the expression to be tested against the list of values.- Specified by:
getExpressionin interfaceCriteriaBuilder.In<T>- Returns:
- expression
-
findRootAndParameters
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin classFunctionExpressionImpl<Boolean>
-
isPredicate
public boolean isPredicate()- Specified by:
isPredicatein interfaceInternalExpression- Overrides:
isPredicatein classCompoundExpressionImpl
-
value
Add to list of values to be tested against.- Specified by:
valuein interfaceCriteriaBuilder.In<T>- Parameters:
value- value- Returns:
- in predicate
-
value
Add to list of values to be tested against.- Specified by:
valuein interfaceCriteriaBuilder.In<T>- Parameters:
value- expression- Returns:
- in predicate
-
setParentNode
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
Description copied from class:CompoundExpressionImplApply negation to the predicate.- Specified by:
notin interfacePredicate- Overrides:
notin classCompoundExpressionImpl- Returns:
- the negated predicate
-