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