1   /**
2    * ShoppingCouponSoap.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package com.liferay.client.soap.portlet.shopping.model;
9   
10  public class ShoppingCouponSoap  implements java.io.Serializable {
11      private boolean active;
12  
13      private java.lang.String code;
14  
15      private long companyId;
16  
17      private long couponId;
18  
19      private java.util.Calendar createDate;
20  
21      private java.lang.String description;
22  
23      private double discount;
24  
25      private java.lang.String discountType;
26  
27      private java.util.Calendar endDate;
28  
29      private long groupId;
30  
31      private java.lang.String limitCategories;
32  
33      private java.lang.String limitSkus;
34  
35      private double minOrder;
36  
37      private java.util.Calendar modifiedDate;
38  
39      private java.lang.String name;
40  
41      private long primaryKey;
42  
43      private java.util.Calendar startDate;
44  
45      private long userId;
46  
47      private java.lang.String userName;
48  
49      public ShoppingCouponSoap() {
50      }
51  
52      public ShoppingCouponSoap(
53             boolean active,
54             java.lang.String code,
55             long companyId,
56             long couponId,
57             java.util.Calendar createDate,
58             java.lang.String description,
59             double discount,
60             java.lang.String discountType,
61             java.util.Calendar endDate,
62             long groupId,
63             java.lang.String limitCategories,
64             java.lang.String limitSkus,
65             double minOrder,
66             java.util.Calendar modifiedDate,
67             java.lang.String name,
68             long primaryKey,
69             java.util.Calendar startDate,
70             long userId,
71             java.lang.String userName) {
72             this.active = active;
73             this.code = code;
74             this.companyId = companyId;
75             this.couponId = couponId;
76             this.createDate = createDate;
77             this.description = description;
78             this.discount = discount;
79             this.discountType = discountType;
80             this.endDate = endDate;
81             this.groupId = groupId;
82             this.limitCategories = limitCategories;
83             this.limitSkus = limitSkus;
84             this.minOrder = minOrder;
85             this.modifiedDate = modifiedDate;
86             this.name = name;
87             this.primaryKey = primaryKey;
88             this.startDate = startDate;
89             this.userId = userId;
90             this.userName = userName;
91      }
92  
93  
94      /**
95       * Gets the active value for this ShoppingCouponSoap.
96       * 
97       * @return active
98       */
99      public boolean isActive() {
100         return active;
101     }
102 
103 
104     /**
105      * Sets the active value for this ShoppingCouponSoap.
106      * 
107      * @param active
108      */
109     public void setActive(boolean active) {
110         this.active = active;
111     }
112 
113 
114     /**
115      * Gets the code value for this ShoppingCouponSoap.
116      * 
117      * @return code
118      */
119     public java.lang.String getCode() {
120         return code;
121     }
122 
123 
124     /**
125      * Sets the code value for this ShoppingCouponSoap.
126      * 
127      * @param code
128      */
129     public void setCode(java.lang.String code) {
130         this.code = code;
131     }
132 
133 
134     /**
135      * Gets the companyId value for this ShoppingCouponSoap.
136      * 
137      * @return companyId
138      */
139     public long getCompanyId() {
140         return companyId;
141     }
142 
143 
144     /**
145      * Sets the companyId value for this ShoppingCouponSoap.
146      * 
147      * @param companyId
148      */
149     public void setCompanyId(long companyId) {
150         this.companyId = companyId;
151     }
152 
153 
154     /**
155      * Gets the couponId value for this ShoppingCouponSoap.
156      * 
157      * @return couponId
158      */
159     public long getCouponId() {
160         return couponId;
161     }
162 
163 
164     /**
165      * Sets the couponId value for this ShoppingCouponSoap.
166      * 
167      * @param couponId
168      */
169     public void setCouponId(long couponId) {
170         this.couponId = couponId;
171     }
172 
173 
174     /**
175      * Gets the createDate value for this ShoppingCouponSoap.
176      * 
177      * @return createDate
178      */
179     public java.util.Calendar getCreateDate() {
180         return createDate;
181     }
182 
183 
184     /**
185      * Sets the createDate value for this ShoppingCouponSoap.
186      * 
187      * @param createDate
188      */
189     public void setCreateDate(java.util.Calendar createDate) {
190         this.createDate = createDate;
191     }
192 
193 
194     /**
195      * Gets the description value for this ShoppingCouponSoap.
196      * 
197      * @return description
198      */
199     public java.lang.String getDescription() {
200         return description;
201     }
202 
203 
204     /**
205      * Sets the description value for this ShoppingCouponSoap.
206      * 
207      * @param description
208      */
209     public void setDescription(java.lang.String description) {
210         this.description = description;
211     }
212 
213 
214     /**
215      * Gets the discount value for this ShoppingCouponSoap.
216      * 
217      * @return discount
218      */
219     public double getDiscount() {
220         return discount;
221     }
222 
223 
224     /**
225      * Sets the discount value for this ShoppingCouponSoap.
226      * 
227      * @param discount
228      */
229     public void setDiscount(double discount) {
230         this.discount = discount;
231     }
232 
233 
234     /**
235      * Gets the discountType value for this ShoppingCouponSoap.
236      * 
237      * @return discountType
238      */
239     public java.lang.String getDiscountType() {
240         return discountType;
241     }
242 
243 
244     /**
245      * Sets the discountType value for this ShoppingCouponSoap.
246      * 
247      * @param discountType
248      */
249     public void setDiscountType(java.lang.String discountType) {
250         this.discountType = discountType;
251     }
252 
253 
254     /**
255      * Gets the endDate value for this ShoppingCouponSoap.
256      * 
257      * @return endDate
258      */
259     public java.util.Calendar getEndDate() {
260         return endDate;
261     }
262 
263 
264     /**
265      * Sets the endDate value for this ShoppingCouponSoap.
266      * 
267      * @param endDate
268      */
269     public void setEndDate(java.util.Calendar endDate) {
270         this.endDate = endDate;
271     }
272 
273 
274     /**
275      * Gets the groupId value for this ShoppingCouponSoap.
276      * 
277      * @return groupId
278      */
279     public long getGroupId() {
280         return groupId;
281     }
282 
283 
284     /**
285      * Sets the groupId value for this ShoppingCouponSoap.
286      * 
287      * @param groupId
288      */
289     public void setGroupId(long groupId) {
290         this.groupId = groupId;
291     }
292 
293 
294     /**
295      * Gets the limitCategories value for this ShoppingCouponSoap.
296      * 
297      * @return limitCategories
298      */
299     public java.lang.String getLimitCategories() {
300         return limitCategories;
301     }
302 
303 
304     /**
305      * Sets the limitCategories value for this ShoppingCouponSoap.
306      * 
307      * @param limitCategories
308      */
309     public void setLimitCategories(java.lang.String limitCategories) {
310         this.limitCategories = limitCategories;
311     }
312 
313 
314     /**
315      * Gets the limitSkus value for this ShoppingCouponSoap.
316      * 
317      * @return limitSkus
318      */
319     public java.lang.String getLimitSkus() {
320         return limitSkus;
321     }
322 
323 
324     /**
325      * Sets the limitSkus value for this ShoppingCouponSoap.
326      * 
327      * @param limitSkus
328      */
329     public void setLimitSkus(java.lang.String limitSkus) {
330         this.limitSkus = limitSkus;
331     }
332 
333 
334     /**
335      * Gets the minOrder value for this ShoppingCouponSoap.
336      * 
337      * @return minOrder
338      */
339     public double getMinOrder() {
340         return minOrder;
341     }
342 
343 
344     /**
345      * Sets the minOrder value for this ShoppingCouponSoap.
346      * 
347      * @param minOrder
348      */
349     public void setMinOrder(double minOrder) {
350         this.minOrder = minOrder;
351     }
352 
353 
354     /**
355      * Gets the modifiedDate value for this ShoppingCouponSoap.
356      * 
357      * @return modifiedDate
358      */
359     public java.util.Calendar getModifiedDate() {
360         return modifiedDate;
361     }
362 
363 
364     /**
365      * Sets the modifiedDate value for this ShoppingCouponSoap.
366      * 
367      * @param modifiedDate
368      */
369     public void setModifiedDate(java.util.Calendar modifiedDate) {
370         this.modifiedDate = modifiedDate;
371     }
372 
373 
374     /**
375      * Gets the name value for this ShoppingCouponSoap.
376      * 
377      * @return name
378      */
379     public java.lang.String getName() {
380         return name;
381     }
382 
383 
384     /**
385      * Sets the name value for this ShoppingCouponSoap.
386      * 
387      * @param name
388      */
389     public void setName(java.lang.String name) {
390         this.name = name;
391     }
392 
393 
394     /**
395      * Gets the primaryKey value for this ShoppingCouponSoap.
396      * 
397      * @return primaryKey
398      */
399     public long getPrimaryKey() {
400         return primaryKey;
401     }
402 
403 
404     /**
405      * Sets the primaryKey value for this ShoppingCouponSoap.
406      * 
407      * @param primaryKey
408      */
409     public void setPrimaryKey(long primaryKey) {
410         this.primaryKey = primaryKey;
411     }
412 
413 
414     /**
415      * Gets the startDate value for this ShoppingCouponSoap.
416      * 
417      * @return startDate
418      */
419     public java.util.Calendar getStartDate() {
420         return startDate;
421     }
422 
423 
424     /**
425      * Sets the startDate value for this ShoppingCouponSoap.
426      * 
427      * @param startDate
428      */
429     public void setStartDate(java.util.Calendar startDate) {
430         this.startDate = startDate;
431     }
432 
433 
434     /**
435      * Gets the userId value for this ShoppingCouponSoap.
436      * 
437      * @return userId
438      */
439     public long getUserId() {
440         return userId;
441     }
442 
443 
444     /**
445      * Sets the userId value for this ShoppingCouponSoap.
446      * 
447      * @param userId
448      */
449     public void setUserId(long userId) {
450         this.userId = userId;
451     }
452 
453 
454     /**
455      * Gets the userName value for this ShoppingCouponSoap.
456      * 
457      * @return userName
458      */
459     public java.lang.String getUserName() {
460         return userName;
461     }
462 
463 
464     /**
465      * Sets the userName value for this ShoppingCouponSoap.
466      * 
467      * @param userName
468      */
469     public void setUserName(java.lang.String userName) {
470         this.userName = userName;
471     }
472 
473     private java.lang.Object __equalsCalc = null;
474     public synchronized boolean equals(java.lang.Object obj) {
475         if (!(obj instanceof ShoppingCouponSoap)) return false;
476         ShoppingCouponSoap other = (ShoppingCouponSoap) obj;
477         if (obj == null) return false;
478         if (this == obj) return true;
479         if (__equalsCalc != null) {
480             return (__equalsCalc == obj);
481         }
482         __equalsCalc = obj;
483         boolean _equals;
484         _equals = true && 
485             this.active == other.isActive() &&
486             ((this.code==null && other.getCode()==null) || 
487              (this.code!=null &&
488               this.code.equals(other.getCode()))) &&
489             this.companyId == other.getCompanyId() &&
490             this.couponId == other.getCouponId() &&
491             ((this.createDate==null && other.getCreateDate()==null) || 
492              (this.createDate!=null &&
493               this.createDate.equals(other.getCreateDate()))) &&
494             ((this.description==null && other.getDescription()==null) || 
495              (this.description!=null &&
496               this.description.equals(other.getDescription()))) &&
497             this.discount == other.getDiscount() &&
498             ((this.discountType==null && other.getDiscountType()==null) || 
499              (this.discountType!=null &&
500               this.discountType.equals(other.getDiscountType()))) &&
501             ((this.endDate==null && other.getEndDate()==null) || 
502              (this.endDate!=null &&
503               this.endDate.equals(other.getEndDate()))) &&
504             this.groupId == other.getGroupId() &&
505             ((this.limitCategories==null && other.getLimitCategories()==null) || 
506              (this.limitCategories!=null &&
507               this.limitCategories.equals(other.getLimitCategories()))) &&
508             ((this.limitSkus==null && other.getLimitSkus()==null) || 
509              (this.limitSkus!=null &&
510               this.limitSkus.equals(other.getLimitSkus()))) &&
511             this.minOrder == other.getMinOrder() &&
512             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
513              (this.modifiedDate!=null &&
514               this.modifiedDate.equals(other.getModifiedDate()))) &&
515             ((this.name==null && other.getName()==null) || 
516              (this.name!=null &&
517               this.name.equals(other.getName()))) &&
518             this.primaryKey == other.getPrimaryKey() &&
519             ((this.startDate==null && other.getStartDate()==null) || 
520              (this.startDate!=null &&
521               this.startDate.equals(other.getStartDate()))) &&
522             this.userId == other.getUserId() &&
523             ((this.userName==null && other.getUserName()==null) || 
524              (this.userName!=null &&
525               this.userName.equals(other.getUserName())));
526         __equalsCalc = null;
527         return _equals;
528     }
529 
530     private boolean __hashCodeCalc = false;
531     public synchronized int hashCode() {
532         if (__hashCodeCalc) {
533             return 0;
534         }
535         __hashCodeCalc = true;
536         int _hashCode = 1;
537         _hashCode += (isActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
538         if (getCode() != null) {
539             _hashCode += getCode().hashCode();
540         }
541         _hashCode += new Long(getCompanyId()).hashCode();
542         _hashCode += new Long(getCouponId()).hashCode();
543         if (getCreateDate() != null) {
544             _hashCode += getCreateDate().hashCode();
545         }
546         if (getDescription() != null) {
547             _hashCode += getDescription().hashCode();
548         }
549         _hashCode += new Double(getDiscount()).hashCode();
550         if (getDiscountType() != null) {
551             _hashCode += getDiscountType().hashCode();
552         }
553         if (getEndDate() != null) {
554             _hashCode += getEndDate().hashCode();
555         }
556         _hashCode += new Long(getGroupId()).hashCode();
557         if (getLimitCategories() != null) {
558             _hashCode += getLimitCategories().hashCode();
559         }
560         if (getLimitSkus() != null) {
561             _hashCode += getLimitSkus().hashCode();
562         }
563         _hashCode += new Double(getMinOrder()).hashCode();
564         if (getModifiedDate() != null) {
565             _hashCode += getModifiedDate().hashCode();
566         }
567         if (getName() != null) {
568             _hashCode += getName().hashCode();
569         }
570         _hashCode += new Long(getPrimaryKey()).hashCode();
571         if (getStartDate() != null) {
572             _hashCode += getStartDate().hashCode();
573         }
574         _hashCode += new Long(getUserId()).hashCode();
575         if (getUserName() != null) {
576             _hashCode += getUserName().hashCode();
577         }
578         __hashCodeCalc = false;
579         return _hashCode;
580     }
581 
582     // Type metadata
583     private static org.apache.axis.description.TypeDesc typeDesc =
584         new org.apache.axis.description.TypeDesc(ShoppingCouponSoap.class, true);
585 
586     static {
587         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.shopping.portlet.liferay.com", "ShoppingCouponSoap"));
588         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
589         elemField.setFieldName("active");
590         elemField.setXmlName(new javax.xml.namespace.QName("", "active"));
591         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
592         elemField.setNillable(false);
593         typeDesc.addFieldDesc(elemField);
594         elemField = new org.apache.axis.description.ElementDesc();
595         elemField.setFieldName("code");
596         elemField.setXmlName(new javax.xml.namespace.QName("", "code"));
597         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
598         elemField.setNillable(true);
599         typeDesc.addFieldDesc(elemField);
600         elemField = new org.apache.axis.description.ElementDesc();
601         elemField.setFieldName("companyId");
602         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
603         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
604         elemField.setNillable(false);
605         typeDesc.addFieldDesc(elemField);
606         elemField = new org.apache.axis.description.ElementDesc();
607         elemField.setFieldName("couponId");
608         elemField.setXmlName(new javax.xml.namespace.QName("", "couponId"));
609         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
610         elemField.setNillable(false);
611         typeDesc.addFieldDesc(elemField);
612         elemField = new org.apache.axis.description.ElementDesc();
613         elemField.setFieldName("createDate");
614         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
615         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
616         elemField.setNillable(true);
617         typeDesc.addFieldDesc(elemField);
618         elemField = new org.apache.axis.description.ElementDesc();
619         elemField.setFieldName("description");
620         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
621         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
622         elemField.setNillable(true);
623         typeDesc.addFieldDesc(elemField);
624         elemField = new org.apache.axis.description.ElementDesc();
625         elemField.setFieldName("discount");
626         elemField.setXmlName(new javax.xml.namespace.QName("", "discount"));
627         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
628         elemField.setNillable(false);
629         typeDesc.addFieldDesc(elemField);
630         elemField = new org.apache.axis.description.ElementDesc();
631         elemField.setFieldName("discountType");
632         elemField.setXmlName(new javax.xml.namespace.QName("", "discountType"));
633         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
634         elemField.setNillable(true);
635         typeDesc.addFieldDesc(elemField);
636         elemField = new org.apache.axis.description.ElementDesc();
637         elemField.setFieldName("endDate");
638         elemField.setXmlName(new javax.xml.namespace.QName("", "endDate"));
639         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
640         elemField.setNillable(true);
641         typeDesc.addFieldDesc(elemField);
642         elemField = new org.apache.axis.description.ElementDesc();
643         elemField.setFieldName("groupId");
644         elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
645         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
646         elemField.setNillable(false);
647         typeDesc.addFieldDesc(elemField);
648         elemField = new org.apache.axis.description.ElementDesc();
649         elemField.setFieldName("limitCategories");
650         elemField.setXmlName(new javax.xml.namespace.QName("", "limitCategories"));
651         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
652         elemField.setNillable(true);
653         typeDesc.addFieldDesc(elemField);
654         elemField = new org.apache.axis.description.ElementDesc();
655         elemField.setFieldName("limitSkus");
656         elemField.setXmlName(new javax.xml.namespace.QName("", "limitSkus"));
657         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
658         elemField.setNillable(true);
659         typeDesc.addFieldDesc(elemField);
660         elemField = new org.apache.axis.description.ElementDesc();
661         elemField.setFieldName("minOrder");
662         elemField.setXmlName(new javax.xml.namespace.QName("", "minOrder"));
663         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
664         elemField.setNillable(false);
665         typeDesc.addFieldDesc(elemField);
666         elemField = new org.apache.axis.description.ElementDesc();
667         elemField.setFieldName("modifiedDate");
668         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
669         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
670         elemField.setNillable(true);
671         typeDesc.addFieldDesc(elemField);
672         elemField = new org.apache.axis.description.ElementDesc();
673         elemField.setFieldName("name");
674         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
675         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
676         elemField.setNillable(true);
677         typeDesc.addFieldDesc(elemField);
678         elemField = new org.apache.axis.description.ElementDesc();
679         elemField.setFieldName("primaryKey");
680         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
681         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
682         elemField.setNillable(false);
683         typeDesc.addFieldDesc(elemField);
684         elemField = new org.apache.axis.description.ElementDesc();
685         elemField.setFieldName("startDate");
686         elemField.setXmlName(new javax.xml.namespace.QName("", "startDate"));
687         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
688         elemField.setNillable(true);
689         typeDesc.addFieldDesc(elemField);
690         elemField = new org.apache.axis.description.ElementDesc();
691         elemField.setFieldName("userId");
692         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
693         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
694         elemField.setNillable(false);
695         typeDesc.addFieldDesc(elemField);
696         elemField = new org.apache.axis.description.ElementDesc();
697         elemField.setFieldName("userName");
698         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
699         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
700         elemField.setNillable(true);
701         typeDesc.addFieldDesc(elemField);
702     }
703 
704     /**
705      * Return type metadata object
706      */
707     public static org.apache.axis.description.TypeDesc getTypeDesc() {
708         return typeDesc;
709     }
710 
711     /**
712      * Get Custom Serializer
713      */
714     public static org.apache.axis.encoding.Serializer getSerializer(
715            java.lang.String mechType, 
716            java.lang.Class _javaType,  
717            javax.xml.namespace.QName _xmlType) {
718         return 
719           new  org.apache.axis.encoding.ser.BeanSerializer(
720             _javaType, _xmlType, typeDesc);
721     }
722 
723     /**
724      * Get Custom Deserializer
725      */
726     public static org.apache.axis.encoding.Deserializer getDeserializer(
727            java.lang.String mechType, 
728            java.lang.Class _javaType,  
729            javax.xml.namespace.QName _xmlType) {
730         return 
731           new  org.apache.axis.encoding.ser.BeanDeserializer(
732             _javaType, _xmlType, typeDesc);
733     }
734 
735 }
736