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 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             * Determines whether this message boards thread is approved.
275             *
276             * @return true if this message boards thread is approved; false otherwise
277             */
278            public boolean isApproved();
279    
280            /**
281             * Determines whether this message boards thread is a draft.
282             *
283             * @return true if this message boards thread is a draft; false otherwise
284             */
285            public boolean isDraft();
286    
287            /**
288             * Determines whether this message boards thread is expired.
289             *
290             * @return true if this message boards thread is expired; false otherwise
291             */
292            public boolean isExpired();
293    
294            /**
295             * Determines whether this message boards thread is pending.
296             *
297             * @return true if this message boards thread is pending; false otherwise
298             */
299            public boolean isPending();
300    
301            /**
302             * Gets a copy of this message boards thread as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
303             *
304             * @return the escaped model instance
305             * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
306             */
307            public MBThread toEscapedModel();
308    
309            public boolean isNew();
310    
311            public void setNew(boolean n);
312    
313            public boolean isCachedModel();
314    
315            public void setCachedModel(boolean cachedModel);
316    
317            public boolean isEscapedModel();
318    
319            public void setEscapedModel(boolean escapedModel);
320    
321            public Serializable getPrimaryKeyObj();
322    
323            public ExpandoBridge getExpandoBridge();
324    
325            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
326    
327            public Object clone();
328    
329            public int compareTo(MBThread mbThread);
330    
331            public int hashCode();
332    
333            public String toString();
334    
335            public String toXmlString();
336    }