Top Description Methods
javax.persistence.criteria

public Interface Fetch<Z, X>

extends FetchParent<Z, X>
Type Parameters
<Z>
the source type of the fetch
<X>
the target type of the fetch
Imports
javax.persistence.metamodel.Attribute

Represents a join-fetched association or attribute.
Since
Java Persistence 2.0

Method Summary

Modifier and TypeMethod and Description
public Attribute<? super Z, ?>

Returns:

metamodel attribute for the join
getAttribute
()

Return the metamodel attribute corresponding to the fetch join.

public JoinType

Returns:

join type
getJoinType
()

Return the join type used in the fetch join.

public FetchParent<?, Z>

Returns:

fetch parent
getParent
()

Return the parent of the fetched item.

Inherited from javax.persistence.criteria.FetchParent:
fetchfetchfetchfetchfetchfetchgetFetches

Method Detail

getAttributeback to summary
public Attribute<? super Z, ?> getAttribute()

Return the metamodel attribute corresponding to the fetch join.

Returns:Attribute<? super Z, ?>

metamodel attribute for the join

getJoinTypeback to summary
public JoinType getJoinType()

Return the join type used in the fetch join.

Returns:JoinType

join type

getParentback to summary
public FetchParent<?, Z> getParent()

Return the parent of the fetched item.

Returns:FetchParent<?, Z>

fetch parent