Top Description Methods
javax.persistence.criteria

public Interface FetchParent<Z, X>

Known Direct Subinterfaces
javax.persistence.criteria.From, javax.persistence.criteria.Fetch
Type Parameters
<Z>
the source type
<X>
the target type
Imports
javax.persistence.metamodel.PluralAttribute, .SingularAttribute

Represents an element of the from clause which may function as the parent of Fetches.
Since
Java Persistence 2.0

Method Summary

Modifier and TypeMethod and Description
public <Y> Fetch<X, Y>

Returns:

the resulting fetch join
fetch
(SingularAttribute<? super X, Y>
target of the join
attribute
)

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

public <Y> Fetch<X, Y>

Returns:

the resulting fetch join
fetch
(SingularAttribute<? super X, Y>
target of the join
attribute
,
JoinType
join type
jt
)

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

public <Y> Fetch<X, Y>

Returns:

the resulting join
fetch
(PluralAttribute<? super X, ?, Y>
target of the join
attribute
)

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

public <Y> Fetch<X, Y>

Returns:

the resulting join
fetch
(PluralAttribute<? super X, ?, Y>
target of the join
attribute
,
JoinType
join type
jt
)

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

public <X, Y> Fetch<X, Y>

Returns:

the resulting fetch join
fetch
(String
name of the attribute for the target of the join
attributeName
)

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

public <X, Y> Fetch<X, Y>

Returns:

the resulting fetch join
fetch
(String
name of the attribute for the target of the join
attributeName
,
JoinType
join type
jt
)

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

public Set<Fetch<X, ?>>

Returns:

fetch joins made from this type
getFetches
()

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

Method Detail

fetchback to summary
public <Y> Fetch<X, Y> fetch(SingularAttribute<? super X, Y> attribute)

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

Parameters
attribute:SingularAttribute<? super X, Y>

target of the join

Returns:Fetch<X, Y>

the resulting fetch join

fetchback to summary
public <Y> Fetch<X, Y> fetch(SingularAttribute<? super X, Y> attribute, JoinType jt)

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

Parameters
attribute:SingularAttribute<? super X, Y>

target of the join

jt:JoinType

join type

Returns:Fetch<X, Y>

the resulting fetch join

fetchback to summary
public <Y> Fetch<X, Y> fetch(PluralAttribute<? super X, ?, Y> attribute)

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

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

target of the join

Returns:Fetch<X, Y>

the resulting join

fetchback to summary
public <Y> Fetch<X, Y> fetch(PluralAttribute<? super X, ?, Y> attribute, JoinType jt)

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

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

target of the join

jt:JoinType

join type

Returns:Fetch<X, Y>

the resulting join

fetchback to summary
public <X, Y> Fetch<X, Y> fetch(String attributeName)

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:Fetch<X, Y>

the resulting fetch join

Annotations
@SuppressWarnings:hiding
Exceptions
IllegalArgumentException:
if attribute of the given name does not exist
fetchback to summary
public <X, Y> Fetch<X, Y> fetch(String attributeName, JoinType jt)

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:Fetch<X, Y>

the resulting fetch join

Annotations
@SuppressWarnings:hiding
Exceptions
IllegalArgumentException:
if attribute of the given name does not exist
getFetchesback to summary
public Set<Fetch<X, ?>> 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<X, ?>>

fetch joins made from this type