Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
Method Summary | |
String |
|
Type |
|
FromElement |
|
protected Logger |
|
OrderByClause | |
SelectClause |
|
int | |
protected int | |
boolean | |
boolean |
|
boolean |
|
boolean |
|
boolean | |
void |
|
void |
|
Methods inherited from class org.hibernate.hql.ast.tree.AbstractRestrictableStatement | |
getFromClause , getLog , getWhereClause , getWhereClauseParentTokenType , hasWhereClause , locateWhereClause |
Methods inherited from class org.hibernate.hql.ast.tree.AbstractStatement | |
getDisplayText |
Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode | |
getASTFactory , getAliasGenerator , getSessionFactoryHelper , getWalker , initialize |
Methods inherited from class org.hibernate.hql.ast.tree.SqlNode | |
getDataType , getOriginalText , setDataType , setText |
Methods inherited from class org.hibernate.hql.ast.tree.Node | |
getColumn , getFilename , getLine , getRenderText , getTextLength , initialize , initialize |
public Type getDataType()
Returns the data type of the select expression.
- Specified by:
- getDataType in interface SelectExpression
- Overrides:
- getDataType in interface SqlNode
- Returns:
- The data type of the select expression.
public FromElement getFromElement()
Returns the FROM element that this expression refers to.
- Specified by:
- getFromElement in interface SelectExpression
- Returns:
- The FROM element.
public final SelectClause getSelectClause()
Locate the select clause that is part of this select statement. Note, that this might return null as derived select clauses (i.e., no select clause at the HQL-level) get generated much later than when we get created; thus it depends upon lifecycle.
- Returns:
- Our select clause, or null.
public int getStatementType()
- Specified by:
- getStatementType in interface Statement
- See Also:
Statement.getStatementType()
protected int getWhereClauseParentTokenType()
- Overrides:
- getWhereClauseParentTokenType in interface AbstractRestrictableStatement
public final boolean hasOrderByClause()
public boolean isConstructor()
Returns true if the element is a constructor (e.g. new Foo).
- Specified by:
- isConstructor in interface SelectExpression
- Returns:
- true if the element is a constructor (e.g. new Foo).
public boolean isReturnableEntity() throws SemanticException
Returns true if this select expression represents an entity that can be returned.
- Specified by:
- isReturnableEntity in interface SelectExpression
- Returns:
- true if this select expression represents an entity that can be returned.
public boolean isScalar() throws SemanticException
- Specified by:
- isScalar in interface SelectExpression
public boolean needsExecutor()
- Specified by:
- needsExecutor in interface Statement
- See Also:
Statement.needsExecutor()
public void setScalarColumnText(int i) throws SemanticException
Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')
- Specified by:
- setScalarColumnText in interface SelectExpression
- Parameters:
i
- The index of the select expression in the projection list.