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

public class PathImpl<X> extends ExpressionImpl<X> implements 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
See Also:
  • Field Details

    • pathParent

      protected Path<?> pathParent
    • modelArtifact

      protected Object modelArtifact
  • Constructor Details

  • Method Details

    • getModel

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

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

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

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

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

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

      public <Y> Path<Y> get(String attName)
      Specified by:
      get in interface Path<X>
    • findRootAndParameters

      public void findRootAndParameters(CommonAbstractCriteriaImpl query)
      Specified by:
      findRootAndParameters in interface InternalSelection
      Overrides:
      findRootAndParameters in class ExpressionImpl<X>
    • clone

      protected Object clone()
      Overrides:
      clone in class Object