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