Subversion Repositories SmartDukaan

Rev

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