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.shopping.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link ShoppingCategory}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ShoppingCategory
026     * @generated
027     */
028    public class ShoppingCategoryWrapper implements ShoppingCategory,
029            ModelWrapper<ShoppingCategory> {
030            public ShoppingCategoryWrapper(ShoppingCategory shoppingCategory) {
031                    _shoppingCategory = shoppingCategory;
032            }
033    
034            public Class<?> getModelClass() {
035                    return ShoppingCategory.class;
036            }
037    
038            public String getModelClassName() {
039                    return ShoppingCategory.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this shopping category.
044            *
045            * @return the primary key of this shopping category
046            */
047            public long getPrimaryKey() {
048                    return _shoppingCategory.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this shopping category.
053            *
054            * @param primaryKey the primary key of this shopping category
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _shoppingCategory.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the category ID of this shopping category.
062            *
063            * @return the category ID of this shopping category
064            */
065            public long getCategoryId() {
066                    return _shoppingCategory.getCategoryId();
067            }
068    
069            /**
070            * Sets the category ID of this shopping category.
071            *
072            * @param categoryId the category ID of this shopping category
073            */
074            public void setCategoryId(long categoryId) {
075                    _shoppingCategory.setCategoryId(categoryId);
076            }
077    
078            /**
079            * Returns the group ID of this shopping category.
080            *
081            * @return the group ID of this shopping category
082            */
083            public long getGroupId() {
084                    return _shoppingCategory.getGroupId();
085            }
086    
087            /**
088            * Sets the group ID of this shopping category.
089            *
090            * @param groupId the group ID of this shopping category
091            */
092            public void setGroupId(long groupId) {
093                    _shoppingCategory.setGroupId(groupId);
094            }
095    
096            /**
097            * Returns the company ID of this shopping category.
098            *
099            * @return the company ID of this shopping category
100            */
101            public long getCompanyId() {
102                    return _shoppingCategory.getCompanyId();
103            }
104    
105            /**
106            * Sets the company ID of this shopping category.
107            *
108            * @param companyId the company ID of this shopping category
109            */
110            public void setCompanyId(long companyId) {
111                    _shoppingCategory.setCompanyId(companyId);
112            }
113    
114            /**
115            * Returns the user ID of this shopping category.
116            *
117            * @return the user ID of this shopping category
118            */
119            public long getUserId() {
120                    return _shoppingCategory.getUserId();
121            }
122    
123            /**
124            * Sets the user ID of this shopping category.
125            *
126            * @param userId the user ID of this shopping category
127            */
128            public void setUserId(long userId) {
129                    _shoppingCategory.setUserId(userId);
130            }
131    
132            /**
133            * Returns the user uuid of this shopping category.
134            *
135            * @return the user uuid of this shopping category
136            * @throws SystemException if a system exception occurred
137            */
138            public java.lang.String getUserUuid()
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _shoppingCategory.getUserUuid();
141            }
142    
143            /**
144            * Sets the user uuid of this shopping category.
145            *
146            * @param userUuid the user uuid of this shopping category
147            */
148            public void setUserUuid(java.lang.String userUuid) {
149                    _shoppingCategory.setUserUuid(userUuid);
150            }
151    
152            /**
153            * Returns the user name of this shopping category.
154            *
155            * @return the user name of this shopping category
156            */
157            public java.lang.String getUserName() {
158                    return _shoppingCategory.getUserName();
159            }
160    
161            /**
162            * Sets the user name of this shopping category.
163            *
164            * @param userName the user name of this shopping category
165            */
166            public void setUserName(java.lang.String userName) {
167                    _shoppingCategory.setUserName(userName);
168            }
169    
170            /**
171            * Returns the create date of this shopping category.
172            *
173            * @return the create date of this shopping category
174            */
175            public java.util.Date getCreateDate() {
176                    return _shoppingCategory.getCreateDate();
177            }
178    
179            /**
180            * Sets the create date of this shopping category.
181            *
182            * @param createDate the create date of this shopping category
183            */
184            public void setCreateDate(java.util.Date createDate) {
185                    _shoppingCategory.setCreateDate(createDate);
186            }
187    
188            /**
189            * Returns the modified date of this shopping category.
190            *
191            * @return the modified date of this shopping category
192            */
193            public java.util.Date getModifiedDate() {
194                    return _shoppingCategory.getModifiedDate();
195            }
196    
197            /**
198            * Sets the modified date of this shopping category.
199            *
200            * @param modifiedDate the modified date of this shopping category
201            */
202            public void setModifiedDate(java.util.Date modifiedDate) {
203                    _shoppingCategory.setModifiedDate(modifiedDate);
204            }
205    
206            /**
207            * Returns the parent category ID of this shopping category.
208            *
209            * @return the parent category ID of this shopping category
210            */
211            public long getParentCategoryId() {
212                    return _shoppingCategory.getParentCategoryId();
213            }
214    
215            /**
216            * Sets the parent category ID of this shopping category.
217            *
218            * @param parentCategoryId the parent category ID of this shopping category
219            */
220            public void setParentCategoryId(long parentCategoryId) {
221                    _shoppingCategory.setParentCategoryId(parentCategoryId);
222            }
223    
224            /**
225            * Returns the name of this shopping category.
226            *
227            * @return the name of this shopping category
228            */
229            public java.lang.String getName() {
230                    return _shoppingCategory.getName();
231            }
232    
233            /**
234            * Sets the name of this shopping category.
235            *
236            * @param name the name of this shopping category
237            */
238            public void setName(java.lang.String name) {
239                    _shoppingCategory.setName(name);
240            }
241    
242            /**
243            * Returns the description of this shopping category.
244            *
245            * @return the description of this shopping category
246            */
247            public java.lang.String getDescription() {
248                    return _shoppingCategory.getDescription();
249            }
250    
251            /**
252            * Sets the description of this shopping category.
253            *
254            * @param description the description of this shopping category
255            */
256            public void setDescription(java.lang.String description) {
257                    _shoppingCategory.setDescription(description);
258            }
259    
260            public boolean isNew() {
261                    return _shoppingCategory.isNew();
262            }
263    
264            public void setNew(boolean n) {
265                    _shoppingCategory.setNew(n);
266            }
267    
268            public boolean isCachedModel() {
269                    return _shoppingCategory.isCachedModel();
270            }
271    
272            public void setCachedModel(boolean cachedModel) {
273                    _shoppingCategory.setCachedModel(cachedModel);
274            }
275    
276            public boolean isEscapedModel() {
277                    return _shoppingCategory.isEscapedModel();
278            }
279    
280            public java.io.Serializable getPrimaryKeyObj() {
281                    return _shoppingCategory.getPrimaryKeyObj();
282            }
283    
284            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
285                    _shoppingCategory.setPrimaryKeyObj(primaryKeyObj);
286            }
287    
288            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
289                    return _shoppingCategory.getExpandoBridge();
290            }
291    
292            public void setExpandoBridgeAttributes(
293                    com.liferay.portal.service.ServiceContext serviceContext) {
294                    _shoppingCategory.setExpandoBridgeAttributes(serviceContext);
295            }
296    
297            @Override
298            public java.lang.Object clone() {
299                    return new ShoppingCategoryWrapper((ShoppingCategory)_shoppingCategory.clone());
300            }
301    
302            public int compareTo(
303                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) {
304                    return _shoppingCategory.compareTo(shoppingCategory);
305            }
306    
307            @Override
308            public int hashCode() {
309                    return _shoppingCategory.hashCode();
310            }
311    
312            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingCategory> toCacheModel() {
313                    return _shoppingCategory.toCacheModel();
314            }
315    
316            public com.liferay.portlet.shopping.model.ShoppingCategory toEscapedModel() {
317                    return new ShoppingCategoryWrapper(_shoppingCategory.toEscapedModel());
318            }
319    
320            @Override
321            public java.lang.String toString() {
322                    return _shoppingCategory.toString();
323            }
324    
325            public java.lang.String toXmlString() {
326                    return _shoppingCategory.toXmlString();
327            }
328    
329            public void persist()
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    _shoppingCategory.persist();
332            }
333    
334            public boolean isRoot() {
335                    return _shoppingCategory.isRoot();
336            }
337    
338            /**
339             * @deprecated Renamed to {@link #getWrappedModel}
340             */
341            public ShoppingCategory getWrappedShoppingCategory() {
342                    return _shoppingCategory;
343            }
344    
345            public ShoppingCategory getWrappedModel() {
346                    return _shoppingCategory;
347            }
348    
349            public void resetOriginalValues() {
350                    _shoppingCategory.resetOriginalValues();
351            }
352    
353            private ShoppingCategory _shoppingCategory;
354    }