-
大小: 502KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-05-07
- 語(yǔ)言: 其他
- 標(biāo)簽: xml??dom4j??控制臺(tái)??原創(chuàng)??
資源簡(jiǎn)介
基于xml的商品信息管理系統(tǒng),絕對(duì)原創(chuàng),調(diào)試可用

代碼片段和文件信息
package?cn.itcast.dao;
import?java.io.IOException;
import?java.util.List;
import?org.dom4j.DocumentException;
import?org.dom4j.Element;
import?cn.itcast.domain.Book;
import?cn.itcast.utils.xmlUtils;
public?class?BookDao?{
//查詢
//查詢出所有的book
public?List?selectAllProducts()?throws?Exception{
return?xmlUtils.selectAllProduct();
}
//根據(jù)id查詢書籍
public?Book?selectProductById(String?id)?throws?Exception{
return?xmlUtils.selectProductById(id);
}
//增加
public?void?createProduct(Book?book)?throws?Exception{
xmlUtils.createProduct(book);
}
//刪除
public?void?deleteProductById(String?id)?throws?Exception{
xmlUtils.deleteProduct(id);
}
//修改
public?void?updateProduct(String?id?String?name?String?value)?throws?Exception{
xmlUtils.updateProduct(id?name?value);
}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????500??2012-11-01?20:41??ProductsSystem\.classpath
?????文件????????390??2012-11-01?20:25??ProductsSystem\.project
?????文件????????629??2012-11-01?20:25??ProductsSystem\.settings\org.eclipse.jdt.core.prefs
?????文件???????1267??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\dao\BookDao.class
?????文件???????1883??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\domain\Book.class
?????文件????????407??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\junit\DaoTest.class
?????文件???????1558??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\junit\UtilTest.class
?????文件???????3212??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\UI\UiMain.class
?????文件???????5458??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\utils\xm
?????文件?????313898??2012-10-31?17:53??ProductsSystem\lib\dom4j-1.6.1.jar
?????文件?????244330??2012-10-31?17:53??ProductsSystem\lib\jaxen-1.1-beta-6.jar
?????文件????????114??2012-11-02?08:59??ProductsSystem\MANIFEST.MF
?????文件????????881??2012-11-01?23:34??ProductsSystem\src\cn\itcast\dao\BookDao.java
?????文件???????1221??2012-11-02?23:02??ProductsSystem\src\cn\itcast\domain\Book.java
?????文件????????158??2012-11-01?23:35??ProductsSystem\src\cn\itcast\junit\DaoTest.java
?????文件????????909??2012-11-02?13:13??ProductsSystem\src\cn\itcast\junit\UtilTest.java
?????文件???????2555??2012-11-02?13:09??ProductsSystem\src\cn\itcast\UI\UiMain.java
?????文件???????5328??2012-11-03?18:49??ProductsSystem\src\cn\itcast\utils\xm
?????文件????????446??2012-11-02?13:11??ProductsSystem\xm
?????目錄??????????0??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\dao
?????目錄??????????0??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\domain
?????目錄??????????0??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\junit
?????目錄??????????0??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\UI
?????目錄??????????0??2012-11-05?23:57??ProductsSystem\bin\cn\itcast\utils
?????目錄??????????0??2012-11-01?20:28??ProductsSystem\src\cn\itcast\dao
?????目錄??????????0??2012-11-01?20:26??ProductsSystem\src\cn\itcast\domain
?????目錄??????????0??2012-11-01?20:44??ProductsSystem\src\cn\itcast\junit
?????目錄??????????0??2012-11-01?23:37??ProductsSystem\src\cn\itcast\UI
?????目錄??????????0??2012-11-01?20:29??ProductsSystem\src\cn\itcast\utils
?????目錄??????????0??2012-11-05?23:57??ProductsSystem\bin\cn\itcast
............此處省略12個(gè)文件信息
評(píng)論
共有 條評(píng)論