資源簡介
我的數據庫課程設計,希望對大家有幫助。
網上書店系統。

代碼片段和文件信息
package?com.bsw.book;
import?java.sql.Date;
public?class?Book?{
/**
?*?圖書的編號
?*/
private?int?id;
/**
?*?圖書的姓名
?*/
private?String?name;
/**
?*?圖書的作者
?*/
private?String?author;
/**
?*?圖書的出版社
?*/
private?String?bookman;
/**
?*?圖書的狀態?0缺貨?1有貨?2待出版
?*/
private?int?status;
/**
?*?圖書的單價
?*/
private?double?price;
/**
?*?圖書所在的圖書類別的編號
?*/
private?int?categoryId;
/**
?*?圖書的上架時間
?*/
private?Date?addTime;
/**
?*?圖書的入庫數量
?*/
private?int?total;
/**
?*?圖書的現有庫存
?*/
private?int?currentNum;
/**
?*?圖書的簡介
?*/
private?String?introduction;
/**
?*?無參構造函數
?*/
public?Book()?{}
public?Book(String?name?String?author?String?bookman?int?status
double?price?int?categoryId?String?introduction
Date?addTimeint?total)?{
this.name?=?name;
this.author?=?author;
this.bookman?=?bookman;
this.status?=?status;
this.price?=?price;
this.categoryId?=?categoryId;
this.introduction?=?introduction;
this.addTime?=?addTime;
this.total?=?total;
this.currentNum?=?total;?
}
/**
?*?獲得圖書的作者
?*/
public?String?getAuthor()?{
return?author;
}
/**
?*?設置圖書的作者
?*/
public?void?setAuthor(String?author)?{
this.author?=?author;
}
/**
?*?獲得圖書的出版社
?*/
public?String?getBookman()?{
return?bookman;
}
/**
?*?設置圖書的出版社
?*/
public?void?setBookman(String?bookman)?{
this.bookman?=?bookman;
}
/**
?*?獲得圖書所在的圖書編號
?*/
public?int?getCategoryId()?{
return?categoryId;
}
/**
?*?設置圖書所在的圖書編號
?*/
public?void?setCategoryId(int?categoryId)?{
this.categoryId?=?categoryId;
}
/**
?*?獲得圖書的編號
?*/
public?int?getId()?{
return?id;
}
/**
?*?設置圖書的編號
?*/
public?void?setId(int?id)?{
this.id?=?id;
}
/**
?*?獲得圖書的簡介
?*/
public?String?getIntroduction()?{
return?introduction;
}
/**
?*?設置圖書的簡介
?*/
public?void?setIntroduction(String?introduction)?{
this.introduction?=?introduction;
}
/**
?*?獲得圖書的名稱
?*/
public?String?getName()?{
return?name;
}
/**
?*?設置圖書的名稱
?*/
public?void?setName(String?name)?{
this.name?=?name;
}
/**
?*?獲得圖書的價格
?*/
public?double?getPrice()?{
return?price;
}
?
/**
?*?設置圖書的價格
?*/
public?void?setPrice(double?price)?{
this.price?=?price;
}
/**
?*?獲得圖書的狀態
?*/
public?int?getStatus()?{
return?status;
}
/**
?*?設置圖書的狀態
?*/
public?void?setStatus(int?status)?{
this.status?=?status;
}
/**
?*?獲得上架時間
?*/
public?Date?getAddTime()?{
return?addTime;
}
/**
?*?設置圖書的上架時間
?*/
public?void?setAddTime(Date?addTime)?{
this.addTime?=?addTime;
}
/**
?*?獲得圖書的總數量
?*/
public?int?getTotal()?{
return?total;
}
/**
?*?設置圖書的總數量
?
?*/
public?void?setTotal(int?total)?{
this.total?=?total;
}
/**
?*?獲得現有庫存數量
?*?現有庫存數量
?*/
public?in
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????433??2009-05-16?17:21??網上書店系統\BookShop\.classpath
?????文件????????297??2009-05-16?15:17??網上書店系統\BookShop\.myme
?????文件???????1414??2009-05-16?16:10??網上書店系統\BookShop\.project
?????文件????????500??2009-05-16?16:10??網上書店系統\BookShop\.settings\.jsdtscope
?????文件?????????49??2009-05-16?16:10??網上書店系統\BookShop\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2009-05-16?16:10??網上書店系統\BookShop\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????3389??2009-05-16?20:23??網上書店系統\BookShop\src\com\bsw\book\Book.java
?????文件???????8803??2009-05-16?20:28??網上書店系統\BookShop\src\com\bsw\book\BookDAO.java
?????文件????????460??2009-05-16?20:29??網上書店系統\BookShop\src\com\bsw\bookcategory\BookCategory.java
?????文件???????3457??2009-05-16?20:31??網上書店系統\BookShop\src\com\bsw\bookcategory\BookCategoryDAO.java
?????文件???????1359??2009-05-16?20:32??網上書店系統\BookShop\src\com\bsw\db\DBManager.java
?????文件???????1574??2009-05-16?20:33??網上書店系統\BookShop\src\com\bsw\servlet\common\AbstractServlet.java
?????文件???????1768??2009-05-16?20:37??網上書店系統\BookShop\src\com\bsw\servlet\common\AddNewBookControl.java
?????文件???????2724??2009-05-16?20:55??網上書店系統\BookShop\src\com\bsw\servlet\common\BookCateManagerControl.java
?????文件???????1749??2009-05-16?20:56??網上書店系統\BookShop\src\com\bsw\servlet\common\BookDetailControl.java
?????文件???????3988??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\common\BookInfoManageControl.java
?????文件???????2907??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\common\CategoryDetailControl.java
?????文件???????4173??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\common\LoginControl.java
?????文件???????3680??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\common\ManagerControl.java
?????文件???????2110??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\common\ModifyBookControl.java
?????文件???????4213??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\common\RegisterControl.java
?????文件???????2633??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\common\WelcomeControl.java
?????文件???????1955??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\shopcart\AddToShopCartControl.java
?????文件???????1880??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\shopcart\ChangeShopCartItemControl.java
?????文件???????2098??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\shopcart\ChargeControl.java
?????文件???????1744??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\shopcart\DeleteShopCartItemControl.java
?????文件???????1232??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\shopcart\ModifyShopCartItemControl.java
?????文件???????1395??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\servlet\shopcart\ShopCartControl.java
?????文件???????2345??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\shopcart\ShopCart.java
?????文件???????6145??2009-05-16?15:17??網上書店系統\BookShop\src\com\bsw\shopcart\ShopCartDAO.java
............此處省略126個文件信息
評論
共有 條評論