001    /**
002     * Copyright (c) 2000-2011 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    /**
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            public Class<?> getModelClass() {
032                    return MBThread.class;
033            }
034    
035            public String getModelClassName() {
036                    return MBThread.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this message boards thread.
041            *
042            * @return the primary key of this message boards thread
043            */
044            public long getPrimaryKey() {
045                    return _mbThread.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this message boards thread.
050            *
051            * @param primaryKey the primary key of this message boards thread
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _mbThread.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the thread ID of this message boards thread.
059            *
060            * @return the thread ID of this message boards thread
061            */
062            public long getThreadId() {
063                    return _mbThread.getThreadId();
064            }
065    
066            /**
067            * Sets the thread ID of this message boards thread.
068            *
069            * @param threadId the thread ID of this message boards thread
070            */
071            public void setThreadId(long threadId) {
072                    _mbThread.setThreadId(threadId);
073            }
074    
075            /**
076            * Returns the group ID of this message boards thread.
077            *
078            * @return the group ID of this message boards thread
079            */
080            public long getGroupId() {
081                    return _mbThread.getGroupId();
082            }
083    
084            /**
085            * Sets the group ID of this message boards thread.
086            *
087            * @param groupId the group ID of this message boards thread
088            */
089            public void setGroupId(long groupId) {
090                    _mbThread.setGroupId(groupId);
091            }
092    
093            /**
094            * Returns the company ID of this message boards thread.
095            *
096            * @return the company ID of this message boards thread
097            */
098            public long getCompanyId() {
099                    return _mbThread.getCompanyId();
100            }
101    
102            /**
103            * Sets the company ID of this message boards thread.
104            *
105            * @param companyId the company ID of this message boards thread
106            */
107            public void setCompanyId(long companyId) {
108                    _mbThread.setCompanyId(companyId);
109            }
110    
111            /**
112            * Returns the category ID of this message boards thread.
113            *
114            * @return the category ID of this message boards thread
115            */
116            public long getCategoryId() {
117                    return _mbThread.getCategoryId();
118            }
119    
120            /**
121            * Sets the category ID of this message boards thread.
122            *
123            * @param categoryId the category ID of this message boards thread
124            */
125            public void setCategoryId(long categoryId) {
126                    _mbThread.setCategoryId(categoryId);
127            }
128    
129            /**
130            * Returns the root message ID of this message boards thread.
131            *
132            * @return the root message ID of this message boards thread
133            */
134            public long getRootMessageId() {
135                    return _mbThread.getRootMessageId();
136            }
137    
138            /**
139            * Sets the root message ID of this message boards thread.
140            *
141            * @param rootMessageId the root message ID of this message boards thread
142            */
143            public void setRootMessageId(long rootMessageId) {
144                    _mbThread.setRootMessageId(rootMessageId);
145            }
146    
147            /**
148            * Returns the root message user ID of this message boards thread.
149            *
150            * @return the root message user ID of this message boards thread
151            */
152            public long getRootMessageUserId() {
153                    return _mbThread.getRootMessageUserId();
154            }
155    
156            /**
157            * Sets the root message user ID of this message boards thread.
158            *
159            * @param rootMessageUserId the root message user ID of this message boards thread
160            */
161            public void setRootMessageUserId(long rootMessageUserId) {
162                    _mbThread.setRootMessageUserId(rootMessageUserId);
163            }
164    
165            /**
166            * Returns the root message user uuid of this message boards thread.
167            *
168            * @return the root message user uuid of this message boards thread
169            * @throws SystemException if a system exception occurred
170            */
171            public java.lang.String getRootMessageUserUuid()
172                    throws com.liferay.portal.kernel.exception.SystemException {
173                    return _mbThread.getRootMessageUserUuid();
174            }
175    
176            /**
177            * Sets the root message user uuid of this message boards thread.
178            *
179            * @param rootMessageUserUuid the root message user uuid of this message boards thread
180            */
181            public void setRootMessageUserUuid(java.lang.String rootMessageUserUuid) {
182                    _mbThread.setRootMessageUserUuid(rootMessageUserUuid);
183            }
184    
185            /**
186            * Returns the message count of this message boards thread.
187            *
188            * @return the message count of this message boards thread
189            */
190            public int getMessageCount() {
191                    return _mbThread.getMessageCount();
192            }
193    
194            /**
195            * Sets the message count of this message boards thread.
196            *
197            * @param messageCount the message count of this message boards thread
198            */
199            public void setMessageCount(int messageCount) {
200                    _mbThread.setMessageCount(messageCount);
201            }
202    
203            /**
204            * Returns the view count of this message boards thread.
205            *
206            * @return the view count of this message boards thread
207            */
208            public int getViewCount() {
209                    return _mbThread.getViewCount();
210            }
211    
212            /**
213            * Sets the view count of this message boards thread.
214            *
215            * @param viewCount the view count of this message boards thread
216            */
217            public void setViewCount(int viewCount) {
218                    _mbThread.setViewCount(viewCount);
219            }
220    
221            /**
222            * Returns the last post by user ID of this message boards thread.
223            *
224            * @return the last post by user ID of this message boards thread
225            */
226            public long getLastPostByUserId() {
227                    return _mbThread.getLastPostByUserId();
228            }
229    
230            /**
231            * Sets the last post by user ID of this message boards thread.
232            *
233            * @param lastPostByUserId the last post by user ID of this message boards thread
234            */
235            public void setLastPostByUserId(long lastPostByUserId) {
236                    _mbThread.setLastPostByUserId(lastPostByUserId);
237            }
238    
239            /**
240            * Returns the last post by user uuid of this message boards thread.
241            *
242            * @return the last post by user uuid of this message boards thread
243            * @throws SystemException if a system exception occurred
244            */
245            public java.lang.String getLastPostByUserUuid()
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _mbThread.getLastPostByUserUuid();
248            }
249    
250            /**
251            * Sets the last post by user uuid of this message boards thread.
252            *
253            * @param lastPostByUserUuid the last post by user uuid of this message boards thread
254            */
255            public void setLastPostByUserUuid(java.lang.String lastPostByUserUuid) {
256                    _mbThread.setLastPostByUserUuid(lastPostByUserUuid);
257            }
258    
259            /**
260            * Returns the last post date of this message boards thread.
261            *
262            * @return the last post date of this message boards thread
263            */
264            public java.util.Date getLastPostDate() {
265                    return _mbThread.getLastPostDate();
266            }
267    
268            /**
269            * Sets the last post date of this message boards thread.
270            *
271            * @param lastPostDate the last post date of this message boards thread
272            */
273            public void setLastPostDate(java.util.Date lastPostDate) {
274                    _mbThread.setLastPostDate(lastPostDate);
275            }
276    
277            /**
278            * Returns the priority of this message boards thread.
279            *
280            * @return the priority of this message boards thread
281            */
282            public double getPriority() {
283                    return _mbThread.getPriority();
284            }
285    
286            /**
287            * Sets the priority of this message boards thread.
288            *
289            * @param priority the priority of this message boards thread
290            */
291            public void setPriority(double priority) {
292                    _mbThread.setPriority(priority);
293            }
294    
295            /**
296            * Returns the question of this message boards thread.
297            *
298            * @return the question of this message boards thread
299            */
300            public boolean getQuestion() {
301                    return _mbThread.getQuestion();
302            }
303    
304            /**
305            * Returns <code>true</code> if this message boards thread is question.
306            *
307            * @return <code>true</code> if this message boards thread is question; <code>false</code> otherwise
308            */
309            public boolean isQuestion() {
310                    return _mbThread.isQuestion();
311            }
312    
313            /**
314            * Sets whether this message boards thread is question.
315            *
316            * @param question the question of this message boards thread
317            */
318            public void setQuestion(boolean question) {
319                    _mbThread.setQuestion(question);
320            }
321    
322            /**
323            * Returns the status of this message boards thread.
324            *
325            * @return the status of this message boards thread
326            */
327            public int getStatus() {
328                    return _mbThread.getStatus();
329            }
330    
331            /**
332            * Sets the status of this message boards thread.
333            *
334            * @param status the status of this message boards thread
335            */
336            public void setStatus(int status) {
337                    _mbThread.setStatus(status);
338            }
339    
340            /**
341            * Returns the status by user ID of this message boards thread.
342            *
343            * @return the status by user ID of this message boards thread
344            */
345            public long getStatusByUserId() {
346                    return _mbThread.getStatusByUserId();
347            }
348    
349            /**
350            * Sets the status by user ID of this message boards thread.
351            *
352            * @param statusByUserId the status by user ID of this message boards thread
353            */
354            public void setStatusByUserId(long statusByUserId) {
355                    _mbThread.setStatusByUserId(statusByUserId);
356            }
357    
358            /**
359            * Returns the status by user uuid of this message boards thread.
360            *
361            * @return the status by user uuid of this message boards thread
362            * @throws SystemException if a system exception occurred
363            */
364            public java.lang.String getStatusByUserUuid()
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _mbThread.getStatusByUserUuid();
367            }
368    
369            /**
370            * Sets the status by user uuid of this message boards thread.
371            *
372            * @param statusByUserUuid the status by user uuid of this message boards thread
373            */
374            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
375                    _mbThread.setStatusByUserUuid(statusByUserUuid);
376            }
377    
378            /**
379            * Returns the status by user name of this message boards thread.
380            *
381            * @return the status by user name of this message boards thread
382            */
383            public java.lang.String getStatusByUserName() {
384                    return _mbThread.getStatusByUserName();
385            }
386    
387            /**
388            * Sets the status by user name of this message boards thread.
389            *
390            * @param statusByUserName the status by user name of this message boards thread
391            */
392            public void setStatusByUserName(java.lang.String statusByUserName) {
393                    _mbThread.setStatusByUserName(statusByUserName);
394            }
395    
396            /**
397            * Returns the status date of this message boards thread.
398            *
399            * @return the status date of this message boards thread
400            */
401            public java.util.Date getStatusDate() {
402                    return _mbThread.getStatusDate();
403            }
404    
405            /**
406            * Sets the status date of this message boards thread.
407            *
408            * @param statusDate the status date of this message boards thread
409            */
410            public void setStatusDate(java.util.Date statusDate) {
411                    _mbThread.setStatusDate(statusDate);
412            }
413    
414            /**
415            * @deprecated Renamed to {@link #isApproved()}
416            */
417            public boolean getApproved() {
418                    return _mbThread.getApproved();
419            }
420    
421            /**
422            * Returns <code>true</code> if this message boards thread is approved.
423            *
424            * @return <code>true</code> if this message boards thread is approved; <code>false</code> otherwise
425            */
426            public boolean isApproved() {
427                    return _mbThread.isApproved();
428            }
429    
430            /**
431            * Returns <code>true</code> if this message boards thread is a draft.
432            *
433            * @return <code>true</code> if this message boards thread is a draft; <code>false</code> otherwise
434            */
435            public boolean isDraft() {
436                    return _mbThread.isDraft();
437            }
438    
439            /**
440            * Returns <code>true</code> if this message boards thread is expired.
441            *
442            * @return <code>true</code> if this message boards thread is expired; <code>false</code> otherwise
443            */
444            public boolean isExpired() {
445                    return _mbThread.isExpired();
446            }
447    
448            /**
449            * Returns <code>true</code> if this message boards thread is pending.
450            *
451            * @return <code>true</code> if this message boards thread is pending; <code>false</code> otherwise
452            */
453            public boolean isPending() {
454                    return _mbThread.isPending();
455            }
456    
457            public boolean isNew() {
458                    return _mbThread.isNew();
459            }
460    
461            public void setNew(boolean n) {
462                    _mbThread.setNew(n);
463            }
464    
465            public boolean isCachedModel() {
466                    return _mbThread.isCachedModel();
467            }
468    
469            public void setCachedModel(boolean cachedModel) {
470                    _mbThread.setCachedModel(cachedModel);
471            }
472    
473            public boolean isEscapedModel() {
474                    return _mbThread.isEscapedModel();
475            }
476    
477            public java.io.Serializable getPrimaryKeyObj() {
478                    return _mbThread.getPrimaryKeyObj();
479            }
480    
481            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
482                    _mbThread.setPrimaryKeyObj(primaryKeyObj);
483            }
484    
485            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
486                    return _mbThread.getExpandoBridge();
487            }
488    
489            public void setExpandoBridgeAttributes(
490                    com.liferay.portal.service.ServiceContext serviceContext) {
491                    _mbThread.setExpandoBridgeAttributes(serviceContext);
492            }
493    
494            @Override
495            public java.lang.Object clone() {
496                    return new MBThreadWrapper((MBThread)_mbThread.clone());
497            }
498    
499            public int compareTo(
500                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
501                    return _mbThread.compareTo(mbThread);
502            }
503    
504            @Override
505            public int hashCode() {
506                    return _mbThread.hashCode();
507            }
508    
509            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBThread> toCacheModel() {
510                    return _mbThread.toCacheModel();
511            }
512    
513            public com.liferay.portlet.messageboards.model.MBThread toEscapedModel() {
514                    return new MBThreadWrapper(_mbThread.toEscapedModel());
515            }
516    
517            @Override
518            public java.lang.String toString() {
519                    return _mbThread.toString();
520            }
521    
522            public java.lang.String toXmlString() {
523                    return _mbThread.toXmlString();
524            }
525    
526            public void persist()
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    _mbThread.persist();
529            }
530    
531            public java.lang.String getAttachmentsDir() {
532                    return _mbThread.getAttachmentsDir();
533            }
534    
535            public com.liferay.portal.model.Lock getLock() {
536                    return _mbThread.getLock();
537            }
538    
539            public boolean hasLock(long userId) {
540                    return _mbThread.hasLock(userId);
541            }
542    
543            public boolean isLocked() {
544                    return _mbThread.isLocked();
545            }
546    
547            public MBThread getWrappedMBThread() {
548                    return _mbThread;
549            }
550    
551            public void resetOriginalValues() {
552                    _mbThread.resetOriginalValues();
553            }
554    
555            private MBThread _mbThread;
556    }