public interface QueryTranslatorFactory extends Service
QueryTranslator
and FilterTranslator
instances.Modifier and Type | Method and Description |
---|---|
FilterTranslator |
createFilterTranslator(String queryIdentifier,
String queryString,
Map filters,
SessionFactoryImplementor factory)
Construct a
FilterTranslator instance capable of translating
an HQL filter string. |
QueryTranslator |
createQueryTranslator(String queryIdentifier,
String queryString,
Map filters,
SessionFactoryImplementor factory,
EntityGraphQueryHint entityGraphQueryHint)
Construct a
QueryTranslator instance capable of translating
an HQL query string. |
QueryTranslator createQueryTranslator(String queryIdentifier, String queryString, Map filters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
QueryTranslator
instance capable of translating
an HQL query string.queryIdentifier
- The query-identifier (used in
QueryStatistics
collection). 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 hintFilterTranslator createFilterTranslator(String queryIdentifier, String queryString, Map filters, SessionFactoryImplementor factory)
FilterTranslator
instance capable of translating
an HQL filter string.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.