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

正文內(nèi)容

基于java的即時通信軟件畢業(yè)設(shè)計-資料下載頁

2025-06-27 22:38本頁面
  

【正文】 generated catch block ()。 } finally{ ()。 } //2 得到在線好友的qq號 ArrayListLoginVO onLinefriends=new ArrayListLoginVO()。 for (Integer frinum : friends) { LoginVO login=(frinum)。 if(login!=null){ (login)。 } } return onLinefriends。 } // 獲取VO /* * 返回指定qq號的 qquserVO */ public UserVO getUserByID(int qqnum){ String sql= select qqname,qqpass,qqdesc, + qqsex,qqbirthday,qqolpic,qqofpic,qqmespic + from qquser where qqnum=+qqnum。 UserVO vo=null。 ((sql))。 try { if(().next()){ vo=new UserVO()。 (qqnum)。 (().getString(1))。 (().getString(2))。 (().getString(3))。 (().getInt(4))。 (().getDate(5))。 (().getBytes(6))。 (().getBytes(7))。 (().getBytes(8))。 } } catch (SQLException e) { // TODO Autogenerated catch block ()。 } finally{ ()。 } return vo。 } /* * 根據(jù)qq號,得到LoginVO對象 */ public LoginVO getLoginVOByID(int qqnum){ String sql=select typeid,logip,logtime from login where qqnum=+qqnum。 ((sql))。 LoginVO vo=null。 try { if(().next()){ vo=new LoginVO()。 (qqnum)。 (().getInt(1))。 (().getString(2))。 (().getDate(3))。 } } catch (SQLException e) { // TODO Autogenerated catch block ()。 } return vo。 } /* * 添加圖片方法 * */ public void setPic(int num) { try { String sql=update qquser set qqolpic=?,qqofpic=?,qqmespic=? where qqnum=+num。 (().prepareStatement(sql))。 byte[] b= getBytes(image/)。 ().setBytes(1,b)。 ().setBytes(2, getBytes(image/))。 ().setBytes(3, getBytes(image/))。 ().execute()。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } } public static byte[] getBytes(String fileName){ try { File imageFile=new File(fileName)。 FileInputStream fin=new FileInputStream(imageFile)。 byte[] bytes=new byte[()]。 (bytes)。 return bytes。 } catch (FileNotFoundException e) { // TODO Autogenerated catch block ()。 } catch (IOException e) { // TODO Autogenerated catch block ()。 } return null。 } /* * 注冊 */ public void LoginId( String qqname,String qqpass,String qqdesc,int qqsex,String qqbirthday){ String sql=insert into qquser values(, 39。+qqname+39。,39。+qqpass+39。,39。+qqdesc+ 39。,39。+qqsex+39。,+ to_date( 39。+qqbirthday+ 39。 ,39。yyyymmdd39。),null,null,null)。 (sql)。// select from dual。 } /* * * 獲得申請的號碼 * */ public int numSet(){// String sql=select from dual。 String sql=select from dual。 ((sql))。 int num=0。 try { if(().next()){ num=().getInt(1)+1。 } } catch (SQLException e) { // TODO Autogenerated catch block ()。 } return num。 } /* * 添加好友 */ public void addFriend(int num1,int num2){ String sql=insert into friends values(, +num1+ , +num2+ )。 (sql)。 } /* * 刪除好友 */ public void deleteFri(int num1,int num2){ String sql=delete from friends where qqnum=+num1+and frinum=+num2。 (sql)。 } /* * 修改個人資料(昵稱、密碼和個人簽名) */ public void updateInfo(String name,int num,String desc ,String pass){ String sql1=update qquser set qqdesc=39。+desc+39。 where qqnum=+num 。 (sql1)。 String sql=update qquser set qqpass=39。+pass+39。 where qqnum=+num 。 (sql)。 String sql2=update qquser set qqname=39。+name+39。 where qqnum=+num 。 (sql2)。 } /* * 返回自己的號碼 */ public int getQqnum(String ip){ String sql=select qqnum from login where logip=39。+ip+39。 ((sql))。 int num=0。 try {if(().next()){ num = ().getInt(1)。} } catch (SQLException e) { // TODO Autogenerated catch block ()。 } return num。 } /* * 存儲留言到數(shù)據(jù)庫 */ public void saveMes(int from,int to,String message ){ String sql=insert into message values(,+from+ ,+to+,39。+message+39。)。 (sql)。 } /* * 刪除留言到數(shù)據(jù)庫 */ public void deleteMes(int num ){ String sql=delete message where touserid=+num。 (sql)。 } /* * 根據(jù)qq號,得到留言對象 */ public MesModel getmesModelByID(int qqnum){ String sql=select fromuserid,touserid,message from message where touserid=+qqnum+order by id。 ((sql))。 MesModel mm = null。 try { if(().next()){ mm = new MesModel()。 (().getInt(1))。 (().getInt(2))。 (().getString(3))。 }} catch (SQLException e) { // TODO Autogenerated catch block ()。 } return mm。 } }
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1