Class 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
    • Constructor Detail

      • InImpl

        public InImpl​(jakarta.persistence.metamodel.Metamodel metamodel,
                      ExpressionImpl leftExpression,
                      Collection values,
                      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:
        getExpression in interface jakarta.persistence.criteria.CriteriaBuilder.In<T>
        Returns:
        expression
      • value

        public jakarta.persistence.criteria.CriteriaBuilder.In<T> value​(T value)
        Add to list of values to be tested against.
        Specified by:
        value in interface jakarta.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:
        value in interface jakarta.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:
        setParentNode in class CompoundExpressionImpl
      • not

        public jakarta.persistence.criteria.Predicate not()
        Description copied from class: CompoundExpressionImpl
        Apply negation to the predicate.
        Specified by:
        not in interface jakarta.persistence.criteria.Predicate
        Overrides:
        not in class CompoundExpressionImpl
        Returns:
        the negated predicate