Join
- Type Parameters:
<Z>
- the source type of the join<X>
- the target type of the join
A join to an entity, embeddable, or basic type.
- Since:
- JPA 2.0
The FROM clause (JPQL / Criteria API) article explains how to use
Join
.Public Methods
- Return:
- metamodel attribute corresponding to the join
- Since:
- JPA 2.0
From<Z,X> getCorrelationParent()
- Return:
- the parent of the correlated From object
- Throws:
- IllegalStateException - if the From object has not been obtained through correlation
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Return:
- join type
- Since:
- JPA 2.0
Returns empty set if no joins have been made from this bound type. Modifications to the set do not affect the query.
- Return:
- joins made from this type
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
From<?,Z> getParent()
- Return:
- join parent
- Since:
- JPA 2.0
boolean isCorrelated()
- Return:
- boolean indicating whether the object has been obtained through correlation
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
collection
- target of the join
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
collection
- target of the joinjt
- join type
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
list
- target of the join
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
list
- target of the joinjt
- join type
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
map
- target of the join
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
map
- target of the joinjt
- join type
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
set
- target of the join
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
set
- target of the joinjt
- join type
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attribute
- target of the join
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attribute
- target of the joinjt
- join type
- Return:
- the resulting join
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the join
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the joinjt
- join type
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the join
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the joinjt
- join type
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the join
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the joinjt
- join type
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the join
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the joinjt
- join type
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the join
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
- Parameters:
attributeName
- name of the attribute for the target of the joinjt
- join type
- Return:
- the resulting join
- Throws:
- IllegalArgumentException - if attribute of the given name does not exist
- Inherited from:
From<Z,X>
- Since:
- JPA 2.0
Replaces the previous ON condition, if any.
- Parameters:
restriction
- a simple or compound boolean expression
- Return:
- the modified join object
- Since:
- JPA 2.1