Interface BlazePath<X>

Type Parameters:
X - The target type
All Superinterfaces:
BlazeExpression<X>, Expression<X>, Path<X>, Selection<X>, TupleElement<X>
All Known Subinterfaces:
BlazeCollectionJoin<Z,​E>, BlazeFrom<Z,​X>, BlazeJoin<Z,​X>, BlazeListJoin<Z,​E>, BlazeMapJoin<Z,​K,​V>, BlazeRoot<X>, BlazeSetJoin<Z,​E>

public interface BlazePath<X>
extends Path<X>, BlazeExpression<X>
An extended version of Path.
Since:
1.2.0
Author:
Christian Beikov
  • Method Details

    • getParentPath

      BlazePath<?> getParentPath()
      Like Path.getParentPath() but returns the subtype BlazePath instead.
      Specified by:
      getParentPath in interface Path<X>
      Returns:
      parent
    • get

      <Y> BlazePath<Y> get​(javax.persistence.metamodel.SingularAttribute<? super X,​Y> attribute)
      Like Path.get(SingularAttribute) but returns the subtype BlazePath instead.
      Specified by:
      get in interface Path<X>
      Type Parameters:
      Y - The attribute type
      Parameters:
      attribute - single-valued attribute
      Returns:
      path corresponding to the referenced attribute
    • get

      <E,​ C extends Collection<E>> BlazeExpression<C> get​(javax.persistence.metamodel.PluralAttribute<X,​C,​E> collection)
      Like Path.get(PluralAttribute) but returns the subtype BlazeExpression instead.
      Specified by:
      get in interface Path<X>
      Type Parameters:
      C - The attribute collection type
      E - The attribute collection element type
      Parameters:
      collection - collection-valued attribute
      Returns:
      expression corresponding to the referenced attribute
    • get

      <K,​ V,​ M extends Map<K,​ V>> BlazeExpression<M> get​(javax.persistence.metamodel.MapAttribute<X,​K,​V> map)
      Like Path.get(MapAttribute) but returns the subtype BlazeExpression instead.
      Specified by:
      get in interface Path<X>
      Type Parameters:
      M - The attribute map type
      K - The attribute map key type
      V - The attribute map element type
      Parameters:
      map - map-valued attribute
      Returns:
      expression corresponding to the referenced attribute
    • type

      BlazeExpression<Class<? extends X>> type()
      Like Path.type() but returns the subtype BlazeExpression instead.
      Specified by:
      type in interface Path<X>
      Returns:
      expression corresponding to the type of the path
    • get

      <Y> BlazePath<Y> get​(String attributeName)
      Like Path.get(String) but returns the subtype BlazePath instead.
      Specified by:
      get in interface Path<X>
      Type Parameters:
      Y - The attribute type
      Parameters:
      attributeName - name of the attribute
      Returns:
      path corresponding to the referenced attribute