Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.querydef

public Class InImpl<T>

extends CompoundExpressionImpl
implements CriteriaBuilder.In<T>
Class Inheritance
All Implemented Interfaces
jakarta.persistence.criteria.CriteriaBuilder.In, jakarta.persistence.criteria.Predicate, jakarta.persistence.criteria.Expression, jakarta.persistence.criteria.Selection, jakarta.persistence.TupleElement
Imports
java.util.ArrayList, .Collection, .List, jakarta.persistence.criteria.Expression, .Predicate, .CriteriaBuilder.In, jakarta.persistence.metamodel.Metamodel, org.eclipse.persistence.internal.expressions.CollectionExpression, .CompoundExpression, .FunctionExpression, .LogicalExpression, .RelationExpression, org.eclipse.persistence.internal.localization.ExceptionLocalization

Purpose: Contains the implementation of the In interface of the JPA criteria API.

Description: This class represents an In predicate.

Author
gyorke
Since
EclipseLink 1.2
See Also
Join

Field Summary

Modifier and TypeField and Description
protected ExpressionImpl<X>
protected Expression
Inherited from org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl:
isNegated

Constructor Summary

AccessConstructor and Description
public
InImpl(Metamodel metamodel, ExpressionImpl<X> leftExpression, Collection<E> values, List<E> expressions)

public
InImpl(Metamodel metamodel, ExpressionImpl<X> leftExpression, ExpressionImpl<X> rightExp, List<E> expressions)

Method Summary

Modifier and TypeMethod and Description
public void
public Expression<T>

Returns:

expression
getExpression
()

Implements jakarta.persistence.criteria.CriteriaBuilder.In.getExpression.

Returns the expression to be tested against the list of values.
public boolean
public Predicate
public void
setParentNode(Expression parentNode)

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.setParentNode.

This method is used to store what will be the parent EclipseLink expression in the case the tree needs to be altered.
public CriteriaBuilder.In<T>

Returns:

in predicate
value
(T
value
value
)

Implements jakarta.persistence.criteria.CriteriaBuilder.In.value.

Add to list of values to be tested against.
public CriteriaBuilder.In<T>

Returns:

in predicate
value
(Expression<? extends T>
expression
value
)

Implements jakarta.persistence.criteria.CriteriaBuilder.In.value, jakarta.persistence.criteria.CriteriaBuilder.In.value.

Add to list of values to be tested against.
Inherited from org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl:
getExpressionsgetOperatorisCompoundExpressionisExpressionisNegatedsetIsNegatedsetOperator

Field Detail

leftExpressionback to summary
protected ExpressionImpl<X> leftExpression
parentNodeback to summary
protected Expression parentNode

Constructor Detail

InImplback to summary
public InImpl(Metamodel metamodel, ExpressionImpl<X> leftExpression, Collection<E> values, List<E> expressions)
InImplback to summary
public InImpl(Metamodel metamodel, ExpressionImpl<X> leftExpression, ExpressionImpl<X> rightExp, List<E> expressions)

Method Detail

findRootAndParametersback to summary
public void findRootAndParameters(CommonAbstractCriteriaImpl<T> query)

Overrides org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl.findRootAndParameters.

Implements org.eclipse.persistence.internal.jpa.querydef.InternalSelection.findRootAndParameters.

Annotations
@Override
getExpressionback to summary
public Expression<T> getExpression()

Implements jakarta.persistence.criteria.CriteriaBuilder.In.getExpression.

Returns the expression to be tested against the list of values.

Returns:Expression<T>

expression

Annotations
@Override
isPredicateback to summary
public boolean isPredicate()

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.isPredicate.

Implements org.eclipse.persistence.internal.jpa.querydef.InternalExpression.isPredicate.

Annotations
@Override
notback to summary
public Predicate not()

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.not.

Implements jakarta.persistence.criteria.Predicate.not.

Doc from jakarta.persistence.criteria.Predicate.not.

Create a negation of the predicate.

Returns:Predicate

negated predicate

Annotations
@Override
setParentNodeback to summary
public void setParentNode(Expression parentNode)

Overrides org.eclipse.persistence.internal.jpa.querydef.CompoundExpressionImpl.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.

Annotations
@Override
valueback to summary
public CriteriaBuilder.In<T> value(T value)

Implements jakarta.persistence.criteria.CriteriaBuilder.In.value.

Add to list of values to be tested against.

Parameters
value:T

value

Returns:CriteriaBuilder.In<T>

in predicate

Annotations
@Override
valueback to summary
public CriteriaBuilder.In<T> value(Expression<? extends T> value)

Implements jakarta.persistence.criteria.CriteriaBuilder.In.value, jakarta.persistence.criteria.CriteriaBuilder.In.value.

Add to list of values to be tested against.

Parameters
value:Expression<? extends T>

expression

Returns:CriteriaBuilder.In<T>

in predicate

Annotations
@Override