91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0.08M
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-23
  • 語言: 其他
  • 標簽: 其他??

資源簡介

DropDown.rar

資源截圖

代碼片段和文件信息

package?com.imooc.dao;

import?java.sql.Connection;
import?java.sql.ResultSet;
import?java.sql.SQLException;???
import?java.sql.Statement;
import?java.util.ArrayList;
import?java.util.HashMap;???
import?java.util.Map;

import?DatabaseHelp.DBHelp;

public?class?DropdownDAO?{??????
???
//獲得省
????@SuppressWarnings(“rawtypes“)
public?static??ArrayList?getprovince()?throws?SQLException?{???
????????Map?map?=?new?HashMap();???
????????ArrayList?rsList?=?new?ArrayList();
????Connection?conn?=?null;???
????Statement?stmt?=?null;???
????ResultSet?rs?=?null;
????????String?sql?=?“select?*?from?province;“?;???
????????try?{???
????????????conn?=?DBHelp.getConnection();???
????????????stmt?=?conn.createStatement();???
????????????rs?=?stmt.executeQuery(sql);???
????????????while?(rs.next())?{???
???????????? map?=?new?HashMap();??
???????????? map.put(“code“?rs.getString(“code_p“));
???????????? map.put(“name“rs.getString(“name“));
????????????????rsList.add(map);
????????????}???
????????????return?rsList;???
????????}?catch?(Exception?e)?{???
????????????System.out.println(“----獲得省的方法出現異常:“?+?e);???
????????????e.printStackTrace();???
????????????return?null;???
????????}?finally?{???
????????}???
????}???
????
????
????//根據省編號獲得市
????@SuppressWarnings(“rawtypes“)
public?static?ArrayList?getcity(String?code_p)?throws?SQLException?{???
????????Map?map?=?new?HashMap();???
ArrayList?rsList?=?new?ArrayList();
????Connection?conn?=?null;???
????Statement?stmt?=?null;???
????ResultSet?rs?=?null;
????????String?sql?=?“select?*?from?city?where?code_p=“+code_p+“;“?;???
????????try?{???
????????????conn?=?DBHelp.getConnection();???
????????????stmt?=?conn.createStatement();???
????????????rs?=?stmt.executeQuery(sql);???
????????????while?(rs.next())?{???
???????????? map?=?new?HashMap();??
???????????? map.put(“code“?rs.getString(“code_c“));
???????????? map.put(“name“rs.getString(“name“));
????????????????rsList.add(map);
????????????}???
????????????return?rsList;
????????}?catch?(Exception?e)?{???
????????????System.out.println(“----獲得市的方法出現異常:“?+?e);???
????????????e.printStackTrace();???
????????????return?null;???
????????}?finally?{???
????????}???
????}???
????
????//根據市編號獲得區
????@SuppressWarnings(“rawtypes“)
public?static?ArrayList?getarea(String?code_c)?throws?SQLException?{???
????????Map?map?=?new?HashMap();???
ArrayList?rsList?=?new?ArrayList();
????Connection?conn?=?null;???
????Statement?stmt?=?null;???
????ResultSet?rs?=?null;
????????String?sql?=?“select?*?from?area?where?code_c=“+code_c+“;“?;???
????????try?{???
????????????conn?=?DBHelp.getConnection();???
????????????stmt?=?conn.createStatement();???
?????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1197??2017-11-30?23:32??DropDown\.classpath

?????文件????????908??2017-11-30?23:05??DropDown\.project

?????文件????????567??2017-11-30?23:05??DropDown\.settings\.jsdtscope

?????文件?????????49??2017-11-30?23:20??DropDown\.settings\org.eclipse.core.resources.prefs

?????文件????????364??2017-11-30?23:05??DropDown\.settings\org.eclipse.jdt.core.prefs

?????文件????????476??2017-11-30?23:05??DropDown\.settings\org.eclipse.wst.common.component

?????文件????????345??2017-11-30?23:05??DropDown\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2017-11-30?23:05??DropDown\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2017-11-30?23:05??DropDown\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件???????3496??2017-11-30?23:44??DropDown\build\classes\com\imooc\dao\DropdownDAO.class

?????文件???????1639??2017-11-30?23:20??DropDown\build\classes\DatabaseHelp\DBHelp.class

?????文件???????2508??2017-11-30?23:44??DropDown\build\classes\DropdownServlet\Dropdown.class

?????文件???????3594??2017-11-30?23:44??DropDown\src\com\imooc\dao\DropdownDAO.java

?????文件???????1277??2017-11-30?23:20??DropDown\src\DatabaseHelp\DBHelp.java

?????文件???????1647??2017-11-30?23:44??DropDown\src\DropdownServlet\Dropdown.java

?????文件???????2397??2017-11-30?23:52??DropDown\WebContent\index.jsp

?????文件??????94020??2011-11-22?15:15??DropDown\WebContent\js\jquery\jquery-1.7.min.js

?????文件???????1562??2011-11-22?21:36??DropDown\WebContent\js\json\json-minified.js

?????文件?????????39??2017-11-30?23:05??DropDown\WebContent\meta-INF\MANIFEST.MF

?????文件?????248983??2017-11-30?23:03??DropDown\WebContent\SQL\region.sql

?????文件????????672??2017-11-30?23:50??DropDown\WebContent\WEB-INF\web.xml

?????目錄??????????0??2017-11-30?23:18??DropDown\build\classes\com\imooc\dao

?????目錄??????????0??2017-11-30?23:18??DropDown\build\classes\com\imooc

?????目錄??????????0??2017-11-30?23:18??DropDown\src\com\imooc\dao

?????目錄??????????0??2017-11-30?23:18??DropDown\build\classes\com

?????目錄??????????0??2017-11-30?23:18??DropDown\build\classes\DatabaseHelp

?????目錄??????????0??2017-11-30?23:17??DropDown\build\classes\DropdownServlet

?????目錄??????????0??2017-11-30?23:18??DropDown\src\com\imooc

?????目錄??????????0??2017-11-30?23:52??DropDown\WebContent\js\jquery

?????目錄??????????0??2017-11-30?23:52??DropDown\WebContent\js\json

............此處省略17個文件信息

評論

共有 條評論