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