1 22 23 package org.xquark.extractor.sql; 24 25 26 27 public class SfNVL extends org.xquark.extractor.sql.SqlFunction { 28 29 private static final String RCSRevision = "$Revision: 1.4 $"; 30 private static final String RCSName = "$Name: $"; 31 32 33 public SfNVL() 34 { 35 super("SfNVL"); 36 } 37 38 public SfNVL( SqlExpression arg0, SqlExpression arg1) 39 { 40 super("SfNVL"); 41 setArgument(0,arg0); 42 setArgument(1,arg1); 43 } 44 45 public String toSql(Context context) 46 { 47 49 StringBuffer retVal = new StringBuffer (); 50 retVal.append("CONTAINS("); 51 retVal.append(getArgument(0).toSql(context)); 52 retVal.append(", "); 53 retVal.append(getArgument(1).toSql(context)); 54 55 return retVal.toString(); 57 } 58 59 } 60 | Popular Tags |