|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.ejb.criteria.AbstractNode org.hibernate.ejb.criteria.expression.AbstractTupleElement<X> org.hibernate.ejb.criteria.expression.SelectionImpl<T> org.hibernate.ejb.criteria.expression.ExpressionImpl<X> org.hibernate.ejb.criteria.path.AbstractPathImpl<X> org.hibernate.ejb.criteria.path.AbstractFromImpl<Z,X>
public abstract class AbstractFromImpl<Z,X>
Convenience base class for various From
implementors.
Nested Class Summary | |
---|---|
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. |
Nested classes/interfaces inherited from interface org.hibernate.ejb.criteria.ParameterContainer |
---|
ParameterContainer.Helper |
Field Summary | |
---|---|
static JoinType |
DEFAULT_JOIN_TYPE
|
Constructor Summary | |
---|---|
AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder,
Class<X> javaType)
|
|
AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder,
Class<X> javaType,
PathSource pathSource)
|
Method Summary | ||
---|---|---|
protected boolean |
canBeDereferenced()
|
|
protected boolean |
canBeFetchSource()
|
|
protected abstract boolean |
canBeJoinSource()
|
|
FromImplementor<Z,X> |
correlateTo(CriteriaSubqueryImpl subquery)
|
|
protected abstract FromImplementor<Z,X> |
createCorrelationDelegate()
|
|
|
fetch(PluralAttribute<? super X,?,Y> pluralAttribute)
|
|
|
fetch(PluralAttribute<? super X,?,Y> pluralAttribute,
JoinType jt)
|
|
|
fetch(SingularAttribute<? super X,Y> singularAttribute)
|
|
|
fetch(SingularAttribute<? super X,Y> attribute,
JoinType jt)
|
|
|
fetch(String attributeName)
|
|
|
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()
|
|
boolean |
isCorrelated()
|
|
|
join(CollectionAttribute<? super X,Y> collection)
|
|
|
join(CollectionAttribute<? super X,Y> collection,
JoinType jt)
|
|
|
join(ListAttribute<? super X,Y> list)
|
|
|
join(ListAttribute<? super X,Y> list,
JoinType jt)
|
|
|
join(MapAttribute<? super X,K,V> map)
|
|
|
join(MapAttribute<? super X,K,V> map,
JoinType jt)
|
|
|
join(SetAttribute<? super X,Y> set)
|
|
|
join(SetAttribute<? super X,Y> set,
JoinType jt)
|
|
|
join(SingularAttribute<? super X,Y> singularAttribute)
|
|
|
join(SingularAttribute<? super X,Y> attribute,
JoinType jt)
|
|
|
join(String attributeName)
|
|
|
join(String attributeName,
JoinType jt)
|
|
|
joinCollection(String attributeName)
|
|
|
joinCollection(String attributeName,
JoinType jt)
|
|
|
joinList(String attributeName)
|
|
|
joinList(String attributeName,
JoinType jt)
|
|
|
joinMap(String attributeName)
|
|
|
joinMap(String attributeName,
JoinType jt)
|
|
|
joinSet(String attributeName)
|
|
|
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(CriteriaQueryCompiler.RenderingContext renderingContext)
|
|
void |
prepareCorrelationDelegate(FromImplementor<Z,X> parent)
|
|
String |
render(CriteriaQueryCompiler.RenderingContext renderingContext)
|
|
String |
renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext)
|
Methods inherited from class org.hibernate.ejb.criteria.path.AbstractPathImpl |
---|
get, get, get, get, getParentPath, illegalDereference, locateAttribute, registerAttributePath, registerParameters, resolveCachedAttributePath, type, unknownAttribute |
Methods inherited from class org.hibernate.ejb.criteria.expression.ExpressionImpl |
---|
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull |
Methods inherited from class org.hibernate.ejb.criteria.expression.SelectionImpl |
---|
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection |
Methods inherited from class org.hibernate.ejb.criteria.expression.AbstractTupleElement |
---|
forceConversion, getJavaType, getValueHandler, resetJavaType, setAlias |
Methods inherited from class org.hibernate.ejb.criteria.AbstractNode |
---|
criteriaBuilder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.ejb.criteria.FromImplementor |
---|
renderTableExpression |
Methods inherited from interface org.hibernate.ejb.criteria.ExpressionImplementor |
---|
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString |
Methods inherited from interface org.hibernate.ejb.criteria.SelectionImplementor |
---|
getValueHandlers |
Methods inherited from interface org.hibernate.ejb.criteria.TupleElementImplementor |
---|
getValueHandler |
Methods inherited from interface javax.persistence.criteria.Path |
---|
get, get, get, get, getModel, getParentPath, type |
Methods inherited from interface javax.persistence.criteria.Expression |
---|
as, in, in, in, in, isNotNull, isNull |
Methods inherited from interface javax.persistence.criteria.Selection |
---|
alias, getCompoundSelectionItems, isCompoundSelection |
Methods inherited from interface javax.persistence.TupleElement |
---|
getJavaType |
Field Detail |
---|
public static final JoinType DEFAULT_JOIN_TYPE
Constructor Detail |
---|
public AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType)
public AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource pathSource)
Method Detail |
---|
public PathSource<Z> getPathSource()
getPathSource
in class AbstractPathImpl<X>
public String getPathIdentifier()
AbstractPathImpl
getPathIdentifier
in interface PathSource<X>
getPathIdentifier
in class AbstractPathImpl<X>
protected boolean canBeDereferenced()
canBeDereferenced
in class AbstractPathImpl<X>
public void prepareAlias(CriteriaQueryCompiler.RenderingContext renderingContext)
prepareAlias
in interface FromImplementor<Z,X>
prepareAlias
in interface PathSource<X>
prepareAlias
in class AbstractPathImpl<X>
public String renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext)
AbstractPathImpl
renderProjection
in interface Renderable
renderProjection
in class AbstractPathImpl<X>
public String render(CriteriaQueryCompiler.RenderingContext renderingContext)
AbstractPathImpl
render
in interface Renderable
render
in class AbstractPathImpl<X>
public Attribute<?,?> getAttribute()
getAttribute
in interface PathImplementor<X>
public From<?,Z> getParent()
protected Attribute<X,?> locateAttributeInternal(String name)
AbstractPathImpl.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 locate
protected 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()
AbstractTupleElement
getAlias
in interface TupleElement<X>
getAlias
in class AbstractTupleElement<X>
protected abstract boolean canBeJoinSource()
public Set<Join<X,?>> getJoins()
getJoins
in interface From<Z,X>
public <Y> Join<X,Y> join(SingularAttribute<? super X,Y> singularAttribute)
join
in interface From<Z,X>
public <Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute, JoinType jt)
join
in interface From<Z,X>
public <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection)
join
in interface From<Z,X>
public <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection, JoinType jt)
join
in interface From<Z,X>
public <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set)
join
in interface From<Z,X>
public <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set, JoinType jt)
join
in interface From<Z,X>
public <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list)
join
in interface From<Z,X>
public <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list, JoinType jt)
join
in interface From<Z,X>
public <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map)
join
in interface From<Z,X>
public <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map, JoinType jt)
join
in interface From<Z,X>
public <X,Y> Join<X,Y> join(String attributeName)
join
in interface From<Z,X>
public <X,Y> Join<X,Y> join(String attributeName, JoinType jt)
join
in interface From<Z,X>
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>
public <X,Y> SetJoin<X,Y> joinSet(String attributeName)
joinSet
in interface From<Z,X>
public <X,Y> SetJoin<X,Y> joinSet(String attributeName, JoinType jt)
joinSet
in interface From<Z,X>
public <X,Y> ListJoin<X,Y> joinList(String attributeName)
joinList
in interface From<Z,X>
public <X,Y> ListJoin<X,Y> joinList(String attributeName, JoinType jt)
joinList
in interface From<Z,X>
public <X,K,V> MapJoin<X,K,V> joinMap(String attributeName)
joinMap
in interface From<Z,X>
public <X,K,V> MapJoin<X,K,V> joinMap(String attributeName, JoinType jt)
joinMap
in interface From<Z,X>
protected boolean canBeFetchSource()
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>
public <X,Y> Fetch<X,Y> fetch(String attributeName, JoinType jt)
fetch
in interface FetchParent<Z,X>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |