Package org.hibernate.hql.ast.tree
Class AbstractSelectExpression
java.lang.Object
antlr.BaseAST
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
- All Implemented Interfaces:
antlr.collections.AST,Serializable,InitializeableNode,SelectExpression
- Direct Known Subclasses:
AggregateNode,BinaryArithmeticOperatorNode,Case2Node,CaseNode,CountNode,FromReferenceNode,LiteralNode,MethodNode,UnaryArithmeticNode
Partial implementation of SelectExpression for all the nodes that aren't constructors.
- See Also:
-
Field Summary
Fields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetAlias()Returns the FROM element that this expression refers to.intGets index of the select expression in the projection list.booleanReturns true if the element is a constructor (e.g.booleanReturns true if this select expression represents an entity that can be returned.booleanisScalar()final voidvoidsetScalarColumn(int i) Sets the index and text for select expression in the projection list.Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initializeMethods inherited from class org.hibernate.hql.ast.tree.SqlNode
getDataType, getOriginalText, setDataType, setTextMethods inherited from class org.hibernate.hql.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initializeMethods inherited from class antlr.CommonAST
getText, getType, initialize, setTypeMethods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.hql.ast.tree.SelectExpression
getDataType, setScalarColumnText, setText
-
Constructor Details
-
AbstractSelectExpression
public AbstractSelectExpression()
-
-
Method Details
-
setAlias
- Specified by:
setAliasin interfaceSelectExpression
-
getAlias
- Specified by:
getAliasin interfaceSelectExpression
-
isConstructor
public boolean isConstructor()Description copied from interface:SelectExpressionReturns true if the element is a constructor (e.g. new Foo).- Specified by:
isConstructorin interfaceSelectExpression- Returns:
- true if the element is a constructor (e.g. new Foo).
-
isReturnableEntity
Description copied from interface:SelectExpressionReturns true if this select expression represents an entity that can be returned.- Specified by:
isReturnableEntityin interfaceSelectExpression- Returns:
- true if this select expression represents an entity that can be returned.
- Throws:
antlr.SemanticException
-
getFromElement
Description copied from interface:SelectExpressionReturns the FROM element that this expression refers to.- Specified by:
getFromElementin interfaceSelectExpression- Returns:
- The FROM element.
-
isScalar
- Specified by:
isScalarin interfaceSelectExpression- Throws:
antlr.SemanticException
-
setScalarColumn
Description copied from interface:SelectExpressionSets the index and text for select expression in the projection list.- Specified by:
setScalarColumnin interfaceSelectExpression- Parameters:
i- The index of the select expression in the projection list.- Throws:
antlr.SemanticException
-
getScalarColumnIndex
public int getScalarColumnIndex()Description copied from interface:SelectExpressionGets index of the select expression in the projection list.- Specified by:
getScalarColumnIndexin interfaceSelectExpression
-