1 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 19 public class SqlBinOpCompareAny 20 extends org.xquark.extractor.sql.SqlBinOpCompareAny { 21 22 public String toSql(Context context) 23 { 24 26 String 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 return retVal ; 38 } 39 42 public SqlBinOpCompareAny() { 43 super(); 44 } 46 47 52 public SqlBinOpCompareAny( 53 int operator, 54 SqlExpression leftOperand, 55 SqlExpression rightOperand) { 56 super(operator, leftOperand, rightOperand); 57 } 59 60 } 61 | Popular Tags |