001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 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 MBCategory service. Represents a row in the "MBCategory" 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.MBCategoryModelImpl} 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.MBCategoryImpl}. 033 * </p> 034 * 035 * <p> 036 * Never modify or reference this interface directly. All methods that expect a message boards category model instance should use the {@link MBCategory} interface instead. 037 * </p> 038 * 039 * @author Brian Wing Shun Chan 040 * @see MBCategory 041 * @see com.liferay.portlet.messageboards.model.impl.MBCategoryImpl 042 * @see com.liferay.portlet.messageboards.model.impl.MBCategoryModelImpl 043 * @generated 044 */ 045 public interface MBCategoryModel extends BaseModel<MBCategory> { 046 /** 047 * Gets the primary key of this message boards category. 048 * 049 * @return the primary key of this message boards category 050 */ 051 public long getPrimaryKey(); 052 053 /** 054 * Sets the primary key of this message boards category 055 * 056 * @param pk the primary key of this message boards category 057 */ 058 public void setPrimaryKey(long pk); 059 060 /** 061 * Gets the uuid of this message boards category. 062 * 063 * @return the uuid of this message boards category 064 */ 065 @AutoEscape 066 public String getUuid(); 067 068 /** 069 * Sets the uuid of this message boards category. 070 * 071 * @param uuid the uuid of this message boards category 072 */ 073 public void setUuid(String uuid); 074 075 /** 076 * Gets the category id of this message boards category. 077 * 078 * @return the category id of this message boards category 079 */ 080 public long getCategoryId(); 081 082 /** 083 * Sets the category id of this message boards category. 084 * 085 * @param categoryId the category id of this message boards category 086 */ 087 public void setCategoryId(long categoryId); 088 089 /** 090 * Gets the group id of this message boards category. 091 * 092 * @return the group id of this message boards category 093 */ 094 public long getGroupId(); 095 096 /** 097 * Sets the group id of this message boards category. 098 * 099 * @param groupId the group id of this message boards category 100 */ 101 public void setGroupId(long groupId); 102 103 /** 104 * Gets the company id of this message boards category. 105 * 106 * @return the company id of this message boards category 107 */ 108 public long getCompanyId(); 109 110 /** 111 * Sets the company id of this message boards category. 112 * 113 * @param companyId the company id of this message boards category 114 */ 115 public void setCompanyId(long companyId); 116 117 /** 118 * Gets the user id of this message boards category. 119 * 120 * @return the user id of this message boards category 121 */ 122 public long getUserId(); 123 124 /** 125 * Sets the user id of this message boards category. 126 * 127 * @param userId the user id of this message boards category 128 */ 129 public void setUserId(long userId); 130 131 /** 132 * Gets the user uuid of this message boards category. 133 * 134 * @return the user uuid of this message boards category 135 * @throws SystemException if a system exception occurred 136 */ 137 public String getUserUuid() throws SystemException; 138 139 /** 140 * Sets the user uuid of this message boards category. 141 * 142 * @param userUuid the user uuid of this message boards category 143 */ 144 public void setUserUuid(String userUuid); 145 146 /** 147 * Gets the user name of this message boards category. 148 * 149 * @return the user name of this message boards category 150 */ 151 @AutoEscape 152 public String getUserName(); 153 154 /** 155 * Sets the user name of this message boards category. 156 * 157 * @param userName the user name of this message boards category 158 */ 159 public void setUserName(String userName); 160 161 /** 162 * Gets the create date of this message boards category. 163 * 164 * @return the create date of this message boards category 165 */ 166 public Date getCreateDate(); 167 168 /** 169 * Sets the create date of this message boards category. 170 * 171 * @param createDate the create date of this message boards category 172 */ 173 public void setCreateDate(Date createDate); 174 175 /** 176 * Gets the modified date of this message boards category. 177 * 178 * @return the modified date of this message boards category 179 */ 180 public Date getModifiedDate(); 181 182 /** 183 * Sets the modified date of this message boards category. 184 * 185 * @param modifiedDate the modified date of this message boards category 186 */ 187 public void setModifiedDate(Date modifiedDate); 188 189 /** 190 * Gets the parent category id of this message boards category. 191 * 192 * @return the parent category id of this message boards category 193 */ 194 public long getParentCategoryId(); 195 196 /** 197 * Sets the parent category id of this message boards category. 198 * 199 * @param parentCategoryId the parent category id of this message boards category 200 */ 201 public void setParentCategoryId(long parentCategoryId); 202 203 /** 204 * Gets the name of this message boards category. 205 * 206 * @return the name of this message boards category 207 */ 208 @AutoEscape 209 public String getName(); 210 211 /** 212 * Sets the name of this message boards category. 213 * 214 * @param name the name of this message boards category 215 */ 216 public void setName(String name); 217 218 /** 219 * Gets the description of this message boards category. 220 * 221 * @return the description of this message boards category 222 */ 223 @AutoEscape 224 public String getDescription(); 225 226 /** 227 * Sets the description of this message boards category. 228 * 229 * @param description the description of this message boards category 230 */ 231 public void setDescription(String description); 232 233 /** 234 * Gets the thread count of this message boards category. 235 * 236 * @return the thread count of this message boards category 237 */ 238 public int getThreadCount(); 239 240 /** 241 * Sets the thread count of this message boards category. 242 * 243 * @param threadCount the thread count of this message boards category 244 */ 245 public void setThreadCount(int threadCount); 246 247 /** 248 * Gets the message count of this message boards category. 249 * 250 * @return the message count of this message boards category 251 */ 252 public int getMessageCount(); 253 254 /** 255 * Sets the message count of this message boards category. 256 * 257 * @param messageCount the message count of this message boards category 258 */ 259 public void setMessageCount(int messageCount); 260 261 /** 262 * Gets the last post date of this message boards category. 263 * 264 * @return the last post date of this message boards category 265 */ 266 public Date getLastPostDate(); 267 268 /** 269 * Sets the last post date of this message boards category. 270 * 271 * @param lastPostDate the last post date of this message boards category 272 */ 273 public void setLastPostDate(Date lastPostDate); 274 275 /** 276 * Gets a copy of this message boards category as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 277 * 278 * @return the escaped model instance 279 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 280 */ 281 public MBCategory toEscapedModel(); 282 283 public boolean isNew(); 284 285 public void setNew(boolean n); 286 287 public boolean isCachedModel(); 288 289 public void setCachedModel(boolean cachedModel); 290 291 public boolean isEscapedModel(); 292 293 public void setEscapedModel(boolean escapedModel); 294 295 public Serializable getPrimaryKeyObj(); 296 297 public ExpandoBridge getExpandoBridge(); 298 299 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 300 301 public Object clone(); 302 303 public int compareTo(MBCategory mbCategory); 304 305 public int hashCode(); 306 307 public String toString(); 308 309 public String toXmlString(); 310 }