org.hibernate.hql.ast.tree
Class ConstructorNode
- InitializeableNode, SelectExpression
public class ConstructorNode
Represents a constructor (new) in a SELECT.
getAliases
public String[] getAliases()
getConstructor
public Constructor getConstructor()
getConstructorArgumentTypeList
public List getConstructorArgumentTypeList()
getFirstSelectExpression
protected AST getFirstSelectExpression()
Returns the first select expression node that should be considered when building the array of select
expressions.
- getFirstSelectExpression in interface SelectExpressionList
- the first select expression node that should be considered when building the array of select
expressions
isConstructor
public boolean isConstructor()
Returns true if the element is a constructor (e.g. new Foo).
- isConstructor in interface SelectExpression
- true if the element is a constructor (e.g. new Foo).
isList
public boolean isList()
isMap
public boolean isMap()
isReturnableEntity
public boolean isReturnableEntity()
throws SemanticException
Returns true if this select expression represents an entity that can be returned.
- isReturnableEntity in interface SelectExpression
- true if this select expression represents an entity that can be returned.
prepare
public void prepare()
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_')
- setScalarColumnText in interface SelectExpression
i
- The index of the select expression in the projection list.