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