EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference

javax.persistence.criteria
Interface ListJoin<Z,E>

Type Parameters:
Z - The source type of the join
E - The element type of the target List
All Superinterfaces:
AbstractCollectionJoin<Z,java.util.List<E>,E>, Expression<E>, FetchParent<Z,E>, From<Z,E>, Join<Z,E>, Path<E>, ResultItem<E>, Selection<E>

public interface ListJoin<Z,E>
extends AbstractCollectionJoin<Z,java.util.List<E>,E>

The interface ListJoin is the type of the result of joining to a collection over an association or element collection that has been specified as a java.util.List.


Method Summary
 List<? super Z,E> getModel()
          Return the metamodel representation for the list.
 Expression<java.lang.Integer> index()
          Return an expression that corresponds to the index of the object in the referenced association or element collection.
 
Methods inherited from interface javax.persistence.criteria.Join
getJoinType, getMember, getParent
 
Methods inherited from interface javax.persistence.criteria.From
getJoins, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet
 
Methods inherited from interface javax.persistence.criteria.Path
get, get, get, get, 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

getModel

List<? super Z,E> getModel()
Return the metamodel representation for the list.

Specified by:
getModel in interface AbstractCollectionJoin<Z,java.util.List<E>,E>
Specified by:
getModel in interface Path<E>
Returns:
metamodel type representing the List that is the target of the join

index

Expression<java.lang.Integer> index()
Return an expression that corresponds to the index of the object in the referenced association or element collection. This method must only be invoked upon an object that represents an association or element collection for which an order column has been defined.

Returns:
Expression denoting the index

EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference