Package org.hibernate.hql.spi
Interface QueryTranslatorFactory
-
- All Superinterfaces:
java.io.Serializable,Service
public interface QueryTranslatorFactory extends Service
Facade for generation ofQueryTranslatorandFilterTranslatorinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FilterTranslatorcreateFilterTranslator(java.lang.String queryIdentifier, java.lang.String queryString, java.util.Map filters, SessionFactoryImplementor factory)Construct aFilterTranslatorinstance capable of translating an HQL filter string.QueryTranslatorcreateQueryTranslator(java.lang.String queryIdentifier, java.lang.String queryString, java.util.Map filters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)Construct aQueryTranslatorinstance capable of translating an HQL query string.
-
-
-
Method Detail
-
createQueryTranslator
QueryTranslator createQueryTranslator(java.lang.String queryIdentifier, java.lang.String queryString, java.util.Map filters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
Construct aQueryTranslatorinstance capable of translating an HQL query string.- Parameters:
queryIdentifier- The query-identifier (used inQueryStatisticscollection). This is typically the same as the queryString parameter except for the case of split polymorphic queries which result in multiple physical sql queries.queryString- The query string to be translatedfilters- Currently enabled filtersfactory- The session factory.entityGraphQueryHint- The EntityGraph provided through a JPQL query hint- Returns:
- an appropriate translator.
-
createFilterTranslator
FilterTranslator createFilterTranslator(java.lang.String queryIdentifier, java.lang.String queryString, java.util.Map filters, SessionFactoryImplementor factory)
Construct aFilterTranslatorinstance capable of translating an HQL filter string.
-
-