Subversion Repositories SmartDukaan

Rev

Rev 10689 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10689 Rev 12357
Line 26... Line 26...
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField PURCHASE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseDate", org.apache.thrift.protocol.TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField PURCHASE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseDate", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
30
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
-
 
31
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
31
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRING, (short)10);
35
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)11);
-
 
37
  private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.STRING, (short)12);
36
 
38
 
37
  private long itemId; // required
39
  private long itemId; // required
38
  private long purchaseId; // required
40
  private long purchaseId; // required
39
  private long purchaseDate; // required
41
  private long purchaseDate; // required
40
  private long quantity; // required
42
  private long quantity; // required
41
  private double unitPrice; // required
43
  private double unitPrice; // required
-
 
44
  private double nlc; // required
42
  private String brand; // required
45
  private String brand; // required
43
  private String modelName; // required
46
  private String modelName; // required
44
  private String modelNumber; // required
47
  private String modelNumber; // required
45
  private String category; // required
48
  private String category; // required
46
  private String color; // required
49
  private String color; // required
-
 
50
  private String taxType; // required
47
 
51
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50
    ITEM_ID((short)1, "itemId"),
54
    ITEM_ID((short)1, "itemId"),
51
    PURCHASE_ID((short)2, "purchaseId"),
55
    PURCHASE_ID((short)2, "purchaseId"),
52
    PURCHASE_DATE((short)3, "purchaseDate"),
56
    PURCHASE_DATE((short)3, "purchaseDate"),
53
    QUANTITY((short)4, "quantity"),
57
    QUANTITY((short)4, "quantity"),
54
    UNIT_PRICE((short)5, "unitPrice"),
58
    UNIT_PRICE((short)5, "unitPrice"),
-
 
59
    NLC((short)6, "nlc"),
55
    BRAND((short)6, "brand"),
60
    BRAND((short)7, "brand"),
56
    MODEL_NAME((short)7, "modelName"),
61
    MODEL_NAME((short)8, "modelName"),
57
    MODEL_NUMBER((short)8, "modelNumber"),
62
    MODEL_NUMBER((short)9, "modelNumber"),
58
    CATEGORY((short)9, "category"),
63
    CATEGORY((short)10, "category"),
59
    COLOR((short)10, "color");
64
    COLOR((short)11, "color"),
-
 
65
    TAX_TYPE((short)12, "taxType");
60
 
66
 
61
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
67
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62
 
68
 
63
    static {
69
    static {
64
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
70
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 79... Line 85...
79
          return PURCHASE_DATE;
85
          return PURCHASE_DATE;
80
        case 4: // QUANTITY
86
        case 4: // QUANTITY
81
          return QUANTITY;
87
          return QUANTITY;
82
        case 5: // UNIT_PRICE
88
        case 5: // UNIT_PRICE
83
          return UNIT_PRICE;
89
          return UNIT_PRICE;
-
 
90
        case 6: // NLC
-
 
91
          return NLC;
84
        case 6: // BRAND
92
        case 7: // BRAND
85
          return BRAND;
93
          return BRAND;
86
        case 7: // MODEL_NAME
94
        case 8: // MODEL_NAME
87
          return MODEL_NAME;
95
          return MODEL_NAME;
88
        case 8: // MODEL_NUMBER
96
        case 9: // MODEL_NUMBER
89
          return MODEL_NUMBER;
97
          return MODEL_NUMBER;
90
        case 9: // CATEGORY
98
        case 10: // CATEGORY
91
          return CATEGORY;
99
          return CATEGORY;
92
        case 10: // COLOR
100
        case 11: // COLOR
93
          return COLOR;
101
          return COLOR;
-
 
102
        case 12: // TAX_TYPE
-
 
103
          return TAX_TYPE;
94
        default:
104
        default:
95
          return null;
105
          return null;
96
      }
106
      }
97
    }
107
    }
98
 
108
 
Line 134... Line 144...
134
  private static final int __ITEMID_ISSET_ID = 0;
144
  private static final int __ITEMID_ISSET_ID = 0;
135
  private static final int __PURCHASEID_ISSET_ID = 1;
145
  private static final int __PURCHASEID_ISSET_ID = 1;
136
  private static final int __PURCHASEDATE_ISSET_ID = 2;
146
  private static final int __PURCHASEDATE_ISSET_ID = 2;
137
  private static final int __QUANTITY_ISSET_ID = 3;
147
  private static final int __QUANTITY_ISSET_ID = 3;
138
  private static final int __UNITPRICE_ISSET_ID = 4;
148
  private static final int __UNITPRICE_ISSET_ID = 4;
-
 
149
  private static final int __NLC_ISSET_ID = 5;
139
  private BitSet __isset_bit_vector = new BitSet(5);
150
  private BitSet __isset_bit_vector = new BitSet(6);
140
 
151
 
141
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
152
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
142
  static {
153
  static {
143
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
154
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
144
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
155
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 149... Line 160...
149
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
150
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
152
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
163
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
165
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
154
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
156
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
158
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
160
    tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
173
    tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
162
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
176
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
177
    tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
178
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
164
    metaDataMap = Collections.unmodifiableMap(tmpMap);
179
    metaDataMap = Collections.unmodifiableMap(tmpMap);
165
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonTransferredSkuDetail.class, metaDataMap);
180
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonTransferredSkuDetail.class, metaDataMap);
166
  }
181
  }
167
 
182
 
168
  public AmazonTransferredSkuDetail() {
183
  public AmazonTransferredSkuDetail() {
Line 172... Line 187...
172
    long itemId,
187
    long itemId,
173
    long purchaseId,
188
    long purchaseId,
174
    long purchaseDate,
189
    long purchaseDate,
175
    long quantity,
190
    long quantity,
176
    double unitPrice,
191
    double unitPrice,
-
 
192
    double nlc,
177
    String brand,
193
    String brand,
178
    String modelName,
194
    String modelName,
179
    String modelNumber,
195
    String modelNumber,
180
    String category,
196
    String category,
181
    String color)
197
    String color,
-
 
198
    String taxType)
182
  {
199
  {
183
    this();
200
    this();
184
    this.itemId = itemId;
201
    this.itemId = itemId;
185
    setItemIdIsSet(true);
202
    setItemIdIsSet(true);
186
    this.purchaseId = purchaseId;
203
    this.purchaseId = purchaseId;
Line 189... Line 206...
189
    setPurchaseDateIsSet(true);
206
    setPurchaseDateIsSet(true);
190
    this.quantity = quantity;
207
    this.quantity = quantity;
191
    setQuantityIsSet(true);
208
    setQuantityIsSet(true);
192
    this.unitPrice = unitPrice;
209
    this.unitPrice = unitPrice;
193
    setUnitPriceIsSet(true);
210
    setUnitPriceIsSet(true);
-
 
211
    this.nlc = nlc;
-
 
212
    setNlcIsSet(true);
194
    this.brand = brand;
213
    this.brand = brand;
195
    this.modelName = modelName;
214
    this.modelName = modelName;
196
    this.modelNumber = modelNumber;
215
    this.modelNumber = modelNumber;
197
    this.category = category;
216
    this.category = category;
198
    this.color = color;
217
    this.color = color;
-
 
218
    this.taxType = taxType;
199
  }
219
  }
200
 
220
 
201
  /**
221
  /**
202
   * Performs a deep copy on <i>other</i>.
222
   * Performs a deep copy on <i>other</i>.
203
   */
223
   */
Line 207... Line 227...
207
    this.itemId = other.itemId;
227
    this.itemId = other.itemId;
208
    this.purchaseId = other.purchaseId;
228
    this.purchaseId = other.purchaseId;
209
    this.purchaseDate = other.purchaseDate;
229
    this.purchaseDate = other.purchaseDate;
210
    this.quantity = other.quantity;
230
    this.quantity = other.quantity;
211
    this.unitPrice = other.unitPrice;
231
    this.unitPrice = other.unitPrice;
-
 
232
    this.nlc = other.nlc;
212
    if (other.isSetBrand()) {
233
    if (other.isSetBrand()) {
213
      this.brand = other.brand;
234
      this.brand = other.brand;
214
    }
235
    }
215
    if (other.isSetModelName()) {
236
    if (other.isSetModelName()) {
216
      this.modelName = other.modelName;
237
      this.modelName = other.modelName;
Line 222... Line 243...
222
      this.category = other.category;
243
      this.category = other.category;
223
    }
244
    }
224
    if (other.isSetColor()) {
245
    if (other.isSetColor()) {
225
      this.color = other.color;
246
      this.color = other.color;
226
    }
247
    }
-
 
248
    if (other.isSetTaxType()) {
-
 
249
      this.taxType = other.taxType;
-
 
250
    }
227
  }
251
  }
228
 
252
 
229
  public AmazonTransferredSkuDetail deepCopy() {
253
  public AmazonTransferredSkuDetail deepCopy() {
230
    return new AmazonTransferredSkuDetail(this);
254
    return new AmazonTransferredSkuDetail(this);
231
  }
255
  }
Line 240... Line 264...
240
    this.purchaseDate = 0;
264
    this.purchaseDate = 0;
241
    setQuantityIsSet(false);
265
    setQuantityIsSet(false);
242
    this.quantity = 0;
266
    this.quantity = 0;
243
    setUnitPriceIsSet(false);
267
    setUnitPriceIsSet(false);
244
    this.unitPrice = 0.0;
268
    this.unitPrice = 0.0;
-
 
269
    setNlcIsSet(false);
-
 
270
    this.nlc = 0.0;
245
    this.brand = null;
271
    this.brand = null;
246
    this.modelName = null;
272
    this.modelName = null;
247
    this.modelNumber = null;
273
    this.modelNumber = null;
248
    this.category = null;
274
    this.category = null;
249
    this.color = null;
275
    this.color = null;
-
 
276
    this.taxType = null;
250
  }
277
  }
251
 
278
 
252
  public long getItemId() {
279
  public long getItemId() {
253
    return this.itemId;
280
    return this.itemId;
254
  }
281
  }
Line 357... Line 384...
357
 
384
 
358
  public void setUnitPriceIsSet(boolean value) {
385
  public void setUnitPriceIsSet(boolean value) {
359
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
386
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
360
  }
387
  }
361
 
388
 
-
 
389
  public double getNlc() {
-
 
390
    return this.nlc;
-
 
391
  }
-
 
392
 
-
 
393
  public void setNlc(double nlc) {
-
 
394
    this.nlc = nlc;
-
 
395
    setNlcIsSet(true);
-
 
396
  }
-
 
397
 
-
 
398
  public void unsetNlc() {
-
 
399
    __isset_bit_vector.clear(__NLC_ISSET_ID);
-
 
400
  }
-
 
401
 
-
 
402
  /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
-
 
403
  public boolean isSetNlc() {
-
 
404
    return __isset_bit_vector.get(__NLC_ISSET_ID);
-
 
405
  }
-
 
406
 
-
 
407
  public void setNlcIsSet(boolean value) {
-
 
408
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
-
 
409
  }
-
 
410
 
362
  public String getBrand() {
411
  public String getBrand() {
363
    return this.brand;
412
    return this.brand;
364
  }
413
  }
365
 
414
 
366
  public void setBrand(String brand) {
415
  public void setBrand(String brand) {
Line 472... Line 521...
472
    if (!value) {
521
    if (!value) {
473
      this.color = null;
522
      this.color = null;
474
    }
523
    }
475
  }
524
  }
476
 
525
 
-
 
526
  public String getTaxType() {
-
 
527
    return this.taxType;
-
 
528
  }
-
 
529
 
-
 
530
  public void setTaxType(String taxType) {
-
 
531
    this.taxType = taxType;
-
 
532
  }
-
 
533
 
-
 
534
  public void unsetTaxType() {
-
 
535
    this.taxType = null;
-
 
536
  }
-
 
537
 
-
 
538
  /** Returns true if field taxType is set (has been assigned a value) and false otherwise */
-
 
539
  public boolean isSetTaxType() {
-
 
540
    return this.taxType != null;
-
 
541
  }
-
 
542
 
-
 
543
  public void setTaxTypeIsSet(boolean value) {
-
 
544
    if (!value) {
-
 
545
      this.taxType = null;
-
 
546
    }
-
 
547
  }
-
 
548
 
477
  public void setFieldValue(_Fields field, Object value) {
549
  public void setFieldValue(_Fields field, Object value) {
478
    switch (field) {
550
    switch (field) {
479
    case ITEM_ID:
551
    case ITEM_ID:
480
      if (value == null) {
552
      if (value == null) {
481
        unsetItemId();
553
        unsetItemId();
Line 514... Line 586...
514
      } else {
586
      } else {
515
        setUnitPrice((Double)value);
587
        setUnitPrice((Double)value);
516
      }
588
      }
517
      break;
589
      break;
518
 
590
 
-
 
591
    case NLC:
-
 
592
      if (value == null) {
-
 
593
        unsetNlc();
-
 
594
      } else {
-
 
595
        setNlc((Double)value);
-
 
596
      }
-
 
597
      break;
-
 
598
 
519
    case BRAND:
599
    case BRAND:
520
      if (value == null) {
600
      if (value == null) {
521
        unsetBrand();
601
        unsetBrand();
522
      } else {
602
      } else {
523
        setBrand((String)value);
603
        setBrand((String)value);
Line 554... Line 634...
554
      } else {
634
      } else {
555
        setColor((String)value);
635
        setColor((String)value);
556
      }
636
      }
557
      break;
637
      break;
558
 
638
 
-
 
639
    case TAX_TYPE:
-
 
640
      if (value == null) {
-
 
641
        unsetTaxType();
-
 
642
      } else {
-
 
643
        setTaxType((String)value);
-
 
644
      }
-
 
645
      break;
-
 
646
 
559
    }
647
    }
560
  }
648
  }
561
 
649
 
562
  public Object getFieldValue(_Fields field) {
650
  public Object getFieldValue(_Fields field) {
563
    switch (field) {
651
    switch (field) {
Line 574... Line 662...
574
      return Long.valueOf(getQuantity());
662
      return Long.valueOf(getQuantity());
575
 
663
 
576
    case UNIT_PRICE:
664
    case UNIT_PRICE:
577
      return Double.valueOf(getUnitPrice());
665
      return Double.valueOf(getUnitPrice());
578
 
666
 
-
 
667
    case NLC:
-
 
668
      return Double.valueOf(getNlc());
-
 
669
 
579
    case BRAND:
670
    case BRAND:
580
      return getBrand();
671
      return getBrand();
581
 
672
 
582
    case MODEL_NAME:
673
    case MODEL_NAME:
583
      return getModelName();
674
      return getModelName();
Line 589... Line 680...
589
      return getCategory();
680
      return getCategory();
590
 
681
 
591
    case COLOR:
682
    case COLOR:
592
      return getColor();
683
      return getColor();
593
 
684
 
-
 
685
    case TAX_TYPE:
-
 
686
      return getTaxType();
-
 
687
 
594
    }
688
    }
595
    throw new IllegalStateException();
689
    throw new IllegalStateException();
596
  }
690
  }
597
 
691
 
598
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
692
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 610... Line 704...
610
      return isSetPurchaseDate();
704
      return isSetPurchaseDate();
611
    case QUANTITY:
705
    case QUANTITY:
612
      return isSetQuantity();
706
      return isSetQuantity();
613
    case UNIT_PRICE:
707
    case UNIT_PRICE:
614
      return isSetUnitPrice();
708
      return isSetUnitPrice();
-
 
709
    case NLC:
-
 
710
      return isSetNlc();
615
    case BRAND:
711
    case BRAND:
616
      return isSetBrand();
712
      return isSetBrand();
617
    case MODEL_NAME:
713
    case MODEL_NAME:
618
      return isSetModelName();
714
      return isSetModelName();
619
    case MODEL_NUMBER:
715
    case MODEL_NUMBER:
620
      return isSetModelNumber();
716
      return isSetModelNumber();
621
    case CATEGORY:
717
    case CATEGORY:
622
      return isSetCategory();
718
      return isSetCategory();
623
    case COLOR:
719
    case COLOR:
624
      return isSetColor();
720
      return isSetColor();
-
 
721
    case TAX_TYPE:
-
 
722
      return isSetTaxType();
625
    }
723
    }
626
    throw new IllegalStateException();
724
    throw new IllegalStateException();
627
  }
725
  }
628
 
726
 
629
  @Override
727
  @Override
Line 682... Line 780...
682
        return false;
780
        return false;
683
      if (this.unitPrice != that.unitPrice)
781
      if (this.unitPrice != that.unitPrice)
684
        return false;
782
        return false;
685
    }
783
    }
686
 
784
 
-
 
785
    boolean this_present_nlc = true;
-
 
786
    boolean that_present_nlc = true;
-
 
787
    if (this_present_nlc || that_present_nlc) {
-
 
788
      if (!(this_present_nlc && that_present_nlc))
-
 
789
        return false;
-
 
790
      if (this.nlc != that.nlc)
-
 
791
        return false;
-
 
792
    }
-
 
793
 
687
    boolean this_present_brand = true && this.isSetBrand();
794
    boolean this_present_brand = true && this.isSetBrand();
688
    boolean that_present_brand = true && that.isSetBrand();
795
    boolean that_present_brand = true && that.isSetBrand();
689
    if (this_present_brand || that_present_brand) {
796
    if (this_present_brand || that_present_brand) {
690
      if (!(this_present_brand && that_present_brand))
797
      if (!(this_present_brand && that_present_brand))
691
        return false;
798
        return false;
Line 727... Line 834...
727
        return false;
834
        return false;
728
      if (!this.color.equals(that.color))
835
      if (!this.color.equals(that.color))
729
        return false;
836
        return false;
730
    }
837
    }
731
 
838
 
-
 
839
    boolean this_present_taxType = true && this.isSetTaxType();
-
 
840
    boolean that_present_taxType = true && that.isSetTaxType();
-
 
841
    if (this_present_taxType || that_present_taxType) {
-
 
842
      if (!(this_present_taxType && that_present_taxType))
-
 
843
        return false;
-
 
844
      if (!this.taxType.equals(that.taxType))
-
 
845
        return false;
-
 
846
    }
-
 
847
 
732
    return true;
848
    return true;
733
  }
849
  }
734
 
850
 
735
  @Override
851
  @Override
736
  public int hashCode() {
852
  public int hashCode() {
Line 793... Line 909...
793
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
909
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
794
      if (lastComparison != 0) {
910
      if (lastComparison != 0) {
795
        return lastComparison;
911
        return lastComparison;
796
      }
912
      }
797
    }
913
    }
-
 
914
    lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
-
 
915
    if (lastComparison != 0) {
-
 
916
      return lastComparison;
-
 
917
    }
-
 
918
    if (isSetNlc()) {
-
 
919
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
-
 
920
      if (lastComparison != 0) {
-
 
921
        return lastComparison;
-
 
922
      }
-
 
923
    }
798
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
924
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
799
    if (lastComparison != 0) {
925
    if (lastComparison != 0) {
800
      return lastComparison;
926
      return lastComparison;
801
    }
927
    }
802
    if (isSetBrand()) {
928
    if (isSetBrand()) {
Line 843... Line 969...
843
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
969
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
844
      if (lastComparison != 0) {
970
      if (lastComparison != 0) {
845
        return lastComparison;
971
        return lastComparison;
846
      }
972
      }
847
    }
973
    }
-
 
974
    lastComparison = Boolean.valueOf(isSetTaxType()).compareTo(typedOther.isSetTaxType());
-
 
975
    if (lastComparison != 0) {
-
 
976
      return lastComparison;
-
 
977
    }
-
 
978
    if (isSetTaxType()) {
-
 
979
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);
-
 
980
      if (lastComparison != 0) {
-
 
981
        return lastComparison;
-
 
982
      }
-
 
983
    }
848
    return 0;
984
    return 0;
849
  }
985
  }
850
 
986
 
851
  public _Fields fieldForId(int fieldId) {
987
  public _Fields fieldForId(int fieldId) {
852
    return _Fields.findByThriftId(fieldId);
988
    return _Fields.findByThriftId(fieldId);
Line 900... Line 1036...
900
            setUnitPriceIsSet(true);
1036
            setUnitPriceIsSet(true);
901
          } else { 
1037
          } else { 
902
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1038
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
903
          }
1039
          }
904
          break;
1040
          break;
-
 
1041
        case 6: // NLC
-
 
1042
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
1043
            this.nlc = iprot.readDouble();
-
 
1044
            setNlcIsSet(true);
-
 
1045
          } else { 
-
 
1046
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1047
          }
-
 
1048
          break;
905
        case 6: // BRAND
1049
        case 7: // BRAND
906
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1050
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
907
            this.brand = iprot.readString();
1051
            this.brand = iprot.readString();
908
          } else { 
1052
          } else { 
909
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
910
          }
1054
          }
911
          break;
1055
          break;
912
        case 7: // MODEL_NAME
1056
        case 8: // MODEL_NAME
913
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1057
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
914
            this.modelName = iprot.readString();
1058
            this.modelName = iprot.readString();
915
          } else { 
1059
          } else { 
916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
917
          }
1061
          }
918
          break;
1062
          break;
919
        case 8: // MODEL_NUMBER
1063
        case 9: // MODEL_NUMBER
920
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1064
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
921
            this.modelNumber = iprot.readString();
1065
            this.modelNumber = iprot.readString();
922
          } else { 
1066
          } else { 
923
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
924
          }
1068
          }
925
          break;
1069
          break;
926
        case 9: // CATEGORY
1070
        case 10: // CATEGORY
927
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1071
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
928
            this.category = iprot.readString();
1072
            this.category = iprot.readString();
929
          } else { 
1073
          } else { 
930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
931
          }
1075
          }
932
          break;
1076
          break;
933
        case 10: // COLOR
1077
        case 11: // COLOR
934
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1078
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
935
            this.color = iprot.readString();
1079
            this.color = iprot.readString();
936
          } else { 
1080
          } else { 
937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1081
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
938
          }
1082
          }
939
          break;
1083
          break;
-
 
1084
        case 12: // TAX_TYPE
-
 
1085
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1086
            this.taxType = iprot.readString();
-
 
1087
          } else { 
-
 
1088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1089
          }
-
 
1090
          break;
940
        default:
1091
        default:
941
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1092
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
942
      }
1093
      }
943
      iprot.readFieldEnd();
1094
      iprot.readFieldEnd();
944
    }
1095
    }
Line 963... Line 1114...
963
    oprot.writeI64(this.quantity);
1114
    oprot.writeI64(this.quantity);
964
    oprot.writeFieldEnd();
1115
    oprot.writeFieldEnd();
965
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1116
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
966
    oprot.writeDouble(this.unitPrice);
1117
    oprot.writeDouble(this.unitPrice);
967
    oprot.writeFieldEnd();
1118
    oprot.writeFieldEnd();
-
 
1119
    oprot.writeFieldBegin(NLC_FIELD_DESC);
-
 
1120
    oprot.writeDouble(this.nlc);
-
 
1121
    oprot.writeFieldEnd();
968
    if (this.brand != null) {
1122
    if (this.brand != null) {
969
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1123
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
970
      oprot.writeString(this.brand);
1124
      oprot.writeString(this.brand);
971
      oprot.writeFieldEnd();
1125
      oprot.writeFieldEnd();
972
    }
1126
    }
Line 988... Line 1142...
988
    if (this.color != null) {
1142
    if (this.color != null) {
989
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1143
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
990
      oprot.writeString(this.color);
1144
      oprot.writeString(this.color);
991
      oprot.writeFieldEnd();
1145
      oprot.writeFieldEnd();
992
    }
1146
    }
-
 
1147
    if (this.taxType != null) {
-
 
1148
      oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);
-
 
1149
      oprot.writeString(this.taxType);
-
 
1150
      oprot.writeFieldEnd();
-
 
1151
    }
993
    oprot.writeFieldStop();
1152
    oprot.writeFieldStop();
994
    oprot.writeStructEnd();
1153
    oprot.writeStructEnd();
995
  }
1154
  }
996
 
1155
 
997
  @Override
1156
  @Override
Line 1017... Line 1176...
1017
    if (!first) sb.append(", ");
1176
    if (!first) sb.append(", ");
1018
    sb.append("unitPrice:");
1177
    sb.append("unitPrice:");
1019
    sb.append(this.unitPrice);
1178
    sb.append(this.unitPrice);
1020
    first = false;
1179
    first = false;
1021
    if (!first) sb.append(", ");
1180
    if (!first) sb.append(", ");
-
 
1181
    sb.append("nlc:");
-
 
1182
    sb.append(this.nlc);
-
 
1183
    first = false;
-
 
1184
    if (!first) sb.append(", ");
1022
    sb.append("brand:");
1185
    sb.append("brand:");
1023
    if (this.brand == null) {
1186
    if (this.brand == null) {
1024
      sb.append("null");
1187
      sb.append("null");
1025
    } else {
1188
    } else {
1026
      sb.append(this.brand);
1189
      sb.append(this.brand);
Line 1056... Line 1219...
1056
      sb.append("null");
1219
      sb.append("null");
1057
    } else {
1220
    } else {
1058
      sb.append(this.color);
1221
      sb.append(this.color);
1059
    }
1222
    }
1060
    first = false;
1223
    first = false;
-
 
1224
    if (!first) sb.append(", ");
-
 
1225
    sb.append("taxType:");
-
 
1226
    if (this.taxType == null) {
-
 
1227
      sb.append("null");
-
 
1228
    } else {
-
 
1229
      sb.append(this.taxType);
-
 
1230
    }
-
 
1231
    first = false;
1061
    sb.append(")");
1232
    sb.append(")");
1062
    return sb.toString();
1233
    return sb.toString();
1063
  }
1234
  }
1064
 
1235
 
1065
  public void validate() throws org.apache.thrift.TException {
1236
  public void validate() throws org.apache.thrift.TException {