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