~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to src/org/hibernate/hql/QueryTranslatorFactory.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//$Id: QueryTranslatorFactory.java 9162 2006-01-27 23:40:32Z steveebersole $
 
2
package org.hibernate.hql;
 
3
 
 
4
import org.hibernate.engine.SessionFactoryImplementor;
 
5
 
 
6
import java.util.Map;
 
7
 
 
8
/**
 
9
 * Facade for generation of {@link QueryTranslator} and {@link FilterTranslator} instances.
 
10
 *
 
11
 * @author Gavin King
 
12
 */
 
13
public interface QueryTranslatorFactory {
 
14
        /**
 
15
         * Construct a {@link QueryTranslator} instance capable of translating
 
16
         * an HQL query string.
 
17
         *
 
18
         * @param queryIdentifier The query-identifier (used in
 
19
         * {@link org.hibernate.stat.QueryStatistics} collection). This is
 
20
         * typically the same as the queryString parameter except for the case of
 
21
         * split polymorphic queries which result in multiple physical sql
 
22
         * queries.
 
23
         * @param queryString The query string to be translated
 
24
         * @param filters Currently enabled filters
 
25
         * @param factory The session factory.
 
26
         * @return an appropriate translator.
 
27
         */
 
28
        public QueryTranslator createQueryTranslator(String queryIdentifier, String queryString, Map filters, SessionFactoryImplementor factory);
 
29
 
 
30
        /**
 
31
         * Construct a {@link FilterTranslator} instance capable of translating
 
32
         * an HQL filter string.
 
33
         *
 
34
         * @see #createQueryTranslator
 
35
         */
 
36
        public FilterTranslator createFilterTranslator(String queryIdentifier, String queryString, Map filters, SessionFactoryImplementor factory);
 
37
}