Subversion Repositories SmartDukaan

Rev

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

Rev 4496 Rev 4555
Line 28... Line 28...
28
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
29
  private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField INITIAL_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("initialQuantity", org.apache.thrift.protocol.TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField INITIAL_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("initialQuantity", org.apache.thrift.protocol.TType.I64, (short)5);
31
  private static final org.apache.thrift.protocol.TField CURRENT_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("currentQuantity", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField CURRENT_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("currentQuantity", org.apache.thrift.protocol.TType.I64, (short)6);
32
  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)7);
32
  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)7);
-
 
33
  private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)8);
-
 
34
  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)9);
33
 
35
 
34
  private long id; // required
36
  private long id; // required
35
  private long itemId; // required
37
  private long itemId; // required
36
  private String itemNumber; // required
38
  private String itemNumber; // required
37
  private String serialNumber; // required
39
  private String serialNumber; // required
38
  private long initialQuantity; // required
40
  private long initialQuantity; // required
39
  private long currentQuantity; // required
41
  private long currentQuantity; // required
40
  private long purchaseId; // required
42
  private long purchaseId; // required
-
 
43
  private long supplierId; // required
-
 
44
  private double unitPrice; // required
41
 
45
 
42
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44
    ID((short)1, "id"),
48
    ID((short)1, "id"),
45
    ITEM_ID((short)2, "itemId"),
49
    ITEM_ID((short)2, "itemId"),
46
    ITEM_NUMBER((short)3, "itemNumber"),
50
    ITEM_NUMBER((short)3, "itemNumber"),
47
    SERIAL_NUMBER((short)4, "serialNumber"),
51
    SERIAL_NUMBER((short)4, "serialNumber"),
48
    INITIAL_QUANTITY((short)5, "initialQuantity"),
52
    INITIAL_QUANTITY((short)5, "initialQuantity"),
49
    CURRENT_QUANTITY((short)6, "currentQuantity"),
53
    CURRENT_QUANTITY((short)6, "currentQuantity"),
50
    PURCHASE_ID((short)7, "purchaseId");
54
    PURCHASE_ID((short)7, "purchaseId"),
-
 
55
    SUPPLIER_ID((short)8, "supplierId"),
-
 
56
    UNIT_PRICE((short)9, "unitPrice");
51
 
57
 
52
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53
 
59
 
54
    static {
60
    static {
55
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
61
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 74... Line 80...
74
          return INITIAL_QUANTITY;
80
          return INITIAL_QUANTITY;
75
        case 6: // CURRENT_QUANTITY
81
        case 6: // CURRENT_QUANTITY
76
          return CURRENT_QUANTITY;
82
          return CURRENT_QUANTITY;
77
        case 7: // PURCHASE_ID
83
        case 7: // PURCHASE_ID
78
          return PURCHASE_ID;
84
          return PURCHASE_ID;
-
 
85
        case 8: // SUPPLIER_ID
-
 
86
          return SUPPLIER_ID;
-
 
87
        case 9: // UNIT_PRICE
-
 
88
          return UNIT_PRICE;
79
        default:
89
        default:
80
          return null;
90
          return null;
81
      }
91
      }
82
    }
92
    }
83
 
93
 
Line 119... Line 129...
119
  private static final int __ID_ISSET_ID = 0;
129
  private static final int __ID_ISSET_ID = 0;
120
  private static final int __ITEMID_ISSET_ID = 1;
130
  private static final int __ITEMID_ISSET_ID = 1;
121
  private static final int __INITIALQUANTITY_ISSET_ID = 2;
131
  private static final int __INITIALQUANTITY_ISSET_ID = 2;
122
  private static final int __CURRENTQUANTITY_ISSET_ID = 3;
132
  private static final int __CURRENTQUANTITY_ISSET_ID = 3;
123
  private static final int __PURCHASEID_ISSET_ID = 4;
133
  private static final int __PURCHASEID_ISSET_ID = 4;
-
 
134
  private static final int __SUPPLIERID_ISSET_ID = 5;
-
 
135
  private static final int __UNITPRICE_ISSET_ID = 6;
124
  private BitSet __isset_bit_vector = new BitSet(5);
136
  private BitSet __isset_bit_vector = new BitSet(7);
125
 
137
 
126
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
138
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
127
  static {
139
  static {
128
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
140
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
129
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
141
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 138... Line 150...
138
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
150
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
139
    tmpMap.put(_Fields.CURRENT_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("currentQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151
    tmpMap.put(_Fields.CURRENT_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("currentQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
140
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
141
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
142
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
155
    tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
157
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
143
    metaDataMap = Collections.unmodifiableMap(tmpMap);
159
    metaDataMap = Collections.unmodifiableMap(tmpMap);
144
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InventoryItem.class, metaDataMap);
160
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InventoryItem.class, metaDataMap);
145
  }
161
  }
146
 
162
 
147
  public InventoryItem() {
163
  public InventoryItem() {
Line 152... Line 168...
152
    long itemId,
168
    long itemId,
153
    String itemNumber,
169
    String itemNumber,
154
    String serialNumber,
170
    String serialNumber,
155
    long initialQuantity,
171
    long initialQuantity,
156
    long currentQuantity,
172
    long currentQuantity,
157
    long purchaseId)
173
    long purchaseId,
-
 
174
    long supplierId,
-
 
175
    double unitPrice)
158
  {
176
  {
159
    this();
177
    this();
160
    this.id = id;
178
    this.id = id;
161
    setIdIsSet(true);
179
    setIdIsSet(true);
162
    this.itemId = itemId;
180
    this.itemId = itemId;
Line 167... Line 185...
167
    setInitialQuantityIsSet(true);
185
    setInitialQuantityIsSet(true);
168
    this.currentQuantity = currentQuantity;
186
    this.currentQuantity = currentQuantity;
169
    setCurrentQuantityIsSet(true);
187
    setCurrentQuantityIsSet(true);
170
    this.purchaseId = purchaseId;
188
    this.purchaseId = purchaseId;
171
    setPurchaseIdIsSet(true);
189
    setPurchaseIdIsSet(true);
-
 
190
    this.supplierId = supplierId;
-
 
191
    setSupplierIdIsSet(true);
-
 
192
    this.unitPrice = unitPrice;
-
 
193
    setUnitPriceIsSet(true);
172
  }
194
  }
173
 
195
 
174
  /**
196
  /**
175
   * Performs a deep copy on <i>other</i>.
197
   * Performs a deep copy on <i>other</i>.
176
   */
198
   */
Line 186... Line 208...
186
      this.serialNumber = other.serialNumber;
208
      this.serialNumber = other.serialNumber;
187
    }
209
    }
188
    this.initialQuantity = other.initialQuantity;
210
    this.initialQuantity = other.initialQuantity;
189
    this.currentQuantity = other.currentQuantity;
211
    this.currentQuantity = other.currentQuantity;
190
    this.purchaseId = other.purchaseId;
212
    this.purchaseId = other.purchaseId;
-
 
213
    this.supplierId = other.supplierId;
-
 
214
    this.unitPrice = other.unitPrice;
191
  }
215
  }
192
 
216
 
193
  public InventoryItem deepCopy() {
217
  public InventoryItem deepCopy() {
194
    return new InventoryItem(this);
218
    return new InventoryItem(this);
195
  }
219
  }
Line 206... Line 230...
206
    this.initialQuantity = 0;
230
    this.initialQuantity = 0;
207
    setCurrentQuantityIsSet(false);
231
    setCurrentQuantityIsSet(false);
208
    this.currentQuantity = 0;
232
    this.currentQuantity = 0;
209
    setPurchaseIdIsSet(false);
233
    setPurchaseIdIsSet(false);
210
    this.purchaseId = 0;
234
    this.purchaseId = 0;
-
 
235
    setSupplierIdIsSet(false);
-
 
236
    this.supplierId = 0;
-
 
237
    setUnitPriceIsSet(false);
-
 
238
    this.unitPrice = 0.0;
211
  }
239
  }
212
 
240
 
213
  public long getId() {
241
  public long getId() {
214
    return this.id;
242
    return this.id;
215
  }
243
  }
Line 364... Line 392...
364
 
392
 
365
  public void setPurchaseIdIsSet(boolean value) {
393
  public void setPurchaseIdIsSet(boolean value) {
366
    __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
394
    __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
367
  }
395
  }
368
 
396
 
-
 
397
  public long getSupplierId() {
-
 
398
    return this.supplierId;
-
 
399
  }
-
 
400
 
-
 
401
  public void setSupplierId(long supplierId) {
-
 
402
    this.supplierId = supplierId;
-
 
403
    setSupplierIdIsSet(true);
-
 
404
  }
-
 
405
 
-
 
406
  public void unsetSupplierId() {
-
 
407
    __isset_bit_vector.clear(__SUPPLIERID_ISSET_ID);
-
 
408
  }
-
 
409
 
-
 
410
  /** Returns true if field supplierId is set (has been assigned a value) and false otherwise */
-
 
411
  public boolean isSetSupplierId() {
-
 
412
    return __isset_bit_vector.get(__SUPPLIERID_ISSET_ID);
-
 
413
  }
-
 
414
 
-
 
415
  public void setSupplierIdIsSet(boolean value) {
-
 
416
    __isset_bit_vector.set(__SUPPLIERID_ISSET_ID, value);
-
 
417
  }
-
 
418
 
-
 
419
  public double getUnitPrice() {
-
 
420
    return this.unitPrice;
-
 
421
  }
-
 
422
 
-
 
423
  public void setUnitPrice(double unitPrice) {
-
 
424
    this.unitPrice = unitPrice;
-
 
425
    setUnitPriceIsSet(true);
-
 
426
  }
-
 
427
 
-
 
428
  public void unsetUnitPrice() {
-
 
429
    __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
-
 
430
  }
-
 
431
 
-
 
432
  /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
-
 
433
  public boolean isSetUnitPrice() {
-
 
434
    return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
-
 
435
  }
-
 
436
 
-
 
437
  public void setUnitPriceIsSet(boolean value) {
-
 
438
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
-
 
439
  }
-
 
440
 
369
  public void setFieldValue(_Fields field, Object value) {
441
  public void setFieldValue(_Fields field, Object value) {
370
    switch (field) {
442
    switch (field) {
371
    case ID:
443
    case ID:
372
      if (value == null) {
444
      if (value == null) {
373
        unsetId();
445
        unsetId();
Line 422... Line 494...
422
      } else {
494
      } else {
423
        setPurchaseId((Long)value);
495
        setPurchaseId((Long)value);
424
      }
496
      }
425
      break;
497
      break;
426
 
498
 
-
 
499
    case SUPPLIER_ID:
-
 
500
      if (value == null) {
-
 
501
        unsetSupplierId();
-
 
502
      } else {
-
 
503
        setSupplierId((Long)value);
-
 
504
      }
-
 
505
      break;
-
 
506
 
-
 
507
    case UNIT_PRICE:
-
 
508
      if (value == null) {
-
 
509
        unsetUnitPrice();
-
 
510
      } else {
-
 
511
        setUnitPrice((Double)value);
-
 
512
      }
-
 
513
      break;
-
 
514
 
427
    }
515
    }
428
  }
516
  }
429
 
517
 
430
  public Object getFieldValue(_Fields field) {
518
  public Object getFieldValue(_Fields field) {
431
    switch (field) {
519
    switch (field) {
Line 448... Line 536...
448
      return Long.valueOf(getCurrentQuantity());
536
      return Long.valueOf(getCurrentQuantity());
449
 
537
 
450
    case PURCHASE_ID:
538
    case PURCHASE_ID:
451
      return Long.valueOf(getPurchaseId());
539
      return Long.valueOf(getPurchaseId());
452
 
540
 
-
 
541
    case SUPPLIER_ID:
-
 
542
      return Long.valueOf(getSupplierId());
-
 
543
 
-
 
544
    case UNIT_PRICE:
-
 
545
      return Double.valueOf(getUnitPrice());
-
 
546
 
453
    }
547
    }
454
    throw new IllegalStateException();
548
    throw new IllegalStateException();
455
  }
549
  }
456
 
550
 
457
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
551
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 473... Line 567...
473
      return isSetInitialQuantity();
567
      return isSetInitialQuantity();
474
    case CURRENT_QUANTITY:
568
    case CURRENT_QUANTITY:
475
      return isSetCurrentQuantity();
569
      return isSetCurrentQuantity();
476
    case PURCHASE_ID:
570
    case PURCHASE_ID:
477
      return isSetPurchaseId();
571
      return isSetPurchaseId();
-
 
572
    case SUPPLIER_ID:
-
 
573
      return isSetSupplierId();
-
 
574
    case UNIT_PRICE:
-
 
575
      return isSetUnitPrice();
478
    }
576
    }
479
    throw new IllegalStateException();
577
    throw new IllegalStateException();
480
  }
578
  }
481
 
579
 
482
  @Override
580
  @Override
Line 553... Line 651...
553
        return false;
651
        return false;
554
      if (this.purchaseId != that.purchaseId)
652
      if (this.purchaseId != that.purchaseId)
555
        return false;
653
        return false;
556
    }
654
    }
557
 
655
 
-
 
656
    boolean this_present_supplierId = true;
-
 
657
    boolean that_present_supplierId = true;
-
 
658
    if (this_present_supplierId || that_present_supplierId) {
-
 
659
      if (!(this_present_supplierId && that_present_supplierId))
-
 
660
        return false;
-
 
661
      if (this.supplierId != that.supplierId)
-
 
662
        return false;
-
 
663
    }
-
 
664
 
-
 
665
    boolean this_present_unitPrice = true;
-
 
666
    boolean that_present_unitPrice = true;
-
 
667
    if (this_present_unitPrice || that_present_unitPrice) {
-
 
668
      if (!(this_present_unitPrice && that_present_unitPrice))
-
 
669
        return false;
-
 
670
      if (this.unitPrice != that.unitPrice)
-
 
671
        return false;
-
 
672
    }
-
 
673
 
558
    return true;
674
    return true;
559
  }
675
  }
560
 
676
 
561
  @Override
677
  @Override
562
  public int hashCode() {
678
  public int hashCode() {
Line 639... Line 755...
639
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
755
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
640
      if (lastComparison != 0) {
756
      if (lastComparison != 0) {
641
        return lastComparison;
757
        return lastComparison;
642
      }
758
      }
643
    }
759
    }
-
 
760
    lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
-
 
761
    if (lastComparison != 0) {
-
 
762
      return lastComparison;
-
 
763
    }
-
 
764
    if (isSetSupplierId()) {
-
 
765
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierId, typedOther.supplierId);
-
 
766
      if (lastComparison != 0) {
-
 
767
        return lastComparison;
-
 
768
      }
-
 
769
    }
-
 
770
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
-
 
771
    if (lastComparison != 0) {
-
 
772
      return lastComparison;
-
 
773
    }
-
 
774
    if (isSetUnitPrice()) {
-
 
775
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
-
 
776
      if (lastComparison != 0) {
-
 
777
        return lastComparison;
-
 
778
      }
-
 
779
    }
644
    return 0;
780
    return 0;
645
  }
781
  }
646
 
782
 
647
  public _Fields fieldForId(int fieldId) {
783
  public _Fields fieldForId(int fieldId) {
648
    return _Fields.findByThriftId(fieldId);
784
    return _Fields.findByThriftId(fieldId);
Line 710... Line 846...
710
            setPurchaseIdIsSet(true);
846
            setPurchaseIdIsSet(true);
711
          } else { 
847
          } else { 
712
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
713
          }
849
          }
714
          break;
850
          break;
-
 
851
        case 8: // SUPPLIER_ID
-
 
852
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
853
            this.supplierId = iprot.readI64();
-
 
854
            setSupplierIdIsSet(true);
-
 
855
          } else { 
-
 
856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
857
          }
-
 
858
          break;
-
 
859
        case 9: // UNIT_PRICE
-
 
860
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
861
            this.unitPrice = iprot.readDouble();
-
 
862
            setUnitPriceIsSet(true);
-
 
863
          } else { 
-
 
864
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
865
          }
-
 
866
          break;
715
        default:
867
        default:
716
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
868
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
717
      }
869
      }
718
      iprot.readFieldEnd();
870
      iprot.readFieldEnd();
719
    }
871
    }
Line 748... Line 900...
748
    oprot.writeI64(this.currentQuantity);
900
    oprot.writeI64(this.currentQuantity);
749
    oprot.writeFieldEnd();
901
    oprot.writeFieldEnd();
750
    oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
902
    oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
751
    oprot.writeI64(this.purchaseId);
903
    oprot.writeI64(this.purchaseId);
752
    oprot.writeFieldEnd();
904
    oprot.writeFieldEnd();
-
 
905
    oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
-
 
906
    oprot.writeI64(this.supplierId);
-
 
907
    oprot.writeFieldEnd();
-
 
908
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
-
 
909
    oprot.writeDouble(this.unitPrice);
-
 
910
    oprot.writeFieldEnd();
753
    oprot.writeFieldStop();
911
    oprot.writeFieldStop();
754
    oprot.writeStructEnd();
912
    oprot.writeStructEnd();
755
  }
913
  }
756
 
914
 
757
  @Override
915
  @Override
Line 792... Line 950...
792
    first = false;
950
    first = false;
793
    if (!first) sb.append(", ");
951
    if (!first) sb.append(", ");
794
    sb.append("purchaseId:");
952
    sb.append("purchaseId:");
795
    sb.append(this.purchaseId);
953
    sb.append(this.purchaseId);
796
    first = false;
954
    first = false;
-
 
955
    if (!first) sb.append(", ");
-
 
956
    sb.append("supplierId:");
-
 
957
    sb.append(this.supplierId);
-
 
958
    first = false;
-
 
959
    if (!first) sb.append(", ");
-
 
960
    sb.append("unitPrice:");
-
 
961
    sb.append(this.unitPrice);
-
 
962
    first = false;
797
    sb.append(")");
963
    sb.append(")");
798
    return sb.toString();
964
    return sb.toString();
799
  }
965
  }
800
 
966
 
801
  public void validate() throws org.apache.thrift.TException {
967
  public void validate() throws org.apache.thrift.TException {