001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.lar.StagedModelType;
020    import com.liferay.portal.kernel.util.Validator;
021    import com.liferay.portal.model.ModelWrapper;
022    
023    import java.util.Date;
024    import java.util.HashMap;
025    import java.util.Map;
026    
027    /**
028     * <p>
029     * This class is a wrapper for {@link MBThread}.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see MBThread
034     * @generated
035     */
036    @ProviderType
037    public class MBThreadWrapper implements MBThread, ModelWrapper<MBThread> {
038            public MBThreadWrapper(MBThread mbThread) {
039                    _mbThread = mbThread;
040            }
041    
042            @Override
043            public Class<?> getModelClass() {
044                    return MBThread.class;
045            }
046    
047            @Override
048            public String getModelClassName() {
049                    return MBThread.class.getName();
050            }
051    
052            @Override
053            public Map<String, Object> getModelAttributes() {
054                    Map<String, Object> attributes = new HashMap<String, Object>();
055    
056                    attributes.put("uuid", getUuid());
057                    attributes.put("threadId", getThreadId());
058                    attributes.put("groupId", getGroupId());
059                    attributes.put("companyId", getCompanyId());
060                    attributes.put("userId", getUserId());
061                    attributes.put("userName", getUserName());
062                    attributes.put("createDate", getCreateDate());
063                    attributes.put("modifiedDate", getModifiedDate());
064                    attributes.put("categoryId", getCategoryId());
065                    attributes.put("rootMessageId", getRootMessageId());
066                    attributes.put("rootMessageUserId", getRootMessageUserId());
067                    attributes.put("messageCount", getMessageCount());
068                    attributes.put("viewCount", getViewCount());
069                    attributes.put("lastPostByUserId", getLastPostByUserId());
070                    attributes.put("lastPostDate", getLastPostDate());
071                    attributes.put("priority", getPriority());
072                    attributes.put("question", getQuestion());
073                    attributes.put("status", getStatus());
074                    attributes.put("statusByUserId", getStatusByUserId());
075                    attributes.put("statusByUserName", getStatusByUserName());
076                    attributes.put("statusDate", getStatusDate());
077    
078                    return attributes;
079            }
080    
081            @Override
082            public void setModelAttributes(Map<String, Object> attributes) {
083                    String uuid = (String)attributes.get("uuid");
084    
085                    if (uuid != null) {
086                            setUuid(uuid);
087                    }
088    
089                    Long threadId = (Long)attributes.get("threadId");
090    
091                    if (threadId != null) {
092                            setThreadId(threadId);
093                    }
094    
095                    Long groupId = (Long)attributes.get("groupId");
096    
097                    if (groupId != null) {
098                            setGroupId(groupId);
099                    }
100    
101                    Long companyId = (Long)attributes.get("companyId");
102    
103                    if (companyId != null) {
104                            setCompanyId(companyId);
105                    }
106    
107                    Long userId = (Long)attributes.get("userId");
108    
109                    if (userId != null) {
110                            setUserId(userId);
111                    }
112    
113                    String userName = (String)attributes.get("userName");
114    
115                    if (userName != null) {
116                            setUserName(userName);
117                    }
118    
119                    Date createDate = (Date)attributes.get("createDate");
120    
121                    if (createDate != null) {
122                            setCreateDate(createDate);
123                    }
124    
125                    Date modifiedDate = (Date)attributes.get("modifiedDate");
126    
127                    if (modifiedDate != null) {
128                            setModifiedDate(modifiedDate);
129                    }
130    
131                    Long categoryId = (Long)attributes.get("categoryId");
132    
133                    if (categoryId != null) {
134                            setCategoryId(categoryId);
135                    }
136    
137                    Long rootMessageId = (Long)attributes.get("rootMessageId");
138    
139                    if (rootMessageId != null) {
140                            setRootMessageId(rootMessageId);
141                    }
142    
143                    Long rootMessageUserId = (Long)attributes.get("rootMessageUserId");
144    
145                    if (rootMessageUserId != null) {
146                            setRootMessageUserId(rootMessageUserId);
147                    }
148    
149                    Integer messageCount = (Integer)attributes.get("messageCount");
150    
151                    if (messageCount != null) {
152                            setMessageCount(messageCount);
153                    }
154    
155                    Integer viewCount = (Integer)attributes.get("viewCount");
156    
157                    if (viewCount != null) {
158                            setViewCount(viewCount);
159                    }
160    
161                    Long lastPostByUserId = (Long)attributes.get("lastPostByUserId");
162    
163                    if (lastPostByUserId != null) {
164                            setLastPostByUserId(lastPostByUserId);
165                    }
166    
167                    Date lastPostDate = (Date)attributes.get("lastPostDate");
168    
169                    if (lastPostDate != null) {
170                            setLastPostDate(lastPostDate);
171                    }
172    
173                    Double priority = (Double)attributes.get("priority");
174    
175                    if (priority != null) {
176                            setPriority(priority);
177                    }
178    
179                    Boolean question = (Boolean)attributes.get("question");
180    
181                    if (question != null) {
182                            setQuestion(question);
183                    }
184    
185                    Integer status = (Integer)attributes.get("status");
186    
187                    if (status != null) {
188                            setStatus(status);
189                    }
190    
191                    Long statusByUserId = (Long)attributes.get("statusByUserId");
192    
193                    if (statusByUserId != null) {
194                            setStatusByUserId(statusByUserId);
195                    }
196    
197                    String statusByUserName = (String)attributes.get("statusByUserName");
198    
199                    if (statusByUserName != null) {
200                            setStatusByUserName(statusByUserName);
201                    }
202    
203                    Date statusDate = (Date)attributes.get("statusDate");
204    
205                    if (statusDate != null) {
206                            setStatusDate(statusDate);
207                    }
208            }
209    
210            @Override
211            public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
212                    throws com.liferay.portal.kernel.exception.PortalException {
213                    return _mbThread.addAttachmentsFolder();
214            }
215    
216            @Override
217            public java.lang.Object clone() {
218                    return new MBThreadWrapper((MBThread)_mbThread.clone());
219            }
220    
221            @Override
222            public int compareTo(
223                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
224                    return _mbThread.compareTo(mbThread);
225            }
226    
227            /**
228            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
229            */
230            @Deprecated
231            @Override
232            public boolean getApproved() {
233                    return _mbThread.getApproved();
234            }
235    
236            @Override
237            public long getAttachmentsFolderId() {
238                    return _mbThread.getAttachmentsFolderId();
239            }
240    
241            @Override
242            public com.liferay.portlet.messageboards.model.MBCategory getCategory()
243                    throws com.liferay.portal.kernel.exception.PortalException {
244                    return _mbThread.getCategory();
245            }
246    
247            /**
248            * Returns the category ID of this message boards thread.
249            *
250            * @return the category ID of this message boards thread
251            */
252            @Override
253            public long getCategoryId() {
254                    return _mbThread.getCategoryId();
255            }
256    
257            /**
258            * Returns the company ID of this message boards thread.
259            *
260            * @return the company ID of this message boards thread
261            */
262            @Override
263            public long getCompanyId() {
264                    return _mbThread.getCompanyId();
265            }
266    
267            /**
268            * Returns the container model ID of this message boards thread.
269            *
270            * @return the container model ID of this message boards thread
271            */
272            @Override
273            public long getContainerModelId() {
274                    return _mbThread.getContainerModelId();
275            }
276    
277            /**
278            * Returns the container name of this message boards thread.
279            *
280            * @return the container name of this message boards thread
281            */
282            @Override
283            public java.lang.String getContainerModelName() {
284                    return _mbThread.getContainerModelName();
285            }
286    
287            /**
288            * Returns the create date of this message boards thread.
289            *
290            * @return the create date of this message boards thread
291            */
292            @Override
293            public java.util.Date getCreateDate() {
294                    return _mbThread.getCreateDate();
295            }
296    
297            @Override
298            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
299                    return _mbThread.getExpandoBridge();
300            }
301    
302            /**
303            * Returns the group ID of this message boards thread.
304            *
305            * @return the group ID of this message boards thread
306            */
307            @Override
308            public long getGroupId() {
309                    return _mbThread.getGroupId();
310            }
311    
312            /**
313            * Returns the last post by user ID of this message boards thread.
314            *
315            * @return the last post by user ID of this message boards thread
316            */
317            @Override
318            public long getLastPostByUserId() {
319                    return _mbThread.getLastPostByUserId();
320            }
321    
322            /**
323            * Returns the last post by user uuid of this message boards thread.
324            *
325            * @return the last post by user uuid of this message boards thread
326            */
327            @Override
328            public java.lang.String getLastPostByUserUuid() {
329                    return _mbThread.getLastPostByUserUuid();
330            }
331    
332            /**
333            * Returns the last post date of this message boards thread.
334            *
335            * @return the last post date of this message boards thread
336            */
337            @Override
338            public java.util.Date getLastPostDate() {
339                    return _mbThread.getLastPostDate();
340            }
341    
342            @Override
343            public com.liferay.portal.model.Lock getLock() {
344                    return _mbThread.getLock();
345            }
346    
347            /**
348            * Returns the message count of this message boards thread.
349            *
350            * @return the message count of this message boards thread
351            */
352            @Override
353            public int getMessageCount() {
354                    return _mbThread.getMessageCount();
355            }
356    
357            /**
358            * Returns the modified date of this message boards thread.
359            *
360            * @return the modified date of this message boards thread
361            */
362            @Override
363            public java.util.Date getModifiedDate() {
364                    return _mbThread.getModifiedDate();
365            }
366    
367            /**
368            * Returns the parent container model ID of this message boards thread.
369            *
370            * @return the parent container model ID of this message boards thread
371            */
372            @Override
373            public long getParentContainerModelId() {
374                    return _mbThread.getParentContainerModelId();
375            }
376    
377            @Override
378            public long[] getParticipantUserIds() {
379                    return _mbThread.getParticipantUserIds();
380            }
381    
382            /**
383            * Returns the primary key of this message boards thread.
384            *
385            * @return the primary key of this message boards thread
386            */
387            @Override
388            public long getPrimaryKey() {
389                    return _mbThread.getPrimaryKey();
390            }
391    
392            @Override
393            public java.io.Serializable getPrimaryKeyObj() {
394                    return _mbThread.getPrimaryKeyObj();
395            }
396    
397            /**
398            * Returns the priority of this message boards thread.
399            *
400            * @return the priority of this message boards thread
401            */
402            @Override
403            public double getPriority() {
404                    return _mbThread.getPriority();
405            }
406    
407            /**
408            * Returns the question of this message boards thread.
409            *
410            * @return the question of this message boards thread
411            */
412            @Override
413            public boolean getQuestion() {
414                    return _mbThread.getQuestion();
415            }
416    
417            /**
418            * Returns the root message ID of this message boards thread.
419            *
420            * @return the root message ID of this message boards thread
421            */
422            @Override
423            public long getRootMessageId() {
424                    return _mbThread.getRootMessageId();
425            }
426    
427            /**
428            * Returns the root message user ID of this message boards thread.
429            *
430            * @return the root message user ID of this message boards thread
431            */
432            @Override
433            public long getRootMessageUserId() {
434                    return _mbThread.getRootMessageUserId();
435            }
436    
437            /**
438            * Returns the root message user uuid of this message boards thread.
439            *
440            * @return the root message user uuid of this message boards thread
441            */
442            @Override
443            public java.lang.String getRootMessageUserUuid() {
444                    return _mbThread.getRootMessageUserUuid();
445            }
446    
447            /**
448            * Returns the status of this message boards thread.
449            *
450            * @return the status of this message boards thread
451            */
452            @Override
453            public int getStatus() {
454                    return _mbThread.getStatus();
455            }
456    
457            /**
458            * Returns the status by user ID of this message boards thread.
459            *
460            * @return the status by user ID of this message boards thread
461            */
462            @Override
463            public long getStatusByUserId() {
464                    return _mbThread.getStatusByUserId();
465            }
466    
467            /**
468            * Returns the status by user name of this message boards thread.
469            *
470            * @return the status by user name of this message boards thread
471            */
472            @Override
473            public java.lang.String getStatusByUserName() {
474                    return _mbThread.getStatusByUserName();
475            }
476    
477            /**
478            * Returns the status by user uuid of this message boards thread.
479            *
480            * @return the status by user uuid of this message boards thread
481            */
482            @Override
483            public java.lang.String getStatusByUserUuid() {
484                    return _mbThread.getStatusByUserUuid();
485            }
486    
487            /**
488            * Returns the status date of this message boards thread.
489            *
490            * @return the status date of this message boards thread
491            */
492            @Override
493            public java.util.Date getStatusDate() {
494                    return _mbThread.getStatusDate();
495            }
496    
497            /**
498            * Returns the thread ID of this message boards thread.
499            *
500            * @return the thread ID of this message boards thread
501            */
502            @Override
503            public long getThreadId() {
504                    return _mbThread.getThreadId();
505            }
506    
507            /**
508            * Returns the trash entry created when this message boards thread was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this message boards thread.
509            *
510            * @return the trash entry created when this message boards thread was moved to the Recycle Bin
511            */
512            @Override
513            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
514                    throws com.liferay.portal.kernel.exception.PortalException {
515                    return _mbThread.getTrashEntry();
516            }
517    
518            /**
519            * Returns the class primary key of the trash entry for this message boards thread.
520            *
521            * @return the class primary key of the trash entry for this message boards thread
522            */
523            @Override
524            public long getTrashEntryClassPK() {
525                    return _mbThread.getTrashEntryClassPK();
526            }
527    
528            /**
529            * Returns the trash handler for this message boards thread.
530            *
531            * @return the trash handler for this message boards thread
532            */
533            @Override
534            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
535                    return _mbThread.getTrashHandler();
536            }
537    
538            /**
539            * Returns the user ID of this message boards thread.
540            *
541            * @return the user ID of this message boards thread
542            */
543            @Override
544            public long getUserId() {
545                    return _mbThread.getUserId();
546            }
547    
548            /**
549            * Returns the user name of this message boards thread.
550            *
551            * @return the user name of this message boards thread
552            */
553            @Override
554            public java.lang.String getUserName() {
555                    return _mbThread.getUserName();
556            }
557    
558            /**
559            * Returns the user uuid of this message boards thread.
560            *
561            * @return the user uuid of this message boards thread
562            */
563            @Override
564            public java.lang.String getUserUuid() {
565                    return _mbThread.getUserUuid();
566            }
567    
568            /**
569            * Returns the uuid of this message boards thread.
570            *
571            * @return the uuid of this message boards thread
572            */
573            @Override
574            public java.lang.String getUuid() {
575                    return _mbThread.getUuid();
576            }
577    
578            /**
579            * Returns the view count of this message boards thread.
580            *
581            * @return the view count of this message boards thread
582            */
583            @Override
584            public int getViewCount() {
585                    return _mbThread.getViewCount();
586            }
587    
588            @Override
589            public boolean hasLock(long userId) {
590                    return _mbThread.hasLock(userId);
591            }
592    
593            @Override
594            public int hashCode() {
595                    return _mbThread.hashCode();
596            }
597    
598            /**
599            * Returns <code>true</code> if this message boards thread is approved.
600            *
601            * @return <code>true</code> if this message boards thread is approved; <code>false</code> otherwise
602            */
603            @Override
604            public boolean isApproved() {
605                    return _mbThread.isApproved();
606            }
607    
608            @Override
609            public boolean isCachedModel() {
610                    return _mbThread.isCachedModel();
611            }
612    
613            /**
614            * Returns <code>true</code> if this message boards thread is denied.
615            *
616            * @return <code>true</code> if this message boards thread is denied; <code>false</code> otherwise
617            */
618            @Override
619            public boolean isDenied() {
620                    return _mbThread.isDenied();
621            }
622    
623            /**
624            * Returns <code>true</code> if this message boards thread is a draft.
625            *
626            * @return <code>true</code> if this message boards thread is a draft; <code>false</code> otherwise
627            */
628            @Override
629            public boolean isDraft() {
630                    return _mbThread.isDraft();
631            }
632    
633            @Override
634            public boolean isEscapedModel() {
635                    return _mbThread.isEscapedModel();
636            }
637    
638            /**
639            * Returns <code>true</code> if this message boards thread is expired.
640            *
641            * @return <code>true</code> if this message boards thread is expired; <code>false</code> otherwise
642            */
643            @Override
644            public boolean isExpired() {
645                    return _mbThread.isExpired();
646            }
647    
648            /**
649            * Returns <code>true</code> if this message boards thread is in the Recycle Bin.
650            *
651            * @return <code>true</code> if this message boards thread is in the Recycle Bin; <code>false</code> otherwise
652            */
653            @Override
654            public boolean isInTrash() {
655                    return _mbThread.isInTrash();
656            }
657    
658            /**
659            * Returns <code>true</code> if the parent of this message boards thread is in the Recycle Bin.
660            *
661            * @return <code>true</code> if the parent of this message boards thread is in the Recycle Bin; <code>false</code> otherwise
662            */
663            @Override
664            public boolean isInTrashContainer() {
665                    return _mbThread.isInTrashContainer();
666            }
667    
668            @Override
669            public boolean isInTrashExplicitly() {
670                    return _mbThread.isInTrashExplicitly();
671            }
672    
673            @Override
674            public boolean isInTrashImplicitly() {
675                    return _mbThread.isInTrashImplicitly();
676            }
677    
678            /**
679            * Returns <code>true</code> if this message boards thread is inactive.
680            *
681            * @return <code>true</code> if this message boards thread is inactive; <code>false</code> otherwise
682            */
683            @Override
684            public boolean isInactive() {
685                    return _mbThread.isInactive();
686            }
687    
688            /**
689            * Returns <code>true</code> if this message boards thread is incomplete.
690            *
691            * @return <code>true</code> if this message boards thread is incomplete; <code>false</code> otherwise
692            */
693            @Override
694            public boolean isIncomplete() {
695                    return _mbThread.isIncomplete();
696            }
697    
698            @Override
699            public boolean isLocked() {
700                    return _mbThread.isLocked();
701            }
702    
703            @Override
704            public boolean isNew() {
705                    return _mbThread.isNew();
706            }
707    
708            /**
709            * Returns <code>true</code> if this message boards thread is pending.
710            *
711            * @return <code>true</code> if this message boards thread is pending; <code>false</code> otherwise
712            */
713            @Override
714            public boolean isPending() {
715                    return _mbThread.isPending();
716            }
717    
718            /**
719            * Returns <code>true</code> if this message boards thread is question.
720            *
721            * @return <code>true</code> if this message boards thread is question; <code>false</code> otherwise
722            */
723            @Override
724            public boolean isQuestion() {
725                    return _mbThread.isQuestion();
726            }
727    
728            /**
729            * Returns <code>true</code> if this message boards thread is scheduled.
730            *
731            * @return <code>true</code> if this message boards thread is scheduled; <code>false</code> otherwise
732            */
733            @Override
734            public boolean isScheduled() {
735                    return _mbThread.isScheduled();
736            }
737    
738            @Override
739            public void persist() {
740                    _mbThread.persist();
741            }
742    
743            @Override
744            public void setCachedModel(boolean cachedModel) {
745                    _mbThread.setCachedModel(cachedModel);
746            }
747    
748            /**
749            * Sets the category ID of this message boards thread.
750            *
751            * @param categoryId the category ID of this message boards thread
752            */
753            @Override
754            public void setCategoryId(long categoryId) {
755                    _mbThread.setCategoryId(categoryId);
756            }
757    
758            /**
759            * Sets the company ID of this message boards thread.
760            *
761            * @param companyId the company ID of this message boards thread
762            */
763            @Override
764            public void setCompanyId(long companyId) {
765                    _mbThread.setCompanyId(companyId);
766            }
767    
768            /**
769            * Sets the container model ID of this message boards thread.
770            *
771            * @param containerModelId the container model ID of this message boards thread
772            */
773            @Override
774            public void setContainerModelId(long containerModelId) {
775                    _mbThread.setContainerModelId(containerModelId);
776            }
777    
778            /**
779            * Sets the create date of this message boards thread.
780            *
781            * @param createDate the create date of this message boards thread
782            */
783            @Override
784            public void setCreateDate(java.util.Date createDate) {
785                    _mbThread.setCreateDate(createDate);
786            }
787    
788            @Override
789            public void setExpandoBridgeAttributes(
790                    com.liferay.portal.model.BaseModel<?> baseModel) {
791                    _mbThread.setExpandoBridgeAttributes(baseModel);
792            }
793    
794            @Override
795            public void setExpandoBridgeAttributes(
796                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
797                    _mbThread.setExpandoBridgeAttributes(expandoBridge);
798            }
799    
800            @Override
801            public void setExpandoBridgeAttributes(
802                    com.liferay.portal.service.ServiceContext serviceContext) {
803                    _mbThread.setExpandoBridgeAttributes(serviceContext);
804            }
805    
806            /**
807            * Sets the group ID of this message boards thread.
808            *
809            * @param groupId the group ID of this message boards thread
810            */
811            @Override
812            public void setGroupId(long groupId) {
813                    _mbThread.setGroupId(groupId);
814            }
815    
816            /**
817            * Sets the last post by user ID of this message boards thread.
818            *
819            * @param lastPostByUserId the last post by user ID of this message boards thread
820            */
821            @Override
822            public void setLastPostByUserId(long lastPostByUserId) {
823                    _mbThread.setLastPostByUserId(lastPostByUserId);
824            }
825    
826            /**
827            * Sets the last post by user uuid of this message boards thread.
828            *
829            * @param lastPostByUserUuid the last post by user uuid of this message boards thread
830            */
831            @Override
832            public void setLastPostByUserUuid(java.lang.String lastPostByUserUuid) {
833                    _mbThread.setLastPostByUserUuid(lastPostByUserUuid);
834            }
835    
836            /**
837            * Sets the last post date of this message boards thread.
838            *
839            * @param lastPostDate the last post date of this message boards thread
840            */
841            @Override
842            public void setLastPostDate(java.util.Date lastPostDate) {
843                    _mbThread.setLastPostDate(lastPostDate);
844            }
845    
846            /**
847            * Sets the message count of this message boards thread.
848            *
849            * @param messageCount the message count of this message boards thread
850            */
851            @Override
852            public void setMessageCount(int messageCount) {
853                    _mbThread.setMessageCount(messageCount);
854            }
855    
856            /**
857            * Sets the modified date of this message boards thread.
858            *
859            * @param modifiedDate the modified date of this message boards thread
860            */
861            @Override
862            public void setModifiedDate(java.util.Date modifiedDate) {
863                    _mbThread.setModifiedDate(modifiedDate);
864            }
865    
866            @Override
867            public void setNew(boolean n) {
868                    _mbThread.setNew(n);
869            }
870    
871            /**
872            * Sets the parent container model ID of this message boards thread.
873            *
874            * @param parentContainerModelId the parent container model ID of this message boards thread
875            */
876            @Override
877            public void setParentContainerModelId(long parentContainerModelId) {
878                    _mbThread.setParentContainerModelId(parentContainerModelId);
879            }
880    
881            /**
882            * Sets the primary key of this message boards thread.
883            *
884            * @param primaryKey the primary key of this message boards thread
885            */
886            @Override
887            public void setPrimaryKey(long primaryKey) {
888                    _mbThread.setPrimaryKey(primaryKey);
889            }
890    
891            @Override
892            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
893                    _mbThread.setPrimaryKeyObj(primaryKeyObj);
894            }
895    
896            /**
897            * Sets the priority of this message boards thread.
898            *
899            * @param priority the priority of this message boards thread
900            */
901            @Override
902            public void setPriority(double priority) {
903                    _mbThread.setPriority(priority);
904            }
905    
906            /**
907            * Sets whether this message boards thread is question.
908            *
909            * @param question the question of this message boards thread
910            */
911            @Override
912            public void setQuestion(boolean question) {
913                    _mbThread.setQuestion(question);
914            }
915    
916            /**
917            * Sets the root message ID of this message boards thread.
918            *
919            * @param rootMessageId the root message ID of this message boards thread
920            */
921            @Override
922            public void setRootMessageId(long rootMessageId) {
923                    _mbThread.setRootMessageId(rootMessageId);
924            }
925    
926            /**
927            * Sets the root message user ID of this message boards thread.
928            *
929            * @param rootMessageUserId the root message user ID of this message boards thread
930            */
931            @Override
932            public void setRootMessageUserId(long rootMessageUserId) {
933                    _mbThread.setRootMessageUserId(rootMessageUserId);
934            }
935    
936            /**
937            * Sets the root message user uuid of this message boards thread.
938            *
939            * @param rootMessageUserUuid the root message user uuid of this message boards thread
940            */
941            @Override
942            public void setRootMessageUserUuid(java.lang.String rootMessageUserUuid) {
943                    _mbThread.setRootMessageUserUuid(rootMessageUserUuid);
944            }
945    
946            /**
947            * Sets the status of this message boards thread.
948            *
949            * @param status the status of this message boards thread
950            */
951            @Override
952            public void setStatus(int status) {
953                    _mbThread.setStatus(status);
954            }
955    
956            /**
957            * Sets the status by user ID of this message boards thread.
958            *
959            * @param statusByUserId the status by user ID of this message boards thread
960            */
961            @Override
962            public void setStatusByUserId(long statusByUserId) {
963                    _mbThread.setStatusByUserId(statusByUserId);
964            }
965    
966            /**
967            * Sets the status by user name of this message boards thread.
968            *
969            * @param statusByUserName the status by user name of this message boards thread
970            */
971            @Override
972            public void setStatusByUserName(java.lang.String statusByUserName) {
973                    _mbThread.setStatusByUserName(statusByUserName);
974            }
975    
976            /**
977            * Sets the status by user uuid of this message boards thread.
978            *
979            * @param statusByUserUuid the status by user uuid of this message boards thread
980            */
981            @Override
982            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
983                    _mbThread.setStatusByUserUuid(statusByUserUuid);
984            }
985    
986            /**
987            * Sets the status date of this message boards thread.
988            *
989            * @param statusDate the status date of this message boards thread
990            */
991            @Override
992            public void setStatusDate(java.util.Date statusDate) {
993                    _mbThread.setStatusDate(statusDate);
994            }
995    
996            /**
997            * Sets the thread ID of this message boards thread.
998            *
999            * @param threadId the thread ID of this message boards thread
1000            */
1001            @Override
1002            public void setThreadId(long threadId) {
1003                    _mbThread.setThreadId(threadId);
1004            }
1005    
1006            /**
1007            * Sets the user ID of this message boards thread.
1008            *
1009            * @param userId the user ID of this message boards thread
1010            */
1011            @Override
1012            public void setUserId(long userId) {
1013                    _mbThread.setUserId(userId);
1014            }
1015    
1016            /**
1017            * Sets the user name of this message boards thread.
1018            *
1019            * @param userName the user name of this message boards thread
1020            */
1021            @Override
1022            public void setUserName(java.lang.String userName) {
1023                    _mbThread.setUserName(userName);
1024            }
1025    
1026            /**
1027            * Sets the user uuid of this message boards thread.
1028            *
1029            * @param userUuid the user uuid of this message boards thread
1030            */
1031            @Override
1032            public void setUserUuid(java.lang.String userUuid) {
1033                    _mbThread.setUserUuid(userUuid);
1034            }
1035    
1036            /**
1037            * Sets the uuid of this message boards thread.
1038            *
1039            * @param uuid the uuid of this message boards thread
1040            */
1041            @Override
1042            public void setUuid(java.lang.String uuid) {
1043                    _mbThread.setUuid(uuid);
1044            }
1045    
1046            /**
1047            * Sets the view count of this message boards thread.
1048            *
1049            * @param viewCount the view count of this message boards thread
1050            */
1051            @Override
1052            public void setViewCount(int viewCount) {
1053                    _mbThread.setViewCount(viewCount);
1054            }
1055    
1056            @Override
1057            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBThread> toCacheModel() {
1058                    return _mbThread.toCacheModel();
1059            }
1060    
1061            @Override
1062            public com.liferay.portlet.messageboards.model.MBThread toEscapedModel() {
1063                    return new MBThreadWrapper(_mbThread.toEscapedModel());
1064            }
1065    
1066            @Override
1067            public java.lang.String toString() {
1068                    return _mbThread.toString();
1069            }
1070    
1071            @Override
1072            public com.liferay.portlet.messageboards.model.MBThread toUnescapedModel() {
1073                    return new MBThreadWrapper(_mbThread.toUnescapedModel());
1074            }
1075    
1076            @Override
1077            public java.lang.String toXmlString() {
1078                    return _mbThread.toXmlString();
1079            }
1080    
1081            @Override
1082            public boolean equals(Object obj) {
1083                    if (this == obj) {
1084                            return true;
1085                    }
1086    
1087                    if (!(obj instanceof MBThreadWrapper)) {
1088                            return false;
1089                    }
1090    
1091                    MBThreadWrapper mbThreadWrapper = (MBThreadWrapper)obj;
1092    
1093                    if (Validator.equals(_mbThread, mbThreadWrapper._mbThread)) {
1094                            return true;
1095                    }
1096    
1097                    return false;
1098            }
1099    
1100            @Override
1101            public StagedModelType getStagedModelType() {
1102                    return _mbThread.getStagedModelType();
1103            }
1104    
1105            /**
1106             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1107             */
1108            @Deprecated
1109            public MBThread getWrappedMBThread() {
1110                    return _mbThread;
1111            }
1112    
1113            @Override
1114            public MBThread getWrappedModel() {
1115                    return _mbThread;
1116            }
1117    
1118            @Override
1119            public boolean isEntityCacheEnabled() {
1120                    return _mbThread.isEntityCacheEnabled();
1121            }
1122    
1123            @Override
1124            public boolean isFinderCacheEnabled() {
1125                    return _mbThread.isFinderCacheEnabled();
1126            }
1127    
1128            @Override
1129            public void resetOriginalValues() {
1130                    _mbThread.resetOriginalValues();
1131            }
1132    
1133            private final MBThread _mbThread;
1134    }