📄 dbboard.java
字号:
package com.ntsky.bbs.service.db;
import java.util.*;
import com.ntsky.bbs.service.CommonDTO;
import com.ntsky.bbs.service.Board;
import java.beans.*;
/**
* <p>Title: Ntsky OpenSource BBS</p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: WWW.FM880.COM</p>
* @author 姚君林
* @version 1.0
*/
public class DBBoard implements Board{
private int boaId;
private int boaParId;
private int boaTodayNum;
private int boaTopicNum;
private int boaReNum;
private String boaInfo;
private String boaMaster;
private String boaType;
private String boaPasswd;
private String boaParENUM;
private String action;
private int boaChild;
private int boaDepth;
private int boaOrders;
private int boaRootId;
private String boaCreTime;
private int boaState;
private String boaStatePic;
/**
* action 用户动作
* @return int
*/
public String getAction(){
return action;
}
public void setAction(String action){
this.action = action;
}
/**
* 论坛模块ID
* @param boaId int
*/
public int getBoaId() {
return boaId;
}
public void setBoaId(int boaId) {
this.boaId = boaId;
}
/**
* 论坛名称
* @param boaType String
*/
public String getBoaType() {
return boaType;
}
public void setBoaType(String boaType) {
this.boaType = boaType;
}
/**
* 父类ID (属于哪个模块ID)默认给它"0"值
* @param boaResideId int
*/
public int getBoaParId() {
return boaParId;
}
public void setBoaParId(int boaParId) {
this.boaParId = boaParId;
}
/**
* 模块介绍
* @param boaInfo String
*/
public String getBoaInfo() {
return boaInfo;
}
public void setBoaInfo(String boaInfo) {
this.boaInfo = boaInfo;
}
/**
* 模块所有者
* @param boaMaster String
*/
public String getBoaMaster() {
return boaMaster;
}
public void setBoaMaster(String boaMaster) {
this.boaMaster = boaMaster;
}
/**
* 模块一天的主题总数
* @param boaTodayNum int
*/
public int getBoaTodayNum() {
return boaTodayNum;
}
public void setBoaTodayNum(int boaTodayNum) {
this.boaTodayNum = boaTodayNum;
}
/**
* 模块主题总数
* @param boaTopicNum int
*/
public int getBoaTopicNum() {
return boaTopicNum;
}
public void setBoaTopicNum(int boaTopicNum) {
this.boaTopicNum = boaTopicNum;
}
/**
* 模块回复总数
* @param boaReNum int
*/
public int getBoaReNum() {
return boaReNum;
}
public void setBoaReNum(int boaReNum) {
this.boaReNum = boaReNum;
}
/**
* 模块状态
* @param boaState int
*/
public int getBoaState() {
return boaState;
}
public void setBoaState(int boaState) {
this.boaState = boaState;
}
/**
* 论坛的状态
* @return Collection
*/
public Collection colBoaState(){
ArrayList al = new ArrayList();
al.add(new CommonDTO(1,"普通版块"));
al.add(new CommonDTO(2,"会员论坛"));
al.add(new CommonDTO(3,"嘉宾论坛"));
al.add(new CommonDTO(4,"加密论坛"));
return al;
}
/**
* 加密论坛的密码
* @param boaPasswd String
*/
public String getBoaPasswd() {
return boaPasswd;
}
public void setBoaPasswd(String boaPasswd) {
this.boaPasswd = boaPasswd;
}
/**
* 模块创建时间
* @param boaTopicId int
*/
public String getBoaCreTime() {
return boaCreTime;
}
public void setBoaCreTime(String boaCreTime) {
this.boaCreTime = boaCreTime;
}
/**
* 版块ID
* @return String
*/
public String getBoaParENUM() {
return boaParENUM;
}
public void setBoaParENUM(String boaParENUM) {
this.boaParENUM = boaParENUM;
}
/**
* 论坛深度
* @return String
*/
public int getBoaDepth() {
return boaDepth;
}
public void setBoaDepth(int boaDepth) {
this.boaDepth = boaDepth;
}
/**
* 根节点ID
* @return String
*/
public int getBoaRootId() {
return boaRootId;
}
public void setBoaRootId(int boaRootId) {
this.boaRootId = boaRootId;
}
/**
* 子节点的个数
* @return String
*/
public int getBoaChild() {
return boaChild;
}
public void setBoaChild(int boaChild) {
this.boaChild = boaChild;
}
/**
* 排序
* @return String
*/
public int getBoaOrders() {
return boaOrders;
}
public void setBoaOrders(int boaOrders) {
this.boaOrders = boaOrders;
}
/**
* 显示图片状态
* @return String
*/
public String getBoaStatePic() {
return boaStatePic;
}
public void setBoaStatePic(String boaStatePic) {
this.boaStatePic = boaStatePic;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -