Top Description Fields Constructors Methods
org.hibernate.hql.ast.util

public Class JoinProcessor

extends Object
implements SqlTokenTypes
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.antlr.SqlTokenTypes
Imports
java.util.ArrayList, .Iterator, .ListIterator, .List, .Map, .StringTokenizer, .Collection, org.hibernate.AssertionFailure, org.hibernate.dialect.Dialect, org.hibernate.impl.FilterImpl, org.hibernate.type.Type, org.hibernate.param.DynamicFilterParameterSpecification, .CollectionFilterKeyParameterSpecification, org.hibernate.engine.JoinSequence, .SessionFactoryImplementor, .LoadQueryInfluencers, org.hibernate.hql.antlr.SqlTokenTypes, org.hibernate.hql.ast.HqlSqlWalker, org.hibernate.hql.ast.tree.FromClause, .FromElement, .QueryNode, .DotNode, .ParameterContainer, org.hibernate.hql.classic.ParserHelper, org.hibernate.sql.JoinFragment, org.hibernate.util.StringHelper, .ArrayHelper, org.slf4j.Logger, .LoggerFactory

Performs the post-processing of the join information gathered during semantic analysis. The join generating classes are complex, this encapsulates some of the JoinSequence-related code.
Author
Joshua Davis

Field Summary

Modifier and TypeField and Description
private static final Logger
private final SyntheticAndFactory
private final HqlSqlWalker

Constructor Summary

AccessConstructor and Description
public
JoinProcessor(HqlSqlWalker
The walker to which we are bound, giving us access to needed resources.
walker
)

Constructs a new JoinProcessor.

Method Summary

Modifier and TypeMethod and Description
private void
addJoinNodes(QueryNode query, JoinSequence join, FromElement fromElement)

Deprecated as a consequence of FromElement being deprecated.
private static boolean
private static boolean
public static void
processDynamicFilterParameters(final String sqlFragment, final ParameterContainer container, final HqlSqlWalker walker)

Deprecated as a consequence of ParameterContainer being deprecated.
private String
public void
public static int

Returns:

a JoinFragment.XXX join type.
toHibernateJoinType
(int
The AST join type (from HqlSqlTokenTypes or SqlTokenTypes)
astJoinType
)

Translates an AST join type (i.e., the token type) into a JoinFragment.XXX join type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log
syntheticAndFactoryback to summary
private final SyntheticAndFactory syntheticAndFactory
walkerback to summary
private final HqlSqlWalker walker

Constructor Detail

JoinProcessorback to summary
public JoinProcessor(HqlSqlWalker walker)

Constructs a new JoinProcessor.

Parameters
walker:HqlSqlWalker

The walker to which we are bound, giving us access to needed resources.

Method Detail

addJoinNodesback to summary
private void addJoinNodes(QueryNode query, JoinSequence join, FromElement fromElement)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

hasCollectionFilterParamback to summary
private static boolean hasCollectionFilterParam(String sqlFragment)
hasDynamicFilterParamback to summary
private static boolean hasDynamicFilterParam(String sqlFragment)
processDynamicFilterParametersback to summary
public static void processDynamicFilterParameters(final String sqlFragment, final ParameterContainer container, final HqlSqlWalker walker)

Deprecated

as a consequence of ParameterContainer being deprecated. See corresponding docs for further information.

processFromFragmentback to summary
private String processFromFragment(String frag, JoinSequence join)
processJoinsback to summary
public void processJoins(QueryNode query)
toHibernateJoinTypeback to summary
public static int toHibernateJoinType(int astJoinType)

Translates an AST join type (i.e., the token type) into a JoinFragment.XXX join type.

Parameters
astJoinType:int

The AST join type (from HqlSqlTokenTypes or SqlTokenTypes)

Returns:int

a JoinFragment.XXX join type.

See Also
JoinFragment, SqlTokenTypes