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 ShoppingCoupon}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ShoppingCoupon
026     * @generated
027     */
028    public class ShoppingCouponWrapper implements ShoppingCoupon,
029            ModelWrapper<ShoppingCoupon> {
030            public ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon) {
031                    _shoppingCoupon = shoppingCoupon;
032            }
033    
034            public Class<?> getModelClass() {
035                    return ShoppingCoupon.class;
036            }
037    
038            public String getModelClassName() {
039                    return ShoppingCoupon.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this shopping coupon.
044            *
045            * @return the primary key of this shopping coupon
046            */
047            public long getPrimaryKey() {
048                    return _shoppingCoupon.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this shopping coupon.
053            *
054            * @param primaryKey the primary key of this shopping coupon
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _shoppingCoupon.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the coupon ID of this shopping coupon.
062            *
063            * @return the coupon ID of this shopping coupon
064            */
065            public long getCouponId() {
066                    return _shoppingCoupon.getCouponId();
067            }
068    
069            /**
070            * Sets the coupon ID of this shopping coupon.
071            *
072            * @param couponId the coupon ID of this shopping coupon
073            */
074            public void setCouponId(long couponId) {
075                    _shoppingCoupon.setCouponId(couponId);
076            }
077    
078            /**
079            * Returns the group ID of this shopping coupon.
080            *
081            * @return the group ID of this shopping coupon
082            */
083            public long getGroupId() {
084                    return _shoppingCoupon.getGroupId();
085            }
086    
087            /**
088            * Sets the group ID of this shopping coupon.
089            *
090            * @param groupId the group ID of this shopping coupon
091            */
092            public void setGroupId(long groupId) {
093                    _shoppingCoupon.setGroupId(groupId);
094            }
095    
096            /**
097            * Returns the company ID of this shopping coupon.
098            *
099            * @return the company ID of this shopping coupon
100            */
101            public long getCompanyId() {
102                    return _shoppingCoupon.getCompanyId();
103            }
104    
105            /**
106            * Sets the company ID of this shopping coupon.
107            *
108            * @param companyId the company ID of this shopping coupon
109            */
110            public void setCompanyId(long companyId) {
111                    _shoppingCoupon.setCompanyId(companyId);
112            }
113    
114            /**
115            * Returns the user ID of this shopping coupon.
116            *
117            * @return the user ID of this shopping coupon
118            */
119            public long getUserId() {
120                    return _shoppingCoupon.getUserId();
121            }
122    
123            /**
124            * Sets the user ID of this shopping coupon.
125            *
126            * @param userId the user ID of this shopping coupon
127            */
128            public void setUserId(long userId) {
129                    _shoppingCoupon.setUserId(userId);
130            }
131    
132            /**
133            * Returns the user uuid of this shopping coupon.
134            *
135            * @return the user uuid of this shopping coupon
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 _shoppingCoupon.getUserUuid();
141            }
142    
143            /**
144            * Sets the user uuid of this shopping coupon.
145            *
146            * @param userUuid the user uuid of this shopping coupon
147            */
148            public void setUserUuid(java.lang.String userUuid) {
149                    _shoppingCoupon.setUserUuid(userUuid);
150            }
151    
152            /**
153            * Returns the user name of this shopping coupon.
154            *
155            * @return the user name of this shopping coupon
156            */
157            public java.lang.String getUserName() {
158                    return _shoppingCoupon.getUserName();
159            }
160    
161            /**
162            * Sets the user name of this shopping coupon.
163            *
164            * @param userName the user name of this shopping coupon
165            */
166            public void setUserName(java.lang.String userName) {
167                    _shoppingCoupon.setUserName(userName);
168            }
169    
170            /**
171            * Returns the create date of this shopping coupon.
172            *
173            * @return the create date of this shopping coupon
174            */
175            public java.util.Date getCreateDate() {
176                    return _shoppingCoupon.getCreateDate();
177            }
178    
179            /**
180            * Sets the create date of this shopping coupon.
181            *
182            * @param createDate the create date of this shopping coupon
183            */
184            public void setCreateDate(java.util.Date createDate) {
185                    _shoppingCoupon.setCreateDate(createDate);
186            }
187    
188            /**
189            * Returns the modified date of this shopping coupon.
190            *
191            * @return the modified date of this shopping coupon
192            */
193            public java.util.Date getModifiedDate() {
194                    return _shoppingCoupon.getModifiedDate();
195            }
196    
197            /**
198            * Sets the modified date of this shopping coupon.
199            *
200            * @param modifiedDate the modified date of this shopping coupon
201            */
202            public void setModifiedDate(java.util.Date modifiedDate) {
203                    _shoppingCoupon.setModifiedDate(modifiedDate);
204            }
205    
206            /**
207            * Returns the code of this shopping coupon.
208            *
209            * @return the code of this shopping coupon
210            */
211            public java.lang.String getCode() {
212                    return _shoppingCoupon.getCode();
213            }
214    
215            /**
216            * Sets the code of this shopping coupon.
217            *
218            * @param code the code of this shopping coupon
219            */
220            public void setCode(java.lang.String code) {
221                    _shoppingCoupon.setCode(code);
222            }
223    
224            /**
225            * Returns the name of this shopping coupon.
226            *
227            * @return the name of this shopping coupon
228            */
229            public java.lang.String getName() {
230                    return _shoppingCoupon.getName();
231            }
232    
233            /**
234            * Sets the name of this shopping coupon.
235            *
236            * @param name the name of this shopping coupon
237            */
238            public void setName(java.lang.String name) {
239                    _shoppingCoupon.setName(name);
240            }
241    
242            /**
243            * Returns the description of this shopping coupon.
244            *
245            * @return the description of this shopping coupon
246            */
247            public java.lang.String getDescription() {
248                    return _shoppingCoupon.getDescription();
249            }
250    
251            /**
252            * Sets the description of this shopping coupon.
253            *
254            * @param description the description of this shopping coupon
255            */
256            public void setDescription(java.lang.String description) {
257                    _shoppingCoupon.setDescription(description);
258            }
259    
260            /**
261            * Returns the start date of this shopping coupon.
262            *
263            * @return the start date of this shopping coupon
264            */
265            public java.util.Date getStartDate() {
266                    return _shoppingCoupon.getStartDate();
267            }
268    
269            /**
270            * Sets the start date of this shopping coupon.
271            *
272            * @param startDate the start date of this shopping coupon
273            */
274            public void setStartDate(java.util.Date startDate) {
275                    _shoppingCoupon.setStartDate(startDate);
276            }
277    
278            /**
279            * Returns the end date of this shopping coupon.
280            *
281            * @return the end date of this shopping coupon
282            */
283            public java.util.Date getEndDate() {
284                    return _shoppingCoupon.getEndDate();
285            }
286    
287            /**
288            * Sets the end date of this shopping coupon.
289            *
290            * @param endDate the end date of this shopping coupon
291            */
292            public void setEndDate(java.util.Date endDate) {
293                    _shoppingCoupon.setEndDate(endDate);
294            }
295    
296            /**
297            * Returns the active of this shopping coupon.
298            *
299            * @return the active of this shopping coupon
300            */
301            public boolean getActive() {
302                    return _shoppingCoupon.getActive();
303            }
304    
305            /**
306            * Returns <code>true</code> if this shopping coupon is active.
307            *
308            * @return <code>true</code> if this shopping coupon is active; <code>false</code> otherwise
309            */
310            public boolean isActive() {
311                    return _shoppingCoupon.isActive();
312            }
313    
314            /**
315            * Sets whether this shopping coupon is active.
316            *
317            * @param active the active of this shopping coupon
318            */
319            public void setActive(boolean active) {
320                    _shoppingCoupon.setActive(active);
321            }
322    
323            /**
324            * Returns the limit categories of this shopping coupon.
325            *
326            * @return the limit categories of this shopping coupon
327            */
328            public java.lang.String getLimitCategories() {
329                    return _shoppingCoupon.getLimitCategories();
330            }
331    
332            /**
333            * Sets the limit categories of this shopping coupon.
334            *
335            * @param limitCategories the limit categories of this shopping coupon
336            */
337            public void setLimitCategories(java.lang.String limitCategories) {
338                    _shoppingCoupon.setLimitCategories(limitCategories);
339            }
340    
341            /**
342            * Returns the limit skus of this shopping coupon.
343            *
344            * @return the limit skus of this shopping coupon
345            */
346            public java.lang.String getLimitSkus() {
347                    return _shoppingCoupon.getLimitSkus();
348            }
349    
350            /**
351            * Sets the limit skus of this shopping coupon.
352            *
353            * @param limitSkus the limit skus of this shopping coupon
354            */
355            public void setLimitSkus(java.lang.String limitSkus) {
356                    _shoppingCoupon.setLimitSkus(limitSkus);
357            }
358    
359            /**
360            * Returns the min order of this shopping coupon.
361            *
362            * @return the min order of this shopping coupon
363            */
364            public double getMinOrder() {
365                    return _shoppingCoupon.getMinOrder();
366            }
367    
368            /**
369            * Sets the min order of this shopping coupon.
370            *
371            * @param minOrder the min order of this shopping coupon
372            */
373            public void setMinOrder(double minOrder) {
374                    _shoppingCoupon.setMinOrder(minOrder);
375            }
376    
377            /**
378            * Returns the discount of this shopping coupon.
379            *
380            * @return the discount of this shopping coupon
381            */
382            public double getDiscount() {
383                    return _shoppingCoupon.getDiscount();
384            }
385    
386            /**
387            * Sets the discount of this shopping coupon.
388            *
389            * @param discount the discount of this shopping coupon
390            */
391            public void setDiscount(double discount) {
392                    _shoppingCoupon.setDiscount(discount);
393            }
394    
395            /**
396            * Returns the discount type of this shopping coupon.
397            *
398            * @return the discount type of this shopping coupon
399            */
400            public java.lang.String getDiscountType() {
401                    return _shoppingCoupon.getDiscountType();
402            }
403    
404            /**
405            * Sets the discount type of this shopping coupon.
406            *
407            * @param discountType the discount type of this shopping coupon
408            */
409            public void setDiscountType(java.lang.String discountType) {
410                    _shoppingCoupon.setDiscountType(discountType);
411            }
412    
413            public boolean isNew() {
414                    return _shoppingCoupon.isNew();
415            }
416    
417            public void setNew(boolean n) {
418                    _shoppingCoupon.setNew(n);
419            }
420    
421            public boolean isCachedModel() {
422                    return _shoppingCoupon.isCachedModel();
423            }
424    
425            public void setCachedModel(boolean cachedModel) {
426                    _shoppingCoupon.setCachedModel(cachedModel);
427            }
428    
429            public boolean isEscapedModel() {
430                    return _shoppingCoupon.isEscapedModel();
431            }
432    
433            public java.io.Serializable getPrimaryKeyObj() {
434                    return _shoppingCoupon.getPrimaryKeyObj();
435            }
436    
437            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
438                    _shoppingCoupon.setPrimaryKeyObj(primaryKeyObj);
439            }
440    
441            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
442                    return _shoppingCoupon.getExpandoBridge();
443            }
444    
445            public void setExpandoBridgeAttributes(
446                    com.liferay.portal.service.ServiceContext serviceContext) {
447                    _shoppingCoupon.setExpandoBridgeAttributes(serviceContext);
448            }
449    
450            @Override
451            public java.lang.Object clone() {
452                    return new ShoppingCouponWrapper((ShoppingCoupon)_shoppingCoupon.clone());
453            }
454    
455            public int compareTo(
456                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) {
457                    return _shoppingCoupon.compareTo(shoppingCoupon);
458            }
459    
460            @Override
461            public int hashCode() {
462                    return _shoppingCoupon.hashCode();
463            }
464    
465            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingCoupon> toCacheModel() {
466                    return _shoppingCoupon.toCacheModel();
467            }
468    
469            public com.liferay.portlet.shopping.model.ShoppingCoupon toEscapedModel() {
470                    return new ShoppingCouponWrapper(_shoppingCoupon.toEscapedModel());
471            }
472    
473            @Override
474            public java.lang.String toString() {
475                    return _shoppingCoupon.toString();
476            }
477    
478            public java.lang.String toXmlString() {
479                    return _shoppingCoupon.toXmlString();
480            }
481    
482            public void persist()
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    _shoppingCoupon.persist();
485            }
486    
487            public boolean hasValidDateRange() {
488                    return _shoppingCoupon.hasValidDateRange();
489            }
490    
491            public boolean hasValidEndDate() {
492                    return _shoppingCoupon.hasValidEndDate();
493            }
494    
495            public boolean hasValidStartDate() {
496                    return _shoppingCoupon.hasValidStartDate();
497            }
498    
499            /**
500             * @deprecated Renamed to {@link #getWrappedModel}
501             */
502            public ShoppingCoupon getWrappedShoppingCoupon() {
503                    return _shoppingCoupon;
504            }
505    
506            public ShoppingCoupon getWrappedModel() {
507                    return _shoppingCoupon;
508            }
509    
510            public void resetOriginalValues() {
511                    _shoppingCoupon.resetOriginalValues();
512            }
513    
514            private ShoppingCoupon _shoppingCoupon;
515    }