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

public Class JavaConstantNode

extends Node
implements ExpectedTypeAwareNode, SessionFactoryAwareNode
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.internal.ast.tree.SessionFactoryAwareNode, org.hibernate.hql.internal.ast.tree.ExpectedTypeAwareNode
Imports
java.util.Locale, org.hibernate.QueryException, org.hibernate.dialect.Dialect, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.hql.spi.QueryTranslator, org.hibernate.internal.util.ReflectHelper, .StringHelper, org.hibernate.type.LiteralType, .Type, org.hibernate.type.descriptor.converter.AttributeConverterTypeAdapter

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
factory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
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.internal.ast.tree.Node.getRenderText.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
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.internal.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

Deprecated

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

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.internal.ast.tree.ExpectedTypeAwareNode.getExpectedType.

Annotations
@Override
getRenderTextback to summary
public String getRenderText(SessionFactoryImplementor sessionFactory)

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

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

Deprecated

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

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

Annotations
@Override
@SuppressWarnings:unchecked
setExpectedTypeback to summary
public void setExpectedType(Type expectedType)

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

Annotations
@Override
setSessionFactoryback to summary
public void setSessionFactory(SessionFactoryImplementor factory)

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

Deprecated

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

Annotations
@Override
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

Annotations
@Override