📄 bbsstatdao.java
字号:
package com.yhbbs.bbs.itface.dao;
import java.sql.SQLException;
import com.yhbbs.bbs.itface.BbsStat;
/**
* <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 BbsStatDao {
/** 返回论坛状态的当前时间
* @return String 论坛时间
* @throws SQLException
*/
public abstract String getBbsTime() throws SQLException;
/** 返回论坛状态信息
* @return BbsStat 论坛状态
* @throws SQLException
*/
public abstract BbsStat getBbsStat() throws SQLException;
/** 注册一个用户,同时更新最新用户,系统用户总数加一。
* @param userId 新用户Id
* @param userName 新用户名
* @throws SQLException
*/
public abstract void upNewRegUser(int userId,String userName) throws SQLException;
/** 发表一个主题帖子,系统主题数加一
* @throws SQLException
*/
public abstract void upPostCount() throws SQLException;
/** 回复帖子,系统回复数加一
* @throws SQLException
*/
public abstract void upRepCount() throws SQLException;
/** 回复帖子,系统回复数加一
* @param flag true:主题贴 false:回复贴
* @throws SQLException
*/
public abstract void delArticle(boolean flag) throws SQLException;
/** 更新今天发帖总数
* @param flag 如果发帖是同一天则加一,否则更新数目
* @param num 今天发帖总数
* @throws SQLException
*/
public abstract void upToday(boolean flag,int num) throws SQLException;
/** 更新昨天发帖总数
* @param num 昨天发帖总数
* @throws SQLException
*/
public abstract void upYesday(int num) throws SQLException;
/** 取得今日发帖总数
* @return int 今日发帖总数
* @throws SQLException
*/
public abstract int getToday() throws SQLException;
/** 取得最大发帖总数
* @return int 最大发帖总数
* @throws SQLException
*/
public abstract int getMaxPost() throws SQLException;
/** 取得在线用户总数
* @return int 在线用户总数
* @throws SQLException
*/
public abstract int getMaxOnline() throws SQLException;
/** 更新最大发帖总数
* @param num 最大发帖总数
* @throws SQLException
*/
public abstract void upMaxPost(int num) throws SQLException;
/** 更新最大在线用户总数
* @param num 在线用户总数
* @throws SQLException
*/
public abstract void upMaxOnline(int num) throws SQLException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -