?? supertypedaoimpl.java
字號:
package com.wgh.dao;
import commerce.SuperType;
import com.wgh.DB.connDB;
import com.wgh.DB.chStr;
public class SuperTypeDaoImpl implements SupertypeDao {
connDB conn=new connDB();
chStr chStr=new chStr();
public int insert(SuperType spt) {
int ret=-1;
try{
String sql = "insert into tb_superType (typename) values('" + chStr.chStr(spt.gettypename()) +
"')";
ret = conn.executeUpdate(sql);
}catch (Exception e){
ret=0;
}
return ret;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -