KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > hql > classic > ClassicQueryTranslatorFactory


1 //$Id: ClassicQueryTranslatorFactory.java,v 1.3 2005/02/12 18:48:19 pgmjsd Exp $
2
package org.hibernate.hql.classic;
3
4 import org.hibernate.engine.SessionFactoryImplementor;
5 import org.hibernate.hql.FilterTranslator;
6 import org.hibernate.hql.QueryTranslator;
7 import org.hibernate.hql.QueryTranslatorFactory;
8
9 import java.util.Map JavaDoc;
10
11 /**
12  * @author Gavin King
13  */

14 public class ClassicQueryTranslatorFactory implements QueryTranslatorFactory {
15
16     public QueryTranslator createQueryTranslator(
17             String JavaDoc queryString,
18             Map JavaDoc filters,
19             SessionFactoryImplementor factory) {
20         return new QueryTranslatorImpl( queryString, filters, factory );
21     }
22
23     public FilterTranslator createFilterTranslator(String JavaDoc queryString,
24                                                    Map JavaDoc filters, SessionFactoryImplementor factory) {
25         return new QueryTranslatorImpl( queryString, filters, factory );
26     }
27
28 }
29
Popular Tags