⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subtypedaoimpl.java

📁 基于STRUTS的商店源码。一个相当不错的示例。
💻 JAVA
字号:
package com.shop.dao;


import com.shop.commerce.SubType;
import com.shop.db.chStr;
import com.shop.db.connDB;

public class SubtypeDaoImpl implements SubtypeDao {
  public SubtypeDaoImpl() {
  }
connDB conn=new connDB();
chStr chStr=new chStr();
public int insert(SubType st) {
int ret=-1;
try{
  String sql = "insert into tb_subType (superType,typename) values("+st.getsuperid()+",'" + chStr.chStr(st.gettypename()) +
      "')";
  ret = conn.executeUpdate(sql);
}catch (Exception e){
  ret=0;
}
return ret;
}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -