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