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

public Class MethodNode

extends AbstractSelectExpression
implements SelectExpression, FunctionNode
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.ast.tree.FunctionNode, org.hibernate.hql.ast.tree.SelectExpression
Known Direct Subclasses
org.hibernate.hql.ast.tree.CollectionFunction
Imports
java.util.Arrays, org.hibernate.dialect.function.SQLFunction, org.hibernate.hql.CollectionProperties, org.hibernate.hql.antlr.SqlTokenTypes, org.hibernate.hql.ast.TypeDiscriminatorMetadata, org.hibernate.hql.ast.util.ASTUtil, .ColumnHelper, org.hibernate.persister.collection.CollectionPropertyNames, .QueryableCollection, org.hibernate.type.Type, antlr.SemanticException, antlr.collections.AST, org.slf4j.Logger, .LoggerFactory

Represents a method call.
Author
josh

Field Summary

Modifier and TypeField and Description
private FromElement
fromElement

Deprecated as a consequence of FromElement being deprecated.
private SQLFunction
private boolean
private static final Logger
private String
private String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
dialectFunction(AST exprList)

public String
public Type
public FromElement
getFromElement()

Overrides org.hibernate.hql.ast.tree.AbstractSelectExpression.getFromElement.

Implements org.hibernate.hql.ast.tree.SelectExpression.getFromElement.

Deprecated as a consequence of FromElement being deprecated.
Returns the FROM element that this expression refers to.
private String
public SQLFunction
private void
handleElements(FromReferenceNode collectionNode, String propertyName)

public void
initializeMethodNode(AST name, boolean inSelect)

public boolean
public boolean
private void
protected void
public void
resolve(boolean inSelect)

public void
public void
setScalarColumnText(int
The index of the select expression in the projection list.
i
)

Implements org.hibernate.hql.ast.tree.SelectExpression.setScalarColumnText.

Appends AST nodes that represent the columns after the current AST node.
private void
Inherited from org.hibernate.hql.ast.tree.AbstractSelectExpression:
getAliasgetScalarColumnIndexisConstructorisReturnableEntitysetAliassetScalarColumn

Field Detail

fromElementback to summary
private FromElement fromElement

Deprecated

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

functionback to summary
private SQLFunction function
inSelectback to summary
private boolean inSelect
logback to summary
private static final Logger log
methodNameback to summary
private String methodName
selectColumnsback to summary
private String[] selectColumns

Constructor Detail

MethodNodeback to summary
public MethodNode()

Method Detail

collectionPropertyback to summary
private void collectionProperty(AST path, AST name) throws SemanticException
dialectFunctionback to summary
private void dialectFunction(AST exprList)
getDisplayTextback to summary
public String getDisplayText()
getFirstArgumentTypeback to summary
public Type getFirstArgumentType()

Implements org.hibernate.hql.ast.tree.FunctionNode.getFirstArgumentType.

getFromElementback to summary
public FromElement getFromElement()

Overrides org.hibernate.hql.ast.tree.AbstractSelectExpression.getFromElement.

Implements org.hibernate.hql.ast.tree.SelectExpression.getFromElement.

Doc from org.hibernate.hql.ast.tree.SelectExpression.getFromElement.

Deprecated

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

Returns the FROM element that this expression refers to.

Returns:FromElement

The FROM element.

getMethodNameback to summary
private String getMethodName()
getSQLFunctionback to summary
public SQLFunction getSQLFunction()

Implements org.hibernate.hql.ast.tree.FunctionNode.getSQLFunction.

handleElementsback to summary
private void handleElements(FromReferenceNode collectionNode, String propertyName)
initializeMethodNodeback to summary
public void initializeMethodNode(AST name, boolean inSelect)
isCollectionPropertyMethodback to summary
public boolean isCollectionPropertyMethod()
isScalarback to summary
public boolean isScalar() throws SemanticException

Overrides org.hibernate.hql.ast.tree.AbstractSelectExpression.isScalar.

Implements org.hibernate.hql.ast.tree.SelectExpression.isScalar.

prepareAnyImplicitJoinsback to summary
private void prepareAnyImplicitJoins(DotNode dotNode) throws SemanticException
prepareSelectColumnsback to summary
protected void prepareSelectColumns(String[] columns)
resolveback to summary
public void resolve(boolean inSelect) throws SemanticException
resolveCollectionPropertyback to summary
public void resolveCollectionProperty(AST expr) throws SemanticException
setScalarColumnTextback to summary
public void setScalarColumnText(int i) throws SemanticException

Implements org.hibernate.hql.ast.tree.SelectExpression.setScalarColumnText.

Doc from org.hibernate.hql.ast.tree.SelectExpression.setScalarColumnText.

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

Parameters
i:int

The index of the select expression in the projection list.

typeDiscriminatorback to summary
private void typeDiscriminator(AST path) throws SemanticException