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

public Class JavaConstantNode

extends Node
implements ExpectedTypeAwareNode, SessionFactoryAwareNode
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.ast.tree.SessionFactoryAwareNode, org.hibernate.hql.ast.tree.ExpectedTypeAwareNode
Imports
org.hibernate.type.Type, .TypeFactory, .LiteralType, org.hibernate.util.ReflectHelper, .StringHelper, org.hibernate.engine.SessionFactoryImplementor, org.hibernate.dialect.Dialect, org.hibernate.QueryException, org.hibernate.hql.QueryTranslator

A node representing a static Java constant.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private String
private Object
private Type
private SessionFactoryImplementor
private Type

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Type
public String
getRenderText(SessionFactoryImplementor
The session factory
sessionFactory
)

Overrides org.hibernate.hql.ast.tree.Node.getRenderText.

Retrieve the text to be used for rendering this particular node.
public void
public void
public void
setText(String s)

Overrides antlr.CommonAST.setText.

Implements antlr.collections.AST.setText.

Set the token text for this node
Inherited from org.hibernate.hql.ast.tree.Node:
getColumngetFilenamegetLinegetTextLengthinitializeinitialize

Field Detail

constantExpressionback to summary
private String constantExpression
constantValueback to summary
private Object constantValue
expectedTypeback to summary
private Type expectedType
factoryback to summary
private SessionFactoryImplementor factory
heuristicTypeback to summary
private Type heuristicType

Constructor Detail

JavaConstantNodeback to summary
public JavaConstantNode()

Method Detail

getExpectedTypeback to summary
public Type getExpectedType()

Implements org.hibernate.hql.ast.tree.ExpectedTypeAwareNode.getExpectedType.

getRenderTextback to summary
public String getRenderText(SessionFactoryImplementor sessionFactory)

Overrides org.hibernate.hql.ast.tree.Node.getRenderText.

Doc from org.hibernate.hql.ast.tree.Node.getRenderText.

Retrieve the text to be used for rendering this particular node.

Parameters
sessionFactory:SessionFactoryImplementor

The session factory

Returns:String

The text to use for rendering

setExpectedTypeback to summary
public void setExpectedType(Type expectedType)

Implements org.hibernate.hql.ast.tree.ExpectedTypeAwareNode.setExpectedType.

setSessionFactoryback to summary
public void setSessionFactory(SessionFactoryImplementor factory)

Implements org.hibernate.hql.ast.tree.SessionFactoryAwareNode.setSessionFactory.

setTextback to summary
public void setText(String s)

Overrides antlr.CommonAST.setText.

Implements antlr.collections.AST.setText.

Doc from antlr.CommonAST.setText.

Set the token text for this node