public class

LiteralProcessor

extends Object
java.lang.Object
   ↳ org.hibernate.hql.ast.util.LiteralProcessor

Class Overview

A delegate that handles literals and constants for HqlSqlWalker, performing the token replacement functions and classifying literals.

Summary

Constants
int APPROXIMATE Indicates that Float and Double literal values should be treated using the SQL "approximate" format (i.e., '1E-3')
int EXACT Indicates that Float and Double literal values should be treated using the SQL "exact" format (i.e., '.001')
Fields
public static int DECIMAL_LITERAL_FORMAT In what format should Float and Double literal values be sent to the database?
Public Constructors
LiteralProcessor(HqlSqlWalker hqlSqlWalker)
Public Methods
String determineDecimalRepresentation(String text, int type)
boolean isAlias(String alias)
void lookupConstant(DotNode node)
void processBoolean(AST constant)
void processConstant(AST constant, boolean resolveIdent)
void processNumeric(AST literal)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int APPROXIMATE

Indicates that Float and Double literal values should be treated using the SQL "approximate" format (i.e., '1E-3')

Constant Value: 1 (0x00000001)

public static final int EXACT

Indicates that Float and Double literal values should be treated using the SQL "exact" format (i.e., '.001')

Constant Value: 0 (0x00000000)

Fields

public static int DECIMAL_LITERAL_FORMAT

In what format should Float and Double literal values be sent to the database?

See Also
  • #EXACT, #APPROXIMATE

Public Constructors

public LiteralProcessor (HqlSqlWalker hqlSqlWalker)

Public Methods

public String determineDecimalRepresentation (String text, int type)

public boolean isAlias (String alias)

public void lookupConstant (DotNode node)

Throws
SemanticException

public void processBoolean (AST constant)

public void processConstant (AST constant, boolean resolveIdent)

Throws
SemanticException

public void processNumeric (AST literal)