KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > hql > ast > tree > HqlSqlWalkerNode


1 // $Id: HqlSqlWalkerNode.java,v 1.1 2005/07/12 20:27:16 steveebersole Exp $
2
package org.hibernate.hql.ast.tree;
3
4 import org.hibernate.hql.ast.HqlSqlWalker;
5 import org.hibernate.hql.ast.util.AliasGenerator;
6 import org.hibernate.hql.ast.util.SessionFactoryHelper;
7
8 import antlr.ASTFactory;
9
10 /**
11  * A semantic analysis node, that points back to the main analyzer.
12  *
13  * @author josh Sep 24, 2004 4:08:13 PM
14  */

15 public class HqlSqlWalkerNode extends SqlNode implements InitializeableNode {
16     /**
17      * A pointer back to the phase 2 processor.
18      */

19     private HqlSqlWalker walker;
20
21     public void initialize(Object JavaDoc param) {
22         walker = ( HqlSqlWalker ) param;
23     }
24
25     public HqlSqlWalker getWalker() {
26         return walker;
27     }
28
29     public SessionFactoryHelper getSessionFactoryHelper() {
30         return walker.getSessionFactoryHelper();
31     }
32
33     public ASTFactory getASTFactory() {
34         return walker.getASTFactory();
35     }
36
37     public AliasGenerator getAliasGenerator() {
38         return walker.getAliasGenerator();
39     }
40 }
41
Popular Tags