KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > jforum > entities > LastPostInfo


1 /*
2  * Copyright (c) 2003, Rafael Steil
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms,
6  * with or without modification, are permitted provided
7  * that the following conditions are met:
8  *
9  * 1) Redistributions of source code must retain the above
10  * copyright notice, this list of conditions and the
11  * following disclaimer.
12  * 2) Redistributions in binary form must reproduce the
13  * above copyright notice, this list of conditions and
14  * the following disclaimer in the documentation and/or
15  * other materials provided with the distribution.
16  * 3) Neither the name of "Rafael Steil" nor
17  * the names of its contributors may be used to endorse
18  * or promote products derived from this software without
19  * specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
22  * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
23  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
24  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
26  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
27  * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
28  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
32  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
34  * IN CONTRACT, STRICT LIABILITY, OR TORT
35  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
36  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
38  *
39  * Created on 12/11/2004 18:10:57
40  * The JForum Project
41  * http://www.jforum.net
42  */

43 package net.jforum.entities;
44
45 import java.io.Serializable JavaDoc;
46
47 /**
48  * @author Rafael Steil
49  * @version $Id: LastPostInfo.java,v 1.5 2005/07/26 03:04:49 rafaelsteil Exp $
50  */

51 public class LastPostInfo implements Serializable JavaDoc
52 {
53     private long postTimeMillis;
54     private int topicId;
55     private int postId;
56     private int userId;
57     private int topicReplies;
58     private String JavaDoc username;
59     private String JavaDoc postDate;
60     private boolean hasInfo;
61     
62     public void setHasInfo(boolean value) {
63         this.hasInfo = value;
64     }
65     
66     public boolean hasInfo() {
67         return this.hasInfo;
68     }
69     
70     
71     /**
72      * @return Returns the postDate.
73      */

74     public String JavaDoc getPostDate() {
75         return this.postDate;
76     }
77     /**
78      * @param postDate The postDate to set.
79      */

80     public void setPostDate(String JavaDoc postDate) {
81         this.postDate = postDate;
82     }
83     /**
84      * @return Returns the postId.
85      */

86     public int getPostId() {
87         return this.postId;
88     }
89     /**
90      * @param postId The postId to set.
91      */

92     public void setPostId(int postId) {
93         this.postId = postId;
94     }
95     /**
96      * @return Returns the postTimeMillis.
97      */

98     public long getPostTimeMillis() {
99         return this.postTimeMillis;
100     }
101     /**
102      * @param postTimeMillis The postTimeMillis to set.
103      */

104     public void setPostTimeMillis(long postTimeMillis) {
105         this.postTimeMillis = postTimeMillis;
106     }
107     /**
108      * @return Returns the topicId.
109      */

110     public int getTopicId() {
111         return this.topicId;
112     }
113     /**
114      * @param topicId The topicId to set.
115      */

116     public void setTopicId(int topicId) {
117         this.topicId = topicId;
118     }
119     /**
120      * @return Returns the topicReplies.
121      */

122     public int getTopicReplies() {
123         return this.topicReplies;
124     }
125     /**
126      * @param topicReplies The topicReplies to set.
127      */

128     public void setTopicReplies(int topicReplies) {
129         this.topicReplies = topicReplies;
130     }
131     /**
132      * @return Returns the userId.
133      */

134     public int getUserId() {
135         return this.userId;
136     }
137     /**
138      * @param userId The userId to set.
139      */

140     public void setUserId(int userId) {
141         this.userId = userId;
142     }
143     /**
144      * @return Returns the username.
145      */

146     public String JavaDoc getUsername() {
147         return this.username;
148     }
149     /**
150      * @param username The username to set.
151      */

152     public void setUsername(String JavaDoc username) {
153         this.username = username;
154     }
155 }
156
Popular Tags