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