类 ConstructorNode
- 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.ConstructorNode
-
- 所有已实现的接口:
antlr.collections.AST,Serializable,AggregatedSelectExpression,InitializeableNode,SelectExpression
public class ConstructorNode extends SelectExpressionList implements AggregatedSelectExpression
Represents a constructor (new) in a SELECT.- 作者:
- josh
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ConstructorNode()
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 String[]getAggregatedAliases()Retrieve the aliases for the columns aggregated here.ListgetAggregatedSelectionTypeList()Retrieves a list of the selectiontypesbeing aggregatedClassgetAggregationResultType()Obtain the java type of the aggregationStringgetAlias()ConstructorgetConstructor()ListgetConstructorArgumentTypeList()TypegetDataType()已过时。(tell clover to ignore this method)protected antlr.collections.ASTgetFirstSelectExpression()Returns the first select expression node that should be considered when building the array of select expressions.FromElementgetFromElement()Returns the FROM element that this expression refers to.ResultTransformergetResultTransformer()Retrieve theResultTransformerresponsible for building aggregated select expression results into their aggregated form.intgetScalarColumnIndex()Gets index of the select expression in the projection list.booleanisConstructor()Returns true if the element is a constructor (e.g. new Foo).booleanisReturnableEntity()Returns true if this select expression represents an entity that can be returned.booleanisScalar()voidprepare()voidsetAlias(String alias)voidsetScalarColumn(int i)Sets the index and text for select expression in the projection list.voidsetScalarColumnText(int i)Appends AST nodes that represent the columns after the current AST node.-
从类继承的方法 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
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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.hibernate.hql.internal.ast.tree.SelectExpression
setText
-
-
-
-
方法详细资料
-
getResultTransformer
public ResultTransformer getResultTransformer()
从接口复制的说明:AggregatedSelectExpressionRetrieve theResultTransformerresponsible for building aggregated select expression results into their aggregated form.- 指定者:
getResultTransformer在接口中AggregatedSelectExpression- 返回:
- The appropriate transformer
-
getAggregatedAliases
public String[] getAggregatedAliases()
从接口复制的说明:AggregatedSelectExpressionRetrieve the aliases for the columns aggregated here.- 指定者:
getAggregatedAliases在接口中AggregatedSelectExpression- 返回:
- The column aliases.
-
setScalarColumn
public void setScalarColumn(int i) throws antlr.SemanticException从接口复制的说明:SelectExpressionSets the index and text for select expression in the projection list.- 指定者:
setScalarColumn在接口中SelectExpression- 参数:
i- The index of the select expression in the projection list.- 抛出:
antlr.SemanticException- if a semantic error occurs
-
getScalarColumnIndex
public int getScalarColumnIndex()
从接口复制的说明:SelectExpressionGets index of the select expression in the projection list.- 指定者:
getScalarColumnIndex在接口中SelectExpression- 返回:
- The index of the select expression in the projection list.
-
setScalarColumnText
public void setScalarColumnText(int i) throws antlr.SemanticException从接口复制的说明:SelectExpressionAppends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')- 指定者:
setScalarColumnText在接口中SelectExpression- 参数:
i- The index of the select expression in the projection list.- 抛出:
antlr.SemanticException- if a semantic error occurs
-
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
-
getAggregationResultType
public Class getAggregationResultType()
从接口复制的说明:AggregatedSelectExpressionObtain the java type of the aggregation- 指定者:
getAggregationResultType在接口中AggregatedSelectExpression- 返回:
- The java type.
-
getDataType
@Deprecated public Type getDataType()
已过时。(tell clover to ignore this method)从接口复制的说明:SelectExpressionReturns the data type of the select expression.- 指定者:
getDataType在接口中SelectExpression- 覆盖:
getDataType在类中SqlNode- 返回:
- The data type of the select expression.
-
prepare
public void prepare() throws antlr.SemanticException- 抛出:
antlr.SemanticException
-
getConstructor
public Constructor getConstructor()
-
getConstructorArgumentTypeList
public List getConstructorArgumentTypeList()
-
getAggregatedSelectionTypeList
public List getAggregatedSelectionTypeList()
从接口复制的说明:AggregatedSelectExpressionRetrieves a list of the selectiontypesbeing aggregated- 指定者:
getAggregatedSelectionTypeList在接口中AggregatedSelectExpression- 返回:
- The list of types.
-
getFromElement
public FromElement getFromElement()
从接口复制的说明:SelectExpressionReturns the FROM element that this expression refers to.- 指定者:
getFromElement在接口中SelectExpression- 返回:
- The FROM element.
-
isConstructor
public boolean isConstructor()
从接口复制的说明:SelectExpressionReturns true if the element is a constructor (e.g. new Foo).- 指定者:
isConstructor在接口中SelectExpression- 返回:
- true if the element is a constructor (e.g. new Foo).
-
isReturnableEntity
public boolean isReturnableEntity() throws antlr.SemanticException从接口复制的说明:SelectExpressionReturns true if this select expression represents an entity that can be returned.- 指定者:
isReturnableEntity在接口中SelectExpression- 返回:
- true if this select expression represents an entity that can be returned.
- 抛出:
antlr.SemanticException- if a semantic error occurs
-
isScalar
public boolean isScalar()
- 指定者:
isScalar在接口中SelectExpression
-
setAlias
public void setAlias(String alias)
- 指定者:
setAlias在接口中SelectExpression
-
getAlias
public String getAlias()
- 指定者:
getAlias在接口中SelectExpression
-
-