• 大小: 9.24MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-25
  • 语言: 数据库
  • 标签: 视频网站  

资源简介

工具: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\.mymetadata

     文件       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个文件信息

评论

共有 条评论