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

public Class LiteralNode

extends AbstractSelectExpression
implements HqlSqlTokenTypes, ExpectedTypeAwareNode
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.internal.ast.tree.ExpectedTypeAwareNode, org.hibernate.hql.internal.antlr.HqlSqlTokenTypes
Known Direct Subclasses
org.hibernate.hql.internal.ast.tree.BooleanLiteralNode
Imports
java.sql.Types, java.util.Locale, org.hibernate.QueryException, org.hibernate.hql.internal.antlr.HqlSqlTokenTypes, org.hibernate.hql.internal.ast.util.ColumnHelper, org.hibernate.metamodel.model.convert.spi.JpaAttributeConverter, org.hibernate.type.SingleColumnType, .StandardBasicTypes, .Type, org.hibernate.type.descriptor.converter.AttributeConverterTypeAdapter, antlr.SemanticException

Represents a literal.
Authors
josh, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Type

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
determineConvertedValue(AttributeConverterTypeAdapter<T> converterTypeAdapter, Object literalValue)

public Type
public Type
public Object
private boolean
isCharacterData(int typeCode)

public void
public void
setScalarColumnText(int
The index of the select expression in the projection list.
i
)

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

Appends AST nodes that represent the columns after the current AST node.
Inherited from org.hibernate.hql.internal.ast.tree.AbstractSelectExpression:
getAliasgetFromElementgetScalarColumnIndexisConstructorisReturnableEntityisScalarsetAliassetScalarColumn

Field Detail

expectedTypeback to summary
private Type expectedType

Constructor Detail

LiteralNodeback to summary
public LiteralNode()

Method Detail

determineConvertedValueback to summary
protected String determineConvertedValue(AttributeConverterTypeAdapter<T> converterTypeAdapter, Object literalValue)
Annotations
@SuppressWarnings:unchecked
getDataTypeback to summary
public Type getDataType()

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

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

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

Returns the data type of the select expression.

Returns:Type

The data type of the select expression.

getExpectedTypeback to summary
public Type getExpectedType()

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

Annotations
@Override
getLiteralValueback to summary
public Object getLiteralValue()
isCharacterDataback to summary
private boolean isCharacterData(int typeCode)
setExpectedTypeback to summary
public void setExpectedType(Type expectedType)

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

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

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

Doc from org.hibernate.hql.internal.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.

Exceptions
SemanticException:
if a semantic error occurs