Subversion Repositories SmartDukaan

Rev

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