|
||||||||||
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 javax.persistence.criteria.JoinType |
DEFAULT_JOIN_TYPE
|
Constructor Summary | |
---|---|
AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder,
Class<X> javaType)
|
|
AbstractFromImpl(CriteriaBuilderImpl criteriaBuilder,
Class<X> javaType,
PathSource pathSource)
|
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 javax.persistence.criteria.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 javax.persistence.metamodel.Attribute<?,?> getAttribute()
getAttribute
in interface PathImplementor<X>
public javax.persistence.criteria.From<?,Z> getParent()
protected javax.persistence.metamodel.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 javax.persistence.metamodel.ManagedType<? super X> locateManagedType()
public boolean isCorrelated()
isCorrelated
in interface javax.persistence.criteria.From<Z,X>
public FromImplementor<Z,X> getCorrelationParent()
getCorrelationParent
in interface javax.persistence.criteria.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<javax.persistence.criteria.Join<X,?>> getJoins()
getJoins
in interface javax.persistence.criteria.From<Z,X>
public <Y> javax.persistence.criteria.Join<X,Y> join(javax.persistence.metamodel.SingularAttribute<? super X,Y> singularAttribute)
join
in interface javax.persistence.criteria.From<Z,X>
public <Y> javax.persistence.criteria.Join<X,Y> join(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute, javax.persistence.criteria.JoinType jt)
join
in interface javax.persistence.criteria.From<Z,X>
public <Y> javax.persistence.criteria.CollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X,Y> collection)
join
in interface javax.persistence.criteria.From<Z,X>
public <Y> javax.persistence.criteria.CollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X,Y> collection, javax.persistence.criteria.JoinType jt)
join
in interface javax.persistence.criteria.From<Z,X>
public <Y> javax.persistence.criteria.SetJoin<X,Y> join(javax.persistence.metamodel.SetAttribute<? super X,Y> set)
join
in interface javax.persistence.criteria.From<Z,X>
public <Y> javax.persistence.criteria.SetJoin<X,Y> join(javax.persistence.metamodel.SetAttribute<? super X,Y> set, javax.persistence.criteria.JoinType jt)
join
in interface javax.persistence.criteria.From<Z,X>
public <Y> javax.persistence.criteria.ListJoin<X,Y> join(javax.persistence.metamodel.ListAttribute<? super X,Y> list)
join
in interface javax.persistence.criteria.From<Z,X>
public <Y> javax.persistence.criteria.ListJoin<X,Y> join(javax.persistence.metamodel.ListAttribute<? super X,Y> list, javax.persistence.criteria.JoinType jt)
join
in interface javax.persistence.criteria.From<Z,X>
public <K,V> javax.persistence.criteria.MapJoin<X,K,V> join(javax.persistence.metamodel.MapAttribute<? super X,K,V> map)
join
in interface javax.persistence.criteria.From<Z,X>
public <K,V> javax.persistence.criteria.MapJoin<X,K,V> join(javax.persistence.metamodel.MapAttribute<? super X,K,V> map, javax.persistence.criteria.JoinType jt)
join
in interface javax.persistence.criteria.From<Z,X>
public <X,Y> javax.persistence.criteria.Join<X,Y> join(String attributeName)
join
in interface javax.persistence.criteria.From<Z,X>
public <X,Y> javax.persistence.criteria.Join<X,Y> join(String attributeName, javax.persistence.criteria.JoinType jt)
join
in interface javax.persistence.criteria.From<Z,X>
public <X,Y> javax.persistence.criteria.CollectionJoin<X,Y> joinCollection(String attributeName)
joinCollection
in interface javax.persistence.criteria.From<Z,X>
public <X,Y> javax.persistence.criteria.CollectionJoin<X,Y> joinCollection(String attributeName, javax.persistence.criteria.JoinType jt)
joinCollection
in interface javax.persistence.criteria.From<Z,X>
public <X,Y> javax.persistence.criteria.SetJoin<X,Y> joinSet(String attributeName)
joinSet
in interface javax.persistence.criteria.From<Z,X>
public <X,Y> javax.persistence.criteria.SetJoin<X,Y> joinSet(String attributeName, javax.persistence.criteria.JoinType jt)
joinSet
in interface javax.persistence.criteria.From<Z,X>
public <X,Y> javax.persistence.criteria.ListJoin<X,Y> joinList(String attributeName)
joinList
in interface javax.persistence.criteria.From<Z,X>
public <X,Y> javax.persistence.criteria.ListJoin<X,Y> joinList(String attributeName, javax.persistence.criteria.JoinType jt)
joinList
in interface javax.persistence.criteria.From<Z,X>
public <X,K,V> javax.persistence.criteria.MapJoin<X,K,V> joinMap(String attributeName)
joinMap
in interface javax.persistence.criteria.From<Z,X>
public <X,K,V> javax.persistence.criteria.MapJoin<X,K,V> joinMap(String attributeName, javax.persistence.criteria.JoinType jt)
joinMap
in interface javax.persistence.criteria.From<Z,X>
protected boolean canBeFetchSource()
public Set<javax.persistence.criteria.Fetch<X,?>> getFetches()
getFetches
in interface javax.persistence.criteria.FetchParent<Z,X>
public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> singularAttribute)
fetch
in interface javax.persistence.criteria.FetchParent<Z,X>
public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute, javax.persistence.criteria.JoinType jt)
fetch
in interface javax.persistence.criteria.FetchParent<Z,X>
public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> pluralAttribute)
fetch
in interface javax.persistence.criteria.FetchParent<Z,X>
public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> pluralAttribute, javax.persistence.criteria.JoinType jt)
fetch
in interface javax.persistence.criteria.FetchParent<Z,X>
public <X,Y> javax.persistence.criteria.Fetch<X,Y> fetch(String attributeName)
fetch
in interface javax.persistence.criteria.FetchParent<Z,X>
public <X,Y> javax.persistence.criteria.Fetch<X,Y> fetch(String attributeName, javax.persistence.criteria.JoinType jt)
fetch
in interface javax.persistence.criteria.FetchParent<Z,X>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |