Subversion Repositories SmartDukaan

Rev

Rev 7672 | Rev 9416 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4496 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.purchase;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LineItem implements org.apache.thrift.TBase<LineItem, LineItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LineItem");
25
 
26
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  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)8);
34
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
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);
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);
4754 mandeep.dh 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);
6821 amar.kumar 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);
8182 amar.kumar 47
  private static final org.apache.thrift.protocol.TField RTO_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("rtoOrders", org.apache.thrift.protocol.TType.I64, (short)22);
48
  private static final org.apache.thrift.protocol.TField LAST_XDAYS_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastXdaysSale", org.apache.thrift.protocol.TType.STRING, (short)23);
49
  private static final org.apache.thrift.protocol.TField PREVIOUSLY_ORDERED_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("previouslyOrderedQty", org.apache.thrift.protocol.TType.I64, (short)24);
50
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)25);
4496 mandeep.dh 51
 
52
  private long orderId; // required
53
  private long itemId; // required
54
  private String productGroup; // required
55
  private String brand; // required
56
  private String modelNumber; // required
57
  private String modelName; // required
58
  private String color; // required
59
  private String itemNumber; // required
60
  private double quantity; // required
61
  private double unfulfilledQuantity; // required
62
  private long createdAt; // required
63
  private double unitPrice; // required
64
  private boolean fulfilled; // required
4754 mandeep.dh 65
  private long codCount; // required
6821 amar.kumar 66
  private long availableQuantity; // required
67
  private long reservedQuantity; // required
68
  private double avgSales; // required
69
  private long minStockLevel; // required
70
  private long numberOfDaysStock; // required
71
  private long suggestedQuantity; // required
72
  private long numberOfDaysInStock; // required
8182 amar.kumar 73
  private long rtoOrders; // required
6857 amar.kumar 74
  private String lastXdaysSale; // required
6880 amar.kumar 75
  private long previouslyOrderedQty; // required
7672 rajveer 76
  private double nlc; // required
4496 mandeep.dh 77
 
78
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
79
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
80
    ORDER_ID((short)1, "orderId"),
81
    ITEM_ID((short)2, "itemId"),
82
    PRODUCT_GROUP((short)3, "productGroup"),
83
    BRAND((short)4, "brand"),
84
    MODEL_NUMBER((short)5, "modelNumber"),
85
    MODEL_NAME((short)6, "modelName"),
86
    COLOR((short)7, "color"),
87
    ITEM_NUMBER((short)8, "itemNumber"),
88
    QUANTITY((short)9, "quantity"),
89
    UNFULFILLED_QUANTITY((short)10, "unfulfilledQuantity"),
90
    CREATED_AT((short)11, "createdAt"),
91
    UNIT_PRICE((short)12, "unitPrice"),
4754 mandeep.dh 92
    FULFILLED((short)13, "fulfilled"),
6821 amar.kumar 93
    COD_COUNT((short)14, "codCount"),
94
    AVAILABLE_QUANTITY((short)15, "availableQuantity"),
95
    RESERVED_QUANTITY((short)16, "reservedQuantity"),
96
    AVG_SALES((short)17, "avgSales"),
97
    MIN_STOCK_LEVEL((short)18, "minStockLevel"),
98
    NUMBER_OF_DAYS_STOCK((short)19, "numberOfDaysStock"),
99
    SUGGESTED_QUANTITY((short)20, "suggestedQuantity"),
6857 amar.kumar 100
    NUMBER_OF_DAYS_IN_STOCK((short)21, "numberOfDaysInStock"),
8182 amar.kumar 101
    RTO_ORDERS((short)22, "rtoOrders"),
102
    LAST_XDAYS_SALE((short)23, "lastXdaysSale"),
103
    PREVIOUSLY_ORDERED_QTY((short)24, "previouslyOrderedQty"),
104
    NLC((short)25, "nlc");
4496 mandeep.dh 105
 
106
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
107
 
108
    static {
109
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
110
        byName.put(field.getFieldName(), field);
111
      }
112
    }
113
 
114
    /**
115
     * Find the _Fields constant that matches fieldId, or null if its not found.
116
     */
117
    public static _Fields findByThriftId(int fieldId) {
118
      switch(fieldId) {
119
        case 1: // ORDER_ID
120
          return ORDER_ID;
121
        case 2: // ITEM_ID
122
          return ITEM_ID;
123
        case 3: // PRODUCT_GROUP
124
          return PRODUCT_GROUP;
125
        case 4: // BRAND
126
          return BRAND;
127
        case 5: // MODEL_NUMBER
128
          return MODEL_NUMBER;
129
        case 6: // MODEL_NAME
130
          return MODEL_NAME;
131
        case 7: // COLOR
132
          return COLOR;
133
        case 8: // ITEM_NUMBER
134
          return ITEM_NUMBER;
135
        case 9: // QUANTITY
136
          return QUANTITY;
137
        case 10: // UNFULFILLED_QUANTITY
138
          return UNFULFILLED_QUANTITY;
139
        case 11: // CREATED_AT
140
          return CREATED_AT;
141
        case 12: // UNIT_PRICE
142
          return UNIT_PRICE;
143
        case 13: // FULFILLED
144
          return FULFILLED;
4754 mandeep.dh 145
        case 14: // COD_COUNT
146
          return COD_COUNT;
6821 amar.kumar 147
        case 15: // AVAILABLE_QUANTITY
148
          return AVAILABLE_QUANTITY;
149
        case 16: // RESERVED_QUANTITY
150
          return RESERVED_QUANTITY;
151
        case 17: // AVG_SALES
152
          return AVG_SALES;
153
        case 18: // MIN_STOCK_LEVEL
154
          return MIN_STOCK_LEVEL;
155
        case 19: // NUMBER_OF_DAYS_STOCK
156
          return NUMBER_OF_DAYS_STOCK;
157
        case 20: // SUGGESTED_QUANTITY
158
          return SUGGESTED_QUANTITY;
159
        case 21: // NUMBER_OF_DAYS_IN_STOCK
160
          return NUMBER_OF_DAYS_IN_STOCK;
8182 amar.kumar 161
        case 22: // RTO_ORDERS
162
          return RTO_ORDERS;
163
        case 23: // LAST_XDAYS_SALE
6857 amar.kumar 164
          return LAST_XDAYS_SALE;
8182 amar.kumar 165
        case 24: // PREVIOUSLY_ORDERED_QTY
6880 amar.kumar 166
          return PREVIOUSLY_ORDERED_QTY;
8182 amar.kumar 167
        case 25: // NLC
7672 rajveer 168
          return NLC;
4496 mandeep.dh 169
        default:
170
          return null;
171
      }
172
    }
173
 
174
    /**
175
     * Find the _Fields constant that matches fieldId, throwing an exception
176
     * if it is not found.
177
     */
178
    public static _Fields findByThriftIdOrThrow(int fieldId) {
179
      _Fields fields = findByThriftId(fieldId);
180
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
181
      return fields;
182
    }
183
 
184
    /**
185
     * Find the _Fields constant that matches name, or null if its not found.
186
     */
187
    public static _Fields findByName(String name) {
188
      return byName.get(name);
189
    }
190
 
191
    private final short _thriftId;
192
    private final String _fieldName;
193
 
194
    _Fields(short thriftId, String fieldName) {
195
      _thriftId = thriftId;
196
      _fieldName = fieldName;
197
    }
198
 
199
    public short getThriftFieldId() {
200
      return _thriftId;
201
    }
202
 
203
    public String getFieldName() {
204
      return _fieldName;
205
    }
206
  }
207
 
208
  // isset id assignments
209
  private static final int __ORDERID_ISSET_ID = 0;
210
  private static final int __ITEMID_ISSET_ID = 1;
211
  private static final int __QUANTITY_ISSET_ID = 2;
212
  private static final int __UNFULFILLEDQUANTITY_ISSET_ID = 3;
213
  private static final int __CREATEDAT_ISSET_ID = 4;
214
  private static final int __UNITPRICE_ISSET_ID = 5;
215
  private static final int __FULFILLED_ISSET_ID = 6;
4754 mandeep.dh 216
  private static final int __CODCOUNT_ISSET_ID = 7;
6821 amar.kumar 217
  private static final int __AVAILABLEQUANTITY_ISSET_ID = 8;
218
  private static final int __RESERVEDQUANTITY_ISSET_ID = 9;
219
  private static final int __AVGSALES_ISSET_ID = 10;
220
  private static final int __MINSTOCKLEVEL_ISSET_ID = 11;
221
  private static final int __NUMBEROFDAYSSTOCK_ISSET_ID = 12;
222
  private static final int __SUGGESTEDQUANTITY_ISSET_ID = 13;
223
  private static final int __NUMBEROFDAYSINSTOCK_ISSET_ID = 14;
8182 amar.kumar 224
  private static final int __RTOORDERS_ISSET_ID = 15;
225
  private static final int __PREVIOUSLYORDEREDQTY_ISSET_ID = 16;
226
  private static final int __NLC_ISSET_ID = 17;
227
  private BitSet __isset_bit_vector = new BitSet(18);
4496 mandeep.dh 228
 
229
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
230
  static {
231
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
232
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
234
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
236
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
237
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
238
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
239
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
240
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
241
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
242
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
243
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
244
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
245
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
246
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
247
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
248
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
249
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
250
    tmpMap.put(_Fields.UNFULFILLED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("unfulfilledQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
251
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
252
    tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
253
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
254
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
255
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
256
    tmpMap.put(_Fields.FULFILLED, new org.apache.thrift.meta_data.FieldMetaData("fulfilled", org.apache.thrift.TFieldRequirementType.DEFAULT, 
257
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
4754 mandeep.dh 258
    tmpMap.put(_Fields.COD_COUNT, new org.apache.thrift.meta_data.FieldMetaData("codCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
259
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6821 amar.kumar 260
    tmpMap.put(_Fields.AVAILABLE_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("availableQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
261
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
262
    tmpMap.put(_Fields.RESERVED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("reservedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
263
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
264
    tmpMap.put(_Fields.AVG_SALES, new org.apache.thrift.meta_data.FieldMetaData("avgSales", org.apache.thrift.TFieldRequirementType.DEFAULT, 
265
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
266
    tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
267
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
268
    tmpMap.put(_Fields.NUMBER_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
269
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
270
    tmpMap.put(_Fields.SUGGESTED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("suggestedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
271
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
272
    tmpMap.put(_Fields.NUMBER_OF_DAYS_IN_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysInStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
273
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8182 amar.kumar 274
    tmpMap.put(_Fields.RTO_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("rtoOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
275
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6857 amar.kumar 276
    tmpMap.put(_Fields.LAST_XDAYS_SALE, new org.apache.thrift.meta_data.FieldMetaData("lastXdaysSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
277
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6880 amar.kumar 278
    tmpMap.put(_Fields.PREVIOUSLY_ORDERED_QTY, new org.apache.thrift.meta_data.FieldMetaData("previouslyOrderedQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
279
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7672 rajveer 280
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
281
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
4496 mandeep.dh 282
    metaDataMap = Collections.unmodifiableMap(tmpMap);
283
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
284
  }
285
 
286
  public LineItem() {
287
  }
288
 
289
  public LineItem(
290
    long orderId,
291
    long itemId,
292
    String productGroup,
293
    String brand,
294
    String modelNumber,
295
    String modelName,
296
    String color,
297
    String itemNumber,
298
    double quantity,
299
    double unfulfilledQuantity,
300
    long createdAt,
301
    double unitPrice,
4754 mandeep.dh 302
    boolean fulfilled,
6821 amar.kumar 303
    long codCount,
304
    long availableQuantity,
305
    long reservedQuantity,
306
    double avgSales,
307
    long minStockLevel,
308
    long numberOfDaysStock,
309
    long suggestedQuantity,
6857 amar.kumar 310
    long numberOfDaysInStock,
8182 amar.kumar 311
    long rtoOrders,
6880 amar.kumar 312
    String lastXdaysSale,
7672 rajveer 313
    long previouslyOrderedQty,
314
    double nlc)
4496 mandeep.dh 315
  {
316
    this();
317
    this.orderId = orderId;
318
    setOrderIdIsSet(true);
319
    this.itemId = itemId;
320
    setItemIdIsSet(true);
321
    this.productGroup = productGroup;
322
    this.brand = brand;
323
    this.modelNumber = modelNumber;
324
    this.modelName = modelName;
325
    this.color = color;
326
    this.itemNumber = itemNumber;
327
    this.quantity = quantity;
328
    setQuantityIsSet(true);
329
    this.unfulfilledQuantity = unfulfilledQuantity;
330
    setUnfulfilledQuantityIsSet(true);
331
    this.createdAt = createdAt;
332
    setCreatedAtIsSet(true);
333
    this.unitPrice = unitPrice;
334
    setUnitPriceIsSet(true);
335
    this.fulfilled = fulfilled;
336
    setFulfilledIsSet(true);
4754 mandeep.dh 337
    this.codCount = codCount;
338
    setCodCountIsSet(true);
6821 amar.kumar 339
    this.availableQuantity = availableQuantity;
340
    setAvailableQuantityIsSet(true);
341
    this.reservedQuantity = reservedQuantity;
342
    setReservedQuantityIsSet(true);
343
    this.avgSales = avgSales;
344
    setAvgSalesIsSet(true);
345
    this.minStockLevel = minStockLevel;
346
    setMinStockLevelIsSet(true);
347
    this.numberOfDaysStock = numberOfDaysStock;
348
    setNumberOfDaysStockIsSet(true);
349
    this.suggestedQuantity = suggestedQuantity;
350
    setSuggestedQuantityIsSet(true);
351
    this.numberOfDaysInStock = numberOfDaysInStock;
352
    setNumberOfDaysInStockIsSet(true);
8182 amar.kumar 353
    this.rtoOrders = rtoOrders;
354
    setRtoOrdersIsSet(true);
6857 amar.kumar 355
    this.lastXdaysSale = lastXdaysSale;
6880 amar.kumar 356
    this.previouslyOrderedQty = previouslyOrderedQty;
357
    setPreviouslyOrderedQtyIsSet(true);
7672 rajveer 358
    this.nlc = nlc;
359
    setNlcIsSet(true);
4496 mandeep.dh 360
  }
361
 
362
  /**
363
   * Performs a deep copy on <i>other</i>.
364
   */
365
  public LineItem(LineItem other) {
366
    __isset_bit_vector.clear();
367
    __isset_bit_vector.or(other.__isset_bit_vector);
368
    this.orderId = other.orderId;
369
    this.itemId = other.itemId;
370
    if (other.isSetProductGroup()) {
371
      this.productGroup = other.productGroup;
372
    }
373
    if (other.isSetBrand()) {
374
      this.brand = other.brand;
375
    }
376
    if (other.isSetModelNumber()) {
377
      this.modelNumber = other.modelNumber;
378
    }
379
    if (other.isSetModelName()) {
380
      this.modelName = other.modelName;
381
    }
382
    if (other.isSetColor()) {
383
      this.color = other.color;
384
    }
385
    if (other.isSetItemNumber()) {
386
      this.itemNumber = other.itemNumber;
387
    }
388
    this.quantity = other.quantity;
389
    this.unfulfilledQuantity = other.unfulfilledQuantity;
390
    this.createdAt = other.createdAt;
391
    this.unitPrice = other.unitPrice;
392
    this.fulfilled = other.fulfilled;
4754 mandeep.dh 393
    this.codCount = other.codCount;
6821 amar.kumar 394
    this.availableQuantity = other.availableQuantity;
395
    this.reservedQuantity = other.reservedQuantity;
396
    this.avgSales = other.avgSales;
397
    this.minStockLevel = other.minStockLevel;
398
    this.numberOfDaysStock = other.numberOfDaysStock;
399
    this.suggestedQuantity = other.suggestedQuantity;
400
    this.numberOfDaysInStock = other.numberOfDaysInStock;
8182 amar.kumar 401
    this.rtoOrders = other.rtoOrders;
6857 amar.kumar 402
    if (other.isSetLastXdaysSale()) {
403
      this.lastXdaysSale = other.lastXdaysSale;
404
    }
6880 amar.kumar 405
    this.previouslyOrderedQty = other.previouslyOrderedQty;
7672 rajveer 406
    this.nlc = other.nlc;
4496 mandeep.dh 407
  }
408
 
409
  public LineItem deepCopy() {
410
    return new LineItem(this);
411
  }
412
 
413
  @Override
414
  public void clear() {
415
    setOrderIdIsSet(false);
416
    this.orderId = 0;
417
    setItemIdIsSet(false);
418
    this.itemId = 0;
419
    this.productGroup = null;
420
    this.brand = null;
421
    this.modelNumber = null;
422
    this.modelName = null;
423
    this.color = null;
424
    this.itemNumber = null;
425
    setQuantityIsSet(false);
426
    this.quantity = 0.0;
427
    setUnfulfilledQuantityIsSet(false);
428
    this.unfulfilledQuantity = 0.0;
429
    setCreatedAtIsSet(false);
430
    this.createdAt = 0;
431
    setUnitPriceIsSet(false);
432
    this.unitPrice = 0.0;
433
    setFulfilledIsSet(false);
434
    this.fulfilled = false;
4754 mandeep.dh 435
    setCodCountIsSet(false);
436
    this.codCount = 0;
6821 amar.kumar 437
    setAvailableQuantityIsSet(false);
438
    this.availableQuantity = 0;
439
    setReservedQuantityIsSet(false);
440
    this.reservedQuantity = 0;
441
    setAvgSalesIsSet(false);
442
    this.avgSales = 0.0;
443
    setMinStockLevelIsSet(false);
444
    this.minStockLevel = 0;
445
    setNumberOfDaysStockIsSet(false);
446
    this.numberOfDaysStock = 0;
447
    setSuggestedQuantityIsSet(false);
448
    this.suggestedQuantity = 0;
449
    setNumberOfDaysInStockIsSet(false);
450
    this.numberOfDaysInStock = 0;
8182 amar.kumar 451
    setRtoOrdersIsSet(false);
452
    this.rtoOrders = 0;
6857 amar.kumar 453
    this.lastXdaysSale = null;
6880 amar.kumar 454
    setPreviouslyOrderedQtyIsSet(false);
455
    this.previouslyOrderedQty = 0;
7672 rajveer 456
    setNlcIsSet(false);
457
    this.nlc = 0.0;
4496 mandeep.dh 458
  }
459
 
460
  public long getOrderId() {
461
    return this.orderId;
462
  }
463
 
464
  public void setOrderId(long orderId) {
465
    this.orderId = orderId;
466
    setOrderIdIsSet(true);
467
  }
468
 
469
  public void unsetOrderId() {
470
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
471
  }
472
 
473
  /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
474
  public boolean isSetOrderId() {
475
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
476
  }
477
 
478
  public void setOrderIdIsSet(boolean value) {
479
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
480
  }
481
 
482
  public long getItemId() {
483
    return this.itemId;
484
  }
485
 
486
  public void setItemId(long itemId) {
487
    this.itemId = itemId;
488
    setItemIdIsSet(true);
489
  }
490
 
491
  public void unsetItemId() {
492
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
493
  }
494
 
495
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
496
  public boolean isSetItemId() {
497
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
498
  }
499
 
500
  public void setItemIdIsSet(boolean value) {
501
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
502
  }
503
 
504
  public String getProductGroup() {
505
    return this.productGroup;
506
  }
507
 
508
  public void setProductGroup(String productGroup) {
509
    this.productGroup = productGroup;
510
  }
511
 
512
  public void unsetProductGroup() {
513
    this.productGroup = null;
514
  }
515
 
516
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
517
  public boolean isSetProductGroup() {
518
    return this.productGroup != null;
519
  }
520
 
521
  public void setProductGroupIsSet(boolean value) {
522
    if (!value) {
523
      this.productGroup = null;
524
    }
525
  }
526
 
527
  public String getBrand() {
528
    return this.brand;
529
  }
530
 
531
  public void setBrand(String brand) {
532
    this.brand = brand;
533
  }
534
 
535
  public void unsetBrand() {
536
    this.brand = null;
537
  }
538
 
539
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
540
  public boolean isSetBrand() {
541
    return this.brand != null;
542
  }
543
 
544
  public void setBrandIsSet(boolean value) {
545
    if (!value) {
546
      this.brand = null;
547
    }
548
  }
549
 
550
  public String getModelNumber() {
551
    return this.modelNumber;
552
  }
553
 
554
  public void setModelNumber(String modelNumber) {
555
    this.modelNumber = modelNumber;
556
  }
557
 
558
  public void unsetModelNumber() {
559
    this.modelNumber = null;
560
  }
561
 
562
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
563
  public boolean isSetModelNumber() {
564
    return this.modelNumber != null;
565
  }
566
 
567
  public void setModelNumberIsSet(boolean value) {
568
    if (!value) {
569
      this.modelNumber = null;
570
    }
571
  }
572
 
573
  public String getModelName() {
574
    return this.modelName;
575
  }
576
 
577
  public void setModelName(String modelName) {
578
    this.modelName = modelName;
579
  }
580
 
581
  public void unsetModelName() {
582
    this.modelName = null;
583
  }
584
 
585
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
586
  public boolean isSetModelName() {
587
    return this.modelName != null;
588
  }
589
 
590
  public void setModelNameIsSet(boolean value) {
591
    if (!value) {
592
      this.modelName = null;
593
    }
594
  }
595
 
596
  public String getColor() {
597
    return this.color;
598
  }
599
 
600
  public void setColor(String color) {
601
    this.color = color;
602
  }
603
 
604
  public void unsetColor() {
605
    this.color = null;
606
  }
607
 
608
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
609
  public boolean isSetColor() {
610
    return this.color != null;
611
  }
612
 
613
  public void setColorIsSet(boolean value) {
614
    if (!value) {
615
      this.color = null;
616
    }
617
  }
618
 
619
  public String getItemNumber() {
620
    return this.itemNumber;
621
  }
622
 
623
  public void setItemNumber(String itemNumber) {
624
    this.itemNumber = itemNumber;
625
  }
626
 
627
  public void unsetItemNumber() {
628
    this.itemNumber = null;
629
  }
630
 
631
  /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
632
  public boolean isSetItemNumber() {
633
    return this.itemNumber != null;
634
  }
635
 
636
  public void setItemNumberIsSet(boolean value) {
637
    if (!value) {
638
      this.itemNumber = null;
639
    }
640
  }
641
 
642
  public double getQuantity() {
643
    return this.quantity;
644
  }
645
 
646
  public void setQuantity(double quantity) {
647
    this.quantity = quantity;
648
    setQuantityIsSet(true);
649
  }
650
 
651
  public void unsetQuantity() {
652
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
653
  }
654
 
655
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
656
  public boolean isSetQuantity() {
657
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
658
  }
659
 
660
  public void setQuantityIsSet(boolean value) {
661
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
662
  }
663
 
664
  public double getUnfulfilledQuantity() {
665
    return this.unfulfilledQuantity;
666
  }
667
 
668
  public void setUnfulfilledQuantity(double unfulfilledQuantity) {
669
    this.unfulfilledQuantity = unfulfilledQuantity;
670
    setUnfulfilledQuantityIsSet(true);
671
  }
672
 
673
  public void unsetUnfulfilledQuantity() {
674
    __isset_bit_vector.clear(__UNFULFILLEDQUANTITY_ISSET_ID);
675
  }
676
 
677
  /** Returns true if field unfulfilledQuantity is set (has been assigned a value) and false otherwise */
678
  public boolean isSetUnfulfilledQuantity() {
679
    return __isset_bit_vector.get(__UNFULFILLEDQUANTITY_ISSET_ID);
680
  }
681
 
682
  public void setUnfulfilledQuantityIsSet(boolean value) {
683
    __isset_bit_vector.set(__UNFULFILLEDQUANTITY_ISSET_ID, value);
684
  }
685
 
686
  public long getCreatedAt() {
687
    return this.createdAt;
688
  }
689
 
690
  public void setCreatedAt(long createdAt) {
691
    this.createdAt = createdAt;
692
    setCreatedAtIsSet(true);
693
  }
694
 
695
  public void unsetCreatedAt() {
696
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
697
  }
698
 
699
  /** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
700
  public boolean isSetCreatedAt() {
701
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
702
  }
703
 
704
  public void setCreatedAtIsSet(boolean value) {
705
    __isset_bit_vector.set(__CREATEDAT_ISSET_ID, value);
706
  }
707
 
708
  public double getUnitPrice() {
709
    return this.unitPrice;
710
  }
711
 
712
  public void setUnitPrice(double unitPrice) {
713
    this.unitPrice = unitPrice;
714
    setUnitPriceIsSet(true);
715
  }
716
 
717
  public void unsetUnitPrice() {
718
    __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
719
  }
720
 
721
  /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
722
  public boolean isSetUnitPrice() {
723
    return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
724
  }
725
 
726
  public void setUnitPriceIsSet(boolean value) {
727
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
728
  }
729
 
730
  public boolean isFulfilled() {
731
    return this.fulfilled;
732
  }
733
 
734
  public void setFulfilled(boolean fulfilled) {
735
    this.fulfilled = fulfilled;
736
    setFulfilledIsSet(true);
737
  }
738
 
739
  public void unsetFulfilled() {
740
    __isset_bit_vector.clear(__FULFILLED_ISSET_ID);
741
  }
742
 
743
  /** Returns true if field fulfilled is set (has been assigned a value) and false otherwise */
744
  public boolean isSetFulfilled() {
745
    return __isset_bit_vector.get(__FULFILLED_ISSET_ID);
746
  }
747
 
748
  public void setFulfilledIsSet(boolean value) {
749
    __isset_bit_vector.set(__FULFILLED_ISSET_ID, value);
750
  }
751
 
4754 mandeep.dh 752
  public long getCodCount() {
753
    return this.codCount;
754
  }
755
 
756
  public void setCodCount(long codCount) {
757
    this.codCount = codCount;
758
    setCodCountIsSet(true);
759
  }
760
 
761
  public void unsetCodCount() {
762
    __isset_bit_vector.clear(__CODCOUNT_ISSET_ID);
763
  }
764
 
765
  /** Returns true if field codCount is set (has been assigned a value) and false otherwise */
766
  public boolean isSetCodCount() {
767
    return __isset_bit_vector.get(__CODCOUNT_ISSET_ID);
768
  }
769
 
770
  public void setCodCountIsSet(boolean value) {
771
    __isset_bit_vector.set(__CODCOUNT_ISSET_ID, value);
772
  }
773
 
6821 amar.kumar 774
  public long getAvailableQuantity() {
775
    return this.availableQuantity;
776
  }
777
 
778
  public void setAvailableQuantity(long availableQuantity) {
779
    this.availableQuantity = availableQuantity;
780
    setAvailableQuantityIsSet(true);
781
  }
782
 
783
  public void unsetAvailableQuantity() {
784
    __isset_bit_vector.clear(__AVAILABLEQUANTITY_ISSET_ID);
785
  }
786
 
787
  /** Returns true if field availableQuantity is set (has been assigned a value) and false otherwise */
788
  public boolean isSetAvailableQuantity() {
789
    return __isset_bit_vector.get(__AVAILABLEQUANTITY_ISSET_ID);
790
  }
791
 
792
  public void setAvailableQuantityIsSet(boolean value) {
793
    __isset_bit_vector.set(__AVAILABLEQUANTITY_ISSET_ID, value);
794
  }
795
 
796
  public long getReservedQuantity() {
797
    return this.reservedQuantity;
798
  }
799
 
800
  public void setReservedQuantity(long reservedQuantity) {
801
    this.reservedQuantity = reservedQuantity;
802
    setReservedQuantityIsSet(true);
803
  }
804
 
805
  public void unsetReservedQuantity() {
806
    __isset_bit_vector.clear(__RESERVEDQUANTITY_ISSET_ID);
807
  }
808
 
809
  /** Returns true if field reservedQuantity is set (has been assigned a value) and false otherwise */
810
  public boolean isSetReservedQuantity() {
811
    return __isset_bit_vector.get(__RESERVEDQUANTITY_ISSET_ID);
812
  }
813
 
814
  public void setReservedQuantityIsSet(boolean value) {
815
    __isset_bit_vector.set(__RESERVEDQUANTITY_ISSET_ID, value);
816
  }
817
 
818
  public double getAvgSales() {
819
    return this.avgSales;
820
  }
821
 
822
  public void setAvgSales(double avgSales) {
823
    this.avgSales = avgSales;
824
    setAvgSalesIsSet(true);
825
  }
826
 
827
  public void unsetAvgSales() {
828
    __isset_bit_vector.clear(__AVGSALES_ISSET_ID);
829
  }
830
 
831
  /** Returns true if field avgSales is set (has been assigned a value) and false otherwise */
832
  public boolean isSetAvgSales() {
833
    return __isset_bit_vector.get(__AVGSALES_ISSET_ID);
834
  }
835
 
836
  public void setAvgSalesIsSet(boolean value) {
837
    __isset_bit_vector.set(__AVGSALES_ISSET_ID, value);
838
  }
839
 
840
  public long getMinStockLevel() {
841
    return this.minStockLevel;
842
  }
843
 
844
  public void setMinStockLevel(long minStockLevel) {
845
    this.minStockLevel = minStockLevel;
846
    setMinStockLevelIsSet(true);
847
  }
848
 
849
  public void unsetMinStockLevel() {
850
    __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
851
  }
852
 
853
  /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
854
  public boolean isSetMinStockLevel() {
855
    return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
856
  }
857
 
858
  public void setMinStockLevelIsSet(boolean value) {
859
    __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
860
  }
861
 
862
  public long getNumberOfDaysStock() {
863
    return this.numberOfDaysStock;
864
  }
865
 
866
  public void setNumberOfDaysStock(long numberOfDaysStock) {
867
    this.numberOfDaysStock = numberOfDaysStock;
868
    setNumberOfDaysStockIsSet(true);
869
  }
870
 
871
  public void unsetNumberOfDaysStock() {
872
    __isset_bit_vector.clear(__NUMBEROFDAYSSTOCK_ISSET_ID);
873
  }
874
 
875
  /** Returns true if field numberOfDaysStock is set (has been assigned a value) and false otherwise */
876
  public boolean isSetNumberOfDaysStock() {
877
    return __isset_bit_vector.get(__NUMBEROFDAYSSTOCK_ISSET_ID);
878
  }
879
 
880
  public void setNumberOfDaysStockIsSet(boolean value) {
881
    __isset_bit_vector.set(__NUMBEROFDAYSSTOCK_ISSET_ID, value);
882
  }
883
 
884
  public long getSuggestedQuantity() {
885
    return this.suggestedQuantity;
886
  }
887
 
888
  public void setSuggestedQuantity(long suggestedQuantity) {
889
    this.suggestedQuantity = suggestedQuantity;
890
    setSuggestedQuantityIsSet(true);
891
  }
892
 
893
  public void unsetSuggestedQuantity() {
894
    __isset_bit_vector.clear(__SUGGESTEDQUANTITY_ISSET_ID);
895
  }
896
 
897
  /** Returns true if field suggestedQuantity is set (has been assigned a value) and false otherwise */
898
  public boolean isSetSuggestedQuantity() {
899
    return __isset_bit_vector.get(__SUGGESTEDQUANTITY_ISSET_ID);
900
  }
901
 
902
  public void setSuggestedQuantityIsSet(boolean value) {
903
    __isset_bit_vector.set(__SUGGESTEDQUANTITY_ISSET_ID, value);
904
  }
905
 
906
  public long getNumberOfDaysInStock() {
907
    return this.numberOfDaysInStock;
908
  }
909
 
910
  public void setNumberOfDaysInStock(long numberOfDaysInStock) {
911
    this.numberOfDaysInStock = numberOfDaysInStock;
912
    setNumberOfDaysInStockIsSet(true);
913
  }
914
 
915
  public void unsetNumberOfDaysInStock() {
916
    __isset_bit_vector.clear(__NUMBEROFDAYSINSTOCK_ISSET_ID);
917
  }
918
 
919
  /** Returns true if field numberOfDaysInStock is set (has been assigned a value) and false otherwise */
920
  public boolean isSetNumberOfDaysInStock() {
921
    return __isset_bit_vector.get(__NUMBEROFDAYSINSTOCK_ISSET_ID);
922
  }
923
 
924
  public void setNumberOfDaysInStockIsSet(boolean value) {
925
    __isset_bit_vector.set(__NUMBEROFDAYSINSTOCK_ISSET_ID, value);
926
  }
927
 
8182 amar.kumar 928
  public long getRtoOrders() {
929
    return this.rtoOrders;
930
  }
931
 
932
  public void setRtoOrders(long rtoOrders) {
933
    this.rtoOrders = rtoOrders;
934
    setRtoOrdersIsSet(true);
935
  }
936
 
937
  public void unsetRtoOrders() {
938
    __isset_bit_vector.clear(__RTOORDERS_ISSET_ID);
939
  }
940
 
941
  /** Returns true if field rtoOrders is set (has been assigned a value) and false otherwise */
942
  public boolean isSetRtoOrders() {
943
    return __isset_bit_vector.get(__RTOORDERS_ISSET_ID);
944
  }
945
 
946
  public void setRtoOrdersIsSet(boolean value) {
947
    __isset_bit_vector.set(__RTOORDERS_ISSET_ID, value);
948
  }
949
 
6857 amar.kumar 950
  public String getLastXdaysSale() {
951
    return this.lastXdaysSale;
952
  }
953
 
954
  public void setLastXdaysSale(String lastXdaysSale) {
955
    this.lastXdaysSale = lastXdaysSale;
956
  }
957
 
958
  public void unsetLastXdaysSale() {
959
    this.lastXdaysSale = null;
960
  }
961
 
962
  /** Returns true if field lastXdaysSale is set (has been assigned a value) and false otherwise */
963
  public boolean isSetLastXdaysSale() {
964
    return this.lastXdaysSale != null;
965
  }
966
 
967
  public void setLastXdaysSaleIsSet(boolean value) {
968
    if (!value) {
969
      this.lastXdaysSale = null;
970
    }
971
  }
972
 
6880 amar.kumar 973
  public long getPreviouslyOrderedQty() {
974
    return this.previouslyOrderedQty;
975
  }
976
 
977
  public void setPreviouslyOrderedQty(long previouslyOrderedQty) {
978
    this.previouslyOrderedQty = previouslyOrderedQty;
979
    setPreviouslyOrderedQtyIsSet(true);
980
  }
981
 
982
  public void unsetPreviouslyOrderedQty() {
983
    __isset_bit_vector.clear(__PREVIOUSLYORDEREDQTY_ISSET_ID);
984
  }
985
 
986
  /** Returns true if field previouslyOrderedQty is set (has been assigned a value) and false otherwise */
987
  public boolean isSetPreviouslyOrderedQty() {
988
    return __isset_bit_vector.get(__PREVIOUSLYORDEREDQTY_ISSET_ID);
989
  }
990
 
991
  public void setPreviouslyOrderedQtyIsSet(boolean value) {
992
    __isset_bit_vector.set(__PREVIOUSLYORDEREDQTY_ISSET_ID, value);
993
  }
994
 
7672 rajveer 995
  public double getNlc() {
996
    return this.nlc;
997
  }
998
 
999
  public void setNlc(double nlc) {
1000
    this.nlc = nlc;
1001
    setNlcIsSet(true);
1002
  }
1003
 
1004
  public void unsetNlc() {
1005
    __isset_bit_vector.clear(__NLC_ISSET_ID);
1006
  }
1007
 
1008
  /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
1009
  public boolean isSetNlc() {
1010
    return __isset_bit_vector.get(__NLC_ISSET_ID);
1011
  }
1012
 
1013
  public void setNlcIsSet(boolean value) {
1014
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
1015
  }
1016
 
4496 mandeep.dh 1017
  public void setFieldValue(_Fields field, Object value) {
1018
    switch (field) {
1019
    case ORDER_ID:
1020
      if (value == null) {
1021
        unsetOrderId();
1022
      } else {
1023
        setOrderId((Long)value);
1024
      }
1025
      break;
1026
 
1027
    case ITEM_ID:
1028
      if (value == null) {
1029
        unsetItemId();
1030
      } else {
1031
        setItemId((Long)value);
1032
      }
1033
      break;
1034
 
1035
    case PRODUCT_GROUP:
1036
      if (value == null) {
1037
        unsetProductGroup();
1038
      } else {
1039
        setProductGroup((String)value);
1040
      }
1041
      break;
1042
 
1043
    case BRAND:
1044
      if (value == null) {
1045
        unsetBrand();
1046
      } else {
1047
        setBrand((String)value);
1048
      }
1049
      break;
1050
 
1051
    case MODEL_NUMBER:
1052
      if (value == null) {
1053
        unsetModelNumber();
1054
      } else {
1055
        setModelNumber((String)value);
1056
      }
1057
      break;
1058
 
1059
    case MODEL_NAME:
1060
      if (value == null) {
1061
        unsetModelName();
1062
      } else {
1063
        setModelName((String)value);
1064
      }
1065
      break;
1066
 
1067
    case COLOR:
1068
      if (value == null) {
1069
        unsetColor();
1070
      } else {
1071
        setColor((String)value);
1072
      }
1073
      break;
1074
 
1075
    case ITEM_NUMBER:
1076
      if (value == null) {
1077
        unsetItemNumber();
1078
      } else {
1079
        setItemNumber((String)value);
1080
      }
1081
      break;
1082
 
1083
    case QUANTITY:
1084
      if (value == null) {
1085
        unsetQuantity();
1086
      } else {
1087
        setQuantity((Double)value);
1088
      }
1089
      break;
1090
 
1091
    case UNFULFILLED_QUANTITY:
1092
      if (value == null) {
1093
        unsetUnfulfilledQuantity();
1094
      } else {
1095
        setUnfulfilledQuantity((Double)value);
1096
      }
1097
      break;
1098
 
1099
    case CREATED_AT:
1100
      if (value == null) {
1101
        unsetCreatedAt();
1102
      } else {
1103
        setCreatedAt((Long)value);
1104
      }
1105
      break;
1106
 
1107
    case UNIT_PRICE:
1108
      if (value == null) {
1109
        unsetUnitPrice();
1110
      } else {
1111
        setUnitPrice((Double)value);
1112
      }
1113
      break;
1114
 
1115
    case FULFILLED:
1116
      if (value == null) {
1117
        unsetFulfilled();
1118
      } else {
1119
        setFulfilled((Boolean)value);
1120
      }
1121
      break;
1122
 
4754 mandeep.dh 1123
    case COD_COUNT:
1124
      if (value == null) {
1125
        unsetCodCount();
1126
      } else {
1127
        setCodCount((Long)value);
1128
      }
1129
      break;
1130
 
6821 amar.kumar 1131
    case AVAILABLE_QUANTITY:
1132
      if (value == null) {
1133
        unsetAvailableQuantity();
1134
      } else {
1135
        setAvailableQuantity((Long)value);
1136
      }
1137
      break;
1138
 
1139
    case RESERVED_QUANTITY:
1140
      if (value == null) {
1141
        unsetReservedQuantity();
1142
      } else {
1143
        setReservedQuantity((Long)value);
1144
      }
1145
      break;
1146
 
1147
    case AVG_SALES:
1148
      if (value == null) {
1149
        unsetAvgSales();
1150
      } else {
1151
        setAvgSales((Double)value);
1152
      }
1153
      break;
1154
 
1155
    case MIN_STOCK_LEVEL:
1156
      if (value == null) {
1157
        unsetMinStockLevel();
1158
      } else {
1159
        setMinStockLevel((Long)value);
1160
      }
1161
      break;
1162
 
1163
    case NUMBER_OF_DAYS_STOCK:
1164
      if (value == null) {
1165
        unsetNumberOfDaysStock();
1166
      } else {
1167
        setNumberOfDaysStock((Long)value);
1168
      }
1169
      break;
1170
 
1171
    case SUGGESTED_QUANTITY:
1172
      if (value == null) {
1173
        unsetSuggestedQuantity();
1174
      } else {
1175
        setSuggestedQuantity((Long)value);
1176
      }
1177
      break;
1178
 
1179
    case NUMBER_OF_DAYS_IN_STOCK:
1180
      if (value == null) {
1181
        unsetNumberOfDaysInStock();
1182
      } else {
1183
        setNumberOfDaysInStock((Long)value);
1184
      }
1185
      break;
1186
 
8182 amar.kumar 1187
    case RTO_ORDERS:
1188
      if (value == null) {
1189
        unsetRtoOrders();
1190
      } else {
1191
        setRtoOrders((Long)value);
1192
      }
1193
      break;
1194
 
6857 amar.kumar 1195
    case LAST_XDAYS_SALE:
1196
      if (value == null) {
1197
        unsetLastXdaysSale();
1198
      } else {
1199
        setLastXdaysSale((String)value);
1200
      }
1201
      break;
1202
 
6880 amar.kumar 1203
    case PREVIOUSLY_ORDERED_QTY:
1204
      if (value == null) {
1205
        unsetPreviouslyOrderedQty();
1206
      } else {
1207
        setPreviouslyOrderedQty((Long)value);
1208
      }
1209
      break;
1210
 
7672 rajveer 1211
    case NLC:
1212
      if (value == null) {
1213
        unsetNlc();
1214
      } else {
1215
        setNlc((Double)value);
1216
      }
1217
      break;
1218
 
4496 mandeep.dh 1219
    }
1220
  }
1221
 
1222
  public Object getFieldValue(_Fields field) {
1223
    switch (field) {
1224
    case ORDER_ID:
1225
      return Long.valueOf(getOrderId());
1226
 
1227
    case ITEM_ID:
1228
      return Long.valueOf(getItemId());
1229
 
1230
    case PRODUCT_GROUP:
1231
      return getProductGroup();
1232
 
1233
    case BRAND:
1234
      return getBrand();
1235
 
1236
    case MODEL_NUMBER:
1237
      return getModelNumber();
1238
 
1239
    case MODEL_NAME:
1240
      return getModelName();
1241
 
1242
    case COLOR:
1243
      return getColor();
1244
 
1245
    case ITEM_NUMBER:
1246
      return getItemNumber();
1247
 
1248
    case QUANTITY:
1249
      return Double.valueOf(getQuantity());
1250
 
1251
    case UNFULFILLED_QUANTITY:
1252
      return Double.valueOf(getUnfulfilledQuantity());
1253
 
1254
    case CREATED_AT:
1255
      return Long.valueOf(getCreatedAt());
1256
 
1257
    case UNIT_PRICE:
1258
      return Double.valueOf(getUnitPrice());
1259
 
1260
    case FULFILLED:
1261
      return Boolean.valueOf(isFulfilled());
1262
 
4754 mandeep.dh 1263
    case COD_COUNT:
1264
      return Long.valueOf(getCodCount());
1265
 
6821 amar.kumar 1266
    case AVAILABLE_QUANTITY:
1267
      return Long.valueOf(getAvailableQuantity());
1268
 
1269
    case RESERVED_QUANTITY:
1270
      return Long.valueOf(getReservedQuantity());
1271
 
1272
    case AVG_SALES:
1273
      return Double.valueOf(getAvgSales());
1274
 
1275
    case MIN_STOCK_LEVEL:
1276
      return Long.valueOf(getMinStockLevel());
1277
 
1278
    case NUMBER_OF_DAYS_STOCK:
1279
      return Long.valueOf(getNumberOfDaysStock());
1280
 
1281
    case SUGGESTED_QUANTITY:
1282
      return Long.valueOf(getSuggestedQuantity());
1283
 
1284
    case NUMBER_OF_DAYS_IN_STOCK:
1285
      return Long.valueOf(getNumberOfDaysInStock());
1286
 
8182 amar.kumar 1287
    case RTO_ORDERS:
1288
      return Long.valueOf(getRtoOrders());
1289
 
6857 amar.kumar 1290
    case LAST_XDAYS_SALE:
1291
      return getLastXdaysSale();
1292
 
6880 amar.kumar 1293
    case PREVIOUSLY_ORDERED_QTY:
1294
      return Long.valueOf(getPreviouslyOrderedQty());
1295
 
7672 rajveer 1296
    case NLC:
1297
      return Double.valueOf(getNlc());
1298
 
4496 mandeep.dh 1299
    }
1300
    throw new IllegalStateException();
1301
  }
1302
 
1303
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1304
  public boolean isSet(_Fields field) {
1305
    if (field == null) {
1306
      throw new IllegalArgumentException();
1307
    }
1308
 
1309
    switch (field) {
1310
    case ORDER_ID:
1311
      return isSetOrderId();
1312
    case ITEM_ID:
1313
      return isSetItemId();
1314
    case PRODUCT_GROUP:
1315
      return isSetProductGroup();
1316
    case BRAND:
1317
      return isSetBrand();
1318
    case MODEL_NUMBER:
1319
      return isSetModelNumber();
1320
    case MODEL_NAME:
1321
      return isSetModelName();
1322
    case COLOR:
1323
      return isSetColor();
1324
    case ITEM_NUMBER:
1325
      return isSetItemNumber();
1326
    case QUANTITY:
1327
      return isSetQuantity();
1328
    case UNFULFILLED_QUANTITY:
1329
      return isSetUnfulfilledQuantity();
1330
    case CREATED_AT:
1331
      return isSetCreatedAt();
1332
    case UNIT_PRICE:
1333
      return isSetUnitPrice();
1334
    case FULFILLED:
1335
      return isSetFulfilled();
4754 mandeep.dh 1336
    case COD_COUNT:
1337
      return isSetCodCount();
6821 amar.kumar 1338
    case AVAILABLE_QUANTITY:
1339
      return isSetAvailableQuantity();
1340
    case RESERVED_QUANTITY:
1341
      return isSetReservedQuantity();
1342
    case AVG_SALES:
1343
      return isSetAvgSales();
1344
    case MIN_STOCK_LEVEL:
1345
      return isSetMinStockLevel();
1346
    case NUMBER_OF_DAYS_STOCK:
1347
      return isSetNumberOfDaysStock();
1348
    case SUGGESTED_QUANTITY:
1349
      return isSetSuggestedQuantity();
1350
    case NUMBER_OF_DAYS_IN_STOCK:
1351
      return isSetNumberOfDaysInStock();
8182 amar.kumar 1352
    case RTO_ORDERS:
1353
      return isSetRtoOrders();
6857 amar.kumar 1354
    case LAST_XDAYS_SALE:
1355
      return isSetLastXdaysSale();
6880 amar.kumar 1356
    case PREVIOUSLY_ORDERED_QTY:
1357
      return isSetPreviouslyOrderedQty();
7672 rajveer 1358
    case NLC:
1359
      return isSetNlc();
4496 mandeep.dh 1360
    }
1361
    throw new IllegalStateException();
1362
  }
1363
 
1364
  @Override
1365
  public boolean equals(Object that) {
1366
    if (that == null)
1367
      return false;
1368
    if (that instanceof LineItem)
1369
      return this.equals((LineItem)that);
1370
    return false;
1371
  }
1372
 
1373
  public boolean equals(LineItem that) {
1374
    if (that == null)
1375
      return false;
1376
 
1377
    boolean this_present_orderId = true;
1378
    boolean that_present_orderId = true;
1379
    if (this_present_orderId || that_present_orderId) {
1380
      if (!(this_present_orderId && that_present_orderId))
1381
        return false;
1382
      if (this.orderId != that.orderId)
1383
        return false;
1384
    }
1385
 
1386
    boolean this_present_itemId = true;
1387
    boolean that_present_itemId = true;
1388
    if (this_present_itemId || that_present_itemId) {
1389
      if (!(this_present_itemId && that_present_itemId))
1390
        return false;
1391
      if (this.itemId != that.itemId)
1392
        return false;
1393
    }
1394
 
1395
    boolean this_present_productGroup = true && this.isSetProductGroup();
1396
    boolean that_present_productGroup = true && that.isSetProductGroup();
1397
    if (this_present_productGroup || that_present_productGroup) {
1398
      if (!(this_present_productGroup && that_present_productGroup))
1399
        return false;
1400
      if (!this.productGroup.equals(that.productGroup))
1401
        return false;
1402
    }
1403
 
1404
    boolean this_present_brand = true && this.isSetBrand();
1405
    boolean that_present_brand = true && that.isSetBrand();
1406
    if (this_present_brand || that_present_brand) {
1407
      if (!(this_present_brand && that_present_brand))
1408
        return false;
1409
      if (!this.brand.equals(that.brand))
1410
        return false;
1411
    }
1412
 
1413
    boolean this_present_modelNumber = true && this.isSetModelNumber();
1414
    boolean that_present_modelNumber = true && that.isSetModelNumber();
1415
    if (this_present_modelNumber || that_present_modelNumber) {
1416
      if (!(this_present_modelNumber && that_present_modelNumber))
1417
        return false;
1418
      if (!this.modelNumber.equals(that.modelNumber))
1419
        return false;
1420
    }
1421
 
1422
    boolean this_present_modelName = true && this.isSetModelName();
1423
    boolean that_present_modelName = true && that.isSetModelName();
1424
    if (this_present_modelName || that_present_modelName) {
1425
      if (!(this_present_modelName && that_present_modelName))
1426
        return false;
1427
      if (!this.modelName.equals(that.modelName))
1428
        return false;
1429
    }
1430
 
1431
    boolean this_present_color = true && this.isSetColor();
1432
    boolean that_present_color = true && that.isSetColor();
1433
    if (this_present_color || that_present_color) {
1434
      if (!(this_present_color && that_present_color))
1435
        return false;
1436
      if (!this.color.equals(that.color))
1437
        return false;
1438
    }
1439
 
1440
    boolean this_present_itemNumber = true && this.isSetItemNumber();
1441
    boolean that_present_itemNumber = true && that.isSetItemNumber();
1442
    if (this_present_itemNumber || that_present_itemNumber) {
1443
      if (!(this_present_itemNumber && that_present_itemNumber))
1444
        return false;
1445
      if (!this.itemNumber.equals(that.itemNumber))
1446
        return false;
1447
    }
1448
 
1449
    boolean this_present_quantity = true;
1450
    boolean that_present_quantity = true;
1451
    if (this_present_quantity || that_present_quantity) {
1452
      if (!(this_present_quantity && that_present_quantity))
1453
        return false;
1454
      if (this.quantity != that.quantity)
1455
        return false;
1456
    }
1457
 
1458
    boolean this_present_unfulfilledQuantity = true;
1459
    boolean that_present_unfulfilledQuantity = true;
1460
    if (this_present_unfulfilledQuantity || that_present_unfulfilledQuantity) {
1461
      if (!(this_present_unfulfilledQuantity && that_present_unfulfilledQuantity))
1462
        return false;
1463
      if (this.unfulfilledQuantity != that.unfulfilledQuantity)
1464
        return false;
1465
    }
1466
 
1467
    boolean this_present_createdAt = true;
1468
    boolean that_present_createdAt = true;
1469
    if (this_present_createdAt || that_present_createdAt) {
1470
      if (!(this_present_createdAt && that_present_createdAt))
1471
        return false;
1472
      if (this.createdAt != that.createdAt)
1473
        return false;
1474
    }
1475
 
1476
    boolean this_present_unitPrice = true;
1477
    boolean that_present_unitPrice = true;
1478
    if (this_present_unitPrice || that_present_unitPrice) {
1479
      if (!(this_present_unitPrice && that_present_unitPrice))
1480
        return false;
1481
      if (this.unitPrice != that.unitPrice)
1482
        return false;
1483
    }
1484
 
1485
    boolean this_present_fulfilled = true;
1486
    boolean that_present_fulfilled = true;
1487
    if (this_present_fulfilled || that_present_fulfilled) {
1488
      if (!(this_present_fulfilled && that_present_fulfilled))
1489
        return false;
1490
      if (this.fulfilled != that.fulfilled)
1491
        return false;
1492
    }
1493
 
4754 mandeep.dh 1494
    boolean this_present_codCount = true;
1495
    boolean that_present_codCount = true;
1496
    if (this_present_codCount || that_present_codCount) {
1497
      if (!(this_present_codCount && that_present_codCount))
1498
        return false;
1499
      if (this.codCount != that.codCount)
1500
        return false;
1501
    }
1502
 
6821 amar.kumar 1503
    boolean this_present_availableQuantity = true;
1504
    boolean that_present_availableQuantity = true;
1505
    if (this_present_availableQuantity || that_present_availableQuantity) {
1506
      if (!(this_present_availableQuantity && that_present_availableQuantity))
1507
        return false;
1508
      if (this.availableQuantity != that.availableQuantity)
1509
        return false;
1510
    }
1511
 
1512
    boolean this_present_reservedQuantity = true;
1513
    boolean that_present_reservedQuantity = true;
1514
    if (this_present_reservedQuantity || that_present_reservedQuantity) {
1515
      if (!(this_present_reservedQuantity && that_present_reservedQuantity))
1516
        return false;
1517
      if (this.reservedQuantity != that.reservedQuantity)
1518
        return false;
1519
    }
1520
 
1521
    boolean this_present_avgSales = true;
1522
    boolean that_present_avgSales = true;
1523
    if (this_present_avgSales || that_present_avgSales) {
1524
      if (!(this_present_avgSales && that_present_avgSales))
1525
        return false;
1526
      if (this.avgSales != that.avgSales)
1527
        return false;
1528
    }
1529
 
1530
    boolean this_present_minStockLevel = true;
1531
    boolean that_present_minStockLevel = true;
1532
    if (this_present_minStockLevel || that_present_minStockLevel) {
1533
      if (!(this_present_minStockLevel && that_present_minStockLevel))
1534
        return false;
1535
      if (this.minStockLevel != that.minStockLevel)
1536
        return false;
1537
    }
1538
 
1539
    boolean this_present_numberOfDaysStock = true;
1540
    boolean that_present_numberOfDaysStock = true;
1541
    if (this_present_numberOfDaysStock || that_present_numberOfDaysStock) {
1542
      if (!(this_present_numberOfDaysStock && that_present_numberOfDaysStock))
1543
        return false;
1544
      if (this.numberOfDaysStock != that.numberOfDaysStock)
1545
        return false;
1546
    }
1547
 
1548
    boolean this_present_suggestedQuantity = true;
1549
    boolean that_present_suggestedQuantity = true;
1550
    if (this_present_suggestedQuantity || that_present_suggestedQuantity) {
1551
      if (!(this_present_suggestedQuantity && that_present_suggestedQuantity))
1552
        return false;
1553
      if (this.suggestedQuantity != that.suggestedQuantity)
1554
        return false;
1555
    }
1556
 
1557
    boolean this_present_numberOfDaysInStock = true;
1558
    boolean that_present_numberOfDaysInStock = true;
1559
    if (this_present_numberOfDaysInStock || that_present_numberOfDaysInStock) {
1560
      if (!(this_present_numberOfDaysInStock && that_present_numberOfDaysInStock))
1561
        return false;
1562
      if (this.numberOfDaysInStock != that.numberOfDaysInStock)
1563
        return false;
1564
    }
1565
 
8182 amar.kumar 1566
    boolean this_present_rtoOrders = true;
1567
    boolean that_present_rtoOrders = true;
1568
    if (this_present_rtoOrders || that_present_rtoOrders) {
1569
      if (!(this_present_rtoOrders && that_present_rtoOrders))
1570
        return false;
1571
      if (this.rtoOrders != that.rtoOrders)
1572
        return false;
1573
    }
1574
 
6857 amar.kumar 1575
    boolean this_present_lastXdaysSale = true && this.isSetLastXdaysSale();
1576
    boolean that_present_lastXdaysSale = true && that.isSetLastXdaysSale();
1577
    if (this_present_lastXdaysSale || that_present_lastXdaysSale) {
1578
      if (!(this_present_lastXdaysSale && that_present_lastXdaysSale))
1579
        return false;
1580
      if (!this.lastXdaysSale.equals(that.lastXdaysSale))
1581
        return false;
1582
    }
1583
 
6880 amar.kumar 1584
    boolean this_present_previouslyOrderedQty = true;
1585
    boolean that_present_previouslyOrderedQty = true;
1586
    if (this_present_previouslyOrderedQty || that_present_previouslyOrderedQty) {
1587
      if (!(this_present_previouslyOrderedQty && that_present_previouslyOrderedQty))
1588
        return false;
1589
      if (this.previouslyOrderedQty != that.previouslyOrderedQty)
1590
        return false;
1591
    }
1592
 
7672 rajveer 1593
    boolean this_present_nlc = true;
1594
    boolean that_present_nlc = true;
1595
    if (this_present_nlc || that_present_nlc) {
1596
      if (!(this_present_nlc && that_present_nlc))
1597
        return false;
1598
      if (this.nlc != that.nlc)
1599
        return false;
1600
    }
1601
 
4496 mandeep.dh 1602
    return true;
1603
  }
1604
 
1605
  @Override
1606
  public int hashCode() {
1607
    return 0;
1608
  }
1609
 
1610
  public int compareTo(LineItem other) {
1611
    if (!getClass().equals(other.getClass())) {
1612
      return getClass().getName().compareTo(other.getClass().getName());
1613
    }
1614
 
1615
    int lastComparison = 0;
1616
    LineItem typedOther = (LineItem)other;
1617
 
1618
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1619
    if (lastComparison != 0) {
1620
      return lastComparison;
1621
    }
1622
    if (isSetOrderId()) {
1623
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
1624
      if (lastComparison != 0) {
1625
        return lastComparison;
1626
      }
1627
    }
1628
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
1629
    if (lastComparison != 0) {
1630
      return lastComparison;
1631
    }
1632
    if (isSetItemId()) {
1633
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
1634
      if (lastComparison != 0) {
1635
        return lastComparison;
1636
      }
1637
    }
1638
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
1639
    if (lastComparison != 0) {
1640
      return lastComparison;
1641
    }
1642
    if (isSetProductGroup()) {
1643
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
1644
      if (lastComparison != 0) {
1645
        return lastComparison;
1646
      }
1647
    }
1648
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
1649
    if (lastComparison != 0) {
1650
      return lastComparison;
1651
    }
1652
    if (isSetBrand()) {
1653
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
1654
      if (lastComparison != 0) {
1655
        return lastComparison;
1656
      }
1657
    }
1658
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
1659
    if (lastComparison != 0) {
1660
      return lastComparison;
1661
    }
1662
    if (isSetModelNumber()) {
1663
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
1664
      if (lastComparison != 0) {
1665
        return lastComparison;
1666
      }
1667
    }
1668
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
1669
    if (lastComparison != 0) {
1670
      return lastComparison;
1671
    }
1672
    if (isSetModelName()) {
1673
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
1674
      if (lastComparison != 0) {
1675
        return lastComparison;
1676
      }
1677
    }
1678
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1679
    if (lastComparison != 0) {
1680
      return lastComparison;
1681
    }
1682
    if (isSetColor()) {
1683
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1684
      if (lastComparison != 0) {
1685
        return lastComparison;
1686
      }
1687
    }
1688
    lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
1689
    if (lastComparison != 0) {
1690
      return lastComparison;
1691
    }
1692
    if (isSetItemNumber()) {
1693
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
1694
      if (lastComparison != 0) {
1695
        return lastComparison;
1696
      }
1697
    }
1698
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
1699
    if (lastComparison != 0) {
1700
      return lastComparison;
1701
    }
1702
    if (isSetQuantity()) {
1703
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
1704
      if (lastComparison != 0) {
1705
        return lastComparison;
1706
      }
1707
    }
1708
    lastComparison = Boolean.valueOf(isSetUnfulfilledQuantity()).compareTo(typedOther.isSetUnfulfilledQuantity());
1709
    if (lastComparison != 0) {
1710
      return lastComparison;
1711
    }
1712
    if (isSetUnfulfilledQuantity()) {
1713
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unfulfilledQuantity, typedOther.unfulfilledQuantity);
1714
      if (lastComparison != 0) {
1715
        return lastComparison;
1716
      }
1717
    }
1718
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
1719
    if (lastComparison != 0) {
1720
      return lastComparison;
1721
    }
1722
    if (isSetCreatedAt()) {
1723
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
1724
      if (lastComparison != 0) {
1725
        return lastComparison;
1726
      }
1727
    }
1728
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
1729
    if (lastComparison != 0) {
1730
      return lastComparison;
1731
    }
1732
    if (isSetUnitPrice()) {
1733
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
1734
      if (lastComparison != 0) {
1735
        return lastComparison;
1736
      }
1737
    }
1738
    lastComparison = Boolean.valueOf(isSetFulfilled()).compareTo(typedOther.isSetFulfilled());
1739
    if (lastComparison != 0) {
1740
      return lastComparison;
1741
    }
1742
    if (isSetFulfilled()) {
1743
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilled, typedOther.fulfilled);
1744
      if (lastComparison != 0) {
1745
        return lastComparison;
1746
      }
1747
    }
4754 mandeep.dh 1748
    lastComparison = Boolean.valueOf(isSetCodCount()).compareTo(typedOther.isSetCodCount());
1749
    if (lastComparison != 0) {
1750
      return lastComparison;
1751
    }
1752
    if (isSetCodCount()) {
1753
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCount, typedOther.codCount);
1754
      if (lastComparison != 0) {
1755
        return lastComparison;
1756
      }
1757
    }
6821 amar.kumar 1758
    lastComparison = Boolean.valueOf(isSetAvailableQuantity()).compareTo(typedOther.isSetAvailableQuantity());
1759
    if (lastComparison != 0) {
1760
      return lastComparison;
1761
    }
1762
    if (isSetAvailableQuantity()) {
1763
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availableQuantity, typedOther.availableQuantity);
1764
      if (lastComparison != 0) {
1765
        return lastComparison;
1766
      }
1767
    }
1768
    lastComparison = Boolean.valueOf(isSetReservedQuantity()).compareTo(typedOther.isSetReservedQuantity());
1769
    if (lastComparison != 0) {
1770
      return lastComparison;
1771
    }
1772
    if (isSetReservedQuantity()) {
1773
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reservedQuantity, typedOther.reservedQuantity);
1774
      if (lastComparison != 0) {
1775
        return lastComparison;
1776
      }
1777
    }
1778
    lastComparison = Boolean.valueOf(isSetAvgSales()).compareTo(typedOther.isSetAvgSales());
1779
    if (lastComparison != 0) {
1780
      return lastComparison;
1781
    }
1782
    if (isSetAvgSales()) {
1783
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgSales, typedOther.avgSales);
1784
      if (lastComparison != 0) {
1785
        return lastComparison;
1786
      }
1787
    }
1788
    lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
1789
    if (lastComparison != 0) {
1790
      return lastComparison;
1791
    }
1792
    if (isSetMinStockLevel()) {
1793
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
1794
      if (lastComparison != 0) {
1795
        return lastComparison;
1796
      }
1797
    }
1798
    lastComparison = Boolean.valueOf(isSetNumberOfDaysStock()).compareTo(typedOther.isSetNumberOfDaysStock());
1799
    if (lastComparison != 0) {
1800
      return lastComparison;
1801
    }
1802
    if (isSetNumberOfDaysStock()) {
1803
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysStock, typedOther.numberOfDaysStock);
1804
      if (lastComparison != 0) {
1805
        return lastComparison;
1806
      }
1807
    }
1808
    lastComparison = Boolean.valueOf(isSetSuggestedQuantity()).compareTo(typedOther.isSetSuggestedQuantity());
1809
    if (lastComparison != 0) {
1810
      return lastComparison;
1811
    }
1812
    if (isSetSuggestedQuantity()) {
1813
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suggestedQuantity, typedOther.suggestedQuantity);
1814
      if (lastComparison != 0) {
1815
        return lastComparison;
1816
      }
1817
    }
1818
    lastComparison = Boolean.valueOf(isSetNumberOfDaysInStock()).compareTo(typedOther.isSetNumberOfDaysInStock());
1819
    if (lastComparison != 0) {
1820
      return lastComparison;
1821
    }
1822
    if (isSetNumberOfDaysInStock()) {
1823
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysInStock, typedOther.numberOfDaysInStock);
1824
      if (lastComparison != 0) {
1825
        return lastComparison;
1826
      }
1827
    }
8182 amar.kumar 1828
    lastComparison = Boolean.valueOf(isSetRtoOrders()).compareTo(typedOther.isSetRtoOrders());
1829
    if (lastComparison != 0) {
1830
      return lastComparison;
1831
    }
1832
    if (isSetRtoOrders()) {
1833
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rtoOrders, typedOther.rtoOrders);
1834
      if (lastComparison != 0) {
1835
        return lastComparison;
1836
      }
1837
    }
6857 amar.kumar 1838
    lastComparison = Boolean.valueOf(isSetLastXdaysSale()).compareTo(typedOther.isSetLastXdaysSale());
1839
    if (lastComparison != 0) {
1840
      return lastComparison;
1841
    }
1842
    if (isSetLastXdaysSale()) {
1843
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastXdaysSale, typedOther.lastXdaysSale);
1844
      if (lastComparison != 0) {
1845
        return lastComparison;
1846
      }
1847
    }
6880 amar.kumar 1848
    lastComparison = Boolean.valueOf(isSetPreviouslyOrderedQty()).compareTo(typedOther.isSetPreviouslyOrderedQty());
1849
    if (lastComparison != 0) {
1850
      return lastComparison;
1851
    }
1852
    if (isSetPreviouslyOrderedQty()) {
1853
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.previouslyOrderedQty, typedOther.previouslyOrderedQty);
1854
      if (lastComparison != 0) {
1855
        return lastComparison;
1856
      }
1857
    }
7672 rajveer 1858
    lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
1859
    if (lastComparison != 0) {
1860
      return lastComparison;
1861
    }
1862
    if (isSetNlc()) {
1863
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
1864
      if (lastComparison != 0) {
1865
        return lastComparison;
1866
      }
1867
    }
4496 mandeep.dh 1868
    return 0;
1869
  }
1870
 
1871
  public _Fields fieldForId(int fieldId) {
1872
    return _Fields.findByThriftId(fieldId);
1873
  }
1874
 
1875
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1876
    org.apache.thrift.protocol.TField field;
1877
    iprot.readStructBegin();
1878
    while (true)
1879
    {
1880
      field = iprot.readFieldBegin();
1881
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1882
        break;
1883
      }
1884
      switch (field.id) {
1885
        case 1: // ORDER_ID
1886
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1887
            this.orderId = iprot.readI64();
1888
            setOrderIdIsSet(true);
1889
          } else { 
1890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891
          }
1892
          break;
1893
        case 2: // ITEM_ID
1894
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1895
            this.itemId = iprot.readI64();
1896
            setItemIdIsSet(true);
1897
          } else { 
1898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1899
          }
1900
          break;
1901
        case 3: // PRODUCT_GROUP
1902
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1903
            this.productGroup = iprot.readString();
1904
          } else { 
1905
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1906
          }
1907
          break;
1908
        case 4: // BRAND
1909
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1910
            this.brand = iprot.readString();
1911
          } else { 
1912
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1913
          }
1914
          break;
1915
        case 5: // MODEL_NUMBER
1916
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1917
            this.modelNumber = iprot.readString();
1918
          } else { 
1919
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1920
          }
1921
          break;
1922
        case 6: // MODEL_NAME
1923
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1924
            this.modelName = iprot.readString();
1925
          } else { 
1926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1927
          }
1928
          break;
1929
        case 7: // COLOR
1930
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1931
            this.color = iprot.readString();
1932
          } else { 
1933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1934
          }
1935
          break;
1936
        case 8: // ITEM_NUMBER
1937
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1938
            this.itemNumber = iprot.readString();
1939
          } else { 
1940
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1941
          }
1942
          break;
1943
        case 9: // QUANTITY
1944
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1945
            this.quantity = iprot.readDouble();
1946
            setQuantityIsSet(true);
1947
          } else { 
1948
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1949
          }
1950
          break;
1951
        case 10: // UNFULFILLED_QUANTITY
1952
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1953
            this.unfulfilledQuantity = iprot.readDouble();
1954
            setUnfulfilledQuantityIsSet(true);
1955
          } else { 
1956
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1957
          }
1958
          break;
1959
        case 11: // CREATED_AT
1960
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1961
            this.createdAt = iprot.readI64();
1962
            setCreatedAtIsSet(true);
1963
          } else { 
1964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1965
          }
1966
          break;
1967
        case 12: // UNIT_PRICE
1968
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1969
            this.unitPrice = iprot.readDouble();
1970
            setUnitPriceIsSet(true);
1971
          } else { 
1972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1973
          }
1974
          break;
1975
        case 13: // FULFILLED
1976
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1977
            this.fulfilled = iprot.readBool();
1978
            setFulfilledIsSet(true);
1979
          } else { 
1980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1981
          }
1982
          break;
4754 mandeep.dh 1983
        case 14: // COD_COUNT
1984
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1985
            this.codCount = iprot.readI64();
1986
            setCodCountIsSet(true);
1987
          } else { 
1988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1989
          }
1990
          break;
6821 amar.kumar 1991
        case 15: // AVAILABLE_QUANTITY
1992
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1993
            this.availableQuantity = iprot.readI64();
1994
            setAvailableQuantityIsSet(true);
1995
          } else { 
1996
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1997
          }
1998
          break;
1999
        case 16: // RESERVED_QUANTITY
2000
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2001
            this.reservedQuantity = iprot.readI64();
2002
            setReservedQuantityIsSet(true);
2003
          } else { 
2004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2005
          }
2006
          break;
2007
        case 17: // AVG_SALES
2008
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2009
            this.avgSales = iprot.readDouble();
2010
            setAvgSalesIsSet(true);
2011
          } else { 
2012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2013
          }
2014
          break;
2015
        case 18: // MIN_STOCK_LEVEL
2016
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2017
            this.minStockLevel = iprot.readI64();
2018
            setMinStockLevelIsSet(true);
2019
          } else { 
2020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2021
          }
2022
          break;
2023
        case 19: // NUMBER_OF_DAYS_STOCK
2024
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2025
            this.numberOfDaysStock = iprot.readI64();
2026
            setNumberOfDaysStockIsSet(true);
2027
          } else { 
2028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2029
          }
2030
          break;
2031
        case 20: // SUGGESTED_QUANTITY
2032
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2033
            this.suggestedQuantity = iprot.readI64();
2034
            setSuggestedQuantityIsSet(true);
2035
          } else { 
2036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2037
          }
2038
          break;
2039
        case 21: // NUMBER_OF_DAYS_IN_STOCK
2040
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2041
            this.numberOfDaysInStock = iprot.readI64();
2042
            setNumberOfDaysInStockIsSet(true);
2043
          } else { 
2044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2045
          }
2046
          break;
8182 amar.kumar 2047
        case 22: // RTO_ORDERS
2048
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2049
            this.rtoOrders = iprot.readI64();
2050
            setRtoOrdersIsSet(true);
2051
          } else { 
2052
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2053
          }
2054
          break;
2055
        case 23: // LAST_XDAYS_SALE
6857 amar.kumar 2056
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2057
            this.lastXdaysSale = iprot.readString();
2058
          } else { 
2059
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2060
          }
2061
          break;
8182 amar.kumar 2062
        case 24: // PREVIOUSLY_ORDERED_QTY
6880 amar.kumar 2063
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2064
            this.previouslyOrderedQty = iprot.readI64();
2065
            setPreviouslyOrderedQtyIsSet(true);
2066
          } else { 
2067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2068
          }
2069
          break;
8182 amar.kumar 2070
        case 25: // NLC
7672 rajveer 2071
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2072
            this.nlc = iprot.readDouble();
2073
            setNlcIsSet(true);
2074
          } else { 
2075
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2076
          }
2077
          break;
4496 mandeep.dh 2078
        default:
2079
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2080
      }
2081
      iprot.readFieldEnd();
2082
    }
2083
    iprot.readStructEnd();
2084
    validate();
2085
  }
2086
 
2087
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2088
    validate();
2089
 
2090
    oprot.writeStructBegin(STRUCT_DESC);
2091
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
2092
    oprot.writeI64(this.orderId);
2093
    oprot.writeFieldEnd();
2094
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2095
    oprot.writeI64(this.itemId);
2096
    oprot.writeFieldEnd();
2097
    if (this.productGroup != null) {
2098
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
2099
      oprot.writeString(this.productGroup);
2100
      oprot.writeFieldEnd();
2101
    }
2102
    if (this.brand != null) {
2103
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
2104
      oprot.writeString(this.brand);
2105
      oprot.writeFieldEnd();
2106
    }
2107
    if (this.modelNumber != null) {
2108
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
2109
      oprot.writeString(this.modelNumber);
2110
      oprot.writeFieldEnd();
2111
    }
2112
    if (this.modelName != null) {
2113
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
2114
      oprot.writeString(this.modelName);
2115
      oprot.writeFieldEnd();
2116
    }
2117
    if (this.color != null) {
2118
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
2119
      oprot.writeString(this.color);
2120
      oprot.writeFieldEnd();
2121
    }
2122
    if (this.itemNumber != null) {
2123
      oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
2124
      oprot.writeString(this.itemNumber);
2125
      oprot.writeFieldEnd();
2126
    }
2127
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
2128
    oprot.writeDouble(this.quantity);
2129
    oprot.writeFieldEnd();
2130
    oprot.writeFieldBegin(UNFULFILLED_QUANTITY_FIELD_DESC);
2131
    oprot.writeDouble(this.unfulfilledQuantity);
2132
    oprot.writeFieldEnd();
2133
    oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);
2134
    oprot.writeI64(this.createdAt);
2135
    oprot.writeFieldEnd();
2136
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
2137
    oprot.writeDouble(this.unitPrice);
2138
    oprot.writeFieldEnd();
2139
    oprot.writeFieldBegin(FULFILLED_FIELD_DESC);
2140
    oprot.writeBool(this.fulfilled);
2141
    oprot.writeFieldEnd();
4754 mandeep.dh 2142
    oprot.writeFieldBegin(COD_COUNT_FIELD_DESC);
2143
    oprot.writeI64(this.codCount);
2144
    oprot.writeFieldEnd();
6821 amar.kumar 2145
    oprot.writeFieldBegin(AVAILABLE_QUANTITY_FIELD_DESC);
2146
    oprot.writeI64(this.availableQuantity);
2147
    oprot.writeFieldEnd();
2148
    oprot.writeFieldBegin(RESERVED_QUANTITY_FIELD_DESC);
2149
    oprot.writeI64(this.reservedQuantity);
2150
    oprot.writeFieldEnd();
2151
    oprot.writeFieldBegin(AVG_SALES_FIELD_DESC);
2152
    oprot.writeDouble(this.avgSales);
2153
    oprot.writeFieldEnd();
2154
    oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
2155
    oprot.writeI64(this.minStockLevel);
2156
    oprot.writeFieldEnd();
2157
    oprot.writeFieldBegin(NUMBER_OF_DAYS_STOCK_FIELD_DESC);
2158
    oprot.writeI64(this.numberOfDaysStock);
2159
    oprot.writeFieldEnd();
2160
    oprot.writeFieldBegin(SUGGESTED_QUANTITY_FIELD_DESC);
2161
    oprot.writeI64(this.suggestedQuantity);
2162
    oprot.writeFieldEnd();
2163
    oprot.writeFieldBegin(NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC);
2164
    oprot.writeI64(this.numberOfDaysInStock);
2165
    oprot.writeFieldEnd();
8182 amar.kumar 2166
    oprot.writeFieldBegin(RTO_ORDERS_FIELD_DESC);
2167
    oprot.writeI64(this.rtoOrders);
2168
    oprot.writeFieldEnd();
6857 amar.kumar 2169
    if (this.lastXdaysSale != null) {
2170
      oprot.writeFieldBegin(LAST_XDAYS_SALE_FIELD_DESC);
2171
      oprot.writeString(this.lastXdaysSale);
2172
      oprot.writeFieldEnd();
2173
    }
6880 amar.kumar 2174
    oprot.writeFieldBegin(PREVIOUSLY_ORDERED_QTY_FIELD_DESC);
2175
    oprot.writeI64(this.previouslyOrderedQty);
2176
    oprot.writeFieldEnd();
7672 rajveer 2177
    oprot.writeFieldBegin(NLC_FIELD_DESC);
2178
    oprot.writeDouble(this.nlc);
2179
    oprot.writeFieldEnd();
4496 mandeep.dh 2180
    oprot.writeFieldStop();
2181
    oprot.writeStructEnd();
2182
  }
2183
 
2184
  @Override
2185
  public String toString() {
2186
    StringBuilder sb = new StringBuilder("LineItem(");
2187
    boolean first = true;
2188
 
2189
    sb.append("orderId:");
2190
    sb.append(this.orderId);
2191
    first = false;
2192
    if (!first) sb.append(", ");
2193
    sb.append("itemId:");
2194
    sb.append(this.itemId);
2195
    first = false;
2196
    if (!first) sb.append(", ");
2197
    sb.append("productGroup:");
2198
    if (this.productGroup == null) {
2199
      sb.append("null");
2200
    } else {
2201
      sb.append(this.productGroup);
2202
    }
2203
    first = false;
2204
    if (!first) sb.append(", ");
2205
    sb.append("brand:");
2206
    if (this.brand == null) {
2207
      sb.append("null");
2208
    } else {
2209
      sb.append(this.brand);
2210
    }
2211
    first = false;
2212
    if (!first) sb.append(", ");
2213
    sb.append("modelNumber:");
2214
    if (this.modelNumber == null) {
2215
      sb.append("null");
2216
    } else {
2217
      sb.append(this.modelNumber);
2218
    }
2219
    first = false;
2220
    if (!first) sb.append(", ");
2221
    sb.append("modelName:");
2222
    if (this.modelName == null) {
2223
      sb.append("null");
2224
    } else {
2225
      sb.append(this.modelName);
2226
    }
2227
    first = false;
2228
    if (!first) sb.append(", ");
2229
    sb.append("color:");
2230
    if (this.color == null) {
2231
      sb.append("null");
2232
    } else {
2233
      sb.append(this.color);
2234
    }
2235
    first = false;
2236
    if (!first) sb.append(", ");
2237
    sb.append("itemNumber:");
2238
    if (this.itemNumber == null) {
2239
      sb.append("null");
2240
    } else {
2241
      sb.append(this.itemNumber);
2242
    }
2243
    first = false;
2244
    if (!first) sb.append(", ");
2245
    sb.append("quantity:");
2246
    sb.append(this.quantity);
2247
    first = false;
2248
    if (!first) sb.append(", ");
2249
    sb.append("unfulfilledQuantity:");
2250
    sb.append(this.unfulfilledQuantity);
2251
    first = false;
2252
    if (!first) sb.append(", ");
2253
    sb.append("createdAt:");
2254
    sb.append(this.createdAt);
2255
    first = false;
2256
    if (!first) sb.append(", ");
2257
    sb.append("unitPrice:");
2258
    sb.append(this.unitPrice);
2259
    first = false;
2260
    if (!first) sb.append(", ");
2261
    sb.append("fulfilled:");
2262
    sb.append(this.fulfilled);
2263
    first = false;
4754 mandeep.dh 2264
    if (!first) sb.append(", ");
2265
    sb.append("codCount:");
2266
    sb.append(this.codCount);
2267
    first = false;
6821 amar.kumar 2268
    if (!first) sb.append(", ");
2269
    sb.append("availableQuantity:");
2270
    sb.append(this.availableQuantity);
2271
    first = false;
2272
    if (!first) sb.append(", ");
2273
    sb.append("reservedQuantity:");
2274
    sb.append(this.reservedQuantity);
2275
    first = false;
2276
    if (!first) sb.append(", ");
2277
    sb.append("avgSales:");
2278
    sb.append(this.avgSales);
2279
    first = false;
2280
    if (!first) sb.append(", ");
2281
    sb.append("minStockLevel:");
2282
    sb.append(this.minStockLevel);
2283
    first = false;
2284
    if (!first) sb.append(", ");
2285
    sb.append("numberOfDaysStock:");
2286
    sb.append(this.numberOfDaysStock);
2287
    first = false;
2288
    if (!first) sb.append(", ");
2289
    sb.append("suggestedQuantity:");
2290
    sb.append(this.suggestedQuantity);
2291
    first = false;
2292
    if (!first) sb.append(", ");
2293
    sb.append("numberOfDaysInStock:");
2294
    sb.append(this.numberOfDaysInStock);
2295
    first = false;
6857 amar.kumar 2296
    if (!first) sb.append(", ");
8182 amar.kumar 2297
    sb.append("rtoOrders:");
2298
    sb.append(this.rtoOrders);
2299
    first = false;
2300
    if (!first) sb.append(", ");
6857 amar.kumar 2301
    sb.append("lastXdaysSale:");
2302
    if (this.lastXdaysSale == null) {
2303
      sb.append("null");
2304
    } else {
2305
      sb.append(this.lastXdaysSale);
2306
    }
2307
    first = false;
6880 amar.kumar 2308
    if (!first) sb.append(", ");
2309
    sb.append("previouslyOrderedQty:");
2310
    sb.append(this.previouslyOrderedQty);
2311
    first = false;
7672 rajveer 2312
    if (!first) sb.append(", ");
2313
    sb.append("nlc:");
2314
    sb.append(this.nlc);
2315
    first = false;
4496 mandeep.dh 2316
    sb.append(")");
2317
    return sb.toString();
2318
  }
2319
 
2320
  public void validate() throws org.apache.thrift.TException {
2321
    // check for required fields
2322
  }
2323
 
2324
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2325
    try {
2326
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2327
    } catch (org.apache.thrift.TException te) {
2328
      throw new java.io.IOException(te);
2329
    }
2330
  }
2331
 
2332
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2333
    try {
2334
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2335
      __isset_bit_vector = new BitSet(1);
2336
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2337
    } catch (org.apache.thrift.TException te) {
2338
      throw new java.io.IOException(te);
2339
    }
2340
  }
2341
 
2342
}
2343