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