Subversion Repositories SmartDukaan

Rev

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