Class PathImpl<X>

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

    public class PathImpl<X>
    extends ExpressionImpl<X>
    implements jakarta.persistence.criteria.Path<X>, 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
    • Field Detail

      • pathParent

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

        protected Object modelArtifact
    • Constructor Detail

      • PathImpl

        public PathImpl​(jakarta.persistence.criteria.Path<?> parent,
                        jakarta.persistence.metamodel.Metamodel metamodel,
                        Class<X> javaClass,
                        Expression expressionNode,
                        jakarta.persistence.metamodel.Bindable modelArtifact)
    • Method Detail

      • getModel

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

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

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

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

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

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

        public <Y> jakarta.persistence.criteria.Path<Y> get​(String attName)
        Specified by:
        get in interface jakarta.persistence.criteria.Path<X>