001    /**
002     * Copyright (c) 2000-2012 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.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link MBCategory}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBCategory
026     * @generated
027     */
028    public class MBCategoryWrapper implements MBCategory, ModelWrapper<MBCategory> {
029            public MBCategoryWrapper(MBCategory mbCategory) {
030                    _mbCategory = mbCategory;
031            }
032    
033            public Class<?> getModelClass() {
034                    return MBCategory.class;
035            }
036    
037            public String getModelClassName() {
038                    return MBCategory.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this message boards category.
043            *
044            * @return the primary key of this message boards category
045            */
046            public long getPrimaryKey() {
047                    return _mbCategory.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this message boards category.
052            *
053            * @param primaryKey the primary key of this message boards category
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _mbCategory.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the uuid of this message boards category.
061            *
062            * @return the uuid of this message boards category
063            */
064            public java.lang.String getUuid() {
065                    return _mbCategory.getUuid();
066            }
067    
068            /**
069            * Sets the uuid of this message boards category.
070            *
071            * @param uuid the uuid of this message boards category
072            */
073            public void setUuid(java.lang.String uuid) {
074                    _mbCategory.setUuid(uuid);
075            }
076    
077            /**
078            * Returns the category ID of this message boards category.
079            *
080            * @return the category ID of this message boards category
081            */
082            public long getCategoryId() {
083                    return _mbCategory.getCategoryId();
084            }
085    
086            /**
087            * Sets the category ID of this message boards category.
088            *
089            * @param categoryId the category ID of this message boards category
090            */
091            public void setCategoryId(long categoryId) {
092                    _mbCategory.setCategoryId(categoryId);
093            }
094    
095            /**
096            * Returns the group ID of this message boards category.
097            *
098            * @return the group ID of this message boards category
099            */
100            public long getGroupId() {
101                    return _mbCategory.getGroupId();
102            }
103    
104            /**
105            * Sets the group ID of this message boards category.
106            *
107            * @param groupId the group ID of this message boards category
108            */
109            public void setGroupId(long groupId) {
110                    _mbCategory.setGroupId(groupId);
111            }
112    
113            /**
114            * Returns the company ID of this message boards category.
115            *
116            * @return the company ID of this message boards category
117            */
118            public long getCompanyId() {
119                    return _mbCategory.getCompanyId();
120            }
121    
122            /**
123            * Sets the company ID of this message boards category.
124            *
125            * @param companyId the company ID of this message boards category
126            */
127            public void setCompanyId(long companyId) {
128                    _mbCategory.setCompanyId(companyId);
129            }
130    
131            /**
132            * Returns the user ID of this message boards category.
133            *
134            * @return the user ID of this message boards category
135            */
136            public long getUserId() {
137                    return _mbCategory.getUserId();
138            }
139    
140            /**
141            * Sets the user ID of this message boards category.
142            *
143            * @param userId the user ID of this message boards category
144            */
145            public void setUserId(long userId) {
146                    _mbCategory.setUserId(userId);
147            }
148    
149            /**
150            * Returns the user uuid of this message boards category.
151            *
152            * @return the user uuid of this message boards category
153            * @throws SystemException if a system exception occurred
154            */
155            public java.lang.String getUserUuid()
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _mbCategory.getUserUuid();
158            }
159    
160            /**
161            * Sets the user uuid of this message boards category.
162            *
163            * @param userUuid the user uuid of this message boards category
164            */
165            public void setUserUuid(java.lang.String userUuid) {
166                    _mbCategory.setUserUuid(userUuid);
167            }
168    
169            /**
170            * Returns the user name of this message boards category.
171            *
172            * @return the user name of this message boards category
173            */
174            public java.lang.String getUserName() {
175                    return _mbCategory.getUserName();
176            }
177    
178            /**
179            * Sets the user name of this message boards category.
180            *
181            * @param userName the user name of this message boards category
182            */
183            public void setUserName(java.lang.String userName) {
184                    _mbCategory.setUserName(userName);
185            }
186    
187            /**
188            * Returns the create date of this message boards category.
189            *
190            * @return the create date of this message boards category
191            */
192            public java.util.Date getCreateDate() {
193                    return _mbCategory.getCreateDate();
194            }
195    
196            /**
197            * Sets the create date of this message boards category.
198            *
199            * @param createDate the create date of this message boards category
200            */
201            public void setCreateDate(java.util.Date createDate) {
202                    _mbCategory.setCreateDate(createDate);
203            }
204    
205            /**
206            * Returns the modified date of this message boards category.
207            *
208            * @return the modified date of this message boards category
209            */
210            public java.util.Date getModifiedDate() {
211                    return _mbCategory.getModifiedDate();
212            }
213    
214            /**
215            * Sets the modified date of this message boards category.
216            *
217            * @param modifiedDate the modified date of this message boards category
218            */
219            public void setModifiedDate(java.util.Date modifiedDate) {
220                    _mbCategory.setModifiedDate(modifiedDate);
221            }
222    
223            /**
224            * Returns the parent category ID of this message boards category.
225            *
226            * @return the parent category ID of this message boards category
227            */
228            public long getParentCategoryId() {
229                    return _mbCategory.getParentCategoryId();
230            }
231    
232            /**
233            * Sets the parent category ID of this message boards category.
234            *
235            * @param parentCategoryId the parent category ID of this message boards category
236            */
237            public void setParentCategoryId(long parentCategoryId) {
238                    _mbCategory.setParentCategoryId(parentCategoryId);
239            }
240    
241            /**
242            * Returns the name of this message boards category.
243            *
244            * @return the name of this message boards category
245            */
246            public java.lang.String getName() {
247                    return _mbCategory.getName();
248            }
249    
250            /**
251            * Sets the name of this message boards category.
252            *
253            * @param name the name of this message boards category
254            */
255            public void setName(java.lang.String name) {
256                    _mbCategory.setName(name);
257            }
258    
259            /**
260            * Returns the description of this message boards category.
261            *
262            * @return the description of this message boards category
263            */
264            public java.lang.String getDescription() {
265                    return _mbCategory.getDescription();
266            }
267    
268            /**
269            * Sets the description of this message boards category.
270            *
271            * @param description the description of this message boards category
272            */
273            public void setDescription(java.lang.String description) {
274                    _mbCategory.setDescription(description);
275            }
276    
277            /**
278            * Returns the display style of this message boards category.
279            *
280            * @return the display style of this message boards category
281            */
282            public java.lang.String getDisplayStyle() {
283                    return _mbCategory.getDisplayStyle();
284            }
285    
286            /**
287            * Sets the display style of this message boards category.
288            *
289            * @param displayStyle the display style of this message boards category
290            */
291            public void setDisplayStyle(java.lang.String displayStyle) {
292                    _mbCategory.setDisplayStyle(displayStyle);
293            }
294    
295            /**
296            * Returns the thread count of this message boards category.
297            *
298            * @return the thread count of this message boards category
299            */
300            public int getThreadCount() {
301                    return _mbCategory.getThreadCount();
302            }
303    
304            /**
305            * Sets the thread count of this message boards category.
306            *
307            * @param threadCount the thread count of this message boards category
308            */
309            public void setThreadCount(int threadCount) {
310                    _mbCategory.setThreadCount(threadCount);
311            }
312    
313            /**
314            * Returns the message count of this message boards category.
315            *
316            * @return the message count of this message boards category
317            */
318            public int getMessageCount() {
319                    return _mbCategory.getMessageCount();
320            }
321    
322            /**
323            * Sets the message count of this message boards category.
324            *
325            * @param messageCount the message count of this message boards category
326            */
327            public void setMessageCount(int messageCount) {
328                    _mbCategory.setMessageCount(messageCount);
329            }
330    
331            /**
332            * Returns the last post date of this message boards category.
333            *
334            * @return the last post date of this message boards category
335            */
336            public java.util.Date getLastPostDate() {
337                    return _mbCategory.getLastPostDate();
338            }
339    
340            /**
341            * Sets the last post date of this message boards category.
342            *
343            * @param lastPostDate the last post date of this message boards category
344            */
345            public void setLastPostDate(java.util.Date lastPostDate) {
346                    _mbCategory.setLastPostDate(lastPostDate);
347            }
348    
349            public boolean isNew() {
350                    return _mbCategory.isNew();
351            }
352    
353            public void setNew(boolean n) {
354                    _mbCategory.setNew(n);
355            }
356    
357            public boolean isCachedModel() {
358                    return _mbCategory.isCachedModel();
359            }
360    
361            public void setCachedModel(boolean cachedModel) {
362                    _mbCategory.setCachedModel(cachedModel);
363            }
364    
365            public boolean isEscapedModel() {
366                    return _mbCategory.isEscapedModel();
367            }
368    
369            public java.io.Serializable getPrimaryKeyObj() {
370                    return _mbCategory.getPrimaryKeyObj();
371            }
372    
373            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
374                    _mbCategory.setPrimaryKeyObj(primaryKeyObj);
375            }
376    
377            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
378                    return _mbCategory.getExpandoBridge();
379            }
380    
381            public void setExpandoBridgeAttributes(
382                    com.liferay.portal.service.ServiceContext serviceContext) {
383                    _mbCategory.setExpandoBridgeAttributes(serviceContext);
384            }
385    
386            @Override
387            public java.lang.Object clone() {
388                    return new MBCategoryWrapper((MBCategory)_mbCategory.clone());
389            }
390    
391            public int compareTo(
392                    com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
393                    return _mbCategory.compareTo(mbCategory);
394            }
395    
396            @Override
397            public int hashCode() {
398                    return _mbCategory.hashCode();
399            }
400    
401            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBCategory> toCacheModel() {
402                    return _mbCategory.toCacheModel();
403            }
404    
405            public com.liferay.portlet.messageboards.model.MBCategory toEscapedModel() {
406                    return new MBCategoryWrapper(_mbCategory.toEscapedModel());
407            }
408    
409            @Override
410            public java.lang.String toString() {
411                    return _mbCategory.toString();
412            }
413    
414            public java.lang.String toXmlString() {
415                    return _mbCategory.toXmlString();
416            }
417    
418            public void persist()
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    _mbCategory.persist();
421            }
422    
423            public java.util.List<java.lang.Long> getAncestorCategoryIds()
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    return _mbCategory.getAncestorCategoryIds();
427            }
428    
429            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getAncestors()
430                    throws com.liferay.portal.kernel.exception.PortalException,
431                            com.liferay.portal.kernel.exception.SystemException {
432                    return _mbCategory.getAncestors();
433            }
434    
435            public boolean isRoot() {
436                    return _mbCategory.isRoot();
437            }
438    
439            /**
440             * @deprecated Renamed to {@link #getWrappedModel}
441             */
442            public MBCategory getWrappedMBCategory() {
443                    return _mbCategory;
444            }
445    
446            public MBCategory getWrappedModel() {
447                    return _mbCategory;
448            }
449    
450            public void resetOriginalValues() {
451                    _mbCategory.resetOriginalValues();
452            }
453    
454            private MBCategory _mbCategory;
455    }