public abstract class

AbstractSelectExpression

extends HqlSqlWalkerNode
implements SelectExpression
java.lang.Object
   ↳ antlr.CommonAST
     ↳ org.hibernate.hql.ast.tree.Node
       ↳ org.hibernate.hql.ast.tree.SqlNode
         ↳ org.hibernate.hql.ast.tree.HqlSqlWalkerNode
           ↳ org.hibernate.hql.ast.tree.AbstractSelectExpression
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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

Summary

Public Constructors
AbstractSelectExpression()
Public Methods
final String getAlias()
FromElement getFromElement()
Returns the FROM element that this expression refers to.
int getScalarColumnIndex()
Gets index of the select expression in the projection list.
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()
final void setAlias(String alias)
void setScalarColumn(int i)
Sets the index and text for select expression in the projection list.
[Expand]
Inherited Methods
From class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
From class org.hibernate.hql.ast.tree.SqlNode
From class org.hibernate.hql.ast.tree.Node
From class java.lang.Object
From interface org.hibernate.hql.ast.tree.InitializeableNode
From interface org.hibernate.hql.ast.tree.SelectExpression

Public Constructors

public AbstractSelectExpression ()

Public Methods

public final String getAlias ()

public FromElement getFromElement ()

Returns the FROM element that this expression refers to.

Returns
  • The FROM element.

public int getScalarColumnIndex ()

Gets index of the select expression in the projection list.

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).

public boolean isReturnableEntity ()

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
SemanticException

public boolean isScalar ()

Throws
SemanticException

public final void setAlias (String alias)

public void setScalarColumn (int i)

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

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