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