public class

DotNode

extends FromReferenceNode
implements DisplayableNode SelectExpression
java.lang.Object
   ↳ antlr.CommonAST
     ↳ org.hibernate.hql.ast.tree.Node
       ↳ org.hibernate.hql.ast.tree.SqlNode
         ↳ org.hibernate.hql.ast.tree.HqlSqlWalkerNode
           ↳ org.hibernate.hql.ast.tree.AbstractSelectExpression
             ↳ org.hibernate.hql.ast.tree.FromReferenceNode
               ↳ org.hibernate.hql.ast.tree.DotNode

Class Overview

Represents a reference to a property or alias expression. This should duplicate the relevant behaviors in PathExpressionParser.

Summary

Nested Classes
interface DotNode.IllegalCollectionDereferenceExceptionBuilder  
[Expand]
Inherited Constants
From class org.hibernate.hql.ast.tree.FromReferenceNode
Fields
public static final DotNode.IllegalCollectionDereferenceExceptionBuilder DEF_ILLEGAL_COLL_DEREF_EXCP_BUILDER
public static DotNode.IllegalCollectionDereferenceExceptionBuilder ILLEGAL_COLL_DEREF_EXCP_BUILDER
public static boolean REGRESSION_STYLE_JOIN_SUPPRESSION
public static boolean useThetaStyleImplicitJoins
Public Constructors
DotNode()
Public Methods
Type getDataType()
String getDisplayText()
Returns additional display text for the AST node.
FromElement getImpliedJoin()
Sub-classes can override this method if they produce implied joins (e.g.
FromReferenceNode getLhs()
String getPath()
Returns the full path of the node.
String getPropertyPath()
void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, AST parent)
void resolveFirstChild()
Resolves the left hand side of the DOT.
void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin)
Does the work of resolving inside of the scope of a function call
void resolveIndex(AST parent)
void resolveSelectExpression()
Special method to resolve expressions in the SELECT list.
void setFetch(boolean fetch)
void setJoinType(int joinType)
Sets the join type for this '.' node structure.
void setPropertyPath(String propertyPath)
void setResolvedConstant(String text)
void setScalarColumnText(int i)
Appends AST nodes that represent the columns after the current AST node.
[Expand]
Inherited Methods
From class org.hibernate.hql.ast.tree.FromReferenceNode
From class org.hibernate.hql.ast.tree.AbstractSelectExpression
From class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
From class org.hibernate.hql.ast.tree.SqlNode
From class org.hibernate.hql.ast.tree.Node
From class java.lang.Object
From interface org.hibernate.hql.ast.tree.DisplayableNode
From interface org.hibernate.hql.ast.tree.InitializeableNode
From interface org.hibernate.hql.ast.tree.PathNode
From interface org.hibernate.hql.ast.tree.ResolvableNode
From interface org.hibernate.hql.ast.tree.SelectExpression

Fields

public static final DotNode.IllegalCollectionDereferenceExceptionBuilder DEF_ILLEGAL_COLL_DEREF_EXCP_BUILDER

public static DotNode.IllegalCollectionDereferenceExceptionBuilder ILLEGAL_COLL_DEREF_EXCP_BUILDER

public static boolean REGRESSION_STYLE_JOIN_SUPPRESSION

public static boolean useThetaStyleImplicitJoins

Public Constructors

public DotNode ()

Public Methods

public Type getDataType ()

public String getDisplayText ()

Returns additional display text for the AST node.

Returns
  • String - The additional display text.

public FromElement getImpliedJoin ()

Sub-classes can override this method if they produce implied joins (e.g. DotNode).

Returns
  • an implied join created by this from reference.

public FromReferenceNode getLhs ()

public String getPath ()

Returns the full path of the node.

Returns
  • the full path of the node.

public String getPropertyPath ()

public void resolve (boolean generateJoin, boolean implicitJoin, String classAlias, AST parent)

Throws
SemanticException

public void resolveFirstChild ()

Resolves the left hand side of the DOT.

Throws
SemanticException

public void resolveInFunctionCall (boolean generateJoin, boolean implicitJoin)

Does the work of resolving inside of the scope of a function call

Throws
SemanticException

public void resolveIndex (AST parent)

Throws
SemanticException

public void resolveSelectExpression ()

Special method to resolve expressions in the SELECT list.

Throws
if this cannot be resolved.
SemanticException

public void setFetch (boolean fetch)

public void setJoinType (int joinType)

Sets the join type for this '.' node structure.

Parameters
joinType The type of join to use.
See Also

public void setPropertyPath (String propertyPath)

public void setResolvedConstant (String text)

public void setScalarColumnText (int i)

Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')

Parameters
i The index of the select expression in the projection list.
Throws
SemanticException