1 22 23 package org.xquark.extractor.progress.sql; 24 25 import java.util.List ; 26 27 import org.xquark.extractor.common.Debug; 28 import org.xquark.extractor.sql.Context; 29 import org.xquark.extractor.sql.SqlExpression; 30 31 public class SfConcat extends org.xquark.extractor.sql.SfConcat { 32 private static final String RCSRevision = "$Revision: 1.4 $"; 33 private static final String RCSName = "$Name: $"; 34 35 public SfConcat() { 36 super(); 37 } 38 39 public SfConcat(List arguments) { 40 super(arguments); 41 } 42 43 public String toSql(Context context) { 44 46 StringBuffer retVal = new StringBuffer (); 47 List args = getArguments(); 48 Debug.assertTrue(1 < args.size(), "1<args.size()"); 49 50 for (int i = 0; i < args.size(); i++) { 51 SqlExpression item = (SqlExpression) args.get(i); 52 retVal.append(item.toSql(context)); 53 retVal.append(" + "); 54 } 55 retVal.delete(retVal.length() - 3, retVal.length() - 1); 56 57 return retVal.toString(); 59 } 60 } 61 | Popular Tags |