KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mvnforum > common > ActiveThread


1 /*
2  * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/common/ActiveThread.java,v 1.9 2006/04/14 17:05:26 minhnn Exp $
3  * $Author: minhnn $
4  * $Revision: 1.9 $
5  * $Date: 2006/04/14 17:05:26 $
6  *
7  * ====================================================================
8  *
9  * Copyright (C) 2002-2006 by MyVietnam.net
10  *
11  * All copyright notices regarding mvnForum MUST remain
12  * intact in the scripts and in the outputted HTML.
13  * The "powered by" text/logo with a link back to
14  * http://www.mvnForum.com and http://www.MyVietnam.net in
15  * the footer of the pages MUST remain visible when the pages
16  * are viewed on the internet or intranet.
17  *
18  * This program is free software; you can redistribute it and/or modify
19  * it under the terms of the GNU General Public License as published by
20  * the Free Software Foundation; either version 2 of the License, or
21  * any later version.
22  *
23  * This program is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26  * GNU General Public License for more details.
27  *
28  * You should have received a copy of the GNU General Public License
29  * along with this program; if not, write to the Free Software
30  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31  *
32  * Support can be obtained from support forums at:
33  * http://www.mvnForum.com/mvnforum/index
34  *
35  * Correspondence and Marketing Questions can be sent to:
36  * info at MyVietnam net
37  *
38  * @author: Phong Ta Quoc
39  */

40 package com.mvnforum.common;
41
42 import java.sql.Timestamp JavaDoc;
43
44 import net.myvietnam.mvncore.util.StringUtil;
45
46 public class ActiveThread {
47
48     private int threadID;
49
50     private String JavaDoc threadTopic;
51
52     private int forumID;
53
54     private int viewCount;
55
56     private int replyCount;
57
58     private String JavaDoc author;
59
60     private String JavaDoc lastMember;
61
62     private int threadType;
63
64     private String JavaDoc icon;
65
66     private Timestamp JavaDoc lastDate;
67
68     private int lastPostCount;
69
70     private int attachCount;
71
72     public ActiveThread() {
73         lastPostCount = 0;
74     }
75
76     public int getThreadID() {
77         return this.threadID;
78     }
79     public void setThreadID(int threadID) {
80         this.threadID = threadID;
81     }
82
83     public String JavaDoc getThreadTopic() {
84         return this.threadTopic;
85     }
86     public void setThreadTopic(String JavaDoc threadTopic) {
87         this.threadTopic = threadTopic;
88     }
89
90     public int getLastPostCount() {
91         return this.lastPostCount;
92     }
93     public void setLastPostCount(int postCount) {
94         this.lastPostCount = postCount;
95     }
96
97     public int getForumID() {
98         return this.forumID;
99     }
100     public void setForumID(int forumID) {
101         this.forumID = forumID;
102     }
103
104     public String JavaDoc getAuthor() {
105         return this.author;
106     }
107     public void setAuthor(String JavaDoc author) {
108         this.author = author;
109     }
110
111     public Timestamp JavaDoc getLastDate() {
112         return this.lastDate;
113     }
114     public void setLastDate(Timestamp JavaDoc lastDate) {
115         this.lastDate = lastDate;
116     }
117
118     public String JavaDoc getLastMember() {
119         return this.lastMember;
120     }
121     public void setLastMember(String JavaDoc lastMember) {
122         this.lastMember = lastMember;
123     }
124
125     public int getThreadType() {
126         return threadType;
127     }
128     public void setThreadType(int threadType) {
129         this.threadType = threadType;
130     }
131
132     public int getReplyCount() {
133         return this.replyCount;
134     }
135     public void setReplyCount(int replyCount) {
136         this.replyCount = replyCount;
137     }
138
139     public int getViewCount() {
140         return this.viewCount;
141     }
142     public void setViewCount(int viewCount) {
143         this.viewCount = viewCount;
144     }
145
146     public String JavaDoc getIcon() {
147         return this.icon;
148     }
149     public void setIcon(String JavaDoc icon) {
150         this.icon = StringUtil.getEmptyStringIfNull(icon);
151     }
152
153     public int getAttachCount() {
154         return this.attachCount;
155     }
156     public void setAttachCount(int attachCount) {
157         this.attachCount = attachCount;
158     }
159 }
160
Popular Tags