public class QueryNode extends AbstractRestrictableStatement implements SelectExpression
Constructor and Description |
---|
QueryNode() |
Modifier and Type | Method and Description |
---|---|
String |
getAlias() |
Type |
getDataType()
Returns the data type of the select expression.
|
FromElement |
getFromElement()
Returns the FROM element that this expression refers to.
|
protected CoreMessageLogger |
getLog() |
OrderByClause |
getOrderByClause() |
int |
getScalarColumnIndex()
Gets index of the select expression in the projection list.
|
SelectClause |
getSelectClause()
Locate the select clause that is part of this select statement.
|
int |
getStatementType()
Return the main token type representing the type of this statement.
|
protected int |
getWhereClauseParentTokenType() |
boolean |
hasOrderByClause() |
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() |
boolean |
needsExecutor()
Does this statement require the StatementExecutor?
|
void |
setAlias(String alias) |
void |
setScalarColumn(int i)
Sets the index and text for select expression in the projection list.
|
void |
setScalarColumnText(int i)
Appends AST nodes that represent the columns after the current AST node.
|
getFromClause, getWhereClause, hasWhereClause, locateWhereClause
getDisplayText
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
getOriginalText, setDataType, setText
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setText
public int getStatementType()
Statement
getStatementType
in interface Statement
Statement.getStatementType()
public boolean needsExecutor()
Statement
needsExecutor
in interface Statement
Statement.needsExecutor()
protected int getWhereClauseParentTokenType()
getWhereClauseParentTokenType
in class AbstractRestrictableStatement
protected CoreMessageLogger getLog()
getLog
in class AbstractRestrictableStatement
public final SelectClause getSelectClause()
public final boolean hasOrderByClause()
public final OrderByClause getOrderByClause()
public String getAlias()
getAlias
in interface SelectExpression
public FromElement getFromElement()
SelectExpression
getFromElement
in interface SelectExpression
public boolean isConstructor()
SelectExpression
isConstructor
in interface SelectExpression
public boolean isReturnableEntity() throws antlr.SemanticException
SelectExpression
isReturnableEntity
in interface SelectExpression
antlr.SemanticException
- if a semantic error occurspublic boolean isScalar() throws antlr.SemanticException
isScalar
in interface SelectExpression
antlr.SemanticException
public void setAlias(String alias)
setAlias
in interface SelectExpression
public void setScalarColumn(int i) throws antlr.SemanticException
SelectExpression
setScalarColumn
in interface SelectExpression
i
- The index of the select expression in the projection list.antlr.SemanticException
- if a semantic error occurspublic int getScalarColumnIndex()
SelectExpression
getScalarColumnIndex
in interface SelectExpression
public void setScalarColumnText(int i) throws antlr.SemanticException
SelectExpression
setScalarColumnText
in interface SelectExpression
i
- The index of the select expression in the projection list.antlr.SemanticException
- if a semantic error occurspublic Type getDataType()
SelectExpression
getDataType
in interface SelectExpression
getDataType
in class SqlNode
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.