org.hibernate.hql.ast.tree
Interface SelectExpression
- AbstractSelectExpression, AggregateNode, BinaryArithmeticOperatorNode, BooleanLiteralNode, Case2Node, CaseNode, CollectionFunction, ConstructorNode, CountNode, DotNode, FromReferenceNode, IdentNode, IndexNode, LiteralNode, MethodNode, QueryNode, SelectExpressionImpl, UnaryArithmeticNode
public interface SelectExpression
Represents an element of a projection list, i.e. a select expression.
getAlias
public String getAlias()
getDataType
public Type getDataType()
Returns the data type of the select expression.
- The data type of the select expression.
getFromElement
public FromElement getFromElement()
Returns the FROM element that this expression refers to.
isConstructor
public boolean isConstructor()
Returns true if the element is a constructor (e.g. new Foo).
- true if the element is a constructor (e.g. new Foo).
isReturnableEntity
public boolean isReturnableEntity()
throws SemanticException
Returns true if this select expression represents an entity that can be returned.
- true if this select expression represents an entity that can be returned.
isScalar
public boolean isScalar()
throws SemanticException
setAlias
public void setAlias(String alias)
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_')
i
- The index of the select expression in the projection list.
setText
public void setText(String text)
Sets the text of the node.
text
- the new node text.