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