org.hibernate.hql.ast
Class SelectClause

java.lang.Object
  extended byantlr.BaseAST
      extended byantlr.CommonAST
          extended byorg.hibernate.hql.ast.SqlNode
              extended byorg.hibernate.hql.ast.HqlSqlWalkerNode
                  extended byorg.hibernate.hql.ast.SelectExpressionList
                      extended byorg.hibernate.hql.ast.SelectClause
All Implemented Interfaces:
antlr.collections.AST, org.hibernate.hql.ast.InitializeableNode, Serializable

public class SelectClause
extends org.hibernate.hql.ast.SelectExpressionList

Represents the list of expressions in a SELECT clause.

Author:
josh Sep 21, 2004 7:53:55 AM
See Also:
Serialized Form

Field Summary
static boolean VERSION2_SQL
           
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
SelectClause()
           
 
Method Summary
 org.hibernate.hql.ast.AliasGenerator getAliasGenerator()
           
 antlr.ASTFactory getASTFactory()
           
 List getCollectionFromElements()
           
 String[][] getColumnNames()
          The column alias names being used in the generated SQL.
 Constructor getConstructor()
          The constructor to use for dynamic instantiation queries.
 Type getDataType()
           
protected  antlr.collections.AST getFirstSelectExpression()
          Returns the first select expression node that should be considered when building the array of select expressions.
 List getFromElementsForLoad()
          FromElements which need to be accounted for in the load phase (either for return or for fetch).
 String[] getQueryReturnAliases()
          The HQL aliases, or generated aliases
 Type[] getQueryReturnTypes()
          The types actually being returned from this query at the "object level".
 org.hibernate.hql.ast.SessionFactoryHelper getSessionFactoryHelper()
           
 HqlSqlWalker getWalker()
           
 void initialize(Object param)
          Initializes the node with the parameter.
 boolean isList()
           
 boolean isMap()
           
 boolean isScalarSelect()
          Does this SelectClause represent a scalar query
 void setText(String s)
           
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, initialize, initialize, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION2_SQL

public static boolean VERSION2_SQL
Constructor Detail

SelectClause

public SelectClause()
Method Detail

isScalarSelect

public boolean isScalarSelect()
Does this SelectClause represent a scalar query

Returns:
True if this is a scalara select clause; false otherwise.

getFromElementsForLoad

public List getFromElementsForLoad()
FromElements which need to be accounted for in the load phase (either for return or for fetch).

Returns:
List of appropriate FromElements.

getQueryReturnTypes

public Type[] getQueryReturnTypes()
The types actually being returned from this query at the "object level".

Returns:
The query return types.

getQueryReturnAliases

public String[] getQueryReturnAliases()
The HQL aliases, or generated aliases


getColumnNames

public String[][] getColumnNames()
The column alias names being used in the generated SQL.

Returns:
The SQL column aliases.

getConstructor

public Constructor getConstructor()
The constructor to use for dynamic instantiation queries.

Returns:
The appropriate Constructor reference, or null if not a dynamic instantiation query.

isMap

public boolean isMap()

isList

public boolean isList()

getFirstSelectExpression

protected antlr.collections.AST getFirstSelectExpression()
Description copied from class: org.hibernate.hql.ast.SelectExpressionList
Returns the first select expression node that should be considered when building the array of select expressions.

Returns:
the first select expression node that should be considered when building the array of select expressions

getCollectionFromElements

public List getCollectionFromElements()

initialize

public void initialize(Object param)
Description copied from interface: org.hibernate.hql.ast.InitializeableNode
Initializes the node with the parameter.

Specified by:
initialize in interface org.hibernate.hql.ast.InitializeableNode
Parameters:
param - the initialization parameter.

getWalker

public HqlSqlWalker getWalker()

getSessionFactoryHelper

public org.hibernate.hql.ast.SessionFactoryHelper getSessionFactoryHelper()

getASTFactory

public antlr.ASTFactory getASTFactory()

getAliasGenerator

public org.hibernate.hql.ast.AliasGenerator getAliasGenerator()

setText

public void setText(String s)

getDataType

public Type getDataType()