FileDocCategorySizeDatePackage
QueryTranslatorFactory.javaAPI DocHibernate 3.2.51352Fri Jan 27 16:40:32 GMT 2006org.hibernate.hql

QueryTranslatorFactory

public interface QueryTranslatorFactory
Facade for generation of {@link QueryTranslator} and {@link FilterTranslator} instances.
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public FilterTranslatorcreateFilterTranslator(java.lang.String queryIdentifier, java.lang.String queryString, java.util.Map filters, org.hibernate.engine.SessionFactoryImplementor factory)
Construct a {@link FilterTranslator} instance capable of translating an HQL filter string.

see
#createQueryTranslator

public QueryTranslatorcreateQueryTranslator(java.lang.String queryIdentifier, java.lang.String queryString, java.util.Map filters, org.hibernate.engine.SessionFactoryImplementor factory)
Construct a {@link QueryTranslator} instance capable of translating an HQL query string.

param
queryIdentifier The query-identifier (used in {@link 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.
param
queryString The query string to be translated
param
filters Currently enabled filters
param
factory The session factory.
return
an appropriate translator.