Top Methods
org.hibernate.query.criteria

public Interface JpaFetch<O, T>

extends JpaFetchParent<O, T>, Fetch<O, T>
Known Direct Subinterfaces
org.hibernate.query.sqm.tree.from.SqmAttributeJoin
Imports
java.util.Set, jakarta.persistence.criteria.Fetch, .JoinType, jakarta.persistence.metamodel.PluralAttribute, .SingularAttribute

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public <Y> JpaFetch<T, Y>
fetch(SingularAttribute<? super T, Y>
target of the join
attribute
)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified single-valued attribute using an inner join.
public <Y> JpaFetch<T, Y>
fetch(SingularAttribute<? super T, Y>
target of the join
attribute
,
JoinType
join type
jt
)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified single-valued attribute using the given join type.
public <Y> JpaFetch<T, Y>
fetch(PluralAttribute<? super T, ?, Y>
target of the join
attribute
)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified collection-valued attribute using an inner join.
public <Y> JpaFetch<T, Y>
fetch(PluralAttribute<? super T, ?, Y>
target of the join
attribute
,
JoinType
join type
jt
)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified collection-valued attribute using the given join type.
public <X, Y> JpaFetch<X, Y>
fetch(String
name of the attribute for the target of the join
attributeName
)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified attribute using an inner join.
public <X, Y> JpaFetch<X, Y>
fetch(String
name of the attribute for the target of the join
attributeName
,
JoinType
join type
jt
)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified attribute using the given join type.
public Set<Fetch<T, ?>>
public JpaJoin<O, T>
on(JpaExpression<Boolean> restriction)

Add a restriction to the fetch.

public JpaJoin<O, T>
on(JpaPredicate... restrictions)

Add a restriction to the fetch.

Inherited from jakarta.persistence.criteria.Fetch:
getAttributegetJoinTypegetParent

Method Detail

fetchback to summary
public <Y> JpaFetch<T, Y> fetch(SingularAttribute<? super T, Y> attribute)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Doc from jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified single-valued attribute using an inner join.

Parameters
attribute:SingularAttribute<? super T, Y>

target of the join

Returns:JpaFetch<T, Y>

the resulting fetch join

Annotations
@Override
fetchback to summary
public <Y> JpaFetch<T, Y> fetch(SingularAttribute<? super T, Y> attribute, JoinType jt)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Doc from jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified single-valued attribute using the given join type.

Parameters
attribute:SingularAttribute<? super T, Y>

target of the join

jt:JoinType

join type

Returns:JpaFetch<T, Y>

the resulting fetch join

Annotations
@Override
fetchback to summary
public <Y> JpaFetch<T, Y> fetch(PluralAttribute<? super T, ?, Y> attribute)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Doc from jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified collection-valued attribute using an inner join.

Parameters
attribute:PluralAttribute<? super T, ?, Y>

target of the join

Returns:JpaFetch<T, Y>

the resulting join

Annotations
@Override
fetchback to summary
public <Y> JpaFetch<T, Y> fetch(PluralAttribute<? super T, ?, Y> attribute, JoinType jt)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Doc from jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified collection-valued attribute using the given join type.

Parameters
attribute:PluralAttribute<? super T, ?, Y>

target of the join

jt:JoinType

join type

Returns:JpaFetch<T, Y>

the resulting join

Annotations
@Override
fetchback to summary
public <X, Y> JpaFetch<X, Y> fetch(String attributeName)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Doc from jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified attribute using an inner join.

Parameters
attributeName:String

name of the attribute for the target of the join

Returns:JpaFetch<X, Y>

the resulting fetch join

Annotations
@Override
fetchback to summary
public <X, Y> JpaFetch<X, Y> fetch(String attributeName, JoinType jt)

Redeclares org.hibernate.query.criteria.JpaFetchParent.fetch, jakarta.persistence.criteria.FetchParent.fetch.

Doc from jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified attribute using the given join type.

Parameters
attributeName:String

name of the attribute for the target of the join

jt:JoinType

join type

Returns:JpaFetch<X, Y>

the resulting fetch join

Annotations
@Override
getFetchesback to summary
public Set<Fetch<T, ?>> getFetches()

Redeclares org.hibernate.query.criteria.JpaFetchParent.getFetches, jakarta.persistence.criteria.FetchParent.getFetches.

Doc from jakarta.persistence.criteria.FetchParent.getFetches.

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.

Returns:Set<Fetch<T, ?>>

fetch joins made from this type

Annotations
@Override
onback to summary
public JpaJoin<O, T> on(JpaExpression<Boolean> restriction)

Add a restriction to the fetch.

API Note

JPA does not allow restricting a fetch

onback to summary
public JpaJoin<O, T> on(JpaPredicate... restrictions)

Add a restriction to the fetch.

API Note

JPA does not allow restricting a fetch