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