430 words
javax.persistence.criteria.Fetch - JPA interface
javax.persistence.criteria
Interface Fetch<Z,X>
- Superinterfaces:
FetchParent<Z,X>
Represents a join-fetched association or attribute.
- Since:
- JPA 2.0
Return the metamodel attribute corresponding to the
fetch join.
- Returns:
- metamodel attribute for the join
- Since:
- JPA 2.0
Return the join type used in the fetch join.
- Returns:
- join type
- Since:
- JPA 2.0
Return the parent of the fetched item.
- Returns:
- fetch parent
- 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
- Returns:
- the resulting fetch join
- Throws:
IllegalArgumentException- if attribute of the given name does not exist
- Since:
- JPA 2.0
Create a fetch join to the specified attribute using
the given join type.
- Parameters:
attributeName- name of the attribute for the target of the joinjt- join type
- Returns:
- the resulting fetch join
- Throws:
IllegalArgumentException- if attribute of the given name does not exist
- Since:
- JPA 2.0
Create a fetch join to the specified collection-valued
attribute using an inner join.
- Parameters:
attribute- target of the join
- Returns:
- the resulting join
- Since:
- JPA 2.0
Create a fetch join to the specified single-valued attribute
using an inner join.
- Parameters:
attribute- target of the join
- Returns:
- the resulting fetch join
- Since:
- JPA 2.0
Create a fetch join to the specified collection-valued
attribute using the given join type.
- Parameters:
attribute- target of the joinjt- join type
- Returns:
- the resulting join
- Since:
- JPA 2.0
Create a fetch join to the specified single-valued attribute
using the given join type.
- Parameters:
attribute- target of the joinjt- join type
- Returns:
- the resulting fetch 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.
- Returns:
- fetch joins made from this type
- Since:
- JPA 2.0
This documentation page is derived (with some adjustments) from the open source JPA 2 RI (EclipseLink)
and is available under the terms of the Eclipse Public License, v. 1.0 and Eclipse Distribution License, v. 1.0.
and is available under the terms of the Eclipse Public License, v. 1.0 and Eclipse Distribution License, v. 1.0.
Object Relational Mapping (ORM) JPA 2 providers include Hibernate, EclipseLink, TopLink, OpenJPA and DataNucleus.
Object DB is not an ORM JPA implementation but an Object Database for Java with built in JPA 2 support.