当前页面:
在线文档首页 >
Hibernate 3.2.4 正式版 API 英文文档
ConstructorNode (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.hql.ast.tree
Class ConstructorNode
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.SelectExpressionList
org.hibernate.hql.ast.tree.ConstructorNode
- All Implemented Interfaces:
- antlr.collections.AST, InitializeableNode, SelectExpression, Serializable
- public class ConstructorNode
- extends SelectExpressionList
- implements SelectExpression
Represents a constructor (new) in a SELECT.
- Author:
- josh Sep 24, 2004 6:46:08 PM
- See Also:
- Serialized Form
Fields inherited from class antlr.BaseAST |
down, right |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, setType |
Methods 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, xmlSerializeRootOpen |
ConstructorNode
public ConstructorNode()
isMap
public boolean isMap()
isList
public boolean isList()
getAliases
public String[] getAliases()
setScalarColumnText
public void setScalarColumnText(int i)
throws antlr.SemanticException
- Description copied from interface:
SelectExpression
- 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.
- Throws:
antlr.SemanticException
getFirstSelectExpression
protected antlr.collections.AST getFirstSelectExpression()
- Description copied from class:
SelectExpressionList
- Returns the first select expression node that should be considered when building the array of select
expressions.
- Specified by:
getFirstSelectExpression
in class SelectExpressionList
- Returns:
- the first select expression node that should be considered when building the array of select
expressions
getDataType
public Type getDataType()
- Deprecated. (tell clover to ignore this method)
- Description copied from interface:
SelectExpression
- Returns the data type of the select expression.
- Specified by:
getDataType
in interface SelectExpression
- Overrides:
getDataType
in class SqlNode
prepare
public void prepare()
throws antlr.SemanticException
- Throws:
antlr.SemanticException
getConstructor
public Constructor getConstructor()
getConstructorArgumentTypeList
public List getConstructorArgumentTypeList()
getFromElement
public FromElement getFromElement()
- Description copied from interface:
SelectExpression
- Returns the FROM element that this expression refers to.
- Specified by:
getFromElement
in interface SelectExpression
- Returns:
- The FROM element.
isConstructor
public boolean isConstructor()
- Description copied from interface:
SelectExpression
- 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).
isReturnableEntity
public boolean isReturnableEntity()
throws antlr.SemanticException
- Description copied from interface:
SelectExpression
- 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.
- Throws:
antlr.SemanticException
isScalar
public boolean isScalar()
- Specified by:
isScalar
in interface SelectExpression
setAlias
public void setAlias(String alias)
- Specified by:
setAlias
in interface SelectExpression
getAlias
public String getAlias()
- Specified by:
getAlias
in interface SelectExpression