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

正文內(nèi)容

java課程設(shè)計(jì)報(bào)告學(xué)生家教管理系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)-資料下載頁(yè)

2025-10-27 18:18本頁(yè)面

【導(dǎo)讀】學(xué)生家教屬性的封裝與構(gòu)造方法···············································30. Jdbc的詳細(xì)結(jié)構(gòu)及數(shù)據(jù)庫(kù)語(yǔ)言···································&#

  

【正文】 w Teachers((1), (2), (3), (4), (5), (6),(7), ((5) + (6) (7)) * 10, (9))。 } catch (Exception e) { new Screen6()。 } return Teachers。//返回一個(gè) teachar 對(duì)象 } //查詢學(xué)生是時(shí)判斷是否有此人 public static boolean PD(String name) { String sql = select * from Teachers where 姓名 = ? 。 //此數(shù)據(jù)庫(kù)語(yǔ)言負(fù)責(zé)查詢指定姓名的讓的內(nèi)容 try { PreparedStatement ps = (sql)。 (1, name)。 ResultSet rs = ()。 ()。 if ((1) != null) { return true。//如果接收的內(nèi)容不為空返回真,否則返回假 } } catch (Exception e) { new Screen6()。 } return false。 } //此方法為將學(xué)生添加為家教成員,通過(guò) teacher 對(duì)象將實(shí)參傳給形參 public static boolean ADD(Teachers w) { String sql = insert into Teachers values(?,?,?,?,?,?,?,?,?)。 //此數(shù)據(jù)庫(kù)語(yǔ)言為插入添加家教數(shù)據(jù)庫(kù)成員 try { PreparedStatement ps = (sql)。 (1, 姓名 ())。 (2, 所在大學(xué) ())。 (3, 家教對(duì)象 ())。 (4, 星期家教安排 ())。 (5, 家教次數(shù) ())。 (6, 家教附加 ())。 (7, 家教缺勤 ())。 (8, ( 家教次數(shù) () + 家教附加 () 家教缺勤 ()) * 10)。 (9, new ().toString())。 int i = ()。 //通過(guò) i接收 ps所執(zhí)行得到的內(nèi)容 if (i == 1)//如果結(jié)果為 1返回真,否則返回假 return true。 } catch (Exception e) { new Screen6()。 } return false。 } //此方法為判斷是否刪除學(xué)生家教信息 public static boolean drop(String n1) { String sql = delete from Teachers where 姓名 = ? 。 //此數(shù)據(jù)庫(kù)語(yǔ)言為刪除指定之人的所有信息 try { PreparedStatement ps = (sql)。 (1, n1)。 //通過(guò)執(zhí)行 ps插入的內(nèi)容, i接收返回值; int i = ()。 if (i == 1) { return true。 } } catch (Exception e) { new Screen6()。 } return false。 } public static boolean update(Teachers wer, String n3) { String sql = update Teachers set 姓名 =?, 所在大學(xué) =? , 家教對(duì)象 =?, + 星期家教安排 =?, 家教次數(shù) =? ,家教附加 =? ,家教缺勤 =? ,薪水 =?,時(shí)間 =? where 姓名 = ?。 //此語(yǔ)句作用為修改指定人的所有信息 try { PreparedStatement ps = (sql)。 (1, 姓名 ())。 (2, 所在大學(xué) ())。 (3, 家教對(duì)象 ())。 (4, 星期家教安排 ())。 (5, ())。 (6, 家教附加 ())。 (7, 家教缺勤 ())。 (8, 10 * ( 家教次數(shù) () + 家教附加 () 家教缺勤 ()))。 (9, new ().toString())。 //向 ps 中加入一個(gè)現(xiàn)在時(shí)間,即為修改時(shí)間,存入數(shù)據(jù)庫(kù) (10, n3)。 int n = ()。 (5)。 if (n == 1) { return true。 } } catch (Exception e) { new Screen6()。 } return false。 } } ( 2) Dbutil1 package Jdbc。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 //此為數(shù)據(jù)庫(kù)端口接收數(shù)據(jù)庫(kù)語(yǔ)言,并傳送數(shù)據(jù)語(yǔ)言 public class DButil1 { private static Connection connection。 static { try { ()。 connection = ( jdbc: root, 1234)。 } catch (Exception e) { } } //查找一個(gè) Mteacher 對(duì)象 public static ArrayListMteacher find1(String n3) { Mteacher mteacher = null。 ArrayListMteacher rList = new ArrayListMteacher()。 String sql = select * from Mteacher where 姓名 = ?。 //此數(shù)據(jù)庫(kù)語(yǔ)句查詢指定姓名的 Mteacher 內(nèi)容 try { PreparedStatement ps = (sql)。 (1, n3)。 ResultSet rs = ()。 while(()){ mteacher = new Mteacher((1), (2), rs .getInt(3), (4), (5), (6))。 (mteacher)。 } } catch (Exception e) { ()。 } return rList。 } //再添加一個(gè)學(xué)生家教記錄進(jìn)入數(shù)據(jù)庫(kù) public static boolean insert1(Mteacher jobs2) { Mteacher mteacher = null。 String sql = insert into Mteacher values(?,?,?,?,?,?)。 (5)。 try { PreparedStatement ps = (sql)。 (1, 姓名 ())。 (2, 所在大學(xué) ())。 (3, 當(dāng)日家教 ())。 (4, 當(dāng)日附加 ())。 (5, 當(dāng)日缺勤 ())。 (6, new ().toString())。 int i = ()。 if (i == 1) { return true。 } } catch (Exception e) { ()。 } return false。 } //此方法負(fù)責(zé)查找指定數(shù)據(jù)庫(kù)姓名的所有內(nèi)容 public static Mteacher find2(String n6) { Mteacher jobs1 = null。 String sql = select * from Mteacher where 姓名 = ?。 try { PreparedStatement ps = (sql)。 (1, n6)。 ResultSet rs = ()。 ()。 jobs1 = new Mteacher((1), (2), (3), (4), (5), (6))。 (())。 } catch (Exception e) { new Screen6()。 } return jobs1。 } //判斷一個(gè)學(xué)生家教記錄是否被刪除成功 public static boolean drop1(String n8) { String sql = delete from Mteacher where 姓名 = ? 。 (4)。 try { PreparedStatement ps = (sql)。 (1, n8)。 int i = ()。 if (i == 1) { return true。 } } catch (Exception e) { new Screen6()。 } return false。 } //將當(dāng)日的家教情況錄入數(shù)據(jù)庫(kù) public static boolean update1(Mteacher mteacher, String n8) { String sql = update Teachers set 家教次數(shù) =?,家教附加 =? ,家教缺勤 =? , + 薪水 =?,時(shí)間 =? where 姓名 = ?。 (7)。 try { PreparedStatement ps = (sql)。 Teachers bonn = ( 姓名 ())。 (1, 當(dāng)日家教 () + 家教次數(shù) ())。 (2, 當(dāng)日附加 () + 家教附加 ())。 (3, 當(dāng)日缺勤 () + 家教缺勤 ())。 int a = ( 當(dāng)日家教 () + 家教次數(shù) () + 當(dāng)日附加 () + 家教附加 () 當(dāng)日缺勤 () 家教缺勤 ()) * 30。 (4, a)。 (5, new ().toString())。 (6, n8)。 int n = ()。 if (n == 1) return true。 } catch (Exception e) { new Screen6()。 } return false。 } //將當(dāng)日家教情況累加進(jìn)數(shù)據(jù)庫(kù) public static boolean update2(Teachers wr) { String sql = update Teachers set 家教次數(shù) =? ,家教附加 =? ,家教缺勤 =? ,薪水 =?,時(shí)間 =? where 姓名 = ?。 try { PreparedStatement ps = (sql)。 (1, 家教次數(shù) ())。 (2, 家教附加 ())。 (3, 家教缺勤 ())。 (4, 10 * ( 家教次數(shù) () + 家教附加 () 家教缺勤 ()))。 (5, new ().toString())。 (6, 姓名 ())。 int n = ()。 if (n == 1) { return true。 } } catch (Exception e) { new Screen6()。 } return false。 } //添加一個(gè)學(xué)生當(dāng)日記錄 public static boolean ADD1(Teachers jobs) { String sql = insert into Mteacher values(?,?,?,?,?,?)。// 有錯(cuò) (3)。 try { PreparedStatement ps = (sql)。 (1, 姓名 ())。 (2, 所在大學(xué) ())。 (3, 0)。 (4, 0)。 (5, 0)。 (6, new ().toString())。 int i = ()。 if (i == 1) return true。 } catch (Exception e) { new Screen6()。 } return false。 } } 異常處理 所有 DButil 和 DButil1 中的異常全部以拋出一個(gè)操著失敗界 面( new Screen())來(lái)提醒客戶不可行,實(shí)際代碼實(shí)現(xiàn)如下 try { PreparedStatement ps = (sql)。 (1, 家教次數(shù)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1