public class RootImpl<X> extends AbstractFromImpl<X,X> implements Root<X>, Serializable
Root contract| Modifier and Type | Class and Description |
|---|---|
static class |
RootImpl.TreatedRoot<T> |
AbstractFromImpl.BasicJoinScope, AbstractFromImpl.CorrelationJoinScope, AbstractFromImpl.JoinScope<X>ParameterContainer.HelperDEFAULT_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()
Return the metamodel entity corresponding to the root.
|
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, prepareCorrelationDelegateget, get, get, get, getParentPath, getPathSourceForSubPaths, illegalDereference, locateAttribute, registerAttributePath, registerParameters, resolveCachedAttributePath, type, unknownAttributeas, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, getValueHandlers, isCompoundSelectionforceConversion, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCorrelationParent, getJoins, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSetget, get, get, get, getParentPath, typeas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetAlias, getJavaTypefetch, fetch, fetch, fetch, fetch, fetch, getFetchesasBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asStringgetValueHandlersgetValueHandlerpublic RootImpl(CriteriaBuilderImpl criteriaBuilder, EntityType<X> entityType)
public RootImpl(CriteriaBuilderImpl criteriaBuilder, EntityType<X> entityType, boolean allowJoins)
public EntityType<X> getEntityType()
public EntityType<X> getModel()
Rootprotected 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()
PathSourcegetPathIdentifier in interface PathSource<X>getPathIdentifier in class AbstractFromImpl<X,X>public String render(RenderingContext renderingContext)
render in interface Renderablerender in class AbstractFromImpl<X,X>public String renderProjection(RenderingContext renderingContext)
renderProjection in interface RenderablerenderProjection in class AbstractFromImpl<X,X>public <T extends X> RootImpl<T> treatAs(Class<T> treatAsType)
PathImplementortreatAs in interface PathImplementor<X>T - The parameterized type representation of treatAsType.treatAsType - The type to treat the path as.Copyright © 2018 JBoss by Red Hat. All rights reserved.