All Implemented Interfaces:
javax.persistence.criteria.Expression<X>, javax.persistence.criteria.Path<X>, javax.persistence.criteria.Selection<X>, javax.persistence.TupleElement<X>, VExpression<X>, VPath<X>
Direct Known Subclasses:
FromImpl

public class PathImpl<X> extends ExpressionBase<X> implements VPath<X>
  • Field Details

    • parentPath

      protected javax.persistence.criteria.Path<?> parentPath
    • attributeName

      protected String attributeName
    • valueType

      protected Class<X> valueType
  • Constructor Details

    • PathImpl

      public PathImpl(javax.persistence.criteria.Path<?> parentPath, String attrName, Class<X> valueType)
  • Method Details

    • getReachingAttributeName

      public String getReachingAttributeName()
      The attribute name by with this instance of path was reached. null for the root of a path
      Specified by:
      getReachingAttributeName in interface VPath<X>
    • as

      public <T> VExpression<T> as(Class<T> cls)
      Specified by:
      as in interface javax.persistence.criteria.Expression<X>
      Specified by:
      as in interface VExpression<X>
      Overrides:
      as in class ExpressionBase<X>
    • accept

      public <T> T accept(ExpressionVisitor<T> visitor)
      Specified by:
      accept in interface VExpression<X>
    • accept

      public <T> T accept(PathVisitor<T> visitor)
      Specified by:
      accept in interface VPath<X>
    • getModel

      public javax.persistence.metamodel.Bindable<X> getModel()
      Specified by:
      getModel in interface javax.persistence.criteria.Path<X>
    • getParentPath

      public javax.persistence.criteria.Path<?> getParentPath()
      Specified by:
      getParentPath in interface javax.persistence.criteria.Path<X>
    • get

      public <Y> javax.persistence.criteria.Path<Y> get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute)
      Specified by:
      get in interface javax.persistence.criteria.Path<X>
    • get

      public <E, C extends Collection<E>> javax.persistence.criteria.Expression<C> get(javax.persistence.metamodel.PluralAttribute<X,C,E> collection)
      Specified by:
      get in interface javax.persistence.criteria.Path<X>
    • get

      public <K, V, M extends Map<K, V>> javax.persistence.criteria.Expression<M> get(javax.persistence.metamodel.MapAttribute<X,K,V> map)
      Specified by:
      get in interface javax.persistence.criteria.Path<X>
    • type

      public javax.persistence.criteria.Expression<Class<? extends X>> type()
      Specified by:
      type in interface javax.persistence.criteria.Path<X>
    • get

      public <Y> javax.persistence.criteria.Path<Y> get(String attributeName)
      Specified by:
      get in interface javax.persistence.criteria.Path<X>
    • toString

      public String toString()
      Overrides:
      toString in class Object