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