001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.messageboards.model; 016 017 import com.liferay.portal.kernel.annotation.AutoEscape; 018 import com.liferay.portal.kernel.exception.SystemException; 019 import com.liferay.portal.model.BaseModel; 020 import com.liferay.portal.service.ServiceContext; 021 022 import com.liferay.portlet.expando.model.ExpandoBridge; 023 024 import java.io.Serializable; 025 026 import java.util.Date; 027 028 /** 029 * The base model interface for the MBThread service. Represents a row in the "MBThread" database table, with each column mapped to a property of this class. 030 * 031 * <p> 032 * This interface and its corresponding implementation {@link com.liferay.portlet.messageboards.model.impl.MBThreadModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.messageboards.model.impl.MBThreadImpl}. 033 * </p> 034 * 035 * <p> 036 * Never modify or reference this interface directly. All methods that expect a message boards thread model instance should use the {@link MBThread} interface instead. 037 * </p> 038 * 039 * @author Brian Wing Shun Chan 040 * @see MBThread 041 * @see com.liferay.portlet.messageboards.model.impl.MBThreadImpl 042 * @see com.liferay.portlet.messageboards.model.impl.MBThreadModelImpl 043 * @generated 044 */ 045 public interface MBThreadModel extends BaseModel<MBThread> { 046 /** 047 * Gets the primary key of this message boards thread. 048 * 049 * @return the primary key of this message boards thread 050 */ 051 public long getPrimaryKey(); 052 053 /** 054 * Sets the primary key of this message boards thread 055 * 056 * @param pk the primary key of this message boards thread 057 */ 058 public void setPrimaryKey(long pk); 059 060 /** 061 * Gets the thread id of this message boards thread. 062 * 063 * @return the thread id of this message boards thread 064 */ 065 public long getThreadId(); 066 067 /** 068 * Sets the thread id of this message boards thread. 069 * 070 * @param threadId the thread id of this message boards thread 071 */ 072 public void setThreadId(long threadId); 073 074 /** 075 * Gets the group id of this message boards thread. 076 * 077 * @return the group id of this message boards thread 078 */ 079 public long getGroupId(); 080 081 /** 082 * Sets the group id of this message boards thread. 083 * 084 * @param groupId the group id of this message boards thread 085 */ 086 public void setGroupId(long groupId); 087 088 /** 089 * Gets the category id of this message boards thread. 090 * 091 * @return the category id of this message boards thread 092 */ 093 public long getCategoryId(); 094 095 /** 096 * Sets the category id of this message boards thread. 097 * 098 * @param categoryId the category id of this message boards thread 099 */ 100 public void setCategoryId(long categoryId); 101 102 /** 103 * Gets the root message id of this message boards thread. 104 * 105 * @return the root message id of this message boards thread 106 */ 107 public long getRootMessageId(); 108 109 /** 110 * Sets the root message id of this message boards thread. 111 * 112 * @param rootMessageId the root message id of this message boards thread 113 */ 114 public void setRootMessageId(long rootMessageId); 115 116 /** 117 * Gets the message count of this message boards thread. 118 * 119 * @return the message count of this message boards thread 120 */ 121 public int getMessageCount(); 122 123 /** 124 * Sets the message count of this message boards thread. 125 * 126 * @param messageCount the message count of this message boards thread 127 */ 128 public void setMessageCount(int messageCount); 129 130 /** 131 * Gets the view count of this message boards thread. 132 * 133 * @return the view count of this message boards thread 134 */ 135 public int getViewCount(); 136 137 /** 138 * Sets the view count of this message boards thread. 139 * 140 * @param viewCount the view count of this message boards thread 141 */ 142 public void setViewCount(int viewCount); 143 144 /** 145 * Gets the last post by user id of this message boards thread. 146 * 147 * @return the last post by user id of this message boards thread 148 */ 149 public long getLastPostByUserId(); 150 151 /** 152 * Sets the last post by user id of this message boards thread. 153 * 154 * @param lastPostByUserId the last post by user id of this message boards thread 155 */ 156 public void setLastPostByUserId(long lastPostByUserId); 157 158 /** 159 * Gets the last post by user uuid of this message boards thread. 160 * 161 * @return the last post by user uuid of this message boards thread 162 * @throws SystemException if a system exception occurred 163 */ 164 public String getLastPostByUserUuid() throws SystemException; 165 166 /** 167 * Sets the last post by user uuid of this message boards thread. 168 * 169 * @param lastPostByUserUuid the last post by user uuid of this message boards thread 170 */ 171 public void setLastPostByUserUuid(String lastPostByUserUuid); 172 173 /** 174 * Gets the last post date of this message boards thread. 175 * 176 * @return the last post date of this message boards thread 177 */ 178 public Date getLastPostDate(); 179 180 /** 181 * Sets the last post date of this message boards thread. 182 * 183 * @param lastPostDate the last post date of this message boards thread 184 */ 185 public void setLastPostDate(Date lastPostDate); 186 187 /** 188 * Gets the priority of this message boards thread. 189 * 190 * @return the priority of this message boards thread 191 */ 192 public double getPriority(); 193 194 /** 195 * Sets the priority of this message boards thread. 196 * 197 * @param priority the priority of this message boards thread 198 */ 199 public void setPriority(double priority); 200 201 /** 202 * Gets the status of this message boards thread. 203 * 204 * @return the status of this message boards thread 205 */ 206 public int getStatus(); 207 208 /** 209 * Sets the status of this message boards thread. 210 * 211 * @param status the status of this message boards thread 212 */ 213 public void setStatus(int status); 214 215 /** 216 * Gets the status by user id of this message boards thread. 217 * 218 * @return the status by user id of this message boards thread 219 */ 220 public long getStatusByUserId(); 221 222 /** 223 * Sets the status by user id of this message boards thread. 224 * 225 * @param statusByUserId the status by user id of this message boards thread 226 */ 227 public void setStatusByUserId(long statusByUserId); 228 229 /** 230 * Gets the status by user uuid of this message boards thread. 231 * 232 * @return the status by user uuid of this message boards thread 233 * @throws SystemException if a system exception occurred 234 */ 235 public String getStatusByUserUuid() throws SystemException; 236 237 /** 238 * Sets the status by user uuid of this message boards thread. 239 * 240 * @param statusByUserUuid the status by user uuid of this message boards thread 241 */ 242 public void setStatusByUserUuid(String statusByUserUuid); 243 244 /** 245 * Gets the status by user name of this message boards thread. 246 * 247 * @return the status by user name of this message boards thread 248 */ 249 @AutoEscape 250 public String getStatusByUserName(); 251 252 /** 253 * Sets the status by user name of this message boards thread. 254 * 255 * @param statusByUserName the status by user name of this message boards thread 256 */ 257 public void setStatusByUserName(String statusByUserName); 258 259 /** 260 * Gets the status date of this message boards thread. 261 * 262 * @return the status date of this message boards thread 263 */ 264 public Date getStatusDate(); 265 266 /** 267 * Sets the status date of this message boards thread. 268 * 269 * @param statusDate the status date of this message boards thread 270 */ 271 public void setStatusDate(Date statusDate); 272 273 /** 274 * @deprecated {@link #isApproved} 275 */ 276 public boolean getApproved(); 277 278 /** 279 * Determines whether this message boards thread is approved. 280 * 281 * @return true if this message boards thread is approved; false otherwise 282 */ 283 public boolean isApproved(); 284 285 /** 286 * Determines whether this message boards thread is a draft. 287 * 288 * @return true if this message boards thread is a draft; false otherwise 289 */ 290 public boolean isDraft(); 291 292 /** 293 * Determines whether this message boards thread is expired. 294 * 295 * @return true if this message boards thread is expired; false otherwise 296 */ 297 public boolean isExpired(); 298 299 /** 300 * Determines whether this message boards thread is pending. 301 * 302 * @return true if this message boards thread is pending; false otherwise 303 */ 304 public boolean isPending(); 305 306 public boolean isNew(); 307 308 public void setNew(boolean n); 309 310 public boolean isCachedModel(); 311 312 public void setCachedModel(boolean cachedModel); 313 314 public boolean isEscapedModel(); 315 316 public void setEscapedModel(boolean escapedModel); 317 318 public Serializable getPrimaryKeyObj(); 319 320 public ExpandoBridge getExpandoBridge(); 321 322 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 323 324 public Object clone(); 325 326 public int compareTo(MBThread mbThread); 327 328 public int hashCode(); 329 330 public MBThread toEscapedModel(); 331 332 public String toString(); 333 334 public String toXmlString(); 335 }