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