Top Methods
org.hibernate.query.criteria

public Interface JpaFetchParent<O, T>

extends FetchParent<O, T>
Known Direct Subinterfaces
org.hibernate.query.criteria.JpaFrom, org.hibernate.query.criteria.JpaFetch
Imports
java.util.Set, jakarta.persistence.criteria.Fetch, .FetchParent, .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 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 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 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 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 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 jakarta.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified attribute using the given join type.
public Set<Fetch<T, ?>>
getFetches()

Redeclares jakarta.persistence.criteria.FetchParent.getFetches.

Return the fetch joins that have been made from this type.

Method Detail

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

Redeclares 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 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 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 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 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 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 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