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