Class AbstractPath<X>

All Implemented Interfaces:
BlazeExpression<X>, BlazePath<X>, Serializable, Expression<X>, Path<X>, Selection<X>, TupleElement<X>
Direct Known Subclasses:
AbstractFrom, MapKeyBasePath, MapKeyPath, PluralAttributePath, SingularAttributePath

public abstract class AbstractPath<X> extends AbstractExpression<X> implements BlazePath<X>
Since:
1.2.0
Author:
Christian Beikov
See Also:
  • Constructor Details

  • Method Details

    • getBasePath

      public AbstractPath<?> getBasePath()
    • getParentPath

      public AbstractPath<?> getParentPath()
      Specified by:
      getParentPath in interface BlazePath<X>
      Specified by:
      getParentPath in interface Path<X>
    • treatAs

      public abstract <T extends X> AbstractPath<T> treatAs(Class<T> treatAsType)
    • getTreatType

      protected final <T> javax.persistence.metamodel.EntityType<T> getTreatType(Class<T> type)
    • type

      public BlazeExpression<Class<? extends X>> type()
      Specified by:
      type in interface BlazePath<X>
      Specified by:
      type in interface Path<X>
    • getAttribute

      public abstract javax.persistence.metamodel.Attribute<?,?> getAttribute()
    • findAttribute

      protected abstract javax.persistence.metamodel.Attribute<?,?> findAttribute(String attributeName)
    • isDereferencable

      protected abstract boolean isDereferencable()
    • getPathExpression

      public String getPathExpression()
    • getAttributePath

      protected final Path<?> getAttributePath(String attributeName)
    • putAttributePath

      protected final void putAttributePath(String attributeName, Path<?> path)
    • get

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

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

      public <K, V, M extends Map<K, V>> BlazeExpression<M> get(javax.persistence.metamodel.MapAttribute<X,K,V> attribute)
      Specified by:
      get in interface BlazePath<X>
      Specified by:
      get in interface Path<X>
    • get

      public <Y> BlazePath<Y> get(String attributeName)
      Specified by:
      get in interface BlazePath<X>
      Specified by:
      get in interface Path<X>
    • getAttribute

      protected final javax.persistence.metamodel.Attribute<?,?> getAttribute(String attributeName)
    • resolveAlias

      public String resolveAlias(RenderContext context)
    • renderPathExpression

      public void renderPathExpression(RenderContext context)
    • render

      public void render(RenderContext context)
      Specified by:
      render in class AbstractSelection<X>