Package defining support for HQL, including JPQL as a subset of HQL.
Concerns handled by subpackages include:
- query language transformation via ANTLR, and
- query execution via an instance of
Translation of HQL to SQL involves the following steps:
- First, the ANTLR-generated
parserwork in series to parse the text of the query and produce an AST.
SemanticQueryBuildertranslates the AST into an instance of the SQM (Semantic Query Model) defined in
StandardSqmTranslatortransforms the SQM tree and produces a SQL AST, an instance of the syntax tree defined by
- Finally, a SQL dialect-specific implementation of
SqlAstTranslatorproduces an executable SQL statement.
Interface Summary Interface Description HqlLogging HqlTranslatorMain entry point into building semantic queries. LiteralConsumerPluggable contract for consuming literals encountered in an HQL query.
Exception Summary Exception Description HqlInterpretationExceptionBase of exception hierarchy for exceptions stemming from producing SQM AST trees