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