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 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Determines 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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 void setEscapedModel(boolean escapedModel) {
431                    _shoppingCoupon.setEscapedModel(escapedModel);
432            }
433    
434            public java.io.Serializable getPrimaryKeyObj() {
435                    return _shoppingCoupon.getPrimaryKeyObj();
436            }
437    
438            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
439                    _shoppingCoupon.setPrimaryKeyObj(primaryKeyObj);
440            }
441    
442            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
443                    return _shoppingCoupon.getExpandoBridge();
444            }
445    
446            public void setExpandoBridgeAttributes(
447                    com.liferay.portal.service.ServiceContext serviceContext) {
448                    _shoppingCoupon.setExpandoBridgeAttributes(serviceContext);
449            }
450    
451            @Override
452            public java.lang.Object clone() {
453                    return new ShoppingCouponWrapper((ShoppingCoupon)_shoppingCoupon.clone());
454            }
455    
456            public int compareTo(
457                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) {
458                    return _shoppingCoupon.compareTo(shoppingCoupon);
459            }
460    
461            @Override
462            public int hashCode() {
463                    return _shoppingCoupon.hashCode();
464            }
465    
466            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingCoupon> toCacheModel() {
467                    return _shoppingCoupon.toCacheModel();
468            }
469    
470            public com.liferay.portlet.shopping.model.ShoppingCoupon toEscapedModel() {
471                    return new ShoppingCouponWrapper(_shoppingCoupon.toEscapedModel());
472            }
473    
474            @Override
475            public java.lang.String toString() {
476                    return _shoppingCoupon.toString();
477            }
478    
479            public java.lang.String toXmlString() {
480                    return _shoppingCoupon.toXmlString();
481            }
482    
483            public void persist()
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    _shoppingCoupon.persist();
486            }
487    
488            public boolean hasValidDateRange() {
489                    return _shoppingCoupon.hasValidDateRange();
490            }
491    
492            public boolean hasValidEndDate() {
493                    return _shoppingCoupon.hasValidEndDate();
494            }
495    
496            public boolean hasValidStartDate() {
497                    return _shoppingCoupon.hasValidStartDate();
498            }
499    
500            public ShoppingCoupon getWrappedShoppingCoupon() {
501                    return _shoppingCoupon;
502            }
503    
504            public void resetOriginalValues() {
505                    _shoppingCoupon.resetOriginalValues();
506            }
507    
508            private ShoppingCoupon _shoppingCoupon;
509    }