1 22 23 package org.xquark.extractor.sybase.sql; 24 25 26 import java.util.List ; 27 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 { 33 34 private static final String RCSRevision = "$Revision: 1.4 $"; 35 private static final String RCSName = "$Name: $"; 36 37 38 public SfConcat() { 39 super(); 40 } 41 42 public SfConcat(List arguments) { 43 super(arguments); 44 } 45 46 public String toSql (Context context) 47 { 48 50 StringBuffer retVal = new StringBuffer (); 51 List args = getArguments(); 52 53 for (int i = 0; i < args.size(); i++) { 54 SqlExpression item = (SqlExpression)args.get(i); 55 retVal.append(item.toSql(context)); 56 retVal.append(" + "); 57 } 58 retVal.delete(retVal.length()-4,retVal.length()-1); 59 60 return retVal.toString(); 62 } 63 } 64 | Popular Tags |