📄 friendsdao.java
字号:
package com.yhbbs.user.itface.dao;
import java.sql.SQLException;
import java.util.List;
import com.yhbbs.user.itface.bean.Friends;
/**
* <p>Title:论坛好友数据存取模块Interface</p>
* <li> 论坛好友数据存取模块 <br>
* <br><b>WebSite: www.yyhweb.com</b>
* <br><b>CopyRight: yyhweb[由由华网]</b>
* @author stephen
* @version YHBBS-2.0
*/
public interface FriendsDao {
/** 获取论坛好友最大Id
* @return int 最大Id
* @throws SQLException
*/
public abstract int getMaxId() throws SQLException;
/** 获取用户的论坛好友
* @param userid 用户ID
* @return list 所有论坛好友
* @throws SQLException
*/
public abstract List getFriends(int userid) throws SQLException;
/** 判断一个用户是否为另一个用户的论坛好友
* @param friend 论坛好友
* @return int 论坛好友序列Id
* @throws SQLException
*/
public abstract int isFriends(Friends friend) throws SQLException;
/** 增加一个论坛好友
* @param friend 论坛好友
* @throws SQLException
*/
public abstract void addFriend(Friends friend) throws SQLException;
/** 删除一个论坛好友
* @param friend 论坛好友(userId,fId)
* @throws SQLException
*/
public abstract void delFriend(Friends friend) throws SQLException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -