黑马程序员技术交流社区
标题:
求一个方法的详细注释
[打印本页]
作者:
刘一锋
时间:
2011-10-29 14:29
标题:
求一个方法的详细注释
*/// a=esql.baseAdd(a,"公司留言","/servlet/lderp.xitong.message_manager","",true);
public static String[] baseAdd(String[] str, String Col, String value,
String type, boolean pri) throws Exception {
str[0] = str[0] + "," + Col;
if (type.equals("date")) {
value = "to_date('" + value + "','yyyy-mm-dd')";
str[1] = str[1] + "," + value;
str[2] = str[2] + "," + Col + "=" + value;
} else if (type.equals("date16")) {
value = "to_date('" + value + "','yyyy-mm-dd HH24:MI')";
str[1] = str[1] + "," + value;
str[2] = str[2] + "," + Col + "=" + value;
} else if (type.equals("num")) {
str[1] = str[1] + "," + value;
str[2] = str[2] + "," + (pri ? "1" : "0");
} else {
str[1] = str[1] + ",'" + value + "'";
str[2] = str[2] + "," + Col + "='" + value + "'";
}
return str;
}
复制代码
作者:
咖啡
时间:
2011-10-29 22:41
高新技术部分视频有这方面的,可以去看看
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2