KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > extractor > mysql > sql > SqlBinOpCompareAny


1 /*
2  * Created on 30 janv. 2004
3  *
4  * To change the template for this generated file go to
5  * Window - Preferences - Java - Code Generation - Code and Comments
6  */

7 package org.xquark.extractor.mysql.sql;
8
9 import org.xquark.extractor.sql.Context;
10 import org.xquark.extractor.sql.SqlExpression;
11 import org.xquark.extractor.sql.SqlLitList;
12
13 /**
14  * @author sr
15  *
16  * To change the template for this generated type comment go to
17  * Window - Preferences - Java - Code Generation - Code and Comments
18  */

19 public class SqlBinOpCompareAny
20     extends org.xquark.extractor.sql.SqlBinOpCompareAny {
21
22         public String JavaDoc toSql(Context context)
23         {
24             //Trace.enter(this,"toSql(Context context)");
25

26             String JavaDoc retVal ;
27
28             retVal = " ( "+getLeftOperand().toSql(context)+ " ) IN " ;
29             if (getRightOperand() instanceof SqlLitList) {
30                 retVal += getRightOperand().toSql(context);
31             }
32             else {
33                 retVal += " ( "+getRightOperand().toSql(context)+ " ) " ;
34             }
35
36             //Trace.exit(this,"toSql",retVal);
37
return retVal ;
38         }
39     /**
40      *
41      */

42     public SqlBinOpCompareAny() {
43         super();
44         // TODO Auto-generated constructor stub
45
}
46
47     /**
48      * @param operator
49      * @param leftOperand
50      * @param rightOperand
51      */

52     public SqlBinOpCompareAny(
53         int operator,
54         SqlExpression leftOperand,
55         SqlExpression rightOperand) {
56         super(operator, leftOperand, rightOperand);
57         // TODO Auto-generated constructor stub
58
}
59
60 }
61
Popular Tags