Jakarta Persistence (JPA) Interface

jakarta.persistence.criteria.Fetch<Z,X>

Type Parameters:
<Z> - the source type of the fetch
<X> - the target type of the fetch
Super Interfaces:
FetchParent<Z,X>

Represents a join-fetched association or attribute.
Since:
Jakarta Persistence (JPA) 2.0

Public Instance Methods

Create a fetch join to the specified single-valued attribute using an inner join.
Inherited from FetchParent<Z,X>
Parameters:
attribute - target of the join
Returns:
the resulting fetch join.
Since:
Jakarta Persistence (JPA) 1.0
Create a fetch join to the specified single-valued attribute using the given join type.
Inherited from FetchParent<Z,X>
Parameters:
jt - join type
attribute - target of the join
Returns:
the resulting fetch join.
Since:
Jakarta Persistence (JPA) 1.0
Create a fetch join to the specified collection-valued attribute using an inner join.
Inherited from FetchParent<Z,X>
Parameters:
attribute - target of the join
Returns:
the resulting join.
Since:
Jakarta Persistence (JPA) 1.0
Create a fetch join to the specified collection-valued attribute using the given join type.
Inherited from FetchParent<Z,X>
Parameters:
jt - join type
attribute - target of the join
Returns:
the resulting join.
Since:
Jakarta Persistence (JPA) 1.0
Fetch<X,Y> fetch(String attributeName)
Create a fetch join to the specified attribute using an inner join.
Inherited from FetchParent<Z,X>
Parameters:
attributeName - name of the attribute for the target of the join
Returns:
the resulting fetch join.
Throws:
IllegalArgumentException - if attribute of the given name does not exist.
Since:
Jakarta Persistence (JPA) 1.0
Fetch<X,Y> fetch(String attributeName, JoinType jt)
Create a fetch join to the specified attribute using the given join type.
Inherited from FetchParent<Z,X>
Parameters:
attributeName - name of the attribute for the target of the join
jt - join type
Returns:
the resulting fetch join.
Throws:
IllegalArgumentException - if attribute of the given name does not exist.
Since:
Jakarta Persistence (JPA) 1.0
Return the metamodel attribute corresponding to the fetch join.
Returns:
metamodel attribute for the join.
Since:
Jakarta Persistence (JPA) 1.0
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.
Inherited from FetchParent<Z,X>
Returns:
fetch joins made from this type.
Since:
Jakarta Persistence (JPA) 1.0
Return the join type used in the fetch join.
Returns:
join type.
Since:
Jakarta Persistence (JPA) 1.0
Return the parent of the fetched item.
Returns:
fetch parent.
Since:
Jakarta Persistence (JPA) 1.0