Subversion Repositories SmartDukaan

Rev

Rev 5372 | Rev 6361 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5372 Rev 5545
Line 26... Line 26...
26
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField PO_CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("poCreatedAt", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField PO_CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("poCreatedAt", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField SUPPLIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierName", org.apache.thrift.protocol.TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField SUPPLIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierName", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBERS_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumbers", org.apache.thrift.protocol.TType.STRING, (short)4);
29
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBERS_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumbers", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  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)5);
30
  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)5);
-
 
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);
31
  private static final org.apache.thrift.protocol.TField ITEM_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("itemName", org.apache.thrift.protocol.TType.STRING, (short)6);
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_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 COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)9);
32
  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)7);
35
  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)10);
33
  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)8);
36
  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)11);
34
 
37
 
35
  private long purchaseOrderId; // required
38
  private long purchaseOrderId; // required
36
  private long poCreatedAt; // required
39
  private long poCreatedAt; // required
37
  private String supplierName; // required
40
  private String supplierName; // required
38
  private String invoiceNumbers; // required
41
  private String invoiceNumbers; // required
39
  private long itemId; // required
42
  private long itemId; // required
-
 
43
  private String brand; // required
40
  private String itemName; // required
44
  private String modelName; // required
-
 
45
  private String modelNumber; // required
-
 
46
  private String color; // required
41
  private double unitPrice; // required
47
  private double unitPrice; // required
42
  private long quantity; // required
48
  private long quantity; // required
43
 
49
 
44
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
52
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
47
    PO_CREATED_AT((short)2, "poCreatedAt"),
53
    PO_CREATED_AT((short)2, "poCreatedAt"),
48
    SUPPLIER_NAME((short)3, "supplierName"),
54
    SUPPLIER_NAME((short)3, "supplierName"),
49
    INVOICE_NUMBERS((short)4, "invoiceNumbers"),
55
    INVOICE_NUMBERS((short)4, "invoiceNumbers"),
50
    ITEM_ID((short)5, "itemId"),
56
    ITEM_ID((short)5, "itemId"),
-
 
57
    BRAND((short)6, "brand"),
51
    ITEM_NAME((short)6, "itemName"),
58
    MODEL_NAME((short)7, "modelName"),
-
 
59
    MODEL_NUMBER((short)8, "modelNumber"),
-
 
60
    COLOR((short)9, "color"),
52
    UNIT_PRICE((short)7, "unitPrice"),
61
    UNIT_PRICE((short)10, "unitPrice"),
53
    QUANTITY((short)8, "quantity");
62
    QUANTITY((short)11, "quantity");
54
 
63
 
55
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
64
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56
 
65
 
57
    static {
66
    static {
58
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
67
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 73... Line 82...
73
          return SUPPLIER_NAME;
82
          return SUPPLIER_NAME;
74
        case 4: // INVOICE_NUMBERS
83
        case 4: // INVOICE_NUMBERS
75
          return INVOICE_NUMBERS;
84
          return INVOICE_NUMBERS;
76
        case 5: // ITEM_ID
85
        case 5: // ITEM_ID
77
          return ITEM_ID;
86
          return ITEM_ID;
-
 
87
        case 6: // BRAND
-
 
88
          return BRAND;
78
        case 6: // ITEM_NAME
89
        case 7: // MODEL_NAME
79
          return ITEM_NAME;
90
          return MODEL_NAME;
-
 
91
        case 8: // MODEL_NUMBER
-
 
92
          return MODEL_NUMBER;
-
 
93
        case 9: // COLOR
-
 
94
          return COLOR;
80
        case 7: // UNIT_PRICE
95
        case 10: // UNIT_PRICE
81
          return UNIT_PRICE;
96
          return UNIT_PRICE;
82
        case 8: // QUANTITY
97
        case 11: // QUANTITY
83
          return QUANTITY;
98
          return QUANTITY;
84
        default:
99
        default:
85
          return null;
100
          return null;
86
      }
101
      }
87
    }
102
    }
Line 139... Line 154...
139
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
140
    tmpMap.put(_Fields.INVOICE_NUMBERS, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumbers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
155
    tmpMap.put(_Fields.INVOICE_NUMBERS, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumbers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
141
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
142
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
157
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
143
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
159
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
144
    tmpMap.put(_Fields.ITEM_NAME, new org.apache.thrift.meta_data.FieldMetaData("itemName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
163
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
165
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
145
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
146
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
147
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
148
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
149
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
Line 158... Line 179...
158
    long purchaseOrderId,
179
    long purchaseOrderId,
159
    long poCreatedAt,
180
    long poCreatedAt,
160
    String supplierName,
181
    String supplierName,
161
    String invoiceNumbers,
182
    String invoiceNumbers,
162
    long itemId,
183
    long itemId,
-
 
184
    String brand,
163
    String itemName,
185
    String modelName,
-
 
186
    String modelNumber,
-
 
187
    String color,
164
    double unitPrice,
188
    double unitPrice,
165
    long quantity)
189
    long quantity)
166
  {
190
  {
167
    this();
191
    this();
168
    this.purchaseOrderId = purchaseOrderId;
192
    this.purchaseOrderId = purchaseOrderId;
Line 171... Line 195...
171
    setPoCreatedAtIsSet(true);
195
    setPoCreatedAtIsSet(true);
172
    this.supplierName = supplierName;
196
    this.supplierName = supplierName;
173
    this.invoiceNumbers = invoiceNumbers;
197
    this.invoiceNumbers = invoiceNumbers;
174
    this.itemId = itemId;
198
    this.itemId = itemId;
175
    setItemIdIsSet(true);
199
    setItemIdIsSet(true);
-
 
200
    this.brand = brand;
176
    this.itemName = itemName;
201
    this.modelName = modelName;
-
 
202
    this.modelNumber = modelNumber;
-
 
203
    this.color = color;
177
    this.unitPrice = unitPrice;
204
    this.unitPrice = unitPrice;
178
    setUnitPriceIsSet(true);
205
    setUnitPriceIsSet(true);
179
    this.quantity = quantity;
206
    this.quantity = quantity;
180
    setQuantityIsSet(true);
207
    setQuantityIsSet(true);
181
  }
208
  }
Line 193... Line 220...
193
    }
220
    }
194
    if (other.isSetInvoiceNumbers()) {
221
    if (other.isSetInvoiceNumbers()) {
195
      this.invoiceNumbers = other.invoiceNumbers;
222
      this.invoiceNumbers = other.invoiceNumbers;
196
    }
223
    }
197
    this.itemId = other.itemId;
224
    this.itemId = other.itemId;
-
 
225
    if (other.isSetBrand()) {
-
 
226
      this.brand = other.brand;
-
 
227
    }
198
    if (other.isSetItemName()) {
228
    if (other.isSetModelName()) {
199
      this.itemName = other.itemName;
229
      this.modelName = other.modelName;
-
 
230
    }
-
 
231
    if (other.isSetModelNumber()) {
-
 
232
      this.modelNumber = other.modelNumber;
-
 
233
    }
-
 
234
    if (other.isSetColor()) {
-
 
235
      this.color = other.color;
200
    }
236
    }
201
    this.unitPrice = other.unitPrice;
237
    this.unitPrice = other.unitPrice;
202
    this.quantity = other.quantity;
238
    this.quantity = other.quantity;
203
  }
239
  }
204
 
240
 
Line 214... Line 250...
214
    this.poCreatedAt = 0;
250
    this.poCreatedAt = 0;
215
    this.supplierName = null;
251
    this.supplierName = null;
216
    this.invoiceNumbers = null;
252
    this.invoiceNumbers = null;
217
    setItemIdIsSet(false);
253
    setItemIdIsSet(false);
218
    this.itemId = 0;
254
    this.itemId = 0;
-
 
255
    this.brand = null;
219
    this.itemName = null;
256
    this.modelName = null;
-
 
257
    this.modelNumber = null;
-
 
258
    this.color = null;
220
    setUnitPriceIsSet(false);
259
    setUnitPriceIsSet(false);
221
    this.unitPrice = 0.0;
260
    this.unitPrice = 0.0;
222
    setQuantityIsSet(false);
261
    setQuantityIsSet(false);
223
    this.quantity = 0;
262
    this.quantity = 0;
224
  }
263
  }
Line 333... Line 372...
333
 
372
 
334
  public void setItemIdIsSet(boolean value) {
373
  public void setItemIdIsSet(boolean value) {
335
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
374
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
336
  }
375
  }
337
 
376
 
338
  public String getItemName() {
377
  public String getBrand() {
339
    return this.itemName;
378
    return this.brand;
340
  }
379
  }
341
 
380
 
342
  public void setItemName(String itemName) {
381
  public void setBrand(String brand) {
343
    this.itemName = itemName;
382
    this.brand = brand;
344
  }
383
  }
345
 
384
 
346
  public void unsetItemName() {
385
  public void unsetBrand() {
347
    this.itemName = null;
386
    this.brand = null;
348
  }
387
  }
349
 
388
 
350
  /** Returns true if field itemName is set (has been assigned a value) and false otherwise */
389
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
351
  public boolean isSetItemName() {
390
  public boolean isSetBrand() {
352
    return this.itemName != null;
391
    return this.brand != null;
353
  }
392
  }
354
 
393
 
355
  public void setItemNameIsSet(boolean value) {
394
  public void setBrandIsSet(boolean value) {
356
    if (!value) {
395
    if (!value) {
-
 
396
      this.brand = null;
-
 
397
    }
-
 
398
  }
-
 
399
 
-
 
400
  public String getModelName() {
-
 
401
    return this.modelName;
-
 
402
  }
-
 
403
 
-
 
404
  public void setModelName(String modelName) {
-
 
405
    this.modelName = modelName;
-
 
406
  }
-
 
407
 
-
 
408
  public void unsetModelName() {
-
 
409
    this.modelName = null;
-
 
410
  }
-
 
411
 
-
 
412
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
-
 
413
  public boolean isSetModelName() {
-
 
414
    return this.modelName != null;
-
 
415
  }
-
 
416
 
-
 
417
  public void setModelNameIsSet(boolean value) {
-
 
418
    if (!value) {
357
      this.itemName = null;
419
      this.modelName = null;
-
 
420
    }
-
 
421
  }
-
 
422
 
-
 
423
  public String getModelNumber() {
-
 
424
    return this.modelNumber;
-
 
425
  }
-
 
426
 
-
 
427
  public void setModelNumber(String modelNumber) {
-
 
428
    this.modelNumber = modelNumber;
-
 
429
  }
-
 
430
 
-
 
431
  public void unsetModelNumber() {
-
 
432
    this.modelNumber = null;
-
 
433
  }
-
 
434
 
-
 
435
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
-
 
436
  public boolean isSetModelNumber() {
-
 
437
    return this.modelNumber != null;
-
 
438
  }
-
 
439
 
-
 
440
  public void setModelNumberIsSet(boolean value) {
-
 
441
    if (!value) {
-
 
442
      this.modelNumber = null;
-
 
443
    }
-
 
444
  }
-
 
445
 
-
 
446
  public String getColor() {
-
 
447
    return this.color;
-
 
448
  }
-
 
449
 
-
 
450
  public void setColor(String color) {
-
 
451
    this.color = color;
-
 
452
  }
-
 
453
 
-
 
454
  public void unsetColor() {
-
 
455
    this.color = null;
-
 
456
  }
-
 
457
 
-
 
458
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
-
 
459
  public boolean isSetColor() {
-
 
460
    return this.color != null;
-
 
461
  }
-
 
462
 
-
 
463
  public void setColorIsSet(boolean value) {
-
 
464
    if (!value) {
-
 
465
      this.color = null;
358
    }
466
    }
359
  }
467
  }
360
 
468
 
361
  public double getUnitPrice() {
469
  public double getUnitPrice() {
362
    return this.unitPrice;
470
    return this.unitPrice;
Line 442... Line 550...
442
      } else {
550
      } else {
443
        setItemId((Long)value);
551
        setItemId((Long)value);
444
      }
552
      }
445
      break;
553
      break;
446
 
554
 
-
 
555
    case BRAND:
-
 
556
      if (value == null) {
-
 
557
        unsetBrand();
-
 
558
      } else {
-
 
559
        setBrand((String)value);
-
 
560
      }
-
 
561
      break;
-
 
562
 
447
    case ITEM_NAME:
563
    case MODEL_NAME:
-
 
564
      if (value == null) {
-
 
565
        unsetModelName();
-
 
566
      } else {
-
 
567
        setModelName((String)value);
-
 
568
      }
-
 
569
      break;
-
 
570
 
-
 
571
    case MODEL_NUMBER:
-
 
572
      if (value == null) {
-
 
573
        unsetModelNumber();
-
 
574
      } else {
-
 
575
        setModelNumber((String)value);
-
 
576
      }
-
 
577
      break;
-
 
578
 
-
 
579
    case COLOR:
448
      if (value == null) {
580
      if (value == null) {
449
        unsetItemName();
581
        unsetColor();
450
      } else {
582
      } else {
451
        setItemName((String)value);
583
        setColor((String)value);
452
      }
584
      }
453
      break;
585
      break;
454
 
586
 
455
    case UNIT_PRICE:
587
    case UNIT_PRICE:
456
      if (value == null) {
588
      if (value == null) {
Line 486... Line 618...
486
      return getInvoiceNumbers();
618
      return getInvoiceNumbers();
487
 
619
 
488
    case ITEM_ID:
620
    case ITEM_ID:
489
      return Long.valueOf(getItemId());
621
      return Long.valueOf(getItemId());
490
 
622
 
-
 
623
    case BRAND:
-
 
624
      return getBrand();
-
 
625
 
491
    case ITEM_NAME:
626
    case MODEL_NAME:
492
      return getItemName();
627
      return getModelName();
-
 
628
 
-
 
629
    case MODEL_NUMBER:
-
 
630
      return getModelNumber();
-
 
631
 
-
 
632
    case COLOR:
-
 
633
      return getColor();
493
 
634
 
494
    case UNIT_PRICE:
635
    case UNIT_PRICE:
495
      return Double.valueOf(getUnitPrice());
636
      return Double.valueOf(getUnitPrice());
496
 
637
 
497
    case QUANTITY:
638
    case QUANTITY:
Line 516... Line 657...
516
      return isSetSupplierName();
657
      return isSetSupplierName();
517
    case INVOICE_NUMBERS:
658
    case INVOICE_NUMBERS:
518
      return isSetInvoiceNumbers();
659
      return isSetInvoiceNumbers();
519
    case ITEM_ID:
660
    case ITEM_ID:
520
      return isSetItemId();
661
      return isSetItemId();
-
 
662
    case BRAND:
-
 
663
      return isSetBrand();
521
    case ITEM_NAME:
664
    case MODEL_NAME:
522
      return isSetItemName();
665
      return isSetModelName();
-
 
666
    case MODEL_NUMBER:
-
 
667
      return isSetModelNumber();
-
 
668
    case COLOR:
-
 
669
      return isSetColor();
523
    case UNIT_PRICE:
670
    case UNIT_PRICE:
524
      return isSetUnitPrice();
671
      return isSetUnitPrice();
525
    case QUANTITY:
672
    case QUANTITY:
526
      return isSetQuantity();
673
      return isSetQuantity();
527
    }
674
    }
Line 584... Line 731...
584
        return false;
731
        return false;
585
      if (this.itemId != that.itemId)
732
      if (this.itemId != that.itemId)
586
        return false;
733
        return false;
587
    }
734
    }
588
 
735
 
-
 
736
    boolean this_present_brand = true && this.isSetBrand();
-
 
737
    boolean that_present_brand = true && that.isSetBrand();
-
 
738
    if (this_present_brand || that_present_brand) {
-
 
739
      if (!(this_present_brand && that_present_brand))
-
 
740
        return false;
-
 
741
      if (!this.brand.equals(that.brand))
-
 
742
        return false;
-
 
743
    }
-
 
744
 
589
    boolean this_present_itemName = true && this.isSetItemName();
745
    boolean this_present_modelName = true && this.isSetModelName();
590
    boolean that_present_itemName = true && that.isSetItemName();
746
    boolean that_present_modelName = true && that.isSetModelName();
591
    if (this_present_itemName || that_present_itemName) {
747
    if (this_present_modelName || that_present_modelName) {
592
      if (!(this_present_itemName && that_present_itemName))
748
      if (!(this_present_modelName && that_present_modelName))
593
        return false;
749
        return false;
594
      if (!this.itemName.equals(that.itemName))
750
      if (!this.modelName.equals(that.modelName))
-
 
751
        return false;
-
 
752
    }
-
 
753
 
-
 
754
    boolean this_present_modelNumber = true && this.isSetModelNumber();
-
 
755
    boolean that_present_modelNumber = true && that.isSetModelNumber();
-
 
756
    if (this_present_modelNumber || that_present_modelNumber) {
-
 
757
      if (!(this_present_modelNumber && that_present_modelNumber))
-
 
758
        return false;
-
 
759
      if (!this.modelNumber.equals(that.modelNumber))
-
 
760
        return false;
-
 
761
    }
-
 
762
 
-
 
763
    boolean this_present_color = true && this.isSetColor();
-
 
764
    boolean that_present_color = true && that.isSetColor();
-
 
765
    if (this_present_color || that_present_color) {
-
 
766
      if (!(this_present_color && that_present_color))
-
 
767
        return false;
-
 
768
      if (!this.color.equals(that.color))
595
        return false;
769
        return false;
596
    }
770
    }
597
 
771
 
598
    boolean this_present_unitPrice = true;
772
    boolean this_present_unitPrice = true;
599
    boolean that_present_unitPrice = true;
773
    boolean that_present_unitPrice = true;
Line 677... Line 851...
677
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
851
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
678
      if (lastComparison != 0) {
852
      if (lastComparison != 0) {
679
        return lastComparison;
853
        return lastComparison;
680
      }
854
      }
681
    }
855
    }
-
 
856
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
-
 
857
    if (lastComparison != 0) {
-
 
858
      return lastComparison;
-
 
859
    }
-
 
860
    if (isSetBrand()) {
-
 
861
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
-
 
862
      if (lastComparison != 0) {
-
 
863
        return lastComparison;
-
 
864
      }
-
 
865
    }
682
    lastComparison = Boolean.valueOf(isSetItemName()).compareTo(typedOther.isSetItemName());
866
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
-
 
867
    if (lastComparison != 0) {
-
 
868
      return lastComparison;
-
 
869
    }
-
 
870
    if (isSetModelName()) {
-
 
871
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
-
 
872
      if (lastComparison != 0) {
-
 
873
        return lastComparison;
-
 
874
      }
-
 
875
    }
-
 
876
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
-
 
877
    if (lastComparison != 0) {
-
 
878
      return lastComparison;
-
 
879
    }
-
 
880
    if (isSetModelNumber()) {
-
 
881
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
-
 
882
      if (lastComparison != 0) {
-
 
883
        return lastComparison;
-
 
884
      }
-
 
885
    }
-
 
886
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
683
    if (lastComparison != 0) {
887
    if (lastComparison != 0) {
684
      return lastComparison;
888
      return lastComparison;
685
    }
889
    }
686
    if (isSetItemName()) {
890
    if (isSetColor()) {
687
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemName, typedOther.itemName);
891
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
688
      if (lastComparison != 0) {
892
      if (lastComparison != 0) {
689
        return lastComparison;
893
        return lastComparison;
690
      }
894
      }
691
    }
895
    }
692
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
896
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
Line 762... Line 966...
762
            setItemIdIsSet(true);
966
            setItemIdIsSet(true);
763
          } else { 
967
          } else { 
764
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
968
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
765
          }
969
          }
766
          break;
970
          break;
-
 
971
        case 6: // BRAND
-
 
972
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
973
            this.brand = iprot.readString();
-
 
974
          } else { 
-
 
975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
976
          }
-
 
977
          break;
767
        case 6: // ITEM_NAME
978
        case 7: // MODEL_NAME
-
 
979
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
980
            this.modelName = iprot.readString();
-
 
981
          } else { 
-
 
982
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
983
          }
-
 
984
          break;
-
 
985
        case 8: // MODEL_NUMBER
-
 
986
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
987
            this.modelNumber = iprot.readString();
-
 
988
          } else { 
-
 
989
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
990
          }
-
 
991
          break;
-
 
992
        case 9: // COLOR
768
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
993
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
769
            this.itemName = iprot.readString();
994
            this.color = iprot.readString();
770
          } else { 
995
          } else { 
771
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
996
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
772
          }
997
          }
773
          break;
998
          break;
774
        case 7: // UNIT_PRICE
999
        case 10: // UNIT_PRICE
775
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1000
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
776
            this.unitPrice = iprot.readDouble();
1001
            this.unitPrice = iprot.readDouble();
777
            setUnitPriceIsSet(true);
1002
            setUnitPriceIsSet(true);
778
          } else { 
1003
          } else { 
779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
780
          }
1005
          }
781
          break;
1006
          break;
782
        case 8: // QUANTITY
1007
        case 11: // QUANTITY
783
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1008
          if (field.type == org.apache.thrift.protocol.TType.I64) {
784
            this.quantity = iprot.readI64();
1009
            this.quantity = iprot.readI64();
785
            setQuantityIsSet(true);
1010
            setQuantityIsSet(true);
786
          } else { 
1011
          } else { 
787
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 817... Line 1042...
817
      oprot.writeFieldEnd();
1042
      oprot.writeFieldEnd();
818
    }
1043
    }
819
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1044
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
820
    oprot.writeI64(this.itemId);
1045
    oprot.writeI64(this.itemId);
821
    oprot.writeFieldEnd();
1046
    oprot.writeFieldEnd();
-
 
1047
    if (this.brand != null) {
-
 
1048
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
-
 
1049
      oprot.writeString(this.brand);
-
 
1050
      oprot.writeFieldEnd();
-
 
1051
    }
822
    if (this.itemName != null) {
1052
    if (this.modelName != null) {
823
      oprot.writeFieldBegin(ITEM_NAME_FIELD_DESC);
1053
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
824
      oprot.writeString(this.itemName);
1054
      oprot.writeString(this.modelName);
-
 
1055
      oprot.writeFieldEnd();
-
 
1056
    }
-
 
1057
    if (this.modelNumber != null) {
-
 
1058
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
-
 
1059
      oprot.writeString(this.modelNumber);
-
 
1060
      oprot.writeFieldEnd();
-
 
1061
    }
-
 
1062
    if (this.color != null) {
-
 
1063
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
-
 
1064
      oprot.writeString(this.color);
825
      oprot.writeFieldEnd();
1065
      oprot.writeFieldEnd();
826
    }
1066
    }
827
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1067
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
828
    oprot.writeDouble(this.unitPrice);
1068
    oprot.writeDouble(this.unitPrice);
829
    oprot.writeFieldEnd();
1069
    oprot.writeFieldEnd();
Line 865... Line 1105...
865
    if (!first) sb.append(", ");
1105
    if (!first) sb.append(", ");
866
    sb.append("itemId:");
1106
    sb.append("itemId:");
867
    sb.append(this.itemId);
1107
    sb.append(this.itemId);
868
    first = false;
1108
    first = false;
869
    if (!first) sb.append(", ");
1109
    if (!first) sb.append(", ");
-
 
1110
    sb.append("brand:");
-
 
1111
    if (this.brand == null) {
-
 
1112
      sb.append("null");
-
 
1113
    } else {
-
 
1114
      sb.append(this.brand);
-
 
1115
    }
-
 
1116
    first = false;
-
 
1117
    if (!first) sb.append(", ");
870
    sb.append("itemName:");
1118
    sb.append("modelName:");
871
    if (this.itemName == null) {
1119
    if (this.modelName == null) {
-
 
1120
      sb.append("null");
-
 
1121
    } else {
-
 
1122
      sb.append(this.modelName);
-
 
1123
    }
-
 
1124
    first = false;
-
 
1125
    if (!first) sb.append(", ");
-
 
1126
    sb.append("modelNumber:");
-
 
1127
    if (this.modelNumber == null) {
-
 
1128
      sb.append("null");
-
 
1129
    } else {
-
 
1130
      sb.append(this.modelNumber);
-
 
1131
    }
-
 
1132
    first = false;
-
 
1133
    if (!first) sb.append(", ");
-
 
1134
    sb.append("color:");
-
 
1135
    if (this.color == null) {
872
      sb.append("null");
1136
      sb.append("null");
873
    } else {
1137
    } else {
874
      sb.append(this.itemName);
1138
      sb.append(this.color);
875
    }
1139
    }
876
    first = false;
1140
    first = false;
877
    if (!first) sb.append(", ");
1141
    if (!first) sb.append(", ");
878
    sb.append("unitPrice:");
1142
    sb.append("unitPrice:");
879
    sb.append(this.unitPrice);
1143
    sb.append(this.unitPrice);