001: /*
002: * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/common/ActiveThread.java,v 1.15 2007/10/26 10:25:32 phuongpdd Exp $
003: * $Author: phuongpdd $
004: * $Revision: 1.15 $
005: * $Date: 2007/10/26 10:25:32 $
006: *
007: * ====================================================================
008: *
009: * Copyright (C) 2002-2007 by MyVietnam.net
010: *
011: * All copyright notices regarding mvnForum MUST remain
012: * intact in the scripts and in the outputted HTML.
013: * The "powered by" text/logo with a link back to
014: * http://www.mvnForum.com and http://www.MyVietnam.net in
015: * the footer of the pages MUST remain visible when the pages
016: * are viewed on the internet or intranet.
017: *
018: * This program is free software; you can redistribute it and/or modify
019: * it under the terms of the GNU General Public License as published by
020: * the Free Software Foundation; either version 2 of the License, or
021: * any later version.
022: *
023: * This program is distributed in the hope that it will be useful,
024: * but WITHOUT ANY WARRANTY; without even the implied warranty of
025: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
026: * GNU General Public License for more details.
027: *
028: * You should have received a copy of the GNU General Public License
029: * along with this program; if not, write to the Free Software
030: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
031: *
032: * Support can be obtained from support forums at:
033: * http://www.mvnForum.com/mvnforum/index
034: *
035: * Correspondence and Marketing Questions can be sent to:
036: * info at MyVietnam net
037: *
038: * @author: Phong Ta Quoc
039: */
040: package com.mvnforum.common;
041:
042: import java.sql.Timestamp;
043:
044: import net.myvietnam.mvncore.util.StringUtil;
045:
046: public class ActiveThread {
047:
048: private int threadID;
049:
050: private String threadTopic;
051:
052: private int forumID;
053:
054: private int viewCount;
055:
056: private int replyCount;
057:
058: private String author;
059:
060: private String lastMember;
061:
062: private int threadType;
063:
064: private int threadStatus;
065:
066: private String icon;
067:
068: private Timestamp lastDate;
069:
070: private int lastPostCount;
071:
072: private int attachCount;
073:
074: private int pollCount;
075:
076: private int threadPriority;
077:
078: private Timestamp threadCreationDate;
079:
080: public ActiveThread() {
081: lastPostCount = 0;
082: }
083:
084: public int getThreadID() {
085: return this .threadID;
086: }
087:
088: public void setThreadID(int threadID) {
089: this .threadID = threadID;
090: }
091:
092: public String getThreadTopic() {
093: return this .threadTopic;
094: }
095:
096: public void setThreadTopic(String threadTopic) {
097: this .threadTopic = threadTopic;
098: }
099:
100: public int getLastPostCount() {
101: return this .lastPostCount;
102: }
103:
104: public void setLastPostCount(int postCount) {
105: this .lastPostCount = postCount;
106: }
107:
108: public int getForumID() {
109: return this .forumID;
110: }
111:
112: public void setForumID(int forumID) {
113: this .forumID = forumID;
114: }
115:
116: public String getAuthor() {
117: return this .author;
118: }
119:
120: public void setAuthor(String author) {
121: this .author = author;
122: }
123:
124: public Timestamp getLastDate() {
125: return this .lastDate;
126: }
127:
128: public void setLastDate(Timestamp lastDate) {
129: this .lastDate = lastDate;
130: }
131:
132: public String getLastMember() {
133: return this .lastMember;
134: }
135:
136: public void setLastMember(String lastMember) {
137: this .lastMember = lastMember;
138: }
139:
140: public int getThreadType() {
141: return threadType;
142: }
143:
144: public void setThreadType(int threadType) {
145: this .threadType = threadType;
146: }
147:
148: public int getThreadStatus() {
149: return threadStatus;
150: }
151:
152: public void setThreadStatus(int threadStatus) {
153: this .threadStatus = threadStatus;
154: }
155:
156: public int getReplyCount() {
157: return this .replyCount;
158: }
159:
160: public void setReplyCount(int replyCount) {
161: this .replyCount = replyCount;
162: }
163:
164: public int getViewCount() {
165: return this .viewCount;
166: }
167:
168: public void setViewCount(int viewCount) {
169: this .viewCount = viewCount;
170: }
171:
172: public String getIcon() {
173: return this .icon;
174: }
175:
176: public void setIcon(String icon) {
177: this .icon = StringUtil.getEmptyStringIfNull(icon);
178: }
179:
180: public int getAttachCount() {
181: return this .attachCount;
182: }
183:
184: public void setAttachCount(int attachCount) {
185: this .attachCount = attachCount;
186: }
187:
188: public int getPollCount() {
189: return this .pollCount;
190: }
191:
192: public void setPollCount(int pollCount) {
193: this .pollCount = pollCount;
194: }
195:
196: public int getThreadPriority() {
197: return threadPriority;
198: }
199:
200: public void setThreadPriority(int threadPriority) {
201: this .threadPriority = threadPriority;
202: }
203:
204: public Timestamp getThreadCreationDate() {
205: return threadCreationDate;
206: }
207:
208: public void setThreadCreationDate(Timestamp threadCreationDate) {
209: this.threadCreationDate = threadCreationDate;
210: }
211: }
|