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)
Create a fetch join to the specified collection-valued
attribute using an inner join.
|
<Y> Fetch<X,Y> |
fetch(PluralAttribute<? super X,?,Y> pluralAttribute,
JoinType jt)
Create a fetch join to the specified collection-valued
attribute using the given join type.
|
<Y> Fetch<X,Y> |
fetch(SingularAttribute<? super X,Y> singularAttribute)
Create a fetch join to the specified single-valued attribute
using an inner join.
|
<Y> Fetch<X,Y> |
fetch(SingularAttribute<? super X,Y> attribute,
JoinType jt)
Create a fetch join to the specified single-valued attribute
using the given join type.
|
<X,Y> Fetch<X,Y> |
fetch(String attributeName)
Create a fetch join to the specified attribute using an
inner join.
|
<X,Y> Fetch<X,Y> |
fetch(String attributeName,
JoinType jt)
Create a fetch join to the specified attribute using
the given join type.
|
String |
getAlias()
Return the alias assigned to the tuple element or null,
if no alias has been assigned.
|
Attribute<?,?> |
getAttribute()
Retrieve reference to the attribute this path represents.
|
FromImplementor<Z,X> |
getCorrelationParent()
Returns the parent
From object from which the correlated
From object has been obtained through correlation (use
of a Subquery correlate method). |
Set<Fetch<X,?>> |
getFetches()
Return the fetch joins that have been made from this type.
|
Set<Join<X,?>> |
getJoins()
Return the joins that have been made from this bound type.
|
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()
Whether the
From object has been obtained as a result of
correlation (use of a Subquery correlate
method). |
<Y> CollectionJoin<X,Y> |
join(CollectionAttribute<? super X,Y> collection)
Create an inner join to the specified Collection-valued
attribute.
|
<Y> CollectionJoin<X,Y> |
join(CollectionAttribute<? super X,Y> collection,
JoinType jt)
Create a join to the specified Collection-valued attribute
using the given join type.
|
<Y> ListJoin<X,Y> |
join(ListAttribute<? super X,Y> list)
Create an inner join to the specified List-valued attribute.
|
<Y> ListJoin<X,Y> |
join(ListAttribute<? super X,Y> list,
JoinType jt)
Create a join to the specified List-valued attribute using
the given join type.
|
<K,V> MapJoin<X,K,V> |
join(MapAttribute<? super X,K,V> map)
Create an inner join to the specified Map-valued attribute.
|
<K,V> MapJoin<X,K,V> |
join(MapAttribute<? super X,K,V> map,
JoinType jt)
Create a join to the specified Map-valued attribute using
the given join type.
|
<Y> SetJoin<X,Y> |
join(SetAttribute<? super X,Y> set)
Create an inner join to the specified Set-valued attribute.
|
<Y> SetJoin<X,Y> |
join(SetAttribute<? super X,Y> set,
JoinType jt)
Create a join to the specified Set-valued attribute using
the given join type.
|
<Y> Join<X,Y> |
join(SingularAttribute<? super X,Y> singularAttribute)
Create an inner join to the specified single-valued
attribute.
|
<Y> Join<X,Y> |
join(SingularAttribute<? super X,Y> attribute,
JoinType jt)
Create a join to the specified single-valued attribute
using the given join type.
|
<X,Y> Join<X,Y> |
join(String attributeName)
Create an inner join to the specified attribute.
|
<X,Y> Join<X,Y> |
join(String attributeName,
JoinType jt)
Create a join to the specified attribute using the given
join type.
|
<X,Y> CollectionJoin<X,Y> |
joinCollection(String attributeName)
Create an inner join to the specified Collection-valued
attribute.
|
<X,Y> CollectionJoin<X,Y> |
joinCollection(String attributeName,
JoinType jt)
Create a join to the specified Collection-valued attribute
using the given join type.
|
<X,Y> ListJoin<X,Y> |
joinList(String attributeName)
Create an inner join to the specified List-valued attribute.
|
<X,Y> ListJoin<X,Y> |
joinList(String attributeName,
JoinType jt)
Create a join to the specified List-valued attribute using
the given join type.
|
<X,K,V> MapJoin<X,K,V> |
joinMap(String attributeName)
Create an inner join to the specified Map-valued attribute.
|
<X,K,V> MapJoin<X,K,V> |
joinMap(String attributeName,
JoinType jt)
Create a join to the specified Map-valued attribute using
the given join type.
|
<X,Y> SetJoin<X,Y> |
joinSet(String attributeName)
Create an inner join to the specified Set-valued attribute.
|
<X,Y> SetJoin<X,Y> |
joinSet(String attributeName,
JoinType jt)
Create a join to the specified Set-valued attribute using
the given join type.
|
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()
FromFrom object has been obtained as a result of
correlation (use of a Subquery correlate
method).isCorrelated in interface From<Z,X>public FromImplementor<Z,X> getCorrelationParent()
FromFrom object from which the correlated
From object has been obtained through correlation (use
of a Subquery correlate method).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()
TupleElementgetAlias in interface TupleElement<X>getAlias in class AbstractTupleElement<X>protected abstract boolean canBeJoinSource()
protected RuntimeException illegalJoin()
public Set<Join<X,?>> getJoins()
Frompublic <Y> Join<X,Y> join(SingularAttribute<? super X,Y> singularAttribute)
Frompublic <Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute, JoinType jt)
Frompublic <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection)
Frompublic <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection, JoinType jt)
Frompublic <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set)
Frompublic <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set, JoinType jt)
Frompublic <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list)
Frompublic <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list, JoinType jt)
Frompublic <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map)
Frompublic <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map, JoinType jt)
Frompublic <X,Y> Join<X,Y> join(String attributeName)
Frompublic <X,Y> Join<X,Y> join(String attributeName, JoinType jt)
Frompublic <X,Y> CollectionJoin<X,Y> joinCollection(String attributeName)
FromjoinCollection in interface From<Z,X>attributeName - name of the attribute for the
target of the joinpublic <X,Y> CollectionJoin<X,Y> joinCollection(String attributeName, JoinType jt)
FromjoinCollection in interface From<Z,X>attributeName - name of the attribute for the
target of the joinjt - join typepublic <X,Y> SetJoin<X,Y> joinSet(String attributeName)
Frompublic <X,Y> SetJoin<X,Y> joinSet(String attributeName, JoinType jt)
Frompublic <X,Y> ListJoin<X,Y> joinList(String attributeName)
Frompublic <X,Y> ListJoin<X,Y> joinList(String attributeName, JoinType jt)
Frompublic <X,K,V> MapJoin<X,K,V> joinMap(String attributeName)
Frompublic <X,K,V> MapJoin<X,K,V> joinMap(String attributeName, JoinType jt)
Fromprotected boolean canBeFetchSource()
protected RuntimeException illegalFetch()
public Set<Fetch<X,?>> getFetches()
FetchParentgetFetches in interface FetchParent<Z,X>public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> singularAttribute)
FetchParentfetch in interface FetchParent<Z,X>singularAttribute - target of the joinpublic <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> attribute, JoinType jt)
FetchParentfetch in interface FetchParent<Z,X>attribute - target of the joinjt - join typepublic <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> pluralAttribute)
FetchParentfetch in interface FetchParent<Z,X>pluralAttribute - target of the joinpublic <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> pluralAttribute, JoinType jt)
FetchParentfetch in interface FetchParent<Z,X>pluralAttribute - target of the joinjt - join typepublic <X,Y> Fetch<X,Y> fetch(String attributeName)
FetchParentfetch in interface FetchParent<Z,X>attributeName - name of the attribute for the
target of the joinpublic <X,Y> Fetch<X,Y> fetch(String attributeName, JoinType jt)
FetchParentfetch in interface FetchParent<Z,X>attributeName - name of the attribute for the
target of the joinjt - join typeCopyright © 2016 JBoss by Red Hat. All rights reserved.