• 大小: 6.78M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-27
  • 语言: Java
  • 标签: 书城  

资源简介

网上书店源码

资源截图

代码片段和文件信息

package cn.itcast.itcaststore.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import org.apache.commons.dbutils.handlers.BeanListHandler;

import cn.itcast.itcaststore.domain.Notice;
import cn.itcast.itcaststore.utils.DataSourceUtils;

public class NoticeDao {
//后台系统,查询所有的公告
public List getAllNotices() throws SQLException {
String sql = “select * from notice order by n_time desc limit 010“;
QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource());
return runner.query(sql new BeanListHandler(Notice.class));
}

//后台系统,添加公告
public void addNotice(Notice n) throws SQLException {
String sql = “insert into notice(title

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1546  2016-02-19 17:12  《传智书城》源代码\itcaststore\.classpath

     文件       1044  2016-02-16 10:03  《传智书城》源代码\itcaststore\.project

     文件        503  2016-02-16 10:03  《传智书城》源代码\itcaststore\.settings\.jsdtscope

     文件        364  2016-02-16 10:03  《传智书城》源代码\itcaststore\.settings\org.eclipse.jdt.core.prefs

     文件        485  2016-02-16 10:03  《传智书城》源代码\itcaststore\.settings\org.eclipse.wst.common.component

     文件        305  2016-02-19 16:53  《传智书城》源代码\itcaststore\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2016-02-16 10:03  《传智书城》源代码\itcaststore\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2016-02-16 10:03  《传智书城》源代码\itcaststore\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        330  2016-02-16 10:15  《传智书城》源代码\itcaststore\build\classes\c3p0-config.xml

     文件       2908  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\NoticeDao.class

     文件       2501  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\OrderDao$1.class

     文件       2832  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\OrderDao$2.class

     文件       3143  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\OrderDao$3.class

     文件       3199  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\OrderDao$4.class

     文件       5032  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\OrderDao.class

     文件       2669  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\OrderItemDao$1.class

     文件       3005  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\OrderItemDao.class

     文件       9083  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\ProductDao.class

     文件       2559  2016-04-15 11:09  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\dao\UserDao.class

     文件       1132  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\domain\Notice.class

     文件       3358  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\domain\Order.class

     文件       1123  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\domain\OrderItem.class

     文件       2186  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\domain\PageBean.class

     文件       3280  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\domain\Product.class

     文件       3115  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\domain\User.class

     文件        845  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\exception\ActiveUserException.class

     文件        845  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\exception\AddProductException.class

     文件        860  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\exception\FindProductByIdException.class

     文件        848  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\exception\ListProductException.class

     文件        830  2016-02-19 17:12  《传智书城》源代码\itcaststore\build\classes\cn\itcast\itcaststore\exception\LoginException.class

............此处省略559个文件信息

评论

共有 条评论