Subversion Repositories SmartDukaan

Rev

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