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, javax.persistence.criteria.Expression<X>, javax.persistence.criteria.Fetch<Z,X>, javax.persistence.criteria.FetchParent<Z,X>, javax.persistence.criteria.From<Z,X>, javax.persistence.criteria.Join<Z,X>, javax.persistence.criteria.Path<X>, javax.persistence.criteria.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

Author:
Steve Ebersole
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, javax.persistence.metamodel.Attribute<? super Z,?> joinAttribute, javax.persistence.criteria.JoinType joinType)
           
AbstractJoinImpl(CriteriaBuilderImpl criteriaBuilder, PathSource<Z> pathSource, javax.persistence.metamodel.Attribute<? super Z,X> joinAttribute, javax.persistence.criteria.JoinType joinType)
           
 
Method Summary
 JoinImplementor<Z,X> correlateTo(CriteriaSubqueryImpl subquery)
          
 javax.persistence.metamodel.Attribute<? super Z,?> getAttribute()
          Retrieve reference to the attribute this path represents.
 javax.persistence.criteria.JoinType getJoinType()
          
 javax.persistence.criteria.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,
                        javax.persistence.metamodel.Attribute<? super Z,X> joinAttribute,
                        javax.persistence.criteria.JoinType joinType)

AbstractJoinImpl

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

getAttribute

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

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

getJoinType

public javax.persistence.criteria.JoinType getJoinType()

Specified by:
getJoinType in interface javax.persistence.criteria.Fetch<Z,X>
Specified by:
getJoinType in interface javax.persistence.criteria.Join<Z,X>

getParent

public javax.persistence.criteria.From<?,Z> getParent()

Specified by:
getParent in interface javax.persistence.criteria.Fetch<Z,X>
Specified by:
getParent in interface javax.persistence.criteria.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 class: AbstractFromImpl

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-2010 Red Hat, Inc. All Rights Reserved.