Top Description Interfaces Classes
[default module]

Package org.hibernate.hql.internal.ast


An ANTLR-based parser for Hibernate Query Language.

Classes in this package extend the ANTLR-generated parser classes.

Interface Summary

Modifier and TypeInterface and Description
public interface
ErrorReporter

Implementations will report or handle errors invoked by an ANTLR base parser.

public interface
ParseErrorHandler

Defines the behavior of an error handler for the HQL parsers.

public interface
TypeDiscriminatorMetadata

Essentially a wrapper around a org.hibernate.persister.entity.DiscriminatorMetadata and the proper sql alias to use.

Class Summary

Modifier and TypeClass and Description
public class
ASTQueryTranslatorFactory

Generates translators which uses the Antlr-based parser to perform the translation.

public class
DetailedSemanticException

Thrown when a call to the underlying Hibernate engine fails, indicating some form of semantic exception (e.g. a class name was not found in the current mappings, etc.).

public class
ErrorTracker

An error handler that counts parsing errors and warnings.

public class
HqlASTFactory

User: Joshua Davis Date: Sep 23, 2005 Time: 12:30:01 PM

pack-priv class
HqlLexer

Custom lexer for the HQL grammar.

public class
HqlParser

Implements the semantic action methods defined in the HQL base parser to keep the grammar source file a little cleaner.

public class
HqlSqlWalker

Implements methods used by the HQL->SQL tree transform grammar (a.k.a. the second phase).

public class
HqlToken

A custom token class for the HQL grammar.

public class
InvalidPathException

Exception thrown when an invalid path is found in a query.

public class
InvalidWithClauseException

Indicates an issue with the encountered with-clause.

public class
public class
ParameterTranslationsImpl

Defines the information available for parameters encountered during query translation through the antlr-based parser.

public class
public class
QuerySyntaxException

Exception thrown when there is a syntax error in the HQL.

public class
QueryTranslatorImpl

A QueryTranslator that uses an Antlr-based parser.

public class
SqlASTFactory

Custom AST factory the intermediate tree that causes ANTLR to create specialized AST nodes, given the AST node type (from HqlSqlTokenTypes).

public class
SqlGenerator

Generates SQL by overriding callback methods in the base class, which does the actual SQL AST walking.