• 大小: 4.24MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-16
  • 语言: Java
  • 标签:

资源简介

带有数据库文件的网上购物系统,原码可运行

资源截图

代码片段和文件信息

package itat.zttc.shop.dao;

import itat.zttc.shop.model.Address;
import itat.zttc.shop.model.ShopDi;
import itat.zttc.shop.model.ShopException;
import itat.zttc.shop.model.User;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AddressDao extends baseDao
 implements IAddressDao {
private IUserDao userDao;

public IUserDao getUserDao() {
return userDao;
}

@ShopDi(“userDao“)
public void setUserDao(IUserDao userDao) {
this.userDao = userDao;
}

@Override
public void add(Address address int userId) {
User u = userDao.load(userId);
if(u==null) throw new ShopException(“添加地址的用户不存在“);
address.setUser(u);
super.add(address);
}

@Override
public void update(Address address) {
super.update(address);
}

@Override
public void delete(int id) {
super.delete(Address.class id);
}

@Override
public List
 list(int userId) {
Mapject> params = new HashMapject>();
params.put(“userId“ userId);
return super.list(Address.class params);
}
@Override
public Address load(int id) {
return super.load(Address.class id);
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-09-26 21:28  shop03\
     文件         919  2012-08-22 16:56  shop03\.classpath
     文件        1039  2012-08-23 17:50  shop03\.project
     目录           0  2012-09-26 21:28  shop03\.settings\
     文件         503  2012-08-21 16:21  shop03\.settings\.jsdtscope
     文件         395  2012-08-21 16:21  shop03\.settings\org.eclipse.jdt.core.prefs
     文件         448  2012-08-21 16:21  shop03\.settings\org.eclipse.wst.common.component
     文件         345  2012-08-21 16:21  shop03\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2012-08-21 16:21  shop03\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2012-08-21 16:21  shop03\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2012-09-26 21:28  shop03\WebContent\
     目录           0  2012-09-26 21:28  shop03\WebContent\meta-INF\
     文件          39  2012-08-21 16:21  shop03\WebContent\meta-INF\MANIFEST.MF
     目录           0  2012-09-26 21:28  shop03\WebContent\WEB-INF\
     目录           0  2012-09-26 21:28  shop03\WebContent\WEB-INF\address\
     文件        1155  2012-09-24 20:28  shop03\WebContent\WEB-INF\address\addInput.jsp
     文件        1171  2012-09-24 20:55  shop03\WebContent\WEB-INF\address\updateInput.jsp
     目录           0  2012-09-26 21:28  shop03\WebContent\WEB-INF\category\
     文件         772  2012-09-24 21:47  shop03\WebContent\WEB-INF\category\addInput.jsp
     文件         277  2012-09-24 21:46  shop03\WebContent\WEB-INF\category\inc.jsp
     文件        1287  2012-09-24 22:10  shop03\WebContent\WEB-INF\category\list.jsp
     文件         688  2012-09-24 22:09  shop03\WebContent\WEB-INF\category\show.jsp
     文件         835  2012-09-24 22:23  shop03\WebContent\WEB-INF\category\updateInput.jsp
     目录           0  2012-09-26 21:28  shop03\WebContent\WEB-INF\decorators\
     文件        1929  2012-09-29 13:29  shop03\WebContent\WEB-INF\decorators\main.jsp
     文件         377  2012-09-20 21:29  shop03\WebContent\WEB-INF\decorators.xml
     目录           0  2012-09-26 21:28  shop03\WebContent\WEB-INF\inc\
     文件         357  2012-09-23 11:24  shop03\WebContent\WEB-INF\inc\error.jsp
     目录           0  2012-09-26 21:28  shop03\WebContent\WEB-INF\lib\
     文件      231891  2012-09-20 22:17  shop03\WebContent\WEB-INF\lib\commons-beanutils-1.8.2.jar
     文件       59590  2012-09-26 20:40  shop03\WebContent\WEB-INF\lib\commons-fileupload-1.2.2.jar
............此处省略195个文件信息

评论

共有 条评论