Class PathImpl<X>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.persistence.criteria.Expression<X>, javax.persistence.criteria.Path<X>, javax.persistence.criteria.Selection<X>, javax.persistence.TupleElement<X>, InternalExpression, InternalSelection
    Direct Known Subclasses:
    FromImpl

    public class PathImpl<X>
    extends ExpressionImpl<X>
    implements javax.persistence.criteria.Path<X>, java.lang.Cloneable

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

    Description: This class represents an abstract path which is a model of the expression through joins.

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

      Constructors 
      Constructor Description
      PathImpl​(javax.persistence.criteria.Path<?> parent, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable modelArtifact)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object clone()  
      void findRootAndParameters​(CommonAbstractCriteriaImpl query)  
      <Y> javax.persistence.criteria.Path<Y> get​(java.lang.String attName)  
      <K,​V,​M extends java.util.Map<K,​V>>
      javax.persistence.criteria.Expression<M>
      get​(javax.persistence.metamodel.MapAttribute<X,​K,​V> map)
      Return the path corresponding to the referenced map-valued attribute.
      <E,​C extends java.util.Collection<E>>
      javax.persistence.criteria.Expression<C>
      get​(javax.persistence.metamodel.PluralAttribute<X,​C,​E> collection)
      Return the path corresponding to the referenced collection-valued attribute.
      <Y> javax.persistence.criteria.Path<Y> get​(javax.persistence.metamodel.SingularAttribute<? super X,​Y> att)
      Return the path corresponding to the referenced non-collection valued attribute.
      javax.persistence.metamodel.Bindable<X> getModel()
      Return the bindable object that corresponds to the path expression.
      javax.persistence.criteria.Path<?> getParentPath()
      Return the parent "node" in the path.
      javax.persistence.criteria.Expression<java.lang.Class<? extends X>> type()
      Return an expression corresponding to the type of the path.
      • Methods inherited from class java.lang.Object

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

        as, in, in, in, in, isNotNull, isNull
      • Methods inherited from interface javax.persistence.criteria.Selection

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

        getAlias, getJavaType
    • Field Detail

      • pathParent

        protected javax.persistence.criteria.Path<?> pathParent
      • modelArtifact

        protected java.lang.Object modelArtifact
    • Constructor Detail

      • PathImpl

        public PathImpl​(javax.persistence.criteria.Path<?> parent,
                        javax.persistence.metamodel.Metamodel metamodel,
                        java.lang.Class<X> javaClass,
                        org.eclipse.persistence.expressions.Expression expressionNode,
                        javax.persistence.metamodel.Bindable modelArtifact)
    • Method Detail

      • getModel

        public javax.persistence.metamodel.Bindable<X> getModel()
        Return the bindable object that corresponds to the path expression.
        Specified by:
        getModel in interface javax.persistence.criteria.Path<X>
        Returns:
        bindable object corresponding to the path
      • getParentPath

        public javax.persistence.criteria.Path<?> getParentPath()
        Return the parent "node" in the path.
        Specified by:
        getParentPath in interface javax.persistence.criteria.Path<X>
        Returns:
        parent
      • get

        public <Y> javax.persistence.criteria.Path<Y> get​(javax.persistence.metamodel.SingularAttribute<? super X,​Y> att)
        Return the path corresponding to the referenced non-collection valued attribute.
        Specified by:
        get in interface javax.persistence.criteria.Path<X>
        Parameters:
        att - attribute
        Returns:
        path corresponding to the referenced attribute
      • get

        public <E,​C extends java.util.Collection<E>> javax.persistence.criteria.Expression<C> get​(javax.persistence.metamodel.PluralAttribute<X,​C,​E> collection)
        Return the path corresponding to the referenced collection-valued attribute.
        Specified by:
        get in interface javax.persistence.criteria.Path<X>
        Parameters:
        collection - collection-valued attribute
        Returns:
        expression corresponding to the referenced attribute
      • get

        public <K,​V,​M extends java.util.Map<K,​V>> javax.persistence.criteria.Expression<M> get​(javax.persistence.metamodel.MapAttribute<X,​K,​V> map)
        Return the path corresponding to the referenced map-valued attribute.
        Specified by:
        get in interface javax.persistence.criteria.Path<X>
        Parameters:
        map - map-valued attribute
        Returns:
        expression corresponding to the referenced attribute
      • type

        public javax.persistence.criteria.Expression<java.lang.Class<? extends X>> type()
        Return an expression corresponding to the type of the path.
        Specified by:
        type in interface javax.persistence.criteria.Path<X>
        Returns:
        expression corresponding to the type of the path
      • get

        public <Y> javax.persistence.criteria.Path<Y> get​(java.lang.String attName)
        Specified by:
        get in interface javax.persistence.criteria.Path<X>
      • clone

        protected java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object