Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
68 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
68 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.order;
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;
3430 rajveer 18
import java.nio.ByteBuffer;
68 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
3430 rajveer 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");
68 ashish 25
 
3430 rajveer 26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", 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("item_id", 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("model_number", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  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)6);
32
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("model_name", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField EXTRA_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("extra_info", 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 UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_price", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField UNIT_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
37
  private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("total_price", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
38
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transfer_price", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
39
  private static final org.apache.thrift.protocol.TField TOTAL_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("total_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
4658 mandeep.dh 40
  private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serial_number", org.apache.thrift.protocol.TType.STRING, (short)15);
3430 rajveer 41
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("item_number", org.apache.thrift.protocol.TType.STRING, (short)16);
4172 rajveer 42
  private static final org.apache.thrift.protocol.TField DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("dealText", org.apache.thrift.protocol.TType.STRING, (short)17);
4295 varun.gupt 43
  private static final org.apache.thrift.protocol.TField WARRANTRY_EXPIRY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("warrantry_expiry_timestamp", org.apache.thrift.protocol.TType.I64, (short)18);
6039 amit.gupta 44
  private static final org.apache.thrift.protocol.TField VAT_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("vatRate", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
68 ashish 45
 
3430 rajveer 46
  private long id; // required
47
  private long item_id; // required
48
  private String productGroup; // required
49
  private String brand; // required
50
  private String model_number; // required
51
  private String color; // required
52
  private String model_name; // required
53
  private String extra_info; // required
54
  private double quantity; // required
55
  private double unit_price; // required
56
  private double unit_weight; // required
57
  private double total_price; // required
58
  private double transfer_price; // required
59
  private double total_weight; // required
4658 mandeep.dh 60
  private String serial_number; // required
3430 rajveer 61
  private String item_number; // required
4172 rajveer 62
  private String dealText; // required
4295 varun.gupt 63
  private long warrantry_expiry_timestamp; // required
6039 amit.gupta 64
  private double vatRate; // required
68 ashish 65
 
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
483 rajveer 68
    ID((short)1, "id"),
697 chandransh 69
    ITEM_ID((short)2, "item_id"),
957 chandransh 70
    PRODUCT_GROUP((short)3, "productGroup"),
71
    BRAND((short)4, "brand"),
72
    MODEL_NUMBER((short)5, "model_number"),
73
    COLOR((short)6, "color"),
74
    MODEL_NAME((short)7, "model_name"),
75
    EXTRA_INFO((short)8, "extra_info"),
76
    QUANTITY((short)9, "quantity"),
77
    UNIT_PRICE((short)10, "unit_price"),
78
    UNIT_WEIGHT((short)11, "unit_weight"),
79
    TOTAL_PRICE((short)12, "total_price"),
1022 varun.gupt 80
    TRANSFER_PRICE((short)13, "transfer_price"),
2779 chandransh 81
    TOTAL_WEIGHT((short)14, "total_weight"),
4658 mandeep.dh 82
    SERIAL_NUMBER((short)15, "serial_number"),
4172 rajveer 83
    ITEM_NUMBER((short)16, "item_number"),
4295 varun.gupt 84
    DEAL_TEXT((short)17, "dealText"),
6039 amit.gupta 85
    WARRANTRY_EXPIRY_TIMESTAMP((short)18, "warrantry_expiry_timestamp"),
86
    VAT_RATE((short)19, "vatRate");
68 ashish 87
 
88
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89
 
90
    static {
91
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
92
        byName.put(field.getFieldName(), field);
93
      }
94
    }
95
 
96
    /**
97
     * Find the _Fields constant that matches fieldId, or null if its not found.
98
     */
99
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 100
      switch(fieldId) {
101
        case 1: // ID
102
          return ID;
103
        case 2: // ITEM_ID
104
          return ITEM_ID;
105
        case 3: // PRODUCT_GROUP
106
          return PRODUCT_GROUP;
107
        case 4: // BRAND
108
          return BRAND;
109
        case 5: // MODEL_NUMBER
110
          return MODEL_NUMBER;
111
        case 6: // COLOR
112
          return COLOR;
113
        case 7: // MODEL_NAME
114
          return MODEL_NAME;
115
        case 8: // EXTRA_INFO
116
          return EXTRA_INFO;
117
        case 9: // QUANTITY
118
          return QUANTITY;
119
        case 10: // UNIT_PRICE
120
          return UNIT_PRICE;
121
        case 11: // UNIT_WEIGHT
122
          return UNIT_WEIGHT;
123
        case 12: // TOTAL_PRICE
124
          return TOTAL_PRICE;
125
        case 13: // TRANSFER_PRICE
126
          return TRANSFER_PRICE;
127
        case 14: // TOTAL_WEIGHT
128
          return TOTAL_WEIGHT;
4658 mandeep.dh 129
        case 15: // SERIAL_NUMBER
130
          return SERIAL_NUMBER;
3430 rajveer 131
        case 16: // ITEM_NUMBER
132
          return ITEM_NUMBER;
4172 rajveer 133
        case 17: // DEAL_TEXT
134
          return DEAL_TEXT;
4295 varun.gupt 135
        case 18: // WARRANTRY_EXPIRY_TIMESTAMP
136
          return WARRANTRY_EXPIRY_TIMESTAMP;
6039 amit.gupta 137
        case 19: // VAT_RATE
138
          return VAT_RATE;
3430 rajveer 139
        default:
140
          return null;
141
      }
68 ashish 142
    }
143
 
144
    /**
145
     * Find the _Fields constant that matches fieldId, throwing an exception
146
     * if it is not found.
147
     */
148
    public static _Fields findByThriftIdOrThrow(int fieldId) {
149
      _Fields fields = findByThriftId(fieldId);
150
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
151
      return fields;
152
    }
153
 
154
    /**
155
     * Find the _Fields constant that matches name, or null if its not found.
156
     */
157
    public static _Fields findByName(String name) {
158
      return byName.get(name);
159
    }
160
 
161
    private final short _thriftId;
162
    private final String _fieldName;
163
 
164
    _Fields(short thriftId, String fieldName) {
165
      _thriftId = thriftId;
166
      _fieldName = fieldName;
167
    }
168
 
169
    public short getThriftFieldId() {
170
      return _thriftId;
171
    }
172
 
173
    public String getFieldName() {
174
      return _fieldName;
175
    }
176
  }
177
 
178
  // isset id assignments
179
  private static final int __ID_ISSET_ID = 0;
697 chandransh 180
  private static final int __ITEM_ID_ISSET_ID = 1;
181
  private static final int __QUANTITY_ISSET_ID = 2;
182
  private static final int __UNIT_PRICE_ISSET_ID = 3;
183
  private static final int __UNIT_WEIGHT_ISSET_ID = 4;
184
  private static final int __TOTAL_PRICE_ISSET_ID = 5;
1022 varun.gupt 185
  private static final int __TRANSFER_PRICE_ISSET_ID = 6;
186
  private static final int __TOTAL_WEIGHT_ISSET_ID = 7;
4658 mandeep.dh 187
  private static final int __WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID = 8;
6039 amit.gupta 188
  private static final int __VATRATE_ISSET_ID = 9;
189
  private BitSet __isset_bit_vector = new BitSet(10);
68 ashish 190
 
3430 rajveer 191
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 192
  static {
3430 rajveer 193
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
194
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
195
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
196
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
198
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
200
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
202
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("model_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
204
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
206
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("model_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
207
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
208
    tmpMap.put(_Fields.EXTRA_INFO, new org.apache.thrift.meta_data.FieldMetaData("extra_info", org.apache.thrift.TFieldRequirementType.DEFAULT, 
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
210
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
212
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unit_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
214
    tmpMap.put(_Fields.UNIT_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("unit_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
216
    tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("total_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
218
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transfer_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
220
    tmpMap.put(_Fields.TOTAL_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("total_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
4658 mandeep.dh 222
    tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serial_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 224
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("item_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4172 rajveer 226
    tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4295 varun.gupt 228
    tmpMap.put(_Fields.WARRANTRY_EXPIRY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("warrantry_expiry_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6039 amit.gupta 230
    tmpMap.put(_Fields.VAT_RATE, new org.apache.thrift.meta_data.FieldMetaData("vatRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
3430 rajveer 232
    metaDataMap = Collections.unmodifiableMap(tmpMap);
233
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
68 ashish 234
  }
235
 
236
  public LineItem() {
237
  }
238
 
239
  public LineItem(
240
    long id,
697 chandransh 241
    long item_id,
957 chandransh 242
    String productGroup,
483 rajveer 243
    String brand,
244
    String model_number,
957 chandransh 245
    String color,
483 rajveer 246
    String model_name,
247
    String extra_info,
248
    double quantity,
249
    double unit_price,
250
    double unit_weight,
251
    double total_price,
1022 varun.gupt 252
    double transfer_price,
4295 varun.gupt 253
    double total_weight,
6039 amit.gupta 254
    long warrantry_expiry_timestamp,
255
    double vatRate)
68 ashish 256
  {
257
    this();
258
    this.id = id;
259
    setIdIsSet(true);
697 chandransh 260
    this.item_id = item_id;
261
    setItem_idIsSet(true);
957 chandransh 262
    this.productGroup = productGroup;
483 rajveer 263
    this.brand = brand;
264
    this.model_number = model_number;
957 chandransh 265
    this.color = color;
483 rajveer 266
    this.model_name = model_name;
267
    this.extra_info = extra_info;
268
    this.quantity = quantity;
269
    setQuantityIsSet(true);
270
    this.unit_price = unit_price;
271
    setUnit_priceIsSet(true);
272
    this.unit_weight = unit_weight;
273
    setUnit_weightIsSet(true);
274
    this.total_price = total_price;
275
    setTotal_priceIsSet(true);
1022 varun.gupt 276
    this.transfer_price = transfer_price;
277
    setTransfer_priceIsSet(true);
483 rajveer 278
    this.total_weight = total_weight;
279
    setTotal_weightIsSet(true);
4295 varun.gupt 280
    this.warrantry_expiry_timestamp = warrantry_expiry_timestamp;
281
    setWarrantry_expiry_timestampIsSet(true);
6039 amit.gupta 282
    this.vatRate = vatRate;
283
    setVatRateIsSet(true);
68 ashish 284
  }
285
 
286
  /**
287
   * Performs a deep copy on <i>other</i>.
288
   */
289
  public LineItem(LineItem other) {
290
    __isset_bit_vector.clear();
291
    __isset_bit_vector.or(other.__isset_bit_vector);
292
    this.id = other.id;
697 chandransh 293
    this.item_id = other.item_id;
957 chandransh 294
    if (other.isSetProductGroup()) {
295
      this.productGroup = other.productGroup;
296
    }
483 rajveer 297
    if (other.isSetBrand()) {
298
      this.brand = other.brand;
299
    }
300
    if (other.isSetModel_number()) {
301
      this.model_number = other.model_number;
302
    }
957 chandransh 303
    if (other.isSetColor()) {
304
      this.color = other.color;
305
    }
483 rajveer 306
    if (other.isSetModel_name()) {
307
      this.model_name = other.model_name;
308
    }
309
    if (other.isSetExtra_info()) {
310
      this.extra_info = other.extra_info;
311
    }
312
    this.quantity = other.quantity;
313
    this.unit_price = other.unit_price;
314
    this.unit_weight = other.unit_weight;
315
    this.total_price = other.total_price;
1022 varun.gupt 316
    this.transfer_price = other.transfer_price;
483 rajveer 317
    this.total_weight = other.total_weight;
4658 mandeep.dh 318
    if (other.isSetSerial_number()) {
319
      this.serial_number = other.serial_number;
320
    }
2779 chandransh 321
    if (other.isSetItem_number()) {
322
      this.item_number = other.item_number;
323
    }
4172 rajveer 324
    if (other.isSetDealText()) {
325
      this.dealText = other.dealText;
326
    }
4295 varun.gupt 327
    this.warrantry_expiry_timestamp = other.warrantry_expiry_timestamp;
6039 amit.gupta 328
    this.vatRate = other.vatRate;
68 ashish 329
  }
330
 
331
  public LineItem deepCopy() {
332
    return new LineItem(this);
333
  }
334
 
3430 rajveer 335
  @Override
336
  public void clear() {
337
    setIdIsSet(false);
338
    this.id = 0;
339
    setItem_idIsSet(false);
340
    this.item_id = 0;
341
    this.productGroup = null;
342
    this.brand = null;
343
    this.model_number = null;
344
    this.color = null;
345
    this.model_name = null;
346
    this.extra_info = null;
347
    setQuantityIsSet(false);
348
    this.quantity = 0.0;
349
    setUnit_priceIsSet(false);
350
    this.unit_price = 0.0;
351
    setUnit_weightIsSet(false);
352
    this.unit_weight = 0.0;
353
    setTotal_priceIsSet(false);
354
    this.total_price = 0.0;
355
    setTransfer_priceIsSet(false);
356
    this.transfer_price = 0.0;
357
    setTotal_weightIsSet(false);
358
    this.total_weight = 0.0;
4658 mandeep.dh 359
    this.serial_number = null;
3430 rajveer 360
    this.item_number = null;
4172 rajveer 361
    this.dealText = null;
4295 varun.gupt 362
    setWarrantry_expiry_timestampIsSet(false);
363
    this.warrantry_expiry_timestamp = 0;
6039 amit.gupta 364
    setVatRateIsSet(false);
365
    this.vatRate = 0.0;
68 ashish 366
  }
367
 
483 rajveer 368
  public long getId() {
369
    return this.id;
68 ashish 370
  }
371
 
3430 rajveer 372
  public void setId(long id) {
483 rajveer 373
    this.id = id;
374
    setIdIsSet(true);
68 ashish 375
  }
376
 
483 rajveer 377
  public void unsetId() {
378
    __isset_bit_vector.clear(__ID_ISSET_ID);
68 ashish 379
  }
380
 
3430 rajveer 381
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
483 rajveer 382
  public boolean isSetId() {
383
    return __isset_bit_vector.get(__ID_ISSET_ID);
68 ashish 384
  }
385
 
483 rajveer 386
  public void setIdIsSet(boolean value) {
387
    __isset_bit_vector.set(__ID_ISSET_ID, value);
388
  }
389
 
697 chandransh 390
  public long getItem_id() {
391
    return this.item_id;
483 rajveer 392
  }
393
 
3430 rajveer 394
  public void setItem_id(long item_id) {
697 chandransh 395
    this.item_id = item_id;
396
    setItem_idIsSet(true);
483 rajveer 397
  }
398
 
697 chandransh 399
  public void unsetItem_id() {
400
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
483 rajveer 401
  }
402
 
3430 rajveer 403
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
697 chandransh 404
  public boolean isSetItem_id() {
405
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
483 rajveer 406
  }
407
 
697 chandransh 408
  public void setItem_idIsSet(boolean value) {
409
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
68 ashish 410
  }
411
 
957 chandransh 412
  public String getProductGroup() {
413
    return this.productGroup;
414
  }
415
 
3430 rajveer 416
  public void setProductGroup(String productGroup) {
957 chandransh 417
    this.productGroup = productGroup;
418
  }
419
 
420
  public void unsetProductGroup() {
421
    this.productGroup = null;
422
  }
423
 
3430 rajveer 424
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
957 chandransh 425
  public boolean isSetProductGroup() {
426
    return this.productGroup != null;
427
  }
428
 
429
  public void setProductGroupIsSet(boolean value) {
430
    if (!value) {
431
      this.productGroup = null;
432
    }
433
  }
434
 
483 rajveer 435
  public String getBrand() {
436
    return this.brand;
68 ashish 437
  }
438
 
3430 rajveer 439
  public void setBrand(String brand) {
483 rajveer 440
    this.brand = brand;
68 ashish 441
  }
442
 
483 rajveer 443
  public void unsetBrand() {
444
    this.brand = null;
68 ashish 445
  }
446
 
3430 rajveer 447
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
483 rajveer 448
  public boolean isSetBrand() {
449
    return this.brand != null;
68 ashish 450
  }
451
 
483 rajveer 452
  public void setBrandIsSet(boolean value) {
453
    if (!value) {
454
      this.brand = null;
455
    }
68 ashish 456
  }
457
 
483 rajveer 458
  public String getModel_number() {
459
    return this.model_number;
68 ashish 460
  }
461
 
3430 rajveer 462
  public void setModel_number(String model_number) {
483 rajveer 463
    this.model_number = model_number;
68 ashish 464
  }
465
 
483 rajveer 466
  public void unsetModel_number() {
467
    this.model_number = null;
68 ashish 468
  }
469
 
3430 rajveer 470
  /** Returns true if field model_number is set (has been assigned a value) and false otherwise */
483 rajveer 471
  public boolean isSetModel_number() {
472
    return this.model_number != null;
68 ashish 473
  }
474
 
483 rajveer 475
  public void setModel_numberIsSet(boolean value) {
476
    if (!value) {
477
      this.model_number = null;
478
    }
68 ashish 479
  }
480
 
957 chandransh 481
  public String getColor() {
482
    return this.color;
483
  }
484
 
3430 rajveer 485
  public void setColor(String color) {
957 chandransh 486
    this.color = color;
487
  }
488
 
489
  public void unsetColor() {
490
    this.color = null;
491
  }
492
 
3430 rajveer 493
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
957 chandransh 494
  public boolean isSetColor() {
495
    return this.color != null;
496
  }
497
 
498
  public void setColorIsSet(boolean value) {
499
    if (!value) {
500
      this.color = null;
501
    }
502
  }
503
 
483 rajveer 504
  public String getModel_name() {
505
    return this.model_name;
68 ashish 506
  }
507
 
3430 rajveer 508
  public void setModel_name(String model_name) {
483 rajveer 509
    this.model_name = model_name;
510
  }
511
 
512
  public void unsetModel_name() {
513
    this.model_name = null;
514
  }
515
 
3430 rajveer 516
  /** Returns true if field model_name is set (has been assigned a value) and false otherwise */
483 rajveer 517
  public boolean isSetModel_name() {
518
    return this.model_name != null;
519
  }
520
 
521
  public void setModel_nameIsSet(boolean value) {
522
    if (!value) {
523
      this.model_name = null;
68 ashish 524
    }
525
  }
526
 
483 rajveer 527
  public String getExtra_info() {
528
    return this.extra_info;
68 ashish 529
  }
530
 
3430 rajveer 531
  public void setExtra_info(String extra_info) {
483 rajveer 532
    this.extra_info = extra_info;
68 ashish 533
  }
534
 
483 rajveer 535
  public void unsetExtra_info() {
536
    this.extra_info = null;
68 ashish 537
  }
538
 
3430 rajveer 539
  /** Returns true if field extra_info is set (has been assigned a value) and false otherwise */
483 rajveer 540
  public boolean isSetExtra_info() {
541
    return this.extra_info != null;
68 ashish 542
  }
543
 
483 rajveer 544
  public void setExtra_infoIsSet(boolean value) {
68 ashish 545
    if (!value) {
483 rajveer 546
      this.extra_info = null;
68 ashish 547
    }
548
  }
549
 
483 rajveer 550
  public double getQuantity() {
551
    return this.quantity;
552
  }
553
 
3430 rajveer 554
  public void setQuantity(double quantity) {
483 rajveer 555
    this.quantity = quantity;
556
    setQuantityIsSet(true);
557
  }
558
 
559
  public void unsetQuantity() {
560
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
561
  }
562
 
3430 rajveer 563
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
483 rajveer 564
  public boolean isSetQuantity() {
565
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
566
  }
567
 
568
  public void setQuantityIsSet(boolean value) {
569
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
570
  }
571
 
572
  public double getUnit_price() {
573
    return this.unit_price;
574
  }
575
 
3430 rajveer 576
  public void setUnit_price(double unit_price) {
483 rajveer 577
    this.unit_price = unit_price;
578
    setUnit_priceIsSet(true);
579
  }
580
 
581
  public void unsetUnit_price() {
582
    __isset_bit_vector.clear(__UNIT_PRICE_ISSET_ID);
583
  }
584
 
3430 rajveer 585
  /** Returns true if field unit_price is set (has been assigned a value) and false otherwise */
483 rajveer 586
  public boolean isSetUnit_price() {
587
    return __isset_bit_vector.get(__UNIT_PRICE_ISSET_ID);
588
  }
589
 
590
  public void setUnit_priceIsSet(boolean value) {
591
    __isset_bit_vector.set(__UNIT_PRICE_ISSET_ID, value);
592
  }
593
 
594
  public double getUnit_weight() {
595
    return this.unit_weight;
596
  }
597
 
3430 rajveer 598
  public void setUnit_weight(double unit_weight) {
483 rajveer 599
    this.unit_weight = unit_weight;
600
    setUnit_weightIsSet(true);
601
  }
602
 
603
  public void unsetUnit_weight() {
604
    __isset_bit_vector.clear(__UNIT_WEIGHT_ISSET_ID);
605
  }
606
 
3430 rajveer 607
  /** Returns true if field unit_weight is set (has been assigned a value) and false otherwise */
483 rajveer 608
  public boolean isSetUnit_weight() {
609
    return __isset_bit_vector.get(__UNIT_WEIGHT_ISSET_ID);
610
  }
611
 
612
  public void setUnit_weightIsSet(boolean value) {
613
    __isset_bit_vector.set(__UNIT_WEIGHT_ISSET_ID, value);
614
  }
615
 
616
  public double getTotal_price() {
617
    return this.total_price;
618
  }
619
 
3430 rajveer 620
  public void setTotal_price(double total_price) {
483 rajveer 621
    this.total_price = total_price;
622
    setTotal_priceIsSet(true);
623
  }
624
 
625
  public void unsetTotal_price() {
626
    __isset_bit_vector.clear(__TOTAL_PRICE_ISSET_ID);
627
  }
628
 
3430 rajveer 629
  /** Returns true if field total_price is set (has been assigned a value) and false otherwise */
483 rajveer 630
  public boolean isSetTotal_price() {
631
    return __isset_bit_vector.get(__TOTAL_PRICE_ISSET_ID);
632
  }
633
 
634
  public void setTotal_priceIsSet(boolean value) {
635
    __isset_bit_vector.set(__TOTAL_PRICE_ISSET_ID, value);
636
  }
637
 
1022 varun.gupt 638
  public double getTransfer_price() {
639
    return this.transfer_price;
640
  }
641
 
3430 rajveer 642
  public void setTransfer_price(double transfer_price) {
1022 varun.gupt 643
    this.transfer_price = transfer_price;
644
    setTransfer_priceIsSet(true);
645
  }
646
 
647
  public void unsetTransfer_price() {
648
    __isset_bit_vector.clear(__TRANSFER_PRICE_ISSET_ID);
649
  }
650
 
3430 rajveer 651
  /** Returns true if field transfer_price is set (has been assigned a value) and false otherwise */
1022 varun.gupt 652
  public boolean isSetTransfer_price() {
653
    return __isset_bit_vector.get(__TRANSFER_PRICE_ISSET_ID);
654
  }
655
 
656
  public void setTransfer_priceIsSet(boolean value) {
657
    __isset_bit_vector.set(__TRANSFER_PRICE_ISSET_ID, value);
658
  }
659
 
483 rajveer 660
  public double getTotal_weight() {
661
    return this.total_weight;
662
  }
663
 
3430 rajveer 664
  public void setTotal_weight(double total_weight) {
483 rajveer 665
    this.total_weight = total_weight;
666
    setTotal_weightIsSet(true);
667
  }
668
 
669
  public void unsetTotal_weight() {
670
    __isset_bit_vector.clear(__TOTAL_WEIGHT_ISSET_ID);
671
  }
672
 
3430 rajveer 673
  /** Returns true if field total_weight is set (has been assigned a value) and false otherwise */
483 rajveer 674
  public boolean isSetTotal_weight() {
675
    return __isset_bit_vector.get(__TOTAL_WEIGHT_ISSET_ID);
676
  }
677
 
678
  public void setTotal_weightIsSet(boolean value) {
679
    __isset_bit_vector.set(__TOTAL_WEIGHT_ISSET_ID, value);
680
  }
681
 
4658 mandeep.dh 682
  public String getSerial_number() {
683
    return this.serial_number;
2779 chandransh 684
  }
685
 
4658 mandeep.dh 686
  public void setSerial_number(String serial_number) {
687
    this.serial_number = serial_number;
2779 chandransh 688
  }
689
 
4658 mandeep.dh 690
  public void unsetSerial_number() {
691
    this.serial_number = null;
2779 chandransh 692
  }
693
 
4658 mandeep.dh 694
  /** Returns true if field serial_number is set (has been assigned a value) and false otherwise */
695
  public boolean isSetSerial_number() {
696
    return this.serial_number != null;
2779 chandransh 697
  }
698
 
4658 mandeep.dh 699
  public void setSerial_numberIsSet(boolean value) {
700
    if (!value) {
701
      this.serial_number = null;
702
    }
2779 chandransh 703
  }
704
 
705
  public String getItem_number() {
706
    return this.item_number;
707
  }
708
 
3430 rajveer 709
  public void setItem_number(String item_number) {
2779 chandransh 710
    this.item_number = item_number;
711
  }
712
 
713
  public void unsetItem_number() {
714
    this.item_number = null;
715
  }
716
 
3430 rajveer 717
  /** Returns true if field item_number is set (has been assigned a value) and false otherwise */
2779 chandransh 718
  public boolean isSetItem_number() {
719
    return this.item_number != null;
720
  }
721
 
722
  public void setItem_numberIsSet(boolean value) {
723
    if (!value) {
724
      this.item_number = null;
725
    }
726
  }
727
 
4172 rajveer 728
  public String getDealText() {
729
    return this.dealText;
730
  }
731
 
732
  public void setDealText(String dealText) {
733
    this.dealText = dealText;
734
  }
735
 
736
  public void unsetDealText() {
737
    this.dealText = null;
738
  }
739
 
740
  /** Returns true if field dealText is set (has been assigned a value) and false otherwise */
741
  public boolean isSetDealText() {
742
    return this.dealText != null;
743
  }
744
 
745
  public void setDealTextIsSet(boolean value) {
746
    if (!value) {
747
      this.dealText = null;
748
    }
749
  }
750
 
4295 varun.gupt 751
  public long getWarrantry_expiry_timestamp() {
752
    return this.warrantry_expiry_timestamp;
753
  }
754
 
755
  public void setWarrantry_expiry_timestamp(long warrantry_expiry_timestamp) {
756
    this.warrantry_expiry_timestamp = warrantry_expiry_timestamp;
757
    setWarrantry_expiry_timestampIsSet(true);
758
  }
759
 
760
  public void unsetWarrantry_expiry_timestamp() {
761
    __isset_bit_vector.clear(__WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID);
762
  }
763
 
764
  /** Returns true if field warrantry_expiry_timestamp is set (has been assigned a value) and false otherwise */
765
  public boolean isSetWarrantry_expiry_timestamp() {
766
    return __isset_bit_vector.get(__WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID);
767
  }
768
 
769
  public void setWarrantry_expiry_timestampIsSet(boolean value) {
770
    __isset_bit_vector.set(__WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID, value);
771
  }
772
 
6039 amit.gupta 773
  public double getVatRate() {
774
    return this.vatRate;
775
  }
776
 
777
  public void setVatRate(double vatRate) {
778
    this.vatRate = vatRate;
779
    setVatRateIsSet(true);
780
  }
781
 
782
  public void unsetVatRate() {
783
    __isset_bit_vector.clear(__VATRATE_ISSET_ID);
784
  }
785
 
786
  /** Returns true if field vatRate is set (has been assigned a value) and false otherwise */
787
  public boolean isSetVatRate() {
788
    return __isset_bit_vector.get(__VATRATE_ISSET_ID);
789
  }
790
 
791
  public void setVatRateIsSet(boolean value) {
792
    __isset_bit_vector.set(__VATRATE_ISSET_ID, value);
793
  }
794
 
68 ashish 795
  public void setFieldValue(_Fields field, Object value) {
796
    switch (field) {
483 rajveer 797
    case ID:
68 ashish 798
      if (value == null) {
483 rajveer 799
        unsetId();
68 ashish 800
      } else {
483 rajveer 801
        setId((Long)value);
68 ashish 802
      }
803
      break;
804
 
697 chandransh 805
    case ITEM_ID:
68 ashish 806
      if (value == null) {
697 chandransh 807
        unsetItem_id();
68 ashish 808
      } else {
697 chandransh 809
        setItem_id((Long)value);
68 ashish 810
      }
811
      break;
812
 
957 chandransh 813
    case PRODUCT_GROUP:
814
      if (value == null) {
815
        unsetProductGroup();
816
      } else {
817
        setProductGroup((String)value);
818
      }
819
      break;
820
 
483 rajveer 821
    case BRAND:
68 ashish 822
      if (value == null) {
483 rajveer 823
        unsetBrand();
68 ashish 824
      } else {
483 rajveer 825
        setBrand((String)value);
68 ashish 826
      }
827
      break;
828
 
483 rajveer 829
    case MODEL_NUMBER:
68 ashish 830
      if (value == null) {
483 rajveer 831
        unsetModel_number();
68 ashish 832
      } else {
483 rajveer 833
        setModel_number((String)value);
68 ashish 834
      }
835
      break;
836
 
957 chandransh 837
    case COLOR:
838
      if (value == null) {
839
        unsetColor();
840
      } else {
841
        setColor((String)value);
842
      }
843
      break;
844
 
483 rajveer 845
    case MODEL_NAME:
846
      if (value == null) {
847
        unsetModel_name();
848
      } else {
849
        setModel_name((String)value);
850
      }
851
      break;
852
 
853
    case EXTRA_INFO:
854
      if (value == null) {
855
        unsetExtra_info();
856
      } else {
857
        setExtra_info((String)value);
858
      }
859
      break;
860
 
861
    case QUANTITY:
862
      if (value == null) {
863
        unsetQuantity();
864
      } else {
865
        setQuantity((Double)value);
866
      }
867
      break;
868
 
869
    case UNIT_PRICE:
870
      if (value == null) {
871
        unsetUnit_price();
872
      } else {
873
        setUnit_price((Double)value);
874
      }
875
      break;
876
 
877
    case UNIT_WEIGHT:
878
      if (value == null) {
879
        unsetUnit_weight();
880
      } else {
881
        setUnit_weight((Double)value);
882
      }
883
      break;
884
 
885
    case TOTAL_PRICE:
886
      if (value == null) {
887
        unsetTotal_price();
888
      } else {
889
        setTotal_price((Double)value);
890
      }
891
      break;
892
 
1022 varun.gupt 893
    case TRANSFER_PRICE:
894
      if (value == null) {
895
        unsetTransfer_price();
896
      } else {
897
        setTransfer_price((Double)value);
898
      }
899
      break;
900
 
483 rajveer 901
    case TOTAL_WEIGHT:
902
      if (value == null) {
903
        unsetTotal_weight();
904
      } else {
905
        setTotal_weight((Double)value);
906
      }
907
      break;
908
 
4658 mandeep.dh 909
    case SERIAL_NUMBER:
2779 chandransh 910
      if (value == null) {
4658 mandeep.dh 911
        unsetSerial_number();
2779 chandransh 912
      } else {
4658 mandeep.dh 913
        setSerial_number((String)value);
2779 chandransh 914
      }
915
      break;
916
 
917
    case ITEM_NUMBER:
918
      if (value == null) {
919
        unsetItem_number();
920
      } else {
921
        setItem_number((String)value);
922
      }
923
      break;
924
 
4172 rajveer 925
    case DEAL_TEXT:
926
      if (value == null) {
927
        unsetDealText();
928
      } else {
929
        setDealText((String)value);
930
      }
931
      break;
932
 
4295 varun.gupt 933
    case WARRANTRY_EXPIRY_TIMESTAMP:
934
      if (value == null) {
935
        unsetWarrantry_expiry_timestamp();
936
      } else {
937
        setWarrantry_expiry_timestamp((Long)value);
938
      }
939
      break;
940
 
6039 amit.gupta 941
    case VAT_RATE:
942
      if (value == null) {
943
        unsetVatRate();
944
      } else {
945
        setVatRate((Double)value);
946
      }
947
      break;
948
 
68 ashish 949
    }
950
  }
951
 
952
  public Object getFieldValue(_Fields field) {
953
    switch (field) {
954
    case ID:
3430 rajveer 955
      return Long.valueOf(getId());
68 ashish 956
 
697 chandransh 957
    case ITEM_ID:
3430 rajveer 958
      return Long.valueOf(getItem_id());
68 ashish 959
 
957 chandransh 960
    case PRODUCT_GROUP:
961
      return getProductGroup();
962
 
483 rajveer 963
    case BRAND:
964
      return getBrand();
68 ashish 965
 
483 rajveer 966
    case MODEL_NUMBER:
967
      return getModel_number();
968
 
957 chandransh 969
    case COLOR:
970
      return getColor();
971
 
483 rajveer 972
    case MODEL_NAME:
973
      return getModel_name();
974
 
975
    case EXTRA_INFO:
976
      return getExtra_info();
977
 
978
    case QUANTITY:
3430 rajveer 979
      return Double.valueOf(getQuantity());
483 rajveer 980
 
981
    case UNIT_PRICE:
3430 rajveer 982
      return Double.valueOf(getUnit_price());
483 rajveer 983
 
984
    case UNIT_WEIGHT:
3430 rajveer 985
      return Double.valueOf(getUnit_weight());
483 rajveer 986
 
987
    case TOTAL_PRICE:
3430 rajveer 988
      return Double.valueOf(getTotal_price());
483 rajveer 989
 
1022 varun.gupt 990
    case TRANSFER_PRICE:
3430 rajveer 991
      return Double.valueOf(getTransfer_price());
1022 varun.gupt 992
 
483 rajveer 993
    case TOTAL_WEIGHT:
3430 rajveer 994
      return Double.valueOf(getTotal_weight());
483 rajveer 995
 
4658 mandeep.dh 996
    case SERIAL_NUMBER:
997
      return getSerial_number();
2779 chandransh 998
 
999
    case ITEM_NUMBER:
1000
      return getItem_number();
1001
 
4172 rajveer 1002
    case DEAL_TEXT:
1003
      return getDealText();
1004
 
4295 varun.gupt 1005
    case WARRANTRY_EXPIRY_TIMESTAMP:
1006
      return Long.valueOf(getWarrantry_expiry_timestamp());
1007
 
6039 amit.gupta 1008
    case VAT_RATE:
1009
      return Double.valueOf(getVatRate());
1010
 
68 ashish 1011
    }
1012
    throw new IllegalStateException();
1013
  }
1014
 
3430 rajveer 1015
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1016
  public boolean isSet(_Fields field) {
1017
    if (field == null) {
1018
      throw new IllegalArgumentException();
1019
    }
68 ashish 1020
 
1021
    switch (field) {
1022
    case ID:
1023
      return isSetId();
697 chandransh 1024
    case ITEM_ID:
1025
      return isSetItem_id();
957 chandransh 1026
    case PRODUCT_GROUP:
1027
      return isSetProductGroup();
483 rajveer 1028
    case BRAND:
1029
      return isSetBrand();
1030
    case MODEL_NUMBER:
1031
      return isSetModel_number();
957 chandransh 1032
    case COLOR:
1033
      return isSetColor();
483 rajveer 1034
    case MODEL_NAME:
1035
      return isSetModel_name();
1036
    case EXTRA_INFO:
1037
      return isSetExtra_info();
1038
    case QUANTITY:
1039
      return isSetQuantity();
1040
    case UNIT_PRICE:
1041
      return isSetUnit_price();
1042
    case UNIT_WEIGHT:
1043
      return isSetUnit_weight();
1044
    case TOTAL_PRICE:
1045
      return isSetTotal_price();
1022 varun.gupt 1046
    case TRANSFER_PRICE:
1047
      return isSetTransfer_price();
483 rajveer 1048
    case TOTAL_WEIGHT:
1049
      return isSetTotal_weight();
4658 mandeep.dh 1050
    case SERIAL_NUMBER:
1051
      return isSetSerial_number();
2779 chandransh 1052
    case ITEM_NUMBER:
1053
      return isSetItem_number();
4172 rajveer 1054
    case DEAL_TEXT:
1055
      return isSetDealText();
4295 varun.gupt 1056
    case WARRANTRY_EXPIRY_TIMESTAMP:
1057
      return isSetWarrantry_expiry_timestamp();
6039 amit.gupta 1058
    case VAT_RATE:
1059
      return isSetVatRate();
68 ashish 1060
    }
1061
    throw new IllegalStateException();
1062
  }
1063
 
1064
  @Override
1065
  public boolean equals(Object that) {
1066
    if (that == null)
1067
      return false;
1068
    if (that instanceof LineItem)
1069
      return this.equals((LineItem)that);
1070
    return false;
1071
  }
1072
 
1073
  public boolean equals(LineItem that) {
1074
    if (that == null)
1075
      return false;
1076
 
1077
    boolean this_present_id = true;
1078
    boolean that_present_id = true;
1079
    if (this_present_id || that_present_id) {
1080
      if (!(this_present_id && that_present_id))
1081
        return false;
1082
      if (this.id != that.id)
1083
        return false;
1084
    }
1085
 
697 chandransh 1086
    boolean this_present_item_id = true;
1087
    boolean that_present_item_id = true;
1088
    if (this_present_item_id || that_present_item_id) {
1089
      if (!(this_present_item_id && that_present_item_id))
68 ashish 1090
        return false;
697 chandransh 1091
      if (this.item_id != that.item_id)
68 ashish 1092
        return false;
1093
    }
1094
 
957 chandransh 1095
    boolean this_present_productGroup = true && this.isSetProductGroup();
1096
    boolean that_present_productGroup = true && that.isSetProductGroup();
1097
    if (this_present_productGroup || that_present_productGroup) {
1098
      if (!(this_present_productGroup && that_present_productGroup))
1099
        return false;
1100
      if (!this.productGroup.equals(that.productGroup))
1101
        return false;
1102
    }
1103
 
483 rajveer 1104
    boolean this_present_brand = true && this.isSetBrand();
1105
    boolean that_present_brand = true && that.isSetBrand();
1106
    if (this_present_brand || that_present_brand) {
1107
      if (!(this_present_brand && that_present_brand))
68 ashish 1108
        return false;
483 rajveer 1109
      if (!this.brand.equals(that.brand))
68 ashish 1110
        return false;
1111
    }
1112
 
483 rajveer 1113
    boolean this_present_model_number = true && this.isSetModel_number();
1114
    boolean that_present_model_number = true && that.isSetModel_number();
1115
    if (this_present_model_number || that_present_model_number) {
1116
      if (!(this_present_model_number && that_present_model_number))
1117
        return false;
1118
      if (!this.model_number.equals(that.model_number))
1119
        return false;
1120
    }
1121
 
957 chandransh 1122
    boolean this_present_color = true && this.isSetColor();
1123
    boolean that_present_color = true && that.isSetColor();
1124
    if (this_present_color || that_present_color) {
1125
      if (!(this_present_color && that_present_color))
1126
        return false;
1127
      if (!this.color.equals(that.color))
1128
        return false;
1129
    }
1130
 
483 rajveer 1131
    boolean this_present_model_name = true && this.isSetModel_name();
1132
    boolean that_present_model_name = true && that.isSetModel_name();
1133
    if (this_present_model_name || that_present_model_name) {
1134
      if (!(this_present_model_name && that_present_model_name))
1135
        return false;
1136
      if (!this.model_name.equals(that.model_name))
1137
        return false;
1138
    }
1139
 
1140
    boolean this_present_extra_info = true && this.isSetExtra_info();
1141
    boolean that_present_extra_info = true && that.isSetExtra_info();
1142
    if (this_present_extra_info || that_present_extra_info) {
1143
      if (!(this_present_extra_info && that_present_extra_info))
1144
        return false;
1145
      if (!this.extra_info.equals(that.extra_info))
1146
        return false;
1147
    }
1148
 
1149
    boolean this_present_quantity = true;
1150
    boolean that_present_quantity = true;
1151
    if (this_present_quantity || that_present_quantity) {
1152
      if (!(this_present_quantity && that_present_quantity))
1153
        return false;
1154
      if (this.quantity != that.quantity)
1155
        return false;
1156
    }
1157
 
1158
    boolean this_present_unit_price = true;
1159
    boolean that_present_unit_price = true;
1160
    if (this_present_unit_price || that_present_unit_price) {
1161
      if (!(this_present_unit_price && that_present_unit_price))
1162
        return false;
1163
      if (this.unit_price != that.unit_price)
1164
        return false;
1165
    }
1166
 
1167
    boolean this_present_unit_weight = true;
1168
    boolean that_present_unit_weight = true;
1169
    if (this_present_unit_weight || that_present_unit_weight) {
1170
      if (!(this_present_unit_weight && that_present_unit_weight))
1171
        return false;
1172
      if (this.unit_weight != that.unit_weight)
1173
        return false;
1174
    }
1175
 
1176
    boolean this_present_total_price = true;
1177
    boolean that_present_total_price = true;
1178
    if (this_present_total_price || that_present_total_price) {
1179
      if (!(this_present_total_price && that_present_total_price))
1180
        return false;
1181
      if (this.total_price != that.total_price)
1182
        return false;
1183
    }
1184
 
1022 varun.gupt 1185
    boolean this_present_transfer_price = true;
1186
    boolean that_present_transfer_price = true;
1187
    if (this_present_transfer_price || that_present_transfer_price) {
1188
      if (!(this_present_transfer_price && that_present_transfer_price))
1189
        return false;
1190
      if (this.transfer_price != that.transfer_price)
1191
        return false;
1192
    }
1193
 
483 rajveer 1194
    boolean this_present_total_weight = true;
1195
    boolean that_present_total_weight = true;
1196
    if (this_present_total_weight || that_present_total_weight) {
1197
      if (!(this_present_total_weight && that_present_total_weight))
1198
        return false;
1199
      if (this.total_weight != that.total_weight)
1200
        return false;
1201
    }
1202
 
4658 mandeep.dh 1203
    boolean this_present_serial_number = true && this.isSetSerial_number();
1204
    boolean that_present_serial_number = true && that.isSetSerial_number();
1205
    if (this_present_serial_number || that_present_serial_number) {
1206
      if (!(this_present_serial_number && that_present_serial_number))
2779 chandransh 1207
        return false;
4658 mandeep.dh 1208
      if (!this.serial_number.equals(that.serial_number))
2779 chandransh 1209
        return false;
1210
    }
1211
 
1212
    boolean this_present_item_number = true && this.isSetItem_number();
1213
    boolean that_present_item_number = true && that.isSetItem_number();
1214
    if (this_present_item_number || that_present_item_number) {
1215
      if (!(this_present_item_number && that_present_item_number))
1216
        return false;
1217
      if (!this.item_number.equals(that.item_number))
1218
        return false;
1219
    }
1220
 
4172 rajveer 1221
    boolean this_present_dealText = true && this.isSetDealText();
1222
    boolean that_present_dealText = true && that.isSetDealText();
1223
    if (this_present_dealText || that_present_dealText) {
1224
      if (!(this_present_dealText && that_present_dealText))
1225
        return false;
1226
      if (!this.dealText.equals(that.dealText))
1227
        return false;
1228
    }
1229
 
4295 varun.gupt 1230
    boolean this_present_warrantry_expiry_timestamp = true;
1231
    boolean that_present_warrantry_expiry_timestamp = true;
1232
    if (this_present_warrantry_expiry_timestamp || that_present_warrantry_expiry_timestamp) {
1233
      if (!(this_present_warrantry_expiry_timestamp && that_present_warrantry_expiry_timestamp))
1234
        return false;
1235
      if (this.warrantry_expiry_timestamp != that.warrantry_expiry_timestamp)
1236
        return false;
1237
    }
1238
 
6039 amit.gupta 1239
    boolean this_present_vatRate = true;
1240
    boolean that_present_vatRate = true;
1241
    if (this_present_vatRate || that_present_vatRate) {
1242
      if (!(this_present_vatRate && that_present_vatRate))
1243
        return false;
1244
      if (this.vatRate != that.vatRate)
1245
        return false;
1246
    }
1247
 
68 ashish 1248
    return true;
1249
  }
1250
 
1251
  @Override
1252
  public int hashCode() {
1253
    return 0;
1254
  }
1255
 
483 rajveer 1256
  public int compareTo(LineItem other) {
1257
    if (!getClass().equals(other.getClass())) {
1258
      return getClass().getName().compareTo(other.getClass().getName());
1259
    }
1260
 
1261
    int lastComparison = 0;
1262
    LineItem typedOther = (LineItem)other;
1263
 
3430 rajveer 1264
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
483 rajveer 1265
    if (lastComparison != 0) {
1266
      return lastComparison;
1267
    }
3430 rajveer 1268
    if (isSetId()) {
1269
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1270
      if (lastComparison != 0) {
1271
        return lastComparison;
1272
      }
483 rajveer 1273
    }
3430 rajveer 1274
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
483 rajveer 1275
    if (lastComparison != 0) {
1276
      return lastComparison;
1277
    }
3430 rajveer 1278
    if (isSetItem_id()) {
1279
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1280
      if (lastComparison != 0) {
1281
        return lastComparison;
1282
      }
483 rajveer 1283
    }
3430 rajveer 1284
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
957 chandransh 1285
    if (lastComparison != 0) {
1286
      return lastComparison;
1287
    }
3430 rajveer 1288
    if (isSetProductGroup()) {
1289
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
1290
      if (lastComparison != 0) {
1291
        return lastComparison;
1292
      }
957 chandransh 1293
    }
3430 rajveer 1294
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
483 rajveer 1295
    if (lastComparison != 0) {
1296
      return lastComparison;
1297
    }
3430 rajveer 1298
    if (isSetBrand()) {
1299
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
1300
      if (lastComparison != 0) {
1301
        return lastComparison;
1302
      }
483 rajveer 1303
    }
3430 rajveer 1304
    lastComparison = Boolean.valueOf(isSetModel_number()).compareTo(typedOther.isSetModel_number());
483 rajveer 1305
    if (lastComparison != 0) {
1306
      return lastComparison;
1307
    }
3430 rajveer 1308
    if (isSetModel_number()) {
1309
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_number, typedOther.model_number);
1310
      if (lastComparison != 0) {
1311
        return lastComparison;
1312
      }
483 rajveer 1313
    }
3430 rajveer 1314
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
957 chandransh 1315
    if (lastComparison != 0) {
1316
      return lastComparison;
1317
    }
3430 rajveer 1318
    if (isSetColor()) {
1319
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1320
      if (lastComparison != 0) {
1321
        return lastComparison;
1322
      }
957 chandransh 1323
    }
3430 rajveer 1324
    lastComparison = Boolean.valueOf(isSetModel_name()).compareTo(typedOther.isSetModel_name());
483 rajveer 1325
    if (lastComparison != 0) {
1326
      return lastComparison;
1327
    }
3430 rajveer 1328
    if (isSetModel_name()) {
1329
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_name, typedOther.model_name);
1330
      if (lastComparison != 0) {
1331
        return lastComparison;
1332
      }
483 rajveer 1333
    }
3430 rajveer 1334
    lastComparison = Boolean.valueOf(isSetExtra_info()).compareTo(typedOther.isSetExtra_info());
483 rajveer 1335
    if (lastComparison != 0) {
1336
      return lastComparison;
1337
    }
3430 rajveer 1338
    if (isSetExtra_info()) {
1339
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extra_info, typedOther.extra_info);
1340
      if (lastComparison != 0) {
1341
        return lastComparison;
1342
      }
483 rajveer 1343
    }
3430 rajveer 1344
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
483 rajveer 1345
    if (lastComparison != 0) {
1346
      return lastComparison;
1347
    }
3430 rajveer 1348
    if (isSetQuantity()) {
1349
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
1350
      if (lastComparison != 0) {
1351
        return lastComparison;
1352
      }
483 rajveer 1353
    }
3430 rajveer 1354
    lastComparison = Boolean.valueOf(isSetUnit_price()).compareTo(typedOther.isSetUnit_price());
483 rajveer 1355
    if (lastComparison != 0) {
1356
      return lastComparison;
1357
    }
3430 rajveer 1358
    if (isSetUnit_price()) {
1359
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unit_price, typedOther.unit_price);
1360
      if (lastComparison != 0) {
1361
        return lastComparison;
1362
      }
483 rajveer 1363
    }
3430 rajveer 1364
    lastComparison = Boolean.valueOf(isSetUnit_weight()).compareTo(typedOther.isSetUnit_weight());
483 rajveer 1365
    if (lastComparison != 0) {
1366
      return lastComparison;
1367
    }
3430 rajveer 1368
    if (isSetUnit_weight()) {
1369
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unit_weight, typedOther.unit_weight);
1370
      if (lastComparison != 0) {
1371
        return lastComparison;
1372
      }
483 rajveer 1373
    }
3430 rajveer 1374
    lastComparison = Boolean.valueOf(isSetTotal_price()).compareTo(typedOther.isSetTotal_price());
483 rajveer 1375
    if (lastComparison != 0) {
1376
      return lastComparison;
1377
    }
3430 rajveer 1378
    if (isSetTotal_price()) {
1379
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_price, typedOther.total_price);
1380
      if (lastComparison != 0) {
1381
        return lastComparison;
1382
      }
483 rajveer 1383
    }
3430 rajveer 1384
    lastComparison = Boolean.valueOf(isSetTransfer_price()).compareTo(typedOther.isSetTransfer_price());
1022 varun.gupt 1385
    if (lastComparison != 0) {
1386
      return lastComparison;
1387
    }
3430 rajveer 1388
    if (isSetTransfer_price()) {
1389
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transfer_price, typedOther.transfer_price);
1390
      if (lastComparison != 0) {
1391
        return lastComparison;
1392
      }
1022 varun.gupt 1393
    }
3430 rajveer 1394
    lastComparison = Boolean.valueOf(isSetTotal_weight()).compareTo(typedOther.isSetTotal_weight());
483 rajveer 1395
    if (lastComparison != 0) {
1396
      return lastComparison;
1397
    }
3430 rajveer 1398
    if (isSetTotal_weight()) {
1399
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_weight, typedOther.total_weight);
1400
      if (lastComparison != 0) {
1401
        return lastComparison;
1402
      }
483 rajveer 1403
    }
4658 mandeep.dh 1404
    lastComparison = Boolean.valueOf(isSetSerial_number()).compareTo(typedOther.isSetSerial_number());
2779 chandransh 1405
    if (lastComparison != 0) {
1406
      return lastComparison;
1407
    }
4658 mandeep.dh 1408
    if (isSetSerial_number()) {
1409
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serial_number, typedOther.serial_number);
3430 rajveer 1410
      if (lastComparison != 0) {
1411
        return lastComparison;
1412
      }
2779 chandransh 1413
    }
3430 rajveer 1414
    lastComparison = Boolean.valueOf(isSetItem_number()).compareTo(typedOther.isSetItem_number());
2779 chandransh 1415
    if (lastComparison != 0) {
1416
      return lastComparison;
1417
    }
3430 rajveer 1418
    if (isSetItem_number()) {
1419
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_number, typedOther.item_number);
1420
      if (lastComparison != 0) {
1421
        return lastComparison;
1422
      }
2779 chandransh 1423
    }
4172 rajveer 1424
    lastComparison = Boolean.valueOf(isSetDealText()).compareTo(typedOther.isSetDealText());
1425
    if (lastComparison != 0) {
1426
      return lastComparison;
1427
    }
1428
    if (isSetDealText()) {
1429
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealText, typedOther.dealText);
1430
      if (lastComparison != 0) {
1431
        return lastComparison;
1432
      }
1433
    }
4295 varun.gupt 1434
    lastComparison = Boolean.valueOf(isSetWarrantry_expiry_timestamp()).compareTo(typedOther.isSetWarrantry_expiry_timestamp());
1435
    if (lastComparison != 0) {
1436
      return lastComparison;
1437
    }
1438
    if (isSetWarrantry_expiry_timestamp()) {
1439
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warrantry_expiry_timestamp, typedOther.warrantry_expiry_timestamp);
1440
      if (lastComparison != 0) {
1441
        return lastComparison;
1442
      }
1443
    }
6039 amit.gupta 1444
    lastComparison = Boolean.valueOf(isSetVatRate()).compareTo(typedOther.isSetVatRate());
1445
    if (lastComparison != 0) {
1446
      return lastComparison;
1447
    }
1448
    if (isSetVatRate()) {
1449
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vatRate, typedOther.vatRate);
1450
      if (lastComparison != 0) {
1451
        return lastComparison;
1452
      }
1453
    }
483 rajveer 1454
    return 0;
1455
  }
1456
 
3430 rajveer 1457
  public _Fields fieldForId(int fieldId) {
1458
    return _Fields.findByThriftId(fieldId);
1459
  }
1460
 
1461
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1462
    org.apache.thrift.protocol.TField field;
68 ashish 1463
    iprot.readStructBegin();
1464
    while (true)
1465
    {
1466
      field = iprot.readFieldBegin();
3430 rajveer 1467
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 1468
        break;
1469
      }
3430 rajveer 1470
      switch (field.id) {
1471
        case 1: // ID
1472
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1473
            this.id = iprot.readI64();
1474
            setIdIsSet(true);
1475
          } else { 
1476
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1477
          }
1478
          break;
1479
        case 2: // ITEM_ID
1480
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1481
            this.item_id = iprot.readI64();
1482
            setItem_idIsSet(true);
1483
          } else { 
1484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1485
          }
1486
          break;
1487
        case 3: // PRODUCT_GROUP
1488
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1489
            this.productGroup = iprot.readString();
1490
          } else { 
1491
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1492
          }
1493
          break;
1494
        case 4: // BRAND
1495
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1496
            this.brand = iprot.readString();
1497
          } else { 
1498
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1499
          }
1500
          break;
1501
        case 5: // MODEL_NUMBER
1502
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1503
            this.model_number = iprot.readString();
1504
          } else { 
1505
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1506
          }
1507
          break;
1508
        case 6: // COLOR
1509
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1510
            this.color = iprot.readString();
1511
          } else { 
1512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1513
          }
1514
          break;
1515
        case 7: // MODEL_NAME
1516
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1517
            this.model_name = iprot.readString();
1518
          } else { 
1519
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1520
          }
1521
          break;
1522
        case 8: // EXTRA_INFO
1523
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1524
            this.extra_info = iprot.readString();
1525
          } else { 
1526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1527
          }
1528
          break;
1529
        case 9: // QUANTITY
1530
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1531
            this.quantity = iprot.readDouble();
1532
            setQuantityIsSet(true);
1533
          } else { 
1534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1535
          }
1536
          break;
1537
        case 10: // UNIT_PRICE
1538
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1539
            this.unit_price = iprot.readDouble();
1540
            setUnit_priceIsSet(true);
1541
          } else { 
1542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1543
          }
1544
          break;
1545
        case 11: // UNIT_WEIGHT
1546
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1547
            this.unit_weight = iprot.readDouble();
1548
            setUnit_weightIsSet(true);
1549
          } else { 
1550
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1551
          }
1552
          break;
1553
        case 12: // TOTAL_PRICE
1554
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1555
            this.total_price = iprot.readDouble();
1556
            setTotal_priceIsSet(true);
1557
          } else { 
1558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1559
          }
1560
          break;
1561
        case 13: // TRANSFER_PRICE
1562
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1563
            this.transfer_price = iprot.readDouble();
1564
            setTransfer_priceIsSet(true);
1565
          } else { 
1566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1567
          }
1568
          break;
1569
        case 14: // TOTAL_WEIGHT
1570
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1571
            this.total_weight = iprot.readDouble();
1572
            setTotal_weightIsSet(true);
1573
          } else { 
1574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1575
          }
1576
          break;
4658 mandeep.dh 1577
        case 15: // SERIAL_NUMBER
1578
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1579
            this.serial_number = iprot.readString();
3430 rajveer 1580
          } else { 
1581
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1582
          }
1583
          break;
1584
        case 16: // ITEM_NUMBER
1585
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1586
            this.item_number = iprot.readString();
1587
          } else { 
1588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1589
          }
1590
          break;
4172 rajveer 1591
        case 17: // DEAL_TEXT
1592
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1593
            this.dealText = iprot.readString();
1594
          } else { 
1595
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1596
          }
1597
          break;
4295 varun.gupt 1598
        case 18: // WARRANTRY_EXPIRY_TIMESTAMP
1599
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1600
            this.warrantry_expiry_timestamp = iprot.readI64();
1601
            setWarrantry_expiry_timestampIsSet(true);
1602
          } else { 
1603
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1604
          }
1605
          break;
6039 amit.gupta 1606
        case 19: // VAT_RATE
1607
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1608
            this.vatRate = iprot.readDouble();
1609
            setVatRateIsSet(true);
1610
          } else { 
1611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1612
          }
1613
          break;
3430 rajveer 1614
        default:
1615
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 1616
      }
3430 rajveer 1617
      iprot.readFieldEnd();
68 ashish 1618
    }
1619
    iprot.readStructEnd();
1620
    validate();
1621
  }
1622
 
3430 rajveer 1623
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 1624
    validate();
1625
 
1626
    oprot.writeStructBegin(STRUCT_DESC);
1627
    oprot.writeFieldBegin(ID_FIELD_DESC);
1628
    oprot.writeI64(this.id);
1629
    oprot.writeFieldEnd();
697 chandransh 1630
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1631
    oprot.writeI64(this.item_id);
1632
    oprot.writeFieldEnd();
957 chandransh 1633
    if (this.productGroup != null) {
1634
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
1635
      oprot.writeString(this.productGroup);
1636
      oprot.writeFieldEnd();
1637
    }
483 rajveer 1638
    if (this.brand != null) {
1639
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1640
      oprot.writeString(this.brand);
1641
      oprot.writeFieldEnd();
1642
    }
1643
    if (this.model_number != null) {
1644
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
1645
      oprot.writeString(this.model_number);
1646
      oprot.writeFieldEnd();
1647
    }
957 chandransh 1648
    if (this.color != null) {
1649
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1650
      oprot.writeString(this.color);
1651
      oprot.writeFieldEnd();
1652
    }
483 rajveer 1653
    if (this.model_name != null) {
1654
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1655
      oprot.writeString(this.model_name);
1656
      oprot.writeFieldEnd();
1657
    }
1658
    if (this.extra_info != null) {
1659
      oprot.writeFieldBegin(EXTRA_INFO_FIELD_DESC);
1660
      oprot.writeString(this.extra_info);
1661
      oprot.writeFieldEnd();
1662
    }
1663
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
1664
    oprot.writeDouble(this.quantity);
1665
    oprot.writeFieldEnd();
1666
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1667
    oprot.writeDouble(this.unit_price);
1668
    oprot.writeFieldEnd();
1669
    oprot.writeFieldBegin(UNIT_WEIGHT_FIELD_DESC);
1670
    oprot.writeDouble(this.unit_weight);
1671
    oprot.writeFieldEnd();
1672
    oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
1673
    oprot.writeDouble(this.total_price);
1674
    oprot.writeFieldEnd();
1022 varun.gupt 1675
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
1676
    oprot.writeDouble(this.transfer_price);
1677
    oprot.writeFieldEnd();
483 rajveer 1678
    oprot.writeFieldBegin(TOTAL_WEIGHT_FIELD_DESC);
1679
    oprot.writeDouble(this.total_weight);
1680
    oprot.writeFieldEnd();
4658 mandeep.dh 1681
    if (this.serial_number != null) {
1682
      if (isSetSerial_number()) {
1683
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
1684
        oprot.writeString(this.serial_number);
1685
        oprot.writeFieldEnd();
1686
      }
2779 chandransh 1687
    }
1688
    if (this.item_number != null) {
1689
      if (isSetItem_number()) {
1690
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
1691
        oprot.writeString(this.item_number);
1692
        oprot.writeFieldEnd();
1693
      }
1694
    }
4172 rajveer 1695
    if (this.dealText != null) {
1696
      if (isSetDealText()) {
1697
        oprot.writeFieldBegin(DEAL_TEXT_FIELD_DESC);
1698
        oprot.writeString(this.dealText);
1699
        oprot.writeFieldEnd();
1700
      }
1701
    }
4295 varun.gupt 1702
    oprot.writeFieldBegin(WARRANTRY_EXPIRY_TIMESTAMP_FIELD_DESC);
1703
    oprot.writeI64(this.warrantry_expiry_timestamp);
1704
    oprot.writeFieldEnd();
6039 amit.gupta 1705
    oprot.writeFieldBegin(VAT_RATE_FIELD_DESC);
1706
    oprot.writeDouble(this.vatRate);
1707
    oprot.writeFieldEnd();
68 ashish 1708
    oprot.writeFieldStop();
1709
    oprot.writeStructEnd();
1710
  }
1711
 
1712
  @Override
1713
  public String toString() {
1714
    StringBuilder sb = new StringBuilder("LineItem(");
1715
    boolean first = true;
1716
 
483 rajveer 1717
    sb.append("id:");
1718
    sb.append(this.id);
1719
    first = false;
1720
    if (!first) sb.append(", ");
697 chandransh 1721
    sb.append("item_id:");
1722
    sb.append(this.item_id);
68 ashish 1723
    first = false;
1724
    if (!first) sb.append(", ");
957 chandransh 1725
    sb.append("productGroup:");
1726
    if (this.productGroup == null) {
1727
      sb.append("null");
1728
    } else {
1729
      sb.append(this.productGroup);
1730
    }
1731
    first = false;
1732
    if (!first) sb.append(", ");
483 rajveer 1733
    sb.append("brand:");
1734
    if (this.brand == null) {
1735
      sb.append("null");
1736
    } else {
1737
      sb.append(this.brand);
1738
    }
68 ashish 1739
    first = false;
1740
    if (!first) sb.append(", ");
483 rajveer 1741
    sb.append("model_number:");
1742
    if (this.model_number == null) {
1743
      sb.append("null");
1744
    } else {
1745
      sb.append(this.model_number);
1746
    }
68 ashish 1747
    first = false;
1748
    if (!first) sb.append(", ");
957 chandransh 1749
    sb.append("color:");
1750
    if (this.color == null) {
1751
      sb.append("null");
1752
    } else {
1753
      sb.append(this.color);
1754
    }
1755
    first = false;
1756
    if (!first) sb.append(", ");
483 rajveer 1757
    sb.append("model_name:");
1758
    if (this.model_name == null) {
68 ashish 1759
      sb.append("null");
1760
    } else {
483 rajveer 1761
      sb.append(this.model_name);
68 ashish 1762
    }
1763
    first = false;
483 rajveer 1764
    if (!first) sb.append(", ");
1765
    sb.append("extra_info:");
1766
    if (this.extra_info == null) {
1767
      sb.append("null");
1768
    } else {
1769
      sb.append(this.extra_info);
1770
    }
1771
    first = false;
1772
    if (!first) sb.append(", ");
1773
    sb.append("quantity:");
1774
    sb.append(this.quantity);
1775
    first = false;
1776
    if (!first) sb.append(", ");
1777
    sb.append("unit_price:");
1778
    sb.append(this.unit_price);
1779
    first = false;
1780
    if (!first) sb.append(", ");
1781
    sb.append("unit_weight:");
1782
    sb.append(this.unit_weight);
1783
    first = false;
1784
    if (!first) sb.append(", ");
1785
    sb.append("total_price:");
1786
    sb.append(this.total_price);
1787
    first = false;
1788
    if (!first) sb.append(", ");
1022 varun.gupt 1789
    sb.append("transfer_price:");
1790
    sb.append(this.transfer_price);
1791
    first = false;
1792
    if (!first) sb.append(", ");
483 rajveer 1793
    sb.append("total_weight:");
1794
    sb.append(this.total_weight);
1795
    first = false;
4658 mandeep.dh 1796
    if (isSetSerial_number()) {
2779 chandransh 1797
      if (!first) sb.append(", ");
4658 mandeep.dh 1798
      sb.append("serial_number:");
1799
      if (this.serial_number == null) {
1800
        sb.append("null");
1801
      } else {
1802
        sb.append(this.serial_number);
1803
      }
2779 chandransh 1804
      first = false;
1805
    }
1806
    if (isSetItem_number()) {
1807
      if (!first) sb.append(", ");
1808
      sb.append("item_number:");
1809
      if (this.item_number == null) {
1810
        sb.append("null");
1811
      } else {
1812
        sb.append(this.item_number);
1813
      }
1814
      first = false;
1815
    }
4172 rajveer 1816
    if (isSetDealText()) {
1817
      if (!first) sb.append(", ");
1818
      sb.append("dealText:");
1819
      if (this.dealText == null) {
1820
        sb.append("null");
1821
      } else {
1822
        sb.append(this.dealText);
1823
      }
1824
      first = false;
1825
    }
4295 varun.gupt 1826
    if (!first) sb.append(", ");
1827
    sb.append("warrantry_expiry_timestamp:");
1828
    sb.append(this.warrantry_expiry_timestamp);
1829
    first = false;
6039 amit.gupta 1830
    if (!first) sb.append(", ");
1831
    sb.append("vatRate:");
1832
    sb.append(this.vatRate);
1833
    first = false;
68 ashish 1834
    sb.append(")");
1835
    return sb.toString();
1836
  }
1837
 
3430 rajveer 1838
  public void validate() throws org.apache.thrift.TException {
68 ashish 1839
    // check for required fields
1840
  }
1841
 
3430 rajveer 1842
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1843
    try {
1844
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1845
    } catch (org.apache.thrift.TException te) {
1846
      throw new java.io.IOException(te);
1847
    }
1848
  }
1849
 
1850
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1851
    try {
1852
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1853
      __isset_bit_vector = new BitSet(1);
1854
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1855
    } catch (org.apache.thrift.TException te) {
1856
      throw new java.io.IOException(te);
1857
    }
1858
  }
1859
 
68 ashish 1860
}
1861