⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imessengerdao.java

📁 针对网络跑步爱好者作为用户而开发的
💻 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 {
	
	//查找未读短信的数量
	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;

	//查找发送的短信
	@SuppressWarnings("unchecked")
	List findSeMessages(String nickname,int start,int end) throws Exception;

	//保存信息
	void saveMessage(MessageRecord record) throws Exception;

	//删除短信
	void delMessage(MessageRecord record) throws Exception;

	//根据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;

	//根据ID删除黑名单
	void delBlackrecord(Long recordid) throws Exception;

	//根据自己的名字,好友的名字删除好友
	void delFriendRecord(String selfName, String friendName) throws Exception;

	//根据自己的名字,黑名单的名字删除黑名单
	void delBlackRecord(String selfName, String blackName) throws Exception;

	//查找所有的好友
	@SuppressWarnings("unchecked")
	List findAllMember(int start, int end) throws Exception;
	
	//收到短信息的数量
	Integer findReMessages(String nickname) throws Exception;

	//发送短信息的数量
	Integer findSeMessages(String nickname) throws Exception;
	
	Integer getAllFriendNum(String selfName) throws Exception;
	
	Integer getAllBlackNum(String selfName) throws Exception;
	
	List findFriendByName(String selfName)throws Exception;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -