Top Description Fields Constructors Methods
org.hibernate.hql.ast.tree

public Class IdentNode

extends FromReferenceNode
implements SelectExpression
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.ast.tree.SelectExpression
Imports
antlr.SemanticException, antlr.collections.AST, org.hibernate.QueryException, org.hibernate.dialect.function.SQLFunction, org.hibernate.hql.antlr.SqlTokenTypes, org.hibernate.hql.ast.util.ColumnHelper, org.hibernate.persister.collection.QueryableCollection, org.hibernate.persister.entity.Queryable, org.hibernate.sql.JoinFragment, org.hibernate.type.CollectionType, .Type, org.hibernate.util.StringHelper, java.util.List

Represents an identifier all by itself, which may be a function name, a class alias, or a form of naked property-ref depending on the context.
Author
josh

Field Summary

Modifier and TypeField and Description
private static final int
private boolean
private static final int
private static final int
Inherited from org.hibernate.hql.ast.tree.FromReferenceNode:
ROOT_LEVEL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Type
getDataType()

Overrides org.hibernate.hql.ast.tree.SqlNode.getDataType.

Implements org.hibernate.hql.ast.tree.SelectExpression.getDataType.

Returns the data type of the select expression.
public String
private Type
getNakedPropertyType(FromElement fromElement)

Deprecated as a consequence of FromElement being deprecated.
private FromElement
locateSingleFromElement()

Deprecated as a consequence of FromElement being deprecated.
public void
resolve(boolean generateJoin, boolean implicitJoin, String classAlias, AST parent)

Implements org.hibernate.hql.ast.tree.ResolvableNode.resolve.

Does the work of resolving an identifier or a dot
private boolean
private boolean
private boolean
private int
public void
resolveIndex(AST parent)

Implements org.hibernate.hql.ast.tree.ResolvableNode.resolveIndex.

Does the work of resolving an an index [].
public void
setScalarColumnText(int
The index of the select expression in the projection list.
i
)

Implements org.hibernate.hql.ast.tree.SelectExpression.setScalarColumnText.

Appends AST nodes that represent the columns after the current AST node.
Inherited from org.hibernate.hql.ast.tree.FromReferenceNode:
getFromElementgetImpliedJoingetPathisResolvedisReturnableEntityprepareForDotrecursiveResolverecursiveResolveresolveresolveresolveFirstChildresolveInFunctionCallsetFromElementsetResolved

Field Detail

COMPONENT_REFback to summary
private static final int COMPONENT_REF
nakedPropertyRefback to summary
private boolean nakedPropertyRef
PROPERTY_REFback to summary
private static final int PROPERTY_REF
UNKNOWNback to summary
private static final int UNKNOWN

Constructor Detail

IdentNodeback to summary
public IdentNode()

Method Detail

getDataTypeback to summary
public Type getDataType()

Overrides org.hibernate.hql.ast.tree.SqlNode.getDataType.

Implements org.hibernate.hql.ast.tree.SelectExpression.getDataType.

Doc from org.hibernate.hql.ast.tree.SelectExpression.getDataType.

Returns the data type of the select expression.

Returns:Type

The data type of the select expression.

getDisplayTextback to summary
public String getDisplayText()

Overrides org.hibernate.hql.ast.tree.FromReferenceNode.getDisplayText.

Implements org.hibernate.hql.ast.tree.DisplayableNode.getDisplayText.

Doc from org.hibernate.hql.ast.tree.DisplayableNode.getDisplayText.

Returns additional display text for the AST node.

Returns:String

String - The additional display text.

getNakedPropertyTypeback to summary
private Type getNakedPropertyType(FromElement fromElement)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

locateSingleFromElementback to summary
private FromElement locateSingleFromElement()

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

resolveback to summary
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, AST parent)

Implements org.hibernate.hql.ast.tree.ResolvableNode.resolve.

Doc from org.hibernate.hql.ast.tree.ResolvableNode.resolve.

Does the work of resolving an identifier or a dot

resolveAsAliasback to summary
private boolean resolveAsAlias()
resolveAsNakedComponentPropertyRefLHSback to summary
private boolean resolveAsNakedComponentPropertyRefLHS(DotNode parent)
resolveAsNakedComponentPropertyRefRHSback to summary
private boolean resolveAsNakedComponentPropertyRefRHS(DotNode parent)
resolveAsNakedPropertyRefback to summary
private int resolveAsNakedPropertyRef()
resolveIndexback to summary
public void resolveIndex(AST parent) throws SemanticException

Implements org.hibernate.hql.ast.tree.ResolvableNode.resolveIndex.

Doc from org.hibernate.hql.ast.tree.ResolvableNode.resolveIndex.

Does the work of resolving an an index [].

setScalarColumnTextback to summary
public void setScalarColumnText(int i) throws SemanticException

Implements org.hibernate.hql.ast.tree.SelectExpression.setScalarColumnText.

Doc from org.hibernate.hql.ast.tree.SelectExpression.setScalarColumnText.

Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')

Parameters
i:int

The index of the select expression in the projection list.