Package org.hibernate.query.hql.internal
Class StandardHqlTranslator
java.lang.Object
org.hibernate.query.hql.internal.StandardHqlTranslator
- All Implemented Interfaces:
HqlTranslator
Standard implementation of
HqlTranslator.-
Constructor Summary
ConstructorsConstructorDescriptionStandardHqlTranslator(SqmCreationContext sqmCreationContext, SqmCreationOptions sqmCreationOptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringprettifyAntlrError(Object offendingSymbol, int line, int charPositionInLine, String message, org.antlr.v4.runtime.RecognitionException e, String hql, boolean includeLocation) ANTLR's error messages are surprisingly bad, so try to make them a bit better.<R> SqmStatement<R> Performs the interpretation of a HQL/JPQL query string to SQM.
-
Constructor Details
-
StandardHqlTranslator
public StandardHqlTranslator(SqmCreationContext sqmCreationContext, SqmCreationOptions sqmCreationOptions)
-
-
Method Details
-
translate
Description copied from interface:HqlTranslatorPerforms the interpretation of a HQL/JPQL query string to SQM.- Specified by:
translatein interfaceHqlTranslator- Parameters:
query- The HQL/JPQL query string to interpretexpectedResultType- The type specified when creating the query- Returns:
- The semantic representation of the incoming query.
-
prettifyAntlrError
public static String prettifyAntlrError(Object offendingSymbol, int line, int charPositionInLine, String message, org.antlr.v4.runtime.RecognitionException e, String hql, boolean includeLocation) ANTLR's error messages are surprisingly bad, so try to make them a bit better.
-