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
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
ConstructorDescriptionInImpl
(Metamodel metamodel, ExpressionImpl leftExpression, Collection values, List expressions) InImpl
(Metamodel metamodel, ExpressionImpl leftExpression, ExpressionImpl rightExp, List expressions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns the expression to be tested against the list of values.boolean
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.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, 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
Methods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
Methods 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:
getExpression
in interfaceCriteriaBuilder.In<T>
- Returns:
- expression
-
findRootAndParameters
- Specified by:
findRootAndParameters
in interfaceInternalSelection
- Overrides:
findRootAndParameters
in classFunctionExpressionImpl<Boolean>
-
isPredicate
public boolean isPredicate()- Specified by:
isPredicate
in interfaceInternalExpression
- Overrides:
isPredicate
in classCompoundExpressionImpl
-
value
Add to list of values to be tested against.- Specified by:
value
in interfaceCriteriaBuilder.In<T>
- Parameters:
value
- value- Returns:
- in predicate
-
value
Add to list of values to be tested against.- Specified by:
value
in 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:
setParentNode
in classCompoundExpressionImpl
-
not
Description copied from class:CompoundExpressionImpl
Apply negation to the predicate.- Specified by:
not
in interfacePredicate
- Overrides:
not
in classCompoundExpressionImpl
- Returns:
- the negated predicate
-