Subversion Repositories SmartDukaan

Rev

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