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