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