1 22 23 package org.xquark.extractor.progress.sql; 24 25 26 import org.xquark.extractor.sql.Context; 27 import org.xquark.extractor.sql.SqlExpression; 28 29 public class SqlUnOpIsNull extends org.xquark.extractor.sql.SqlUnOpIsNull 30 { 31 32 private static final String RCSRevision = "$Revision: 1.4 $"; 33 private static final String RCSName = "$Name: $"; 34 35 36 public SqlUnOpIsNull() { 37 } 38 39 public SqlUnOpIsNull(SqlExpression expr, boolean notIsNull) { 40 super(expr, notIsNull); 41 } 42 public String toSql(Context context) 43 { 44 46 StringBuffer retVal = new StringBuffer (); 47 retVal.append(getOperand().toSql(context)); 48 if ( getNot() ) 49 { 50 retVal.append(" IS NOT NULL"); 51 } 52 else 53 { 54 retVal.append(" IS NULL"); 55 } 56 57 return retVal.toString(); 59 } 60 } 61 | Popular Tags |