EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference

javax.persistence.criteria
Interface Root<X>

Type Parameters:
X - the entity type referenced by the root
All Superinterfaces:
Expression<X>, FetchParent<X,X>, From<X,X>, Path<X>, ResultItem<X>, Selection<X>

public interface Root<X>
extends From<X,X>

A root type in the from clause. Query roots always reference entities.


Method Summary
 Entity<X> getModel()
          Return the metamodel entity corresponding to the root.
 
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

Entity<X> getModel()
Return the metamodel entity corresponding to the root.

Specified by:
getModel in interface Path<X>
Returns:
metamodel entity corresponding to the root

EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference