org.hibernate.ejb.criteria.path
Class AbstractJoinImpl<Z,X>

java.lang.Object
  extended by org.hibernate.ejb.criteria.AbstractNode
      extended by org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
          extended by org.hibernate.ejb.criteria.expression.SelectionImpl<T>
              extended by org.hibernate.ejb.criteria.expression.ExpressionImpl<X>
                  extended by org.hibernate.ejb.criteria.path.AbstractPathImpl<X>
                      extended by org.hibernate.ejb.criteria.path.AbstractFromImpl<Z,X>
                          extended by org.hibernate.ejb.criteria.path.AbstractJoinImpl<Z,X>
All Implemented Interfaces:
Serializable, Expression<X>, Fetch<Z,X>, FetchParent<Z,X>, From<Z,X>, Join<Z,X>, Path<X>, Selection<X>, TupleElement<X>, ExpressionImplementor<X>, FromImplementor<Z,X>, JoinImplementor<Z,X>, ParameterContainer, PathImplementor<X>, PathSource<X>, Renderable, SelectionImplementor<X>, TupleElementImplementor<X>
Direct Known Subclasses:
PluralAttributeJoinSupport, SingularAttributeJoin

public abstract class AbstractJoinImpl<Z,X>
extends AbstractFromImpl<Z,X>
implements JoinImplementor<Z,X>, Serializable

TODO : javadoc

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.ejb.criteria.path.AbstractFromImpl
AbstractFromImpl.BasicJoinScope, AbstractFromImpl.CorrelationJoinScope, AbstractFromImpl.JoinScope<X>
 
Nested classes/interfaces inherited from interface org.hibernate.ejb.criteria.ParameterContainer
ParameterContainer.Helper
 
Field Summary
 
Fields inherited from class org.hibernate.ejb.criteria.path.AbstractFromImpl
DEFAULT_JOIN_TYPE
 
Constructor Summary
AbstractJoinImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource<Z> pathSource, Attribute<? super Z,?> joinAttribute, JoinType joinType)
           
AbstractJoinImpl(CriteriaBuilderImpl criteriaBuilder, PathSource<Z> pathSource, Attribute<? super Z,X> joinAttribute, JoinType joinType)
           
 
Method Summary
 JoinImplementor<Z,X> correlateTo(CriteriaSubqueryImpl subquery)
          

Refined return type

 Attribute<? super Z,?> getAttribute()
          Retrieve reference to the attribute this path represents.
 JoinType getJoinType()
          
 From<?,Z> getParent()
          
 String renderTableExpression(CriteriaQueryCompiler.RenderingContext renderingContext)
           
 
Methods inherited from class org.hibernate.ejb.criteria.path.AbstractFromImpl
canBeDereferenced, canBeFetchSource, canBeJoinSource, createCorrelationDelegate, fetch, fetch, fetch, fetch, fetch, fetch, getAlias, getCorrelationParent, getFetches, getJoins, getPathIdentifier, getPathSource, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet, locateAttributeInternal, locateManagedType, prepareAlias, prepareCorrelationDelegate, render, renderProjection
 
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
getCorrelationParent, prepareAlias, prepareCorrelationDelegate
 
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 org.hibernate.ejb.criteria.Renderable
render, renderProjection
 
Methods inherited from interface org.hibernate.ejb.criteria.PathSource
getPathIdentifier
 
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
getAlias, getJavaType
 
Methods inherited from interface javax.persistence.criteria.From
getJoins, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet
 

Constructor Detail

AbstractJoinImpl

public AbstractJoinImpl(CriteriaBuilderImpl criteriaBuilder,
                        PathSource<Z> pathSource,
                        Attribute<? super Z,X> joinAttribute,
                        JoinType joinType)

AbstractJoinImpl

public AbstractJoinImpl(CriteriaBuilderImpl criteriaBuilder,
                        Class<X> javaType,
                        PathSource<Z> pathSource,
                        Attribute<? super Z,?> joinAttribute,
                        JoinType joinType)
Method Detail

getAttribute

public Attribute<? super Z,?> getAttribute()
Retrieve reference to the attribute this path represents.

Specified by:
getAttribute in interface Fetch<Z,X>
Specified by:
getAttribute in interface Join<Z,X>
Specified by:
getAttribute in interface PathImplementor<X>
Overrides:
getAttribute in class AbstractFromImpl<Z,X>
Returns:
The metamodel attribute.

getJoinType

public JoinType getJoinType()

Specified by:
getJoinType in interface Fetch<Z,X>
Specified by:
getJoinType in interface Join<Z,X>

getParent

public From<?,Z> getParent()

Specified by:
getParent in interface Fetch<Z,X>
Specified by:
getParent in interface Join<Z,X>
Overrides:
getParent in class AbstractFromImpl<Z,X>

renderTableExpression

public String renderTableExpression(CriteriaQueryCompiler.RenderingContext renderingContext)
Specified by:
renderTableExpression in interface FromImplementor<Z,X>

correlateTo

public JoinImplementor<Z,X> correlateTo(CriteriaSubqueryImpl subquery)
Description copied from interface: JoinImplementor

Refined return type

Specified by:
correlateTo in interface FromImplementor<Z,X>
Specified by:
correlateTo in interface JoinImplementor<Z,X>
Overrides:
correlateTo in class AbstractFromImpl<Z,X>


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.