JPA Interface

Fetch

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:
JPA 2.0

Public Methods

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