EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference

javax.persistence.criteria
Interface From<Z,X>

Type Parameters:
Z -
X -
All Superinterfaces:
Expression<X>, FetchParent<Z,X>, Path<X>, ResultItem<X>, Selection<X>
All Known Subinterfaces:
AbstractCollectionJoin<Z,C,E>, CollectionJoin<Z,E>, Join<Z,X>, ListJoin<Z,E>, MapJoin<Z,K,V>, Root<X>, SetJoin<Z,E>

public interface From<Z,X>
extends Path<X>, FetchParent<Z,X>

Represents a bound type, usually an entity that appears in the from clause, but may also be an embeddable belonging to an entity in the from clause. Serves as a factory for Joins of associations, embeddables and collections belonging to the type, and for Paths of attributes belonging to the type.


Method Summary
 java.util.Set<Join<X,?>> getJoins()
          Return the joins that have been made from this type.
<Y> Join<X,Y>
join(Attribute<? super X,Y> attribute)
          Join to the specified attribute using an inner join.
<Y> Join<X,Y>
join(Attribute<? super X,Y> attribute, JoinType jt)
          Join to the specified attribute, using the given join type.
<Y> CollectionJoin<X,Y>
join(Collection<? super X,Y> collection)
          Join to the specified Collection-valued attribute using an inner join.
<Y> CollectionJoin<X,Y>
join(Collection<? super X,Y> collection, JoinType jt)
          Join to the specified Collection-valued attribute using the given join type.
<Y> ListJoin<X,Y>
join(List<? super X,Y> list)
          Join to the specified List-valued attribute using an inner join.
<Y> ListJoin<X,Y>
join(List<? super X,Y> list, JoinType jt)
          Join to the specified List-valued attribute using the given join type.
<K,V> MapJoin<X,K,V>
join(Map<? super X,K,V> map)
          Join to the specified Map-valued attribute using an inner join.
<K,V> MapJoin<X,K,V>
join(Map<? super X,K,V> map, JoinType jt)
          Join to the specified Map-valued attribute using the given join type.
<Y> SetJoin<X,Y>
join(Set<? super X,Y> set)
          Join to the specified Set-valued attribute using an inner join.
<Y> SetJoin<X,Y>
join(Set<? super X,Y> set, JoinType jt)
          Join to the specified Set-valued attribute using the given join type.
<W,Y> Join<W,Y>
join(java.lang.String attributeName)
          Join to the specified attribute using an inner join.
<W,Y> Join<W,Y>
join(java.lang.String attributeName, JoinType jt)
          Join to the specified attribute using the given join type.
<W,Y> CollectionJoin<W,Y>
joinCollection(java.lang.String attributeName)
          Join to the specified Collection-valued attribute using an inner join.
<W,Y> CollectionJoin<W,Y>
joinCollection(java.lang.String attributeName, JoinType jt)
          Join to the specified Collection-valued attribute using the given join type.
<W,Y> ListJoin<W,Y>
joinList(java.lang.String attributeName)
          Join to the specified List-valued attribute using an inner join.
<W,Y> ListJoin<W,Y>
joinList(java.lang.String attributeName, JoinType jt)
          Join to the specified List-valued attribute using the given join type.
<W,K,V> MapJoin<W,K,V>
joinMap(java.lang.String attributeName)
          Join to the specified Map-valued attribute using an inner join.
<W,K,V> MapJoin<W,K,V>
joinMap(java.lang.String attributeName, JoinType jt)
          Join to the specified Map-valued attribute using the given join type.
<W,Y> SetJoin<W,Y>
joinSet(java.lang.String attributeName)
          Join to the specified Set-valued attribute using an inner join.
<W,Y> SetJoin<W,Y>
joinSet(java.lang.String attributeName, JoinType jt)
          Join to the specified Set-valued attribute using the given join type.
 
Methods inherited from interface javax.persistence.criteria.Path
get, get, get, get, getModel, getParentPath, type
 
Methods inherited from interface javax.persistence.criteria.Expression
as, getJavaType, in, isNotNull, isNull
 
Methods inherited from interface javax.persistence.criteria.Selection
setAlias
 
Methods inherited from interface javax.persistence.ResultItem
getAlias
 
Methods inherited from interface javax.persistence.criteria.FetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetches
 

Method Detail

getJoins

java.util.Set<Join<X,?>> getJoins()
Return the joins that have been made from this type.

Returns:
joins made from this type

join

<Y> Join<X,Y> join(Attribute<? super X,Y> attribute)
Join to the specified attribute using an inner join.

Parameters:
attribute - target of the join
Returns:
the resulting join

join

<Y> Join<X,Y> join(Attribute<? super X,Y> attribute,
                   JoinType jt)
Join to the specified attribute, using the given join type.

Parameters:
attribute - target of the join
jt - join type
Returns:
the resulting join

join

<Y> CollectionJoin<X,Y> join(Collection<? super X,Y> collection)
Join to the specified Collection-valued attribute using an inner join.

Parameters:
collection - target of the join
Returns:
the resulting join

join

<Y> SetJoin<X,Y> join(Set<? super X,Y> set)
Join to the specified Set-valued attribute using an inner join.

Parameters:
set - target of the join
Returns:
the resulting join

join

<Y> ListJoin<X,Y> join(List<? super X,Y> list)
Join to the specified List-valued attribute using an inner join.

Parameters:
list - target of the join
Returns:
the resulting join

join

<K,V> MapJoin<X,K,V> join(Map<? super X,K,V> map)
Join to the specified Map-valued attribute using an inner join.

Parameters:
map - target of the join
Returns:
the resulting join

join

<Y> CollectionJoin<X,Y> join(Collection<? super X,Y> collection,
                             JoinType jt)
Join to the specified Collection-valued attribute using the given join type.

Parameters:
collection - target of the join
jt - join type
Returns:
the resulting join

join

<Y> SetJoin<X,Y> join(Set<? super X,Y> set,
                      JoinType jt)
Join to the specified Set-valued attribute using the given join type.

Parameters:
set - target of the join
jt - join type
Returns:
the resulting join

join

<Y> ListJoin<X,Y> join(List<? super X,Y> list,
                       JoinType jt)
Join to the specified List-valued attribute using the given join type.

Parameters:
list - target of the join
jt - join type
Returns:
the resulting join

join

<K,V> MapJoin<X,K,V> join(Map<? super X,K,V> map,
                          JoinType jt)
Join to the specified Map-valued attribute using the given join type.

Parameters:
map - target of the join
jt - join type
Returns:
the resulting join

join

<W,Y> Join<W,Y> join(java.lang.String attributeName)
Join to the specified attribute using an inner join.

Parameters:
attributeName - name of the attribute for the target of the join
Returns:
the resulting join

joinCollection

<W,Y> CollectionJoin<W,Y> joinCollection(java.lang.String attributeName)
Join to the specified Collection-valued attribute using an inner join.

Parameters:
attributeName - name of the attribute for the target of the join
Returns:
the resulting join

joinSet

<W,Y> SetJoin<W,Y> joinSet(java.lang.String attributeName)
Join to the specified Set-valued attribute using an inner join.

Parameters:
attributeName - name of the attribute for the target of the join
Returns:
the resulting join

joinList

<W,Y> ListJoin<W,Y> joinList(java.lang.String attributeName)
Join to the specified List-valued attribute using an inner join.

Parameters:
attributeName - name of the attribute for the target of the join
Returns:
the resulting join

joinMap

<W,K,V> MapJoin<W,K,V> joinMap(java.lang.String attributeName)
Join to the specified Map-valued attribute using an inner join.

Parameters:
attributeName - name of the attribute for the target of the join
Returns:
the resulting join

join

<W,Y> Join<W,Y> join(java.lang.String attributeName,
                     JoinType jt)
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
Returns:
the resulting join

joinCollection

<W,Y> CollectionJoin<W,Y> joinCollection(java.lang.String attributeName,
                                         JoinType jt)
Join to the specified Collection-valued attribute using the given join type.

Parameters:
attributeName - name of the attribute for the target of the join
jt - join type
Returns:
the resulting join

joinSet

<W,Y> SetJoin<W,Y> joinSet(java.lang.String attributeName,
                           JoinType jt)
Join to the specified Set-valued attribute using the given join type.

Parameters:
attributeName - name of the attribute for the target of the join
jt - join type
Returns:
the resulting join

joinList

<W,Y> ListJoin<W,Y> joinList(java.lang.String attributeName,
                             JoinType jt)
Join to the specified List-valued attribute using the given join type.

Parameters:
attributeName - name of the attribute for the target of the join
jt - join type
Returns:
the resulting join

joinMap

<W,K,V> MapJoin<W,K,V> joinMap(java.lang.String attributeName,
                               JoinType jt)
Join to the specified Map-valued attribute using the given join type.

Parameters:
attributeName - name of the attribute for the target of the join
jt - join type
Returns:
the resulting join

EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference