Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
100 ashish 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
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.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
 
22
import org.apache.thrift.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
25
 
26
public class Item implements TBase<Item._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Item");
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
510 rajveer 30
  private static final TField MANUFACTURER_NAME_FIELD_DESC = new TField("manufacturerName", TType.STRING, (short)2);
483 rajveer 31
  private static final TField MODEL_NUMBER_FIELD_DESC = new TField("modelNumber", TType.STRING, (short)3);
32
  private static final TField MODEL_NAME_FIELD_DESC = new TField("modelName", TType.STRING, (short)4);
33
  private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.STRING, (short)5);
34
  private static final TField COMMENTS_FIELD_DESC = new TField("comments", TType.STRING, (short)6);
35
  private static final TField CATALOG_ITEM_ID_FIELD_DESC = new TField("catalogItemId", TType.I64, (short)7);
36
  private static final TField VENDOR_ITEM_ID_FIELD_DESC = new TField("vendorItemId", TType.STRING, (short)8);
123 ashish 37
  private static final TField FEATURE_ID_FIELD_DESC = new TField("featureId", TType.I64, (short)10);
38
  private static final TField FEATURE_DESCRIPTION_FIELD_DESC = new TField("featureDescription", TType.STRING, (short)11);
483 rajveer 39
  private static final TField ITEM_INVENTORY_FIELD_DESC = new TField("itemInventory", TType.STRUCT, (short)12);
40
  private static final TField MRP_FIELD_DESC = new TField("mrp", TType.DOUBLE, (short)13);
41
  private static final TField MOP_FIELD_DESC = new TField("mop", TType.DOUBLE, (short)14);
42
  private static final TField SELLING_PRICE_FIELD_DESC = new TField("sellingPrice", TType.DOUBLE, (short)15);
43
  private static final TField WEIGHT_FIELD_DESC = new TField("weight", TType.DOUBLE, (short)16);
44
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)17);
45
  private static final TField START_DATE_FIELD_DESC = new TField("startDate", TType.I64, (short)18);
46
  private static final TField RETIRE_DATE_FIELD_DESC = new TField("retireDate", TType.I64, (short)19);
47
  private static final TField ITEM_STATUS_FIELD_DESC = new TField("itemStatus", TType.I32, (short)20);
48
  private static final TField OTHER_INFO_FIELD_DESC = new TField("otherInfo", TType.MAP, (short)21);
607 chandransh 49
  private static final TField BEST_DEAL_TEXT_FIELD_DESC = new TField("bestDealText", TType.STRING, (short)22);
50
  private static final TField BEST_DEAL_VALUE_FIELD_DESC = new TField("bestDealValue", TType.DOUBLE, (short)23);
51
  private static final TField DEALER_PRICE_FIELD_DESC = new TField("dealerPrice", TType.DOUBLE, (short)24);
52
  private static final TField UPDATED_ON_FIELD_DESC = new TField("updatedOn", TType.I64, (short)25);
53
  private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)26);
100 ashish 54
 
55
  private long id;
510 rajveer 56
  private String manufacturerName;
483 rajveer 57
  private String modelNumber;
58
  private String modelName;
59
  private String category;
60
  private String comments;
123 ashish 61
  private long catalogItemId;
483 rajveer 62
  private String vendorItemId;
63
  private long featureId;
64
  private String featureDescription;
100 ashish 65
  private ItemInventory itemInventory;
483 rajveer 66
  private double mrp;
67
  private double mop;
68
  private double sellingPrice;
69
  private double weight;
103 ashish 70
  private long addedOn;
71
  private long startDate;
483 rajveer 72
  private long retireDate;
103 ashish 73
  private status itemStatus;
74
  private Map<String,String> otherInfo;
607 chandransh 75
  private String bestDealText;
76
  private double bestDealValue;
77
  private double dealerPrice;
78
  private long updatedOn;
79
  private String color;
100 ashish 80
 
81
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
82
  public enum _Fields implements TFieldIdEnum {
83
    ID((short)1, "id"),
510 rajveer 84
    MANUFACTURER_NAME((short)2, "manufacturerName"),
483 rajveer 85
    MODEL_NUMBER((short)3, "modelNumber"),
86
    MODEL_NAME((short)4, "modelName"),
87
    CATEGORY((short)5, "category"),
88
    COMMENTS((short)6, "comments"),
89
    CATALOG_ITEM_ID((short)7, "catalogItemId"),
90
    VENDOR_ITEM_ID((short)8, "vendorItemId"),
91
    FEATURE_ID((short)10, "featureId"),
92
    FEATURE_DESCRIPTION((short)11, "featureDescription"),
93
    ITEM_INVENTORY((short)12, "itemInventory"),
94
    MRP((short)13, "mrp"),
95
    MOP((short)14, "mop"),
96
    SELLING_PRICE((short)15, "sellingPrice"),
97
    WEIGHT((short)16, "weight"),
98
    ADDED_ON((short)17, "addedOn"),
99
    START_DATE((short)18, "startDate"),
100
    RETIRE_DATE((short)19, "retireDate"),
103 ashish 101
    /**
102
     * 
103
     * @see status
104
     */
483 rajveer 105
    ITEM_STATUS((short)20, "itemStatus"),
607 chandransh 106
    OTHER_INFO((short)21, "otherInfo"),
107
    BEST_DEAL_TEXT((short)22, "bestDealText"),
108
    BEST_DEAL_VALUE((short)23, "bestDealValue"),
109
    DEALER_PRICE((short)24, "dealerPrice"),
110
    UPDATED_ON((short)25, "updatedOn"),
111
    COLOR((short)26, "color");
100 ashish 112
 
113
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
114
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
115
 
116
    static {
117
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
118
        byId.put((int)field._thriftId, field);
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
      return byId.get(fieldId);
128
    }
129
 
130
    /**
131
     * Find the _Fields constant that matches fieldId, throwing an exception
132
     * if it is not found.
133
     */
134
    public static _Fields findByThriftIdOrThrow(int fieldId) {
135
      _Fields fields = findByThriftId(fieldId);
136
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
137
      return fields;
138
    }
139
 
140
    /**
141
     * Find the _Fields constant that matches name, or null if its not found.
142
     */
143
    public static _Fields findByName(String name) {
144
      return byName.get(name);
145
    }
146
 
147
    private final short _thriftId;
148
    private final String _fieldName;
149
 
150
    _Fields(short thriftId, String fieldName) {
151
      _thriftId = thriftId;
152
      _fieldName = fieldName;
153
    }
154
 
155
    public short getThriftFieldId() {
156
      return _thriftId;
157
    }
158
 
159
    public String getFieldName() {
160
      return _fieldName;
161
    }
162
  }
163
 
164
  // isset id assignments
165
  private static final int __ID_ISSET_ID = 0;
123 ashish 166
  private static final int __CATALOGITEMID_ISSET_ID = 1;
483 rajveer 167
  private static final int __FEATUREID_ISSET_ID = 2;
168
  private static final int __MRP_ISSET_ID = 3;
169
  private static final int __MOP_ISSET_ID = 4;
170
  private static final int __SELLINGPRICE_ISSET_ID = 5;
171
  private static final int __WEIGHT_ISSET_ID = 6;
172
  private static final int __ADDEDON_ISSET_ID = 7;
173
  private static final int __STARTDATE_ISSET_ID = 8;
174
  private static final int __RETIREDATE_ISSET_ID = 9;
607 chandransh 175
  private static final int __BESTDEALVALUE_ISSET_ID = 10;
176
  private static final int __DEALERPRICE_ISSET_ID = 11;
177
  private static final int __UPDATEDON_ISSET_ID = 12;
178
  private BitSet __isset_bit_vector = new BitSet(13);
100 ashish 179
 
180
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
181
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
182
        new FieldValueMetaData(TType.I64)));
510 rajveer 183
    put(_Fields.MANUFACTURER_NAME, new FieldMetaData("manufacturerName", TFieldRequirementType.DEFAULT, 
483 rajveer 184
        new FieldValueMetaData(TType.STRING)));
185
    put(_Fields.MODEL_NUMBER, new FieldMetaData("modelNumber", TFieldRequirementType.DEFAULT, 
186
        new FieldValueMetaData(TType.STRING)));
187
    put(_Fields.MODEL_NAME, new FieldMetaData("modelName", TFieldRequirementType.DEFAULT, 
188
        new FieldValueMetaData(TType.STRING)));
189
    put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT, 
190
        new FieldValueMetaData(TType.STRING)));
191
    put(_Fields.COMMENTS, new FieldMetaData("comments", TFieldRequirementType.DEFAULT, 
192
        new FieldValueMetaData(TType.STRING)));
123 ashish 193
    put(_Fields.CATALOG_ITEM_ID, new FieldMetaData("catalogItemId", TFieldRequirementType.DEFAULT, 
194
        new FieldValueMetaData(TType.I64)));
483 rajveer 195
    put(_Fields.VENDOR_ITEM_ID, new FieldMetaData("vendorItemId", TFieldRequirementType.DEFAULT, 
196
        new FieldValueMetaData(TType.STRING)));
197
    put(_Fields.FEATURE_ID, new FieldMetaData("featureId", TFieldRequirementType.DEFAULT, 
198
        new FieldValueMetaData(TType.I64)));
199
    put(_Fields.FEATURE_DESCRIPTION, new FieldMetaData("featureDescription", TFieldRequirementType.DEFAULT, 
200
        new FieldValueMetaData(TType.STRING)));
100 ashish 201
    put(_Fields.ITEM_INVENTORY, new FieldMetaData("itemInventory", TFieldRequirementType.DEFAULT, 
202
        new StructMetaData(TType.STRUCT, ItemInventory.class)));
483 rajveer 203
    put(_Fields.MRP, new FieldMetaData("mrp", TFieldRequirementType.DEFAULT, 
204
        new FieldValueMetaData(TType.DOUBLE)));
205
    put(_Fields.MOP, new FieldMetaData("mop", TFieldRequirementType.DEFAULT, 
206
        new FieldValueMetaData(TType.DOUBLE)));
207
    put(_Fields.SELLING_PRICE, new FieldMetaData("sellingPrice", TFieldRequirementType.DEFAULT, 
208
        new FieldValueMetaData(TType.DOUBLE)));
209
    put(_Fields.WEIGHT, new FieldMetaData("weight", TFieldRequirementType.DEFAULT, 
210
        new FieldValueMetaData(TType.DOUBLE)));
103 ashish 211
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
212
        new FieldValueMetaData(TType.I64)));
213
    put(_Fields.START_DATE, new FieldMetaData("startDate", TFieldRequirementType.DEFAULT, 
214
        new FieldValueMetaData(TType.I64)));
483 rajveer 215
    put(_Fields.RETIRE_DATE, new FieldMetaData("retireDate", TFieldRequirementType.DEFAULT, 
216
        new FieldValueMetaData(TType.I64)));
103 ashish 217
    put(_Fields.ITEM_STATUS, new FieldMetaData("itemStatus", TFieldRequirementType.DEFAULT, 
218
        new EnumMetaData(TType.ENUM, status.class)));
219
    put(_Fields.OTHER_INFO, new FieldMetaData("otherInfo", TFieldRequirementType.DEFAULT, 
220
        new MapMetaData(TType.MAP, 
221
            new FieldValueMetaData(TType.STRING), 
222
            new FieldValueMetaData(TType.STRING))));
607 chandransh 223
    put(_Fields.BEST_DEAL_TEXT, new FieldMetaData("bestDealText", TFieldRequirementType.DEFAULT, 
224
        new FieldValueMetaData(TType.STRING)));
225
    put(_Fields.BEST_DEAL_VALUE, new FieldMetaData("bestDealValue", TFieldRequirementType.DEFAULT, 
226
        new FieldValueMetaData(TType.DOUBLE)));
227
    put(_Fields.DEALER_PRICE, new FieldMetaData("dealerPrice", TFieldRequirementType.DEFAULT, 
228
        new FieldValueMetaData(TType.DOUBLE)));
229
    put(_Fields.UPDATED_ON, new FieldMetaData("updatedOn", TFieldRequirementType.DEFAULT, 
230
        new FieldValueMetaData(TType.I64)));
231
    put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
232
        new FieldValueMetaData(TType.STRING)));
100 ashish 233
  }});
234
 
235
  static {
236
    FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
237
  }
238
 
239
  public Item() {
240
  }
241
 
242
  public Item(
243
    long id,
510 rajveer 244
    String manufacturerName,
483 rajveer 245
    String modelNumber,
246
    String modelName,
247
    String category,
248
    String comments,
123 ashish 249
    long catalogItemId,
483 rajveer 250
    String vendorItemId,
251
    long featureId,
252
    String featureDescription,
103 ashish 253
    ItemInventory itemInventory,
483 rajveer 254
    double mrp,
255
    double mop,
256
    double sellingPrice,
257
    double weight,
103 ashish 258
    long addedOn,
259
    long startDate,
483 rajveer 260
    long retireDate,
103 ashish 261
    status itemStatus,
607 chandransh 262
    Map<String,String> otherInfo,
263
    String bestDealText,
264
    double bestDealValue,
265
    double dealerPrice,
266
    long updatedOn,
267
    String color)
100 ashish 268
  {
269
    this();
270
    this.id = id;
271
    setIdIsSet(true);
510 rajveer 272
    this.manufacturerName = manufacturerName;
483 rajveer 273
    this.modelNumber = modelNumber;
274
    this.modelName = modelName;
275
    this.category = category;
276
    this.comments = comments;
123 ashish 277
    this.catalogItemId = catalogItemId;
278
    setCatalogItemIdIsSet(true);
483 rajveer 279
    this.vendorItemId = vendorItemId;
280
    this.featureId = featureId;
281
    setFeatureIdIsSet(true);
282
    this.featureDescription = featureDescription;
100 ashish 283
    this.itemInventory = itemInventory;
483 rajveer 284
    this.mrp = mrp;
285
    setMrpIsSet(true);
286
    this.mop = mop;
287
    setMopIsSet(true);
288
    this.sellingPrice = sellingPrice;
289
    setSellingPriceIsSet(true);
290
    this.weight = weight;
291
    setWeightIsSet(true);
103 ashish 292
    this.addedOn = addedOn;
293
    setAddedOnIsSet(true);
294
    this.startDate = startDate;
295
    setStartDateIsSet(true);
483 rajveer 296
    this.retireDate = retireDate;
297
    setRetireDateIsSet(true);
103 ashish 298
    this.itemStatus = itemStatus;
299
    this.otherInfo = otherInfo;
607 chandransh 300
    this.bestDealText = bestDealText;
301
    this.bestDealValue = bestDealValue;
302
    setBestDealValueIsSet(true);
303
    this.dealerPrice = dealerPrice;
304
    setDealerPriceIsSet(true);
305
    this.updatedOn = updatedOn;
306
    setUpdatedOnIsSet(true);
307
    this.color = color;
100 ashish 308
  }
309
 
310
  /**
311
   * Performs a deep copy on <i>other</i>.
312
   */
313
  public Item(Item other) {
314
    __isset_bit_vector.clear();
315
    __isset_bit_vector.or(other.__isset_bit_vector);
316
    this.id = other.id;
510 rajveer 317
    if (other.isSetManufacturerName()) {
318
      this.manufacturerName = other.manufacturerName;
483 rajveer 319
    }
320
    if (other.isSetModelNumber()) {
321
      this.modelNumber = other.modelNumber;
322
    }
323
    if (other.isSetModelName()) {
324
      this.modelName = other.modelName;
325
    }
326
    if (other.isSetCategory()) {
327
      this.category = other.category;
328
    }
329
    if (other.isSetComments()) {
330
      this.comments = other.comments;
331
    }
123 ashish 332
    this.catalogItemId = other.catalogItemId;
483 rajveer 333
    if (other.isSetVendorItemId()) {
334
      this.vendorItemId = other.vendorItemId;
335
    }
336
    this.featureId = other.featureId;
337
    if (other.isSetFeatureDescription()) {
338
      this.featureDescription = other.featureDescription;
339
    }
100 ashish 340
    if (other.isSetItemInventory()) {
341
      this.itemInventory = new ItemInventory(other.itemInventory);
342
    }
483 rajveer 343
    this.mrp = other.mrp;
344
    this.mop = other.mop;
345
    this.sellingPrice = other.sellingPrice;
346
    this.weight = other.weight;
103 ashish 347
    this.addedOn = other.addedOn;
348
    this.startDate = other.startDate;
483 rajveer 349
    this.retireDate = other.retireDate;
103 ashish 350
    if (other.isSetItemStatus()) {
351
      this.itemStatus = other.itemStatus;
352
    }
353
    if (other.isSetOtherInfo()) {
354
      Map<String,String> __this__otherInfo = new HashMap<String,String>();
355
      for (Map.Entry<String, String> other_element : other.otherInfo.entrySet()) {
356
 
357
        String other_element_key = other_element.getKey();
358
        String other_element_value = other_element.getValue();
359
 
360
        String __this__otherInfo_copy_key = other_element_key;
361
 
362
        String __this__otherInfo_copy_value = other_element_value;
363
 
364
        __this__otherInfo.put(__this__otherInfo_copy_key, __this__otherInfo_copy_value);
365
      }
366
      this.otherInfo = __this__otherInfo;
367
    }
607 chandransh 368
    if (other.isSetBestDealText()) {
369
      this.bestDealText = other.bestDealText;
370
    }
371
    this.bestDealValue = other.bestDealValue;
372
    this.dealerPrice = other.dealerPrice;
373
    this.updatedOn = other.updatedOn;
374
    if (other.isSetColor()) {
375
      this.color = other.color;
376
    }
100 ashish 377
  }
378
 
379
  public Item deepCopy() {
380
    return new Item(this);
381
  }
382
 
383
  @Deprecated
384
  public Item clone() {
385
    return new Item(this);
386
  }
387
 
388
  public long getId() {
389
    return this.id;
390
  }
391
 
392
  public Item setId(long id) {
393
    this.id = id;
394
    setIdIsSet(true);
395
    return this;
396
  }
397
 
398
  public void unsetId() {
399
    __isset_bit_vector.clear(__ID_ISSET_ID);
400
  }
401
 
402
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
403
  public boolean isSetId() {
404
    return __isset_bit_vector.get(__ID_ISSET_ID);
405
  }
406
 
407
  public void setIdIsSet(boolean value) {
408
    __isset_bit_vector.set(__ID_ISSET_ID, value);
409
  }
410
 
510 rajveer 411
  public String getManufacturerName() {
412
    return this.manufacturerName;
483 rajveer 413
  }
414
 
510 rajveer 415
  public Item setManufacturerName(String manufacturerName) {
416
    this.manufacturerName = manufacturerName;
483 rajveer 417
    return this;
418
  }
419
 
510 rajveer 420
  public void unsetManufacturerName() {
421
    this.manufacturerName = null;
483 rajveer 422
  }
423
 
510 rajveer 424
  /** Returns true if field manufacturerName is set (has been asigned a value) and false otherwise */
425
  public boolean isSetManufacturerName() {
426
    return this.manufacturerName != null;
483 rajveer 427
  }
428
 
510 rajveer 429
  public void setManufacturerNameIsSet(boolean value) {
483 rajveer 430
    if (!value) {
510 rajveer 431
      this.manufacturerName = null;
483 rajveer 432
    }
433
  }
434
 
435
  public String getModelNumber() {
436
    return this.modelNumber;
437
  }
438
 
439
  public Item setModelNumber(String modelNumber) {
440
    this.modelNumber = modelNumber;
441
    return this;
442
  }
443
 
444
  public void unsetModelNumber() {
445
    this.modelNumber = null;
446
  }
447
 
448
  /** Returns true if field modelNumber is set (has been asigned a value) and false otherwise */
449
  public boolean isSetModelNumber() {
450
    return this.modelNumber != null;
451
  }
452
 
453
  public void setModelNumberIsSet(boolean value) {
454
    if (!value) {
455
      this.modelNumber = null;
456
    }
457
  }
458
 
459
  public String getModelName() {
460
    return this.modelName;
461
  }
462
 
463
  public Item setModelName(String modelName) {
464
    this.modelName = modelName;
465
    return this;
466
  }
467
 
468
  public void unsetModelName() {
469
    this.modelName = null;
470
  }
471
 
472
  /** Returns true if field modelName is set (has been asigned a value) and false otherwise */
473
  public boolean isSetModelName() {
474
    return this.modelName != null;
475
  }
476
 
477
  public void setModelNameIsSet(boolean value) {
478
    if (!value) {
479
      this.modelName = null;
480
    }
481
  }
482
 
483
  public String getCategory() {
484
    return this.category;
485
  }
486
 
487
  public Item setCategory(String category) {
488
    this.category = category;
489
    return this;
490
  }
491
 
492
  public void unsetCategory() {
493
    this.category = null;
494
  }
495
 
496
  /** Returns true if field category is set (has been asigned a value) and false otherwise */
497
  public boolean isSetCategory() {
498
    return this.category != null;
499
  }
500
 
501
  public void setCategoryIsSet(boolean value) {
502
    if (!value) {
503
      this.category = null;
504
    }
505
  }
506
 
507
  public String getComments() {
508
    return this.comments;
509
  }
510
 
511
  public Item setComments(String comments) {
512
    this.comments = comments;
513
    return this;
514
  }
515
 
516
  public void unsetComments() {
517
    this.comments = null;
518
  }
519
 
520
  /** Returns true if field comments is set (has been asigned a value) and false otherwise */
521
  public boolean isSetComments() {
522
    return this.comments != null;
523
  }
524
 
525
  public void setCommentsIsSet(boolean value) {
526
    if (!value) {
527
      this.comments = null;
528
    }
529
  }
530
 
123 ashish 531
  public long getCatalogItemId() {
532
    return this.catalogItemId;
100 ashish 533
  }
534
 
123 ashish 535
  public Item setCatalogItemId(long catalogItemId) {
536
    this.catalogItemId = catalogItemId;
537
    setCatalogItemIdIsSet(true);
100 ashish 538
    return this;
539
  }
540
 
123 ashish 541
  public void unsetCatalogItemId() {
542
    __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
100 ashish 543
  }
544
 
123 ashish 545
  /** Returns true if field catalogItemId is set (has been asigned a value) and false otherwise */
546
  public boolean isSetCatalogItemId() {
547
    return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
100 ashish 548
  }
549
 
123 ashish 550
  public void setCatalogItemIdIsSet(boolean value) {
551
    __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
100 ashish 552
  }
553
 
483 rajveer 554
  public String getVendorItemId() {
555
    return this.vendorItemId;
556
  }
557
 
558
  public Item setVendorItemId(String vendorItemId) {
559
    this.vendorItemId = vendorItemId;
560
    return this;
561
  }
562
 
563
  public void unsetVendorItemId() {
564
    this.vendorItemId = null;
565
  }
566
 
567
  /** Returns true if field vendorItemId is set (has been asigned a value) and false otherwise */
568
  public boolean isSetVendorItemId() {
569
    return this.vendorItemId != null;
570
  }
571
 
572
  public void setVendorItemIdIsSet(boolean value) {
573
    if (!value) {
574
      this.vendorItemId = null;
575
    }
576
  }
577
 
578
  public long getFeatureId() {
579
    return this.featureId;
580
  }
581
 
582
  public Item setFeatureId(long featureId) {
583
    this.featureId = featureId;
584
    setFeatureIdIsSet(true);
585
    return this;
586
  }
587
 
588
  public void unsetFeatureId() {
589
    __isset_bit_vector.clear(__FEATUREID_ISSET_ID);
590
  }
591
 
592
  /** Returns true if field featureId is set (has been asigned a value) and false otherwise */
593
  public boolean isSetFeatureId() {
594
    return __isset_bit_vector.get(__FEATUREID_ISSET_ID);
595
  }
596
 
597
  public void setFeatureIdIsSet(boolean value) {
598
    __isset_bit_vector.set(__FEATUREID_ISSET_ID, value);
599
  }
600
 
601
  public String getFeatureDescription() {
602
    return this.featureDescription;
603
  }
604
 
605
  public Item setFeatureDescription(String featureDescription) {
606
    this.featureDescription = featureDescription;
607
    return this;
608
  }
609
 
610
  public void unsetFeatureDescription() {
611
    this.featureDescription = null;
612
  }
613
 
614
  /** Returns true if field featureDescription is set (has been asigned a value) and false otherwise */
615
  public boolean isSetFeatureDescription() {
616
    return this.featureDescription != null;
617
  }
618
 
619
  public void setFeatureDescriptionIsSet(boolean value) {
620
    if (!value) {
621
      this.featureDescription = null;
622
    }
623
  }
624
 
100 ashish 625
  public ItemInventory getItemInventory() {
626
    return this.itemInventory;
627
  }
628
 
629
  public Item setItemInventory(ItemInventory itemInventory) {
630
    this.itemInventory = itemInventory;
631
    return this;
632
  }
633
 
634
  public void unsetItemInventory() {
635
    this.itemInventory = null;
636
  }
637
 
638
  /** Returns true if field itemInventory is set (has been asigned a value) and false otherwise */
639
  public boolean isSetItemInventory() {
640
    return this.itemInventory != null;
641
  }
642
 
643
  public void setItemInventoryIsSet(boolean value) {
644
    if (!value) {
645
      this.itemInventory = null;
646
    }
647
  }
648
 
483 rajveer 649
  public double getMrp() {
650
    return this.mrp;
651
  }
652
 
653
  public Item setMrp(double mrp) {
654
    this.mrp = mrp;
655
    setMrpIsSet(true);
656
    return this;
657
  }
658
 
659
  public void unsetMrp() {
660
    __isset_bit_vector.clear(__MRP_ISSET_ID);
661
  }
662
 
663
  /** Returns true if field mrp is set (has been asigned a value) and false otherwise */
664
  public boolean isSetMrp() {
665
    return __isset_bit_vector.get(__MRP_ISSET_ID);
666
  }
667
 
668
  public void setMrpIsSet(boolean value) {
669
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
670
  }
671
 
672
  public double getMop() {
673
    return this.mop;
674
  }
675
 
676
  public Item setMop(double mop) {
677
    this.mop = mop;
678
    setMopIsSet(true);
679
    return this;
680
  }
681
 
682
  public void unsetMop() {
683
    __isset_bit_vector.clear(__MOP_ISSET_ID);
684
  }
685
 
686
  /** Returns true if field mop is set (has been asigned a value) and false otherwise */
687
  public boolean isSetMop() {
688
    return __isset_bit_vector.get(__MOP_ISSET_ID);
689
  }
690
 
691
  public void setMopIsSet(boolean value) {
692
    __isset_bit_vector.set(__MOP_ISSET_ID, value);
693
  }
694
 
695
  public double getSellingPrice() {
696
    return this.sellingPrice;
697
  }
698
 
699
  public Item setSellingPrice(double sellingPrice) {
700
    this.sellingPrice = sellingPrice;
701
    setSellingPriceIsSet(true);
702
    return this;
703
  }
704
 
705
  public void unsetSellingPrice() {
706
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
707
  }
708
 
709
  /** Returns true if field sellingPrice is set (has been asigned a value) and false otherwise */
710
  public boolean isSetSellingPrice() {
711
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
712
  }
713
 
714
  public void setSellingPriceIsSet(boolean value) {
715
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
716
  }
717
 
718
  public double getWeight() {
719
    return this.weight;
720
  }
721
 
722
  public Item setWeight(double weight) {
723
    this.weight = weight;
724
    setWeightIsSet(true);
725
    return this;
726
  }
727
 
728
  public void unsetWeight() {
729
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
730
  }
731
 
732
  /** Returns true if field weight is set (has been asigned a value) and false otherwise */
733
  public boolean isSetWeight() {
734
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
735
  }
736
 
737
  public void setWeightIsSet(boolean value) {
738
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
739
  }
740
 
103 ashish 741
  public long getAddedOn() {
742
    return this.addedOn;
743
  }
744
 
745
  public Item setAddedOn(long addedOn) {
746
    this.addedOn = addedOn;
747
    setAddedOnIsSet(true);
748
    return this;
749
  }
750
 
751
  public void unsetAddedOn() {
752
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
753
  }
754
 
755
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
756
  public boolean isSetAddedOn() {
757
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
758
  }
759
 
760
  public void setAddedOnIsSet(boolean value) {
761
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
762
  }
763
 
764
  public long getStartDate() {
765
    return this.startDate;
766
  }
767
 
768
  public Item setStartDate(long startDate) {
769
    this.startDate = startDate;
770
    setStartDateIsSet(true);
771
    return this;
772
  }
773
 
774
  public void unsetStartDate() {
775
    __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
776
  }
777
 
778
  /** Returns true if field startDate is set (has been asigned a value) and false otherwise */
779
  public boolean isSetStartDate() {
780
    return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
781
  }
782
 
783
  public void setStartDateIsSet(boolean value) {
784
    __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
785
  }
786
 
483 rajveer 787
  public long getRetireDate() {
788
    return this.retireDate;
789
  }
790
 
791
  public Item setRetireDate(long retireDate) {
792
    this.retireDate = retireDate;
793
    setRetireDateIsSet(true);
794
    return this;
795
  }
796
 
797
  public void unsetRetireDate() {
798
    __isset_bit_vector.clear(__RETIREDATE_ISSET_ID);
799
  }
800
 
801
  /** Returns true if field retireDate is set (has been asigned a value) and false otherwise */
802
  public boolean isSetRetireDate() {
803
    return __isset_bit_vector.get(__RETIREDATE_ISSET_ID);
804
  }
805
 
806
  public void setRetireDateIsSet(boolean value) {
807
    __isset_bit_vector.set(__RETIREDATE_ISSET_ID, value);
808
  }
809
 
103 ashish 810
  /**
811
   * 
812
   * @see status
813
   */
814
  public status getItemStatus() {
815
    return this.itemStatus;
816
  }
817
 
818
  /**
819
   * 
820
   * @see status
821
   */
822
  public Item setItemStatus(status itemStatus) {
823
    this.itemStatus = itemStatus;
824
    return this;
825
  }
826
 
827
  public void unsetItemStatus() {
828
    this.itemStatus = null;
829
  }
830
 
831
  /** Returns true if field itemStatus is set (has been asigned a value) and false otherwise */
832
  public boolean isSetItemStatus() {
833
    return this.itemStatus != null;
834
  }
835
 
836
  public void setItemStatusIsSet(boolean value) {
837
    if (!value) {
838
      this.itemStatus = null;
839
    }
840
  }
841
 
842
  public int getOtherInfoSize() {
843
    return (this.otherInfo == null) ? 0 : this.otherInfo.size();
844
  }
845
 
846
  public void putToOtherInfo(String key, String val) {
847
    if (this.otherInfo == null) {
848
      this.otherInfo = new HashMap<String,String>();
849
    }
850
    this.otherInfo.put(key, val);
851
  }
852
 
853
  public Map<String,String> getOtherInfo() {
854
    return this.otherInfo;
855
  }
856
 
857
  public Item setOtherInfo(Map<String,String> otherInfo) {
858
    this.otherInfo = otherInfo;
859
    return this;
860
  }
861
 
862
  public void unsetOtherInfo() {
863
    this.otherInfo = null;
864
  }
865
 
866
  /** Returns true if field otherInfo is set (has been asigned a value) and false otherwise */
867
  public boolean isSetOtherInfo() {
868
    return this.otherInfo != null;
869
  }
870
 
871
  public void setOtherInfoIsSet(boolean value) {
872
    if (!value) {
873
      this.otherInfo = null;
874
    }
875
  }
876
 
607 chandransh 877
  public String getBestDealText() {
878
    return this.bestDealText;
879
  }
880
 
881
  public Item setBestDealText(String bestDealText) {
882
    this.bestDealText = bestDealText;
883
    return this;
884
  }
885
 
886
  public void unsetBestDealText() {
887
    this.bestDealText = null;
888
  }
889
 
890
  /** Returns true if field bestDealText is set (has been asigned a value) and false otherwise */
891
  public boolean isSetBestDealText() {
892
    return this.bestDealText != null;
893
  }
894
 
895
  public void setBestDealTextIsSet(boolean value) {
896
    if (!value) {
897
      this.bestDealText = null;
898
    }
899
  }
900
 
901
  public double getBestDealValue() {
902
    return this.bestDealValue;
903
  }
904
 
905
  public Item setBestDealValue(double bestDealValue) {
906
    this.bestDealValue = bestDealValue;
907
    setBestDealValueIsSet(true);
908
    return this;
909
  }
910
 
911
  public void unsetBestDealValue() {
912
    __isset_bit_vector.clear(__BESTDEALVALUE_ISSET_ID);
913
  }
914
 
915
  /** Returns true if field bestDealValue is set (has been asigned a value) and false otherwise */
916
  public boolean isSetBestDealValue() {
917
    return __isset_bit_vector.get(__BESTDEALVALUE_ISSET_ID);
918
  }
919
 
920
  public void setBestDealValueIsSet(boolean value) {
921
    __isset_bit_vector.set(__BESTDEALVALUE_ISSET_ID, value);
922
  }
923
 
924
  public double getDealerPrice() {
925
    return this.dealerPrice;
926
  }
927
 
928
  public Item setDealerPrice(double dealerPrice) {
929
    this.dealerPrice = dealerPrice;
930
    setDealerPriceIsSet(true);
931
    return this;
932
  }
933
 
934
  public void unsetDealerPrice() {
935
    __isset_bit_vector.clear(__DEALERPRICE_ISSET_ID);
936
  }
937
 
938
  /** Returns true if field dealerPrice is set (has been asigned a value) and false otherwise */
939
  public boolean isSetDealerPrice() {
940
    return __isset_bit_vector.get(__DEALERPRICE_ISSET_ID);
941
  }
942
 
943
  public void setDealerPriceIsSet(boolean value) {
944
    __isset_bit_vector.set(__DEALERPRICE_ISSET_ID, value);
945
  }
946
 
947
  public long getUpdatedOn() {
948
    return this.updatedOn;
949
  }
950
 
951
  public Item setUpdatedOn(long updatedOn) {
952
    this.updatedOn = updatedOn;
953
    setUpdatedOnIsSet(true);
954
    return this;
955
  }
956
 
957
  public void unsetUpdatedOn() {
958
    __isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
959
  }
960
 
961
  /** Returns true if field updatedOn is set (has been asigned a value) and false otherwise */
962
  public boolean isSetUpdatedOn() {
963
    return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
964
  }
965
 
966
  public void setUpdatedOnIsSet(boolean value) {
967
    __isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
968
  }
969
 
970
  public String getColor() {
971
    return this.color;
972
  }
973
 
974
  public Item setColor(String color) {
975
    this.color = color;
976
    return this;
977
  }
978
 
979
  public void unsetColor() {
980
    this.color = null;
981
  }
982
 
983
  /** Returns true if field color is set (has been asigned a value) and false otherwise */
984
  public boolean isSetColor() {
985
    return this.color != null;
986
  }
987
 
988
  public void setColorIsSet(boolean value) {
989
    if (!value) {
990
      this.color = null;
991
    }
992
  }
993
 
100 ashish 994
  public void setFieldValue(_Fields field, Object value) {
995
    switch (field) {
996
    case ID:
997
      if (value == null) {
998
        unsetId();
999
      } else {
1000
        setId((Long)value);
1001
      }
1002
      break;
1003
 
510 rajveer 1004
    case MANUFACTURER_NAME:
483 rajveer 1005
      if (value == null) {
510 rajveer 1006
        unsetManufacturerName();
483 rajveer 1007
      } else {
510 rajveer 1008
        setManufacturerName((String)value);
483 rajveer 1009
      }
1010
      break;
1011
 
1012
    case MODEL_NUMBER:
1013
      if (value == null) {
1014
        unsetModelNumber();
1015
      } else {
1016
        setModelNumber((String)value);
1017
      }
1018
      break;
1019
 
1020
    case MODEL_NAME:
1021
      if (value == null) {
1022
        unsetModelName();
1023
      } else {
1024
        setModelName((String)value);
1025
      }
1026
      break;
1027
 
1028
    case CATEGORY:
1029
      if (value == null) {
1030
        unsetCategory();
1031
      } else {
1032
        setCategory((String)value);
1033
      }
1034
      break;
1035
 
1036
    case COMMENTS:
1037
      if (value == null) {
1038
        unsetComments();
1039
      } else {
1040
        setComments((String)value);
1041
      }
1042
      break;
1043
 
123 ashish 1044
    case CATALOG_ITEM_ID:
100 ashish 1045
      if (value == null) {
123 ashish 1046
        unsetCatalogItemId();
100 ashish 1047
      } else {
123 ashish 1048
        setCatalogItemId((Long)value);
100 ashish 1049
      }
1050
      break;
1051
 
483 rajveer 1052
    case VENDOR_ITEM_ID:
100 ashish 1053
      if (value == null) {
483 rajveer 1054
        unsetVendorItemId();
100 ashish 1055
      } else {
483 rajveer 1056
        setVendorItemId((String)value);
100 ashish 1057
      }
1058
      break;
1059
 
483 rajveer 1060
    case FEATURE_ID:
100 ashish 1061
      if (value == null) {
483 rajveer 1062
        unsetFeatureId();
100 ashish 1063
      } else {
483 rajveer 1064
        setFeatureId((Long)value);
100 ashish 1065
      }
1066
      break;
1067
 
483 rajveer 1068
    case FEATURE_DESCRIPTION:
103 ashish 1069
      if (value == null) {
483 rajveer 1070
        unsetFeatureDescription();
103 ashish 1071
      } else {
483 rajveer 1072
        setFeatureDescription((String)value);
103 ashish 1073
      }
1074
      break;
1075
 
483 rajveer 1076
    case ITEM_INVENTORY:
103 ashish 1077
      if (value == null) {
483 rajveer 1078
        unsetItemInventory();
103 ashish 1079
      } else {
483 rajveer 1080
        setItemInventory((ItemInventory)value);
103 ashish 1081
      }
1082
      break;
1083
 
483 rajveer 1084
    case MRP:
103 ashish 1085
      if (value == null) {
483 rajveer 1086
        unsetMrp();
103 ashish 1087
      } else {
483 rajveer 1088
        setMrp((Double)value);
103 ashish 1089
      }
1090
      break;
1091
 
483 rajveer 1092
    case MOP:
103 ashish 1093
      if (value == null) {
483 rajveer 1094
        unsetMop();
103 ashish 1095
      } else {
483 rajveer 1096
        setMop((Double)value);
103 ashish 1097
      }
1098
      break;
1099
 
483 rajveer 1100
    case SELLING_PRICE:
1101
      if (value == null) {
1102
        unsetSellingPrice();
1103
      } else {
1104
        setSellingPrice((Double)value);
1105
      }
1106
      break;
1107
 
123 ashish 1108
    case WEIGHT:
1109
      if (value == null) {
1110
        unsetWeight();
1111
      } else {
1112
        setWeight((Double)value);
1113
      }
1114
      break;
1115
 
483 rajveer 1116
    case ADDED_ON:
123 ashish 1117
      if (value == null) {
483 rajveer 1118
        unsetAddedOn();
123 ashish 1119
      } else {
483 rajveer 1120
        setAddedOn((Long)value);
123 ashish 1121
      }
1122
      break;
1123
 
483 rajveer 1124
    case START_DATE:
123 ashish 1125
      if (value == null) {
483 rajveer 1126
        unsetStartDate();
123 ashish 1127
      } else {
483 rajveer 1128
        setStartDate((Long)value);
123 ashish 1129
      }
1130
      break;
1131
 
483 rajveer 1132
    case RETIRE_DATE:
123 ashish 1133
      if (value == null) {
483 rajveer 1134
        unsetRetireDate();
123 ashish 1135
      } else {
483 rajveer 1136
        setRetireDate((Long)value);
123 ashish 1137
      }
1138
      break;
1139
 
483 rajveer 1140
    case ITEM_STATUS:
1141
      if (value == null) {
1142
        unsetItemStatus();
1143
      } else {
1144
        setItemStatus((status)value);
1145
      }
1146
      break;
1147
 
1148
    case OTHER_INFO:
1149
      if (value == null) {
1150
        unsetOtherInfo();
1151
      } else {
1152
        setOtherInfo((Map<String,String>)value);
1153
      }
1154
      break;
1155
 
607 chandransh 1156
    case BEST_DEAL_TEXT:
1157
      if (value == null) {
1158
        unsetBestDealText();
1159
      } else {
1160
        setBestDealText((String)value);
1161
      }
1162
      break;
1163
 
1164
    case BEST_DEAL_VALUE:
1165
      if (value == null) {
1166
        unsetBestDealValue();
1167
      } else {
1168
        setBestDealValue((Double)value);
1169
      }
1170
      break;
1171
 
1172
    case DEALER_PRICE:
1173
      if (value == null) {
1174
        unsetDealerPrice();
1175
      } else {
1176
        setDealerPrice((Double)value);
1177
      }
1178
      break;
1179
 
1180
    case UPDATED_ON:
1181
      if (value == null) {
1182
        unsetUpdatedOn();
1183
      } else {
1184
        setUpdatedOn((Long)value);
1185
      }
1186
      break;
1187
 
1188
    case COLOR:
1189
      if (value == null) {
1190
        unsetColor();
1191
      } else {
1192
        setColor((String)value);
1193
      }
1194
      break;
1195
 
100 ashish 1196
    }
1197
  }
1198
 
1199
  public void setFieldValue(int fieldID, Object value) {
1200
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1201
  }
1202
 
1203
  public Object getFieldValue(_Fields field) {
1204
    switch (field) {
1205
    case ID:
1206
      return new Long(getId());
1207
 
510 rajveer 1208
    case MANUFACTURER_NAME:
1209
      return getManufacturerName();
483 rajveer 1210
 
1211
    case MODEL_NUMBER:
1212
      return getModelNumber();
1213
 
1214
    case MODEL_NAME:
1215
      return getModelName();
1216
 
1217
    case CATEGORY:
1218
      return getCategory();
1219
 
1220
    case COMMENTS:
1221
      return getComments();
1222
 
123 ashish 1223
    case CATALOG_ITEM_ID:
1224
      return new Long(getCatalogItemId());
100 ashish 1225
 
483 rajveer 1226
    case VENDOR_ITEM_ID:
1227
      return getVendorItemId();
1228
 
1229
    case FEATURE_ID:
1230
      return new Long(getFeatureId());
1231
 
1232
    case FEATURE_DESCRIPTION:
1233
      return getFeatureDescription();
1234
 
100 ashish 1235
    case ITEM_INVENTORY:
1236
      return getItemInventory();
1237
 
483 rajveer 1238
    case MRP:
1239
      return new Double(getMrp());
1240
 
1241
    case MOP:
1242
      return new Double(getMop());
1243
 
1244
    case SELLING_PRICE:
1245
      return new Double(getSellingPrice());
1246
 
1247
    case WEIGHT:
1248
      return new Double(getWeight());
1249
 
103 ashish 1250
    case ADDED_ON:
1251
      return new Long(getAddedOn());
1252
 
1253
    case START_DATE:
1254
      return new Long(getStartDate());
1255
 
483 rajveer 1256
    case RETIRE_DATE:
1257
      return new Long(getRetireDate());
1258
 
103 ashish 1259
    case ITEM_STATUS:
1260
      return getItemStatus();
1261
 
1262
    case OTHER_INFO:
1263
      return getOtherInfo();
1264
 
607 chandransh 1265
    case BEST_DEAL_TEXT:
1266
      return getBestDealText();
1267
 
1268
    case BEST_DEAL_VALUE:
1269
      return new Double(getBestDealValue());
1270
 
1271
    case DEALER_PRICE:
1272
      return new Double(getDealerPrice());
1273
 
1274
    case UPDATED_ON:
1275
      return new Long(getUpdatedOn());
1276
 
1277
    case COLOR:
1278
      return getColor();
1279
 
100 ashish 1280
    }
1281
    throw new IllegalStateException();
1282
  }
1283
 
1284
  public Object getFieldValue(int fieldId) {
1285
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
1286
  }
1287
 
1288
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1289
  public boolean isSet(_Fields field) {
1290
    switch (field) {
1291
    case ID:
1292
      return isSetId();
510 rajveer 1293
    case MANUFACTURER_NAME:
1294
      return isSetManufacturerName();
483 rajveer 1295
    case MODEL_NUMBER:
1296
      return isSetModelNumber();
1297
    case MODEL_NAME:
1298
      return isSetModelName();
1299
    case CATEGORY:
1300
      return isSetCategory();
1301
    case COMMENTS:
1302
      return isSetComments();
123 ashish 1303
    case CATALOG_ITEM_ID:
1304
      return isSetCatalogItemId();
483 rajveer 1305
    case VENDOR_ITEM_ID:
1306
      return isSetVendorItemId();
1307
    case FEATURE_ID:
1308
      return isSetFeatureId();
1309
    case FEATURE_DESCRIPTION:
1310
      return isSetFeatureDescription();
100 ashish 1311
    case ITEM_INVENTORY:
1312
      return isSetItemInventory();
483 rajveer 1313
    case MRP:
1314
      return isSetMrp();
1315
    case MOP:
1316
      return isSetMop();
1317
    case SELLING_PRICE:
1318
      return isSetSellingPrice();
1319
    case WEIGHT:
1320
      return isSetWeight();
103 ashish 1321
    case ADDED_ON:
1322
      return isSetAddedOn();
1323
    case START_DATE:
1324
      return isSetStartDate();
483 rajveer 1325
    case RETIRE_DATE:
1326
      return isSetRetireDate();
103 ashish 1327
    case ITEM_STATUS:
1328
      return isSetItemStatus();
1329
    case OTHER_INFO:
1330
      return isSetOtherInfo();
607 chandransh 1331
    case BEST_DEAL_TEXT:
1332
      return isSetBestDealText();
1333
    case BEST_DEAL_VALUE:
1334
      return isSetBestDealValue();
1335
    case DEALER_PRICE:
1336
      return isSetDealerPrice();
1337
    case UPDATED_ON:
1338
      return isSetUpdatedOn();
1339
    case COLOR:
1340
      return isSetColor();
100 ashish 1341
    }
1342
    throw new IllegalStateException();
1343
  }
1344
 
1345
  public boolean isSet(int fieldID) {
1346
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
1347
  }
1348
 
1349
  @Override
1350
  public boolean equals(Object that) {
1351
    if (that == null)
1352
      return false;
1353
    if (that instanceof Item)
1354
      return this.equals((Item)that);
1355
    return false;
1356
  }
1357
 
1358
  public boolean equals(Item that) {
1359
    if (that == null)
1360
      return false;
1361
 
1362
    boolean this_present_id = true;
1363
    boolean that_present_id = true;
1364
    if (this_present_id || that_present_id) {
1365
      if (!(this_present_id && that_present_id))
1366
        return false;
1367
      if (this.id != that.id)
1368
        return false;
1369
    }
1370
 
510 rajveer 1371
    boolean this_present_manufacturerName = true && this.isSetManufacturerName();
1372
    boolean that_present_manufacturerName = true && that.isSetManufacturerName();
1373
    if (this_present_manufacturerName || that_present_manufacturerName) {
1374
      if (!(this_present_manufacturerName && that_present_manufacturerName))
483 rajveer 1375
        return false;
510 rajveer 1376
      if (!this.manufacturerName.equals(that.manufacturerName))
483 rajveer 1377
        return false;
1378
    }
1379
 
1380
    boolean this_present_modelNumber = true && this.isSetModelNumber();
1381
    boolean that_present_modelNumber = true && that.isSetModelNumber();
1382
    if (this_present_modelNumber || that_present_modelNumber) {
1383
      if (!(this_present_modelNumber && that_present_modelNumber))
1384
        return false;
1385
      if (!this.modelNumber.equals(that.modelNumber))
1386
        return false;
1387
    }
1388
 
1389
    boolean this_present_modelName = true && this.isSetModelName();
1390
    boolean that_present_modelName = true && that.isSetModelName();
1391
    if (this_present_modelName || that_present_modelName) {
1392
      if (!(this_present_modelName && that_present_modelName))
1393
        return false;
1394
      if (!this.modelName.equals(that.modelName))
1395
        return false;
1396
    }
1397
 
1398
    boolean this_present_category = true && this.isSetCategory();
1399
    boolean that_present_category = true && that.isSetCategory();
1400
    if (this_present_category || that_present_category) {
1401
      if (!(this_present_category && that_present_category))
1402
        return false;
1403
      if (!this.category.equals(that.category))
1404
        return false;
1405
    }
1406
 
1407
    boolean this_present_comments = true && this.isSetComments();
1408
    boolean that_present_comments = true && that.isSetComments();
1409
    if (this_present_comments || that_present_comments) {
1410
      if (!(this_present_comments && that_present_comments))
1411
        return false;
1412
      if (!this.comments.equals(that.comments))
1413
        return false;
1414
    }
1415
 
123 ashish 1416
    boolean this_present_catalogItemId = true;
1417
    boolean that_present_catalogItemId = true;
1418
    if (this_present_catalogItemId || that_present_catalogItemId) {
1419
      if (!(this_present_catalogItemId && that_present_catalogItemId))
100 ashish 1420
        return false;
123 ashish 1421
      if (this.catalogItemId != that.catalogItemId)
100 ashish 1422
        return false;
1423
    }
1424
 
483 rajveer 1425
    boolean this_present_vendorItemId = true && this.isSetVendorItemId();
1426
    boolean that_present_vendorItemId = true && that.isSetVendorItemId();
1427
    if (this_present_vendorItemId || that_present_vendorItemId) {
1428
      if (!(this_present_vendorItemId && that_present_vendorItemId))
1429
        return false;
1430
      if (!this.vendorItemId.equals(that.vendorItemId))
1431
        return false;
1432
    }
1433
 
1434
    boolean this_present_featureId = true;
1435
    boolean that_present_featureId = true;
1436
    if (this_present_featureId || that_present_featureId) {
1437
      if (!(this_present_featureId && that_present_featureId))
1438
        return false;
1439
      if (this.featureId != that.featureId)
1440
        return false;
1441
    }
1442
 
1443
    boolean this_present_featureDescription = true && this.isSetFeatureDescription();
1444
    boolean that_present_featureDescription = true && that.isSetFeatureDescription();
1445
    if (this_present_featureDescription || that_present_featureDescription) {
1446
      if (!(this_present_featureDescription && that_present_featureDescription))
1447
        return false;
1448
      if (!this.featureDescription.equals(that.featureDescription))
1449
        return false;
1450
    }
1451
 
100 ashish 1452
    boolean this_present_itemInventory = true && this.isSetItemInventory();
1453
    boolean that_present_itemInventory = true && that.isSetItemInventory();
1454
    if (this_present_itemInventory || that_present_itemInventory) {
1455
      if (!(this_present_itemInventory && that_present_itemInventory))
1456
        return false;
1457
      if (!this.itemInventory.equals(that.itemInventory))
1458
        return false;
1459
    }
1460
 
483 rajveer 1461
    boolean this_present_mrp = true;
1462
    boolean that_present_mrp = true;
1463
    if (this_present_mrp || that_present_mrp) {
1464
      if (!(this_present_mrp && that_present_mrp))
1465
        return false;
1466
      if (this.mrp != that.mrp)
1467
        return false;
1468
    }
1469
 
1470
    boolean this_present_mop = true;
1471
    boolean that_present_mop = true;
1472
    if (this_present_mop || that_present_mop) {
1473
      if (!(this_present_mop && that_present_mop))
1474
        return false;
1475
      if (this.mop != that.mop)
1476
        return false;
1477
    }
1478
 
1479
    boolean this_present_sellingPrice = true;
1480
    boolean that_present_sellingPrice = true;
1481
    if (this_present_sellingPrice || that_present_sellingPrice) {
1482
      if (!(this_present_sellingPrice && that_present_sellingPrice))
1483
        return false;
1484
      if (this.sellingPrice != that.sellingPrice)
1485
        return false;
1486
    }
1487
 
1488
    boolean this_present_weight = true;
1489
    boolean that_present_weight = true;
1490
    if (this_present_weight || that_present_weight) {
1491
      if (!(this_present_weight && that_present_weight))
1492
        return false;
1493
      if (this.weight != that.weight)
1494
        return false;
1495
    }
1496
 
103 ashish 1497
    boolean this_present_addedOn = true;
1498
    boolean that_present_addedOn = true;
1499
    if (this_present_addedOn || that_present_addedOn) {
1500
      if (!(this_present_addedOn && that_present_addedOn))
1501
        return false;
1502
      if (this.addedOn != that.addedOn)
1503
        return false;
1504
    }
1505
 
1506
    boolean this_present_startDate = true;
1507
    boolean that_present_startDate = true;
1508
    if (this_present_startDate || that_present_startDate) {
1509
      if (!(this_present_startDate && that_present_startDate))
1510
        return false;
1511
      if (this.startDate != that.startDate)
1512
        return false;
1513
    }
1514
 
483 rajveer 1515
    boolean this_present_retireDate = true;
1516
    boolean that_present_retireDate = true;
1517
    if (this_present_retireDate || that_present_retireDate) {
1518
      if (!(this_present_retireDate && that_present_retireDate))
1519
        return false;
1520
      if (this.retireDate != that.retireDate)
1521
        return false;
1522
    }
1523
 
103 ashish 1524
    boolean this_present_itemStatus = true && this.isSetItemStatus();
1525
    boolean that_present_itemStatus = true && that.isSetItemStatus();
1526
    if (this_present_itemStatus || that_present_itemStatus) {
1527
      if (!(this_present_itemStatus && that_present_itemStatus))
1528
        return false;
1529
      if (!this.itemStatus.equals(that.itemStatus))
1530
        return false;
1531
    }
1532
 
1533
    boolean this_present_otherInfo = true && this.isSetOtherInfo();
1534
    boolean that_present_otherInfo = true && that.isSetOtherInfo();
1535
    if (this_present_otherInfo || that_present_otherInfo) {
1536
      if (!(this_present_otherInfo && that_present_otherInfo))
1537
        return false;
1538
      if (!this.otherInfo.equals(that.otherInfo))
1539
        return false;
1540
    }
1541
 
607 chandransh 1542
    boolean this_present_bestDealText = true && this.isSetBestDealText();
1543
    boolean that_present_bestDealText = true && that.isSetBestDealText();
1544
    if (this_present_bestDealText || that_present_bestDealText) {
1545
      if (!(this_present_bestDealText && that_present_bestDealText))
1546
        return false;
1547
      if (!this.bestDealText.equals(that.bestDealText))
1548
        return false;
1549
    }
1550
 
1551
    boolean this_present_bestDealValue = true;
1552
    boolean that_present_bestDealValue = true;
1553
    if (this_present_bestDealValue || that_present_bestDealValue) {
1554
      if (!(this_present_bestDealValue && that_present_bestDealValue))
1555
        return false;
1556
      if (this.bestDealValue != that.bestDealValue)
1557
        return false;
1558
    }
1559
 
1560
    boolean this_present_dealerPrice = true;
1561
    boolean that_present_dealerPrice = true;
1562
    if (this_present_dealerPrice || that_present_dealerPrice) {
1563
      if (!(this_present_dealerPrice && that_present_dealerPrice))
1564
        return false;
1565
      if (this.dealerPrice != that.dealerPrice)
1566
        return false;
1567
    }
1568
 
1569
    boolean this_present_updatedOn = true;
1570
    boolean that_present_updatedOn = true;
1571
    if (this_present_updatedOn || that_present_updatedOn) {
1572
      if (!(this_present_updatedOn && that_present_updatedOn))
1573
        return false;
1574
      if (this.updatedOn != that.updatedOn)
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
 
100 ashish 1587
    return true;
1588
  }
1589
 
1590
  @Override
1591
  public int hashCode() {
1592
    return 0;
1593
  }
1594
 
1595
  public void read(TProtocol iprot) throws TException {
1596
    TField field;
1597
    iprot.readStructBegin();
1598
    while (true)
1599
    {
1600
      field = iprot.readFieldBegin();
1601
      if (field.type == TType.STOP) { 
1602
        break;
1603
      }
1604
      _Fields fieldId = _Fields.findByThriftId(field.id);
1605
      if (fieldId == null) {
1606
        TProtocolUtil.skip(iprot, field.type);
1607
      } else {
1608
        switch (fieldId) {
1609
          case ID:
1610
            if (field.type == TType.I64) {
1611
              this.id = iprot.readI64();
1612
              setIdIsSet(true);
1613
            } else { 
1614
              TProtocolUtil.skip(iprot, field.type);
1615
            }
1616
            break;
510 rajveer 1617
          case MANUFACTURER_NAME:
483 rajveer 1618
            if (field.type == TType.STRING) {
510 rajveer 1619
              this.manufacturerName = iprot.readString();
483 rajveer 1620
            } else { 
1621
              TProtocolUtil.skip(iprot, field.type);
1622
            }
1623
            break;
1624
          case MODEL_NUMBER:
1625
            if (field.type == TType.STRING) {
1626
              this.modelNumber = iprot.readString();
1627
            } else { 
1628
              TProtocolUtil.skip(iprot, field.type);
1629
            }
1630
            break;
1631
          case MODEL_NAME:
1632
            if (field.type == TType.STRING) {
1633
              this.modelName = iprot.readString();
1634
            } else { 
1635
              TProtocolUtil.skip(iprot, field.type);
1636
            }
1637
            break;
1638
          case CATEGORY:
1639
            if (field.type == TType.STRING) {
1640
              this.category = iprot.readString();
1641
            } else { 
1642
              TProtocolUtil.skip(iprot, field.type);
1643
            }
1644
            break;
1645
          case COMMENTS:
1646
            if (field.type == TType.STRING) {
1647
              this.comments = iprot.readString();
1648
            } else { 
1649
              TProtocolUtil.skip(iprot, field.type);
1650
            }
1651
            break;
123 ashish 1652
          case CATALOG_ITEM_ID:
1653
            if (field.type == TType.I64) {
1654
              this.catalogItemId = iprot.readI64();
1655
              setCatalogItemIdIsSet(true);
100 ashish 1656
            } else { 
1657
              TProtocolUtil.skip(iprot, field.type);
1658
            }
1659
            break;
483 rajveer 1660
          case VENDOR_ITEM_ID:
1661
            if (field.type == TType.STRING) {
1662
              this.vendorItemId = iprot.readString();
1663
            } else { 
1664
              TProtocolUtil.skip(iprot, field.type);
1665
            }
1666
            break;
1667
          case FEATURE_ID:
1668
            if (field.type == TType.I64) {
1669
              this.featureId = iprot.readI64();
1670
              setFeatureIdIsSet(true);
1671
            } else { 
1672
              TProtocolUtil.skip(iprot, field.type);
1673
            }
1674
            break;
1675
          case FEATURE_DESCRIPTION:
1676
            if (field.type == TType.STRING) {
1677
              this.featureDescription = iprot.readString();
1678
            } else { 
1679
              TProtocolUtil.skip(iprot, field.type);
1680
            }
1681
            break;
103 ashish 1682
          case ITEM_INVENTORY:
100 ashish 1683
            if (field.type == TType.STRUCT) {
103 ashish 1684
              this.itemInventory = new ItemInventory();
1685
              this.itemInventory.read(iprot);
100 ashish 1686
            } else { 
1687
              TProtocolUtil.skip(iprot, field.type);
1688
            }
1689
            break;
483 rajveer 1690
          case MRP:
1691
            if (field.type == TType.DOUBLE) {
1692
              this.mrp = iprot.readDouble();
1693
              setMrpIsSet(true);
1694
            } else { 
1695
              TProtocolUtil.skip(iprot, field.type);
1696
            }
1697
            break;
1698
          case MOP:
1699
            if (field.type == TType.DOUBLE) {
1700
              this.mop = iprot.readDouble();
1701
              setMopIsSet(true);
1702
            } else { 
1703
              TProtocolUtil.skip(iprot, field.type);
1704
            }
1705
            break;
1706
          case SELLING_PRICE:
1707
            if (field.type == TType.DOUBLE) {
1708
              this.sellingPrice = iprot.readDouble();
1709
              setSellingPriceIsSet(true);
1710
            } else { 
1711
              TProtocolUtil.skip(iprot, field.type);
1712
            }
1713
            break;
1714
          case WEIGHT:
1715
            if (field.type == TType.DOUBLE) {
1716
              this.weight = iprot.readDouble();
1717
              setWeightIsSet(true);
1718
            } else { 
1719
              TProtocolUtil.skip(iprot, field.type);
1720
            }
1721
            break;
103 ashish 1722
          case ADDED_ON:
1723
            if (field.type == TType.I64) {
1724
              this.addedOn = iprot.readI64();
1725
              setAddedOnIsSet(true);
100 ashish 1726
            } else { 
1727
              TProtocolUtil.skip(iprot, field.type);
1728
            }
1729
            break;
103 ashish 1730
          case START_DATE:
1731
            if (field.type == TType.I64) {
1732
              this.startDate = iprot.readI64();
1733
              setStartDateIsSet(true);
1734
            } else { 
1735
              TProtocolUtil.skip(iprot, field.type);
1736
            }
1737
            break;
483 rajveer 1738
          case RETIRE_DATE:
1739
            if (field.type == TType.I64) {
1740
              this.retireDate = iprot.readI64();
1741
              setRetireDateIsSet(true);
1742
            } else { 
1743
              TProtocolUtil.skip(iprot, field.type);
1744
            }
1745
            break;
103 ashish 1746
          case ITEM_STATUS:
1747
            if (field.type == TType.I32) {
1748
              this.itemStatus = status.findByValue(iprot.readI32());
1749
            } else { 
1750
              TProtocolUtil.skip(iprot, field.type);
1751
            }
1752
            break;
1753
          case OTHER_INFO:
1754
            if (field.type == TType.MAP) {
1755
              {
123 ashish 1756
                TMap _map5 = iprot.readMapBegin();
1757
                this.otherInfo = new HashMap<String,String>(2*_map5.size);
1758
                for (int _i6 = 0; _i6 < _map5.size; ++_i6)
103 ashish 1759
                {
123 ashish 1760
                  String _key7;
1761
                  String _val8;
1762
                  _key7 = iprot.readString();
1763
                  _val8 = iprot.readString();
1764
                  this.otherInfo.put(_key7, _val8);
103 ashish 1765
                }
1766
                iprot.readMapEnd();
1767
              }
1768
            } else { 
1769
              TProtocolUtil.skip(iprot, field.type);
1770
            }
1771
            break;
607 chandransh 1772
          case BEST_DEAL_TEXT:
1773
            if (field.type == TType.STRING) {
1774
              this.bestDealText = iprot.readString();
1775
            } else { 
1776
              TProtocolUtil.skip(iprot, field.type);
1777
            }
1778
            break;
1779
          case BEST_DEAL_VALUE:
1780
            if (field.type == TType.DOUBLE) {
1781
              this.bestDealValue = iprot.readDouble();
1782
              setBestDealValueIsSet(true);
1783
            } else { 
1784
              TProtocolUtil.skip(iprot, field.type);
1785
            }
1786
            break;
1787
          case DEALER_PRICE:
1788
            if (field.type == TType.DOUBLE) {
1789
              this.dealerPrice = iprot.readDouble();
1790
              setDealerPriceIsSet(true);
1791
            } else { 
1792
              TProtocolUtil.skip(iprot, field.type);
1793
            }
1794
            break;
1795
          case UPDATED_ON:
1796
            if (field.type == TType.I64) {
1797
              this.updatedOn = iprot.readI64();
1798
              setUpdatedOnIsSet(true);
1799
            } else { 
1800
              TProtocolUtil.skip(iprot, field.type);
1801
            }
1802
            break;
1803
          case COLOR:
1804
            if (field.type == TType.STRING) {
1805
              this.color = iprot.readString();
1806
            } else { 
1807
              TProtocolUtil.skip(iprot, field.type);
1808
            }
1809
            break;
100 ashish 1810
        }
1811
        iprot.readFieldEnd();
1812
      }
1813
    }
1814
    iprot.readStructEnd();
1815
    validate();
1816
  }
1817
 
1818
  public void write(TProtocol oprot) throws TException {
1819
    validate();
1820
 
1821
    oprot.writeStructBegin(STRUCT_DESC);
1822
    oprot.writeFieldBegin(ID_FIELD_DESC);
1823
    oprot.writeI64(this.id);
1824
    oprot.writeFieldEnd();
510 rajveer 1825
    if (this.manufacturerName != null) {
1826
      oprot.writeFieldBegin(MANUFACTURER_NAME_FIELD_DESC);
1827
      oprot.writeString(this.manufacturerName);
483 rajveer 1828
      oprot.writeFieldEnd();
1829
    }
1830
    if (this.modelNumber != null) {
1831
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
1832
      oprot.writeString(this.modelNumber);
1833
      oprot.writeFieldEnd();
1834
    }
1835
    if (this.modelName != null) {
1836
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1837
      oprot.writeString(this.modelName);
1838
      oprot.writeFieldEnd();
1839
    }
1840
    if (this.category != null) {
1841
      oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
1842
      oprot.writeString(this.category);
1843
      oprot.writeFieldEnd();
1844
    }
1845
    if (this.comments != null) {
1846
      oprot.writeFieldBegin(COMMENTS_FIELD_DESC);
1847
      oprot.writeString(this.comments);
1848
      oprot.writeFieldEnd();
1849
    }
123 ashish 1850
    oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
1851
    oprot.writeI64(this.catalogItemId);
1852
    oprot.writeFieldEnd();
483 rajveer 1853
    if (this.vendorItemId != null) {
1854
      oprot.writeFieldBegin(VENDOR_ITEM_ID_FIELD_DESC);
1855
      oprot.writeString(this.vendorItemId);
1856
      oprot.writeFieldEnd();
1857
    }
1858
    oprot.writeFieldBegin(FEATURE_ID_FIELD_DESC);
1859
    oprot.writeI64(this.featureId);
1860
    oprot.writeFieldEnd();
1861
    if (this.featureDescription != null) {
1862
      oprot.writeFieldBegin(FEATURE_DESCRIPTION_FIELD_DESC);
1863
      oprot.writeString(this.featureDescription);
1864
      oprot.writeFieldEnd();
1865
    }
100 ashish 1866
    if (this.itemInventory != null) {
1867
      oprot.writeFieldBegin(ITEM_INVENTORY_FIELD_DESC);
1868
      this.itemInventory.write(oprot);
1869
      oprot.writeFieldEnd();
1870
    }
483 rajveer 1871
    oprot.writeFieldBegin(MRP_FIELD_DESC);
1872
    oprot.writeDouble(this.mrp);
1873
    oprot.writeFieldEnd();
1874
    oprot.writeFieldBegin(MOP_FIELD_DESC);
1875
    oprot.writeDouble(this.mop);
1876
    oprot.writeFieldEnd();
1877
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
1878
    oprot.writeDouble(this.sellingPrice);
1879
    oprot.writeFieldEnd();
1880
    oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
1881
    oprot.writeDouble(this.weight);
1882
    oprot.writeFieldEnd();
103 ashish 1883
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
1884
    oprot.writeI64(this.addedOn);
1885
    oprot.writeFieldEnd();
1886
    oprot.writeFieldBegin(START_DATE_FIELD_DESC);
1887
    oprot.writeI64(this.startDate);
1888
    oprot.writeFieldEnd();
483 rajveer 1889
    oprot.writeFieldBegin(RETIRE_DATE_FIELD_DESC);
1890
    oprot.writeI64(this.retireDate);
1891
    oprot.writeFieldEnd();
103 ashish 1892
    if (this.itemStatus != null) {
1893
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
1894
      oprot.writeI32(this.itemStatus.getValue());
1895
      oprot.writeFieldEnd();
1896
    }
1897
    if (this.otherInfo != null) {
1898
      oprot.writeFieldBegin(OTHER_INFO_FIELD_DESC);
1899
      {
1900
        oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.otherInfo.size()));
483 rajveer 1901
        for (Map.Entry<String, String> _iter9 : this.otherInfo.entrySet())
103 ashish 1902
        {
483 rajveer 1903
          oprot.writeString(_iter9.getKey());
1904
          oprot.writeString(_iter9.getValue());
103 ashish 1905
        }
1906
        oprot.writeMapEnd();
1907
      }
1908
      oprot.writeFieldEnd();
1909
    }
607 chandransh 1910
    if (this.bestDealText != null) {
1911
      oprot.writeFieldBegin(BEST_DEAL_TEXT_FIELD_DESC);
1912
      oprot.writeString(this.bestDealText);
1913
      oprot.writeFieldEnd();
1914
    }
1915
    oprot.writeFieldBegin(BEST_DEAL_VALUE_FIELD_DESC);
1916
    oprot.writeDouble(this.bestDealValue);
1917
    oprot.writeFieldEnd();
1918
    oprot.writeFieldBegin(DEALER_PRICE_FIELD_DESC);
1919
    oprot.writeDouble(this.dealerPrice);
1920
    oprot.writeFieldEnd();
1921
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
1922
    oprot.writeI64(this.updatedOn);
1923
    oprot.writeFieldEnd();
1924
    if (this.color != null) {
1925
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1926
      oprot.writeString(this.color);
1927
      oprot.writeFieldEnd();
1928
    }
100 ashish 1929
    oprot.writeFieldStop();
1930
    oprot.writeStructEnd();
1931
  }
1932
 
1933
  @Override
1934
  public String toString() {
1935
    StringBuilder sb = new StringBuilder("Item(");
1936
    boolean first = true;
1937
 
1938
    sb.append("id:");
1939
    sb.append(this.id);
1940
    first = false;
1941
    if (!first) sb.append(", ");
510 rajveer 1942
    sb.append("manufacturerName:");
1943
    if (this.manufacturerName == null) {
483 rajveer 1944
      sb.append("null");
1945
    } else {
510 rajveer 1946
      sb.append(this.manufacturerName);
483 rajveer 1947
    }
1948
    first = false;
1949
    if (!first) sb.append(", ");
1950
    sb.append("modelNumber:");
1951
    if (this.modelNumber == null) {
1952
      sb.append("null");
1953
    } else {
1954
      sb.append(this.modelNumber);
1955
    }
1956
    first = false;
1957
    if (!first) sb.append(", ");
1958
    sb.append("modelName:");
1959
    if (this.modelName == null) {
1960
      sb.append("null");
1961
    } else {
1962
      sb.append(this.modelName);
1963
    }
1964
    first = false;
1965
    if (!first) sb.append(", ");
1966
    sb.append("category:");
1967
    if (this.category == null) {
1968
      sb.append("null");
1969
    } else {
1970
      sb.append(this.category);
1971
    }
1972
    first = false;
1973
    if (!first) sb.append(", ");
1974
    sb.append("comments:");
1975
    if (this.comments == null) {
1976
      sb.append("null");
1977
    } else {
1978
      sb.append(this.comments);
1979
    }
1980
    first = false;
1981
    if (!first) sb.append(", ");
123 ashish 1982
    sb.append("catalogItemId:");
1983
    sb.append(this.catalogItemId);
100 ashish 1984
    first = false;
1985
    if (!first) sb.append(", ");
483 rajveer 1986
    sb.append("vendorItemId:");
1987
    if (this.vendorItemId == null) {
1988
      sb.append("null");
1989
    } else {
1990
      sb.append(this.vendorItemId);
1991
    }
1992
    first = false;
1993
    if (!first) sb.append(", ");
1994
    sb.append("featureId:");
1995
    sb.append(this.featureId);
1996
    first = false;
1997
    if (!first) sb.append(", ");
1998
    sb.append("featureDescription:");
1999
    if (this.featureDescription == null) {
2000
      sb.append("null");
2001
    } else {
2002
      sb.append(this.featureDescription);
2003
    }
2004
    first = false;
2005
    if (!first) sb.append(", ");
100 ashish 2006
    sb.append("itemInventory:");
2007
    if (this.itemInventory == null) {
2008
      sb.append("null");
2009
    } else {
2010
      sb.append(this.itemInventory);
2011
    }
2012
    first = false;
103 ashish 2013
    if (!first) sb.append(", ");
483 rajveer 2014
    sb.append("mrp:");
2015
    sb.append(this.mrp);
2016
    first = false;
2017
    if (!first) sb.append(", ");
2018
    sb.append("mop:");
2019
    sb.append(this.mop);
2020
    first = false;
2021
    if (!first) sb.append(", ");
2022
    sb.append("sellingPrice:");
2023
    sb.append(this.sellingPrice);
2024
    first = false;
2025
    if (!first) sb.append(", ");
2026
    sb.append("weight:");
2027
    sb.append(this.weight);
2028
    first = false;
2029
    if (!first) sb.append(", ");
103 ashish 2030
    sb.append("addedOn:");
2031
    sb.append(this.addedOn);
2032
    first = false;
2033
    if (!first) sb.append(", ");
2034
    sb.append("startDate:");
2035
    sb.append(this.startDate);
2036
    first = false;
2037
    if (!first) sb.append(", ");
483 rajveer 2038
    sb.append("retireDate:");
2039
    sb.append(this.retireDate);
2040
    first = false;
2041
    if (!first) sb.append(", ");
103 ashish 2042
    sb.append("itemStatus:");
2043
    if (this.itemStatus == null) {
2044
      sb.append("null");
2045
    } else {
2046
      String itemStatus_name = itemStatus.name();
2047
      if (itemStatus_name != null) {
2048
        sb.append(itemStatus_name);
2049
        sb.append(" (");
2050
      }
2051
      sb.append(this.itemStatus);
2052
      if (itemStatus_name != null) {
2053
        sb.append(")");
2054
      }
2055
    }
2056
    first = false;
2057
    if (!first) sb.append(", ");
2058
    sb.append("otherInfo:");
2059
    if (this.otherInfo == null) {
2060
      sb.append("null");
2061
    } else {
2062
      sb.append(this.otherInfo);
2063
    }
2064
    first = false;
607 chandransh 2065
    if (!first) sb.append(", ");
2066
    sb.append("bestDealText:");
2067
    if (this.bestDealText == null) {
2068
      sb.append("null");
2069
    } else {
2070
      sb.append(this.bestDealText);
2071
    }
2072
    first = false;
2073
    if (!first) sb.append(", ");
2074
    sb.append("bestDealValue:");
2075
    sb.append(this.bestDealValue);
2076
    first = false;
2077
    if (!first) sb.append(", ");
2078
    sb.append("dealerPrice:");
2079
    sb.append(this.dealerPrice);
2080
    first = false;
2081
    if (!first) sb.append(", ");
2082
    sb.append("updatedOn:");
2083
    sb.append(this.updatedOn);
2084
    first = false;
2085
    if (!first) sb.append(", ");
2086
    sb.append("color:");
2087
    if (this.color == null) {
2088
      sb.append("null");
2089
    } else {
2090
      sb.append(this.color);
2091
    }
2092
    first = false;
100 ashish 2093
    sb.append(")");
2094
    return sb.toString();
2095
  }
2096
 
2097
  public void validate() throws TException {
2098
    // check for required fields
2099
  }
2100
 
2101
}
2102