1 40 package com.mvnforum.common; 41 42 import java.sql.Timestamp ; 43 44 import net.myvietnam.mvncore.util.StringUtil; 45 46 public class ActiveThread { 47 48 private int threadID; 49 50 private String threadTopic; 51 52 private int forumID; 53 54 private int viewCount; 55 56 private int replyCount; 57 58 private String author; 59 60 private String lastMember; 61 62 private int threadType; 63 64 private String icon; 65 66 private Timestamp 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 getThreadTopic() { 84 return this.threadTopic; 85 } 86 public void setThreadTopic(String 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 getAuthor() { 105 return this.author; 106 } 107 public void setAuthor(String author) { 108 this.author = author; 109 } 110 111 public Timestamp getLastDate() { 112 return this.lastDate; 113 } 114 public void setLastDate(Timestamp lastDate) { 115 this.lastDate = lastDate; 116 } 117 118 public String getLastMember() { 119 return this.lastMember; 120 } 121 public void setLastMember(String 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 getIcon() { 147 return this.icon; 148 } 149 public void setIcon(String 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 |