public abstract class AbstractFromImpl<Z,X> extends AbstractPathImpl<X> implements From<Z,X>, FromImplementor<Z,X>, Serializable
From implementations.| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractFromImpl.BasicJoinScope |
protected class |
AbstractFromImpl.CorrelationJoinScope |
static interface |
AbstractFromImpl.JoinScope<X>
Helper contract used to define who/what keeps track of joins and fetches made from this FROM.
|
ParameterContainer.Helper| Modifier and Type | Field and Description |
|---|---|
static JoinType |
DEFAULT_JOIN_TYPE |
| Constructor and Description |
|---|
AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder,
Class<X> javaType) |
AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder,
Class<X> javaType,
PathSource pathSource) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBeDereferenced() |
protected boolean |
canBeFetchSource() |
protected abstract boolean |
canBeJoinSource() |
FromImplementor<Z,X> |
correlateTo(CriteriaSubqueryImpl subquery) |
protected abstract FromImplementor<Z,X> |
createCorrelationDelegate() |
<Y> Fetch<X,Y> |
fetch(PluralAttribute<? super X,?,Y> pluralAttribute) |
<Y> Fetch<X,Y> |
fetch(PluralAttribute<? super X,?,Y> pluralAttribute,
JoinType jt) |
<Y> Fetch<X,Y> |
fetch(SingularAttribute<? super X,Y> singularAttribute) |
<Y> Fetch<X,Y> |
fetch(SingularAttribute<? super X,Y> attribute,
JoinType jt) |
<X,Y> Fetch<X,Y> |
fetch(String attributeName) |
<X,Y> Fetch<X,Y> |
fetch(String attributeName,
JoinType jt) |
String |
getAlias() |
Attribute<?,?> |
getAttribute()
Retrieve reference to the attribute this path represents.
|
FromImplementor<Z,X> |
getCorrelationParent() |
Set<Fetch<X,?>> |
getFetches() |
Set<Join<X,?>> |
getJoins() |
From<?,Z> |
getParent() |
String |
getPathIdentifier()
Get the string representation of this path as a navigation from one of the
queries identification variables
|
PathSource<Z> |
getPathSource() |
protected RuntimeException |
illegalFetch() |
protected RuntimeException |
illegalJoin() |
boolean |
isCorrelated() |
<Y> CollectionJoin<X,Y> |
join(CollectionAttribute<? super X,Y> collection) |
<Y> CollectionJoin<X,Y> |
join(CollectionAttribute<? super X,Y> collection,
JoinType jt) |
<Y> ListJoin<X,Y> |
join(ListAttribute<? super X,Y> list) |
<Y> ListJoin<X,Y> |
join(ListAttribute<? super X,Y> list,
JoinType jt) |
<K,V> MapJoin<X,K,V> |
join(MapAttribute<? super X,K,V> map) |
<K,V> MapJoin<X,K,V> |
join(MapAttribute<? super X,K,V> map,
JoinType jt) |
<Y> SetJoin<X,Y> |
join(SetAttribute<? super X,Y> set) |
<Y> SetJoin<X,Y> |
join(SetAttribute<? super X,Y> set,
JoinType jt) |
<Y> Join<X,Y> |
join(SingularAttribute<? super X,Y> singularAttribute) |
<Y> Join<X,Y> |
join(SingularAttribute<? super X,Y> attribute,
JoinType jt) |
<X,Y> Join<X,Y> |
join(String attributeName) |
<X,Y> Join<X,Y> |
join(String attributeName,
JoinType jt) |
<X,Y> CollectionJoin<X,Y> |
joinCollection(String attributeName) |
<X,Y> CollectionJoin<X,Y> |
joinCollection(String attributeName,
JoinType jt) |
<X,Y> ListJoin<X,Y> |
joinList(String attributeName) |
<X,Y> ListJoin<X,Y> |
joinList(String attributeName,
JoinType jt) |
<X,K,V> MapJoin<X,K,V> |
joinMap(String attributeName) |
<X,K,V> MapJoin<X,K,V> |
joinMap(String attributeName,
JoinType jt) |
<X,Y> SetJoin<X,Y> |
joinSet(String attributeName) |
<X,Y> SetJoin<X,Y> |
joinSet(String attributeName,
JoinType jt) |
protected Attribute<X,?> |
locateAttributeInternal(String name)
Get the attribute by name from the underlying model.
|
protected ManagedType<? super X> |
locateManagedType() |
void |
prepareAlias(RenderingContext renderingContext) |
void |
prepareCorrelationDelegate(FromImplementor<Z,X> parent) |
String |
render(RenderingContext renderingContext) |
String |
renderProjection(RenderingContext renderingContext) |
get, 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, waitrenderTableExpressiontreatAsasBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asStringgetValueHandlersgetValueHandlerget, get, get, get, getModel, getParentPath, typeas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetJavaTypepublic static final JoinType DEFAULT_JOIN_TYPE
public AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType)
public AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource pathSource)
public PathSource<Z> getPathSource()
getPathSource in class AbstractPathImpl<X>public String getPathIdentifier()
PathSourcegetPathIdentifier in interface PathSource<X>getPathIdentifier in class AbstractPathImpl<X>protected boolean canBeDereferenced()
canBeDereferenced in class AbstractPathImpl<X>public void prepareAlias(RenderingContext renderingContext)
prepareAlias in interface FromImplementor<Z,X>prepareAlias in interface PathSource<X>prepareAlias in class AbstractPathImpl<X>public String renderProjection(RenderingContext renderingContext)
renderProjection in interface RenderablerenderProjection in class AbstractPathImpl<X>public String render(RenderingContext renderingContext)
render in interface Renderablerender in class AbstractPathImpl<X>public Attribute<?,?> getAttribute()
PathImplementorgetAttribute in interface PathImplementor<X>protected Attribute<X,?> locateAttributeInternal(String name)
AbstractPathImplAbstractPathImpl.locateAttribute(java.lang.String)
which also applies nullness checking for proper error reporting.locateAttributeInternal in class AbstractPathImpl<X>name - The name of the attribute to locateprotected ManagedType<? super X> locateManagedType()
public boolean isCorrelated()
isCorrelated in interface From<Z,X>public FromImplementor<Z,X> getCorrelationParent()
getCorrelationParent in interface From<Z,X>getCorrelationParent in interface FromImplementor<Z,X>public FromImplementor<Z,X> correlateTo(CriteriaSubqueryImpl subquery)
correlateTo in interface FromImplementor<Z,X>protected abstract FromImplementor<Z,X> createCorrelationDelegate()
public void prepareCorrelationDelegate(FromImplementor<Z,X> parent)
prepareCorrelationDelegate in interface FromImplementor<Z,X>public String getAlias()
getAlias in interface TupleElement<X>getAlias in class AbstractTupleElement<X>protected abstract boolean canBeJoinSource()
protected RuntimeException illegalJoin()
public <Y> Join<X,Y> join(SingularAttribute<? super X,Y> singularAttribute)
public <Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute, JoinType jt)
public <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection)
public <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection, JoinType jt)
public <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set)
public <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set, JoinType jt)
public <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list)
public <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list, JoinType jt)
public <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map)
public <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map, JoinType jt)
public <X,Y> CollectionJoin<X,Y> joinCollection(String attributeName)
joinCollection in interface From<Z,X>public <X,Y> CollectionJoin<X,Y> joinCollection(String attributeName, JoinType jt)
joinCollection in interface From<Z,X>protected boolean canBeFetchSource()
protected RuntimeException illegalFetch()
public Set<Fetch<X,?>> getFetches()
getFetches in interface FetchParent<Z,X>public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> singularAttribute)
fetch in interface FetchParent<Z,X>public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> attribute, JoinType jt)
fetch in interface FetchParent<Z,X>public <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> pluralAttribute)
fetch in interface FetchParent<Z,X>public <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> pluralAttribute, JoinType jt)
fetch in interface FetchParent<Z,X>public <X,Y> Fetch<X,Y> fetch(String attributeName)
fetch in interface FetchParent<Z,X>Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.