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