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

public Class MethodNode

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

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.internal.ast.tree.AbstractSelectExpression.getFromElement.

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

Deprecated as a consequence of FromElement being deprecated.
Returns the FROM element that this expression refers to.
public SQLFunction
public void
initializeMethodNode(AST name, boolean inSelect)

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

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

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

Appends AST nodes that represent the columns after the current AST node.
private void
Inherited from org.hibernate.hql.internal.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.internal.ast.tree.FunctionNode.getFirstArgumentType.

Annotations
@Override
getFromElementback to summary
public FromElement getFromElement()

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

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

Doc from org.hibernate.hql.internal.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.

Annotations
@Override
getSQLFunctionback to summary
public SQLFunction getSQLFunction()

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

Annotations
@Override
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.internal.ast.tree.AbstractSelectExpression.isScalar.

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

Annotations
@Override
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
protected void resolveCollectionProperty(AST expr) throws SemanticException
setScalarColumnTextback to summary
public void setScalarColumnText(int i) throws SemanticException

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

Doc from org.hibernate.hql.internal.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.

Annotations
@Override
Exceptions
SemanticException:
if a semantic error occurs
typeDiscriminatorback to summary
private void typeDiscriminator(AST path) throws SemanticException