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 Jan 11, 2005 10:57:13 PM
040: * The JForum Project
041: * http://www.jforum.net
042: */
043: package net.jforum.entities;
044:
045: import java.util.Date;
046:
047: /**
048: * @author Rafael Steil
049: * @version $Id: Karma.java,v 1.6 2006/08/23 02:13:46 rafaelsteil Exp $
050: */
051: public class Karma {
052: private int id;
053: private int postId;
054: private int topicId;
055: private int postUserId;
056: private int fromUserId;
057: private int points;
058: private Date rateDate;
059:
060: /**
061: * @return Returns the topicId.
062: */
063: public int getTopicId() {
064: return this .topicId;
065: }
066:
067: /**
068: * @param topicId The topicId to set.
069: */
070: public void setTopicId(int topicId) {
071: this .topicId = topicId;
072: }
073:
074: /**
075: * @return Returns the fromUserId.
076: */
077: public int getFromUserId() {
078: return this .fromUserId;
079: }
080:
081: /**
082: * @param fromUserId The fromUserId to set.
083: */
084: public void setFromUserId(int fromUserId) {
085: this .fromUserId = fromUserId;
086: }
087:
088: /**
089: * @return Returns the id.
090: */
091: public int getId() {
092: return this .id;
093: }
094:
095: /**
096: * @param id The id to set.
097: */
098: public void setId(int id) {
099: this .id = id;
100: }
101:
102: /**
103: * @return Returns the userId.
104: */
105: public int getPostUserId() {
106: return this .postUserId;
107: }
108:
109: /**
110: * @param userId The userId to set.
111: */
112: public void setPostUserId(int userId) {
113: this .postUserId = userId;
114: }
115:
116: /**
117: * @return Returns the points.
118: */
119: public int getPoints() {
120: return this .points;
121: }
122:
123: /**
124: * @param points The points to set.
125: */
126: public void setPoints(int points) {
127: this .points = points;
128: }
129:
130: /**
131: * @return Returns the postId.
132: */
133: public int getPostId() {
134: return this .postId;
135: }
136:
137: /**
138: * @param postId The postId to set.
139: */
140: public void setPostId(int postId) {
141: this .postId = postId;
142: }
143:
144: /**
145: * @return Returns the date of the vote.
146: */
147: public Date getRateDate() {
148: return rateDate;
149: }
150:
151: /**
152: * @param dateDate The date of the vote.
153: */
154: public void setRateDate(Date rateDate) {
155: this.rateDate = rateDate;
156: }
157: }
|