org.hibernate.hql.ast.tree

Class JavaConstantNode

Implemented Interfaces:
ExpectedTypeAwareNode, SessionFactoryAwareNode

public class JavaConstantNode
extends Node
implements ExpectedTypeAwareNode, SessionFactoryAwareNode

A node representing a static Java constant.
Author:
Steve Ebersole

Method Summary

Type
getExpectedType()
String
getRenderText(SessionFactoryImplementor sessionFactory)
Retrieve the text to be used for rendering this particular node.
void
setExpectedType(Type expectedType)
void
setSessionFactory(SessionFactoryImplementor factory)
void
setText(String s)

Methods inherited from class org.hibernate.hql.ast.tree.Node

getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize

Method Details

getExpectedType

public Type getExpectedType()
Specified by:
getExpectedType in interface ExpectedTypeAwareNode

getRenderText

public String getRenderText(SessionFactoryImplementor sessionFactory)
Retrieve the text to be used for rendering this particular node.
Overrides:
getRenderText in interface Node
Parameters:
sessionFactory - The session factory
Returns:
The text to use for rendering

setExpectedType

public void setExpectedType(Type expectedType)
Specified by:
setExpectedType in interface ExpectedTypeAwareNode

setSessionFactory

public void setSessionFactory(SessionFactoryImplementor factory)
Specified by:
setSessionFactory in interface SessionFactoryAwareNode

setText

public void setText(String s)