• 大小: 1.05MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-10
  • 语言: Java
  • 标签: swing  java  

资源简介

内有数据库sql文件,图书管理界面,包括登录界面,图书的添加查看等等,欢迎下载

资源截图

代码片段和文件信息

package com.HPioneer.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.HPioneer.model.Book;
import com.HPioneer.model.BookType;
import com.HPioneer.util.StringUtil;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;

/**
 * 图书Dao类
 * @author H_Pioneer
 *
 */
public class BookDao {

/**
 * 图书添加
 * @param con
 * @param book
 * @return
 * @throws Exception
 */
public int add(Connection conBook book)throws Exception{
//这个可以写有参构造,不要id,就方便了,以后多注意吧
String sql=“insert into t_book values(null??????)“;
PreparedStatement pstmt=(PreparedStatement) con.prepareStatement(sql);
pstmt.setString(1 book.getBookName());
pstmt.setString(2 book.getAuthor());
pstmt.setString(3 book.getSex());
pstmt.s

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

     文件        533  2018-09-04 19:25  BookManger\.classpath

     文件        386  2018-09-04 19:25  BookManger\.project

     文件        598  2018-09-04 19:25  BookManger\.settings\org.eclipse.jdt.core.prefs

     文件       3409  2018-09-04 19:27  BookManger\bin\com\HPioneer\dao\BookDao.class

     文件       2533  2018-09-04 19:27  BookManger\bin\com\HPioneer\dao\BookTypeDao.class

     文件       1636  2018-09-04 19:27  BookManger\bin\com\HPioneer\dao\UserDao.class

     文件       2744  2018-09-04 19:27  BookManger\bin\com\HPioneer\model\Book.class

     文件       1346  2018-09-04 19:27  BookManger\bin\com\HPioneer\model\BookType.class

     文件       1073  2018-09-04 19:27  BookManger\bin\com\HPioneer\model\User.class

     文件       1744  2018-09-04 19:27  BookManger\bin\com\HPioneer\util\DbUtil.class

     文件        679  2018-09-04 19:27  BookManger\bin\com\HPioneer\util\StringUtil.class

     文件        794  2018-09-04 19:27  BookManger\bin\com\HPioneer\view\BookAddInterFrm$1.class

     文件        816  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookAddInterFrm$2.class

     文件        816  2018-09-04 19:27  BookManger\bin\com\HPioneer\view\BookAddInterFrm$3.class

     文件       9831  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookAddInterFrm.class

     文件        809  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookManageInterFrm$1.class

     文件        839  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookManageInterFrm$2.class

     文件        839  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookManageInterFrm$3.class

     文件        837  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookManageInterFrm$4.class

     文件        807  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookManageInterFrm$5.class

     文件        924  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookManageInterFrm$6.class

     文件      17001  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookManageInterFrm.class

     文件        814  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookTypeAddInterFrm$1.class

     文件        738  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookTypeAddInterFrm$2.class

     文件        789  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookTypeAddInterFrm$3.class

     文件        844  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookTypeAddInterFrm$4.class

     文件       6747  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookTypeAddInterFrm.class

     文件        834  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookTypeManagerInterFrm$1.class

     文件        872  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookTypeManagerInterFrm$2.class

     文件        872  2018-09-04 19:26  BookManger\bin\com\HPioneer\view\BookTypeManagerInterFrm$3.class

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

评论

共有 条评论