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