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