Subversion Repositories SmartDukaan

Rev

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

Rev 4555 Rev 5185
Line 30... Line 30...
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);
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);
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 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 LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)11);
35
 
37
 
36
  private long id; // required
38
  private long id; // required
37
  private long itemId; // required
39
  private long itemId; // required
38
  private String itemNumber; // required
40
  private String itemNumber; // required
39
  private String serialNumber; // required
41
  private String serialNumber; // required
40
  private long initialQuantity; // required
42
  private long initialQuantity; // required
41
  private long currentQuantity; // required
43
  private long currentQuantity; // required
42
  private long purchaseId; // required
44
  private long purchaseId; // required
43
  private long supplierId; // required
45
  private long supplierId; // required
44
  private double unitPrice; // required
46
  private double unitPrice; // required
-
 
47
  private long currentWarehouseId; // required
-
 
48
  private ScanType lastScanType; // required
45
 
49
 
46
  /** 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. */
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48
    ID((short)1, "id"),
52
    ID((short)1, "id"),
49
    ITEM_ID((short)2, "itemId"),
53
    ITEM_ID((short)2, "itemId"),
Line 51... Line 55...
51
    SERIAL_NUMBER((short)4, "serialNumber"),
55
    SERIAL_NUMBER((short)4, "serialNumber"),
52
    INITIAL_QUANTITY((short)5, "initialQuantity"),
56
    INITIAL_QUANTITY((short)5, "initialQuantity"),
53
    CURRENT_QUANTITY((short)6, "currentQuantity"),
57
    CURRENT_QUANTITY((short)6, "currentQuantity"),
54
    PURCHASE_ID((short)7, "purchaseId"),
58
    PURCHASE_ID((short)7, "purchaseId"),
55
    SUPPLIER_ID((short)8, "supplierId"),
59
    SUPPLIER_ID((short)8, "supplierId"),
56
    UNIT_PRICE((short)9, "unitPrice");
60
    UNIT_PRICE((short)9, "unitPrice"),
-
 
61
    CURRENT_WAREHOUSE_ID((short)10, "currentWarehouseId"),
-
 
62
    /**
-
 
63
     * 
-
 
64
     * @see ScanType
-
 
65
     */
-
 
66
    LAST_SCAN_TYPE((short)11, "lastScanType");
57
 
67
 
58
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
68
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59
 
69
 
60
    static {
70
    static {
61
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
71
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 84... Line 94...
84
          return PURCHASE_ID;
94
          return PURCHASE_ID;
85
        case 8: // SUPPLIER_ID
95
        case 8: // SUPPLIER_ID
86
          return SUPPLIER_ID;
96
          return SUPPLIER_ID;
87
        case 9: // UNIT_PRICE
97
        case 9: // UNIT_PRICE
88
          return UNIT_PRICE;
98
          return UNIT_PRICE;
-
 
99
        case 10: // CURRENT_WAREHOUSE_ID
-
 
100
          return CURRENT_WAREHOUSE_ID;
-
 
101
        case 11: // LAST_SCAN_TYPE
-
 
102
          return LAST_SCAN_TYPE;
89
        default:
103
        default:
90
          return null;
104
          return null;
91
      }
105
      }
92
    }
106
    }
93
 
107
 
Line 131... Line 145...
131
  private static final int __INITIALQUANTITY_ISSET_ID = 2;
145
  private static final int __INITIALQUANTITY_ISSET_ID = 2;
132
  private static final int __CURRENTQUANTITY_ISSET_ID = 3;
146
  private static final int __CURRENTQUANTITY_ISSET_ID = 3;
133
  private static final int __PURCHASEID_ISSET_ID = 4;
147
  private static final int __PURCHASEID_ISSET_ID = 4;
134
  private static final int __SUPPLIERID_ISSET_ID = 5;
148
  private static final int __SUPPLIERID_ISSET_ID = 5;
135
  private static final int __UNITPRICE_ISSET_ID = 6;
149
  private static final int __UNITPRICE_ISSET_ID = 6;
-
 
150
  private static final int __CURRENTWAREHOUSEID_ISSET_ID = 7;
136
  private BitSet __isset_bit_vector = new BitSet(7);
151
  private BitSet __isset_bit_vector = new BitSet(8);
137
 
152
 
138
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
153
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
139
  static {
154
  static {
140
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
155
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
141
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 154... Line 169...
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
169
        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, 
170
    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)));
171
        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, 
172
    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)));
173
        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, 
-
 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
176
    tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
177
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
159
    metaDataMap = Collections.unmodifiableMap(tmpMap);
178
    metaDataMap = Collections.unmodifiableMap(tmpMap);
160
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InventoryItem.class, metaDataMap);
179
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InventoryItem.class, metaDataMap);
161
  }
180
  }
162
 
181
 
163
  public InventoryItem() {
182
  public InventoryItem() {
Line 170... Line 189...
170
    String serialNumber,
189
    String serialNumber,
171
    long initialQuantity,
190
    long initialQuantity,
172
    long currentQuantity,
191
    long currentQuantity,
173
    long purchaseId,
192
    long purchaseId,
174
    long supplierId,
193
    long supplierId,
175
    double unitPrice)
194
    double unitPrice,
-
 
195
    long currentWarehouseId,
-
 
196
    ScanType lastScanType)
176
  {
197
  {
177
    this();
198
    this();
178
    this.id = id;
199
    this.id = id;
179
    setIdIsSet(true);
200
    setIdIsSet(true);
180
    this.itemId = itemId;
201
    this.itemId = itemId;
Line 189... Line 210...
189
    setPurchaseIdIsSet(true);
210
    setPurchaseIdIsSet(true);
190
    this.supplierId = supplierId;
211
    this.supplierId = supplierId;
191
    setSupplierIdIsSet(true);
212
    setSupplierIdIsSet(true);
192
    this.unitPrice = unitPrice;
213
    this.unitPrice = unitPrice;
193
    setUnitPriceIsSet(true);
214
    setUnitPriceIsSet(true);
-
 
215
    this.currentWarehouseId = currentWarehouseId;
-
 
216
    setCurrentWarehouseIdIsSet(true);
-
 
217
    this.lastScanType = lastScanType;
194
  }
218
  }
195
 
219
 
196
  /**
220
  /**
197
   * Performs a deep copy on <i>other</i>.
221
   * Performs a deep copy on <i>other</i>.
198
   */
222
   */
Line 210... Line 234...
210
    this.initialQuantity = other.initialQuantity;
234
    this.initialQuantity = other.initialQuantity;
211
    this.currentQuantity = other.currentQuantity;
235
    this.currentQuantity = other.currentQuantity;
212
    this.purchaseId = other.purchaseId;
236
    this.purchaseId = other.purchaseId;
213
    this.supplierId = other.supplierId;
237
    this.supplierId = other.supplierId;
214
    this.unitPrice = other.unitPrice;
238
    this.unitPrice = other.unitPrice;
-
 
239
    this.currentWarehouseId = other.currentWarehouseId;
-
 
240
    if (other.isSetLastScanType()) {
-
 
241
      this.lastScanType = other.lastScanType;
-
 
242
    }
215
  }
243
  }
216
 
244
 
217
  public InventoryItem deepCopy() {
245
  public InventoryItem deepCopy() {
218
    return new InventoryItem(this);
246
    return new InventoryItem(this);
219
  }
247
  }
Line 234... Line 262...
234
    this.purchaseId = 0;
262
    this.purchaseId = 0;
235
    setSupplierIdIsSet(false);
263
    setSupplierIdIsSet(false);
236
    this.supplierId = 0;
264
    this.supplierId = 0;
237
    setUnitPriceIsSet(false);
265
    setUnitPriceIsSet(false);
238
    this.unitPrice = 0.0;
266
    this.unitPrice = 0.0;
-
 
267
    setCurrentWarehouseIdIsSet(false);
-
 
268
    this.currentWarehouseId = 0;
-
 
269
    this.lastScanType = null;
239
  }
270
  }
240
 
271
 
241
  public long getId() {
272
  public long getId() {
242
    return this.id;
273
    return this.id;
243
  }
274
  }
Line 436... Line 467...
436
 
467
 
437
  public void setUnitPriceIsSet(boolean value) {
468
  public void setUnitPriceIsSet(boolean value) {
438
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
469
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
439
  }
470
  }
440
 
471
 
-
 
472
  public long getCurrentWarehouseId() {
-
 
473
    return this.currentWarehouseId;
-
 
474
  }
-
 
475
 
-
 
476
  public void setCurrentWarehouseId(long currentWarehouseId) {
-
 
477
    this.currentWarehouseId = currentWarehouseId;
-
 
478
    setCurrentWarehouseIdIsSet(true);
-
 
479
  }
-
 
480
 
-
 
481
  public void unsetCurrentWarehouseId() {
-
 
482
    __isset_bit_vector.clear(__CURRENTWAREHOUSEID_ISSET_ID);
-
 
483
  }
-
 
484
 
-
 
485
  /** Returns true if field currentWarehouseId is set (has been assigned a value) and false otherwise */
-
 
486
  public boolean isSetCurrentWarehouseId() {
-
 
487
    return __isset_bit_vector.get(__CURRENTWAREHOUSEID_ISSET_ID);
-
 
488
  }
-
 
489
 
-
 
490
  public void setCurrentWarehouseIdIsSet(boolean value) {
-
 
491
    __isset_bit_vector.set(__CURRENTWAREHOUSEID_ISSET_ID, value);
-
 
492
  }
-
 
493
 
-
 
494
  /**
-
 
495
   * 
-
 
496
   * @see ScanType
-
 
497
   */
-
 
498
  public ScanType getLastScanType() {
-
 
499
    return this.lastScanType;
-
 
500
  }
-
 
501
 
-
 
502
  /**
-
 
503
   * 
-
 
504
   * @see ScanType
-
 
505
   */
-
 
506
  public void setLastScanType(ScanType lastScanType) {
-
 
507
    this.lastScanType = lastScanType;
-
 
508
  }
-
 
509
 
-
 
510
  public void unsetLastScanType() {
-
 
511
    this.lastScanType = null;
-
 
512
  }
-
 
513
 
-
 
514
  /** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
-
 
515
  public boolean isSetLastScanType() {
-
 
516
    return this.lastScanType != null;
-
 
517
  }
-
 
518
 
-
 
519
  public void setLastScanTypeIsSet(boolean value) {
-
 
520
    if (!value) {
-
 
521
      this.lastScanType = null;
-
 
522
    }
-
 
523
  }
-
 
524
 
441
  public void setFieldValue(_Fields field, Object value) {
525
  public void setFieldValue(_Fields field, Object value) {
442
    switch (field) {
526
    switch (field) {
443
    case ID:
527
    case ID:
444
      if (value == null) {
528
      if (value == null) {
445
        unsetId();
529
        unsetId();
Line 510... Line 594...
510
      } else {
594
      } else {
511
        setUnitPrice((Double)value);
595
        setUnitPrice((Double)value);
512
      }
596
      }
513
      break;
597
      break;
514
 
598
 
-
 
599
    case CURRENT_WAREHOUSE_ID:
-
 
600
      if (value == null) {
-
 
601
        unsetCurrentWarehouseId();
-
 
602
      } else {
-
 
603
        setCurrentWarehouseId((Long)value);
-
 
604
      }
-
 
605
      break;
-
 
606
 
-
 
607
    case LAST_SCAN_TYPE:
-
 
608
      if (value == null) {
-
 
609
        unsetLastScanType();
-
 
610
      } else {
-
 
611
        setLastScanType((ScanType)value);
-
 
612
      }
-
 
613
      break;
-
 
614
 
515
    }
615
    }
516
  }
616
  }
517
 
617
 
518
  public Object getFieldValue(_Fields field) {
618
  public Object getFieldValue(_Fields field) {
519
    switch (field) {
619
    switch (field) {
Line 542... Line 642...
542
      return Long.valueOf(getSupplierId());
642
      return Long.valueOf(getSupplierId());
543
 
643
 
544
    case UNIT_PRICE:
644
    case UNIT_PRICE:
545
      return Double.valueOf(getUnitPrice());
645
      return Double.valueOf(getUnitPrice());
546
 
646
 
-
 
647
    case CURRENT_WAREHOUSE_ID:
-
 
648
      return Long.valueOf(getCurrentWarehouseId());
-
 
649
 
-
 
650
    case LAST_SCAN_TYPE:
-
 
651
      return getLastScanType();
-
 
652
 
547
    }
653
    }
548
    throw new IllegalStateException();
654
    throw new IllegalStateException();
549
  }
655
  }
550
 
656
 
551
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
657
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 571... Line 677...
571
      return isSetPurchaseId();
677
      return isSetPurchaseId();
572
    case SUPPLIER_ID:
678
    case SUPPLIER_ID:
573
      return isSetSupplierId();
679
      return isSetSupplierId();
574
    case UNIT_PRICE:
680
    case UNIT_PRICE:
575
      return isSetUnitPrice();
681
      return isSetUnitPrice();
-
 
682
    case CURRENT_WAREHOUSE_ID:
-
 
683
      return isSetCurrentWarehouseId();
-
 
684
    case LAST_SCAN_TYPE:
-
 
685
      return isSetLastScanType();
576
    }
686
    }
577
    throw new IllegalStateException();
687
    throw new IllegalStateException();
578
  }
688
  }
579
 
689
 
580
  @Override
690
  @Override
Line 669... Line 779...
669
        return false;
779
        return false;
670
      if (this.unitPrice != that.unitPrice)
780
      if (this.unitPrice != that.unitPrice)
671
        return false;
781
        return false;
672
    }
782
    }
673
 
783
 
-
 
784
    boolean this_present_currentWarehouseId = true;
-
 
785
    boolean that_present_currentWarehouseId = true;
-
 
786
    if (this_present_currentWarehouseId || that_present_currentWarehouseId) {
-
 
787
      if (!(this_present_currentWarehouseId && that_present_currentWarehouseId))
-
 
788
        return false;
-
 
789
      if (this.currentWarehouseId != that.currentWarehouseId)
-
 
790
        return false;
-
 
791
    }
-
 
792
 
-
 
793
    boolean this_present_lastScanType = true && this.isSetLastScanType();
-
 
794
    boolean that_present_lastScanType = true && that.isSetLastScanType();
-
 
795
    if (this_present_lastScanType || that_present_lastScanType) {
-
 
796
      if (!(this_present_lastScanType && that_present_lastScanType))
-
 
797
        return false;
-
 
798
      if (!this.lastScanType.equals(that.lastScanType))
-
 
799
        return false;
-
 
800
    }
-
 
801
 
674
    return true;
802
    return true;
675
  }
803
  }
676
 
804
 
677
  @Override
805
  @Override
678
  public int hashCode() {
806
  public int hashCode() {
Line 775... Line 903...
775
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
903
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
776
      if (lastComparison != 0) {
904
      if (lastComparison != 0) {
777
        return lastComparison;
905
        return lastComparison;
778
      }
906
      }
779
    }
907
    }
-
 
908
    lastComparison = Boolean.valueOf(isSetCurrentWarehouseId()).compareTo(typedOther.isSetCurrentWarehouseId());
-
 
909
    if (lastComparison != 0) {
-
 
910
      return lastComparison;
-
 
911
    }
-
 
912
    if (isSetCurrentWarehouseId()) {
-
 
913
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.currentWarehouseId, typedOther.currentWarehouseId);
-
 
914
      if (lastComparison != 0) {
-
 
915
        return lastComparison;
-
 
916
      }
-
 
917
    }
-
 
918
    lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
-
 
919
    if (lastComparison != 0) {
-
 
920
      return lastComparison;
-
 
921
    }
-
 
922
    if (isSetLastScanType()) {
-
 
923
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
-
 
924
      if (lastComparison != 0) {
-
 
925
        return lastComparison;
-
 
926
      }
-
 
927
    }
780
    return 0;
928
    return 0;
781
  }
929
  }
782
 
930
 
783
  public _Fields fieldForId(int fieldId) {
931
  public _Fields fieldForId(int fieldId) {
784
    return _Fields.findByThriftId(fieldId);
932
    return _Fields.findByThriftId(fieldId);
Line 862... Line 1010...
862
            setUnitPriceIsSet(true);
1010
            setUnitPriceIsSet(true);
863
          } else { 
1011
          } else { 
864
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
865
          }
1013
          }
866
          break;
1014
          break;
-
 
1015
        case 10: // CURRENT_WAREHOUSE_ID
-
 
1016
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1017
            this.currentWarehouseId = iprot.readI64();
-
 
1018
            setCurrentWarehouseIdIsSet(true);
-
 
1019
          } else { 
-
 
1020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1021
          }
-
 
1022
          break;
-
 
1023
        case 11: // LAST_SCAN_TYPE
-
 
1024
          if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
1025
            this.lastScanType = ScanType.findByValue(iprot.readI32());
-
 
1026
          } else { 
-
 
1027
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1028
          }
-
 
1029
          break;
867
        default:
1030
        default:
868
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1031
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
869
      }
1032
      }
870
      iprot.readFieldEnd();
1033
      iprot.readFieldEnd();
871
    }
1034
    }
Line 906... Line 1069...
906
    oprot.writeI64(this.supplierId);
1069
    oprot.writeI64(this.supplierId);
907
    oprot.writeFieldEnd();
1070
    oprot.writeFieldEnd();
908
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1071
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
909
    oprot.writeDouble(this.unitPrice);
1072
    oprot.writeDouble(this.unitPrice);
910
    oprot.writeFieldEnd();
1073
    oprot.writeFieldEnd();
-
 
1074
    oprot.writeFieldBegin(CURRENT_WAREHOUSE_ID_FIELD_DESC);
-
 
1075
    oprot.writeI64(this.currentWarehouseId);
-
 
1076
    oprot.writeFieldEnd();
-
 
1077
    if (this.lastScanType != null) {
-
 
1078
      oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
-
 
1079
      oprot.writeI32(this.lastScanType.getValue());
-
 
1080
      oprot.writeFieldEnd();
-
 
1081
    }
911
    oprot.writeFieldStop();
1082
    oprot.writeFieldStop();
912
    oprot.writeStructEnd();
1083
    oprot.writeStructEnd();
913
  }
1084
  }
914
 
1085
 
915
  @Override
1086
  @Override
Line 958... Line 1129...
958
    first = false;
1129
    first = false;
959
    if (!first) sb.append(", ");
1130
    if (!first) sb.append(", ");
960
    sb.append("unitPrice:");
1131
    sb.append("unitPrice:");
961
    sb.append(this.unitPrice);
1132
    sb.append(this.unitPrice);
962
    first = false;
1133
    first = false;
-
 
1134
    if (!first) sb.append(", ");
-
 
1135
    sb.append("currentWarehouseId:");
-
 
1136
    sb.append(this.currentWarehouseId);
-
 
1137
    first = false;
-
 
1138
    if (!first) sb.append(", ");
-
 
1139
    sb.append("lastScanType:");
-
 
1140
    if (this.lastScanType == null) {
-
 
1141
      sb.append("null");
-
 
1142
    } else {
-
 
1143
      sb.append(this.lastScanType);
-
 
1144
    }
-
 
1145
    first = false;
963
    sb.append(")");
1146
    sb.append(")");
964
    return sb.toString();
1147
    return sb.toString();
965
  }
1148
  }
966
 
1149
 
967
  public void validate() throws org.apache.thrift.TException {
1150
  public void validate() throws org.apache.thrift.TException {