Package org.hibernate.query.hql.internal
Class StandardHqlTranslator
- java.lang.Object
-
- org.hibernate.query.hql.internal.StandardHqlTranslator
-
- All Implemented Interfaces:
HqlTranslator
public class StandardHqlTranslator extends Object implements HqlTranslator
Standard implementation of SemanticQueryInterpreter
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.antlr.v4.runtime.ANTLRErrorListener
ERR_LISTENER
-
Constructor Summary
Constructors Constructor Description StandardHqlTranslator(SqmCreationContext sqmCreationContext, SqmCreationOptions sqmCreationOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> SqmStatement<R>
translate(String query, Class<R> expectedResultType)
Performs the interpretation of a HQL/JPQL query string to SQM.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.hql.HqlTranslator
close
-
-
-
-
Constructor Detail
-
StandardHqlTranslator
public StandardHqlTranslator(SqmCreationContext sqmCreationContext, SqmCreationOptions sqmCreationOptions)
-
-
Method Detail
-
translate
public <R> SqmStatement<R> translate(String query, Class<R> expectedResultType)
Description copied from interface:HqlTranslator
Performs the interpretation of a HQL/JPQL query string to SQM.- Specified by:
translate
in 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.
-
-