Subversion Repositories SmartDukaan

Rev

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