資源簡介
工具:MyEclipse 6.5 以上版本,包含 MyEclipse 6.5 數據庫 mysql web服務器: tomcat -Apache 5.0以上版本
視頻網站的概要文檔
1. 項目描述:
2. 項目的用戶:(包含用戶的用例圖)
3. 對用戶的功能進行說明:
4. 具體的模塊劃分
用戶模塊:
視頻模塊:
評論模塊:
日志模塊:
5. 總結系統用例圖
6. 表的說明
7. 開發時工程的包(package)的說明

代碼片段和文件信息
package?com.pk.zzu.dao;
import?java.sql.Connection;
import?java.sql.PreparedStatement;
import?java.sql.ResultSet;
import?java.sql.SQLException;
import?java.util.ArrayList;
import?java.util.List;
import?com.pk.zzu.po.ChinaCity;
import?com.pk.zzu.util.DBConnUtil;
public?class?ChinaCityDao?{
private?ChinaCityDao(){
}
private?static?ChinaCityDao?dao?=?null;
public?static?ChinaCityDao?getInstance(){
if(dao?==?null){
dao?=?new?ChinaCityDao();
}
return?dao;
}
/**
?*?@return?
?*?@function:獲取省的信息
?*/
public?List?getProvince(){
List?list?=?new?ArrayList();
Connection?conn?=?null;
PreparedStatement?ps?=?null;
ResultSet?rs?=?null;
ChinaCity?city?=?null;
String?sql?=?“select?*?from?chinacity?where?substr(citypostcode34)=‘0000‘“;
conn?=?DBConnUtil.getConn();
try?{
ps?=?conn.prepareStatement(sql);
rs?=?ps.executeQuery();
while?(rs.next())?{
city?=?new?ChinaCity();
city.setCityid(rs.getInt(“cityid“));
city.setCityname(rs.getString(“cityname“));
city.setCitypostcode(rs.getString(“citypostcode“));
list.add(city);
}
}?catch?(SQLException?e)?{
e.printStackTrace();
}?finally?{
DBConnUtil.closeAll(rs?ps?conn);
}
return?list;
}
/**
?*?@param?pCode
?*?@return
?*?@fucntion:根據選擇的省得到該省下面市的信息
?*/
public?List?getCity(String?pCode){
List?list?=?new?ArrayList();
Connection?conn?=?null;
PreparedStatement?ps?=?null;
ResultSet?rs?=?null;
ChinaCity?city?=?null;
String?sql?=?“select?*?from?chinacity?where?citypostcode?like???and?citypostcode<>?“;
conn?=?DBConnUtil.getConn();
try?{
ps?=?conn.prepareStatement(sql);
ps.setString(1?pCode.substring(0?2)+“__00“);
ps.setString(2?pCode);
rs?=?ps.executeQuery();
while?(rs.next())?{
city?=?new?ChinaCity();
city.setCityid(rs.getInt(“cityid“));
city.setCityname(rs.getString(“cityname“));
city.setCitypostcode(rs.getString(“citypostcode“));
list.add(city);
}
}?catch?(SQLException?e)?{
e.printStackTrace();
}?finally?{
DBConnUtil.closeAll(rs?ps?conn);
}
return?list;
}
/*
?*?sql?select?*?from?chinacity?where?substr(citypostcode14)=??and?citypostcode<>?
?*?其中第一個參數取選擇的市的code的前四位??第二個參數就是選擇市的code
?*/
public?List?getDistrict(String?cCode){
List?list?=?new?ArrayList();
Connection?conn?=?null;
PreparedStatement?ps?=?null;
ResultSet?rs?=?null;
ChinaCity?city?=?null;
String?sql?=?“select?*?from?chinacity?where?substr(citypostcode14)=??and?citypostcode<>?“;
conn?=?DBConnUtil.getConn();
try?{
ps?=?conn.prepareStatement(sql);
ps.setString(1?cCode.substring(0?4));
ps.setString(2?cCode);
rs?=?ps.executeQuery();
while?(rs.next())?{
city?=?new?ChinaCity();
city.setCityid(rs.getInt(“cityid“));
city.setCityname(rs.getString(“
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1226??2010-09-10?21:44??zzuVideo\.project
?????文件???????1203??2010-09-10?21:44??zzuVideo\.classpath
?????文件????????297??2010-09-10?21:44??zzuVideo\.myme
?????文件???????4196??2010-09-10?21:55??zzuVideo\WebRoot\bottom.jsp
?????文件???????2380??2010-09-10?21:44??zzuVideo\WebRoot\comment.jsp
?????文件???????5911??2010-09-10?21:44??zzuVideo\WebRoot\display.jsp
?????文件???????2446??2010-09-10?21:44??zzuVideo\WebRoot\image.jsp
?????文件????????894??2010-09-10?21:44??zzuVideo\WebRoot\index.jsp
?????文件???????1237??2010-09-10?21:44??zzuVideo\WebRoot\login.jsp
?????文件???????1359??2010-09-10?21:44??zzuVideo\WebRoot\lostpwd.jsp
?????文件???????1198??2010-09-10?21:44??zzuVideo\WebRoot\lostsuc.jsp
?????文件???????1364??2010-09-10?21:44??zzuVideo\WebRoot\pagination.jsp
?????文件??????15764??2010-09-10?21:44??zzuVideo\WebRoot\reg.jsp
?????文件???????2112??2010-09-10?21:44??zzuVideo\WebRoot\regdemo.jsp
?????文件???????1112??2010-09-10?21:44??zzuVideo\WebRoot\reseterror.jsp
?????文件???????1278??2010-09-10?21:44??zzuVideo\WebRoot\resetpwd.jsp
?????文件????????986??2010-09-10?21:44??zzuVideo\WebRoot\resetsuc.jsp
?????文件???????1926??2010-09-10?21:44??zzuVideo\WebRoot\searchvideo.jsp
?????文件???????2803??2010-09-10?21:44??zzuVideo\WebRoot\showchannelvideo.jsp
?????文件???????3512??2010-09-10?21:44??zzuVideo\WebRoot\showvideo.jsp
?????文件???????1140??2010-09-10?21:44??zzuVideo\WebRoot\testdate.jsp
?????文件???????5786??2010-09-10?21:44??zzuVideo\WebRoot\top.jsp
?????文件??????60416??2010-09-10?21:44??zzuVideo\WebRoot\幫助文檔\ajax使用文檔.doc
?????文件?????222106??2010-09-10?21:44??zzuVideo\WebRoot\幫助文檔\SUN?Java編碼規范中文版.pdf
?????文件??????49562??2010-09-10?21:44??zzuVideo\WebRoot\幫助文檔\video.pdm
?????文件????????808??2010-09-10?21:44??zzuVideo\WebRoot\幫助文檔\上傳.txt
?????文件????????918??2010-09-10?21:44??zzuVideo\WebRoot\幫助文檔\包的說明.txt
?????文件??????43008??2010-09-10?21:44??zzuVideo\WebRoot\幫助文檔\文件上傳步驟.doc
?????文件??????58880??2010-09-10?21:44??zzuVideo\WebRoot\幫助文檔\監聽器.doc
?????文件??????24064??2010-09-10?21:44??zzuVideo\WebRoot\幫助文檔\視頻網站概要文檔.doc
............此處省略197個文件信息
- 上一篇:人事管理系統附完整說明書
- 下一篇:最新全國城市省市縣鎮街道數據庫包含經緯度坐標
評論
共有 條評論