Interface HqlTranslator
Global integration contract for translating HQL or JPQL text to SQM.
This is not a database Dialect contract. Framework integrations may supply
one translator through QueryEngineOptions; the
resulting instance is normally shared by the query engine and must therefore
be thread-safe. Implementations must produce a fresh semantic statement for
each invocation and must not infer database syntax.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<R> SqmStatement<R> Performs the interpretation of a HQL/JPQL query string to SQM.
-
Method Details
-
translate
Performs the interpretation of a HQL/JPQL query string to SQM.- Parameters:
hql- The HQL/JPQL query string to interpretexpectedResultType- The type specified when creating the query- Returns:
- The semantic representation of the incoming query.
-