org.hibernate.hql.ast.tree

Class MethodNode

Implemented Interfaces:
InitializeableNode, SelectExpression
Known Direct Subclasses:
CollectionFunction

public class MethodNode
extends AbstractSelectExpression
implements SelectExpression

Represents a method call.
Author:
josh

Method Summary

String
getDisplayText()
FromElement
getFromElement()
Returns the FROM element that this expression refers to.
SQLFunction
getSQLFunction()
void
initializeMethodNode(AST name, boolean inSelect)
boolean
isCollectionPropertyMethod()
boolean
isScalar()
protected void
prepareSelectColumns(String[] columns)
void
resolve(boolean inSelect)
void
resolveCollectionProperty(AST expr)
void
setScalarColumnText(int i)
Appends AST nodes that represent the columns after the current AST node.

Methods inherited from class org.hibernate.hql.ast.tree.AbstractSelectExpression

getAlias, getFromElement, isConstructor, isReturnableEntity, isScalar, setAlias

Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode

getASTFactory, getAliasGenerator, getSessionFactoryHelper, getWalker, initialize

Methods inherited from class org.hibernate.hql.ast.tree.SqlNode

getDataType, getOriginalText, setDataType, setText

Methods inherited from class org.hibernate.hql.ast.tree.Node

getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize

Method Details

getDisplayText

public String getDisplayText()

getFromElement

public FromElement getFromElement()
Returns the FROM element that this expression refers to.
Specified by:
getFromElement in interface SelectExpression
Overrides:
getFromElement in interface AbstractSelectExpression
Returns:
The FROM element.

getSQLFunction

public SQLFunction getSQLFunction()

initializeMethodNode

public void initializeMethodNode(AST name,
                                 boolean inSelect)

isCollectionPropertyMethod

public boolean isCollectionPropertyMethod()

isScalar

public boolean isScalar()
            throws SemanticException
Specified by:
isScalar in interface SelectExpression
Overrides:
isScalar in interface AbstractSelectExpression

prepareSelectColumns

protected void prepareSelectColumns(String[] columns)

resolve

public void resolve(boolean inSelect)
            throws SemanticException

resolveCollectionProperty

public void resolveCollectionProperty(AST expr)
            throws SemanticException

setScalarColumnText

public void setScalarColumnText(int i)
            throws SemanticException
Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')
Specified by:
setScalarColumnText in interface SelectExpression
Parameters:
i - The index of the select expression in the projection list.