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

public abstract Class AbstractSelectExpression

extends HqlSqlWalkerNode
implements SelectExpression
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.ast.tree.SelectExpression
Known Direct Subclasses
org.hibernate.hql.ast.tree.AggregateNode, org.hibernate.hql.ast.tree.BinaryArithmeticOperatorNode, org.hibernate.hql.ast.tree.Case2Node, org.hibernate.hql.ast.tree.CaseNode, org.hibernate.hql.ast.tree.LiteralNode, org.hibernate.hql.ast.tree.MethodNode, org.hibernate.hql.ast.tree.UnaryArithmeticNode, org.hibernate.hql.ast.tree.CountNode, org.hibernate.hql.ast.tree.FromReferenceNode
Imports
org.hibernate.type.Type, antlr.SemanticException

Partial implementation of SelectExpression for all the nodes that aren't constructors.
Author
Joshua Davis

Field Summary

Modifier and TypeField and Description
private String
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final String
public FromElement
getFromElement()

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

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

Implements org.hibernate.hql.ast.tree.SelectExpression.getScalarColumnIndex.

Gets index of the select expression in the projection list.
public boolean
isConstructor()

Implements org.hibernate.hql.ast.tree.SelectExpression.isConstructor.

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

Implements org.hibernate.hql.ast.tree.SelectExpression.isReturnableEntity.

Returns true if this select expression represents an entity that can be returned.
public boolean
public final void
public void
setScalarColumn(int
The index of the select expression in the projection list.
i
)

Implements org.hibernate.hql.ast.tree.SelectExpression.setScalarColumn.

Sets the index and text for select expression in the projection list.
Inherited from org.hibernate.hql.ast.tree.HqlSqlWalkerNode:
getAliasGeneratorgetASTFactorygetSessionFactoryHelpergetWalkerinitialize

Field Detail

aliasback to summary
private String alias
scalarColumnIndexback to summary
private int scalarColumnIndex

Constructor Detail

AbstractSelectExpressionback to summary
public AbstractSelectExpression()

Method Detail

getAliasback to summary
public final String getAlias()

Implements org.hibernate.hql.ast.tree.SelectExpression.getAlias.

getFromElementback to summary
public FromElement getFromElement()

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

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

getScalarColumnIndexback to summary
public int getScalarColumnIndex()

Implements org.hibernate.hql.ast.tree.SelectExpression.getScalarColumnIndex.

Doc from org.hibernate.hql.ast.tree.SelectExpression.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()

Implements org.hibernate.hql.ast.tree.SelectExpression.isConstructor.

Doc from org.hibernate.hql.ast.tree.SelectExpression.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).

isReturnableEntityback to summary
public boolean isReturnableEntity() throws SemanticException

Implements org.hibernate.hql.ast.tree.SelectExpression.isReturnableEntity.

Doc from org.hibernate.hql.ast.tree.SelectExpression.isReturnableEntity.

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.

isScalarback to summary
public boolean isScalar() throws SemanticException

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

setAliasback to summary
public final void setAlias(String alias)

Implements org.hibernate.hql.ast.tree.SelectExpression.setAlias.

setScalarColumnback to summary
public void setScalarColumn(int i) throws SemanticException

Implements org.hibernate.hql.ast.tree.SelectExpression.setScalarColumn.

Doc from org.hibernate.hql.ast.tree.SelectExpression.setScalarColumn.

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.