-
大小: 14.25MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-08-01
- 語(yǔ)言: Java
- 標(biāo)簽: jsp??網(wǎng)上購(gòu)書??
資源簡(jiǎn)介
上傳的內(nèi)容有系統(tǒng)源代碼,論文,開題報(bào)告,答辯ppt,數(shù)據(jù)庫(kù)設(shè)計(jì)模型,主要運(yùn)用jsp,struct,Ajax,SQL server的技術(shù)實(shí)現(xiàn),開發(fā)工具M(jìn)yEclipse6.0,服務(wù)器tomcat
代碼片段和文件信息
package?com.wy.dao;
import?java.sql.*;
import?java.util.*;
import?com.wy.tool.JDBConnection;
import?com.wy.domain.AfficheForm;
//對(duì)公告信息的操作
public?class?AfficheDao?{
??private?Connection?connection?=?null;?//定義連接的對(duì)象
??private?PreparedStatement?ps?=?null;?//定義預(yù)準(zhǔn)備的對(duì)象
??private?JDBConnection?jdbc?=?null;?//定義數(shù)據(jù)庫(kù)連接對(duì)象
??public?AfficheDao()?{
????jdbc?=?new?JDBConnection();
????connection?=?jdbc.connection;?//利用構(gòu)造方法取得數(shù)據(jù)庫(kù)連接
??}
??//刪除的方法
??public?void?deleteAffiche(Integer?id)?{
????try?{
??????ps?=?connection.prepareStatement(“delete?from?tb_affiche?where?id=?“);
??????ps.setInt(1?id.intValue());
??????ps.executeUpdate();
??????ps.close();
????}
????catch?(SQLException?ex)?{
????}
??}
??//修改的方法
??public?void?updateAffiche(AfficheForm?form)?{
????try?{
??????ps?=?connection.prepareStatement(“update?tb_affiche?set?name=?content=??where?id=?“);
??????ps.setString(1?form.getName());
??????ps.setString(2?form.getContent());
??????ps.setInt(3?form.getId().intValue());
??????ps.executeUpdate();
??????ps.close();
????}
????catch?(SQLException?ex)?{
????}
??}
//添加的方法
??public?void?insertAffiche(AfficheForm?form)?{
????try?{
??????ps?=?connection.prepareStatement(“insert?into?tb_affiche?values?(??getDate())“);
??????ps.setString(1?form.getName());
??????ps.setString(2?form.getContent());
??????ps.executeUpdate();
??????ps.close();
????}
????catch?(SQLException?ex)?{
????}
??}
//以數(shù)據(jù)庫(kù)流水號(hào)為條件查詢信息
??public?AfficheForm?selectOneAffiche(Integer?id)?{
????AfficheForm?affiche?=?null;
????try?{
??????ps?=?connection.prepareStatement(“select?*?from?tb_affiche?where?id=?“);
??????ps.setInt(1?id.intValue());
??????ResultSet?rs?=?ps.executeQuery();
??????while?(rs.next())?{
????????affiche?=?new?AfficheForm();
????????affiche.setId(Integer.valueOf(rs.getString(1)));
????????affiche.setName(rs.getString(2));
????????affiche.setContent(rs.getString(3));
????????affiche.setIssueTime(rs.getString(4));
??????}
????}
????catch?(SQLException?ex)?{
????}
????return?affiche;
??}
//全部查詢的方法
??public?List?selectAffiche()?{
????List?list?=?new?ArrayList();
????AfficheForm?affiche?=?null;
????try?{
??????ps?=?connection.prepareStatement(“select?*?from?tb_affiche?order?by?id?DESC“);
??????ResultSet?rs?=?ps.executeQuery();
??????while?(rs.next())?{
????????affiche?=?new?AfficheForm();
????????affiche.setId(Integer.valueOf(rs.getString(1)));
????????affiche.setName(rs.getString(2));
????????affiche.setContent(rs.getString(3));
????????affiche.setIssueTime(rs.getString(4));
????????list.add(affiche);
??????}
????}
????catch?(SQLException?ex)?{
????}
????return?list;
??}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????2441728??2010-06-10?16:57??畢業(yè)設(shè)計(jì)最終版\0618014058-胡開軍.ppt
?????文件???????2097??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-afficheContent.jsp
?????文件???????2240??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-afficheInsert.jsp
?????文件???????3636??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-afficheSelect.jsp
?????文件???????2533??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-afficheUpdate.jsp
?????文件???????2067??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-bigTypeInsert.jsp
?????文件????????392??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-bigTypeResult.jsp
?????文件???????3570??2010-06-01?16:34??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-bigTypeSelect.jsp
?????文件????????903??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-checkMemberResult.jsp
?????文件????????222??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-down.jsp
?????文件???????4763??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-goodInsert.jsp
?????文件???????4251??2010-06-01?16:35??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-goodSelect.jsp
?????文件???????3917??2010-06-01?16:36??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-goodSelectBig.jsp
?????文件???????3930??2010-06-01?16:35??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-goodSelectContent.jsp
?????文件???????3935??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-goodSelectSmall.jsp
?????文件???????4340??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-goodsFreePirce.jsp
?????文件???????3890??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-goodsMarkSelect.jsp
?????文件????????390??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-goodsResult.jsp
?????文件???????1954??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-land.jsp
?????文件????????655??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-landResult.jsp
?????文件???????6163??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-left.jsp
?????文件???????2351??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-li
?????文件???????3381??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-li
?????文件???????2632??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-managerInsert.jsp
?????文件???????3878??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-managerSelect.jsp
?????文件???????3246??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-managerUpdatePassword.jsp
?????文件????????795??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-memberSuccess.jsp
?????文件???????3969??2010-06-01?16:33??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-orderContent.jsp
?????文件???????4548??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-orderSelect.jsp
?????文件????????401??2010-05-28?13:01??畢業(yè)設(shè)計(jì)最終版\ROOT\bg-resultMember.jsp
............此處省略490個(gè)文件信息
評(píng)論
共有 條評(píng)論