Class ExpressionImpl<X>

  • All Implemented Interfaces:
    java.io.Serializable, javax.persistence.criteria.Expression<X>, javax.persistence.criteria.Selection<X>, javax.persistence.TupleElement<X>, InternalExpression, InternalSelection
    Direct Known Subclasses:
    FunctionExpressionImpl, ParameterExpressionImpl, PathImpl

    public class ExpressionImpl<X>
    extends SelectionImpl<X>
    implements javax.persistence.criteria.Expression<X>, InternalExpression

    Purpose: Represents an Expression in the Criteria API heirarchy.

    Description: Expressions are expression nodes that can not be joined from and may or not be the result of a Path expression.

    Since:
    EclipseLink 1.2
    Author:
    gyorke
    See Also:
    Expression, Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ExpressionImpl​(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaType, org.eclipse.persistence.expressions.Expression expressionNode)  
        ExpressionImpl​(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaType, org.eclipse.persistence.expressions.Expression expressionNode, java.lang.Object value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> javax.persistence.criteria.Expression<T> as​(java.lang.Class<T> type)  
      protected <T> javax.persistence.criteria.Expression<T> buildExpressionForAs​(java.lang.Class<T> type)  
      void findRootAndParameters​(CommonAbstractCriteriaImpl criteriaQuery)  
      javax.persistence.criteria.Predicate in​(java.lang.Object... values)  
      javax.persistence.criteria.Predicate in​(java.util.Collection<?> values)
      Apply a predicate to test whether the expression is a member of the collection.
      javax.persistence.criteria.Predicate in​(javax.persistence.criteria.Expression<?>... values)
      Apply a predicate to test whether the expression is a member of the argument list.
      javax.persistence.criteria.Predicate in​(javax.persistence.criteria.Expression<java.util.Collection<?>> values)
      Apply a predicate to test whether the expression is a member of the collection.
      boolean isCompoundExpression()  
      boolean isExpression()  
      boolean isJunction()  
      boolean isLiteral()  
      javax.persistence.criteria.Predicate isNotNull()  
      javax.persistence.criteria.Predicate isNull()  
      boolean isParameter()  
      boolean isPredicate()  
      boolean isSubquery()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.persistence.criteria.Selection

        alias, getCompoundSelectionItems, isCompoundSelection
      • Methods inherited from interface javax.persistence.TupleElement

        getAlias, getJavaType
    • Field Detail

      • metamodel

        protected javax.persistence.metamodel.Metamodel metamodel
      • isLiteral

        protected boolean isLiteral
      • literal

        protected java.lang.Object literal
    • Constructor Detail

      • ExpressionImpl

        protected ExpressionImpl​(javax.persistence.metamodel.Metamodel metamodel,
                                 java.lang.Class<X> javaType,
                                 org.eclipse.persistence.expressions.Expression expressionNode)
      • ExpressionImpl

        public ExpressionImpl​(javax.persistence.metamodel.Metamodel metamodel,
                              java.lang.Class<X> javaType,
                              org.eclipse.persistence.expressions.Expression expressionNode,
                              java.lang.Object value)
    • Method Detail

      • as

        public <T> javax.persistence.criteria.Expression<T> as​(java.lang.Class<T> type)
        Specified by:
        as in interface javax.persistence.criteria.Expression<X>
      • buildExpressionForAs

        protected <T> javax.persistence.criteria.Expression<T> buildExpressionForAs​(java.lang.Class<T> type)
      • in

        public javax.persistence.criteria.Predicate in​(java.lang.Object... values)
        Specified by:
        in in interface javax.persistence.criteria.Expression<X>
      • in

        public javax.persistence.criteria.Predicate in​(javax.persistence.criteria.Expression<?>... values)
        Apply a predicate to test whether the expression is a member of the argument list.
        Specified by:
        in in interface javax.persistence.criteria.Expression<X>
        Parameters:
        values -
        Returns:
        predicate testing for membership
      • in

        public javax.persistence.criteria.Predicate in​(java.util.Collection<?> values)
        Apply a predicate to test whether the expression is a member of the collection.
        Specified by:
        in in interface javax.persistence.criteria.Expression<X>
        Parameters:
        values - collection
        Returns:
        predicate testing for membership
      • in

        public javax.persistence.criteria.Predicate in​(javax.persistence.criteria.Expression<java.util.Collection<?>> values)
        Apply a predicate to test whether the expression is a member of the collection.
        Specified by:
        in in interface javax.persistence.criteria.Expression<X>
        Parameters:
        values - expression corresponding to collection
        Returns:
        predicate testing for membership
      • isNotNull

        public javax.persistence.criteria.Predicate isNotNull()
        Specified by:
        isNotNull in interface javax.persistence.criteria.Expression<X>
      • isNull

        public javax.persistence.criteria.Predicate isNull()
        Specified by:
        isNull in interface javax.persistence.criteria.Expression<X>