freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

網(wǎng)上書店系統(tǒng)jsp課程設(shè)計-閱讀頁

2024-08-23 05:01本頁面
  

【正文】 } } } /** * 關(guān)閉PreparedStatement對象。 pstmt=null。 } } } /** * 關(guān)閉ResultSet對象。 rs=null。 } } } /** * 得到數(shù)據(jù)庫中所有的圖書信息。 Statement stmt=null。 ArrayListBookBean bookList=new ArrayListBookBean()。 stmt = ()。 while (()) { BookBean book = new BookBean((1), (2), (3), (4), (5), (6), (7), (8))。 } return bookList。 closeStatement(stmt)。 } } /** *得到選擇的圖書信息。 PreparedStatement pstmt=null。 try { conn = getConnection()。 (1,bookId)。 BookBean book=null。 } return book。 closePreparedStatement(pstmt)。 } } /** * 通過關(guān)鍵字搜索圖書的信息。 Statement stmt=null。 ArrayListBookBean bookList=new ArrayListBookBean()。 stmt=()。%+keyword+%39。 while (()) { BookBean book = new BookBean((1), (2), (3), (4), (5), (6), (7), (8))。 } return bookList。 closeStatement(stmt)。 } } /** * 判斷剩余的圖書的數(shù)量是否大于客戶購買的數(shù)量。 Statement stmt=null。 boolean bEnough=false。 stmt=()。 while(()) { int amount=(1)。 } } finally { closeResultSet(rs)。 closeConnection(conn)。 } /** * 購買購物車中所有的圖書。 PreparedStatement pstmt=null。 try { conn=getConnection()。 pstmt=(sql)。 BookBean book=()。 int quantity=()。 (2,bookId)。 } ()。 closeConnection(conn)。import 。import 。public class CartBean implements Serializable{ private HashMapInteger,CartItemBean items=null。 public CartBean() { items=new HashMapInteger,CartItemBean()。如果購物車中已經(jīng)存在該條目,則什么也不做。 (bookId,item)。 } } /** * 從購物車刪除一個圖書條目。 numOfItems。 */ public synchronized void clear() { ()。 } /** * 得到購物車中圖書條目的總數(shù)。 } /** * 設(shè)置某本圖書的購買數(shù)量。 //如果設(shè)置的圖書數(shù)量為0或小于0,則刪除購物車中相應(yīng)的圖書條目。 else (quantity)。 */ public synchronized float getTotalPrice() { float amount=。 while(()) { CartItemBean item=(CartItemBean)()。 } return amount。 */ public synchronized CollectionCartItemBean getItems() { return ()。 */ public synchronized boolean isExist(Integer bookId) { if((bookId)) return true。 }}package Bean。public class CartItemBean implements Serializable{ private BookBean book=null。 public CartItemBean() { } public CartItemBean(BookBean book) { =book。 } public void setBook(BookBean book) { = book。 } public void setQuantity(int quantity) { = quantity。 } /** *得到本條目所購圖書價格的合計,總價 = 圖書的單價 * 數(shù)量。 long val=(price*100)。 }}三.運行界面四.?dāng)?shù)據(jù)庫設(shè)計1.需求分析依據(jù)網(wǎng)上書店的處理需求,對就數(shù)據(jù)表的設(shè)計及功能如下。(2)圖書分類基本信息表:存放網(wǎng)上書店所提供圖書分類的信息。(4)訂單信息表:存放與客戶相關(guān)的訂單的基本信息。2.表的設(shè)計網(wǎng)上書店系統(tǒng)數(shù)據(jù)庫設(shè)計模塊基本表信息:五.總結(jié)利用這次課程設(shè)計學(xué)會了JSP和Mysql在WEB應(yīng)用的一些基本知識,并通過網(wǎng)上書店的程序?qū)SP的運用進行了深化, JSP與Mysq結(jié)合的模式,在電子商務(wù)上應(yīng)用十分靈活,不過要真正掌握好它們卻并不是一件容易的事情,在實際應(yīng)用的WEB開發(fā)中,還有很多關(guān)于安全方面的問題需要考慮。學(xué)習(xí)到了更多更新的知識,并且把以前在理論學(xué)習(xí)中的學(xué)多問題在實踐中得到了驗證。在設(shè)計過程中,通過查閱大量有關(guān)資料,與同學(xué)交流經(jīng)驗和自學(xué),使自己學(xué)到了不少知識,也經(jīng)歷了不少艱辛,但收獲同樣巨大。而且大大提高了動手的能力,使我充分體會到了在創(chuàng)造過程中探索的艱難和成功時的喜悅。六.參考文獻1. Java語言程序設(shè)計2. java web3 jsp/servlet程序設(shè)34
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1