public class RootImpl<X> extends AbstractFromImpl<X,X> implements javax.persistence.criteria.Root<X>, java.io.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,
javax.persistence.metamodel.EntityType<X> entityType) |
RootImpl(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.metamodel.EntityType<X> entityType,
boolean allowJoins) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBeJoinSource() |
RootImpl<X> |
correlateTo(CriteriaSubqueryImpl subquery) |
protected FromImplementor<X,X> |
createCorrelationDelegate() |
javax.persistence.metamodel.EntityType<X> |
getEntityType() |
javax.persistence.metamodel.EntityType<X> |
getModel() |
java.lang.String |
getPathIdentifier()
Get the string representation of this path as a navigation from one of the
queries identification variables
|
java.util.Set<RootImpl.TreatedRoot<? extends X>> |
getTreats() |
protected java.lang.RuntimeException |
illegalFetch() |
protected java.lang.RuntimeException |
illegalJoin() |
java.lang.String |
render(RenderingContext renderingContext)
Render clause
|
java.lang.String |
renderTableExpression(RenderingContext renderingContext) |
<T extends X> |
treatAs(java.lang.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, isCompoundSelectionfetch, fetch, fetch, fetch, fetch, fetch, getFetchesasBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asStringgetValueHandlersgetValueHandlerrenderGroupBy, renderProjectionpublic RootImpl(CriteriaBuilderImpl criteriaBuilder, javax.persistence.metamodel.EntityType<X> entityType)
public RootImpl(CriteriaBuilderImpl criteriaBuilder, javax.persistence.metamodel.EntityType<X> entityType, boolean allowJoins)
public javax.persistence.metamodel.EntityType<X> getEntityType()
public javax.persistence.metamodel.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 java.lang.RuntimeException illegalJoin()
illegalJoin in class AbstractFromImpl<X,X>protected java.lang.RuntimeException illegalFetch()
illegalFetch in class AbstractFromImpl<X,X>public java.lang.String renderTableExpression(RenderingContext renderingContext)
renderTableExpression in interface FromImplementor<X,X>public java.lang.String getPathIdentifier()
PathSourcegetPathIdentifier in interface PathSource<X>getPathIdentifier in class AbstractFromImpl<X,X>public java.lang.String render(RenderingContext renderingContext)
Renderablerender in interface Renderablerender in class AbstractFromImpl<X,X>renderingContext - contextpublic java.util.Set<RootImpl.TreatedRoot<? extends X>> getTreats()
public <T extends X> RootImpl<T> treatAs(java.lang.Class<T> treatAsType)
PathImplementortreatAs in interface PathImplementor<X>T - The parameterized type representation of treatAsType.treatAsType - The type to treat the path as.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.