KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Id: SqlFragment.java,v 1.1 2005/07/12 20:27:17 steveebersole Exp $
2
package org.hibernate.hql.ast.tree;
3
4 import org.hibernate.sql.JoinFragment;
5
6 /**
7  * Represents an SQL fragment in the AST.
8  *
9  * @author josh Dec 5, 2004 9:01:52 AM
10  */

11 public class SqlFragment extends antlr.CommonAST {
12     private JoinFragment joinFragment;
13     private FromElement fromElement;
14
15     public void setJoinFragment(JoinFragment joinFragment) {
16         this.joinFragment = joinFragment;
17     }
18
19     public boolean hasFilterCondition() {
20         return joinFragment.hasFilterCondition();
21     }
22
23     public void setFromElement(FromElement fromElement) {
24         this.fromElement = fromElement;
25     }
26
27     public FromElement getFromElement() {
28         return fromElement;
29     }
30 }
31
Popular Tags