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