Top Description Inners Fields Constructors Methods
org.hibernate.query.criteria.internal.path

public abstract Class AbstractFromImpl<Z, X>

extends AbstractPathImpl<X>
implements From<Z, X>, FromImplementor<Z, X>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.query.criteria.internal.FromImplementor, javax.persistence.criteria.From, javax.persistence.criteria.FetchParent, javax.persistence.criteria.Path, javax.persistence.criteria.Expression, javax.persistence.criteria.Selection, javax.persistence.TupleElement, org.hibernate.query.criteria.internal.PathImplementor, org.hibernate.query.criteria.internal.Renderable, org.hibernate.query.criteria.internal.PathSource, org.hibernate.query.criteria.internal.ExpressionImplementor, org.hibernate.query.criteria.internal.SelectionImplementor, org.hibernate.query.criteria.internal.TupleElementImplementor
Known Direct Subclasses
org.hibernate.query.criteria.internal.path.AbstractJoinImpl, org.hibernate.query.criteria.internal.path.RootImpl
Imports
java.io.Serializable, java.util.Collections, .LinkedHashSet, .Set, javax.persistence.criteria.CollectionJoin, .Fetch, .From, .Join, .JoinType, .ListJoin, .MapJoin, .SetJoin, javax.persistence.metamodel.Attribute, .CollectionAttribute, .ListAttribute, .ManagedType, .MapAttribute, .PluralAttribute, .SetAttribute, .SingularAttribute, .Type, org.hibernate.query.criteria.internal.BasicPathUsageException, .CollectionJoinImplementor, .CriteriaBuilderImpl, .CriteriaSubqueryImpl, .FromImplementor, .JoinImplementor, .ListJoinImplementor, .MapJoinImplementor, .PathSource, .SetJoinImplementor, org.hibernate.query.criteria.internal.compile.RenderingContext

Convenience base class for various javax.persistence.criteria.From implementations.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
protected class
public static interface
AbstractFromImpl.JoinScope<X>

Helper contract used to define who/what keeps track of joins and fetches made from this FROM.

Field Summary

Modifier and TypeField and Description
private FromImplementor<Z, X>
public static final JoinType
private Set<Fetch<X, ?>>
private Set<Join<X, ?>>
private AbstractFromImpl.JoinScope<X>

Constructor Summary

AccessConstructor and Description
public
AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType)

public
AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource<X> pathSource)

Method Summary

Modifier and TypeMethod and Description
protected boolean
protected boolean
protected abstract boolean
public boolean
private <Y> JoinImplementor<X, Y>
constructJoin(SingularAttribute<? super X, Y> attribute, JoinType jt)

private <Y> CollectionJoinImplementor<X, Y>
constructJoin(CollectionAttribute<? super X, Y> collection, JoinType jt)

private <Y> SetJoinImplementor<X, Y>
constructJoin(SetAttribute<? super X, Y> set, JoinType jt)

private <Y> ListJoinImplementor<X, Y>
constructJoin(ListAttribute<? super X, Y> list, JoinType jt)

private <K, V> MapJoinImplementor<X, K, V>
constructJoin(MapAttribute<? super X, K, V> map, JoinType jt)

public FromImplementor<Z, X>
protected abstract FromImplementor<Z, X>
public <Y> Fetch<X, Y>
fetch(SingularAttribute<? super X, Y>
target of the join
singularAttribute
)

Implements javax.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified single-valued attribute using an inner join.
public <Y> Fetch<X, Y>
fetch(SingularAttribute<? super X, Y>
target of the join
attribute
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified single-valued attribute using the given join type.
public <Y> Fetch<X, Y>
fetch(PluralAttribute<? super X, ?, Y>
target of the join
pluralAttribute
)

Implements javax.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified collection-valued attribute using an inner join.
public <Y> Fetch<X, Y>
fetch(PluralAttribute<? super X, ?, Y>
target of the join
pluralAttribute
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified collection-valued attribute using the given join type.
public <X, Y> Fetch<X, Y>
fetch(String
name of the attribute for the target of the join
attributeName
)

Implements javax.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified attribute using an inner join.
public <X, Y> Fetch<X, Y>
fetch(String
name of the attribute for the target of the join
attributeName
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.FetchParent.fetch.

Create a fetch join to the specified attribute using the given join type.
public String
getAlias()

Overrides org.hibernate.query.criteria.internal.expression.AbstractTupleElement.getAlias.

Implements javax.persistence.TupleElement.getAlias.

Return the alias assigned to the tuple element or null, if no alias has been assigned.
public Attribute<?, ?>
getAttribute()

Implements org.hibernate.query.criteria.internal.PathImplementor.getAttribute.

Retrieve reference to the attribute this path represents.
public FromImplementor<Z, X>
getCorrelationParent()

Implements javax.persistence.criteria.From.getCorrelationParent, org.hibernate.query.criteria.internal.FromImplementor.getCorrelationParent.

Returns the parent From object from which the correlated From object has been obtained through correlation (use of a Subquery correlate method).
public Set<Fetch<X, ?>>
getFetches()

Implements javax.persistence.criteria.FetchParent.getFetches.

Return the fetch joins that have been made from this type.
public Set<Join<X, ?>>
getJoins()

Implements javax.persistence.criteria.From.getJoins.

Return the joins that have been made from this bound type.
public From<?, Z>
public String
getPathIdentifier()

Overrides org.hibernate.query.criteria.internal.path.AbstractPathImpl.getPathIdentifier.

Implements org.hibernate.query.criteria.internal.PathSource.getPathIdentifier.

Get the string representation of this path as a navigation from one of the queries identification variables
public PathSource<Z>
protected RuntimeException
protected RuntimeException
public boolean
isCorrelated()

Implements javax.persistence.criteria.From.isCorrelated.

Whether the From object has been obtained as a result of correlation (use of a Subquery correlate method).
public <Y> Join<X, Y>
join(SingularAttribute<? super X, Y>
target of the join
singularAttribute
)

Implements javax.persistence.criteria.From.join.

Create an inner join to the specified single-valued attribute.
public <Y> Join<X, Y>
join(SingularAttribute<? super X, Y>
target of the join
attribute
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.join.

Create a join to the specified single-valued attribute using the given join type.
public <Y> CollectionJoin<X, Y>
join(CollectionAttribute<? super X, Y>
target of the join
collection
)

Implements javax.persistence.criteria.From.join.

Create an inner join to the specified Collection-valued attribute.
public <Y> CollectionJoin<X, Y>
join(CollectionAttribute<? super X, Y>
target of the join
collection
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.join.

Create a join to the specified Collection-valued attribute using the given join type.
public <Y> SetJoin<X, Y>
join(SetAttribute<? super X, Y>
target of the join
set
)

Implements javax.persistence.criteria.From.join.

Create an inner join to the specified Set-valued attribute.
public <Y> SetJoin<X, Y>
join(SetAttribute<? super X, Y>
target of the join
set
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.join.

Create a join to the specified Set-valued attribute using the given join type.
public <Y> ListJoin<X, Y>
join(ListAttribute<? super X, Y>
target of the join
list
)

Implements javax.persistence.criteria.From.join.

Create an inner join to the specified List-valued attribute.
public <Y> ListJoin<X, Y>
join(ListAttribute<? super X, Y>
target of the join
list
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.join.

Create a join to the specified List-valued attribute using the given join type.
public <K, V> MapJoin<X, K, V>
join(MapAttribute<? super X, K, V>
target of the join
map
)

Implements javax.persistence.criteria.From.join.

Create an inner join to the specified Map-valued attribute.
public <K, V> MapJoin<X, K, V>
join(MapAttribute<? super X, K, V>
target of the join
map
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.join.

Create a join to the specified Map-valued attribute using the given join type.
public <X, Y> Join<X, Y>
join(String
name of the attribute for the target of the join
attributeName
)

Implements javax.persistence.criteria.From.join.

Create an inner join to the specified attribute.
public <X, Y> Join<X, Y>
join(String
name of the attribute for the target of the join
attributeName
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.join.

Create a join to the specified attribute using the given join type.
public <X, Y> CollectionJoin<X, Y>
joinCollection(String
name of the attribute for the target of the join
attributeName
)

Implements javax.persistence.criteria.From.joinCollection.

Create an inner join to the specified Collection-valued attribute.
public <X, Y> CollectionJoin<X, Y>
joinCollection(String
name of the attribute for the target of the join
attributeName
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.joinCollection.

Create a join to the specified Collection-valued attribute using the given join type.
public <X, Y> ListJoin<X, Y>
joinList(String
name of the attribute for the target of the join
attributeName
)

Implements javax.persistence.criteria.From.joinList.

Create an inner join to the specified List-valued attribute.
public <X, Y> ListJoin<X, Y>
joinList(String
name of the attribute for the target of the join
attributeName
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.joinList.

Create a join to the specified List-valued attribute using the given join type.
public <X, K, V> MapJoin<X, K, V>
joinMap(String
name of the attribute for the target of the join
attributeName
)

Implements javax.persistence.criteria.From.joinMap.

Create an inner join to the specified Map-valued attribute.
public <X, K, V> MapJoin<X, K, V>
joinMap(String
name of the attribute for the target of the join
attributeName
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.joinMap.

Create a join to the specified Map-valued attribute using the given join type.
public <X, Y> SetJoin<X, Y>
joinSet(String
name of the attribute for the target of the join
attributeName
)

Implements javax.persistence.criteria.From.joinSet.

Create an inner join to the specified Set-valued attribute.
public <X, Y> SetJoin<X, Y>
joinSet(String
name of the attribute for the target of the join
attributeName
,
JoinType
join type
jt
)

Implements javax.persistence.criteria.From.joinSet.

Create a join to the specified Set-valued attribute using the given join type.
protected Attribute<X, ?>
locateAttributeInternal(String
The name of the attribute to locate
name
)

Implements abstract org.hibernate.query.criteria.internal.path.AbstractPathImpl.locateAttributeInternal.

Get the attribute by name from the underlying model.
protected ManagedType<? super X>
public void
public void
public String
Inherited from org.hibernate.query.criteria.internal.path.AbstractPathImpl:
getgetgetgetgetParentPathgetPathSourceForSubPathsillegalDereferencelocateAttributeregisterAttributePathregisterParametersresolveCachedAttributePathtypeunknownAttribute