001: /*
002: * Copyright (c) JForum Team
003: * All rights reserved.
004: *
005: * Redistribution and use in source and binary forms,
006: * with or without modification, are permitted provided
007: * that the following conditions are met:
008: *
009: * 1) Redistributions of source code must retain the above
010: * copyright notice, this list of conditions and the
011: * following disclaimer.
012: * 2) Redistributions in binary form must reproduce the
013: * above copyright notice, this list of conditions and
014: * the following disclaimer in the documentation and/or
015: * other materials provided with the distribution.
016: * 3) Neither the name of "Rafael Steil" nor
017: * the names of its contributors may be used to endorse
018: * or promote products derived from this software without
019: * specific prior written permission.
020: *
021: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
022: * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
023: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
024: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
025: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
026: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
027: * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
028: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
029: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
030: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
031: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
032: * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
033: * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
034: * IN CONTRACT, STRICT LIABILITY, OR TORT
035: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
036: * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
037: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
038: *
039: * Created on 12/11/2004 18:10:57
040: * The JForum Project
041: * http://www.jforum.net
042: */
043: package net.jforum.entities;
044:
045: import java.io.Serializable;
046:
047: /**
048: * @author Rafael Steil
049: * @version $Id: LastPostInfo.java,v 1.6 2006/08/23 02:13:46 rafaelsteil Exp $
050: */
051: public class LastPostInfo implements Serializable {
052: private long postTimeMillis;
053: private int topicId;
054: private int postId;
055: private int userId;
056: private int topicReplies;
057: private String username;
058: private String postDate;
059: private boolean hasInfo;
060:
061: public void setHasInfo(boolean value) {
062: this .hasInfo = value;
063: }
064:
065: public boolean hasInfo() {
066: return this .hasInfo;
067: }
068:
069: /**
070: * @return Returns the postDate.
071: */
072: public String getPostDate() {
073: return this .postDate;
074: }
075:
076: /**
077: * @param postDate The postDate to set.
078: */
079: public void setPostDate(String postDate) {
080: this .postDate = postDate;
081: }
082:
083: /**
084: * @return Returns the postId.
085: */
086: public int getPostId() {
087: return this .postId;
088: }
089:
090: /**
091: * @param postId The postId to set.
092: */
093: public void setPostId(int postId) {
094: this .postId = postId;
095: }
096:
097: /**
098: * @return Returns the postTimeMillis.
099: */
100: public long getPostTimeMillis() {
101: return this .postTimeMillis;
102: }
103:
104: /**
105: * @param postTimeMillis The postTimeMillis to set.
106: */
107: public void setPostTimeMillis(long postTimeMillis) {
108: this .postTimeMillis = postTimeMillis;
109: }
110:
111: /**
112: * @return Returns the topicId.
113: */
114: public int getTopicId() {
115: return this .topicId;
116: }
117:
118: /**
119: * @param topicId The topicId to set.
120: */
121: public void setTopicId(int topicId) {
122: this .topicId = topicId;
123: }
124:
125: /**
126: * @return Returns the topicReplies.
127: */
128: public int getTopicReplies() {
129: return this .topicReplies;
130: }
131:
132: /**
133: * @param topicReplies The topicReplies to set.
134: */
135: public void setTopicReplies(int topicReplies) {
136: this .topicReplies = topicReplies;
137: }
138:
139: /**
140: * @return Returns the userId.
141: */
142: public int getUserId() {
143: return this .userId;
144: }
145:
146: /**
147: * @param userId The userId to set.
148: */
149: public void setUserId(int userId) {
150: this .userId = userId;
151: }
152:
153: /**
154: * @return Returns the username.
155: */
156: public String getUsername() {
157: return this .username;
158: }
159:
160: /**
161: * @param username The username to set.
162: */
163: public void setUsername(String username) {
164: this.username = username;
165: }
166: }
|