freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

畢業(yè)設計-基于jsp教師個人網(wǎng)絡教學平臺系統(tǒng)-資料下載頁

2025-11-24 19:29本頁面
  

【正文】 光軍 胡波 編著 北京航空航天大學出版社 202106 [8] 《 JSP 從入門到精通》庫克 著 谷雨 譯 電子工業(yè)出版社 202103 [9] 《 Eclipse 從入門到精通》(第二版)陳剛 編著 清華大學出版社 202107 [10] 《軟件工程導論》(第四版 ) 張海藩 著 清華大學 出版 202111 [11] 《軟件工程 :方法與實踐》許家珆 著 電子工業(yè)出版社 202101 [12] 《軟件質量和軟件測試》 [德 ]胡伯蒂( Dirk Huberty)等 著,馬博,趙云龍 譯 清華大學出版社 202111 [13] 《 JavaScript 權威指南》(第四版)(美)弗萊( Flanagan,D.)著,張銘澤等 譯 機械工業(yè)出版社 202101 [14] 《 J2EE 參考大全》基奧 著 寧建平 譯 電子工業(yè)出版 202105 **大學學士學位論文(設計) 33 附錄 : 部分模塊代碼 數(shù)據(jù)庫鏈接 代碼實現(xiàn)部分 package 。 import 。 import 。 import 。 import 。 import 。 import 。 public class ConnectionManager { private static Connection conn = null。 private static final String db_driver = 。 private static final String db_url = jdbc: private static final String db_user = root。 private static final String db_pwd = root。 /** * 獲取數(shù)據(jù)庫鏈接 */ public static Connection getConnection() throws AppException { try { (db_driver)。 conn = (db_url, db_user, db_pwd)。 } catch (ClassNotFoundException e) { throw new AppException(獲取數(shù) 據(jù)庫驅動出錯! )。 } catch (SQLException e) { throw new AppException(獲取數(shù)據(jù)庫鏈接出錯! )。 } return conn。 } /** * 釋放資源 * @param conn 數(shù)據(jù)庫連接 * @param pstmt PreparedStatement對象 **大學學士學位論文(設計) 34 * @param rs 結果集 */ public void closeAll(Connection conn, PreparedStatement pstmt, ResultSet rs) throws AppException { /* 如果 rs不空,關閉 rs */ if (rs != null) { try { ()。 } catch (SQLException e) { throw new AppException(關閉記錄集出錯! )。 } } /* 如果 pstmt不空,關閉 pstmt */ if (pstmt != null) { try { ()。 } catch (SQLException e) { throw new AppException(關閉預編譯對象出錯! )。 } } /* 如果 conn不空,關閉 conn */ if (conn != null) { try { ()。 } catch (SQLException e) { throw new AppException(關閉數(shù)據(jù)庫鏈接出錯! )。 } } } public static void main(String[] args) { try { Connection conn = getConnection()。 PreparedStatement ps = (select * from)。 ()。 ()。 ()。 } catch (AppException e) { ()。 **大學學士學位論文(設計) 35 } catch (SQLException e) { ()。 } } } 查詢 信息 部分 package 。 import .*。 import 。 public class DBConnect { private Connection conn = null。 private Statement stmt = null。 private PreparedStatement prepstmt = null。 void init() throws AppException { conn = ()。 } /** * 構造數(shù)據(jù)庫的連接和訪問類 */ public DBConnect() throws Exception { init()。 stmt = ()。 } public DBConnect(int resultSetType, int resultSetConcurrency) throws Exception { init()。 stmt = (resultSetType, resultSetConcurrency)。 } /** * 構造數(shù)據(jù)庫的連接和訪問類 * 預編譯 SQL語句 * @param sql SQL語句 */ public DBConnect(String sql) throws Exception { init()。 **大學學士學位論文(設計) 36 (sql)。 } public DBConnect(String sql, int resultSetType, int resultSetConcurrency) throws Exception { init()。 (sql, resultSetType, resultSetConcurrency)。 } /** * 返回連接 * @return Connection 連接 */ public Connection getConnection() { return conn。 } /** * PreparedStatement * @return sql 預設 SQL語句 */ public void prepareStatement(String sql) throws SQLException { prepstmt = (sql)。 } public void prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { prepstmt = (sql, resultSetType, resultSetConcurrency)。 } /** * 設置對應值 * * @param index 參數(shù)索引 * @param value 對應值 */ public void setString(int index,String value) throws SQLException { (index, value)。 } public void setInt(int index,int value) throws SQLException { (index,value)。 **大學學士學位論文(設計) 37 } public void setBoolean(int index,boolean value) throws SQLException { (index,value)。 } public void setDate(int index,Date value) throws SQLException { (index,value)。 } public void setLong(int index,long value) throws SQLException { (index,value)。 } public void setFloat(int index,float value) throws SQLException { (index,value)。 } public void setDouble(int index,Double value) throws SQLException { (index,value)。 } public void setBytes(int index,byte[] value) throws SQLException{ (index,value)。 } public void clearParameters() throws SQLException { ()。 prepstmt=null。 } /** * 返回 預設狀態(tài) */ public PreparedStatement getPreparedStatement() { return prepstmt。 } /** * 返回狀態(tài) * @return Statement 狀態(tài) */ public Statement getStatement() { return stmt。 } **大學學士學位論文(設計) 38 /** * 執(zhí)行 SQL語句返回字段集 * @param sql SQL語句 * @return ResultSet 字段集 */ public ResultSet executeQuery(String sql) throws SQLException { if (stmt != null) { return (sql)。 } else return null。 } public ResultSet executeQuery() throws SQLException { if (prepstmt != null) { return ()。 } else return null。 } /** * 執(zhí)行 SQL語句 * @param sql SQL語句 */ public void executeUpdate(String sql) throws SQLException { if (stmt != null) (sql)。 } public void executeUpdate() throws SQLException { if (prepstmt != null) ()。 } /** * 關閉連接 */ public void close() throws Exception { if (stmt != null) { ()。 stmt = null。 } if (prepstmt != null) { **大學學士學位論文(設計) 39 ()。 prepstmt = null。 } if (conn!=null) { ()。 } } }
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1