黑马程序员技术交流社区

标题: 求一个方法的详细注释 [打印本页]

作者: 刘一锋    时间: 2011-10-29 14:29
标题: 求一个方法的详细注释
  1. */// a=esql.baseAdd(a,"公司留言","/servlet/lderp.xitong.message_manager","",true);
  2.         public static String[] baseAdd(String[] str, String Col, String value,
  3.                         String type, boolean pri) throws Exception {
  4.                 str[0] = str[0] + "," + Col;
  5.                 if (type.equals("date")) {
  6.                         value = "to_date('" + value + "','yyyy-mm-dd')";
  7.                         str[1] = str[1] + "," + value;
  8.                         str[2] = str[2] + "," + Col + "=" + value;
  9.                 } else if (type.equals("date16")) {
  10.                         value = "to_date('" + value + "','yyyy-mm-dd HH24:MI')";
  11.                         str[1] = str[1] + "," + value;
  12.                         str[2] = str[2] + "," + Col + "=" + value;
  13.                 } else if (type.equals("num")) {
  14.                         str[1] = str[1] + "," + value;
  15.                         str[2] = str[2] + "," + (pri ? "1" : "0");
  16.                 } else {
  17.                         str[1] = str[1] + ",'" + value + "'";
  18.                         str[2] = str[2] + "," + Col + "='" + value + "'";
  19.                 }
  20.                 return str;
  21.         }
复制代码

作者: 咖啡    时间: 2011-10-29 22:41
高新技术部分视频有这方面的,可以去看看




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2