public class RootImpl<X> extends AbstractFromImpl<X,X> implements Root<X>, Serializable
Root
contractModifier and Type | Class and Description |
---|---|
static class |
RootImpl.TreatedRoot<T> |
AbstractFromImpl.BasicJoinScope, AbstractFromImpl.CorrelationJoinScope, AbstractFromImpl.JoinScope<X>
ParameterContainer.Helper
DEFAULT_JOIN_TYPE
Constructor and Description |
---|
RootImpl(CriteriaBuilderImpl criteriaBuilder,
EntityType<X> entityType) |
RootImpl(CriteriaBuilderImpl criteriaBuilder,
EntityType<X> entityType,
boolean allowJoins) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBeJoinSource() |
RootImpl<X> |
correlateTo(CriteriaSubqueryImpl subquery) |
protected FromImplementor<X,X> |
createCorrelationDelegate() |
EntityType<X> |
getEntityType() |
EntityType<X> |
getModel() |
String |
getPathIdentifier()
Get the string representation of this path as a navigation from one of the
queries identification variables
|
protected RuntimeException |
illegalFetch() |
protected RuntimeException |
illegalJoin() |
String |
render(RenderingContext renderingContext) |
String |
renderProjection(RenderingContext renderingContext) |
String |
renderTableExpression(RenderingContext renderingContext) |
<T extends X> |
treatAs(Class<T> treatAsType)
Defines handling for the JPA 2.1 TREAT down-casting feature.
|
canBeDereferenced, canBeFetchSource, fetch, fetch, fetch, fetch, fetch, fetch, getAlias, getAttribute, getCorrelationParent, getFetches, getJoins, getParent, getPathSource, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet, locateAttributeInternal, locateManagedType, prepareAlias, prepareCorrelationDelegate
get, get, get, get, getParentPath, getPathSourceForSubPaths, illegalDereference, locateAttribute, registerAttributePath, registerParameters, resolveCachedAttributePath, type, unknownAttribute
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCorrelationParent, getJoins, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet
get, get, get, get, getParentPath, type
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
fetch, fetch, fetch, fetch, fetch, fetch, getFetches
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString
getValueHandlers
getValueHandler
public RootImpl(CriteriaBuilderImpl criteriaBuilder, EntityType<X> entityType)
public RootImpl(CriteriaBuilderImpl criteriaBuilder, EntityType<X> entityType, boolean allowJoins)
public EntityType<X> getEntityType()
public EntityType<X> getModel()
protected FromImplementor<X,X> createCorrelationDelegate()
createCorrelationDelegate
in class AbstractFromImpl<X,X>
public RootImpl<X> correlateTo(CriteriaSubqueryImpl subquery)
correlateTo
in interface FromImplementor<X,X>
correlateTo
in class AbstractFromImpl<X,X>
protected boolean canBeJoinSource()
canBeJoinSource
in class AbstractFromImpl<X,X>
protected RuntimeException illegalJoin()
illegalJoin
in class AbstractFromImpl<X,X>
protected RuntimeException illegalFetch()
illegalFetch
in class AbstractFromImpl<X,X>
public String renderTableExpression(RenderingContext renderingContext)
renderTableExpression
in interface FromImplementor<X,X>
public String getPathIdentifier()
PathSource
getPathIdentifier
in interface PathSource<X>
getPathIdentifier
in class AbstractFromImpl<X,X>
public String render(RenderingContext renderingContext)
render
in interface Renderable
render
in class AbstractFromImpl<X,X>
public String renderProjection(RenderingContext renderingContext)
renderProjection
in interface Renderable
renderProjection
in class AbstractFromImpl<X,X>
public <T extends X> RootImpl<T> treatAs(Class<T> treatAsType)
PathImplementor
treatAs
in interface PathImplementor<X>
T
- The parameterized type representation of treatAsType.treatAsType
- The type to treat the path as.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.