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    /**
018     * <p>
019     * This class is a wrapper for {@link MBThread}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBThread
024     * @generated
025     */
026    public class MBThreadWrapper implements MBThread {
027            public MBThreadWrapper(MBThread mbThread) {
028                    _mbThread = mbThread;
029            }
030    
031            /**
032            * Gets the primary key of this message boards thread.
033            *
034            * @return the primary key of this message boards thread
035            */
036            public long getPrimaryKey() {
037                    return _mbThread.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this message boards thread
042            *
043            * @param pk the primary key of this message boards thread
044            */
045            public void setPrimaryKey(long pk) {
046                    _mbThread.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the thread id of this message boards thread.
051            *
052            * @return the thread id of this message boards thread
053            */
054            public long getThreadId() {
055                    return _mbThread.getThreadId();
056            }
057    
058            /**
059            * Sets the thread id of this message boards thread.
060            *
061            * @param threadId the thread id of this message boards thread
062            */
063            public void setThreadId(long threadId) {
064                    _mbThread.setThreadId(threadId);
065            }
066    
067            /**
068            * Gets the group id of this message boards thread.
069            *
070            * @return the group id of this message boards thread
071            */
072            public long getGroupId() {
073                    return _mbThread.getGroupId();
074            }
075    
076            /**
077            * Sets the group id of this message boards thread.
078            *
079            * @param groupId the group id of this message boards thread
080            */
081            public void setGroupId(long groupId) {
082                    _mbThread.setGroupId(groupId);
083            }
084    
085            /**
086            * Gets the category id of this message boards thread.
087            *
088            * @return the category id of this message boards thread
089            */
090            public long getCategoryId() {
091                    return _mbThread.getCategoryId();
092            }
093    
094            /**
095            * Sets the category id of this message boards thread.
096            *
097            * @param categoryId the category id of this message boards thread
098            */
099            public void setCategoryId(long categoryId) {
100                    _mbThread.setCategoryId(categoryId);
101            }
102    
103            /**
104            * Gets the root message id of this message boards thread.
105            *
106            * @return the root message id of this message boards thread
107            */
108            public long getRootMessageId() {
109                    return _mbThread.getRootMessageId();
110            }
111    
112            /**
113            * Sets the root message id of this message boards thread.
114            *
115            * @param rootMessageId the root message id of this message boards thread
116            */
117            public void setRootMessageId(long rootMessageId) {
118                    _mbThread.setRootMessageId(rootMessageId);
119            }
120    
121            /**
122            * Gets the message count of this message boards thread.
123            *
124            * @return the message count of this message boards thread
125            */
126            public int getMessageCount() {
127                    return _mbThread.getMessageCount();
128            }
129    
130            /**
131            * Sets the message count of this message boards thread.
132            *
133            * @param messageCount the message count of this message boards thread
134            */
135            public void setMessageCount(int messageCount) {
136                    _mbThread.setMessageCount(messageCount);
137            }
138    
139            /**
140            * Gets the view count of this message boards thread.
141            *
142            * @return the view count of this message boards thread
143            */
144            public int getViewCount() {
145                    return _mbThread.getViewCount();
146            }
147    
148            /**
149            * Sets the view count of this message boards thread.
150            *
151            * @param viewCount the view count of this message boards thread
152            */
153            public void setViewCount(int viewCount) {
154                    _mbThread.setViewCount(viewCount);
155            }
156    
157            /**
158            * Gets the last post by user id of this message boards thread.
159            *
160            * @return the last post by user id of this message boards thread
161            */
162            public long getLastPostByUserId() {
163                    return _mbThread.getLastPostByUserId();
164            }
165    
166            /**
167            * Sets the last post by user id of this message boards thread.
168            *
169            * @param lastPostByUserId the last post by user id of this message boards thread
170            */
171            public void setLastPostByUserId(long lastPostByUserId) {
172                    _mbThread.setLastPostByUserId(lastPostByUserId);
173            }
174    
175            /**
176            * Gets the last post by user uuid of this message boards thread.
177            *
178            * @return the last post by user uuid of this message boards thread
179            * @throws SystemException if a system exception occurred
180            */
181            public java.lang.String getLastPostByUserUuid()
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _mbThread.getLastPostByUserUuid();
184            }
185    
186            /**
187            * Sets the last post by user uuid of this message boards thread.
188            *
189            * @param lastPostByUserUuid the last post by user uuid of this message boards thread
190            */
191            public void setLastPostByUserUuid(java.lang.String lastPostByUserUuid) {
192                    _mbThread.setLastPostByUserUuid(lastPostByUserUuid);
193            }
194    
195            /**
196            * Gets the last post date of this message boards thread.
197            *
198            * @return the last post date of this message boards thread
199            */
200            public java.util.Date getLastPostDate() {
201                    return _mbThread.getLastPostDate();
202            }
203    
204            /**
205            * Sets the last post date of this message boards thread.
206            *
207            * @param lastPostDate the last post date of this message boards thread
208            */
209            public void setLastPostDate(java.util.Date lastPostDate) {
210                    _mbThread.setLastPostDate(lastPostDate);
211            }
212    
213            /**
214            * Gets the priority of this message boards thread.
215            *
216            * @return the priority of this message boards thread
217            */
218            public double getPriority() {
219                    return _mbThread.getPriority();
220            }
221    
222            /**
223            * Sets the priority of this message boards thread.
224            *
225            * @param priority the priority of this message boards thread
226            */
227            public void setPriority(double priority) {
228                    _mbThread.setPriority(priority);
229            }
230    
231            /**
232            * Gets the status of this message boards thread.
233            *
234            * @return the status of this message boards thread
235            */
236            public int getStatus() {
237                    return _mbThread.getStatus();
238            }
239    
240            /**
241            * Sets the status of this message boards thread.
242            *
243            * @param status the status of this message boards thread
244            */
245            public void setStatus(int status) {
246                    _mbThread.setStatus(status);
247            }
248    
249            /**
250            * Gets the status by user id of this message boards thread.
251            *
252            * @return the status by user id of this message boards thread
253            */
254            public long getStatusByUserId() {
255                    return _mbThread.getStatusByUserId();
256            }
257    
258            /**
259            * Sets the status by user id of this message boards thread.
260            *
261            * @param statusByUserId the status by user id of this message boards thread
262            */
263            public void setStatusByUserId(long statusByUserId) {
264                    _mbThread.setStatusByUserId(statusByUserId);
265            }
266    
267            /**
268            * Gets the status by user uuid of this message boards thread.
269            *
270            * @return the status by user uuid of this message boards thread
271            * @throws SystemException if a system exception occurred
272            */
273            public java.lang.String getStatusByUserUuid()
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return _mbThread.getStatusByUserUuid();
276            }
277    
278            /**
279            * Sets the status by user uuid of this message boards thread.
280            *
281            * @param statusByUserUuid the status by user uuid of this message boards thread
282            */
283            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
284                    _mbThread.setStatusByUserUuid(statusByUserUuid);
285            }
286    
287            /**
288            * Gets the status by user name of this message boards thread.
289            *
290            * @return the status by user name of this message boards thread
291            */
292            public java.lang.String getStatusByUserName() {
293                    return _mbThread.getStatusByUserName();
294            }
295    
296            /**
297            * Sets the status by user name of this message boards thread.
298            *
299            * @param statusByUserName the status by user name of this message boards thread
300            */
301            public void setStatusByUserName(java.lang.String statusByUserName) {
302                    _mbThread.setStatusByUserName(statusByUserName);
303            }
304    
305            /**
306            * Gets the status date of this message boards thread.
307            *
308            * @return the status date of this message boards thread
309            */
310            public java.util.Date getStatusDate() {
311                    return _mbThread.getStatusDate();
312            }
313    
314            /**
315            * Sets the status date of this message boards thread.
316            *
317            * @param statusDate the status date of this message boards thread
318            */
319            public void setStatusDate(java.util.Date statusDate) {
320                    _mbThread.setStatusDate(statusDate);
321            }
322    
323            /**
324            * @deprecated {@link #isApproved}
325            */
326            public boolean getApproved() {
327                    return _mbThread.getApproved();
328            }
329    
330            /**
331            * Determines whether this message boards thread is approved.
332            *
333            * @return true if this message boards thread is approved; false otherwise
334            */
335            public boolean isApproved() {
336                    return _mbThread.isApproved();
337            }
338    
339            /**
340            * Determines whether this message boards thread is a draft.
341            *
342            * @return true if this message boards thread is a draft; false otherwise
343            */
344            public boolean isDraft() {
345                    return _mbThread.isDraft();
346            }
347    
348            /**
349            * Determines whether this message boards thread is expired.
350            *
351            * @return true if this message boards thread is expired; false otherwise
352            */
353            public boolean isExpired() {
354                    return _mbThread.isExpired();
355            }
356    
357            /**
358            * Determines whether this message boards thread is pending.
359            *
360            * @return true if this message boards thread is pending; false otherwise
361            */
362            public boolean isPending() {
363                    return _mbThread.isPending();
364            }
365    
366            public boolean isNew() {
367                    return _mbThread.isNew();
368            }
369    
370            public void setNew(boolean n) {
371                    _mbThread.setNew(n);
372            }
373    
374            public boolean isCachedModel() {
375                    return _mbThread.isCachedModel();
376            }
377    
378            public void setCachedModel(boolean cachedModel) {
379                    _mbThread.setCachedModel(cachedModel);
380            }
381    
382            public boolean isEscapedModel() {
383                    return _mbThread.isEscapedModel();
384            }
385    
386            public void setEscapedModel(boolean escapedModel) {
387                    _mbThread.setEscapedModel(escapedModel);
388            }
389    
390            public java.io.Serializable getPrimaryKeyObj() {
391                    return _mbThread.getPrimaryKeyObj();
392            }
393    
394            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
395                    return _mbThread.getExpandoBridge();
396            }
397    
398            public void setExpandoBridgeAttributes(
399                    com.liferay.portal.service.ServiceContext serviceContext) {
400                    _mbThread.setExpandoBridgeAttributes(serviceContext);
401            }
402    
403            public java.lang.Object clone() {
404                    return _mbThread.clone();
405            }
406    
407            public int compareTo(
408                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
409                    return _mbThread.compareTo(mbThread);
410            }
411    
412            public int hashCode() {
413                    return _mbThread.hashCode();
414            }
415    
416            public com.liferay.portlet.messageboards.model.MBThread toEscapedModel() {
417                    return _mbThread.toEscapedModel();
418            }
419    
420            public java.lang.String toString() {
421                    return _mbThread.toString();
422            }
423    
424            public java.lang.String toXmlString() {
425                    return _mbThread.toXmlString();
426            }
427    
428            public java.lang.String getAttachmentsDir() {
429                    return _mbThread.getAttachmentsDir();
430            }
431    
432            public com.liferay.portal.model.Lock getLock() {
433                    return _mbThread.getLock();
434            }
435    
436            public boolean hasLock(long userId) {
437                    return _mbThread.hasLock(userId);
438            }
439    
440            public boolean isLocked() {
441                    return _mbThread.isLocked();
442            }
443    
444            public MBThread getWrappedMBThread() {
445                    return _mbThread;
446            }
447    
448            private MBThread _mbThread;
449    }