Z
- the source typeX
- the target typeExpression<X>
, FetchParent<Z,X>
, Path<X>
, Selection<X>
, TupleElement<X>
CollectionJoin<Z,E>
, Join<Z,X>
, ListJoin<Z,E>
, MapJoin<Z,K,V>
, PluralJoin<Z,C,E>
, Root<X>
, SetJoin<Z,E>
public interface From<Z,X> extends Path<X>, FetchParent<Z,X>
Serves as a factory for Joins of associations, embeddables, and collections belonging to the type, and for Paths of attributes belonging to the type.
Modifier and Type | Method | Description |
---|---|---|
From<Z,X> |
getCorrelationParent() |
Returns the parent
From object from which the correlated
From object has been obtained through correlation (use
of a Subquery correlate method). |
java.util.Set<Join<X,?>> |
getJoins() |
Return the joins that have been made from this bound type.
|
boolean |
isCorrelated() |
Whether the
From object has been obtained as a result of
correlation (use of a Subquery correlate
method). |
<X,Y> Join<X,Y> |
join(java.lang.String attributeName) |
Create an inner join to the specified attribute.
|
<X,Y> Join<X,Y> |
join(java.lang.String attributeName,
JoinType jt) |
Create a join to the specified attribute using the given
join type.
|
<Y> CollectionJoin<X,Y> |
join(CollectionAttribute<? super X,Y> collection) |
Create an inner join to the specified Collection-valued
attribute.
|
<Y> CollectionJoin<X,Y> |
join(CollectionAttribute<? super X,Y> collection,
JoinType jt) |
Create a join to the specified Collection-valued attribute
using the given join type.
|
<Y> ListJoin<X,Y> |
join(ListAttribute<? super X,Y> list) |
Create an inner join to the specified List-valued attribute.
|
<Y> ListJoin<X,Y> |
join(ListAttribute<? super X,Y> list,
JoinType jt) |
Create a join to the specified List-valued attribute using
the given join type.
|
<K,V> MapJoin<X,K,V> |
join(MapAttribute<? super X,K,V> map) |
Create an inner join to the specified Map-valued attribute.
|
<K,V> MapJoin<X,K,V> |
join(MapAttribute<? super X,K,V> map,
JoinType jt) |
Create a join to the specified Map-valued attribute using
the given join type.
|
<Y> SetJoin<X,Y> |
join(SetAttribute<? super X,Y> set) |
Create an inner join to the specified Set-valued attribute.
|
<Y> SetJoin<X,Y> |
join(SetAttribute<? super X,Y> set,
JoinType jt) |
Create a join to the specified Set-valued attribute using
the given join type.
|
<Y> Join<X,Y> |
join(SingularAttribute<? super X,Y> attribute) |
Create an inner join to the specified single-valued
attribute.
|
<Y> Join<X,Y> |
join(SingularAttribute<? super X,Y> attribute,
JoinType jt) |
Create a join to the specified single-valued attribute
using the given join type.
|
<X,Y> CollectionJoin<X,Y> |
joinCollection(java.lang.String attributeName) |
Create an inner join to the specified Collection-valued
attribute.
|
<X,Y> CollectionJoin<X,Y> |
joinCollection(java.lang.String attributeName,
JoinType jt) |
Create a join to the specified Collection-valued attribute
using the given join type.
|
<X,Y> ListJoin<X,Y> |
joinList(java.lang.String attributeName) |
Create an inner join to the specified List-valued attribute.
|
<X,Y> ListJoin<X,Y> |
joinList(java.lang.String attributeName,
JoinType jt) |
Create a join to the specified List-valued attribute using
the given join type.
|
<X,K,V> MapJoin<X,K,V> |
joinMap(java.lang.String attributeName) |
Create an inner join to the specified Map-valued attribute.
|
<X,K,V> MapJoin<X,K,V> |
joinMap(java.lang.String attributeName,
JoinType jt) |
Create a join to the specified Map-valued attribute using
the given join type.
|
<X,Y> SetJoin<X,Y> |
joinSet(java.lang.String attributeName) |
Create an inner join to the specified Set-valued attribute.
|
<X,Y> SetJoin<X,Y> |
joinSet(java.lang.String attributeName,
JoinType jt) |
Create a join to the specified Set-valued attribute using
the given join type.
|
as, in, in, in, in, isNotNull, isNull
fetch, fetch, fetch, fetch, fetch, fetch, getFetches
get, get, get, get, getModel, getParentPath, type
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
java.util.Set<Join<X,?>> getJoins()
boolean isCorrelated()
From
object has been obtained as a result of
correlation (use of a Subquery
correlate
method).From<Z,X> getCorrelationParent()
From
object from which the correlated
From
object has been obtained through correlation (use
of a Subquery
correlate
method).java.lang.IllegalStateException
- if the From object has
not been obtained through correlation<Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute)
attribute
- target of the join<Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute, JoinType jt)
attribute
- target of the joinjt
- join type<Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection)
collection
- target of the join<Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set)
set
- target of the join<Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list)
list
- target of the join<K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map)
map
- target of the join<Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection, JoinType jt)
collection
- target of the joinjt
- join type<Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set, JoinType jt)
set
- target of the joinjt
- join type<Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list, JoinType jt)
list
- target of the joinjt
- join type<K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map, JoinType jt)
map
- target of the joinjt
- join type<X,Y> Join<X,Y> join(java.lang.String attributeName)
attributeName
- name of the attribute for the
target of the joinjava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,Y> CollectionJoin<X,Y> joinCollection(java.lang.String attributeName)
attributeName
- name of the attribute for the
target of the joinjava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,Y> SetJoin<X,Y> joinSet(java.lang.String attributeName)
attributeName
- name of the attribute for the
target of the joinjava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,Y> ListJoin<X,Y> joinList(java.lang.String attributeName)
attributeName
- name of the attribute for the
target of the joinjava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,K,V> MapJoin<X,K,V> joinMap(java.lang.String attributeName)
attributeName
- name of the attribute for the
target of the joinjava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,Y> Join<X,Y> join(java.lang.String attributeName, JoinType jt)
attributeName
- name of the attribute for the
target of the joinjt
- join typejava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,Y> CollectionJoin<X,Y> joinCollection(java.lang.String attributeName, JoinType jt)
attributeName
- name of the attribute for the
target of the joinjt
- join typejava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,Y> SetJoin<X,Y> joinSet(java.lang.String attributeName, JoinType jt)
attributeName
- name of the attribute for the
target of the joinjt
- join typejava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,Y> ListJoin<X,Y> joinList(java.lang.String attributeName, JoinType jt)
attributeName
- name of the attribute for the
target of the joinjt
- join typejava.lang.IllegalArgumentException
- if attribute of the given
name does not exist<X,K,V> MapJoin<X,K,V> joinMap(java.lang.String attributeName, JoinType jt)
attributeName
- name of the attribute for the
target of the joinjt
- join typejava.lang.IllegalArgumentException
- if attribute of the given
name does not existCopyright © 2018. All rights reserved.