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