📄 forumbean.java~3~
字号:
package ws.woa.forum;
import java.io.Serializable;
import java.util.Date;
/**
* 僼僅乕儔儉偺忣曬傪奿擺偡傞Bean丅
*
* @author Wang
*/
public class ForumBean implements Serializable {
private long forumID;
private String forumName;
private String forumDetail;
private int acceptFlag;
private long[] acceptID;
private Date addDate;
private Date repDate;
/**
* 僨僼僅儖僩僐儞僗僩儔僋僞丅
*/
public ForumBean(){
forumID = 0;
forumName = "";
forumDetail = "";
acceptFlag = 0;
acceptID = new long[0];
addDate = null;
repDate = null;
}
/**
* Returns the acceptFlag.
* @return int
*/
public int getAcceptFlag() {
return acceptFlag;
}
/**
* Returns the acceptID.
* @return long[]
*/
public long[] getAcceptID() {
return acceptID;
}
/**
* Returns the forumDetail.
* @return String
*/
public String getForumDetail() {
return forumDetail;
}
/**
* Returns the forumID.
* @return long
*/
public long getForumID() {
return forumID;
}
/**
* Returns the forumName.
* @return String
*/
public String getForumName() {
return forumName;
}
/**
* Sets the acceptFlag.
* @param acceptFlag The acceptFlag to set
*/
public void setAcceptFlag(int acceptFlag) {
this.acceptFlag = acceptFlag;
}
/**
* Sets the acceptID.
* @param acceptID The acceptID to set
*/
public void setAcceptID(long[] acceptID) {
this.acceptID = acceptID;
}
/**
* Sets the forumDetail.
* @param forumDetail The forumDetail to set
*/
public void setForumDetail(String forumDetail) {
this.forumDetail = forumDetail;
}
/**
* Sets the forumID.
* @param forumID The forumID to set
*/
public void setForumID(long forumID) {
this.forumID = forumID;
}
/**
* Sets the forumName.
* @param forumName The forumName to set
*/
public void setForumName(String forumName) {
this.forumName = forumName;
}
/**
* Returns the addDate.
* @return Date
*/
public Date getAddDate() {
return addDate;
}
/**
* Returns the repDate.
* @return Date
*/
public Date getRepDate() {
return repDate;
}
/**
* Sets the addDate.
* @param addDate The addDate to set
*/
public void setAddDate(Date addDate) {
this.addDate = addDate;
}
/**
* Sets the repDate.
* @param repDate The repDate to set
*/
public void setRepDate(Date repDate) {
this.repDate = repDate;
}
/**
* 嫋壜僼儔僌傪暥帤楍偱庢摼偟傑偡丅
*/
public String getAccept(){
if(acceptFlag==0){
return "僌儖乕僾扨埵";
} else if(acceptFlag==1){
return "儐乕僓扨埵";
} else if(acceptFlag==2){
return "慡偰偺儐乕僓";
} else if(acceptFlag==3){
return "墈棗晄壜";
} else {
return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -