Interface BlazeRoot<X>

Type Parameters:
X - the entity type referenced by the root
All Superinterfaces:
BlazeExpression<X>, BlazeFetchParent<X,​X>, BlazeFrom<X,​X>, BlazePath<X>, Expression<X>, FetchParent<X,​X>, From<X,​X>, Path<X>, Root<X>, Selection<X>, TupleElement<X>

public interface BlazeRoot<X>
extends Root<X>, BlazeFrom<X,​X>
An extended version of Root.
Since:
1.2.0
Author:
Christian Beikov
  • Method Details

    • treatAs

      <T extends X> BlazeRoot<T> treatAs​(Class<T> type)
      Treats this from object as the given subtype. This will not cause a separate join but return a wrapper, that can be used for further joins.
      Type Parameters:
      T - The target treat type
      Parameters:
      type - type to be downcast to
      Returns:
      The treated from object