站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

SelectExpression (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.hql.ast.tree
Interface SelectExpression

All Known Implementing Classes:
AbstractSelectExpression, AggregateNode, Case2Node, CaseNode, ConstructorNode, CountNode, DotNode, IdentNode, MethodNode, QueryNode, SelectExpressionImpl

public interface SelectExpression

Represents an element of a projection list, i.e. a select expression.

Author:
josh Sep 21, 2004 9:00:13 PM

Method Summary
 String getAlias()
           
 Type getDataType()
          Returns the data type of the select expression.
 FromElement getFromElement()
          Returns the FROM element that this expression refers to.
 boolean isConstructor()
          Returns true if the element is a constructor (e.g.
 boolean isReturnableEntity()
          Returns true if this select expression represents an entity that can be returned.
 boolean isScalar()
           
 void setAlias(String alias)
           
 void setScalarColumnText(int i)
          Appends AST nodes that represent the columns after the current AST node.
 void setText(String text)
          Sets the text of the node.
 

Method Detail

getDataType

public Type getDataType()
Returns the data type of the select expression.

Returns:
The data type of the select expression.

setScalarColumnText

public void setScalarColumnText(int i)
                         throws antlr.SemanticException
Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')

Parameters:
i - The index of the select expression in the projection list.
Throws:
antlr.SemanticException

getFromElement

public FromElement getFromElement()
Returns the FROM element that this expression refers to.

Returns:
The FROM element.

isConstructor

public boolean isConstructor()
Returns true if the element is a constructor (e.g. new Foo).

Returns:
true if the element is a constructor (e.g. new Foo).

isReturnableEntity

public boolean isReturnableEntity()
                           throws antlr.SemanticException
Returns true if this select expression represents an entity that can be returned.

Returns:
true if this select expression represents an entity that can be returned.
Throws:
antlr.SemanticException

setText

public void setText(String text)
Sets the text of the node.

Parameters:
text - the new node text.

isScalar

public boolean isScalar()
                 throws antlr.SemanticException
Throws:
antlr.SemanticException

setAlias

public void setAlias(String alias)

getAlias

public String getAlias()