Subversion Repositories SmartDukaan

Rev

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

Rev 5185 Rev 6467
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 PURCHASE_RETURN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturnId", org.apache.thrift.protocol.TType.I64, (short)8);
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 SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)9);
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);
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);
35
  private static final org.apache.thrift.protocol.TField CURRENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("currentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)10);
36
  private static final org.apache.thrift.protocol.TField CURRENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("currentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)11);
36
  private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)11);
37
  private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)12);
37
 
38
 
38
  private long id; // required
39
  private long id; // required
39
  private long itemId; // required
40
  private long itemId; // required
40
  private String itemNumber; // required
41
  private String itemNumber; // required
41
  private String serialNumber; // required
42
  private String serialNumber; // required
42
  private long initialQuantity; // required
43
  private long initialQuantity; // required
43
  private long currentQuantity; // required
44
  private long currentQuantity; // required
44
  private long purchaseId; // required
45
  private long purchaseId; // required
-
 
46
  private long purchaseReturnId; // required
45
  private long supplierId; // required
47
  private long supplierId; // required
46
  private double unitPrice; // required
48
  private double unitPrice; // required
47
  private long currentWarehouseId; // required
49
  private long currentWarehouseId; // required
48
  private ScanType lastScanType; // required
50
  private ScanType lastScanType; // required
49
 
51
 
Line 54... Line 56...
54
    ITEM_NUMBER((short)3, "itemNumber"),
56
    ITEM_NUMBER((short)3, "itemNumber"),
55
    SERIAL_NUMBER((short)4, "serialNumber"),
57
    SERIAL_NUMBER((short)4, "serialNumber"),
56
    INITIAL_QUANTITY((short)5, "initialQuantity"),
58
    INITIAL_QUANTITY((short)5, "initialQuantity"),
57
    CURRENT_QUANTITY((short)6, "currentQuantity"),
59
    CURRENT_QUANTITY((short)6, "currentQuantity"),
58
    PURCHASE_ID((short)7, "purchaseId"),
60
    PURCHASE_ID((short)7, "purchaseId"),
-
 
61
    PURCHASE_RETURN_ID((short)8, "purchaseReturnId"),
59
    SUPPLIER_ID((short)8, "supplierId"),
62
    SUPPLIER_ID((short)9, "supplierId"),
60
    UNIT_PRICE((short)9, "unitPrice"),
63
    UNIT_PRICE((short)10, "unitPrice"),
61
    CURRENT_WAREHOUSE_ID((short)10, "currentWarehouseId"),
64
    CURRENT_WAREHOUSE_ID((short)11, "currentWarehouseId"),
62
    /**
65
    /**
63
     * 
66
     * 
64
     * @see ScanType
67
     * @see ScanType
65
     */
68
     */
66
    LAST_SCAN_TYPE((short)11, "lastScanType");
69
    LAST_SCAN_TYPE((short)12, "lastScanType");
67
 
70
 
68
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
71
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
69
 
72
 
70
    static {
73
    static {
71
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
74
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 90... Line 93...
90
          return INITIAL_QUANTITY;
93
          return INITIAL_QUANTITY;
91
        case 6: // CURRENT_QUANTITY
94
        case 6: // CURRENT_QUANTITY
92
          return CURRENT_QUANTITY;
95
          return CURRENT_QUANTITY;
93
        case 7: // PURCHASE_ID
96
        case 7: // PURCHASE_ID
94
          return PURCHASE_ID;
97
          return PURCHASE_ID;
-
 
98
        case 8: // PURCHASE_RETURN_ID
-
 
99
          return PURCHASE_RETURN_ID;
95
        case 8: // SUPPLIER_ID
100
        case 9: // SUPPLIER_ID
96
          return SUPPLIER_ID;
101
          return SUPPLIER_ID;
97
        case 9: // UNIT_PRICE
102
        case 10: // UNIT_PRICE
98
          return UNIT_PRICE;
103
          return UNIT_PRICE;
99
        case 10: // CURRENT_WAREHOUSE_ID
104
        case 11: // CURRENT_WAREHOUSE_ID
100
          return CURRENT_WAREHOUSE_ID;
105
          return CURRENT_WAREHOUSE_ID;
101
        case 11: // LAST_SCAN_TYPE
106
        case 12: // LAST_SCAN_TYPE
102
          return LAST_SCAN_TYPE;
107
          return LAST_SCAN_TYPE;
103
        default:
108
        default:
104
          return null;
109
          return null;
105
      }
110
      }
106
    }
111
    }
Line 143... Line 148...
143
  private static final int __ID_ISSET_ID = 0;
148
  private static final int __ID_ISSET_ID = 0;
144
  private static final int __ITEMID_ISSET_ID = 1;
149
  private static final int __ITEMID_ISSET_ID = 1;
145
  private static final int __INITIALQUANTITY_ISSET_ID = 2;
150
  private static final int __INITIALQUANTITY_ISSET_ID = 2;
146
  private static final int __CURRENTQUANTITY_ISSET_ID = 3;
151
  private static final int __CURRENTQUANTITY_ISSET_ID = 3;
147
  private static final int __PURCHASEID_ISSET_ID = 4;
152
  private static final int __PURCHASEID_ISSET_ID = 4;
-
 
153
  private static final int __PURCHASERETURNID_ISSET_ID = 5;
148
  private static final int __SUPPLIERID_ISSET_ID = 5;
154
  private static final int __SUPPLIERID_ISSET_ID = 6;
149
  private static final int __UNITPRICE_ISSET_ID = 6;
155
  private static final int __UNITPRICE_ISSET_ID = 7;
150
  private static final int __CURRENTWAREHOUSEID_ISSET_ID = 7;
156
  private static final int __CURRENTWAREHOUSEID_ISSET_ID = 8;
151
  private BitSet __isset_bit_vector = new BitSet(8);
157
  private BitSet __isset_bit_vector = new BitSet(9);
152
 
158
 
153
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
159
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
154
  static {
160
  static {
155
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
161
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
156
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 165... Line 171...
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
166
    tmpMap.put(_Fields.CURRENT_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("currentQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
    tmpMap.put(_Fields.CURRENT_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("currentQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
168
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
176
    tmpMap.put(_Fields.PURCHASE_RETURN_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
170
    tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
178
    tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
172
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
180
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
174
    tmpMap.put(_Fields.CURRENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("currentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
182
    tmpMap.put(_Fields.CURRENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("currentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 188... Line 196...
188
    String itemNumber,
196
    String itemNumber,
189
    String serialNumber,
197
    String serialNumber,
190
    long initialQuantity,
198
    long initialQuantity,
191
    long currentQuantity,
199
    long currentQuantity,
192
    long purchaseId,
200
    long purchaseId,
-
 
201
    long purchaseReturnId,
193
    long supplierId,
202
    long supplierId,
194
    double unitPrice,
203
    double unitPrice,
195
    long currentWarehouseId,
204
    long currentWarehouseId,
196
    ScanType lastScanType)
205
    ScanType lastScanType)
197
  {
206
  {
Line 206... Line 215...
206
    setInitialQuantityIsSet(true);
215
    setInitialQuantityIsSet(true);
207
    this.currentQuantity = currentQuantity;
216
    this.currentQuantity = currentQuantity;
208
    setCurrentQuantityIsSet(true);
217
    setCurrentQuantityIsSet(true);
209
    this.purchaseId = purchaseId;
218
    this.purchaseId = purchaseId;
210
    setPurchaseIdIsSet(true);
219
    setPurchaseIdIsSet(true);
-
 
220
    this.purchaseReturnId = purchaseReturnId;
-
 
221
    setPurchaseReturnIdIsSet(true);
211
    this.supplierId = supplierId;
222
    this.supplierId = supplierId;
212
    setSupplierIdIsSet(true);
223
    setSupplierIdIsSet(true);
213
    this.unitPrice = unitPrice;
224
    this.unitPrice = unitPrice;
214
    setUnitPriceIsSet(true);
225
    setUnitPriceIsSet(true);
215
    this.currentWarehouseId = currentWarehouseId;
226
    this.currentWarehouseId = currentWarehouseId;
Line 232... Line 243...
232
      this.serialNumber = other.serialNumber;
243
      this.serialNumber = other.serialNumber;
233
    }
244
    }
234
    this.initialQuantity = other.initialQuantity;
245
    this.initialQuantity = other.initialQuantity;
235
    this.currentQuantity = other.currentQuantity;
246
    this.currentQuantity = other.currentQuantity;
236
    this.purchaseId = other.purchaseId;
247
    this.purchaseId = other.purchaseId;
-
 
248
    this.purchaseReturnId = other.purchaseReturnId;
237
    this.supplierId = other.supplierId;
249
    this.supplierId = other.supplierId;
238
    this.unitPrice = other.unitPrice;
250
    this.unitPrice = other.unitPrice;
239
    this.currentWarehouseId = other.currentWarehouseId;
251
    this.currentWarehouseId = other.currentWarehouseId;
240
    if (other.isSetLastScanType()) {
252
    if (other.isSetLastScanType()) {
241
      this.lastScanType = other.lastScanType;
253
      this.lastScanType = other.lastScanType;
Line 258... Line 270...
258
    this.initialQuantity = 0;
270
    this.initialQuantity = 0;
259
    setCurrentQuantityIsSet(false);
271
    setCurrentQuantityIsSet(false);
260
    this.currentQuantity = 0;
272
    this.currentQuantity = 0;
261
    setPurchaseIdIsSet(false);
273
    setPurchaseIdIsSet(false);
262
    this.purchaseId = 0;
274
    this.purchaseId = 0;
-
 
275
    setPurchaseReturnIdIsSet(false);
-
 
276
    this.purchaseReturnId = 0;
263
    setSupplierIdIsSet(false);
277
    setSupplierIdIsSet(false);
264
    this.supplierId = 0;
278
    this.supplierId = 0;
265
    setUnitPriceIsSet(false);
279
    setUnitPriceIsSet(false);
266
    this.unitPrice = 0.0;
280
    this.unitPrice = 0.0;
267
    setCurrentWarehouseIdIsSet(false);
281
    setCurrentWarehouseIdIsSet(false);
Line 423... Line 437...
423
 
437
 
424
  public void setPurchaseIdIsSet(boolean value) {
438
  public void setPurchaseIdIsSet(boolean value) {
425
    __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
439
    __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
426
  }
440
  }
427
 
441
 
-
 
442
  public long getPurchaseReturnId() {
-
 
443
    return this.purchaseReturnId;
-
 
444
  }
-
 
445
 
-
 
446
  public void setPurchaseReturnId(long purchaseReturnId) {
-
 
447
    this.purchaseReturnId = purchaseReturnId;
-
 
448
    setPurchaseReturnIdIsSet(true);
-
 
449
  }
-
 
450
 
-
 
451
  public void unsetPurchaseReturnId() {
-
 
452
    __isset_bit_vector.clear(__PURCHASERETURNID_ISSET_ID);
-
 
453
  }
-
 
454
 
-
 
455
  /** Returns true if field purchaseReturnId is set (has been assigned a value) and false otherwise */
-
 
456
  public boolean isSetPurchaseReturnId() {
-
 
457
    return __isset_bit_vector.get(__PURCHASERETURNID_ISSET_ID);
-
 
458
  }
-
 
459
 
-
 
460
  public void setPurchaseReturnIdIsSet(boolean value) {
-
 
461
    __isset_bit_vector.set(__PURCHASERETURNID_ISSET_ID, value);
-
 
462
  }
-
 
463
 
428
  public long getSupplierId() {
464
  public long getSupplierId() {
429
    return this.supplierId;
465
    return this.supplierId;
430
  }
466
  }
431
 
467
 
432
  public void setSupplierId(long supplierId) {
468
  public void setSupplierId(long supplierId) {
Line 578... Line 614...
578
      } else {
614
      } else {
579
        setPurchaseId((Long)value);
615
        setPurchaseId((Long)value);
580
      }
616
      }
581
      break;
617
      break;
582
 
618
 
-
 
619
    case PURCHASE_RETURN_ID:
-
 
620
      if (value == null) {
-
 
621
        unsetPurchaseReturnId();
-
 
622
      } else {
-
 
623
        setPurchaseReturnId((Long)value);
-
 
624
      }
-
 
625
      break;
-
 
626
 
583
    case SUPPLIER_ID:
627
    case SUPPLIER_ID:
584
      if (value == null) {
628
      if (value == null) {
585
        unsetSupplierId();
629
        unsetSupplierId();
586
      } else {
630
      } else {
587
        setSupplierId((Long)value);
631
        setSupplierId((Long)value);
Line 636... Line 680...
636
      return Long.valueOf(getCurrentQuantity());
680
      return Long.valueOf(getCurrentQuantity());
637
 
681
 
638
    case PURCHASE_ID:
682
    case PURCHASE_ID:
639
      return Long.valueOf(getPurchaseId());
683
      return Long.valueOf(getPurchaseId());
640
 
684
 
-
 
685
    case PURCHASE_RETURN_ID:
-
 
686
      return Long.valueOf(getPurchaseReturnId());
-
 
687
 
641
    case SUPPLIER_ID:
688
    case SUPPLIER_ID:
642
      return Long.valueOf(getSupplierId());
689
      return Long.valueOf(getSupplierId());
643
 
690
 
644
    case UNIT_PRICE:
691
    case UNIT_PRICE:
645
      return Double.valueOf(getUnitPrice());
692
      return Double.valueOf(getUnitPrice());
Line 673... Line 720...
673
      return isSetInitialQuantity();
720
      return isSetInitialQuantity();
674
    case CURRENT_QUANTITY:
721
    case CURRENT_QUANTITY:
675
      return isSetCurrentQuantity();
722
      return isSetCurrentQuantity();
676
    case PURCHASE_ID:
723
    case PURCHASE_ID:
677
      return isSetPurchaseId();
724
      return isSetPurchaseId();
-
 
725
    case PURCHASE_RETURN_ID:
-
 
726
      return isSetPurchaseReturnId();
678
    case SUPPLIER_ID:
727
    case SUPPLIER_ID:
679
      return isSetSupplierId();
728
      return isSetSupplierId();
680
    case UNIT_PRICE:
729
    case UNIT_PRICE:
681
      return isSetUnitPrice();
730
      return isSetUnitPrice();
682
    case CURRENT_WAREHOUSE_ID:
731
    case CURRENT_WAREHOUSE_ID:
Line 761... Line 810...
761
        return false;
810
        return false;
762
      if (this.purchaseId != that.purchaseId)
811
      if (this.purchaseId != that.purchaseId)
763
        return false;
812
        return false;
764
    }
813
    }
765
 
814
 
-
 
815
    boolean this_present_purchaseReturnId = true;
-
 
816
    boolean that_present_purchaseReturnId = true;
-
 
817
    if (this_present_purchaseReturnId || that_present_purchaseReturnId) {
-
 
818
      if (!(this_present_purchaseReturnId && that_present_purchaseReturnId))
-
 
819
        return false;
-
 
820
      if (this.purchaseReturnId != that.purchaseReturnId)
-
 
821
        return false;
-
 
822
    }
-
 
823
 
766
    boolean this_present_supplierId = true;
824
    boolean this_present_supplierId = true;
767
    boolean that_present_supplierId = true;
825
    boolean that_present_supplierId = true;
768
    if (this_present_supplierId || that_present_supplierId) {
826
    if (this_present_supplierId || that_present_supplierId) {
769
      if (!(this_present_supplierId && that_present_supplierId))
827
      if (!(this_present_supplierId && that_present_supplierId))
770
        return false;
828
        return false;
Line 883... Line 941...
883
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
941
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
884
      if (lastComparison != 0) {
942
      if (lastComparison != 0) {
885
        return lastComparison;
943
        return lastComparison;
886
      }
944
      }
887
    }
945
    }
-
 
946
    lastComparison = Boolean.valueOf(isSetPurchaseReturnId()).compareTo(typedOther.isSetPurchaseReturnId());
-
 
947
    if (lastComparison != 0) {
-
 
948
      return lastComparison;
-
 
949
    }
-
 
950
    if (isSetPurchaseReturnId()) {
-
 
951
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturnId, typedOther.purchaseReturnId);
-
 
952
      if (lastComparison != 0) {
-
 
953
        return lastComparison;
-
 
954
      }
-
 
955
    }
888
    lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
956
    lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
889
    if (lastComparison != 0) {
957
    if (lastComparison != 0) {
890
      return lastComparison;
958
      return lastComparison;
891
    }
959
    }
892
    if (isSetSupplierId()) {
960
    if (isSetSupplierId()) {
Line 994... Line 1062...
994
            setPurchaseIdIsSet(true);
1062
            setPurchaseIdIsSet(true);
995
          } else { 
1063
          } else { 
996
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1064
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
997
          }
1065
          }
998
          break;
1066
          break;
-
 
1067
        case 8: // PURCHASE_RETURN_ID
-
 
1068
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1069
            this.purchaseReturnId = iprot.readI64();
-
 
1070
            setPurchaseReturnIdIsSet(true);
-
 
1071
          } else { 
-
 
1072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1073
          }
-
 
1074
          break;
999
        case 8: // SUPPLIER_ID
1075
        case 9: // SUPPLIER_ID
1000
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1076
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1001
            this.supplierId = iprot.readI64();
1077
            this.supplierId = iprot.readI64();
1002
            setSupplierIdIsSet(true);
1078
            setSupplierIdIsSet(true);
1003
          } else { 
1079
          } else { 
1004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1005
          }
1081
          }
1006
          break;
1082
          break;
1007
        case 9: // UNIT_PRICE
1083
        case 10: // UNIT_PRICE
1008
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1084
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1009
            this.unitPrice = iprot.readDouble();
1085
            this.unitPrice = iprot.readDouble();
1010
            setUnitPriceIsSet(true);
1086
            setUnitPriceIsSet(true);
1011
          } else { 
1087
          } else { 
1012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1013
          }
1089
          }
1014
          break;
1090
          break;
1015
        case 10: // CURRENT_WAREHOUSE_ID
1091
        case 11: // CURRENT_WAREHOUSE_ID
1016
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1092
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1017
            this.currentWarehouseId = iprot.readI64();
1093
            this.currentWarehouseId = iprot.readI64();
1018
            setCurrentWarehouseIdIsSet(true);
1094
            setCurrentWarehouseIdIsSet(true);
1019
          } else { 
1095
          } else { 
1020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1021
          }
1097
          }
1022
          break;
1098
          break;
1023
        case 11: // LAST_SCAN_TYPE
1099
        case 12: // LAST_SCAN_TYPE
1024
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1100
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1025
            this.lastScanType = ScanType.findByValue(iprot.readI32());
1101
            this.lastScanType = ScanType.findByValue(iprot.readI32());
1026
          } else { 
1102
          } else { 
1027
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1028
          }
1104
          }
Line 1063... Line 1139...
1063
    oprot.writeI64(this.currentQuantity);
1139
    oprot.writeI64(this.currentQuantity);
1064
    oprot.writeFieldEnd();
1140
    oprot.writeFieldEnd();
1065
    oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
1141
    oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
1066
    oprot.writeI64(this.purchaseId);
1142
    oprot.writeI64(this.purchaseId);
1067
    oprot.writeFieldEnd();
1143
    oprot.writeFieldEnd();
-
 
1144
    oprot.writeFieldBegin(PURCHASE_RETURN_ID_FIELD_DESC);
-
 
1145
    oprot.writeI64(this.purchaseReturnId);
-
 
1146
    oprot.writeFieldEnd();
1068
    oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
1147
    oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
1069
    oprot.writeI64(this.supplierId);
1148
    oprot.writeI64(this.supplierId);
1070
    oprot.writeFieldEnd();
1149
    oprot.writeFieldEnd();
1071
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1150
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1072
    oprot.writeDouble(this.unitPrice);
1151
    oprot.writeDouble(this.unitPrice);
Line 1122... Line 1201...
1122
    if (!first) sb.append(", ");
1201
    if (!first) sb.append(", ");
1123
    sb.append("purchaseId:");
1202
    sb.append("purchaseId:");
1124
    sb.append(this.purchaseId);
1203
    sb.append(this.purchaseId);
1125
    first = false;
1204
    first = false;
1126
    if (!first) sb.append(", ");
1205
    if (!first) sb.append(", ");
-
 
1206
    sb.append("purchaseReturnId:");
-
 
1207
    sb.append(this.purchaseReturnId);
-
 
1208
    first = false;
-
 
1209
    if (!first) sb.append(", ");
1127
    sb.append("supplierId:");
1210
    sb.append("supplierId:");
1128
    sb.append(this.supplierId);
1211
    sb.append(this.supplierId);
1129
    first = false;
1212
    first = false;
1130
    if (!first) sb.append(", ");
1213
    if (!first) sb.append(", ");
1131
    sb.append("unitPrice:");
1214
    sb.append("unitPrice:");