Subversion Repositories SmartDukaan

Rev

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

Rev 4754 Rev 6821
Line 35... Line 35...
35
  private static final org.apache.thrift.protocol.TField UNFULFILLED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("unfulfilledQuantity", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
35
  private static final org.apache.thrift.protocol.TField UNFULFILLED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("unfulfilledQuantity", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)11);
36
  private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)11);
37
  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)12);
37
  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)12);
38
  private static final org.apache.thrift.protocol.TField FULFILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilled", org.apache.thrift.protocol.TType.BOOL, (short)13);
38
  private static final org.apache.thrift.protocol.TField FULFILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilled", org.apache.thrift.protocol.TType.BOOL, (short)13);
39
  private static final org.apache.thrift.protocol.TField COD_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("codCount", org.apache.thrift.protocol.TType.I64, (short)14);
39
  private static final org.apache.thrift.protocol.TField COD_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("codCount", org.apache.thrift.protocol.TType.I64, (short)14);
-
 
40
  private static final org.apache.thrift.protocol.TField AVAILABLE_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("availableQuantity", org.apache.thrift.protocol.TType.I64, (short)15);
-
 
41
  private static final org.apache.thrift.protocol.TField RESERVED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("reservedQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
-
 
42
  private static final org.apache.thrift.protocol.TField AVG_SALES_FIELD_DESC = new org.apache.thrift.protocol.TField("avgSales", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
-
 
43
  private static final org.apache.thrift.protocol.TField MIN_STOCK_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("minStockLevel", org.apache.thrift.protocol.TType.I64, (short)18);
-
 
44
  private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDaysStock", org.apache.thrift.protocol.TType.I64, (short)19);
-
 
45
  private static final org.apache.thrift.protocol.TField SUGGESTED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("suggestedQuantity", org.apache.thrift.protocol.TType.I64, (short)20);
-
 
46
  private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDaysInStock", org.apache.thrift.protocol.TType.I64, (short)21);
40
 
47
 
41
  private long orderId; // required
48
  private long orderId; // required
42
  private long itemId; // required
49
  private long itemId; // required
43
  private String productGroup; // required
50
  private String productGroup; // required
44
  private String brand; // required
51
  private String brand; // required
Line 50... Line 57...
50
  private double unfulfilledQuantity; // required
57
  private double unfulfilledQuantity; // required
51
  private long createdAt; // required
58
  private long createdAt; // required
52
  private double unitPrice; // required
59
  private double unitPrice; // required
53
  private boolean fulfilled; // required
60
  private boolean fulfilled; // required
54
  private long codCount; // required
61
  private long codCount; // required
-
 
62
  private long availableQuantity; // required
-
 
63
  private long reservedQuantity; // required
-
 
64
  private double avgSales; // required
-
 
65
  private long minStockLevel; // required
-
 
66
  private long numberOfDaysStock; // required
-
 
67
  private long suggestedQuantity; // required
-
 
68
  private long numberOfDaysInStock; // required
55
 
69
 
56
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
70
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
71
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58
    ORDER_ID((short)1, "orderId"),
72
    ORDER_ID((short)1, "orderId"),
59
    ITEM_ID((short)2, "itemId"),
73
    ITEM_ID((short)2, "itemId"),
Line 66... Line 80...
66
    QUANTITY((short)9, "quantity"),
80
    QUANTITY((short)9, "quantity"),
67
    UNFULFILLED_QUANTITY((short)10, "unfulfilledQuantity"),
81
    UNFULFILLED_QUANTITY((short)10, "unfulfilledQuantity"),
68
    CREATED_AT((short)11, "createdAt"),
82
    CREATED_AT((short)11, "createdAt"),
69
    UNIT_PRICE((short)12, "unitPrice"),
83
    UNIT_PRICE((short)12, "unitPrice"),
70
    FULFILLED((short)13, "fulfilled"),
84
    FULFILLED((short)13, "fulfilled"),
71
    COD_COUNT((short)14, "codCount");
85
    COD_COUNT((short)14, "codCount"),
-
 
86
    AVAILABLE_QUANTITY((short)15, "availableQuantity"),
-
 
87
    RESERVED_QUANTITY((short)16, "reservedQuantity"),
-
 
88
    AVG_SALES((short)17, "avgSales"),
-
 
89
    MIN_STOCK_LEVEL((short)18, "minStockLevel"),
-
 
90
    NUMBER_OF_DAYS_STOCK((short)19, "numberOfDaysStock"),
-
 
91
    SUGGESTED_QUANTITY((short)20, "suggestedQuantity"),
-
 
92
    NUMBER_OF_DAYS_IN_STOCK((short)21, "numberOfDaysInStock");
72
 
93
 
73
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
94
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
74
 
95
 
75
    static {
96
    static {
76
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
97
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 109... Line 130...
109
          return UNIT_PRICE;
130
          return UNIT_PRICE;
110
        case 13: // FULFILLED
131
        case 13: // FULFILLED
111
          return FULFILLED;
132
          return FULFILLED;
112
        case 14: // COD_COUNT
133
        case 14: // COD_COUNT
113
          return COD_COUNT;
134
          return COD_COUNT;
-
 
135
        case 15: // AVAILABLE_QUANTITY
-
 
136
          return AVAILABLE_QUANTITY;
-
 
137
        case 16: // RESERVED_QUANTITY
-
 
138
          return RESERVED_QUANTITY;
-
 
139
        case 17: // AVG_SALES
-
 
140
          return AVG_SALES;
-
 
141
        case 18: // MIN_STOCK_LEVEL
-
 
142
          return MIN_STOCK_LEVEL;
-
 
143
        case 19: // NUMBER_OF_DAYS_STOCK
-
 
144
          return NUMBER_OF_DAYS_STOCK;
-
 
145
        case 20: // SUGGESTED_QUANTITY
-
 
146
          return SUGGESTED_QUANTITY;
-
 
147
        case 21: // NUMBER_OF_DAYS_IN_STOCK
-
 
148
          return NUMBER_OF_DAYS_IN_STOCK;
114
        default:
149
        default:
115
          return null;
150
          return null;
116
      }
151
      }
117
    }
152
    }
118
 
153
 
Line 157... Line 192...
157
  private static final int __UNFULFILLEDQUANTITY_ISSET_ID = 3;
192
  private static final int __UNFULFILLEDQUANTITY_ISSET_ID = 3;
158
  private static final int __CREATEDAT_ISSET_ID = 4;
193
  private static final int __CREATEDAT_ISSET_ID = 4;
159
  private static final int __UNITPRICE_ISSET_ID = 5;
194
  private static final int __UNITPRICE_ISSET_ID = 5;
160
  private static final int __FULFILLED_ISSET_ID = 6;
195
  private static final int __FULFILLED_ISSET_ID = 6;
161
  private static final int __CODCOUNT_ISSET_ID = 7;
196
  private static final int __CODCOUNT_ISSET_ID = 7;
-
 
197
  private static final int __AVAILABLEQUANTITY_ISSET_ID = 8;
-
 
198
  private static final int __RESERVEDQUANTITY_ISSET_ID = 9;
-
 
199
  private static final int __AVGSALES_ISSET_ID = 10;
-
 
200
  private static final int __MINSTOCKLEVEL_ISSET_ID = 11;
-
 
201
  private static final int __NUMBEROFDAYSSTOCK_ISSET_ID = 12;
-
 
202
  private static final int __SUGGESTEDQUANTITY_ISSET_ID = 13;
-
 
203
  private static final int __NUMBEROFDAYSINSTOCK_ISSET_ID = 14;
162
  private BitSet __isset_bit_vector = new BitSet(8);
204
  private BitSet __isset_bit_vector = new BitSet(15);
163
 
205
 
164
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
206
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
165
  static {
207
  static {
166
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
208
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
167
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
209
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 190... Line 232...
190
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
232
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
191
    tmpMap.put(_Fields.FULFILLED, new org.apache.thrift.meta_data.FieldMetaData("fulfilled", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
    tmpMap.put(_Fields.FULFILLED, new org.apache.thrift.meta_data.FieldMetaData("fulfilled", org.apache.thrift.TFieldRequirementType.DEFAULT, 
192
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
234
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
193
    tmpMap.put(_Fields.COD_COUNT, new org.apache.thrift.meta_data.FieldMetaData("codCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
    tmpMap.put(_Fields.COD_COUNT, new org.apache.thrift.meta_data.FieldMetaData("codCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
194
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
236
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
237
    tmpMap.put(_Fields.AVAILABLE_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("availableQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
238
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
239
    tmpMap.put(_Fields.RESERVED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("reservedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
240
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
241
    tmpMap.put(_Fields.AVG_SALES, new org.apache.thrift.meta_data.FieldMetaData("avgSales", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
242
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
243
    tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
244
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
245
    tmpMap.put(_Fields.NUMBER_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
247
    tmpMap.put(_Fields.SUGGESTED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("suggestedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
248
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
249
    tmpMap.put(_Fields.NUMBER_OF_DAYS_IN_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysInStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
250
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
195
    metaDataMap = Collections.unmodifiableMap(tmpMap);
251
    metaDataMap = Collections.unmodifiableMap(tmpMap);
196
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
252
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
197
  }
253
  }
198
 
254
 
199
  public LineItem() {
255
  public LineItem() {
Line 211... Line 267...
211
    double quantity,
267
    double quantity,
212
    double unfulfilledQuantity,
268
    double unfulfilledQuantity,
213
    long createdAt,
269
    long createdAt,
214
    double unitPrice,
270
    double unitPrice,
215
    boolean fulfilled,
271
    boolean fulfilled,
216
    long codCount)
272
    long codCount,
-
 
273
    long availableQuantity,
-
 
274
    long reservedQuantity,
-
 
275
    double avgSales,
-
 
276
    long minStockLevel,
-
 
277
    long numberOfDaysStock,
-
 
278
    long suggestedQuantity,
-
 
279
    long numberOfDaysInStock)
217
  {
280
  {
218
    this();
281
    this();
219
    this.orderId = orderId;
282
    this.orderId = orderId;
220
    setOrderIdIsSet(true);
283
    setOrderIdIsSet(true);
221
    this.itemId = itemId;
284
    this.itemId = itemId;
Line 236... Line 299...
236
    setUnitPriceIsSet(true);
299
    setUnitPriceIsSet(true);
237
    this.fulfilled = fulfilled;
300
    this.fulfilled = fulfilled;
238
    setFulfilledIsSet(true);
301
    setFulfilledIsSet(true);
239
    this.codCount = codCount;
302
    this.codCount = codCount;
240
    setCodCountIsSet(true);
303
    setCodCountIsSet(true);
-
 
304
    this.availableQuantity = availableQuantity;
-
 
305
    setAvailableQuantityIsSet(true);
-
 
306
    this.reservedQuantity = reservedQuantity;
-
 
307
    setReservedQuantityIsSet(true);
-
 
308
    this.avgSales = avgSales;
-
 
309
    setAvgSalesIsSet(true);
-
 
310
    this.minStockLevel = minStockLevel;
-
 
311
    setMinStockLevelIsSet(true);
-
 
312
    this.numberOfDaysStock = numberOfDaysStock;
-
 
313
    setNumberOfDaysStockIsSet(true);
-
 
314
    this.suggestedQuantity = suggestedQuantity;
-
 
315
    setSuggestedQuantityIsSet(true);
-
 
316
    this.numberOfDaysInStock = numberOfDaysInStock;
-
 
317
    setNumberOfDaysInStockIsSet(true);
241
  }
318
  }
242
 
319
 
243
  /**
320
  /**
244
   * Performs a deep copy on <i>other</i>.
321
   * Performs a deep copy on <i>other</i>.
245
   */
322
   */
Line 270... Line 347...
270
    this.unfulfilledQuantity = other.unfulfilledQuantity;
347
    this.unfulfilledQuantity = other.unfulfilledQuantity;
271
    this.createdAt = other.createdAt;
348
    this.createdAt = other.createdAt;
272
    this.unitPrice = other.unitPrice;
349
    this.unitPrice = other.unitPrice;
273
    this.fulfilled = other.fulfilled;
350
    this.fulfilled = other.fulfilled;
274
    this.codCount = other.codCount;
351
    this.codCount = other.codCount;
-
 
352
    this.availableQuantity = other.availableQuantity;
-
 
353
    this.reservedQuantity = other.reservedQuantity;
-
 
354
    this.avgSales = other.avgSales;
-
 
355
    this.minStockLevel = other.minStockLevel;
-
 
356
    this.numberOfDaysStock = other.numberOfDaysStock;
-
 
357
    this.suggestedQuantity = other.suggestedQuantity;
-
 
358
    this.numberOfDaysInStock = other.numberOfDaysInStock;
275
  }
359
  }
276
 
360
 
277
  public LineItem deepCopy() {
361
  public LineItem deepCopy() {
278
    return new LineItem(this);
362
    return new LineItem(this);
279
  }
363
  }
Line 300... Line 384...
300
    this.unitPrice = 0.0;
384
    this.unitPrice = 0.0;
301
    setFulfilledIsSet(false);
385
    setFulfilledIsSet(false);
302
    this.fulfilled = false;
386
    this.fulfilled = false;
303
    setCodCountIsSet(false);
387
    setCodCountIsSet(false);
304
    this.codCount = 0;
388
    this.codCount = 0;
-
 
389
    setAvailableQuantityIsSet(false);
-
 
390
    this.availableQuantity = 0;
-
 
391
    setReservedQuantityIsSet(false);
-
 
392
    this.reservedQuantity = 0;
-
 
393
    setAvgSalesIsSet(false);
-
 
394
    this.avgSales = 0.0;
-
 
395
    setMinStockLevelIsSet(false);
-
 
396
    this.minStockLevel = 0;
-
 
397
    setNumberOfDaysStockIsSet(false);
-
 
398
    this.numberOfDaysStock = 0;
-
 
399
    setSuggestedQuantityIsSet(false);
-
 
400
    this.suggestedQuantity = 0;
-
 
401
    setNumberOfDaysInStockIsSet(false);
-
 
402
    this.numberOfDaysInStock = 0;
305
  }
403
  }
306
 
404
 
307
  public long getOrderId() {
405
  public long getOrderId() {
308
    return this.orderId;
406
    return this.orderId;
309
  }
407
  }
Line 616... Line 714...
616
 
714
 
617
  public void setCodCountIsSet(boolean value) {
715
  public void setCodCountIsSet(boolean value) {
618
    __isset_bit_vector.set(__CODCOUNT_ISSET_ID, value);
716
    __isset_bit_vector.set(__CODCOUNT_ISSET_ID, value);
619
  }
717
  }
620
 
718
 
-
 
719
  public long getAvailableQuantity() {
-
 
720
    return this.availableQuantity;
-
 
721
  }
-
 
722
 
-
 
723
  public void setAvailableQuantity(long availableQuantity) {
-
 
724
    this.availableQuantity = availableQuantity;
-
 
725
    setAvailableQuantityIsSet(true);
-
 
726
  }
-
 
727
 
-
 
728
  public void unsetAvailableQuantity() {
-
 
729
    __isset_bit_vector.clear(__AVAILABLEQUANTITY_ISSET_ID);
-
 
730
  }
-
 
731
 
-
 
732
  /** Returns true if field availableQuantity is set (has been assigned a value) and false otherwise */
-
 
733
  public boolean isSetAvailableQuantity() {
-
 
734
    return __isset_bit_vector.get(__AVAILABLEQUANTITY_ISSET_ID);
-
 
735
  }
-
 
736
 
-
 
737
  public void setAvailableQuantityIsSet(boolean value) {
-
 
738
    __isset_bit_vector.set(__AVAILABLEQUANTITY_ISSET_ID, value);
-
 
739
  }
-
 
740
 
-
 
741
  public long getReservedQuantity() {
-
 
742
    return this.reservedQuantity;
-
 
743
  }
-
 
744
 
-
 
745
  public void setReservedQuantity(long reservedQuantity) {
-
 
746
    this.reservedQuantity = reservedQuantity;
-
 
747
    setReservedQuantityIsSet(true);
-
 
748
  }
-
 
749
 
-
 
750
  public void unsetReservedQuantity() {
-
 
751
    __isset_bit_vector.clear(__RESERVEDQUANTITY_ISSET_ID);
-
 
752
  }
-
 
753
 
-
 
754
  /** Returns true if field reservedQuantity is set (has been assigned a value) and false otherwise */
-
 
755
  public boolean isSetReservedQuantity() {
-
 
756
    return __isset_bit_vector.get(__RESERVEDQUANTITY_ISSET_ID);
-
 
757
  }
-
 
758
 
-
 
759
  public void setReservedQuantityIsSet(boolean value) {
-
 
760
    __isset_bit_vector.set(__RESERVEDQUANTITY_ISSET_ID, value);
-
 
761
  }
-
 
762
 
-
 
763
  public double getAvgSales() {
-
 
764
    return this.avgSales;
-
 
765
  }
-
 
766
 
-
 
767
  public void setAvgSales(double avgSales) {
-
 
768
    this.avgSales = avgSales;
-
 
769
    setAvgSalesIsSet(true);
-
 
770
  }
-
 
771
 
-
 
772
  public void unsetAvgSales() {
-
 
773
    __isset_bit_vector.clear(__AVGSALES_ISSET_ID);
-
 
774
  }
-
 
775
 
-
 
776
  /** Returns true if field avgSales is set (has been assigned a value) and false otherwise */
-
 
777
  public boolean isSetAvgSales() {
-
 
778
    return __isset_bit_vector.get(__AVGSALES_ISSET_ID);
-
 
779
  }
-
 
780
 
-
 
781
  public void setAvgSalesIsSet(boolean value) {
-
 
782
    __isset_bit_vector.set(__AVGSALES_ISSET_ID, value);
-
 
783
  }
-
 
784
 
-
 
785
  public long getMinStockLevel() {
-
 
786
    return this.minStockLevel;
-
 
787
  }
-
 
788
 
-
 
789
  public void setMinStockLevel(long minStockLevel) {
-
 
790
    this.minStockLevel = minStockLevel;
-
 
791
    setMinStockLevelIsSet(true);
-
 
792
  }
-
 
793
 
-
 
794
  public void unsetMinStockLevel() {
-
 
795
    __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
-
 
796
  }
-
 
797
 
-
 
798
  /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
-
 
799
  public boolean isSetMinStockLevel() {
-
 
800
    return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
-
 
801
  }
-
 
802
 
-
 
803
  public void setMinStockLevelIsSet(boolean value) {
-
 
804
    __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
-
 
805
  }
-
 
806
 
-
 
807
  public long getNumberOfDaysStock() {
-
 
808
    return this.numberOfDaysStock;
-
 
809
  }
-
 
810
 
-
 
811
  public void setNumberOfDaysStock(long numberOfDaysStock) {
-
 
812
    this.numberOfDaysStock = numberOfDaysStock;
-
 
813
    setNumberOfDaysStockIsSet(true);
-
 
814
  }
-
 
815
 
-
 
816
  public void unsetNumberOfDaysStock() {
-
 
817
    __isset_bit_vector.clear(__NUMBEROFDAYSSTOCK_ISSET_ID);
-
 
818
  }
-
 
819
 
-
 
820
  /** Returns true if field numberOfDaysStock is set (has been assigned a value) and false otherwise */
-
 
821
  public boolean isSetNumberOfDaysStock() {
-
 
822
    return __isset_bit_vector.get(__NUMBEROFDAYSSTOCK_ISSET_ID);
-
 
823
  }
-
 
824
 
-
 
825
  public void setNumberOfDaysStockIsSet(boolean value) {
-
 
826
    __isset_bit_vector.set(__NUMBEROFDAYSSTOCK_ISSET_ID, value);
-
 
827
  }
-
 
828
 
-
 
829
  public long getSuggestedQuantity() {
-
 
830
    return this.suggestedQuantity;
-
 
831
  }
-
 
832
 
-
 
833
  public void setSuggestedQuantity(long suggestedQuantity) {
-
 
834
    this.suggestedQuantity = suggestedQuantity;
-
 
835
    setSuggestedQuantityIsSet(true);
-
 
836
  }
-
 
837
 
-
 
838
  public void unsetSuggestedQuantity() {
-
 
839
    __isset_bit_vector.clear(__SUGGESTEDQUANTITY_ISSET_ID);
-
 
840
  }
-
 
841
 
-
 
842
  /** Returns true if field suggestedQuantity is set (has been assigned a value) and false otherwise */
-
 
843
  public boolean isSetSuggestedQuantity() {
-
 
844
    return __isset_bit_vector.get(__SUGGESTEDQUANTITY_ISSET_ID);
-
 
845
  }
-
 
846
 
-
 
847
  public void setSuggestedQuantityIsSet(boolean value) {
-
 
848
    __isset_bit_vector.set(__SUGGESTEDQUANTITY_ISSET_ID, value);
-
 
849
  }
-
 
850
 
-
 
851
  public long getNumberOfDaysInStock() {
-
 
852
    return this.numberOfDaysInStock;
-
 
853
  }
-
 
854
 
-
 
855
  public void setNumberOfDaysInStock(long numberOfDaysInStock) {
-
 
856
    this.numberOfDaysInStock = numberOfDaysInStock;
-
 
857
    setNumberOfDaysInStockIsSet(true);
-
 
858
  }
-
 
859
 
-
 
860
  public void unsetNumberOfDaysInStock() {
-
 
861
    __isset_bit_vector.clear(__NUMBEROFDAYSINSTOCK_ISSET_ID);
-
 
862
  }
-
 
863
 
-
 
864
  /** Returns true if field numberOfDaysInStock is set (has been assigned a value) and false otherwise */
-
 
865
  public boolean isSetNumberOfDaysInStock() {
-
 
866
    return __isset_bit_vector.get(__NUMBEROFDAYSINSTOCK_ISSET_ID);
-
 
867
  }
-
 
868
 
-
 
869
  public void setNumberOfDaysInStockIsSet(boolean value) {
-
 
870
    __isset_bit_vector.set(__NUMBEROFDAYSINSTOCK_ISSET_ID, value);
-
 
871
  }
-
 
872
 
621
  public void setFieldValue(_Fields field, Object value) {
873
  public void setFieldValue(_Fields field, Object value) {
622
    switch (field) {
874
    switch (field) {
623
    case ORDER_ID:
875
    case ORDER_ID:
624
      if (value == null) {
876
      if (value == null) {
625
        unsetOrderId();
877
        unsetOrderId();
Line 730... Line 982...
730
      } else {
982
      } else {
731
        setCodCount((Long)value);
983
        setCodCount((Long)value);
732
      }
984
      }
733
      break;
985
      break;
734
 
986
 
-
 
987
    case AVAILABLE_QUANTITY:
-
 
988
      if (value == null) {
-
 
989
        unsetAvailableQuantity();
-
 
990
      } else {
-
 
991
        setAvailableQuantity((Long)value);
-
 
992
      }
-
 
993
      break;
-
 
994
 
-
 
995
    case RESERVED_QUANTITY:
-
 
996
      if (value == null) {
-
 
997
        unsetReservedQuantity();
-
 
998
      } else {
-
 
999
        setReservedQuantity((Long)value);
-
 
1000
      }
-
 
1001
      break;
-
 
1002
 
-
 
1003
    case AVG_SALES:
-
 
1004
      if (value == null) {
-
 
1005
        unsetAvgSales();
-
 
1006
      } else {
-
 
1007
        setAvgSales((Double)value);
-
 
1008
      }
-
 
1009
      break;
-
 
1010
 
-
 
1011
    case MIN_STOCK_LEVEL:
-
 
1012
      if (value == null) {
-
 
1013
        unsetMinStockLevel();
-
 
1014
      } else {
-
 
1015
        setMinStockLevel((Long)value);
-
 
1016
      }
-
 
1017
      break;
-
 
1018
 
-
 
1019
    case NUMBER_OF_DAYS_STOCK:
-
 
1020
      if (value == null) {
-
 
1021
        unsetNumberOfDaysStock();
-
 
1022
      } else {
-
 
1023
        setNumberOfDaysStock((Long)value);
-
 
1024
      }
-
 
1025
      break;
-
 
1026
 
-
 
1027
    case SUGGESTED_QUANTITY:
-
 
1028
      if (value == null) {
-
 
1029
        unsetSuggestedQuantity();
-
 
1030
      } else {
-
 
1031
        setSuggestedQuantity((Long)value);
-
 
1032
      }
-
 
1033
      break;
-
 
1034
 
-
 
1035
    case NUMBER_OF_DAYS_IN_STOCK:
-
 
1036
      if (value == null) {
-
 
1037
        unsetNumberOfDaysInStock();
-
 
1038
      } else {
-
 
1039
        setNumberOfDaysInStock((Long)value);
-
 
1040
      }
-
 
1041
      break;
-
 
1042
 
735
    }
1043
    }
736
  }
1044
  }
737
 
1045
 
738
  public Object getFieldValue(_Fields field) {
1046
  public Object getFieldValue(_Fields field) {
739
    switch (field) {
1047
    switch (field) {
Line 777... Line 1085...
777
      return Boolean.valueOf(isFulfilled());
1085
      return Boolean.valueOf(isFulfilled());
778
 
1086
 
779
    case COD_COUNT:
1087
    case COD_COUNT:
780
      return Long.valueOf(getCodCount());
1088
      return Long.valueOf(getCodCount());
781
 
1089
 
-
 
1090
    case AVAILABLE_QUANTITY:
-
 
1091
      return Long.valueOf(getAvailableQuantity());
-
 
1092
 
-
 
1093
    case RESERVED_QUANTITY:
-
 
1094
      return Long.valueOf(getReservedQuantity());
-
 
1095
 
-
 
1096
    case AVG_SALES:
-
 
1097
      return Double.valueOf(getAvgSales());
-
 
1098
 
-
 
1099
    case MIN_STOCK_LEVEL:
-
 
1100
      return Long.valueOf(getMinStockLevel());
-
 
1101
 
-
 
1102
    case NUMBER_OF_DAYS_STOCK:
-
 
1103
      return Long.valueOf(getNumberOfDaysStock());
-
 
1104
 
-
 
1105
    case SUGGESTED_QUANTITY:
-
 
1106
      return Long.valueOf(getSuggestedQuantity());
-
 
1107
 
-
 
1108
    case NUMBER_OF_DAYS_IN_STOCK:
-
 
1109
      return Long.valueOf(getNumberOfDaysInStock());
-
 
1110
 
782
    }
1111
    }
783
    throw new IllegalStateException();
1112
    throw new IllegalStateException();
784
  }
1113
  }
785
 
1114
 
786
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1115
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 816... Line 1145...
816
      return isSetUnitPrice();
1145
      return isSetUnitPrice();
817
    case FULFILLED:
1146
    case FULFILLED:
818
      return isSetFulfilled();
1147
      return isSetFulfilled();
819
    case COD_COUNT:
1148
    case COD_COUNT:
820
      return isSetCodCount();
1149
      return isSetCodCount();
-
 
1150
    case AVAILABLE_QUANTITY:
-
 
1151
      return isSetAvailableQuantity();
-
 
1152
    case RESERVED_QUANTITY:
-
 
1153
      return isSetReservedQuantity();
-
 
1154
    case AVG_SALES:
-
 
1155
      return isSetAvgSales();
-
 
1156
    case MIN_STOCK_LEVEL:
-
 
1157
      return isSetMinStockLevel();
-
 
1158
    case NUMBER_OF_DAYS_STOCK:
-
 
1159
      return isSetNumberOfDaysStock();
-
 
1160
    case SUGGESTED_QUANTITY:
-
 
1161
      return isSetSuggestedQuantity();
-
 
1162
    case NUMBER_OF_DAYS_IN_STOCK:
-
 
1163
      return isSetNumberOfDaysInStock();
821
    }
1164
    }
822
    throw new IllegalStateException();
1165
    throw new IllegalStateException();
823
  }
1166
  }
824
 
1167
 
825
  @Override
1168
  @Override
Line 959... Line 1302...
959
        return false;
1302
        return false;
960
      if (this.codCount != that.codCount)
1303
      if (this.codCount != that.codCount)
961
        return false;
1304
        return false;
962
    }
1305
    }
963
 
1306
 
-
 
1307
    boolean this_present_availableQuantity = true;
-
 
1308
    boolean that_present_availableQuantity = true;
-
 
1309
    if (this_present_availableQuantity || that_present_availableQuantity) {
-
 
1310
      if (!(this_present_availableQuantity && that_present_availableQuantity))
-
 
1311
        return false;
-
 
1312
      if (this.availableQuantity != that.availableQuantity)
-
 
1313
        return false;
-
 
1314
    }
-
 
1315
 
-
 
1316
    boolean this_present_reservedQuantity = true;
-
 
1317
    boolean that_present_reservedQuantity = true;
-
 
1318
    if (this_present_reservedQuantity || that_present_reservedQuantity) {
-
 
1319
      if (!(this_present_reservedQuantity && that_present_reservedQuantity))
-
 
1320
        return false;
-
 
1321
      if (this.reservedQuantity != that.reservedQuantity)
-
 
1322
        return false;
-
 
1323
    }
-
 
1324
 
-
 
1325
    boolean this_present_avgSales = true;
-
 
1326
    boolean that_present_avgSales = true;
-
 
1327
    if (this_present_avgSales || that_present_avgSales) {
-
 
1328
      if (!(this_present_avgSales && that_present_avgSales))
-
 
1329
        return false;
-
 
1330
      if (this.avgSales != that.avgSales)
-
 
1331
        return false;
-
 
1332
    }
-
 
1333
 
-
 
1334
    boolean this_present_minStockLevel = true;
-
 
1335
    boolean that_present_minStockLevel = true;
-
 
1336
    if (this_present_minStockLevel || that_present_minStockLevel) {
-
 
1337
      if (!(this_present_minStockLevel && that_present_minStockLevel))
-
 
1338
        return false;
-
 
1339
      if (this.minStockLevel != that.minStockLevel)
-
 
1340
        return false;
-
 
1341
    }
-
 
1342
 
-
 
1343
    boolean this_present_numberOfDaysStock = true;
-
 
1344
    boolean that_present_numberOfDaysStock = true;
-
 
1345
    if (this_present_numberOfDaysStock || that_present_numberOfDaysStock) {
-
 
1346
      if (!(this_present_numberOfDaysStock && that_present_numberOfDaysStock))
-
 
1347
        return false;
-
 
1348
      if (this.numberOfDaysStock != that.numberOfDaysStock)
-
 
1349
        return false;
-
 
1350
    }
-
 
1351
 
-
 
1352
    boolean this_present_suggestedQuantity = true;
-
 
1353
    boolean that_present_suggestedQuantity = true;
-
 
1354
    if (this_present_suggestedQuantity || that_present_suggestedQuantity) {
-
 
1355
      if (!(this_present_suggestedQuantity && that_present_suggestedQuantity))
-
 
1356
        return false;
-
 
1357
      if (this.suggestedQuantity != that.suggestedQuantity)
-
 
1358
        return false;
-
 
1359
    }
-
 
1360
 
-
 
1361
    boolean this_present_numberOfDaysInStock = true;
-
 
1362
    boolean that_present_numberOfDaysInStock = true;
-
 
1363
    if (this_present_numberOfDaysInStock || that_present_numberOfDaysInStock) {
-
 
1364
      if (!(this_present_numberOfDaysInStock && that_present_numberOfDaysInStock))
-
 
1365
        return false;
-
 
1366
      if (this.numberOfDaysInStock != that.numberOfDaysInStock)
-
 
1367
        return false;
-
 
1368
    }
-
 
1369
 
964
    return true;
1370
    return true;
965
  }
1371
  }
966
 
1372
 
967
  @Override
1373
  @Override
968
  public int hashCode() {
1374
  public int hashCode() {
Line 1115... Line 1521...
1115
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCount, typedOther.codCount);
1521
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCount, typedOther.codCount);
1116
      if (lastComparison != 0) {
1522
      if (lastComparison != 0) {
1117
        return lastComparison;
1523
        return lastComparison;
1118
      }
1524
      }
1119
    }
1525
    }
-
 
1526
    lastComparison = Boolean.valueOf(isSetAvailableQuantity()).compareTo(typedOther.isSetAvailableQuantity());
-
 
1527
    if (lastComparison != 0) {
-
 
1528
      return lastComparison;
-
 
1529
    }
-
 
1530
    if (isSetAvailableQuantity()) {
-
 
1531
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availableQuantity, typedOther.availableQuantity);
-
 
1532
      if (lastComparison != 0) {
-
 
1533
        return lastComparison;
-
 
1534
      }
-
 
1535
    }
-
 
1536
    lastComparison = Boolean.valueOf(isSetReservedQuantity()).compareTo(typedOther.isSetReservedQuantity());
-
 
1537
    if (lastComparison != 0) {
-
 
1538
      return lastComparison;
-
 
1539
    }
-
 
1540
    if (isSetReservedQuantity()) {
-
 
1541
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reservedQuantity, typedOther.reservedQuantity);
-
 
1542
      if (lastComparison != 0) {
-
 
1543
        return lastComparison;
-
 
1544
      }
-
 
1545
    }
-
 
1546
    lastComparison = Boolean.valueOf(isSetAvgSales()).compareTo(typedOther.isSetAvgSales());
-
 
1547
    if (lastComparison != 0) {
-
 
1548
      return lastComparison;
-
 
1549
    }
-
 
1550
    if (isSetAvgSales()) {
-
 
1551
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgSales, typedOther.avgSales);
-
 
1552
      if (lastComparison != 0) {
-
 
1553
        return lastComparison;
-
 
1554
      }
-
 
1555
    }
-
 
1556
    lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
-
 
1557
    if (lastComparison != 0) {
-
 
1558
      return lastComparison;
-
 
1559
    }
-
 
1560
    if (isSetMinStockLevel()) {
-
 
1561
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
-
 
1562
      if (lastComparison != 0) {
-
 
1563
        return lastComparison;
-
 
1564
      }
-
 
1565
    }
-
 
1566
    lastComparison = Boolean.valueOf(isSetNumberOfDaysStock()).compareTo(typedOther.isSetNumberOfDaysStock());
-
 
1567
    if (lastComparison != 0) {
-
 
1568
      return lastComparison;
-
 
1569
    }
-
 
1570
    if (isSetNumberOfDaysStock()) {
-
 
1571
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysStock, typedOther.numberOfDaysStock);
-
 
1572
      if (lastComparison != 0) {
-
 
1573
        return lastComparison;
-
 
1574
      }
-
 
1575
    }
-
 
1576
    lastComparison = Boolean.valueOf(isSetSuggestedQuantity()).compareTo(typedOther.isSetSuggestedQuantity());
-
 
1577
    if (lastComparison != 0) {
-
 
1578
      return lastComparison;
-
 
1579
    }
-
 
1580
    if (isSetSuggestedQuantity()) {
-
 
1581
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suggestedQuantity, typedOther.suggestedQuantity);
-
 
1582
      if (lastComparison != 0) {
-
 
1583
        return lastComparison;
-
 
1584
      }
-
 
1585
    }
-
 
1586
    lastComparison = Boolean.valueOf(isSetNumberOfDaysInStock()).compareTo(typedOther.isSetNumberOfDaysInStock());
-
 
1587
    if (lastComparison != 0) {
-
 
1588
      return lastComparison;
-
 
1589
    }
-
 
1590
    if (isSetNumberOfDaysInStock()) {
-
 
1591
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysInStock, typedOther.numberOfDaysInStock);
-
 
1592
      if (lastComparison != 0) {
-
 
1593
        return lastComparison;
-
 
1594
      }
-
 
1595
    }
1120
    return 0;
1596
    return 0;
1121
  }
1597
  }
1122
 
1598
 
1123
  public _Fields fieldForId(int fieldId) {
1599
  public _Fields fieldForId(int fieldId) {
1124
    return _Fields.findByThriftId(fieldId);
1600
    return _Fields.findByThriftId(fieldId);
Line 1238... Line 1714...
1238
            setCodCountIsSet(true);
1714
            setCodCountIsSet(true);
1239
          } else { 
1715
          } else { 
1240
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1241
          }
1717
          }
1242
          break;
1718
          break;
-
 
1719
        case 15: // AVAILABLE_QUANTITY
-
 
1720
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1721
            this.availableQuantity = iprot.readI64();
-
 
1722
            setAvailableQuantityIsSet(true);
-
 
1723
          } else { 
-
 
1724
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1725
          }
-
 
1726
          break;
-
 
1727
        case 16: // RESERVED_QUANTITY
-
 
1728
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1729
            this.reservedQuantity = iprot.readI64();
-
 
1730
            setReservedQuantityIsSet(true);
-
 
1731
          } else { 
-
 
1732
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1733
          }
-
 
1734
          break;
-
 
1735
        case 17: // AVG_SALES
-
 
1736
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
1737
            this.avgSales = iprot.readDouble();
-
 
1738
            setAvgSalesIsSet(true);
-
 
1739
          } else { 
-
 
1740
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1741
          }
-
 
1742
          break;
-
 
1743
        case 18: // MIN_STOCK_LEVEL
-
 
1744
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1745
            this.minStockLevel = iprot.readI64();
-
 
1746
            setMinStockLevelIsSet(true);
-
 
1747
          } else { 
-
 
1748
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1749
          }
-
 
1750
          break;
-
 
1751
        case 19: // NUMBER_OF_DAYS_STOCK
-
 
1752
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1753
            this.numberOfDaysStock = iprot.readI64();
-
 
1754
            setNumberOfDaysStockIsSet(true);
-
 
1755
          } else { 
-
 
1756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1757
          }
-
 
1758
          break;
-
 
1759
        case 20: // SUGGESTED_QUANTITY
-
 
1760
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1761
            this.suggestedQuantity = iprot.readI64();
-
 
1762
            setSuggestedQuantityIsSet(true);
-
 
1763
          } else { 
-
 
1764
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1765
          }
-
 
1766
          break;
-
 
1767
        case 21: // NUMBER_OF_DAYS_IN_STOCK
-
 
1768
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1769
            this.numberOfDaysInStock = iprot.readI64();
-
 
1770
            setNumberOfDaysInStockIsSet(true);
-
 
1771
          } else { 
-
 
1772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1773
          }
-
 
1774
          break;
1243
        default:
1775
        default:
1244
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1776
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1245
      }
1777
      }
1246
      iprot.readFieldEnd();
1778
      iprot.readFieldEnd();
1247
    }
1779
    }
Line 1305... Line 1837...
1305
    oprot.writeBool(this.fulfilled);
1837
    oprot.writeBool(this.fulfilled);
1306
    oprot.writeFieldEnd();
1838
    oprot.writeFieldEnd();
1307
    oprot.writeFieldBegin(COD_COUNT_FIELD_DESC);
1839
    oprot.writeFieldBegin(COD_COUNT_FIELD_DESC);
1308
    oprot.writeI64(this.codCount);
1840
    oprot.writeI64(this.codCount);
1309
    oprot.writeFieldEnd();
1841
    oprot.writeFieldEnd();
-
 
1842
    oprot.writeFieldBegin(AVAILABLE_QUANTITY_FIELD_DESC);
-
 
1843
    oprot.writeI64(this.availableQuantity);
-
 
1844
    oprot.writeFieldEnd();
-
 
1845
    oprot.writeFieldBegin(RESERVED_QUANTITY_FIELD_DESC);
-
 
1846
    oprot.writeI64(this.reservedQuantity);
-
 
1847
    oprot.writeFieldEnd();
-
 
1848
    oprot.writeFieldBegin(AVG_SALES_FIELD_DESC);
-
 
1849
    oprot.writeDouble(this.avgSales);
-
 
1850
    oprot.writeFieldEnd();
-
 
1851
    oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
-
 
1852
    oprot.writeI64(this.minStockLevel);
-
 
1853
    oprot.writeFieldEnd();
-
 
1854
    oprot.writeFieldBegin(NUMBER_OF_DAYS_STOCK_FIELD_DESC);
-
 
1855
    oprot.writeI64(this.numberOfDaysStock);
-
 
1856
    oprot.writeFieldEnd();
-
 
1857
    oprot.writeFieldBegin(SUGGESTED_QUANTITY_FIELD_DESC);
-
 
1858
    oprot.writeI64(this.suggestedQuantity);
-
 
1859
    oprot.writeFieldEnd();
-
 
1860
    oprot.writeFieldBegin(NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC);
-
 
1861
    oprot.writeI64(this.numberOfDaysInStock);
-
 
1862
    oprot.writeFieldEnd();
1310
    oprot.writeFieldStop();
1863
    oprot.writeFieldStop();
1311
    oprot.writeStructEnd();
1864
    oprot.writeStructEnd();
1312
  }
1865
  }
1313
 
1866
 
1314
  @Override
1867
  @Override
Line 1393... Line 1946...
1393
    first = false;
1946
    first = false;
1394
    if (!first) sb.append(", ");
1947
    if (!first) sb.append(", ");
1395
    sb.append("codCount:");
1948
    sb.append("codCount:");
1396
    sb.append(this.codCount);
1949
    sb.append(this.codCount);
1397
    first = false;
1950
    first = false;
-
 
1951
    if (!first) sb.append(", ");
-
 
1952
    sb.append("availableQuantity:");
-
 
1953
    sb.append(this.availableQuantity);
-
 
1954
    first = false;
-
 
1955
    if (!first) sb.append(", ");
-
 
1956
    sb.append("reservedQuantity:");
-
 
1957
    sb.append(this.reservedQuantity);
-
 
1958
    first = false;
-
 
1959
    if (!first) sb.append(", ");
-
 
1960
    sb.append("avgSales:");
-
 
1961
    sb.append(this.avgSales);
-
 
1962
    first = false;
-
 
1963
    if (!first) sb.append(", ");
-
 
1964
    sb.append("minStockLevel:");
-
 
1965
    sb.append(this.minStockLevel);
-
 
1966
    first = false;
-
 
1967
    if (!first) sb.append(", ");
-
 
1968
    sb.append("numberOfDaysStock:");
-
 
1969
    sb.append(this.numberOfDaysStock);
-
 
1970
    first = false;
-
 
1971
    if (!first) sb.append(", ");
-
 
1972
    sb.append("suggestedQuantity:");
-
 
1973
    sb.append(this.suggestedQuantity);
-
 
1974
    first = false;
-
 
1975
    if (!first) sb.append(", ");
-
 
1976
    sb.append("numberOfDaysInStock:");
-
 
1977
    sb.append(this.numberOfDaysInStock);
-
 
1978
    first = false;
1398
    sb.append(")");
1979
    sb.append(")");
1399
    return sb.toString();
1980
    return sb.toString();
1400
  }
1981
  }
1401
 
1982
 
1402
  public void validate() throws org.apache.thrift.TException {
1983
  public void validate() throws org.apache.thrift.TException {