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

正文內(nèi)容

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

2024-09-15 09:20本頁面
  

【正文】 { ()。 } catch (SQLException ex) { ()。 */ protected void closeResultSet(ResultSet rs) { if(rs!=null) { try { ()。 } catch (SQLException ex) { ()。 */ public CollectionBookBean getBooks() throws SQLException { Connection conn=null。 ResultSet rs=null。 try { conn = getConnection()。 rs = (select * from bookinfo)。 (book)。 } finally { closeResultSet(rs)。 closeConnection(conn)。 */ public BookBean getBook(int bookId) throws SQLException { Connection conn=null。 ResultSet rs=null。 pstmt = (select * from bookinfo where id = ?)。 rs=()。 if(()) { 23 book= new BookBean((1), (2), (3), (4), (5), (6), (7), (8))。 } finally { closeResultSet(rs)。 closeConnection(conn)。 */ public CollectionBookBean searchBook(String keyword) throws SQLException { Connection conn=null。 ResultSet rs=null。 try { conn=getConnection()。 String sql=select * from bookinfo where title like 39。 rs=(sql)。 (book)。 } finally { closeResultSet(rs)。 closeConnection(conn)。 */ public boolean isAmountEnough(int bookId, int quantity) throws SQLException { Connection conn=null。 ResultSet rs=null。 try { conn=getConnection()。 rs=(select amount from bookinfo where id = +bookId)。 if(amount = quantity) bEnough=true。 closeStatement(stmt)。 } return bEnough。 */ public synchronized void buyBooks(CartBean cart) throws SQLException { Connection conn=null。 IteratorCartItemBean it=().iterator()。 String sql=update bookinfo set amount = amount ? where id = ?。 while(()) { CartItemBean item=(CartItemBean)()。 int bookId=()。 (1,quantity)。 ()。 } finally { closePreparedStatement(pstmt)。 } } } package Bean。 import 。 import 。 private int numOfItems=0。 } /** * 在購物車中增加一個條目。 */ public synchronized void addItem(Integer bookId, BookBean book) { if(!(bookId)) { CartItemBean item=new CartItemBean(book)。 numOfItems++。 */ public synchronized void deleteItem(Integer bookId) { if((bookId)) { (bookId)。 } } /** * 清除購物車中所有的圖書條目。 numOfItems=0。 */ public synchronized int getNumOfItems() { return numOfItems。 */ public synchronized void setItemNum(Integer bookId,int quantity) { if((bookId)) { 28 CartItemBean item=(CartItemBean)(bookId)。 if(quantity=0) (bookId)。 } } /** * 得到購物車中所有圖書的價格。 IteratorCartItemBean it=().iterator()。 amount+=()。 } /** * 得到購物車中所有的圖書條目。 } /** * 判斷圖書是否已經(jīng)加入購物車中。 else return false。 import 。 //表示選購的圖書的數(shù)量 private int quantity=0。 =1。 } public BookBean getBook() { return book。 } public int getQuantity() { return quantity。 */ public float getItemPrice() { float price=()*quantity。 return val/。 ( 1)圖書基本信息表:存放網(wǎng)上書 店所銷售圖書的基本信息。 ( 3)客戶基本信息表:存放書店客戶的基本信息。 5 訂單條目詳細信息表:存放訂單中詳細條目的基本信息。通過這次課程設(shè)計,我認識到了數(shù)據(jù)庫系統(tǒng)在、查運算詢方面的突出作用,我認為數(shù)據(jù)庫可謂是數(shù)據(jù)管理系統(tǒng)最好的幫手,并且我通過與曾經(jīng)學(xué)習(xí)過的 Mysq相互比較,發(fā)現(xiàn)了數(shù)據(jù)庫 JAVA 等面向?qū)ο蟮能浖貙⒋嬉活惷嫦蛘Z言的數(shù)據(jù)庫。更深刻了解了數(shù)據(jù)庫查詢的設(shè)計和網(wǎng)頁的運行,我在設(shè)計過程中,也對一些課外的知識有了更多的認識,在動手綜合能力上也有了很大提高。在整個設(shè)計中我懂得了許多東西,也培養(yǎng)了我獨立工作的能力,樹立了對自己工作能力的信心,相信會對今后的學(xué)習(xí)工作生活有非常重要的影響。雖然這個設(shè)計做的也不太好,但是在設(shè)計過程中所學(xué)到的東西是這次課程設(shè)計的最大收獲和財富,使我終身受益
點擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1