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

public Interface SelectExpression

Known Direct Subinterfaces
org.hibernate.hql.internal.ast.tree.AggregatedSelectExpression
Known Direct Implementers
org.hibernate.hql.internal.ast.tree.SelectExpressionImpl, org.hibernate.hql.internal.ast.tree.SimpleCaseNode, org.hibernate.hql.internal.ast.tree.AbstractSelectExpression, org.hibernate.hql.internal.ast.tree.AggregateNode, org.hibernate.hql.internal.ast.tree.CollectionSizeNode, org.hibernate.hql.internal.ast.tree.CountNode, org.hibernate.hql.internal.ast.tree.DotNode, org.hibernate.hql.internal.ast.tree.IdentNode, org.hibernate.hql.internal.ast.tree.QueryNode, org.hibernate.hql.internal.ast.tree.SearchedCaseNode
Imports
org.hibernate.type.Type, antlr.SemanticException

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

Method Summary

Modifier and TypeMethod and Description
public String
public Type

Returns:

The data type of the select expression.
getDataType
()

Returns the data type of the select expression.

public FromElement

Returns:

The FROM element.
getFromElement
()

Deprecated as a consequence of FromElement being deprecated.
Returns the FROM element that this expression refers to.
public int

Returns:

The index of the select expression in the projection list.
getScalarColumnIndex
()

Gets index of the select expression in the projection list.

public boolean

Returns:

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

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

public boolean

Returns:

true if this select expression represents an entity that can be returned.
isReturnableEntity
()

Returns true if this select expression represents an entity that can be returned.

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

Sets the index and text for select expression in the projection list.

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

Appends AST nodes that represent the columns after the current AST node.

public void
setText(String
the new node text.
text
)

Sets the text of the node.

Method Detail

getAliasback to summary
public String getAlias()
getDataTypeback to summary
public Type getDataType()

Returns the data type of the select expression.

Returns:Type

The data type of the select expression.

getFromElementback to summary
public FromElement 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.

getScalarColumnIndexback to summary
public int getScalarColumnIndex()

Gets index of the select expression in the projection list.

Returns:int

The index of the select expression in the projection list.

isConstructorback to summary
public boolean isConstructor()

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

Returns:boolean

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

Annotations
@SuppressWarnings:UnusedDeclaration
isReturnableEntityback to summary
public boolean isReturnableEntity() throws SemanticException

Returns true if this select expression represents an entity that can be returned.

Returns:boolean

true if this select expression represents an entity that can be returned.

Exceptions
SemanticException:
if a semantic error occurs
isScalarback to summary
public boolean isScalar() throws SemanticException
setAliasback to summary
public void setAlias(String alias)
setScalarColumnback to summary
public void setScalarColumn(int i) throws SemanticException

Sets the index and text for select expression in the projection list.

Parameters
i:int

The index of the select expression in the projection list.

Exceptions
SemanticException:
if a semantic error occurs
setScalarColumnTextback to summary
public void setScalarColumnText(int i) throws SemanticException

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.

Exceptions
SemanticException:
if a semantic error occurs
setTextback to summary
public void setText(String text)

Sets the text of the node.

Parameters
text:String

the new node text.