Class InImpl<T>

  • All Implemented Interfaces:
    java.io.Serializable, javax.persistence.criteria.CriteriaBuilder.In<T>, javax.persistence.criteria.Expression<java.lang.Boolean>, javax.persistence.criteria.Predicate, javax.persistence.criteria.Selection<java.lang.Boolean>, javax.persistence.TupleElement<java.lang.Boolean>, InternalExpression, InternalSelection

    public class InImpl<T>
    extends CompoundExpressionImpl
    implements javax.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
    • Field Detail

      • parentNode

        protected org.eclipse.persistence.expressions.Expression parentNode
    • Constructor Detail

      • InImpl

        public InImpl​(javax.persistence.metamodel.Metamodel metamodel,
                      ExpressionImpl leftExpression,
                      java.util.Collection values,
                      java.util.List expressions)
      • InImpl

        public InImpl​(javax.persistence.metamodel.Metamodel metamodel,
                      ExpressionImpl leftExpression,
                      ExpressionImpl rightExp,
                      java.util.List expressions)
    • Method Detail

      • getExpression

        public javax.persistence.criteria.Expression<T> getExpression()
        Returns the expression to be tested against the list of values.
        Specified by:
        getExpression in interface javax.persistence.criteria.CriteriaBuilder.In<T>
        Returns:
        expression
      • value

        public javax.persistence.criteria.CriteriaBuilder.In<T> value​(T value)
        Add to list of values to be tested against.
        Specified by:
        value in interface javax.persistence.criteria.CriteriaBuilder.In<T>
        Parameters:
        value - value
        Returns:
        in predicate
      • value

        public javax.persistence.criteria.CriteriaBuilder.In<T> value​(javax.persistence.criteria.Expression<? extends T> value)
        Add to list of values to be tested against.
        Specified by:
        value in interface javax.persistence.criteria.CriteriaBuilder.In<T>
        Parameters:
        value - expression
        Returns:
        in predicate
      • setParentNode

        public void setParentNode​(org.eclipse.persistence.expressions.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 javax.persistence.criteria.Predicate not()
        Description copied from class: CompoundExpressionImpl
        Apply negation to the predicate.
        Specified by:
        not in interface javax.persistence.criteria.Predicate
        Overrides:
        not in class CompoundExpressionImpl
        Returns:
        the negated predicate