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