类 SelectClause
- java.lang.Object
-
- antlr.BaseAST
-
- antlr.CommonAST
-
- org.hibernate.hql.internal.ast.tree.Node
-
- org.hibernate.hql.internal.ast.tree.SqlNode
-
- org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
-
- org.hibernate.hql.internal.ast.tree.SelectExpressionList
-
- org.hibernate.hql.internal.ast.tree.SelectClause
-
- 所有已实现的接口:
antlr.collections.AST,Serializable,InitializeableNode
public class SelectClause extends SelectExpressionList
Represents the list of expressions in a SELECT clause.- 作者:
- josh
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static booleanVERSION2_SQL
-
构造器概要
构造器 构造器 说明 SelectClause()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AggregatedSelectExpressiongetAggregatedSelectExpression()ListgetCollectionFromElements()String[][]getColumnNames()The column alias names being used in the generated SQL.intgetColumnNamesStartPosition(int i)protected antlr.collections.ASTgetFirstSelectExpression()Returns the first select expression node that should be considered when building the array of select expressions.ListgetFromElementsForLoad()FromElements which need to be accounted for in the load phase (either for return or for fetch).String[]getQueryReturnAliases()The HQL aliases, or generated aliasesType[]getQueryReturnTypes()The types actually being returned from this query at the "object level".voidinitializeDerivedSelectClause(FromClause fromClause)Prepares a derived (i.e., not explicitly defined in the query) select clause.voidinitializeExplicitSelectClause(FromClause fromClause)Prepares an explicitly defined select clause.booleanisDistinct()booleanisScalarSelect()Does this SelectClause represent a scalar query-
从类继承的方法 org.hibernate.hql.internal.ast.tree.SelectExpressionList
collectSelectExpressions, getParameterPositions, getTotalParameterCount
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.SqlNode
getDataType, getOriginalText, setDataType, setText
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
-
从类继承的方法 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, xmlSerializeRootOpen
-
-
-
-
方法详细资料
-
isScalarSelect
public boolean isScalarSelect()
Does this SelectClause represent a scalar query- 返回:
- True if this is a scalar select clause; false otherwise.
-
isDistinct
public boolean isDistinct()
-
getFromElementsForLoad
public List getFromElementsForLoad()
FromElements which need to be accounted for in the load phase (either for return or for fetch).- 返回:
- List of appropriate FromElements.
-
getQueryReturnTypes
public Type[] getQueryReturnTypes()
The types actually being returned from this query at the "object level".- 返回:
- The query return types.
-
getQueryReturnAliases
public String[] getQueryReturnAliases()
The HQL aliases, or generated aliases- 返回:
- the aliases
-
getColumnNames
public String[][] getColumnNames()
The column alias names being used in the generated SQL.- 返回:
- The SQL column aliases.
-
getAggregatedSelectExpression
public AggregatedSelectExpression getAggregatedSelectExpression()
-
initializeExplicitSelectClause
public void initializeExplicitSelectClause(FromClause fromClause) throws antlr.SemanticException
Prepares an explicitly defined select clause.- 参数:
fromClause- The from clause linked to this select clause.- 抛出:
antlr.SemanticException- indicates a semantic issue with the explicit select clause.
-
getColumnNamesStartPosition
public int getColumnNamesStartPosition(int i)
-
initializeDerivedSelectClause
public void initializeDerivedSelectClause(FromClause fromClause) throws antlr.SemanticException
Prepares a derived (i.e., not explicitly defined in the query) select clause.- 参数:
fromClause- The from clause to which this select clause is linked.- 抛出:
antlr.SemanticException
-
getFirstSelectExpression
protected antlr.collections.AST getFirstSelectExpression()
从类复制的说明:SelectExpressionListReturns the first select expression node that should be considered when building the array of select expressions.- 指定者:
getFirstSelectExpression在类中SelectExpressionList- 返回:
- the first select expression node that should be considered when building the array of select expressions
-
getCollectionFromElements
public List getCollectionFromElements()
-
-