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            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
747            */
748            @Override
749            public boolean getApproved() {
750                    return _mbThread.getApproved();
751            }
752    
753            /**
754            * Returns <code>true</code> if this message boards thread is approved.
755            *
756            * @return <code>true</code> if this message boards thread is approved; <code>false</code> otherwise
757            */
758            @Override
759            public boolean isApproved() {
760                    return _mbThread.isApproved();
761            }
762    
763            /**
764            * Returns <code>true</code> if this message boards thread is denied.
765            *
766            * @return <code>true</code> if this message boards thread is denied; <code>false</code> otherwise
767            */
768            @Override
769            public boolean isDenied() {
770                    return _mbThread.isDenied();
771            }
772    
773            /**
774            * Returns <code>true</code> if this message boards thread is a draft.
775            *
776            * @return <code>true</code> if this message boards thread is a draft; <code>false</code> otherwise
777            */
778            @Override
779            public boolean isDraft() {
780                    return _mbThread.isDraft();
781            }
782    
783            /**
784            * Returns <code>true</code> if this message boards thread is expired.
785            *
786            * @return <code>true</code> if this message boards thread is expired; <code>false</code> otherwise
787            */
788            @Override
789            public boolean isExpired() {
790                    return _mbThread.isExpired();
791            }
792    
793            /**
794            * Returns <code>true</code> if this message boards thread is inactive.
795            *
796            * @return <code>true</code> if this message boards thread is inactive; <code>false</code> otherwise
797            */
798            @Override
799            public boolean isInactive() {
800                    return _mbThread.isInactive();
801            }
802    
803            /**
804            * Returns <code>true</code> if this message boards thread is incomplete.
805            *
806            * @return <code>true</code> if this message boards thread is incomplete; <code>false</code> otherwise
807            */
808            @Override
809            public boolean isIncomplete() {
810                    return _mbThread.isIncomplete();
811            }
812    
813            /**
814            * Returns <code>true</code> if this message boards thread is in the Recycle Bin.
815            *
816            * @return <code>true</code> if this message boards thread is in the Recycle Bin; <code>false</code> otherwise
817            */
818            @Override
819            public boolean isInTrash() {
820                    return _mbThread.isInTrash();
821            }
822    
823            /**
824            * Returns <code>true</code> if this message boards thread is pending.
825            *
826            * @return <code>true</code> if this message boards thread is pending; <code>false</code> otherwise
827            */
828            @Override
829            public boolean isPending() {
830                    return _mbThread.isPending();
831            }
832    
833            /**
834            * Returns <code>true</code> if this message boards thread is scheduled.
835            *
836            * @return <code>true</code> if this message boards thread is scheduled; <code>false</code> otherwise
837            */
838            @Override
839            public boolean isScheduled() {
840                    return _mbThread.isScheduled();
841            }
842    
843            /**
844            * Returns the container model ID of this message boards thread.
845            *
846            * @return the container model ID of this message boards thread
847            */
848            @Override
849            public long getContainerModelId() {
850                    return _mbThread.getContainerModelId();
851            }
852    
853            /**
854            * Sets the container model ID of this message boards thread.
855            *
856            * @param container model ID of this message boards thread
857            */
858            @Override
859            public void setContainerModelId(long containerModelId) {
860                    _mbThread.setContainerModelId(containerModelId);
861            }
862    
863            /**
864            * Returns the container name of this message boards thread.
865            *
866            * @return the container name of this message boards thread
867            */
868            @Override
869            public java.lang.String getContainerModelName() {
870                    return _mbThread.getContainerModelName();
871            }
872    
873            /**
874            * Returns the parent container model ID of this message boards thread.
875            *
876            * @return the parent container model ID of this message boards thread
877            */
878            @Override
879            public long getParentContainerModelId() {
880                    return _mbThread.getParentContainerModelId();
881            }
882    
883            /**
884            * Sets the parent container model ID of this message boards thread.
885            *
886            * @param parent container model ID of this message boards thread
887            */
888            @Override
889            public void setParentContainerModelId(long parentContainerModelId) {
890                    _mbThread.setParentContainerModelId(parentContainerModelId);
891            }
892    
893            @Override
894            public boolean isNew() {
895                    return _mbThread.isNew();
896            }
897    
898            @Override
899            public void setNew(boolean n) {
900                    _mbThread.setNew(n);
901            }
902    
903            @Override
904            public boolean isCachedModel() {
905                    return _mbThread.isCachedModel();
906            }
907    
908            @Override
909            public void setCachedModel(boolean cachedModel) {
910                    _mbThread.setCachedModel(cachedModel);
911            }
912    
913            @Override
914            public boolean isEscapedModel() {
915                    return _mbThread.isEscapedModel();
916            }
917    
918            @Override
919            public java.io.Serializable getPrimaryKeyObj() {
920                    return _mbThread.getPrimaryKeyObj();
921            }
922    
923            @Override
924            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
925                    _mbThread.setPrimaryKeyObj(primaryKeyObj);
926            }
927    
928            @Override
929            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
930                    return _mbThread.getExpandoBridge();
931            }
932    
933            @Override
934            public void setExpandoBridgeAttributes(
935                    com.liferay.portal.model.BaseModel<?> baseModel) {
936                    _mbThread.setExpandoBridgeAttributes(baseModel);
937            }
938    
939            @Override
940            public void setExpandoBridgeAttributes(
941                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
942                    _mbThread.setExpandoBridgeAttributes(expandoBridge);
943            }
944    
945            @Override
946            public void setExpandoBridgeAttributes(
947                    com.liferay.portal.service.ServiceContext serviceContext) {
948                    _mbThread.setExpandoBridgeAttributes(serviceContext);
949            }
950    
951            @Override
952            public java.lang.Object clone() {
953                    return new MBThreadWrapper((MBThread)_mbThread.clone());
954            }
955    
956            @Override
957            public int compareTo(
958                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
959                    return _mbThread.compareTo(mbThread);
960            }
961    
962            @Override
963            public int hashCode() {
964                    return _mbThread.hashCode();
965            }
966    
967            @Override
968            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBThread> toCacheModel() {
969                    return _mbThread.toCacheModel();
970            }
971    
972            @Override
973            public com.liferay.portlet.messageboards.model.MBThread toEscapedModel() {
974                    return new MBThreadWrapper(_mbThread.toEscapedModel());
975            }
976    
977            @Override
978            public com.liferay.portlet.messageboards.model.MBThread toUnescapedModel() {
979                    return new MBThreadWrapper(_mbThread.toUnescapedModel());
980            }
981    
982            @Override
983            public java.lang.String toString() {
984                    return _mbThread.toString();
985            }
986    
987            @Override
988            public java.lang.String toXmlString() {
989                    return _mbThread.toXmlString();
990            }
991    
992            @Override
993            public void persist()
994                    throws com.liferay.portal.kernel.exception.SystemException {
995                    _mbThread.persist();
996            }
997    
998            @Override
999            public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
1000                    throws com.liferay.portal.kernel.exception.PortalException,
1001                            com.liferay.portal.kernel.exception.SystemException {
1002                    return _mbThread.addAttachmentsFolder();
1003            }
1004    
1005            @Override
1006            public long getAttachmentsFolderId()
1007                    throws com.liferay.portal.kernel.exception.SystemException {
1008                    return _mbThread.getAttachmentsFolderId();
1009            }
1010    
1011            @Override
1012            public com.liferay.portlet.messageboards.model.MBCategory getCategory()
1013                    throws com.liferay.portal.kernel.exception.PortalException,
1014                            com.liferay.portal.kernel.exception.SystemException {
1015                    return _mbThread.getCategory();
1016            }
1017    
1018            @Override
1019            public com.liferay.portal.model.Lock getLock() {
1020                    return _mbThread.getLock();
1021            }
1022    
1023            @Override
1024            public long[] getParticipantUserIds()
1025                    throws com.liferay.portal.kernel.exception.SystemException {
1026                    return _mbThread.getParticipantUserIds();
1027            }
1028    
1029            @Override
1030            public com.liferay.portlet.messageboards.model.MBCategory getTrashContainer() {
1031                    return _mbThread.getTrashContainer();
1032            }
1033    
1034            @Override
1035            public boolean hasLock(long userId) {
1036                    return _mbThread.hasLock(userId);
1037            }
1038    
1039            @Override
1040            public boolean isInTrashContainer() {
1041                    return _mbThread.isInTrashContainer();
1042            }
1043    
1044            @Override
1045            public boolean isLocked() {
1046                    return _mbThread.isLocked();
1047            }
1048    
1049            @Override
1050            public boolean equals(Object obj) {
1051                    if (this == obj) {
1052                            return true;
1053                    }
1054    
1055                    if (!(obj instanceof MBThreadWrapper)) {
1056                            return false;
1057                    }
1058    
1059                    MBThreadWrapper mbThreadWrapper = (MBThreadWrapper)obj;
1060    
1061                    if (Validator.equals(_mbThread, mbThreadWrapper._mbThread)) {
1062                            return true;
1063                    }
1064    
1065                    return false;
1066            }
1067    
1068            @Override
1069            public StagedModelType getStagedModelType() {
1070                    return _mbThread.getStagedModelType();
1071            }
1072    
1073            /**
1074             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1075             */
1076            public MBThread getWrappedMBThread() {
1077                    return _mbThread;
1078            }
1079    
1080            @Override
1081            public MBThread getWrappedModel() {
1082                    return _mbThread;
1083            }
1084    
1085            @Override
1086            public void resetOriginalValues() {
1087                    _mbThread.resetOriginalValues();
1088            }
1089    
1090            private MBThread _mbThread;
1091    }