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