Class RootImpl<X>
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.PathImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.FromImpl<X,X>
-
- org.eclipse.persistence.internal.jpa.querydef.RootImpl<X>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.FetchParent<X,X>,javax.persistence.criteria.From<X,X>,javax.persistence.criteria.Path<X>,javax.persistence.criteria.Root<X>,javax.persistence.criteria.Selection<X>,javax.persistence.TupleElement<X>,InternalExpression,InternalSelection
public class RootImpl<X> extends FromImpl<X,X> implements javax.persistence.criteria.Root<X>
Purpose: Contains the implementation of the Root interface of the JPA criteria API.
Description: This class represents root of a path. All paths are created from roots and they correspond to ExpressionBuilders.
- Since:
- EclipseLink 1.2
- Author:
- gyorke
- See Also:
Path, Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.FromImpl
correlatedParent, fetches, isFetch, isJoin, joins, managedType
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.PathImpl
modelArtifact, pathParent
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodel
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
-
Constructor Summary
Constructors Constructor Description RootImpl(javax.persistence.metamodel.ManagedType managedType, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable modelArtifact)RootImpl(javax.persistence.metamodel.ManagedType managedType, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable modelArtifact, FromImpl correlatedParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfindRootAndParameters(CommonAbstractCriteriaImpl query)javax.persistence.metamodel.EntityType<X>getModel()Return the metamodel entity corresponding to the root.booleanisRoot()-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.FromImpl
fetch, fetch, fetch, fetch, fetch, fetch, findJoinFetches, findJoins, get, get, get, get, getCorrelationParent, getFetches, getJoins, isCorrelated, isFrom, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet, type
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.PathImpl
clone, getParentPath
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isCompoundExpression, isExpression, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubquery
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, setJavaType
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
Methods inherited from interface javax.persistence.criteria.FetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetches
-
Methods inherited from interface javax.persistence.criteria.From
getCorrelationParent, getJoins, isCorrelated, 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
-
-
-
-
Constructor Detail
-
RootImpl
public RootImpl(javax.persistence.metamodel.ManagedType managedType, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable modelArtifact)
-
-
Method Detail
-
getModel
public javax.persistence.metamodel.EntityType<X> getModel()
Return the metamodel entity corresponding to the root.
-
findRootAndParameters
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin classPathImpl<X>
-
isRoot
public boolean isRoot()
- Specified by:
isRootin interfaceInternalSelection- Overrides:
isRootin classSelectionImpl<X>
-
-