⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topicmodel.java

📁 tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛
💻 JAVA
字号:
/* * 作者: 胡李青 * qq: 31703299 * Copyright (c) 2007 huliqing * 主页 http://www.tbuy.biz/ * 你可以免费使用该软件,未经许可请勿作用于任何商业目的,如有技术问题请与本人联系! */package biz.tbuy.bbs;import java.io.Serializable;import java.sql.Timestamp;/** * @author huliqing * <p><b>qq:</b>31703299 * <p><b>E-mail:</b> * <a href="mailto:huliqing.cn@gmail.com">huliqing.cn@gmail.com</a> * <p><b>Homepage:</b> * <a href="http://www.tbuy.biz/">http://www.tbuy.biz/</a> */public class TopicModel implements Serializable{    private int _num;            // 主题的id    private String _title;       // 标题    private String _content;     // 内容    private String _from;        // 引用出处    private Timestamp _date;     // 发表时间    private String _ip;          // 作者发表时的IP    private int _type;           // 主题类型    private int _order;          // 排序    private int _authType;    // 文章的阅读限制类型,如:0|1|2 -> all,login,groups    private String _authGroups;  // 当authType为group时,需要该项,格式为:group1,group2,group3    private int _music;          // 相关联的music    private int _totalView;      // 总浏览量    private int _totalReply;     // 总回复量    private int _byForum;        // 所属讨论区    private String _byUser;      // 作者id    private boolean _beLock;     // 是否被锁    private boolean _beRevoke;   // 是否被回收    private boolean _beUpload;   // 是否有上传文件    private String _editByUser;  // 最后编辑者的id    private Timestamp _editByDate;   // 最后编辑的时间    public TopicModel() {        _from = "";        _music = -1;    }        public void setNum(int num) {        _num = num;    }        public int getNum() {        return _num;    }        public void setTitle(String title) {        _title = title;    }        public String getTitle() {        return _title;    }        public void setContent(String content) {        _content = content;    }        public String getContent() {        return _content;    }    public void setFrom(String from) {        _from = from;    }    public String getFrom() {        return _from;    }        public void setDate(Timestamp date) {        _date = date;    }        public Timestamp getDate() {        return _date;    }        public void setIp(String ip) {        _ip = ip;    }        public String getIp() {        return _ip;    }        public void setType(int type) {        _type = type;        if (type == BBSGroups.TYPE_RULE) {            _order = BBSGroups.TYPE_RULE;        } else if (type == BBSGroups.TYPE_NOTICE) {            _order = BBSGroups.TYPE_NOTICE;        } else if (type == BBSGroups.TYPE_UP) {            _order = BBSGroups.TYPE_UP;        } else {            _order = BBSGroups.TYPE_TOPIC;        }    }        public int getType() {        return _type;    }        public void setOrder(int order) {        _order = order;    }        public int getOrder() {        return _order;    }        public void setAuthType(int authType) {        _authType = authType;    }        public int getAuthType() {        return _authType;    }        public void setAuthGroups(String authGroups) {        _authGroups = authGroups;    }        public String getAuthGroups() {        return _authGroups;    }        public void setMusic(int music) {        _music = music;    }        public int getMusic() {        return _music;    }        public void setTotalView(int totalView) {        _totalView = totalView;    }        public int getTotalView() {        return _totalView;    }        public void setTotalReply(int totalReply) {        _totalReply = totalReply;    }        public int getTotalReply() {        return _totalReply;    }        public void setByForum(int byForum) {        _byForum = byForum;    }        public int getByForum() {        return _byForum;    }        public void setByUser(String byUser) {        _byUser = byUser;    }        public String getByUser() {        return _byUser;    }        public void setBeLock(boolean beLock) {        _beLock = beLock;    }        public boolean getBeLock() {        return _beLock;    }        public void setBeRevoke(boolean beRevoke) {        _beRevoke = beRevoke;    }        public boolean getBeRevoke() {        return _beRevoke;    }        public void setBeUpload(boolean beUpload) {        _beUpload = beUpload;    }        public boolean getBeUpload() {        return _beUpload;    }        public void setEditByUser(String editByUser) {        _editByUser = editByUser;    }        public String getEditByUser() {        return _editByUser;    }        public void setEditByDate(Timestamp editByDate) {        _editByDate = editByDate;    }        public Timestamp getEditByDate() {        return _editByDate;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -