?? imessengerdao.java
字號:
package com.briup.run.dao;
import java.util.List;
import com.briup.run.dao.bean.BlackRecord;
import com.briup.run.dao.bean.FriendRecord;
import com.briup.run.dao.bean.MessageRecord;
public interface IMessengerDao {
//查找未讀短信的數(shù)量
int findUnreadedMessagesNumber(String nickname) throws Exception;
//查找新短信
@SuppressWarnings("unchecked")
List findNewMessages(String nickname) throws Exception;
//查找收到的短信
@SuppressWarnings("unchecked")
List findReMessages(String nickname,int start,int end) throws Exception;
//查找發(fā)送的短信
@SuppressWarnings("unchecked")
List findSeMessages(String nickname,int start,int end) throws Exception;
//保存信息
void saveMessage(MessageRecord record) throws Exception;
//刪除短信
void delMessage(MessageRecord record) throws Exception;
//根據(jù)ID查找短信
MessageRecord findMessageById(Long id) throws Exception;
//保存好友記錄
void saveFriendrecord(FriendRecord record) throws Exception;
//查找好友
FriendRecord findFriendrecord(String selfname, String friendname)
throws Exception;
//查找黑名單
BlackRecord findBlackrecord(String selfname, String blackname)
throws Exception;
//刪除黑名單記錄
void delBlackrecord(BlackRecord record) throws Exception;
//查找所有的好友
@SuppressWarnings("unchecked")
List findAllFriends(String selfname,int start,int end) throws Exception;
//刪除好友記錄
void delFriendrecord(Long recordid) throws Exception;
//保存黑名單記錄
void saveBlackrecord(BlackRecord record) throws Exception;
//刪除好友記錄
void delFriendrecord(FriendRecord record) throws Exception;
//查找所有的黑名單
@SuppressWarnings("unchecked")
List findAllBlacks(String selfname,int start,int end) throws Exception;
//根據(jù)ID刪除黑名單
void delBlackrecord(Long recordid) throws Exception;
//根據(jù)自己的名字,好友的名字刪除好友
void delFriendRecord(String selfName, String friendName) throws Exception;
//根據(jù)自己的名字,黑名單的名字刪除黑名單
void delBlackRecord(String selfName, String blackName) throws Exception;
//查找所有的好友
@SuppressWarnings("unchecked")
List findAllMember(int start, int end) throws Exception;
//收到短信息的數(shù)量
Integer findReMessages(String nickname) throws Exception;
//發(fā)送短信息的數(shù)量
Integer findSeMessages(String nickname) throws Exception;
Integer getAllFriendNum(String selfName) throws Exception;
Integer getAllBlackNum(String selfName) throws Exception;
List findFriendByName(String selfName)throws Exception;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -