站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

QueryTranslatorFactory (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.hql
Interface QueryTranslatorFactory

All Known Implementing Classes:
ASTQueryTranslatorFactory, ClassicQueryTranslatorFactory

public interface QueryTranslatorFactory

Facade for generation of QueryTranslator and FilterTranslator instances.

Author:
Gavin King

Method Summary
 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)
          Construct a QueryTranslator instance capable of translating an HQL query string.
 

Method Detail

createQueryTranslator

public QueryTranslator createQueryTranslator(String queryIdentifier,
                                             String queryString,
                                             Map filters,
                                             SessionFactoryImplementor factory)
Construct a QueryTranslator instance capable of translating an HQL query string.

Parameters:
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 translated
filters - Currently enabled filters
factory - The session factory.
Returns:
an appropriate translator.

createFilterTranslator

public FilterTranslator createFilterTranslator(String queryIdentifier,
                                               String queryString,
                                               Map filters,
                                               SessionFactoryImplementor factory)
Construct a FilterTranslator instance capable of translating an HQL filter string.

See Also:
createQueryTranslator(java.lang.String, java.lang.String, java.util.Map, org.hibernate.engine.SessionFactoryImplementor)