Top Description Methods
org.hibernate.hql.spi

public Interface QueryTranslatorFactory

extends Service
Known Direct Implementers
org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory, org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
Imports
java.util.Map, org.hibernate.engine.query.spi.EntityGraphQueryHint, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.service.Service

Facade for generation of QueryTranslator and FilterTranslator instances.
Authors
Gavin King, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public FilterTranslator
createFilterTranslator(String queryIdentifier, String queryString, Map<K, V> filters, SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Construct a FilterTranslator instance capable of translating an HQL filter string.
public QueryTranslator

Returns:

an appropriate translator.
createQueryTranslator
(String
The query-identifier (used in org.hibernate.stat.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.
queryIdentifier
,
String
The query string to be translated
queryString
,
Map<K, V>
Currently enabled filters
filters
,
SessionFactoryImplementor
The session factory.
factory
,
EntityGraphQueryHint
The EntityGraph provided through a JPQL query hint
entityGraphQueryHint
)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Construct a QueryTranslator instance capable of translating an HQL query string.

Method Detail

createFilterTranslatorback to summary
public FilterTranslator createFilterTranslator(String queryIdentifier, String queryString, Map<K, V> filters, SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Construct a FilterTranslator instance capable of translating an HQL filter string.

See Also
createQueryTranslator
createQueryTranslatorback to summary
public QueryTranslator createQueryTranslator(String queryIdentifier, String queryString, Map<K, V> filters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Construct a QueryTranslator instance capable of translating an HQL query string.

Parameters
queryIdentifier:String

The query-identifier (used in org.hibernate.stat.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:String

The query string to be translated

filters:Map<K, V>

Currently enabled filters

factory:SessionFactoryImplementor

The session factory.

entityGraphQueryHint:EntityGraphQueryHint

The EntityGraph provided through a JPQL query hint

Returns:QueryTranslator

an appropriate translator.