📄 classdao.java
字号:
package com.yhbbs.yhclass.itface;
import java.sql.SQLException;
import java.util.List;
import com.yhbbs.yhclass.itface.BbsClass;
/**
* <p>Title:区论坛数据存取模块Interface</p>
* <li> 区论坛数据存取模块
* <br><b>WebSite: www.yyhweb.com</b>
* <br><b>CopyRight: yyhweb[由由华网]</b>
* @author stephen
* @version YHBBS-2.0
*/
public interface ClassDao {
/** 取得区论坛最大Id
* @return 区论坛最大ID
* @throws SQLException
*/
public abstract int getClassMaxId() throws SQLException;
/** 取得区论坛名称
* @param classId 区论坛Id
* @return 区论坛名称
* @throws SQLException
*/
public abstract String getClassName(int classId) throws SQLException;
/** 由区论坛ID取得某区论坛
* @param id 区论坛ID
* @return BbsClass 区论坛
* @throws SQLException
*/
public abstract BbsClass getClassById(int id) throws SQLException;
/** 由区论坛名称取得某区论坛
* @param classname 区论坛名称
* @return BbsClass 区论坛
* @throws SQLException
*/
public abstract BbsClass getClassByName(String classname) throws SQLException;
/** 更新论坛某区论坛
* @param bbsclass 区论坛
* @return true:更新成功 false:更新失败
* @throws SQLException
*/
public abstract boolean updateClass(BbsClass bbsclass) throws SQLException;
/** 删除某论坛区
* @param id 论坛区论坛ID
* @return true:删除成功 false:删除失败
* @throws SQLException
*/
public abstract boolean deleteClass(int id) throws SQLException;
/** 增加一个论坛区
* @param bbsclass 论坛区
* @throws SQLException
*/
public abstract void addClass(BbsClass bbsclass) throws SQLException;
/** 取得某区论坛信息和他的所有子论坛信息
* @param id 区论坛ID
* @return BbsClass 区论坛
* @throws SQLException
*/
public abstract BbsClass getAllFmByCId(int id) throws SQLException;
/** 取得某区论坛的所有子论坛信息(不包含区论坛消息)
* @param id 区论坛ID
* @return List 所有子论坛
* @throws SQLException
*/
public abstract List getOneClassFm(int id) throws SQLException;
/** 取得所有区论坛信息
* @return list 所有区论坛信息
* @throws SQLException
*/
public abstract List getAllClass() throws SQLException;
/** 取得所有区论坛信息和他的所有子论坛信息
* @return list 所有子论坛
* @throws SQLException
*/
public abstract List getAllClassF() throws SQLException;
/** 取得所有区论坛信息和他的所有子论坛信息(跳转连接用)
* @return list 所有子论坛
* @throws SQLException
*/
public abstract List getJumpClassF() throws SQLException;
/** 取得区论坛管理员
* @param id 区论坛ID
* @return String 区论坛管理员
* @throws SQLException
*/
public abstract String getClassAdmin(int id) throws SQLException;
// 后台管理
/** 取得区论坛最大排序Id
* @return 区论坛最大排序Id
* @throws SQLException
*/
public abstract int getMaxSortId() throws SQLException;
/** 增加区论坛版主
* @param classId 区论坛Id
* @param classAdmin 区论坛版主
* @return true:成功 false:失败
* @throws SQLException
*/
public abstract boolean addAdmin(int classId,String classAdmin) throws SQLException;
/** 区论坛排序
* @param classId 区论坛Id
* @param classSort 区论坛顺序
* @return true:成功 false:失败
* @throws SQLException
*/
public abstract boolean classSort(int classId,int classSort) throws SQLException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -