Interface JpaFetch<O,T>

All Superinterfaces:
Fetch<O,T>, FetchParent<O,T>, JpaFetchParent<O,T>
All Known Subinterfaces:
SqmAttributeJoin<O,T>
All Known Implementing Classes:
AbstractSqmAttributeJoin, AbstractSqmPluralJoin, SqmBagJoin, SqmCorrelatedBagJoin, SqmCorrelatedListJoin, SqmCorrelatedMapJoin, SqmCorrelatedSetJoin, SqmCorrelatedSingularJoin, SqmListJoin, SqmMapJoin, SqmSetJoin, SqmSingularJoin, SqmTreatedBagJoin, SqmTreatedListJoin, SqmTreatedMapJoin, SqmTreatedSetJoin, SqmTreatedSingularJoin

public interface JpaFetch<O,T> extends JpaFetchParent<O,T>, Fetch<O,T>
Author:
Steve Ebersole
  • Method Details

    • getFetches

      Set<Fetch<T,?>> getFetches()
      Description copied from interface: FetchParent
      Return the fetch joins that have been made from this type. Returns empty set if no fetch joins have been made from this type. Modifications to the set do not affect the query.
      Specified by:
      getFetches in interface FetchParent<O,T>
      Specified by:
      getFetches in interface JpaFetchParent<O,T>
      Returns:
      fetch joins made from this type
    • fetch

      <Y> JpaFetch<T,Y> fetch(SingularAttribute<? super T,Y> attribute)
      Description copied from interface: FetchParent
      Create a fetch join to the specified single-valued attribute using an inner join.
      Specified by:
      fetch in interface FetchParent<O,T>
      Specified by:
      fetch in interface JpaFetchParent<O,T>
      Parameters:
      attribute - target of the join
      Returns:
      the resulting fetch join
    • fetch

      <Y> JpaFetch<T,Y> fetch(SingularAttribute<? super T,Y> attribute, JoinType jt)
      Description copied from interface: FetchParent
      Create a fetch join to the specified single-valued attribute using the given join type.
      Specified by:
      fetch in interface FetchParent<O,T>
      Specified by:
      fetch in interface JpaFetchParent<O,T>
      Parameters:
      attribute - target of the join
      jt - join type
      Returns:
      the resulting fetch join
    • fetch

      <Y> JpaFetch<T,Y> fetch(PluralAttribute<? super T,?,Y> attribute)
      Description copied from interface: FetchParent
      Create a fetch join to the specified collection-valued attribute using an inner join.
      Specified by:
      fetch in interface FetchParent<O,T>
      Specified by:
      fetch in interface JpaFetchParent<O,T>
      Parameters:
      attribute - target of the join
      Returns:
      the resulting join
    • fetch

      <Y> JpaFetch<T,Y> fetch(PluralAttribute<? super T,?,Y> attribute, JoinType jt)
      Description copied from interface: FetchParent
      Create a fetch join to the specified collection-valued attribute using the given join type.
      Specified by:
      fetch in interface FetchParent<O,T>
      Specified by:
      fetch in interface JpaFetchParent<O,T>
      Parameters:
      attribute - target of the join
      jt - join type
      Returns:
      the resulting join
    • fetch

      <X, Y> JpaFetch<X,Y> fetch(String attributeName)
      Description copied from interface: FetchParent
      Create a fetch join to the specified attribute using an inner join.
      Specified by:
      fetch in interface FetchParent<O,T>
      Specified by:
      fetch in interface JpaFetchParent<O,T>
      Parameters:
      attributeName - name of the attribute for the target of the join
      Returns:
      the resulting fetch join
    • fetch

      <X, Y> JpaFetch<X,Y> fetch(String attributeName, JoinType jt)
      Description copied from interface: FetchParent
      Create a fetch join to the specified attribute using the given join type.
      Specified by:
      fetch in interface FetchParent<O,T>
      Specified by:
      fetch in interface JpaFetchParent<O,T>
      Parameters:
      attributeName - name of the attribute for the target of the join
      jt - join type
      Returns:
      the resulting fetch join
    • on

      JpaJoin<O,T> on(JpaExpression<Boolean> restriction)
      Add a restriction to the fetch.
    • on

      JpaJoin<O,T> on(JpaPredicate... restrictions)
      Add a restriction to the fetch.