Subversion Repositories SmartDukaan

Rev

Rev 8616 | Rev 9841 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
100 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
100 ashish 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;
3430 rajveer 18
import java.nio.ByteBuffer;
100 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
3430 rajveer 23
public class Item implements org.apache.thrift.TBase<Item, Item._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Item");
100 ashish 25
 
3430 rajveer 26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField COMMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("comments", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)9);
35
  private static final org.apache.thrift.protocol.TField FEATURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("featureId", org.apache.thrift.protocol.TType.I64, (short)10);
36
  private static final org.apache.thrift.protocol.TField FEATURE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("featureDescription", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
4762 phani.kuma 38
  private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
39
  private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
40
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)16);
41
  private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)17);
42
  private static final org.apache.thrift.protocol.TField RETIRE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("retireDate", org.apache.thrift.protocol.TType.I64, (short)18);
43
  private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)19);
44
  private static final org.apache.thrift.protocol.TField STATUS_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("status_description", org.apache.thrift.protocol.TType.STRING, (short)20);
5336 rajveer 45
  private static final org.apache.thrift.protocol.TField OTHER_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("otherInfo", org.apache.thrift.protocol.TType.MAP, (short)21);
4762 phani.kuma 46
  private static final org.apache.thrift.protocol.TField BEST_DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealText", org.apache.thrift.protocol.TType.STRING, (short)22);
47
  private static final org.apache.thrift.protocol.TField BEST_DEAL_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealValue", org.apache.thrift.protocol.TType.DOUBLE, (short)23);
48
  private static final org.apache.thrift.protocol.TField DEFAULT_FOR_ENTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultForEntity", org.apache.thrift.protocol.TType.BOOL, (short)24);
49
  private static final org.apache.thrift.protocol.TField UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedOn", org.apache.thrift.protocol.TType.I64, (short)25);
50
  private static final org.apache.thrift.protocol.TField BEST_SELLING_RANK_FIELD_DESC = new org.apache.thrift.protocol.TField("bestSellingRank", org.apache.thrift.protocol.TType.I64, (short)26);
51
  private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.BOOL, (short)27);
52
  private static final org.apache.thrift.protocol.TField EXPECTED_DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("expectedDelay", org.apache.thrift.protocol.TType.I32, (short)28);
5440 phani.kuma 53
  private static final org.apache.thrift.protocol.TField IS_WAREHOUSE_PREFERENCE_STICKY_FIELD_DESC = new org.apache.thrift.protocol.TField("isWarehousePreferenceSticky", org.apache.thrift.protocol.TType.BOOL, (short)29);
54
  private static final org.apache.thrift.protocol.TField WARRANTY_PERIOD_FIELD_DESC = new org.apache.thrift.protocol.TField("warrantyPeriod", org.apache.thrift.protocol.TType.I32, (short)30);
55
  private static final org.apache.thrift.protocol.TField PREFERRED_VENDOR_FIELD_DESC = new org.apache.thrift.protocol.TField("preferredVendor", org.apache.thrift.protocol.TType.I64, (short)31);
56
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)32);
57
  private static final org.apache.thrift.protocol.TField COMING_SOON_START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("comingSoonStartDate", org.apache.thrift.protocol.TType.I64, (short)33);
58
  private static final org.apache.thrift.protocol.TField EXPECTED_ARRIVAL_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("expectedArrivalDate", org.apache.thrift.protocol.TType.I64, (short)34);
59
  private static final org.apache.thrift.protocol.TField HAS_ITEM_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hasItemNo", org.apache.thrift.protocol.TType.BOOL, (short)35);
7256 rajveer 60
  private static final org.apache.thrift.protocol.TField ACTIVE_ON_STORE_FIELD_DESC = new org.apache.thrift.protocol.TField("activeOnStore", org.apache.thrift.protocol.TType.BOOL, (short)36);
6241 amit.gupta 61
  private static final org.apache.thrift.protocol.TField SHOW_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("showSellingPrice", org.apache.thrift.protocol.TType.BOOL, (short)38);
6777 vikram.rag 62
  private static final org.apache.thrift.protocol.TField BEST_DEALS_DETAILS_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealsDetailsText", org.apache.thrift.protocol.TType.STRING, (short)39);
63
  private static final org.apache.thrift.protocol.TField BEST_DEALS_DETAILS_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealsDetailsLink", org.apache.thrift.protocol.TType.STRING, (short)40);
6805 anupam.sin 64
  private static final org.apache.thrift.protocol.TField PREFERRED_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("preferredInsurer", org.apache.thrift.protocol.TType.I64, (short)41);
7291 vikram.rag 65
  private static final org.apache.thrift.protocol.TField ASIN_FIELD_DESC = new org.apache.thrift.protocol.TField("asin", org.apache.thrift.protocol.TType.STRING, (short)42);
66
  private static final org.apache.thrift.protocol.TField DEFAULT_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultInventory", org.apache.thrift.protocol.TType.I64, (short)43);
67
  private static final org.apache.thrift.protocol.TField HOLD_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("holdInventory", org.apache.thrift.protocol.TType.I64, (short)44);
100 ashish 68
 
3430 rajveer 69
  private long id; // required
70
  private String productGroup; // required
71
  private String brand; // required
72
  private String modelNumber; // required
73
  private String modelName; // required
74
  private String color; // required
75
  private long category; // required
76
  private String comments; // required
77
  private long catalogItemId; // required
78
  private long featureId; // required
79
  private String featureDescription; // required
80
  private double mrp; // required
81
  private double sellingPrice; // required
82
  private double weight; // required
83
  private long addedOn; // required
84
  private long startDate; // required
85
  private long retireDate; // required
86
  private status itemStatus; // required
87
  private String status_description; // required
5336 rajveer 88
  private Map<String,String> otherInfo; // required
3430 rajveer 89
  private String bestDealText; // required
90
  private double bestDealValue; // required
91
  private boolean defaultForEntity; // required
92
  private long updatedOn; // required
93
  private long bestSellingRank; // required
94
  private boolean risky; // required
95
  private int expectedDelay; // required
4406 anupam.sin 96
  private boolean isWarehousePreferenceSticky; // required
4295 varun.gupt 97
  private int warrantyPeriod; // required
4506 phani.kuma 98
  private long preferredVendor; // required
5110 mandeep.dh 99
  private ItemType type; // required
5217 amit.gupta 100
  private long comingSoonStartDate; // required
101
  private long expectedArrivalDate; // required
5385 phani.kuma 102
  private boolean hasItemNo; // required
7256 rajveer 103
  private boolean activeOnStore; // required
6241 amit.gupta 104
  private boolean showSellingPrice; // required
6777 vikram.rag 105
  private String bestDealsDetailsText; // required
106
  private String bestDealsDetailsLink; // required
6805 anupam.sin 107
  private long preferredInsurer; // required
7291 vikram.rag 108
  private String asin; // required
109
  private long defaultInventory; // required
110
  private long holdInventory; // required
100 ashish 111
 
112
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 113
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
100 ashish 114
    ID((short)1, "id"),
957 chandransh 115
    PRODUCT_GROUP((short)2, "productGroup"),
116
    BRAND((short)3, "brand"),
117
    MODEL_NUMBER((short)4, "modelNumber"),
118
    MODEL_NAME((short)5, "modelName"),
1329 chandransh 119
    COLOR((short)6, "color"),
120
    CATEGORY((short)7, "category"),
121
    COMMENTS((short)8, "comments"),
122
    CATALOG_ITEM_ID((short)9, "catalogItemId"),
483 rajveer 123
    FEATURE_ID((short)10, "featureId"),
124
    FEATURE_DESCRIPTION((short)11, "featureDescription"),
125
    MRP((short)13, "mrp"),
4762 phani.kuma 126
    SELLING_PRICE((short)14, "sellingPrice"),
127
    WEIGHT((short)15, "weight"),
128
    ADDED_ON((short)16, "addedOn"),
129
    START_DATE((short)17, "startDate"),
130
    RETIRE_DATE((short)18, "retireDate"),
103 ashish 131
    /**
132
     * 
133
     * @see status
134
     */
4762 phani.kuma 135
    ITEM_STATUS((short)19, "itemStatus"),
136
    STATUS_DESCRIPTION((short)20, "status_description"),
5336 rajveer 137
    OTHER_INFO((short)21, "otherInfo"),
4762 phani.kuma 138
    BEST_DEAL_TEXT((short)22, "bestDealText"),
139
    BEST_DEAL_VALUE((short)23, "bestDealValue"),
140
    DEFAULT_FOR_ENTITY((short)24, "defaultForEntity"),
141
    UPDATED_ON((short)25, "updatedOn"),
142
    BEST_SELLING_RANK((short)26, "bestSellingRank"),
143
    RISKY((short)27, "risky"),
144
    EXPECTED_DELAY((short)28, "expectedDelay"),
5440 phani.kuma 145
    IS_WAREHOUSE_PREFERENCE_STICKY((short)29, "isWarehousePreferenceSticky"),
146
    WARRANTY_PERIOD((short)30, "warrantyPeriod"),
147
    PREFERRED_VENDOR((short)31, "preferredVendor"),
5110 mandeep.dh 148
    /**
149
     * 
150
     * @see ItemType
151
     */
5440 phani.kuma 152
    TYPE((short)32, "type"),
153
    COMING_SOON_START_DATE((short)33, "comingSoonStartDate"),
154
    EXPECTED_ARRIVAL_DATE((short)34, "expectedArrivalDate"),
5460 phani.kuma 155
    HAS_ITEM_NO((short)35, "hasItemNo"),
7256 rajveer 156
    ACTIVE_ON_STORE((short)36, "activeOnStore"),
6777 vikram.rag 157
    SHOW_SELLING_PRICE((short)38, "showSellingPrice"),
158
    BEST_DEALS_DETAILS_TEXT((short)39, "bestDealsDetailsText"),
6805 anupam.sin 159
    BEST_DEALS_DETAILS_LINK((short)40, "bestDealsDetailsLink"),
7291 vikram.rag 160
    PREFERRED_INSURER((short)41, "preferredInsurer"),
161
    ASIN((short)42, "asin"),
162
    DEFAULT_INVENTORY((short)43, "defaultInventory"),
9242 kshitij.so 163
    HOLD_INVENTORY((short)44, "holdInventory");
100 ashish 164
 
165
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
166
 
167
    static {
168
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
169
        byName.put(field.getFieldName(), field);
170
      }
171
    }
172
 
173
    /**
174
     * Find the _Fields constant that matches fieldId, or null if its not found.
175
     */
176
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 177
      switch(fieldId) {
178
        case 1: // ID
179
          return ID;
180
        case 2: // PRODUCT_GROUP
181
          return PRODUCT_GROUP;
182
        case 3: // BRAND
183
          return BRAND;
184
        case 4: // MODEL_NUMBER
185
          return MODEL_NUMBER;
186
        case 5: // MODEL_NAME
187
          return MODEL_NAME;
188
        case 6: // COLOR
189
          return COLOR;
190
        case 7: // CATEGORY
191
          return CATEGORY;
192
        case 8: // COMMENTS
193
          return COMMENTS;
194
        case 9: // CATALOG_ITEM_ID
195
          return CATALOG_ITEM_ID;
196
        case 10: // FEATURE_ID
197
          return FEATURE_ID;
198
        case 11: // FEATURE_DESCRIPTION
199
          return FEATURE_DESCRIPTION;
200
        case 13: // MRP
201
          return MRP;
4762 phani.kuma 202
        case 14: // SELLING_PRICE
3430 rajveer 203
          return SELLING_PRICE;
4762 phani.kuma 204
        case 15: // WEIGHT
3430 rajveer 205
          return WEIGHT;
4762 phani.kuma 206
        case 16: // ADDED_ON
3430 rajveer 207
          return ADDED_ON;
4762 phani.kuma 208
        case 17: // START_DATE
3430 rajveer 209
          return START_DATE;
4762 phani.kuma 210
        case 18: // RETIRE_DATE
3430 rajveer 211
          return RETIRE_DATE;
4762 phani.kuma 212
        case 19: // ITEM_STATUS
3430 rajveer 213
          return ITEM_STATUS;
4762 phani.kuma 214
        case 20: // STATUS_DESCRIPTION
3430 rajveer 215
          return STATUS_DESCRIPTION;
5336 rajveer 216
        case 21: // OTHER_INFO
217
          return OTHER_INFO;
4762 phani.kuma 218
        case 22: // BEST_DEAL_TEXT
3430 rajveer 219
          return BEST_DEAL_TEXT;
4762 phani.kuma 220
        case 23: // BEST_DEAL_VALUE
3430 rajveer 221
          return BEST_DEAL_VALUE;
4762 phani.kuma 222
        case 24: // DEFAULT_FOR_ENTITY
3430 rajveer 223
          return DEFAULT_FOR_ENTITY;
4762 phani.kuma 224
        case 25: // UPDATED_ON
3430 rajveer 225
          return UPDATED_ON;
4762 phani.kuma 226
        case 26: // BEST_SELLING_RANK
3430 rajveer 227
          return BEST_SELLING_RANK;
4762 phani.kuma 228
        case 27: // RISKY
3430 rajveer 229
          return RISKY;
4762 phani.kuma 230
        case 28: // EXPECTED_DELAY
3430 rajveer 231
          return EXPECTED_DELAY;
5440 phani.kuma 232
        case 29: // IS_WAREHOUSE_PREFERENCE_STICKY
4406 anupam.sin 233
          return IS_WAREHOUSE_PREFERENCE_STICKY;
5440 phani.kuma 234
        case 30: // WARRANTY_PERIOD
4295 varun.gupt 235
          return WARRANTY_PERIOD;
5440 phani.kuma 236
        case 31: // PREFERRED_VENDOR
4506 phani.kuma 237
          return PREFERRED_VENDOR;
5440 phani.kuma 238
        case 32: // TYPE
5110 mandeep.dh 239
          return TYPE;
5440 phani.kuma 240
        case 33: // COMING_SOON_START_DATE
5217 amit.gupta 241
          return COMING_SOON_START_DATE;
5440 phani.kuma 242
        case 34: // EXPECTED_ARRIVAL_DATE
5217 amit.gupta 243
          return EXPECTED_ARRIVAL_DATE;
5440 phani.kuma 244
        case 35: // HAS_ITEM_NO
5385 phani.kuma 245
          return HAS_ITEM_NO;
7256 rajveer 246
        case 36: // ACTIVE_ON_STORE
247
          return ACTIVE_ON_STORE;
6241 amit.gupta 248
        case 38: // SHOW_SELLING_PRICE
249
          return SHOW_SELLING_PRICE;
6777 vikram.rag 250
        case 39: // BEST_DEALS_DETAILS_TEXT
251
          return BEST_DEALS_DETAILS_TEXT;
252
        case 40: // BEST_DEALS_DETAILS_LINK
253
          return BEST_DEALS_DETAILS_LINK;
6805 anupam.sin 254
        case 41: // PREFERRED_INSURER
255
          return PREFERRED_INSURER;
7291 vikram.rag 256
        case 42: // ASIN
257
          return ASIN;
258
        case 43: // DEFAULT_INVENTORY
259
          return DEFAULT_INVENTORY;
260
        case 44: // HOLD_INVENTORY
261
          return HOLD_INVENTORY;
3430 rajveer 262
        default:
263
          return null;
264
      }
100 ashish 265
    }
266
 
267
    /**
268
     * Find the _Fields constant that matches fieldId, throwing an exception
269
     * if it is not found.
270
     */
271
    public static _Fields findByThriftIdOrThrow(int fieldId) {
272
      _Fields fields = findByThriftId(fieldId);
273
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
274
      return fields;
275
    }
276
 
277
    /**
278
     * Find the _Fields constant that matches name, or null if its not found.
279
     */
280
    public static _Fields findByName(String name) {
281
      return byName.get(name);
282
    }
283
 
284
    private final short _thriftId;
285
    private final String _fieldName;
286
 
287
    _Fields(short thriftId, String fieldName) {
288
      _thriftId = thriftId;
289
      _fieldName = fieldName;
290
    }
291
 
292
    public short getThriftFieldId() {
293
      return _thriftId;
294
    }
295
 
296
    public String getFieldName() {
297
      return _fieldName;
298
    }
299
  }
300
 
301
  // isset id assignments
302
  private static final int __ID_ISSET_ID = 0;
622 chandransh 303
  private static final int __CATEGORY_ISSET_ID = 1;
304
  private static final int __CATALOGITEMID_ISSET_ID = 2;
305
  private static final int __FEATUREID_ISSET_ID = 3;
306
  private static final int __MRP_ISSET_ID = 4;
4762 phani.kuma 307
  private static final int __SELLINGPRICE_ISSET_ID = 5;
308
  private static final int __WEIGHT_ISSET_ID = 6;
309
  private static final int __ADDEDON_ISSET_ID = 7;
310
  private static final int __STARTDATE_ISSET_ID = 8;
311
  private static final int __RETIREDATE_ISSET_ID = 9;
312
  private static final int __BESTDEALVALUE_ISSET_ID = 10;
313
  private static final int __DEFAULTFORENTITY_ISSET_ID = 11;
314
  private static final int __UPDATEDON_ISSET_ID = 12;
315
  private static final int __BESTSELLINGRANK_ISSET_ID = 13;
316
  private static final int __RISKY_ISSET_ID = 14;
317
  private static final int __EXPECTEDDELAY_ISSET_ID = 15;
5440 phani.kuma 318
  private static final int __ISWAREHOUSEPREFERENCESTICKY_ISSET_ID = 16;
319
  private static final int __WARRANTYPERIOD_ISSET_ID = 17;
320
  private static final int __PREFERREDVENDOR_ISSET_ID = 18;
321
  private static final int __COMINGSOONSTARTDATE_ISSET_ID = 19;
322
  private static final int __EXPECTEDARRIVALDATE_ISSET_ID = 20;
323
  private static final int __HASITEMNO_ISSET_ID = 21;
7256 rajveer 324
  private static final int __ACTIVEONSTORE_ISSET_ID = 22;
7330 amit.gupta 325
  private static final int __SHOWSELLINGPRICE_ISSET_ID = 23;
326
  private static final int __PREFERREDINSURER_ISSET_ID = 24;
327
  private static final int __DEFAULTINVENTORY_ISSET_ID = 25;
328
  private static final int __HOLDINVENTORY_ISSET_ID = 26;
9242 kshitij.so 329
  private BitSet __isset_bit_vector = new BitSet(27);
100 ashish 330
 
3430 rajveer 331
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
100 ashish 332
  static {
3430 rajveer 333
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
334
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
335
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
336
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
337
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
338
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
339
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
340
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
341
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
342
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
343
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
344
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
345
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
346
    tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
347
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
348
    tmpMap.put(_Fields.COMMENTS, new org.apache.thrift.meta_data.FieldMetaData("comments", org.apache.thrift.TFieldRequirementType.DEFAULT, 
349
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
350
    tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
351
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
352
    tmpMap.put(_Fields.FEATURE_ID, new org.apache.thrift.meta_data.FieldMetaData("featureId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
353
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
354
    tmpMap.put(_Fields.FEATURE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("featureDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
355
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
356
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
357
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
358
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
359
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
360
    tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
361
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
362
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
363
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
364
    tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
365
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
366
    tmpMap.put(_Fields.RETIRE_DATE, new org.apache.thrift.meta_data.FieldMetaData("retireDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
367
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
368
    tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
369
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
370
    tmpMap.put(_Fields.STATUS_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("status_description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
371
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5336 rajveer 372
    tmpMap.put(_Fields.OTHER_INFO, new org.apache.thrift.meta_data.FieldMetaData("otherInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
373
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
374
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
375
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 376
    tmpMap.put(_Fields.BEST_DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("bestDealText", org.apache.thrift.TFieldRequirementType.DEFAULT, 
377
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
378
    tmpMap.put(_Fields.BEST_DEAL_VALUE, new org.apache.thrift.meta_data.FieldMetaData("bestDealValue", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
379
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
380
    tmpMap.put(_Fields.DEFAULT_FOR_ENTITY, new org.apache.thrift.meta_data.FieldMetaData("defaultForEntity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
381
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
382
    tmpMap.put(_Fields.UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("updatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
383
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
384
    tmpMap.put(_Fields.BEST_SELLING_RANK, new org.apache.thrift.meta_data.FieldMetaData("bestSellingRank", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
385
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
386
    tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT, 
387
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
388
    tmpMap.put(_Fields.EXPECTED_DELAY, new org.apache.thrift.meta_data.FieldMetaData("expectedDelay", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
389
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4406 anupam.sin 390
    tmpMap.put(_Fields.IS_WAREHOUSE_PREFERENCE_STICKY, new org.apache.thrift.meta_data.FieldMetaData("isWarehousePreferenceSticky", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
391
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
4295 varun.gupt 392
    tmpMap.put(_Fields.WARRANTY_PERIOD, new org.apache.thrift.meta_data.FieldMetaData("warrantyPeriod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
393
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4506 phani.kuma 394
    tmpMap.put(_Fields.PREFERRED_VENDOR, new org.apache.thrift.meta_data.FieldMetaData("preferredVendor", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
395
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 396
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
397
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemType.class)));
5217 amit.gupta 398
    tmpMap.put(_Fields.COMING_SOON_START_DATE, new org.apache.thrift.meta_data.FieldMetaData("comingSoonStartDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
399
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
400
    tmpMap.put(_Fields.EXPECTED_ARRIVAL_DATE, new org.apache.thrift.meta_data.FieldMetaData("expectedArrivalDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
401
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5385 phani.kuma 402
    tmpMap.put(_Fields.HAS_ITEM_NO, new org.apache.thrift.meta_data.FieldMetaData("hasItemNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
403
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7256 rajveer 404
    tmpMap.put(_Fields.ACTIVE_ON_STORE, new org.apache.thrift.meta_data.FieldMetaData("activeOnStore", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5460 phani.kuma 405
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6241 amit.gupta 406
    tmpMap.put(_Fields.SHOW_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("showSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
407
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6777 vikram.rag 408
    tmpMap.put(_Fields.BEST_DEALS_DETAILS_TEXT, new org.apache.thrift.meta_data.FieldMetaData("bestDealsDetailsText", org.apache.thrift.TFieldRequirementType.DEFAULT, 
409
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
410
    tmpMap.put(_Fields.BEST_DEALS_DETAILS_LINK, new org.apache.thrift.meta_data.FieldMetaData("bestDealsDetailsLink", org.apache.thrift.TFieldRequirementType.DEFAULT, 
411
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6805 anupam.sin 412
    tmpMap.put(_Fields.PREFERRED_INSURER, new org.apache.thrift.meta_data.FieldMetaData("preferredInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
413
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7291 vikram.rag 414
    tmpMap.put(_Fields.ASIN, new org.apache.thrift.meta_data.FieldMetaData("asin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
415
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
416
    tmpMap.put(_Fields.DEFAULT_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("defaultInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
417
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
418
    tmpMap.put(_Fields.HOLD_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("holdInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
419
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 420
    metaDataMap = Collections.unmodifiableMap(tmpMap);
421
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
100 ashish 422
  }
423
 
424
  public Item() {
425
  }
426
 
427
  public Item(
428
    long id,
957 chandransh 429
    String productGroup,
430
    String brand,
483 rajveer 431
    String modelNumber,
432
    String modelName,
1329 chandransh 433
    String color,
622 chandransh 434
    long category,
483 rajveer 435
    String comments,
123 ashish 436
    long catalogItemId,
483 rajveer 437
    long featureId,
438
    String featureDescription,
103 ashish 439
    long addedOn,
440
    status itemStatus,
2034 rajveer 441
    String status_description,
5336 rajveer 442
    Map<String,String> otherInfo,
607 chandransh 443
    String bestDealText,
1910 varun.gupt 444
    boolean defaultForEntity,
2064 ankur.sing 445
    long updatedOn,
4295 varun.gupt 446
    boolean risky,
5110 mandeep.dh 447
    int warrantyPeriod,
5385 phani.kuma 448
    ItemType type,
5460 phani.kuma 449
    boolean hasItemNo,
7256 rajveer 450
    boolean activeOnStore,
6777 vikram.rag 451
    boolean showSellingPrice,
452
    String bestDealsDetailsText,
6805 anupam.sin 453
    String bestDealsDetailsLink,
7291 vikram.rag 454
    long preferredInsurer,
455
    String asin,
456
    long defaultInventory,
9242 kshitij.so 457
    long holdInventory)
100 ashish 458
  {
459
    this();
460
    this.id = id;
461
    setIdIsSet(true);
957 chandransh 462
    this.productGroup = productGroup;
463
    this.brand = brand;
483 rajveer 464
    this.modelNumber = modelNumber;
465
    this.modelName = modelName;
1329 chandransh 466
    this.color = color;
483 rajveer 467
    this.category = category;
622 chandransh 468
    setCategoryIsSet(true);
483 rajveer 469
    this.comments = comments;
123 ashish 470
    this.catalogItemId = catalogItemId;
471
    setCatalogItemIdIsSet(true);
483 rajveer 472
    this.featureId = featureId;
473
    setFeatureIdIsSet(true);
474
    this.featureDescription = featureDescription;
103 ashish 475
    this.addedOn = addedOn;
476
    setAddedOnIsSet(true);
477
    this.itemStatus = itemStatus;
2034 rajveer 478
    this.status_description = status_description;
5336 rajveer 479
    this.otherInfo = otherInfo;
607 chandransh 480
    this.bestDealText = bestDealText;
1910 varun.gupt 481
    this.defaultForEntity = defaultForEntity;
482
    setDefaultForEntityIsSet(true);
607 chandransh 483
    this.updatedOn = updatedOn;
484
    setUpdatedOnIsSet(true);
2250 ankur.sing 485
    this.risky = risky;
486
    setRiskyIsSet(true);
4295 varun.gupt 487
    this.warrantyPeriod = warrantyPeriod;
488
    setWarrantyPeriodIsSet(true);
5110 mandeep.dh 489
    this.type = type;
5385 phani.kuma 490
    this.hasItemNo = hasItemNo;
491
    setHasItemNoIsSet(true);
7256 rajveer 492
    this.activeOnStore = activeOnStore;
493
    setActiveOnStoreIsSet(true);
6241 amit.gupta 494
    this.showSellingPrice = showSellingPrice;
495
    setShowSellingPriceIsSet(true);
6777 vikram.rag 496
    this.bestDealsDetailsText = bestDealsDetailsText;
497
    this.bestDealsDetailsLink = bestDealsDetailsLink;
6805 anupam.sin 498
    this.preferredInsurer = preferredInsurer;
499
    setPreferredInsurerIsSet(true);
7291 vikram.rag 500
    this.asin = asin;
501
    this.defaultInventory = defaultInventory;
502
    setDefaultInventoryIsSet(true);
503
    this.holdInventory = holdInventory;
504
    setHoldInventoryIsSet(true);
100 ashish 505
  }
506
 
507
  /**
508
   * Performs a deep copy on <i>other</i>.
509
   */
510
  public Item(Item other) {
511
    __isset_bit_vector.clear();
512
    __isset_bit_vector.or(other.__isset_bit_vector);
513
    this.id = other.id;
957 chandransh 514
    if (other.isSetProductGroup()) {
515
      this.productGroup = other.productGroup;
483 rajveer 516
    }
957 chandransh 517
    if (other.isSetBrand()) {
518
      this.brand = other.brand;
519
    }
483 rajveer 520
    if (other.isSetModelNumber()) {
521
      this.modelNumber = other.modelNumber;
522
    }
523
    if (other.isSetModelName()) {
524
      this.modelName = other.modelName;
525
    }
1329 chandransh 526
    if (other.isSetColor()) {
527
      this.color = other.color;
528
    }
622 chandransh 529
    this.category = other.category;
483 rajveer 530
    if (other.isSetComments()) {
531
      this.comments = other.comments;
532
    }
123 ashish 533
    this.catalogItemId = other.catalogItemId;
483 rajveer 534
    this.featureId = other.featureId;
535
    if (other.isSetFeatureDescription()) {
536
      this.featureDescription = other.featureDescription;
537
    }
538
    this.mrp = other.mrp;
539
    this.sellingPrice = other.sellingPrice;
540
    this.weight = other.weight;
103 ashish 541
    this.addedOn = other.addedOn;
542
    this.startDate = other.startDate;
483 rajveer 543
    this.retireDate = other.retireDate;
103 ashish 544
    if (other.isSetItemStatus()) {
545
      this.itemStatus = other.itemStatus;
546
    }
2034 rajveer 547
    if (other.isSetStatus_description()) {
548
      this.status_description = other.status_description;
549
    }
5336 rajveer 550
    if (other.isSetOtherInfo()) {
551
      Map<String,String> __this__otherInfo = new HashMap<String,String>();
552
      for (Map.Entry<String, String> other_element : other.otherInfo.entrySet()) {
553
 
554
        String other_element_key = other_element.getKey();
555
        String other_element_value = other_element.getValue();
556
 
557
        String __this__otherInfo_copy_key = other_element_key;
558
 
559
        String __this__otherInfo_copy_value = other_element_value;
560
 
561
        __this__otherInfo.put(__this__otherInfo_copy_key, __this__otherInfo_copy_value);
562
      }
563
      this.otherInfo = __this__otherInfo;
564
    }
607 chandransh 565
    if (other.isSetBestDealText()) {
566
      this.bestDealText = other.bestDealText;
567
    }
568
    this.bestDealValue = other.bestDealValue;
1910 varun.gupt 569
    this.defaultForEntity = other.defaultForEntity;
607 chandransh 570
    this.updatedOn = other.updatedOn;
2064 ankur.sing 571
    this.bestSellingRank = other.bestSellingRank;
2250 ankur.sing 572
    this.risky = other.risky;
3355 chandransh 573
    this.expectedDelay = other.expectedDelay;
4406 anupam.sin 574
    this.isWarehousePreferenceSticky = other.isWarehousePreferenceSticky;
4295 varun.gupt 575
    this.warrantyPeriod = other.warrantyPeriod;
4506 phani.kuma 576
    this.preferredVendor = other.preferredVendor;
5110 mandeep.dh 577
    if (other.isSetType()) {
578
      this.type = other.type;
579
    }
5217 amit.gupta 580
    this.comingSoonStartDate = other.comingSoonStartDate;
581
    this.expectedArrivalDate = other.expectedArrivalDate;
5385 phani.kuma 582
    this.hasItemNo = other.hasItemNo;
7256 rajveer 583
    this.activeOnStore = other.activeOnStore;
6241 amit.gupta 584
    this.showSellingPrice = other.showSellingPrice;
6777 vikram.rag 585
    if (other.isSetBestDealsDetailsText()) {
586
      this.bestDealsDetailsText = other.bestDealsDetailsText;
587
    }
588
    if (other.isSetBestDealsDetailsLink()) {
589
      this.bestDealsDetailsLink = other.bestDealsDetailsLink;
590
    }
6805 anupam.sin 591
    this.preferredInsurer = other.preferredInsurer;
7291 vikram.rag 592
    if (other.isSetAsin()) {
593
      this.asin = other.asin;
594
    }
595
    this.defaultInventory = other.defaultInventory;
596
    this.holdInventory = other.holdInventory;
100 ashish 597
  }
598
 
599
  public Item deepCopy() {
600
    return new Item(this);
601
  }
602
 
3430 rajveer 603
  @Override
604
  public void clear() {
605
    setIdIsSet(false);
606
    this.id = 0;
607
    this.productGroup = null;
608
    this.brand = null;
609
    this.modelNumber = null;
610
    this.modelName = null;
611
    this.color = null;
612
    setCategoryIsSet(false);
613
    this.category = 0;
614
    this.comments = null;
615
    setCatalogItemIdIsSet(false);
616
    this.catalogItemId = 0;
617
    setFeatureIdIsSet(false);
618
    this.featureId = 0;
619
    this.featureDescription = null;
620
    setMrpIsSet(false);
621
    this.mrp = 0.0;
622
    setSellingPriceIsSet(false);
623
    this.sellingPrice = 0.0;
624
    setWeightIsSet(false);
625
    this.weight = 0.0;
626
    setAddedOnIsSet(false);
627
    this.addedOn = 0;
628
    setStartDateIsSet(false);
629
    this.startDate = 0;
630
    setRetireDateIsSet(false);
631
    this.retireDate = 0;
632
    this.itemStatus = null;
633
    this.status_description = null;
5336 rajveer 634
    this.otherInfo = null;
3430 rajveer 635
    this.bestDealText = null;
636
    setBestDealValueIsSet(false);
637
    this.bestDealValue = 0.0;
638
    setDefaultForEntityIsSet(false);
639
    this.defaultForEntity = false;
640
    setUpdatedOnIsSet(false);
641
    this.updatedOn = 0;
642
    setBestSellingRankIsSet(false);
643
    this.bestSellingRank = 0;
644
    setRiskyIsSet(false);
645
    this.risky = false;
646
    setExpectedDelayIsSet(false);
647
    this.expectedDelay = 0;
4406 anupam.sin 648
    setIsWarehousePreferenceStickyIsSet(false);
649
    this.isWarehousePreferenceSticky = false;
4295 varun.gupt 650
    setWarrantyPeriodIsSet(false);
651
    this.warrantyPeriod = 0;
4506 phani.kuma 652
    setPreferredVendorIsSet(false);
653
    this.preferredVendor = 0;
5110 mandeep.dh 654
    this.type = null;
5217 amit.gupta 655
    setComingSoonStartDateIsSet(false);
656
    this.comingSoonStartDate = 0;
657
    setExpectedArrivalDateIsSet(false);
658
    this.expectedArrivalDate = 0;
5385 phani.kuma 659
    setHasItemNoIsSet(false);
660
    this.hasItemNo = false;
7256 rajveer 661
    setActiveOnStoreIsSet(false);
662
    this.activeOnStore = false;
6241 amit.gupta 663
    setShowSellingPriceIsSet(false);
664
    this.showSellingPrice = false;
6777 vikram.rag 665
    this.bestDealsDetailsText = null;
666
    this.bestDealsDetailsLink = null;
6805 anupam.sin 667
    setPreferredInsurerIsSet(false);
668
    this.preferredInsurer = 0;
7291 vikram.rag 669
    this.asin = null;
670
    setDefaultInventoryIsSet(false);
671
    this.defaultInventory = 0;
672
    setHoldInventoryIsSet(false);
673
    this.holdInventory = 0;
100 ashish 674
  }
675
 
676
  public long getId() {
677
    return this.id;
678
  }
679
 
3430 rajveer 680
  public void setId(long id) {
100 ashish 681
    this.id = id;
682
    setIdIsSet(true);
683
  }
684
 
685
  public void unsetId() {
686
    __isset_bit_vector.clear(__ID_ISSET_ID);
687
  }
688
 
3430 rajveer 689
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
100 ashish 690
  public boolean isSetId() {
691
    return __isset_bit_vector.get(__ID_ISSET_ID);
692
  }
693
 
694
  public void setIdIsSet(boolean value) {
695
    __isset_bit_vector.set(__ID_ISSET_ID, value);
696
  }
697
 
957 chandransh 698
  public String getProductGroup() {
699
    return this.productGroup;
483 rajveer 700
  }
701
 
3430 rajveer 702
  public void setProductGroup(String productGroup) {
957 chandransh 703
    this.productGroup = productGroup;
483 rajveer 704
  }
705
 
957 chandransh 706
  public void unsetProductGroup() {
707
    this.productGroup = null;
483 rajveer 708
  }
709
 
3430 rajveer 710
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
957 chandransh 711
  public boolean isSetProductGroup() {
712
    return this.productGroup != null;
483 rajveer 713
  }
714
 
957 chandransh 715
  public void setProductGroupIsSet(boolean value) {
483 rajveer 716
    if (!value) {
957 chandransh 717
      this.productGroup = null;
483 rajveer 718
    }
719
  }
720
 
957 chandransh 721
  public String getBrand() {
722
    return this.brand;
723
  }
724
 
3430 rajveer 725
  public void setBrand(String brand) {
957 chandransh 726
    this.brand = brand;
727
  }
728
 
729
  public void unsetBrand() {
730
    this.brand = null;
731
  }
732
 
3430 rajveer 733
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
957 chandransh 734
  public boolean isSetBrand() {
735
    return this.brand != null;
736
  }
737
 
738
  public void setBrandIsSet(boolean value) {
739
    if (!value) {
740
      this.brand = null;
741
    }
742
  }
743
 
483 rajveer 744
  public String getModelNumber() {
745
    return this.modelNumber;
746
  }
747
 
3430 rajveer 748
  public void setModelNumber(String modelNumber) {
483 rajveer 749
    this.modelNumber = modelNumber;
750
  }
751
 
752
  public void unsetModelNumber() {
753
    this.modelNumber = null;
754
  }
755
 
3430 rajveer 756
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
483 rajveer 757
  public boolean isSetModelNumber() {
758
    return this.modelNumber != null;
759
  }
760
 
761
  public void setModelNumberIsSet(boolean value) {
762
    if (!value) {
763
      this.modelNumber = null;
764
    }
765
  }
766
 
767
  public String getModelName() {
768
    return this.modelName;
769
  }
770
 
3430 rajveer 771
  public void setModelName(String modelName) {
483 rajveer 772
    this.modelName = modelName;
773
  }
774
 
775
  public void unsetModelName() {
776
    this.modelName = null;
777
  }
778
 
3430 rajveer 779
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
483 rajveer 780
  public boolean isSetModelName() {
781
    return this.modelName != null;
782
  }
783
 
784
  public void setModelNameIsSet(boolean value) {
785
    if (!value) {
786
      this.modelName = null;
787
    }
788
  }
789
 
1329 chandransh 790
  public String getColor() {
791
    return this.color;
792
  }
793
 
3430 rajveer 794
  public void setColor(String color) {
1329 chandransh 795
    this.color = color;
796
  }
797
 
798
  public void unsetColor() {
799
    this.color = null;
800
  }
801
 
3430 rajveer 802
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
1329 chandransh 803
  public boolean isSetColor() {
804
    return this.color != null;
805
  }
806
 
807
  public void setColorIsSet(boolean value) {
808
    if (!value) {
809
      this.color = null;
810
    }
811
  }
812
 
622 chandransh 813
  public long getCategory() {
483 rajveer 814
    return this.category;
815
  }
816
 
3430 rajveer 817
  public void setCategory(long category) {
483 rajveer 818
    this.category = category;
622 chandransh 819
    setCategoryIsSet(true);
483 rajveer 820
  }
821
 
822
  public void unsetCategory() {
622 chandransh 823
    __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
483 rajveer 824
  }
825
 
3430 rajveer 826
  /** Returns true if field category is set (has been assigned a value) and false otherwise */
483 rajveer 827
  public boolean isSetCategory() {
622 chandransh 828
    return __isset_bit_vector.get(__CATEGORY_ISSET_ID);
483 rajveer 829
  }
830
 
831
  public void setCategoryIsSet(boolean value) {
622 chandransh 832
    __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
483 rajveer 833
  }
834
 
835
  public String getComments() {
836
    return this.comments;
837
  }
838
 
3430 rajveer 839
  public void setComments(String comments) {
483 rajveer 840
    this.comments = comments;
841
  }
842
 
843
  public void unsetComments() {
844
    this.comments = null;
845
  }
846
 
3430 rajveer 847
  /** Returns true if field comments is set (has been assigned a value) and false otherwise */
483 rajveer 848
  public boolean isSetComments() {
849
    return this.comments != null;
850
  }
851
 
852
  public void setCommentsIsSet(boolean value) {
853
    if (!value) {
854
      this.comments = null;
855
    }
856
  }
857
 
123 ashish 858
  public long getCatalogItemId() {
859
    return this.catalogItemId;
100 ashish 860
  }
861
 
3430 rajveer 862
  public void setCatalogItemId(long catalogItemId) {
123 ashish 863
    this.catalogItemId = catalogItemId;
864
    setCatalogItemIdIsSet(true);
100 ashish 865
  }
866
 
123 ashish 867
  public void unsetCatalogItemId() {
868
    __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
100 ashish 869
  }
870
 
3430 rajveer 871
  /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
123 ashish 872
  public boolean isSetCatalogItemId() {
873
    return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
100 ashish 874
  }
875
 
123 ashish 876
  public void setCatalogItemIdIsSet(boolean value) {
877
    __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
100 ashish 878
  }
879
 
483 rajveer 880
  public long getFeatureId() {
881
    return this.featureId;
882
  }
883
 
3430 rajveer 884
  public void setFeatureId(long featureId) {
483 rajveer 885
    this.featureId = featureId;
886
    setFeatureIdIsSet(true);
887
  }
888
 
889
  public void unsetFeatureId() {
890
    __isset_bit_vector.clear(__FEATUREID_ISSET_ID);
891
  }
892
 
3430 rajveer 893
  /** Returns true if field featureId is set (has been assigned a value) and false otherwise */
483 rajveer 894
  public boolean isSetFeatureId() {
895
    return __isset_bit_vector.get(__FEATUREID_ISSET_ID);
896
  }
897
 
898
  public void setFeatureIdIsSet(boolean value) {
899
    __isset_bit_vector.set(__FEATUREID_ISSET_ID, value);
900
  }
901
 
902
  public String getFeatureDescription() {
903
    return this.featureDescription;
904
  }
905
 
3430 rajveer 906
  public void setFeatureDescription(String featureDescription) {
483 rajveer 907
    this.featureDescription = featureDescription;
908
  }
909
 
910
  public void unsetFeatureDescription() {
911
    this.featureDescription = null;
912
  }
913
 
3430 rajveer 914
  /** Returns true if field featureDescription is set (has been assigned a value) and false otherwise */
483 rajveer 915
  public boolean isSetFeatureDescription() {
916
    return this.featureDescription != null;
917
  }
918
 
919
  public void setFeatureDescriptionIsSet(boolean value) {
920
    if (!value) {
921
      this.featureDescription = null;
922
    }
923
  }
924
 
925
  public double getMrp() {
926
    return this.mrp;
927
  }
928
 
3430 rajveer 929
  public void setMrp(double mrp) {
483 rajveer 930
    this.mrp = mrp;
931
    setMrpIsSet(true);
932
  }
933
 
934
  public void unsetMrp() {
935
    __isset_bit_vector.clear(__MRP_ISSET_ID);
936
  }
937
 
3430 rajveer 938
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
483 rajveer 939
  public boolean isSetMrp() {
940
    return __isset_bit_vector.get(__MRP_ISSET_ID);
941
  }
942
 
943
  public void setMrpIsSet(boolean value) {
944
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
945
  }
946
 
947
  public double getSellingPrice() {
948
    return this.sellingPrice;
949
  }
950
 
3430 rajveer 951
  public void setSellingPrice(double sellingPrice) {
483 rajveer 952
    this.sellingPrice = sellingPrice;
953
    setSellingPriceIsSet(true);
954
  }
955
 
956
  public void unsetSellingPrice() {
957
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
958
  }
959
 
3430 rajveer 960
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
483 rajveer 961
  public boolean isSetSellingPrice() {
962
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
963
  }
964
 
965
  public void setSellingPriceIsSet(boolean value) {
966
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
967
  }
968
 
969
  public double getWeight() {
970
    return this.weight;
971
  }
972
 
3430 rajveer 973
  public void setWeight(double weight) {
483 rajveer 974
    this.weight = weight;
975
    setWeightIsSet(true);
976
  }
977
 
978
  public void unsetWeight() {
979
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
980
  }
981
 
3430 rajveer 982
  /** Returns true if field weight is set (has been assigned a value) and false otherwise */
483 rajveer 983
  public boolean isSetWeight() {
984
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
985
  }
986
 
987
  public void setWeightIsSet(boolean value) {
988
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
989
  }
990
 
103 ashish 991
  public long getAddedOn() {
992
    return this.addedOn;
993
  }
994
 
3430 rajveer 995
  public void setAddedOn(long addedOn) {
103 ashish 996
    this.addedOn = addedOn;
997
    setAddedOnIsSet(true);
998
  }
999
 
1000
  public void unsetAddedOn() {
1001
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
1002
  }
1003
 
3430 rajveer 1004
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
103 ashish 1005
  public boolean isSetAddedOn() {
1006
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
1007
  }
1008
 
1009
  public void setAddedOnIsSet(boolean value) {
1010
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
1011
  }
1012
 
1013
  public long getStartDate() {
1014
    return this.startDate;
1015
  }
1016
 
3430 rajveer 1017
  public void setStartDate(long startDate) {
103 ashish 1018
    this.startDate = startDate;
1019
    setStartDateIsSet(true);
1020
  }
1021
 
1022
  public void unsetStartDate() {
1023
    __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
1024
  }
1025
 
3430 rajveer 1026
  /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
103 ashish 1027
  public boolean isSetStartDate() {
1028
    return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
1029
  }
1030
 
1031
  public void setStartDateIsSet(boolean value) {
1032
    __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
1033
  }
1034
 
483 rajveer 1035
  public long getRetireDate() {
1036
    return this.retireDate;
1037
  }
1038
 
3430 rajveer 1039
  public void setRetireDate(long retireDate) {
483 rajveer 1040
    this.retireDate = retireDate;
1041
    setRetireDateIsSet(true);
1042
  }
1043
 
1044
  public void unsetRetireDate() {
1045
    __isset_bit_vector.clear(__RETIREDATE_ISSET_ID);
1046
  }
1047
 
3430 rajveer 1048
  /** Returns true if field retireDate is set (has been assigned a value) and false otherwise */
483 rajveer 1049
  public boolean isSetRetireDate() {
1050
    return __isset_bit_vector.get(__RETIREDATE_ISSET_ID);
1051
  }
1052
 
1053
  public void setRetireDateIsSet(boolean value) {
1054
    __isset_bit_vector.set(__RETIREDATE_ISSET_ID, value);
1055
  }
1056
 
103 ashish 1057
  /**
1058
   * 
1059
   * @see status
1060
   */
1061
  public status getItemStatus() {
1062
    return this.itemStatus;
1063
  }
1064
 
1065
  /**
1066
   * 
1067
   * @see status
1068
   */
3430 rajveer 1069
  public void setItemStatus(status itemStatus) {
103 ashish 1070
    this.itemStatus = itemStatus;
1071
  }
1072
 
1073
  public void unsetItemStatus() {
1074
    this.itemStatus = null;
1075
  }
1076
 
3430 rajveer 1077
  /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
103 ashish 1078
  public boolean isSetItemStatus() {
1079
    return this.itemStatus != null;
1080
  }
1081
 
1082
  public void setItemStatusIsSet(boolean value) {
1083
    if (!value) {
1084
      this.itemStatus = null;
1085
    }
1086
  }
1087
 
2034 rajveer 1088
  public String getStatus_description() {
1089
    return this.status_description;
1090
  }
1091
 
3430 rajveer 1092
  public void setStatus_description(String status_description) {
2034 rajveer 1093
    this.status_description = status_description;
1094
  }
1095
 
1096
  public void unsetStatus_description() {
1097
    this.status_description = null;
1098
  }
1099
 
3430 rajveer 1100
  /** Returns true if field status_description is set (has been assigned a value) and false otherwise */
2034 rajveer 1101
  public boolean isSetStatus_description() {
1102
    return this.status_description != null;
1103
  }
1104
 
1105
  public void setStatus_descriptionIsSet(boolean value) {
1106
    if (!value) {
1107
      this.status_description = null;
1108
    }
1109
  }
1110
 
5336 rajveer 1111
  public int getOtherInfoSize() {
1112
    return (this.otherInfo == null) ? 0 : this.otherInfo.size();
1113
  }
1114
 
1115
  public void putToOtherInfo(String key, String val) {
1116
    if (this.otherInfo == null) {
1117
      this.otherInfo = new HashMap<String,String>();
1118
    }
1119
    this.otherInfo.put(key, val);
1120
  }
1121
 
1122
  public Map<String,String> getOtherInfo() {
1123
    return this.otherInfo;
1124
  }
1125
 
1126
  public void setOtherInfo(Map<String,String> otherInfo) {
1127
    this.otherInfo = otherInfo;
1128
  }
1129
 
1130
  public void unsetOtherInfo() {
1131
    this.otherInfo = null;
1132
  }
1133
 
1134
  /** Returns true if field otherInfo is set (has been assigned a value) and false otherwise */
1135
  public boolean isSetOtherInfo() {
1136
    return this.otherInfo != null;
1137
  }
1138
 
1139
  public void setOtherInfoIsSet(boolean value) {
1140
    if (!value) {
1141
      this.otherInfo = null;
1142
    }
1143
  }
1144
 
607 chandransh 1145
  public String getBestDealText() {
1146
    return this.bestDealText;
1147
  }
1148
 
3430 rajveer 1149
  public void setBestDealText(String bestDealText) {
607 chandransh 1150
    this.bestDealText = bestDealText;
1151
  }
1152
 
1153
  public void unsetBestDealText() {
1154
    this.bestDealText = null;
1155
  }
1156
 
3430 rajveer 1157
  /** Returns true if field bestDealText is set (has been assigned a value) and false otherwise */
607 chandransh 1158
  public boolean isSetBestDealText() {
1159
    return this.bestDealText != null;
1160
  }
1161
 
1162
  public void setBestDealTextIsSet(boolean value) {
1163
    if (!value) {
1164
      this.bestDealText = null;
1165
    }
1166
  }
1167
 
1168
  public double getBestDealValue() {
1169
    return this.bestDealValue;
1170
  }
1171
 
3430 rajveer 1172
  public void setBestDealValue(double bestDealValue) {
607 chandransh 1173
    this.bestDealValue = bestDealValue;
1174
    setBestDealValueIsSet(true);
1175
  }
1176
 
1177
  public void unsetBestDealValue() {
1178
    __isset_bit_vector.clear(__BESTDEALVALUE_ISSET_ID);
1179
  }
1180
 
3430 rajveer 1181
  /** Returns true if field bestDealValue is set (has been assigned a value) and false otherwise */
607 chandransh 1182
  public boolean isSetBestDealValue() {
1183
    return __isset_bit_vector.get(__BESTDEALVALUE_ISSET_ID);
1184
  }
1185
 
1186
  public void setBestDealValueIsSet(boolean value) {
1187
    __isset_bit_vector.set(__BESTDEALVALUE_ISSET_ID, value);
1188
  }
1189
 
1910 varun.gupt 1190
  public boolean isDefaultForEntity() {
1191
    return this.defaultForEntity;
1192
  }
1193
 
3430 rajveer 1194
  public void setDefaultForEntity(boolean defaultForEntity) {
1910 varun.gupt 1195
    this.defaultForEntity = defaultForEntity;
1196
    setDefaultForEntityIsSet(true);
1197
  }
1198
 
1199
  public void unsetDefaultForEntity() {
1200
    __isset_bit_vector.clear(__DEFAULTFORENTITY_ISSET_ID);
1201
  }
1202
 
3430 rajveer 1203
  /** Returns true if field defaultForEntity is set (has been assigned a value) and false otherwise */
1910 varun.gupt 1204
  public boolean isSetDefaultForEntity() {
1205
    return __isset_bit_vector.get(__DEFAULTFORENTITY_ISSET_ID);
1206
  }
1207
 
1208
  public void setDefaultForEntityIsSet(boolean value) {
1209
    __isset_bit_vector.set(__DEFAULTFORENTITY_ISSET_ID, value);
1210
  }
1211
 
607 chandransh 1212
  public long getUpdatedOn() {
1213
    return this.updatedOn;
1214
  }
1215
 
3430 rajveer 1216
  public void setUpdatedOn(long updatedOn) {
607 chandransh 1217
    this.updatedOn = updatedOn;
1218
    setUpdatedOnIsSet(true);
1219
  }
1220
 
1221
  public void unsetUpdatedOn() {
1222
    __isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
1223
  }
1224
 
3430 rajveer 1225
  /** Returns true if field updatedOn is set (has been assigned a value) and false otherwise */
607 chandransh 1226
  public boolean isSetUpdatedOn() {
1227
    return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
1228
  }
1229
 
1230
  public void setUpdatedOnIsSet(boolean value) {
1231
    __isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
1232
  }
1233
 
2064 ankur.sing 1234
  public long getBestSellingRank() {
1235
    return this.bestSellingRank;
1236
  }
1237
 
3430 rajveer 1238
  public void setBestSellingRank(long bestSellingRank) {
2064 ankur.sing 1239
    this.bestSellingRank = bestSellingRank;
1240
    setBestSellingRankIsSet(true);
1241
  }
1242
 
1243
  public void unsetBestSellingRank() {
1244
    __isset_bit_vector.clear(__BESTSELLINGRANK_ISSET_ID);
1245
  }
1246
 
3430 rajveer 1247
  /** Returns true if field bestSellingRank is set (has been assigned a value) and false otherwise */
2064 ankur.sing 1248
  public boolean isSetBestSellingRank() {
1249
    return __isset_bit_vector.get(__BESTSELLINGRANK_ISSET_ID);
1250
  }
1251
 
1252
  public void setBestSellingRankIsSet(boolean value) {
1253
    __isset_bit_vector.set(__BESTSELLINGRANK_ISSET_ID, value);
1254
  }
1255
 
2250 ankur.sing 1256
  public boolean isRisky() {
1257
    return this.risky;
1258
  }
1259
 
3430 rajveer 1260
  public void setRisky(boolean risky) {
2250 ankur.sing 1261
    this.risky = risky;
1262
    setRiskyIsSet(true);
1263
  }
1264
 
1265
  public void unsetRisky() {
1266
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
1267
  }
1268
 
3430 rajveer 1269
  /** Returns true if field risky is set (has been assigned a value) and false otherwise */
2250 ankur.sing 1270
  public boolean isSetRisky() {
1271
    return __isset_bit_vector.get(__RISKY_ISSET_ID);
1272
  }
1273
 
1274
  public void setRiskyIsSet(boolean value) {
1275
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
1276
  }
1277
 
3355 chandransh 1278
  public int getExpectedDelay() {
1279
    return this.expectedDelay;
1280
  }
1281
 
3430 rajveer 1282
  public void setExpectedDelay(int expectedDelay) {
3355 chandransh 1283
    this.expectedDelay = expectedDelay;
1284
    setExpectedDelayIsSet(true);
1285
  }
1286
 
1287
  public void unsetExpectedDelay() {
1288
    __isset_bit_vector.clear(__EXPECTEDDELAY_ISSET_ID);
1289
  }
1290
 
3430 rajveer 1291
  /** Returns true if field expectedDelay is set (has been assigned a value) and false otherwise */
3355 chandransh 1292
  public boolean isSetExpectedDelay() {
1293
    return __isset_bit_vector.get(__EXPECTEDDELAY_ISSET_ID);
1294
  }
1295
 
1296
  public void setExpectedDelayIsSet(boolean value) {
1297
    __isset_bit_vector.set(__EXPECTEDDELAY_ISSET_ID, value);
1298
  }
1299
 
4406 anupam.sin 1300
  public boolean isIsWarehousePreferenceSticky() {
1301
    return this.isWarehousePreferenceSticky;
1302
  }
1303
 
1304
  public void setIsWarehousePreferenceSticky(boolean isWarehousePreferenceSticky) {
1305
    this.isWarehousePreferenceSticky = isWarehousePreferenceSticky;
1306
    setIsWarehousePreferenceStickyIsSet(true);
1307
  }
1308
 
1309
  public void unsetIsWarehousePreferenceSticky() {
1310
    __isset_bit_vector.clear(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID);
1311
  }
1312
 
1313
  /** Returns true if field isWarehousePreferenceSticky is set (has been assigned a value) and false otherwise */
1314
  public boolean isSetIsWarehousePreferenceSticky() {
1315
    return __isset_bit_vector.get(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID);
1316
  }
1317
 
1318
  public void setIsWarehousePreferenceStickyIsSet(boolean value) {
1319
    __isset_bit_vector.set(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID, value);
1320
  }
1321
 
4295 varun.gupt 1322
  public int getWarrantyPeriod() {
1323
    return this.warrantyPeriod;
1324
  }
1325
 
1326
  public void setWarrantyPeriod(int warrantyPeriod) {
1327
    this.warrantyPeriod = warrantyPeriod;
1328
    setWarrantyPeriodIsSet(true);
1329
  }
1330
 
1331
  public void unsetWarrantyPeriod() {
1332
    __isset_bit_vector.clear(__WARRANTYPERIOD_ISSET_ID);
1333
  }
1334
 
1335
  /** Returns true if field warrantyPeriod is set (has been assigned a value) and false otherwise */
1336
  public boolean isSetWarrantyPeriod() {
1337
    return __isset_bit_vector.get(__WARRANTYPERIOD_ISSET_ID);
1338
  }
1339
 
1340
  public void setWarrantyPeriodIsSet(boolean value) {
1341
    __isset_bit_vector.set(__WARRANTYPERIOD_ISSET_ID, value);
1342
  }
1343
 
4506 phani.kuma 1344
  public long getPreferredVendor() {
1345
    return this.preferredVendor;
1346
  }
1347
 
1348
  public void setPreferredVendor(long preferredVendor) {
1349
    this.preferredVendor = preferredVendor;
1350
    setPreferredVendorIsSet(true);
1351
  }
1352
 
1353
  public void unsetPreferredVendor() {
1354
    __isset_bit_vector.clear(__PREFERREDVENDOR_ISSET_ID);
1355
  }
1356
 
1357
  /** Returns true if field preferredVendor is set (has been assigned a value) and false otherwise */
1358
  public boolean isSetPreferredVendor() {
1359
    return __isset_bit_vector.get(__PREFERREDVENDOR_ISSET_ID);
1360
  }
1361
 
1362
  public void setPreferredVendorIsSet(boolean value) {
1363
    __isset_bit_vector.set(__PREFERREDVENDOR_ISSET_ID, value);
1364
  }
1365
 
5110 mandeep.dh 1366
  /**
1367
   * 
1368
   * @see ItemType
1369
   */
1370
  public ItemType getType() {
1371
    return this.type;
1372
  }
1373
 
1374
  /**
1375
   * 
1376
   * @see ItemType
1377
   */
1378
  public void setType(ItemType type) {
1379
    this.type = type;
1380
  }
1381
 
1382
  public void unsetType() {
1383
    this.type = null;
1384
  }
1385
 
1386
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
1387
  public boolean isSetType() {
1388
    return this.type != null;
1389
  }
1390
 
1391
  public void setTypeIsSet(boolean value) {
1392
    if (!value) {
1393
      this.type = null;
1394
    }
1395
  }
1396
 
5217 amit.gupta 1397
  public long getComingSoonStartDate() {
1398
    return this.comingSoonStartDate;
1399
  }
1400
 
1401
  public void setComingSoonStartDate(long comingSoonStartDate) {
1402
    this.comingSoonStartDate = comingSoonStartDate;
1403
    setComingSoonStartDateIsSet(true);
1404
  }
1405
 
1406
  public void unsetComingSoonStartDate() {
1407
    __isset_bit_vector.clear(__COMINGSOONSTARTDATE_ISSET_ID);
1408
  }
1409
 
1410
  /** Returns true if field comingSoonStartDate is set (has been assigned a value) and false otherwise */
1411
  public boolean isSetComingSoonStartDate() {
1412
    return __isset_bit_vector.get(__COMINGSOONSTARTDATE_ISSET_ID);
1413
  }
1414
 
1415
  public void setComingSoonStartDateIsSet(boolean value) {
1416
    __isset_bit_vector.set(__COMINGSOONSTARTDATE_ISSET_ID, value);
1417
  }
1418
 
1419
  public long getExpectedArrivalDate() {
1420
    return this.expectedArrivalDate;
1421
  }
1422
 
1423
  public void setExpectedArrivalDate(long expectedArrivalDate) {
1424
    this.expectedArrivalDate = expectedArrivalDate;
1425
    setExpectedArrivalDateIsSet(true);
1426
  }
1427
 
1428
  public void unsetExpectedArrivalDate() {
1429
    __isset_bit_vector.clear(__EXPECTEDARRIVALDATE_ISSET_ID);
1430
  }
1431
 
1432
  /** Returns true if field expectedArrivalDate is set (has been assigned a value) and false otherwise */
1433
  public boolean isSetExpectedArrivalDate() {
1434
    return __isset_bit_vector.get(__EXPECTEDARRIVALDATE_ISSET_ID);
1435
  }
1436
 
1437
  public void setExpectedArrivalDateIsSet(boolean value) {
1438
    __isset_bit_vector.set(__EXPECTEDARRIVALDATE_ISSET_ID, value);
1439
  }
1440
 
5385 phani.kuma 1441
  public boolean isHasItemNo() {
1442
    return this.hasItemNo;
1443
  }
1444
 
1445
  public void setHasItemNo(boolean hasItemNo) {
1446
    this.hasItemNo = hasItemNo;
1447
    setHasItemNoIsSet(true);
1448
  }
1449
 
1450
  public void unsetHasItemNo() {
1451
    __isset_bit_vector.clear(__HASITEMNO_ISSET_ID);
1452
  }
1453
 
1454
  /** Returns true if field hasItemNo is set (has been assigned a value) and false otherwise */
1455
  public boolean isSetHasItemNo() {
1456
    return __isset_bit_vector.get(__HASITEMNO_ISSET_ID);
1457
  }
1458
 
1459
  public void setHasItemNoIsSet(boolean value) {
1460
    __isset_bit_vector.set(__HASITEMNO_ISSET_ID, value);
1461
  }
1462
 
7256 rajveer 1463
  public boolean isActiveOnStore() {
1464
    return this.activeOnStore;
5460 phani.kuma 1465
  }
1466
 
7256 rajveer 1467
  public void setActiveOnStore(boolean activeOnStore) {
1468
    this.activeOnStore = activeOnStore;
1469
    setActiveOnStoreIsSet(true);
5460 phani.kuma 1470
  }
1471
 
7256 rajveer 1472
  public void unsetActiveOnStore() {
1473
    __isset_bit_vector.clear(__ACTIVEONSTORE_ISSET_ID);
5460 phani.kuma 1474
  }
1475
 
7256 rajveer 1476
  /** Returns true if field activeOnStore is set (has been assigned a value) and false otherwise */
1477
  public boolean isSetActiveOnStore() {
1478
    return __isset_bit_vector.get(__ACTIVEONSTORE_ISSET_ID);
5460 phani.kuma 1479
  }
1480
 
7256 rajveer 1481
  public void setActiveOnStoreIsSet(boolean value) {
1482
    __isset_bit_vector.set(__ACTIVEONSTORE_ISSET_ID, value);
5460 phani.kuma 1483
  }
1484
 
6241 amit.gupta 1485
  public boolean isShowSellingPrice() {
1486
    return this.showSellingPrice;
1487
  }
1488
 
1489
  public void setShowSellingPrice(boolean showSellingPrice) {
1490
    this.showSellingPrice = showSellingPrice;
1491
    setShowSellingPriceIsSet(true);
1492
  }
1493
 
1494
  public void unsetShowSellingPrice() {
1495
    __isset_bit_vector.clear(__SHOWSELLINGPRICE_ISSET_ID);
1496
  }
1497
 
1498
  /** Returns true if field showSellingPrice is set (has been assigned a value) and false otherwise */
1499
  public boolean isSetShowSellingPrice() {
1500
    return __isset_bit_vector.get(__SHOWSELLINGPRICE_ISSET_ID);
1501
  }
1502
 
1503
  public void setShowSellingPriceIsSet(boolean value) {
1504
    __isset_bit_vector.set(__SHOWSELLINGPRICE_ISSET_ID, value);
1505
  }
1506
 
6777 vikram.rag 1507
  public String getBestDealsDetailsText() {
1508
    return this.bestDealsDetailsText;
1509
  }
1510
 
1511
  public void setBestDealsDetailsText(String bestDealsDetailsText) {
1512
    this.bestDealsDetailsText = bestDealsDetailsText;
1513
  }
1514
 
1515
  public void unsetBestDealsDetailsText() {
1516
    this.bestDealsDetailsText = null;
1517
  }
1518
 
1519
  /** Returns true if field bestDealsDetailsText is set (has been assigned a value) and false otherwise */
1520
  public boolean isSetBestDealsDetailsText() {
1521
    return this.bestDealsDetailsText != null;
1522
  }
1523
 
1524
  public void setBestDealsDetailsTextIsSet(boolean value) {
1525
    if (!value) {
1526
      this.bestDealsDetailsText = null;
1527
    }
1528
  }
1529
 
1530
  public String getBestDealsDetailsLink() {
1531
    return this.bestDealsDetailsLink;
1532
  }
1533
 
1534
  public void setBestDealsDetailsLink(String bestDealsDetailsLink) {
1535
    this.bestDealsDetailsLink = bestDealsDetailsLink;
1536
  }
1537
 
1538
  public void unsetBestDealsDetailsLink() {
1539
    this.bestDealsDetailsLink = null;
1540
  }
1541
 
1542
  /** Returns true if field bestDealsDetailsLink is set (has been assigned a value) and false otherwise */
1543
  public boolean isSetBestDealsDetailsLink() {
1544
    return this.bestDealsDetailsLink != null;
1545
  }
1546
 
1547
  public void setBestDealsDetailsLinkIsSet(boolean value) {
1548
    if (!value) {
1549
      this.bestDealsDetailsLink = null;
1550
    }
1551
  }
1552
 
6805 anupam.sin 1553
  public long getPreferredInsurer() {
1554
    return this.preferredInsurer;
1555
  }
1556
 
1557
  public void setPreferredInsurer(long preferredInsurer) {
1558
    this.preferredInsurer = preferredInsurer;
1559
    setPreferredInsurerIsSet(true);
1560
  }
1561
 
1562
  public void unsetPreferredInsurer() {
1563
    __isset_bit_vector.clear(__PREFERREDINSURER_ISSET_ID);
1564
  }
1565
 
1566
  /** Returns true if field preferredInsurer is set (has been assigned a value) and false otherwise */
1567
  public boolean isSetPreferredInsurer() {
1568
    return __isset_bit_vector.get(__PREFERREDINSURER_ISSET_ID);
1569
  }
1570
 
1571
  public void setPreferredInsurerIsSet(boolean value) {
1572
    __isset_bit_vector.set(__PREFERREDINSURER_ISSET_ID, value);
1573
  }
1574
 
7291 vikram.rag 1575
  public String getAsin() {
1576
    return this.asin;
1577
  }
1578
 
1579
  public void setAsin(String asin) {
1580
    this.asin = asin;
1581
  }
1582
 
1583
  public void unsetAsin() {
1584
    this.asin = null;
1585
  }
1586
 
1587
  /** Returns true if field asin is set (has been assigned a value) and false otherwise */
1588
  public boolean isSetAsin() {
1589
    return this.asin != null;
1590
  }
1591
 
1592
  public void setAsinIsSet(boolean value) {
1593
    if (!value) {
1594
      this.asin = null;
1595
    }
1596
  }
1597
 
1598
  public long getDefaultInventory() {
1599
    return this.defaultInventory;
1600
  }
1601
 
1602
  public void setDefaultInventory(long defaultInventory) {
1603
    this.defaultInventory = defaultInventory;
1604
    setDefaultInventoryIsSet(true);
1605
  }
1606
 
1607
  public void unsetDefaultInventory() {
1608
    __isset_bit_vector.clear(__DEFAULTINVENTORY_ISSET_ID);
1609
  }
1610
 
1611
  /** Returns true if field defaultInventory is set (has been assigned a value) and false otherwise */
1612
  public boolean isSetDefaultInventory() {
1613
    return __isset_bit_vector.get(__DEFAULTINVENTORY_ISSET_ID);
1614
  }
1615
 
1616
  public void setDefaultInventoryIsSet(boolean value) {
1617
    __isset_bit_vector.set(__DEFAULTINVENTORY_ISSET_ID, value);
1618
  }
1619
 
1620
  public long getHoldInventory() {
1621
    return this.holdInventory;
1622
  }
1623
 
1624
  public void setHoldInventory(long holdInventory) {
1625
    this.holdInventory = holdInventory;
1626
    setHoldInventoryIsSet(true);
1627
  }
1628
 
1629
  public void unsetHoldInventory() {
1630
    __isset_bit_vector.clear(__HOLDINVENTORY_ISSET_ID);
1631
  }
1632
 
1633
  /** Returns true if field holdInventory is set (has been assigned a value) and false otherwise */
1634
  public boolean isSetHoldInventory() {
1635
    return __isset_bit_vector.get(__HOLDINVENTORY_ISSET_ID);
1636
  }
1637
 
1638
  public void setHoldInventoryIsSet(boolean value) {
1639
    __isset_bit_vector.set(__HOLDINVENTORY_ISSET_ID, value);
1640
  }
1641
 
100 ashish 1642
  public void setFieldValue(_Fields field, Object value) {
1643
    switch (field) {
1644
    case ID:
1645
      if (value == null) {
1646
        unsetId();
1647
      } else {
1648
        setId((Long)value);
1649
      }
1650
      break;
1651
 
957 chandransh 1652
    case PRODUCT_GROUP:
483 rajveer 1653
      if (value == null) {
957 chandransh 1654
        unsetProductGroup();
483 rajveer 1655
      } else {
957 chandransh 1656
        setProductGroup((String)value);
483 rajveer 1657
      }
1658
      break;
1659
 
957 chandransh 1660
    case BRAND:
1661
      if (value == null) {
1662
        unsetBrand();
1663
      } else {
1664
        setBrand((String)value);
1665
      }
1666
      break;
1667
 
483 rajveer 1668
    case MODEL_NUMBER:
1669
      if (value == null) {
1670
        unsetModelNumber();
1671
      } else {
1672
        setModelNumber((String)value);
1673
      }
1674
      break;
1675
 
1676
    case MODEL_NAME:
1677
      if (value == null) {
1678
        unsetModelName();
1679
      } else {
1680
        setModelName((String)value);
1681
      }
1682
      break;
1683
 
1329 chandransh 1684
    case COLOR:
1685
      if (value == null) {
1686
        unsetColor();
1687
      } else {
1688
        setColor((String)value);
1689
      }
1690
      break;
1691
 
483 rajveer 1692
    case CATEGORY:
1693
      if (value == null) {
1694
        unsetCategory();
1695
      } else {
622 chandransh 1696
        setCategory((Long)value);
483 rajveer 1697
      }
1698
      break;
1699
 
1700
    case COMMENTS:
1701
      if (value == null) {
1702
        unsetComments();
1703
      } else {
1704
        setComments((String)value);
1705
      }
1706
      break;
1707
 
123 ashish 1708
    case CATALOG_ITEM_ID:
100 ashish 1709
      if (value == null) {
123 ashish 1710
        unsetCatalogItemId();
100 ashish 1711
      } else {
123 ashish 1712
        setCatalogItemId((Long)value);
100 ashish 1713
      }
1714
      break;
1715
 
483 rajveer 1716
    case FEATURE_ID:
100 ashish 1717
      if (value == null) {
483 rajveer 1718
        unsetFeatureId();
100 ashish 1719
      } else {
483 rajveer 1720
        setFeatureId((Long)value);
100 ashish 1721
      }
1722
      break;
1723
 
483 rajveer 1724
    case FEATURE_DESCRIPTION:
103 ashish 1725
      if (value == null) {
483 rajveer 1726
        unsetFeatureDescription();
103 ashish 1727
      } else {
483 rajveer 1728
        setFeatureDescription((String)value);
103 ashish 1729
      }
1730
      break;
1731
 
483 rajveer 1732
    case MRP:
103 ashish 1733
      if (value == null) {
483 rajveer 1734
        unsetMrp();
103 ashish 1735
      } else {
483 rajveer 1736
        setMrp((Double)value);
103 ashish 1737
      }
1738
      break;
1739
 
483 rajveer 1740
    case SELLING_PRICE:
1741
      if (value == null) {
1742
        unsetSellingPrice();
1743
      } else {
1744
        setSellingPrice((Double)value);
1745
      }
1746
      break;
1747
 
123 ashish 1748
    case WEIGHT:
1749
      if (value == null) {
1750
        unsetWeight();
1751
      } else {
1752
        setWeight((Double)value);
1753
      }
1754
      break;
1755
 
483 rajveer 1756
    case ADDED_ON:
123 ashish 1757
      if (value == null) {
483 rajveer 1758
        unsetAddedOn();
123 ashish 1759
      } else {
483 rajveer 1760
        setAddedOn((Long)value);
123 ashish 1761
      }
1762
      break;
1763
 
483 rajveer 1764
    case START_DATE:
123 ashish 1765
      if (value == null) {
483 rajveer 1766
        unsetStartDate();
123 ashish 1767
      } else {
483 rajveer 1768
        setStartDate((Long)value);
123 ashish 1769
      }
1770
      break;
1771
 
483 rajveer 1772
    case RETIRE_DATE:
123 ashish 1773
      if (value == null) {
483 rajveer 1774
        unsetRetireDate();
123 ashish 1775
      } else {
483 rajveer 1776
        setRetireDate((Long)value);
123 ashish 1777
      }
1778
      break;
1779
 
483 rajveer 1780
    case ITEM_STATUS:
1781
      if (value == null) {
1782
        unsetItemStatus();
1783
      } else {
1784
        setItemStatus((status)value);
1785
      }
1786
      break;
1787
 
2034 rajveer 1788
    case STATUS_DESCRIPTION:
1789
      if (value == null) {
1790
        unsetStatus_description();
1791
      } else {
1792
        setStatus_description((String)value);
1793
      }
1794
      break;
1795
 
5336 rajveer 1796
    case OTHER_INFO:
1797
      if (value == null) {
1798
        unsetOtherInfo();
1799
      } else {
1800
        setOtherInfo((Map<String,String>)value);
1801
      }
1802
      break;
1803
 
607 chandransh 1804
    case BEST_DEAL_TEXT:
1805
      if (value == null) {
1806
        unsetBestDealText();
1807
      } else {
1808
        setBestDealText((String)value);
1809
      }
1810
      break;
1811
 
1812
    case BEST_DEAL_VALUE:
1813
      if (value == null) {
1814
        unsetBestDealValue();
1815
      } else {
1816
        setBestDealValue((Double)value);
1817
      }
1818
      break;
1819
 
1910 varun.gupt 1820
    case DEFAULT_FOR_ENTITY:
1821
      if (value == null) {
1822
        unsetDefaultForEntity();
1823
      } else {
1824
        setDefaultForEntity((Boolean)value);
1825
      }
1826
      break;
1827
 
607 chandransh 1828
    case UPDATED_ON:
1829
      if (value == null) {
1830
        unsetUpdatedOn();
1831
      } else {
1832
        setUpdatedOn((Long)value);
1833
      }
1834
      break;
1835
 
2064 ankur.sing 1836
    case BEST_SELLING_RANK:
1837
      if (value == null) {
1838
        unsetBestSellingRank();
1839
      } else {
1840
        setBestSellingRank((Long)value);
1841
      }
1842
      break;
1843
 
2250 ankur.sing 1844
    case RISKY:
1845
      if (value == null) {
1846
        unsetRisky();
1847
      } else {
1848
        setRisky((Boolean)value);
1849
      }
1850
      break;
1851
 
3355 chandransh 1852
    case EXPECTED_DELAY:
1853
      if (value == null) {
1854
        unsetExpectedDelay();
1855
      } else {
1856
        setExpectedDelay((Integer)value);
1857
      }
1858
      break;
1859
 
4406 anupam.sin 1860
    case IS_WAREHOUSE_PREFERENCE_STICKY:
1861
      if (value == null) {
1862
        unsetIsWarehousePreferenceSticky();
1863
      } else {
1864
        setIsWarehousePreferenceSticky((Boolean)value);
1865
      }
1866
      break;
1867
 
4295 varun.gupt 1868
    case WARRANTY_PERIOD:
1869
      if (value == null) {
1870
        unsetWarrantyPeriod();
1871
      } else {
1872
        setWarrantyPeriod((Integer)value);
1873
      }
1874
      break;
1875
 
4506 phani.kuma 1876
    case PREFERRED_VENDOR:
1877
      if (value == null) {
1878
        unsetPreferredVendor();
1879
      } else {
1880
        setPreferredVendor((Long)value);
1881
      }
1882
      break;
1883
 
5110 mandeep.dh 1884
    case TYPE:
1885
      if (value == null) {
1886
        unsetType();
1887
      } else {
1888
        setType((ItemType)value);
1889
      }
1890
      break;
1891
 
5217 amit.gupta 1892
    case COMING_SOON_START_DATE:
1893
      if (value == null) {
1894
        unsetComingSoonStartDate();
1895
      } else {
1896
        setComingSoonStartDate((Long)value);
1897
      }
1898
      break;
1899
 
1900
    case EXPECTED_ARRIVAL_DATE:
1901
      if (value == null) {
1902
        unsetExpectedArrivalDate();
1903
      } else {
1904
        setExpectedArrivalDate((Long)value);
1905
      }
1906
      break;
1907
 
5385 phani.kuma 1908
    case HAS_ITEM_NO:
1909
      if (value == null) {
1910
        unsetHasItemNo();
1911
      } else {
1912
        setHasItemNo((Boolean)value);
1913
      }
1914
      break;
1915
 
7256 rajveer 1916
    case ACTIVE_ON_STORE:
5460 phani.kuma 1917
      if (value == null) {
7256 rajveer 1918
        unsetActiveOnStore();
5460 phani.kuma 1919
      } else {
7256 rajveer 1920
        setActiveOnStore((Boolean)value);
5460 phani.kuma 1921
      }
1922
      break;
1923
 
6241 amit.gupta 1924
    case SHOW_SELLING_PRICE:
1925
      if (value == null) {
1926
        unsetShowSellingPrice();
1927
      } else {
1928
        setShowSellingPrice((Boolean)value);
1929
      }
1930
      break;
1931
 
6777 vikram.rag 1932
    case BEST_DEALS_DETAILS_TEXT:
1933
      if (value == null) {
1934
        unsetBestDealsDetailsText();
1935
      } else {
1936
        setBestDealsDetailsText((String)value);
1937
      }
1938
      break;
1939
 
1940
    case BEST_DEALS_DETAILS_LINK:
1941
      if (value == null) {
1942
        unsetBestDealsDetailsLink();
1943
      } else {
1944
        setBestDealsDetailsLink((String)value);
1945
      }
1946
      break;
1947
 
6805 anupam.sin 1948
    case PREFERRED_INSURER:
1949
      if (value == null) {
1950
        unsetPreferredInsurer();
1951
      } else {
1952
        setPreferredInsurer((Long)value);
1953
      }
1954
      break;
1955
 
7291 vikram.rag 1956
    case ASIN:
1957
      if (value == null) {
1958
        unsetAsin();
1959
      } else {
1960
        setAsin((String)value);
1961
      }
1962
      break;
1963
 
1964
    case DEFAULT_INVENTORY:
1965
      if (value == null) {
1966
        unsetDefaultInventory();
1967
      } else {
1968
        setDefaultInventory((Long)value);
1969
      }
1970
      break;
1971
 
1972
    case HOLD_INVENTORY:
1973
      if (value == null) {
1974
        unsetHoldInventory();
1975
      } else {
1976
        setHoldInventory((Long)value);
1977
      }
1978
      break;
1979
 
100 ashish 1980
    }
1981
  }
1982
 
1983
  public Object getFieldValue(_Fields field) {
1984
    switch (field) {
1985
    case ID:
3430 rajveer 1986
      return Long.valueOf(getId());
100 ashish 1987
 
957 chandransh 1988
    case PRODUCT_GROUP:
1989
      return getProductGroup();
483 rajveer 1990
 
957 chandransh 1991
    case BRAND:
1992
      return getBrand();
1993
 
483 rajveer 1994
    case MODEL_NUMBER:
1995
      return getModelNumber();
1996
 
1997
    case MODEL_NAME:
1998
      return getModelName();
1999
 
1329 chandransh 2000
    case COLOR:
2001
      return getColor();
2002
 
483 rajveer 2003
    case CATEGORY:
3430 rajveer 2004
      return Long.valueOf(getCategory());
483 rajveer 2005
 
2006
    case COMMENTS:
2007
      return getComments();
2008
 
123 ashish 2009
    case CATALOG_ITEM_ID:
3430 rajveer 2010
      return Long.valueOf(getCatalogItemId());
100 ashish 2011
 
483 rajveer 2012
    case FEATURE_ID:
3430 rajveer 2013
      return Long.valueOf(getFeatureId());
483 rajveer 2014
 
2015
    case FEATURE_DESCRIPTION:
2016
      return getFeatureDescription();
2017
 
2018
    case MRP:
3430 rajveer 2019
      return Double.valueOf(getMrp());
483 rajveer 2020
 
2021
    case SELLING_PRICE:
3430 rajveer 2022
      return Double.valueOf(getSellingPrice());
483 rajveer 2023
 
2024
    case WEIGHT:
3430 rajveer 2025
      return Double.valueOf(getWeight());
483 rajveer 2026
 
103 ashish 2027
    case ADDED_ON:
3430 rajveer 2028
      return Long.valueOf(getAddedOn());
103 ashish 2029
 
2030
    case START_DATE:
3430 rajveer 2031
      return Long.valueOf(getStartDate());
103 ashish 2032
 
483 rajveer 2033
    case RETIRE_DATE:
3430 rajveer 2034
      return Long.valueOf(getRetireDate());
483 rajveer 2035
 
103 ashish 2036
    case ITEM_STATUS:
2037
      return getItemStatus();
2038
 
2034 rajveer 2039
    case STATUS_DESCRIPTION:
2040
      return getStatus_description();
2041
 
5336 rajveer 2042
    case OTHER_INFO:
2043
      return getOtherInfo();
2044
 
607 chandransh 2045
    case BEST_DEAL_TEXT:
2046
      return getBestDealText();
2047
 
2048
    case BEST_DEAL_VALUE:
3430 rajveer 2049
      return Double.valueOf(getBestDealValue());
607 chandransh 2050
 
1910 varun.gupt 2051
    case DEFAULT_FOR_ENTITY:
3430 rajveer 2052
      return Boolean.valueOf(isDefaultForEntity());
1910 varun.gupt 2053
 
607 chandransh 2054
    case UPDATED_ON:
3430 rajveer 2055
      return Long.valueOf(getUpdatedOn());
607 chandransh 2056
 
2064 ankur.sing 2057
    case BEST_SELLING_RANK:
3430 rajveer 2058
      return Long.valueOf(getBestSellingRank());
2064 ankur.sing 2059
 
2250 ankur.sing 2060
    case RISKY:
3430 rajveer 2061
      return Boolean.valueOf(isRisky());
2250 ankur.sing 2062
 
3355 chandransh 2063
    case EXPECTED_DELAY:
3430 rajveer 2064
      return Integer.valueOf(getExpectedDelay());
3355 chandransh 2065
 
4406 anupam.sin 2066
    case IS_WAREHOUSE_PREFERENCE_STICKY:
2067
      return Boolean.valueOf(isIsWarehousePreferenceSticky());
2068
 
4295 varun.gupt 2069
    case WARRANTY_PERIOD:
2070
      return Integer.valueOf(getWarrantyPeriod());
2071
 
4506 phani.kuma 2072
    case PREFERRED_VENDOR:
2073
      return Long.valueOf(getPreferredVendor());
2074
 
5110 mandeep.dh 2075
    case TYPE:
2076
      return getType();
2077
 
5217 amit.gupta 2078
    case COMING_SOON_START_DATE:
2079
      return Long.valueOf(getComingSoonStartDate());
2080
 
2081
    case EXPECTED_ARRIVAL_DATE:
2082
      return Long.valueOf(getExpectedArrivalDate());
2083
 
5385 phani.kuma 2084
    case HAS_ITEM_NO:
2085
      return Boolean.valueOf(isHasItemNo());
2086
 
7256 rajveer 2087
    case ACTIVE_ON_STORE:
2088
      return Boolean.valueOf(isActiveOnStore());
5460 phani.kuma 2089
 
6241 amit.gupta 2090
    case SHOW_SELLING_PRICE:
2091
      return Boolean.valueOf(isShowSellingPrice());
2092
 
6777 vikram.rag 2093
    case BEST_DEALS_DETAILS_TEXT:
2094
      return getBestDealsDetailsText();
2095
 
2096
    case BEST_DEALS_DETAILS_LINK:
2097
      return getBestDealsDetailsLink();
2098
 
6805 anupam.sin 2099
    case PREFERRED_INSURER:
2100
      return Long.valueOf(getPreferredInsurer());
2101
 
7291 vikram.rag 2102
    case ASIN:
2103
      return getAsin();
2104
 
2105
    case DEFAULT_INVENTORY:
2106
      return Long.valueOf(getDefaultInventory());
2107
 
2108
    case HOLD_INVENTORY:
2109
      return Long.valueOf(getHoldInventory());
2110
 
100 ashish 2111
    }
2112
    throw new IllegalStateException();
2113
  }
2114
 
3430 rajveer 2115
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2116
  public boolean isSet(_Fields field) {
2117
    if (field == null) {
2118
      throw new IllegalArgumentException();
2119
    }
100 ashish 2120
 
2121
    switch (field) {
2122
    case ID:
2123
      return isSetId();
957 chandransh 2124
    case PRODUCT_GROUP:
2125
      return isSetProductGroup();
2126
    case BRAND:
2127
      return isSetBrand();
483 rajveer 2128
    case MODEL_NUMBER:
2129
      return isSetModelNumber();
2130
    case MODEL_NAME:
2131
      return isSetModelName();
1329 chandransh 2132
    case COLOR:
2133
      return isSetColor();
483 rajveer 2134
    case CATEGORY:
2135
      return isSetCategory();
2136
    case COMMENTS:
2137
      return isSetComments();
123 ashish 2138
    case CATALOG_ITEM_ID:
2139
      return isSetCatalogItemId();
483 rajveer 2140
    case FEATURE_ID:
2141
      return isSetFeatureId();
2142
    case FEATURE_DESCRIPTION:
2143
      return isSetFeatureDescription();
2144
    case MRP:
2145
      return isSetMrp();
2146
    case SELLING_PRICE:
2147
      return isSetSellingPrice();
2148
    case WEIGHT:
2149
      return isSetWeight();
103 ashish 2150
    case ADDED_ON:
2151
      return isSetAddedOn();
2152
    case START_DATE:
2153
      return isSetStartDate();
483 rajveer 2154
    case RETIRE_DATE:
2155
      return isSetRetireDate();
103 ashish 2156
    case ITEM_STATUS:
2157
      return isSetItemStatus();
2034 rajveer 2158
    case STATUS_DESCRIPTION:
2159
      return isSetStatus_description();
5336 rajveer 2160
    case OTHER_INFO:
2161
      return isSetOtherInfo();
607 chandransh 2162
    case BEST_DEAL_TEXT:
2163
      return isSetBestDealText();
2164
    case BEST_DEAL_VALUE:
2165
      return isSetBestDealValue();
1910 varun.gupt 2166
    case DEFAULT_FOR_ENTITY:
2167
      return isSetDefaultForEntity();
607 chandransh 2168
    case UPDATED_ON:
2169
      return isSetUpdatedOn();
2064 ankur.sing 2170
    case BEST_SELLING_RANK:
2171
      return isSetBestSellingRank();
2250 ankur.sing 2172
    case RISKY:
2173
      return isSetRisky();
3355 chandransh 2174
    case EXPECTED_DELAY:
2175
      return isSetExpectedDelay();
4406 anupam.sin 2176
    case IS_WAREHOUSE_PREFERENCE_STICKY:
2177
      return isSetIsWarehousePreferenceSticky();
4295 varun.gupt 2178
    case WARRANTY_PERIOD:
2179
      return isSetWarrantyPeriod();
4506 phani.kuma 2180
    case PREFERRED_VENDOR:
2181
      return isSetPreferredVendor();
5110 mandeep.dh 2182
    case TYPE:
2183
      return isSetType();
5217 amit.gupta 2184
    case COMING_SOON_START_DATE:
2185
      return isSetComingSoonStartDate();
2186
    case EXPECTED_ARRIVAL_DATE:
2187
      return isSetExpectedArrivalDate();
5385 phani.kuma 2188
    case HAS_ITEM_NO:
2189
      return isSetHasItemNo();
7256 rajveer 2190
    case ACTIVE_ON_STORE:
2191
      return isSetActiveOnStore();
6241 amit.gupta 2192
    case SHOW_SELLING_PRICE:
2193
      return isSetShowSellingPrice();
6777 vikram.rag 2194
    case BEST_DEALS_DETAILS_TEXT:
2195
      return isSetBestDealsDetailsText();
2196
    case BEST_DEALS_DETAILS_LINK:
2197
      return isSetBestDealsDetailsLink();
6805 anupam.sin 2198
    case PREFERRED_INSURER:
2199
      return isSetPreferredInsurer();
7291 vikram.rag 2200
    case ASIN:
2201
      return isSetAsin();
2202
    case DEFAULT_INVENTORY:
2203
      return isSetDefaultInventory();
2204
    case HOLD_INVENTORY:
2205
      return isSetHoldInventory();
100 ashish 2206
    }
2207
    throw new IllegalStateException();
2208
  }
2209
 
2210
  @Override
2211
  public boolean equals(Object that) {
2212
    if (that == null)
2213
      return false;
2214
    if (that instanceof Item)
2215
      return this.equals((Item)that);
2216
    return false;
2217
  }
2218
 
2219
  public boolean equals(Item that) {
2220
    if (that == null)
2221
      return false;
2222
 
2223
    boolean this_present_id = true;
2224
    boolean that_present_id = true;
2225
    if (this_present_id || that_present_id) {
2226
      if (!(this_present_id && that_present_id))
2227
        return false;
2228
      if (this.id != that.id)
2229
        return false;
2230
    }
2231
 
957 chandransh 2232
    boolean this_present_productGroup = true && this.isSetProductGroup();
2233
    boolean that_present_productGroup = true && that.isSetProductGroup();
2234
    if (this_present_productGroup || that_present_productGroup) {
2235
      if (!(this_present_productGroup && that_present_productGroup))
483 rajveer 2236
        return false;
957 chandransh 2237
      if (!this.productGroup.equals(that.productGroup))
483 rajveer 2238
        return false;
2239
    }
2240
 
957 chandransh 2241
    boolean this_present_brand = true && this.isSetBrand();
2242
    boolean that_present_brand = true && that.isSetBrand();
2243
    if (this_present_brand || that_present_brand) {
2244
      if (!(this_present_brand && that_present_brand))
2245
        return false;
2246
      if (!this.brand.equals(that.brand))
2247
        return false;
2248
    }
2249
 
483 rajveer 2250
    boolean this_present_modelNumber = true && this.isSetModelNumber();
2251
    boolean that_present_modelNumber = true && that.isSetModelNumber();
2252
    if (this_present_modelNumber || that_present_modelNumber) {
2253
      if (!(this_present_modelNumber && that_present_modelNumber))
2254
        return false;
2255
      if (!this.modelNumber.equals(that.modelNumber))
2256
        return false;
2257
    }
2258
 
2259
    boolean this_present_modelName = true && this.isSetModelName();
2260
    boolean that_present_modelName = true && that.isSetModelName();
2261
    if (this_present_modelName || that_present_modelName) {
2262
      if (!(this_present_modelName && that_present_modelName))
2263
        return false;
2264
      if (!this.modelName.equals(that.modelName))
2265
        return false;
2266
    }
2267
 
1329 chandransh 2268
    boolean this_present_color = true && this.isSetColor();
2269
    boolean that_present_color = true && that.isSetColor();
2270
    if (this_present_color || that_present_color) {
2271
      if (!(this_present_color && that_present_color))
2272
        return false;
2273
      if (!this.color.equals(that.color))
2274
        return false;
2275
    }
2276
 
622 chandransh 2277
    boolean this_present_category = true;
2278
    boolean that_present_category = true;
483 rajveer 2279
    if (this_present_category || that_present_category) {
2280
      if (!(this_present_category && that_present_category))
2281
        return false;
622 chandransh 2282
      if (this.category != that.category)
483 rajveer 2283
        return false;
2284
    }
2285
 
2286
    boolean this_present_comments = true && this.isSetComments();
2287
    boolean that_present_comments = true && that.isSetComments();
2288
    if (this_present_comments || that_present_comments) {
2289
      if (!(this_present_comments && that_present_comments))
2290
        return false;
2291
      if (!this.comments.equals(that.comments))
2292
        return false;
2293
    }
2294
 
123 ashish 2295
    boolean this_present_catalogItemId = true;
2296
    boolean that_present_catalogItemId = true;
2297
    if (this_present_catalogItemId || that_present_catalogItemId) {
2298
      if (!(this_present_catalogItemId && that_present_catalogItemId))
100 ashish 2299
        return false;
123 ashish 2300
      if (this.catalogItemId != that.catalogItemId)
100 ashish 2301
        return false;
2302
    }
2303
 
483 rajveer 2304
    boolean this_present_featureId = true;
2305
    boolean that_present_featureId = true;
2306
    if (this_present_featureId || that_present_featureId) {
2307
      if (!(this_present_featureId && that_present_featureId))
2308
        return false;
2309
      if (this.featureId != that.featureId)
2310
        return false;
2311
    }
2312
 
2313
    boolean this_present_featureDescription = true && this.isSetFeatureDescription();
2314
    boolean that_present_featureDescription = true && that.isSetFeatureDescription();
2315
    if (this_present_featureDescription || that_present_featureDescription) {
2316
      if (!(this_present_featureDescription && that_present_featureDescription))
2317
        return false;
2318
      if (!this.featureDescription.equals(that.featureDescription))
2319
        return false;
2320
    }
2321
 
2128 ankur.sing 2322
    boolean this_present_mrp = true && this.isSetMrp();
2323
    boolean that_present_mrp = true && that.isSetMrp();
483 rajveer 2324
    if (this_present_mrp || that_present_mrp) {
2325
      if (!(this_present_mrp && that_present_mrp))
2326
        return false;
2327
      if (this.mrp != that.mrp)
2328
        return false;
2329
    }
2330
 
2128 ankur.sing 2331
    boolean this_present_sellingPrice = true && this.isSetSellingPrice();
2332
    boolean that_present_sellingPrice = true && that.isSetSellingPrice();
483 rajveer 2333
    if (this_present_sellingPrice || that_present_sellingPrice) {
2334
      if (!(this_present_sellingPrice && that_present_sellingPrice))
2335
        return false;
2336
      if (this.sellingPrice != that.sellingPrice)
2337
        return false;
2338
    }
2339
 
2128 ankur.sing 2340
    boolean this_present_weight = true && this.isSetWeight();
2341
    boolean that_present_weight = true && that.isSetWeight();
483 rajveer 2342
    if (this_present_weight || that_present_weight) {
2343
      if (!(this_present_weight && that_present_weight))
2344
        return false;
2345
      if (this.weight != that.weight)
2346
        return false;
2347
    }
2348
 
103 ashish 2349
    boolean this_present_addedOn = true;
2350
    boolean that_present_addedOn = true;
2351
    if (this_present_addedOn || that_present_addedOn) {
2352
      if (!(this_present_addedOn && that_present_addedOn))
2353
        return false;
2354
      if (this.addedOn != that.addedOn)
2355
        return false;
2356
    }
2357
 
2491 ankur.sing 2358
    boolean this_present_startDate = true && this.isSetStartDate();
2359
    boolean that_present_startDate = true && that.isSetStartDate();
103 ashish 2360
    if (this_present_startDate || that_present_startDate) {
2361
      if (!(this_present_startDate && that_present_startDate))
2362
        return false;
2363
      if (this.startDate != that.startDate)
2364
        return false;
2365
    }
2366
 
2491 ankur.sing 2367
    boolean this_present_retireDate = true && this.isSetRetireDate();
2368
    boolean that_present_retireDate = true && that.isSetRetireDate();
483 rajveer 2369
    if (this_present_retireDate || that_present_retireDate) {
2370
      if (!(this_present_retireDate && that_present_retireDate))
2371
        return false;
2372
      if (this.retireDate != that.retireDate)
2373
        return false;
2374
    }
2375
 
103 ashish 2376
    boolean this_present_itemStatus = true && this.isSetItemStatus();
2377
    boolean that_present_itemStatus = true && that.isSetItemStatus();
2378
    if (this_present_itemStatus || that_present_itemStatus) {
2379
      if (!(this_present_itemStatus && that_present_itemStatus))
2380
        return false;
2381
      if (!this.itemStatus.equals(that.itemStatus))
2382
        return false;
2383
    }
2384
 
2034 rajveer 2385
    boolean this_present_status_description = true && this.isSetStatus_description();
2386
    boolean that_present_status_description = true && that.isSetStatus_description();
2387
    if (this_present_status_description || that_present_status_description) {
2388
      if (!(this_present_status_description && that_present_status_description))
2389
        return false;
2390
      if (!this.status_description.equals(that.status_description))
2391
        return false;
2392
    }
2393
 
5336 rajveer 2394
    boolean this_present_otherInfo = true && this.isSetOtherInfo();
2395
    boolean that_present_otherInfo = true && that.isSetOtherInfo();
2396
    if (this_present_otherInfo || that_present_otherInfo) {
2397
      if (!(this_present_otherInfo && that_present_otherInfo))
2398
        return false;
2399
      if (!this.otherInfo.equals(that.otherInfo))
2400
        return false;
2401
    }
2402
 
607 chandransh 2403
    boolean this_present_bestDealText = true && this.isSetBestDealText();
2404
    boolean that_present_bestDealText = true && that.isSetBestDealText();
2405
    if (this_present_bestDealText || that_present_bestDealText) {
2406
      if (!(this_present_bestDealText && that_present_bestDealText))
2407
        return false;
2408
      if (!this.bestDealText.equals(that.bestDealText))
2409
        return false;
2410
    }
2411
 
2128 ankur.sing 2412
    boolean this_present_bestDealValue = true && this.isSetBestDealValue();
2413
    boolean that_present_bestDealValue = true && that.isSetBestDealValue();
607 chandransh 2414
    if (this_present_bestDealValue || that_present_bestDealValue) {
2415
      if (!(this_present_bestDealValue && that_present_bestDealValue))
2416
        return false;
2417
      if (this.bestDealValue != that.bestDealValue)
2418
        return false;
2419
    }
2420
 
1910 varun.gupt 2421
    boolean this_present_defaultForEntity = true;
2422
    boolean that_present_defaultForEntity = true;
2423
    if (this_present_defaultForEntity || that_present_defaultForEntity) {
2424
      if (!(this_present_defaultForEntity && that_present_defaultForEntity))
2425
        return false;
2426
      if (this.defaultForEntity != that.defaultForEntity)
2427
        return false;
2428
    }
2429
 
607 chandransh 2430
    boolean this_present_updatedOn = true;
2431
    boolean that_present_updatedOn = true;
2432
    if (this_present_updatedOn || that_present_updatedOn) {
2433
      if (!(this_present_updatedOn && that_present_updatedOn))
2434
        return false;
2435
      if (this.updatedOn != that.updatedOn)
2436
        return false;
2437
    }
2438
 
2128 ankur.sing 2439
    boolean this_present_bestSellingRank = true && this.isSetBestSellingRank();
2440
    boolean that_present_bestSellingRank = true && that.isSetBestSellingRank();
2064 ankur.sing 2441
    if (this_present_bestSellingRank || that_present_bestSellingRank) {
2442
      if (!(this_present_bestSellingRank && that_present_bestSellingRank))
2443
        return false;
2444
      if (this.bestSellingRank != that.bestSellingRank)
2445
        return false;
2446
    }
2447
 
2250 ankur.sing 2448
    boolean this_present_risky = true;
2449
    boolean that_present_risky = true;
2450
    if (this_present_risky || that_present_risky) {
2451
      if (!(this_present_risky && that_present_risky))
2452
        return false;
2453
      if (this.risky != that.risky)
2454
        return false;
2455
    }
2456
 
3355 chandransh 2457
    boolean this_present_expectedDelay = true && this.isSetExpectedDelay();
2458
    boolean that_present_expectedDelay = true && that.isSetExpectedDelay();
2459
    if (this_present_expectedDelay || that_present_expectedDelay) {
2460
      if (!(this_present_expectedDelay && that_present_expectedDelay))
2461
        return false;
2462
      if (this.expectedDelay != that.expectedDelay)
2463
        return false;
2464
    }
2465
 
4406 anupam.sin 2466
    boolean this_present_isWarehousePreferenceSticky = true && this.isSetIsWarehousePreferenceSticky();
2467
    boolean that_present_isWarehousePreferenceSticky = true && that.isSetIsWarehousePreferenceSticky();
2468
    if (this_present_isWarehousePreferenceSticky || that_present_isWarehousePreferenceSticky) {
2469
      if (!(this_present_isWarehousePreferenceSticky && that_present_isWarehousePreferenceSticky))
2470
        return false;
2471
      if (this.isWarehousePreferenceSticky != that.isWarehousePreferenceSticky)
2472
        return false;
2473
    }
2474
 
4295 varun.gupt 2475
    boolean this_present_warrantyPeriod = true;
2476
    boolean that_present_warrantyPeriod = true;
2477
    if (this_present_warrantyPeriod || that_present_warrantyPeriod) {
2478
      if (!(this_present_warrantyPeriod && that_present_warrantyPeriod))
2479
        return false;
2480
      if (this.warrantyPeriod != that.warrantyPeriod)
2481
        return false;
2482
    }
2483
 
4506 phani.kuma 2484
    boolean this_present_preferredVendor = true && this.isSetPreferredVendor();
2485
    boolean that_present_preferredVendor = true && that.isSetPreferredVendor();
2486
    if (this_present_preferredVendor || that_present_preferredVendor) {
2487
      if (!(this_present_preferredVendor && that_present_preferredVendor))
2488
        return false;
2489
      if (this.preferredVendor != that.preferredVendor)
2490
        return false;
2491
    }
2492
 
5110 mandeep.dh 2493
    boolean this_present_type = true && this.isSetType();
2494
    boolean that_present_type = true && that.isSetType();
2495
    if (this_present_type || that_present_type) {
2496
      if (!(this_present_type && that_present_type))
2497
        return false;
2498
      if (!this.type.equals(that.type))
2499
        return false;
2500
    }
2501
 
5217 amit.gupta 2502
    boolean this_present_comingSoonStartDate = true && this.isSetComingSoonStartDate();
2503
    boolean that_present_comingSoonStartDate = true && that.isSetComingSoonStartDate();
2504
    if (this_present_comingSoonStartDate || that_present_comingSoonStartDate) {
2505
      if (!(this_present_comingSoonStartDate && that_present_comingSoonStartDate))
2506
        return false;
2507
      if (this.comingSoonStartDate != that.comingSoonStartDate)
2508
        return false;
2509
    }
2510
 
2511
    boolean this_present_expectedArrivalDate = true && this.isSetExpectedArrivalDate();
2512
    boolean that_present_expectedArrivalDate = true && that.isSetExpectedArrivalDate();
2513
    if (this_present_expectedArrivalDate || that_present_expectedArrivalDate) {
2514
      if (!(this_present_expectedArrivalDate && that_present_expectedArrivalDate))
2515
        return false;
2516
      if (this.expectedArrivalDate != that.expectedArrivalDate)
2517
        return false;
2518
    }
2519
 
5385 phani.kuma 2520
    boolean this_present_hasItemNo = true;
2521
    boolean that_present_hasItemNo = true;
2522
    if (this_present_hasItemNo || that_present_hasItemNo) {
2523
      if (!(this_present_hasItemNo && that_present_hasItemNo))
2524
        return false;
2525
      if (this.hasItemNo != that.hasItemNo)
2526
        return false;
2527
    }
2528
 
7256 rajveer 2529
    boolean this_present_activeOnStore = true;
2530
    boolean that_present_activeOnStore = true;
2531
    if (this_present_activeOnStore || that_present_activeOnStore) {
2532
      if (!(this_present_activeOnStore && that_present_activeOnStore))
5460 phani.kuma 2533
        return false;
7256 rajveer 2534
      if (this.activeOnStore != that.activeOnStore)
5460 phani.kuma 2535
        return false;
2536
    }
2537
 
6241 amit.gupta 2538
    boolean this_present_showSellingPrice = true;
2539
    boolean that_present_showSellingPrice = true;
2540
    if (this_present_showSellingPrice || that_present_showSellingPrice) {
2541
      if (!(this_present_showSellingPrice && that_present_showSellingPrice))
2542
        return false;
2543
      if (this.showSellingPrice != that.showSellingPrice)
2544
        return false;
2545
    }
2546
 
6777 vikram.rag 2547
    boolean this_present_bestDealsDetailsText = true && this.isSetBestDealsDetailsText();
2548
    boolean that_present_bestDealsDetailsText = true && that.isSetBestDealsDetailsText();
2549
    if (this_present_bestDealsDetailsText || that_present_bestDealsDetailsText) {
2550
      if (!(this_present_bestDealsDetailsText && that_present_bestDealsDetailsText))
2551
        return false;
2552
      if (!this.bestDealsDetailsText.equals(that.bestDealsDetailsText))
2553
        return false;
2554
    }
2555
 
2556
    boolean this_present_bestDealsDetailsLink = true && this.isSetBestDealsDetailsLink();
2557
    boolean that_present_bestDealsDetailsLink = true && that.isSetBestDealsDetailsLink();
2558
    if (this_present_bestDealsDetailsLink || that_present_bestDealsDetailsLink) {
2559
      if (!(this_present_bestDealsDetailsLink && that_present_bestDealsDetailsLink))
2560
        return false;
2561
      if (!this.bestDealsDetailsLink.equals(that.bestDealsDetailsLink))
2562
        return false;
2563
    }
2564
 
6805 anupam.sin 2565
    boolean this_present_preferredInsurer = true;
2566
    boolean that_present_preferredInsurer = true;
2567
    if (this_present_preferredInsurer || that_present_preferredInsurer) {
2568
      if (!(this_present_preferredInsurer && that_present_preferredInsurer))
2569
        return false;
2570
      if (this.preferredInsurer != that.preferredInsurer)
2571
        return false;
2572
    }
2573
 
7291 vikram.rag 2574
    boolean this_present_asin = true && this.isSetAsin();
2575
    boolean that_present_asin = true && that.isSetAsin();
2576
    if (this_present_asin || that_present_asin) {
2577
      if (!(this_present_asin && that_present_asin))
2578
        return false;
2579
      if (!this.asin.equals(that.asin))
2580
        return false;
2581
    }
2582
 
2583
    boolean this_present_defaultInventory = true;
2584
    boolean that_present_defaultInventory = true;
2585
    if (this_present_defaultInventory || that_present_defaultInventory) {
2586
      if (!(this_present_defaultInventory && that_present_defaultInventory))
2587
        return false;
2588
      if (this.defaultInventory != that.defaultInventory)
2589
        return false;
2590
    }
2591
 
2592
    boolean this_present_holdInventory = true;
2593
    boolean that_present_holdInventory = true;
2594
    if (this_present_holdInventory || that_present_holdInventory) {
2595
      if (!(this_present_holdInventory && that_present_holdInventory))
2596
        return false;
2597
      if (this.holdInventory != that.holdInventory)
2598
        return false;
2599
    }
2600
 
100 ashish 2601
    return true;
2602
  }
2603
 
2604
  @Override
2605
  public int hashCode() {
2606
    return 0;
2607
  }
2608
 
3430 rajveer 2609
  public int compareTo(Item other) {
2610
    if (!getClass().equals(other.getClass())) {
2611
      return getClass().getName().compareTo(other.getClass().getName());
2612
    }
2613
 
2614
    int lastComparison = 0;
2615
    Item typedOther = (Item)other;
2616
 
2617
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
2618
    if (lastComparison != 0) {
2619
      return lastComparison;
2620
    }
2621
    if (isSetId()) {
2622
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
2623
      if (lastComparison != 0) {
2624
        return lastComparison;
2625
      }
2626
    }
2627
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
2628
    if (lastComparison != 0) {
2629
      return lastComparison;
2630
    }
2631
    if (isSetProductGroup()) {
2632
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
2633
      if (lastComparison != 0) {
2634
        return lastComparison;
2635
      }
2636
    }
2637
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
2638
    if (lastComparison != 0) {
2639
      return lastComparison;
2640
    }
2641
    if (isSetBrand()) {
2642
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
2643
      if (lastComparison != 0) {
2644
        return lastComparison;
2645
      }
2646
    }
2647
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
2648
    if (lastComparison != 0) {
2649
      return lastComparison;
2650
    }
2651
    if (isSetModelNumber()) {
2652
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
2653
      if (lastComparison != 0) {
2654
        return lastComparison;
2655
      }
2656
    }
2657
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
2658
    if (lastComparison != 0) {
2659
      return lastComparison;
2660
    }
2661
    if (isSetModelName()) {
2662
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
2663
      if (lastComparison != 0) {
2664
        return lastComparison;
2665
      }
2666
    }
2667
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
2668
    if (lastComparison != 0) {
2669
      return lastComparison;
2670
    }
2671
    if (isSetColor()) {
2672
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
2673
      if (lastComparison != 0) {
2674
        return lastComparison;
2675
      }
2676
    }
2677
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
2678
    if (lastComparison != 0) {
2679
      return lastComparison;
2680
    }
2681
    if (isSetCategory()) {
2682
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
2683
      if (lastComparison != 0) {
2684
        return lastComparison;
2685
      }
2686
    }
2687
    lastComparison = Boolean.valueOf(isSetComments()).compareTo(typedOther.isSetComments());
2688
    if (lastComparison != 0) {
2689
      return lastComparison;
2690
    }
2691
    if (isSetComments()) {
2692
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, typedOther.comments);
2693
      if (lastComparison != 0) {
2694
        return lastComparison;
2695
      }
2696
    }
2697
    lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
2698
    if (lastComparison != 0) {
2699
      return lastComparison;
2700
    }
2701
    if (isSetCatalogItemId()) {
2702
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
2703
      if (lastComparison != 0) {
2704
        return lastComparison;
2705
      }
2706
    }
2707
    lastComparison = Boolean.valueOf(isSetFeatureId()).compareTo(typedOther.isSetFeatureId());
2708
    if (lastComparison != 0) {
2709
      return lastComparison;
2710
    }
2711
    if (isSetFeatureId()) {
2712
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.featureId, typedOther.featureId);
2713
      if (lastComparison != 0) {
2714
        return lastComparison;
2715
      }
2716
    }
2717
    lastComparison = Boolean.valueOf(isSetFeatureDescription()).compareTo(typedOther.isSetFeatureDescription());
2718
    if (lastComparison != 0) {
2719
      return lastComparison;
2720
    }
2721
    if (isSetFeatureDescription()) {
2722
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.featureDescription, typedOther.featureDescription);
2723
      if (lastComparison != 0) {
2724
        return lastComparison;
2725
      }
2726
    }
2727
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
2728
    if (lastComparison != 0) {
2729
      return lastComparison;
2730
    }
2731
    if (isSetMrp()) {
2732
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
2733
      if (lastComparison != 0) {
2734
        return lastComparison;
2735
      }
2736
    }
2737
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
2738
    if (lastComparison != 0) {
2739
      return lastComparison;
2740
    }
2741
    if (isSetSellingPrice()) {
2742
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
2743
      if (lastComparison != 0) {
2744
        return lastComparison;
2745
      }
2746
    }
2747
    lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
2748
    if (lastComparison != 0) {
2749
      return lastComparison;
2750
    }
2751
    if (isSetWeight()) {
2752
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
2753
      if (lastComparison != 0) {
2754
        return lastComparison;
2755
      }
2756
    }
2757
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
2758
    if (lastComparison != 0) {
2759
      return lastComparison;
2760
    }
2761
    if (isSetAddedOn()) {
2762
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
2763
      if (lastComparison != 0) {
2764
        return lastComparison;
2765
      }
2766
    }
2767
    lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
2768
    if (lastComparison != 0) {
2769
      return lastComparison;
2770
    }
2771
    if (isSetStartDate()) {
2772
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
2773
      if (lastComparison != 0) {
2774
        return lastComparison;
2775
      }
2776
    }
2777
    lastComparison = Boolean.valueOf(isSetRetireDate()).compareTo(typedOther.isSetRetireDate());
2778
    if (lastComparison != 0) {
2779
      return lastComparison;
2780
    }
2781
    if (isSetRetireDate()) {
2782
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retireDate, typedOther.retireDate);
2783
      if (lastComparison != 0) {
2784
        return lastComparison;
2785
      }
2786
    }
2787
    lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
2788
    if (lastComparison != 0) {
2789
      return lastComparison;
2790
    }
2791
    if (isSetItemStatus()) {
2792
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
2793
      if (lastComparison != 0) {
2794
        return lastComparison;
2795
      }
2796
    }
2797
    lastComparison = Boolean.valueOf(isSetStatus_description()).compareTo(typedOther.isSetStatus_description());
2798
    if (lastComparison != 0) {
2799
      return lastComparison;
2800
    }
2801
    if (isSetStatus_description()) {
2802
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status_description, typedOther.status_description);
2803
      if (lastComparison != 0) {
2804
        return lastComparison;
2805
      }
2806
    }
5336 rajveer 2807
    lastComparison = Boolean.valueOf(isSetOtherInfo()).compareTo(typedOther.isSetOtherInfo());
2808
    if (lastComparison != 0) {
2809
      return lastComparison;
2810
    }
2811
    if (isSetOtherInfo()) {
2812
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherInfo, typedOther.otherInfo);
2813
      if (lastComparison != 0) {
2814
        return lastComparison;
2815
      }
2816
    }
3430 rajveer 2817
    lastComparison = Boolean.valueOf(isSetBestDealText()).compareTo(typedOther.isSetBestDealText());
2818
    if (lastComparison != 0) {
2819
      return lastComparison;
2820
    }
2821
    if (isSetBestDealText()) {
2822
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealText, typedOther.bestDealText);
2823
      if (lastComparison != 0) {
2824
        return lastComparison;
2825
      }
2826
    }
2827
    lastComparison = Boolean.valueOf(isSetBestDealValue()).compareTo(typedOther.isSetBestDealValue());
2828
    if (lastComparison != 0) {
2829
      return lastComparison;
2830
    }
2831
    if (isSetBestDealValue()) {
2832
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealValue, typedOther.bestDealValue);
2833
      if (lastComparison != 0) {
2834
        return lastComparison;
2835
      }
2836
    }
2837
    lastComparison = Boolean.valueOf(isSetDefaultForEntity()).compareTo(typedOther.isSetDefaultForEntity());
2838
    if (lastComparison != 0) {
2839
      return lastComparison;
2840
    }
2841
    if (isSetDefaultForEntity()) {
2842
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultForEntity, typedOther.defaultForEntity);
2843
      if (lastComparison != 0) {
2844
        return lastComparison;
2845
      }
2846
    }
2847
    lastComparison = Boolean.valueOf(isSetUpdatedOn()).compareTo(typedOther.isSetUpdatedOn());
2848
    if (lastComparison != 0) {
2849
      return lastComparison;
2850
    }
2851
    if (isSetUpdatedOn()) {
2852
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedOn, typedOther.updatedOn);
2853
      if (lastComparison != 0) {
2854
        return lastComparison;
2855
      }
2856
    }
2857
    lastComparison = Boolean.valueOf(isSetBestSellingRank()).compareTo(typedOther.isSetBestSellingRank());
2858
    if (lastComparison != 0) {
2859
      return lastComparison;
2860
    }
2861
    if (isSetBestSellingRank()) {
2862
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestSellingRank, typedOther.bestSellingRank);
2863
      if (lastComparison != 0) {
2864
        return lastComparison;
2865
      }
2866
    }
2867
    lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
2868
    if (lastComparison != 0) {
2869
      return lastComparison;
2870
    }
2871
    if (isSetRisky()) {
2872
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
2873
      if (lastComparison != 0) {
2874
        return lastComparison;
2875
      }
2876
    }
2877
    lastComparison = Boolean.valueOf(isSetExpectedDelay()).compareTo(typedOther.isSetExpectedDelay());
2878
    if (lastComparison != 0) {
2879
      return lastComparison;
2880
    }
2881
    if (isSetExpectedDelay()) {
2882
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expectedDelay, typedOther.expectedDelay);
2883
      if (lastComparison != 0) {
2884
        return lastComparison;
2885
      }
2886
    }
4406 anupam.sin 2887
    lastComparison = Boolean.valueOf(isSetIsWarehousePreferenceSticky()).compareTo(typedOther.isSetIsWarehousePreferenceSticky());
2888
    if (lastComparison != 0) {
2889
      return lastComparison;
2890
    }
2891
    if (isSetIsWarehousePreferenceSticky()) {
2892
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWarehousePreferenceSticky, typedOther.isWarehousePreferenceSticky);
2893
      if (lastComparison != 0) {
2894
        return lastComparison;
2895
      }
2896
    }
4295 varun.gupt 2897
    lastComparison = Boolean.valueOf(isSetWarrantyPeriod()).compareTo(typedOther.isSetWarrantyPeriod());
2898
    if (lastComparison != 0) {
2899
      return lastComparison;
2900
    }
2901
    if (isSetWarrantyPeriod()) {
2902
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warrantyPeriod, typedOther.warrantyPeriod);
2903
      if (lastComparison != 0) {
2904
        return lastComparison;
2905
      }
2906
    }
4506 phani.kuma 2907
    lastComparison = Boolean.valueOf(isSetPreferredVendor()).compareTo(typedOther.isSetPreferredVendor());
2908
    if (lastComparison != 0) {
2909
      return lastComparison;
2910
    }
2911
    if (isSetPreferredVendor()) {
2912
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preferredVendor, typedOther.preferredVendor);
2913
      if (lastComparison != 0) {
2914
        return lastComparison;
2915
      }
2916
    }
5110 mandeep.dh 2917
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2918
    if (lastComparison != 0) {
2919
      return lastComparison;
2920
    }
2921
    if (isSetType()) {
2922
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
2923
      if (lastComparison != 0) {
2924
        return lastComparison;
2925
      }
2926
    }
5217 amit.gupta 2927
    lastComparison = Boolean.valueOf(isSetComingSoonStartDate()).compareTo(typedOther.isSetComingSoonStartDate());
2928
    if (lastComparison != 0) {
2929
      return lastComparison;
2930
    }
2931
    if (isSetComingSoonStartDate()) {
2932
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comingSoonStartDate, typedOther.comingSoonStartDate);
2933
      if (lastComparison != 0) {
2934
        return lastComparison;
2935
      }
2936
    }
2937
    lastComparison = Boolean.valueOf(isSetExpectedArrivalDate()).compareTo(typedOther.isSetExpectedArrivalDate());
2938
    if (lastComparison != 0) {
2939
      return lastComparison;
2940
    }
2941
    if (isSetExpectedArrivalDate()) {
2942
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expectedArrivalDate, typedOther.expectedArrivalDate);
2943
      if (lastComparison != 0) {
2944
        return lastComparison;
2945
      }
2946
    }
5385 phani.kuma 2947
    lastComparison = Boolean.valueOf(isSetHasItemNo()).compareTo(typedOther.isSetHasItemNo());
2948
    if (lastComparison != 0) {
2949
      return lastComparison;
2950
    }
2951
    if (isSetHasItemNo()) {
2952
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasItemNo, typedOther.hasItemNo);
2953
      if (lastComparison != 0) {
2954
        return lastComparison;
2955
      }
2956
    }
7256 rajveer 2957
    lastComparison = Boolean.valueOf(isSetActiveOnStore()).compareTo(typedOther.isSetActiveOnStore());
5460 phani.kuma 2958
    if (lastComparison != 0) {
2959
      return lastComparison;
2960
    }
7256 rajveer 2961
    if (isSetActiveOnStore()) {
2962
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeOnStore, typedOther.activeOnStore);
5460 phani.kuma 2963
      if (lastComparison != 0) {
2964
        return lastComparison;
2965
      }
2966
    }
6241 amit.gupta 2967
    lastComparison = Boolean.valueOf(isSetShowSellingPrice()).compareTo(typedOther.isSetShowSellingPrice());
2968
    if (lastComparison != 0) {
2969
      return lastComparison;
2970
    }
2971
    if (isSetShowSellingPrice()) {
2972
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.showSellingPrice, typedOther.showSellingPrice);
2973
      if (lastComparison != 0) {
2974
        return lastComparison;
2975
      }
2976
    }
6777 vikram.rag 2977
    lastComparison = Boolean.valueOf(isSetBestDealsDetailsText()).compareTo(typedOther.isSetBestDealsDetailsText());
2978
    if (lastComparison != 0) {
2979
      return lastComparison;
2980
    }
2981
    if (isSetBestDealsDetailsText()) {
2982
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealsDetailsText, typedOther.bestDealsDetailsText);
2983
      if (lastComparison != 0) {
2984
        return lastComparison;
2985
      }
2986
    }
2987
    lastComparison = Boolean.valueOf(isSetBestDealsDetailsLink()).compareTo(typedOther.isSetBestDealsDetailsLink());
2988
    if (lastComparison != 0) {
2989
      return lastComparison;
2990
    }
2991
    if (isSetBestDealsDetailsLink()) {
2992
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealsDetailsLink, typedOther.bestDealsDetailsLink);
2993
      if (lastComparison != 0) {
2994
        return lastComparison;
2995
      }
2996
    }
6805 anupam.sin 2997
    lastComparison = Boolean.valueOf(isSetPreferredInsurer()).compareTo(typedOther.isSetPreferredInsurer());
2998
    if (lastComparison != 0) {
2999
      return lastComparison;
3000
    }
3001
    if (isSetPreferredInsurer()) {
3002
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preferredInsurer, typedOther.preferredInsurer);
3003
      if (lastComparison != 0) {
3004
        return lastComparison;
3005
      }
3006
    }
7291 vikram.rag 3007
    lastComparison = Boolean.valueOf(isSetAsin()).compareTo(typedOther.isSetAsin());
3008
    if (lastComparison != 0) {
3009
      return lastComparison;
3010
    }
3011
    if (isSetAsin()) {
3012
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asin, typedOther.asin);
3013
      if (lastComparison != 0) {
3014
        return lastComparison;
3015
      }
3016
    }
3017
    lastComparison = Boolean.valueOf(isSetDefaultInventory()).compareTo(typedOther.isSetDefaultInventory());
3018
    if (lastComparison != 0) {
3019
      return lastComparison;
3020
    }
3021
    if (isSetDefaultInventory()) {
3022
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultInventory, typedOther.defaultInventory);
3023
      if (lastComparison != 0) {
3024
        return lastComparison;
3025
      }
3026
    }
3027
    lastComparison = Boolean.valueOf(isSetHoldInventory()).compareTo(typedOther.isSetHoldInventory());
3028
    if (lastComparison != 0) {
3029
      return lastComparison;
3030
    }
3031
    if (isSetHoldInventory()) {
3032
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdInventory, typedOther.holdInventory);
3033
      if (lastComparison != 0) {
3034
        return lastComparison;
3035
      }
3036
    }
3430 rajveer 3037
    return 0;
3038
  }
3039
 
3040
  public _Fields fieldForId(int fieldId) {
3041
    return _Fields.findByThriftId(fieldId);
3042
  }
3043
 
3044
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3045
    org.apache.thrift.protocol.TField field;
100 ashish 3046
    iprot.readStructBegin();
3047
    while (true)
3048
    {
3049
      field = iprot.readFieldBegin();
3430 rajveer 3050
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
100 ashish 3051
        break;
3052
      }
3430 rajveer 3053
      switch (field.id) {
3054
        case 1: // ID
3055
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3056
            this.id = iprot.readI64();
3057
            setIdIsSet(true);
3058
          } else { 
3059
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3060
          }
3061
          break;
3062
        case 2: // PRODUCT_GROUP
3063
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3064
            this.productGroup = iprot.readString();
3065
          } else { 
3066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3067
          }
3068
          break;
3069
        case 3: // BRAND
3070
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3071
            this.brand = iprot.readString();
3072
          } else { 
3073
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3074
          }
3075
          break;
3076
        case 4: // MODEL_NUMBER
3077
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3078
            this.modelNumber = iprot.readString();
3079
          } else { 
3080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3081
          }
3082
          break;
3083
        case 5: // MODEL_NAME
3084
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3085
            this.modelName = iprot.readString();
3086
          } else { 
3087
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3088
          }
3089
          break;
3090
        case 6: // COLOR
3091
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3092
            this.color = iprot.readString();
3093
          } else { 
3094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3095
          }
3096
          break;
3097
        case 7: // CATEGORY
3098
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3099
            this.category = iprot.readI64();
3100
            setCategoryIsSet(true);
3101
          } else { 
3102
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3103
          }
3104
          break;
3105
        case 8: // COMMENTS
3106
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3107
            this.comments = iprot.readString();
3108
          } else { 
3109
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3110
          }
3111
          break;
3112
        case 9: // CATALOG_ITEM_ID
3113
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3114
            this.catalogItemId = iprot.readI64();
3115
            setCatalogItemIdIsSet(true);
3116
          } else { 
3117
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3118
          }
3119
          break;
3120
        case 10: // FEATURE_ID
3121
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3122
            this.featureId = iprot.readI64();
3123
            setFeatureIdIsSet(true);
3124
          } else { 
3125
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3126
          }
3127
          break;
3128
        case 11: // FEATURE_DESCRIPTION
3129
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3130
            this.featureDescription = iprot.readString();
3131
          } else { 
3132
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3133
          }
3134
          break;
3135
        case 13: // MRP
3136
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3137
            this.mrp = iprot.readDouble();
3138
            setMrpIsSet(true);
3139
          } else { 
3140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3141
          }
3142
          break;
4762 phani.kuma 3143
        case 14: // SELLING_PRICE
3430 rajveer 3144
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3145
            this.sellingPrice = iprot.readDouble();
3146
            setSellingPriceIsSet(true);
3147
          } else { 
3148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3149
          }
3150
          break;
4762 phani.kuma 3151
        case 15: // WEIGHT
3430 rajveer 3152
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3153
            this.weight = iprot.readDouble();
3154
            setWeightIsSet(true);
3155
          } else { 
3156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3157
          }
3158
          break;
4762 phani.kuma 3159
        case 16: // ADDED_ON
3430 rajveer 3160
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3161
            this.addedOn = iprot.readI64();
3162
            setAddedOnIsSet(true);
3163
          } else { 
3164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3165
          }
3166
          break;
4762 phani.kuma 3167
        case 17: // START_DATE
3430 rajveer 3168
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3169
            this.startDate = iprot.readI64();
3170
            setStartDateIsSet(true);
3171
          } else { 
3172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3173
          }
3174
          break;
4762 phani.kuma 3175
        case 18: // RETIRE_DATE
3430 rajveer 3176
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3177
            this.retireDate = iprot.readI64();
3178
            setRetireDateIsSet(true);
3179
          } else { 
3180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3181
          }
3182
          break;
4762 phani.kuma 3183
        case 19: // ITEM_STATUS
3430 rajveer 3184
          if (field.type == org.apache.thrift.protocol.TType.I32) {
3185
            this.itemStatus = status.findByValue(iprot.readI32());
3186
          } else { 
3187
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3188
          }
3189
          break;
4762 phani.kuma 3190
        case 20: // STATUS_DESCRIPTION
3430 rajveer 3191
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3192
            this.status_description = iprot.readString();
3193
          } else { 
3194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3195
          }
3196
          break;
5336 rajveer 3197
        case 21: // OTHER_INFO
3198
          if (field.type == org.apache.thrift.protocol.TType.MAP) {
3199
            {
5945 mandeep.dh 3200
              org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
3201
              this.otherInfo = new HashMap<String,String>(2*_map0.size);
3202
              for (int _i1 = 0; _i1 < _map0.size; ++_i1)
5336 rajveer 3203
              {
5945 mandeep.dh 3204
                String _key2; // required
3205
                String _val3; // required
3206
                _key2 = iprot.readString();
3207
                _val3 = iprot.readString();
3208
                this.otherInfo.put(_key2, _val3);
5336 rajveer 3209
              }
3210
              iprot.readMapEnd();
3211
            }
3212
          } else { 
3213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3214
          }
3215
          break;
4762 phani.kuma 3216
        case 22: // BEST_DEAL_TEXT
3430 rajveer 3217
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3218
            this.bestDealText = iprot.readString();
3219
          } else { 
3220
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3221
          }
3222
          break;
4762 phani.kuma 3223
        case 23: // BEST_DEAL_VALUE
3430 rajveer 3224
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3225
            this.bestDealValue = iprot.readDouble();
3226
            setBestDealValueIsSet(true);
3227
          } else { 
3228
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3229
          }
3230
          break;
4762 phani.kuma 3231
        case 24: // DEFAULT_FOR_ENTITY
3430 rajveer 3232
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3233
            this.defaultForEntity = iprot.readBool();
3234
            setDefaultForEntityIsSet(true);
3235
          } else { 
3236
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3237
          }
3238
          break;
4762 phani.kuma 3239
        case 25: // UPDATED_ON
3430 rajveer 3240
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3241
            this.updatedOn = iprot.readI64();
3242
            setUpdatedOnIsSet(true);
3243
          } else { 
3244
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3245
          }
3246
          break;
4762 phani.kuma 3247
        case 26: // BEST_SELLING_RANK
3430 rajveer 3248
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3249
            this.bestSellingRank = iprot.readI64();
3250
            setBestSellingRankIsSet(true);
3251
          } else { 
3252
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3253
          }
3254
          break;
4762 phani.kuma 3255
        case 27: // RISKY
3430 rajveer 3256
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3257
            this.risky = iprot.readBool();
3258
            setRiskyIsSet(true);
3259
          } else { 
3260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3261
          }
3262
          break;
4762 phani.kuma 3263
        case 28: // EXPECTED_DELAY
3430 rajveer 3264
          if (field.type == org.apache.thrift.protocol.TType.I32) {
3265
            this.expectedDelay = iprot.readI32();
3266
            setExpectedDelayIsSet(true);
3267
          } else { 
3268
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3269
          }
3270
          break;
5440 phani.kuma 3271
        case 29: // IS_WAREHOUSE_PREFERENCE_STICKY
4406 anupam.sin 3272
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3273
            this.isWarehousePreferenceSticky = iprot.readBool();
3274
            setIsWarehousePreferenceStickyIsSet(true);
3275
          } else { 
3276
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3277
          }
3278
          break;
5440 phani.kuma 3279
        case 30: // WARRANTY_PERIOD
4295 varun.gupt 3280
          if (field.type == org.apache.thrift.protocol.TType.I32) {
3281
            this.warrantyPeriod = iprot.readI32();
3282
            setWarrantyPeriodIsSet(true);
3283
          } else { 
3284
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3285
          }
3286
          break;
5440 phani.kuma 3287
        case 31: // PREFERRED_VENDOR
4506 phani.kuma 3288
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3289
            this.preferredVendor = iprot.readI64();
3290
            setPreferredVendorIsSet(true);
3291
          } else { 
3292
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3293
          }
3294
          break;
5440 phani.kuma 3295
        case 32: // TYPE
5110 mandeep.dh 3296
          if (field.type == org.apache.thrift.protocol.TType.I32) {
3297
            this.type = ItemType.findByValue(iprot.readI32());
3298
          } else { 
3299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3300
          }
3301
          break;
5440 phani.kuma 3302
        case 33: // COMING_SOON_START_DATE
5217 amit.gupta 3303
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3304
            this.comingSoonStartDate = iprot.readI64();
3305
            setComingSoonStartDateIsSet(true);
3306
          } else { 
3307
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3308
          }
3309
          break;
5440 phani.kuma 3310
        case 34: // EXPECTED_ARRIVAL_DATE
5217 amit.gupta 3311
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3312
            this.expectedArrivalDate = iprot.readI64();
3313
            setExpectedArrivalDateIsSet(true);
3314
          } else { 
3315
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3316
          }
3317
          break;
5440 phani.kuma 3318
        case 35: // HAS_ITEM_NO
5385 phani.kuma 3319
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3320
            this.hasItemNo = iprot.readBool();
3321
            setHasItemNoIsSet(true);
3322
          } else { 
3323
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3324
          }
3325
          break;
7256 rajveer 3326
        case 36: // ACTIVE_ON_STORE
5460 phani.kuma 3327
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
7256 rajveer 3328
            this.activeOnStore = iprot.readBool();
3329
            setActiveOnStoreIsSet(true);
5460 phani.kuma 3330
          } else { 
3331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3332
          }
3333
          break;
6241 amit.gupta 3334
        case 38: // SHOW_SELLING_PRICE
3335
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3336
            this.showSellingPrice = iprot.readBool();
3337
            setShowSellingPriceIsSet(true);
3338
          } else { 
3339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3340
          }
3341
          break;
6777 vikram.rag 3342
        case 39: // BEST_DEALS_DETAILS_TEXT
3343
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3344
            this.bestDealsDetailsText = iprot.readString();
3345
          } else { 
3346
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3347
          }
3348
          break;
3349
        case 40: // BEST_DEALS_DETAILS_LINK
3350
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3351
            this.bestDealsDetailsLink = iprot.readString();
3352
          } else { 
3353
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3354
          }
3355
          break;
6805 anupam.sin 3356
        case 41: // PREFERRED_INSURER
3357
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3358
            this.preferredInsurer = iprot.readI64();
3359
            setPreferredInsurerIsSet(true);
3360
          } else { 
3361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3362
          }
3363
          break;
7291 vikram.rag 3364
        case 42: // ASIN
3365
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3366
            this.asin = iprot.readString();
3367
          } else { 
3368
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3369
          }
3370
          break;
3371
        case 43: // DEFAULT_INVENTORY
3372
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3373
            this.defaultInventory = iprot.readI64();
3374
            setDefaultInventoryIsSet(true);
3375
          } else { 
3376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3377
          }
3378
          break;
3379
        case 44: // HOLD_INVENTORY
3380
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3381
            this.holdInventory = iprot.readI64();
3382
            setHoldInventoryIsSet(true);
3383
          } else { 
3384
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3385
          }
3386
          break;
3430 rajveer 3387
        default:
3388
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
100 ashish 3389
      }
3430 rajveer 3390
      iprot.readFieldEnd();
100 ashish 3391
    }
3392
    iprot.readStructEnd();
3393
    validate();
3394
  }
3395
 
3430 rajveer 3396
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
100 ashish 3397
    validate();
3398
 
3399
    oprot.writeStructBegin(STRUCT_DESC);
3400
    oprot.writeFieldBegin(ID_FIELD_DESC);
3401
    oprot.writeI64(this.id);
3402
    oprot.writeFieldEnd();
957 chandransh 3403
    if (this.productGroup != null) {
3404
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
3405
      oprot.writeString(this.productGroup);
483 rajveer 3406
      oprot.writeFieldEnd();
3407
    }
957 chandransh 3408
    if (this.brand != null) {
3409
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
3410
      oprot.writeString(this.brand);
3411
      oprot.writeFieldEnd();
3412
    }
483 rajveer 3413
    if (this.modelNumber != null) {
3414
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
3415
      oprot.writeString(this.modelNumber);
3416
      oprot.writeFieldEnd();
3417
    }
3418
    if (this.modelName != null) {
3419
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
3420
      oprot.writeString(this.modelName);
3421
      oprot.writeFieldEnd();
3422
    }
1329 chandransh 3423
    if (this.color != null) {
3424
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
3425
      oprot.writeString(this.color);
3426
      oprot.writeFieldEnd();
3427
    }
622 chandransh 3428
    oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
3429
    oprot.writeI64(this.category);
3430
    oprot.writeFieldEnd();
483 rajveer 3431
    if (this.comments != null) {
3432
      oprot.writeFieldBegin(COMMENTS_FIELD_DESC);
3433
      oprot.writeString(this.comments);
3434
      oprot.writeFieldEnd();
3435
    }
123 ashish 3436
    oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
3437
    oprot.writeI64(this.catalogItemId);
3438
    oprot.writeFieldEnd();
483 rajveer 3439
    oprot.writeFieldBegin(FEATURE_ID_FIELD_DESC);
3440
    oprot.writeI64(this.featureId);
3441
    oprot.writeFieldEnd();
3442
    if (this.featureDescription != null) {
3443
      oprot.writeFieldBegin(FEATURE_DESCRIPTION_FIELD_DESC);
3444
      oprot.writeString(this.featureDescription);
3445
      oprot.writeFieldEnd();
3446
    }
2128 ankur.sing 3447
    if (isSetMrp()) {
3448
      oprot.writeFieldBegin(MRP_FIELD_DESC);
3449
      oprot.writeDouble(this.mrp);
3450
      oprot.writeFieldEnd();
3451
    }
3452
    if (isSetSellingPrice()) {
3453
      oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
3454
      oprot.writeDouble(this.sellingPrice);
3455
      oprot.writeFieldEnd();
3456
    }
3457
    if (isSetWeight()) {
3458
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
3459
      oprot.writeDouble(this.weight);
3460
      oprot.writeFieldEnd();
3461
    }
103 ashish 3462
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
3463
    oprot.writeI64(this.addedOn);
3464
    oprot.writeFieldEnd();
2491 ankur.sing 3465
    if (isSetStartDate()) {
3466
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
3467
      oprot.writeI64(this.startDate);
3468
      oprot.writeFieldEnd();
3469
    }
3470
    if (isSetRetireDate()) {
3471
      oprot.writeFieldBegin(RETIRE_DATE_FIELD_DESC);
3472
      oprot.writeI64(this.retireDate);
3473
      oprot.writeFieldEnd();
3474
    }
103 ashish 3475
    if (this.itemStatus != null) {
3476
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
3477
      oprot.writeI32(this.itemStatus.getValue());
3478
      oprot.writeFieldEnd();
3479
    }
2034 rajveer 3480
    if (this.status_description != null) {
3481
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
3482
      oprot.writeString(this.status_description);
3483
      oprot.writeFieldEnd();
3484
    }
5336 rajveer 3485
    if (this.otherInfo != null) {
3486
      oprot.writeFieldBegin(OTHER_INFO_FIELD_DESC);
3487
      {
3488
        oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.otherInfo.size()));
5945 mandeep.dh 3489
        for (Map.Entry<String, String> _iter4 : this.otherInfo.entrySet())
5336 rajveer 3490
        {
5945 mandeep.dh 3491
          oprot.writeString(_iter4.getKey());
3492
          oprot.writeString(_iter4.getValue());
5336 rajveer 3493
        }
3494
        oprot.writeMapEnd();
3495
      }
3496
      oprot.writeFieldEnd();
3497
    }
607 chandransh 3498
    if (this.bestDealText != null) {
3499
      oprot.writeFieldBegin(BEST_DEAL_TEXT_FIELD_DESC);
3500
      oprot.writeString(this.bestDealText);
3501
      oprot.writeFieldEnd();
3502
    }
2128 ankur.sing 3503
    if (isSetBestDealValue()) {
3504
      oprot.writeFieldBegin(BEST_DEAL_VALUE_FIELD_DESC);
3505
      oprot.writeDouble(this.bestDealValue);
3506
      oprot.writeFieldEnd();
3507
    }
1910 varun.gupt 3508
    oprot.writeFieldBegin(DEFAULT_FOR_ENTITY_FIELD_DESC);
3509
    oprot.writeBool(this.defaultForEntity);
3510
    oprot.writeFieldEnd();
607 chandransh 3511
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
3512
    oprot.writeI64(this.updatedOn);
3513
    oprot.writeFieldEnd();
2128 ankur.sing 3514
    if (isSetBestSellingRank()) {
3515
      oprot.writeFieldBegin(BEST_SELLING_RANK_FIELD_DESC);
3516
      oprot.writeI64(this.bestSellingRank);
3517
      oprot.writeFieldEnd();
3518
    }
2250 ankur.sing 3519
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
3520
    oprot.writeBool(this.risky);
3521
    oprot.writeFieldEnd();
3355 chandransh 3522
    if (isSetExpectedDelay()) {
3523
      oprot.writeFieldBegin(EXPECTED_DELAY_FIELD_DESC);
3524
      oprot.writeI32(this.expectedDelay);
3525
      oprot.writeFieldEnd();
3526
    }
4406 anupam.sin 3527
    if (isSetIsWarehousePreferenceSticky()) {
3528
      oprot.writeFieldBegin(IS_WAREHOUSE_PREFERENCE_STICKY_FIELD_DESC);
3529
      oprot.writeBool(this.isWarehousePreferenceSticky);
3530
      oprot.writeFieldEnd();
3531
    }
4295 varun.gupt 3532
    oprot.writeFieldBegin(WARRANTY_PERIOD_FIELD_DESC);
3533
    oprot.writeI32(this.warrantyPeriod);
3534
    oprot.writeFieldEnd();
4506 phani.kuma 3535
    if (isSetPreferredVendor()) {
3536
      oprot.writeFieldBegin(PREFERRED_VENDOR_FIELD_DESC);
3537
      oprot.writeI64(this.preferredVendor);
3538
      oprot.writeFieldEnd();
3539
    }
5110 mandeep.dh 3540
    if (this.type != null) {
3541
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
3542
      oprot.writeI32(this.type.getValue());
3543
      oprot.writeFieldEnd();
3544
    }
5217 amit.gupta 3545
    if (isSetComingSoonStartDate()) {
3546
      oprot.writeFieldBegin(COMING_SOON_START_DATE_FIELD_DESC);
3547
      oprot.writeI64(this.comingSoonStartDate);
3548
      oprot.writeFieldEnd();
3549
    }
3550
    if (isSetExpectedArrivalDate()) {
3551
      oprot.writeFieldBegin(EXPECTED_ARRIVAL_DATE_FIELD_DESC);
3552
      oprot.writeI64(this.expectedArrivalDate);
3553
      oprot.writeFieldEnd();
3554
    }
5385 phani.kuma 3555
    oprot.writeFieldBegin(HAS_ITEM_NO_FIELD_DESC);
3556
    oprot.writeBool(this.hasItemNo);
3557
    oprot.writeFieldEnd();
7256 rajveer 3558
    oprot.writeFieldBegin(ACTIVE_ON_STORE_FIELD_DESC);
3559
    oprot.writeBool(this.activeOnStore);
5460 phani.kuma 3560
    oprot.writeFieldEnd();
6241 amit.gupta 3561
    oprot.writeFieldBegin(SHOW_SELLING_PRICE_FIELD_DESC);
3562
    oprot.writeBool(this.showSellingPrice);
3563
    oprot.writeFieldEnd();
6777 vikram.rag 3564
    if (this.bestDealsDetailsText != null) {
3565
      oprot.writeFieldBegin(BEST_DEALS_DETAILS_TEXT_FIELD_DESC);
3566
      oprot.writeString(this.bestDealsDetailsText);
3567
      oprot.writeFieldEnd();
3568
    }
3569
    if (this.bestDealsDetailsLink != null) {
3570
      oprot.writeFieldBegin(BEST_DEALS_DETAILS_LINK_FIELD_DESC);
3571
      oprot.writeString(this.bestDealsDetailsLink);
3572
      oprot.writeFieldEnd();
3573
    }
6805 anupam.sin 3574
    oprot.writeFieldBegin(PREFERRED_INSURER_FIELD_DESC);
3575
    oprot.writeI64(this.preferredInsurer);
3576
    oprot.writeFieldEnd();
7291 vikram.rag 3577
    if (this.asin != null) {
3578
      oprot.writeFieldBegin(ASIN_FIELD_DESC);
3579
      oprot.writeString(this.asin);
3580
      oprot.writeFieldEnd();
3581
    }
3582
    oprot.writeFieldBegin(DEFAULT_INVENTORY_FIELD_DESC);
3583
    oprot.writeI64(this.defaultInventory);
3584
    oprot.writeFieldEnd();
3585
    oprot.writeFieldBegin(HOLD_INVENTORY_FIELD_DESC);
3586
    oprot.writeI64(this.holdInventory);
3587
    oprot.writeFieldEnd();
100 ashish 3588
    oprot.writeFieldStop();
3589
    oprot.writeStructEnd();
3590
  }
3591
 
3592
  @Override
3593
  public String toString() {
3594
    StringBuilder sb = new StringBuilder("Item(");
3595
    boolean first = true;
3596
 
3597
    sb.append("id:");
3598
    sb.append(this.id);
3599
    first = false;
3600
    if (!first) sb.append(", ");
957 chandransh 3601
    sb.append("productGroup:");
3602
    if (this.productGroup == null) {
483 rajveer 3603
      sb.append("null");
3604
    } else {
957 chandransh 3605
      sb.append(this.productGroup);
483 rajveer 3606
    }
3607
    first = false;
3608
    if (!first) sb.append(", ");
957 chandransh 3609
    sb.append("brand:");
3610
    if (this.brand == null) {
3611
      sb.append("null");
3612
    } else {
3613
      sb.append(this.brand);
3614
    }
3615
    first = false;
3616
    if (!first) sb.append(", ");
483 rajveer 3617
    sb.append("modelNumber:");
3618
    if (this.modelNumber == null) {
3619
      sb.append("null");
3620
    } else {
3621
      sb.append(this.modelNumber);
3622
    }
3623
    first = false;
3624
    if (!first) sb.append(", ");
3625
    sb.append("modelName:");
3626
    if (this.modelName == null) {
3627
      sb.append("null");
3628
    } else {
3629
      sb.append(this.modelName);
3630
    }
3631
    first = false;
3632
    if (!first) sb.append(", ");
1329 chandransh 3633
    sb.append("color:");
3634
    if (this.color == null) {
3635
      sb.append("null");
3636
    } else {
3637
      sb.append(this.color);
3638
    }
3639
    first = false;
3640
    if (!first) sb.append(", ");
483 rajveer 3641
    sb.append("category:");
622 chandransh 3642
    sb.append(this.category);
483 rajveer 3643
    first = false;
3644
    if (!first) sb.append(", ");
3645
    sb.append("comments:");
3646
    if (this.comments == null) {
3647
      sb.append("null");
3648
    } else {
3649
      sb.append(this.comments);
3650
    }
3651
    first = false;
3652
    if (!first) sb.append(", ");
123 ashish 3653
    sb.append("catalogItemId:");
3654
    sb.append(this.catalogItemId);
100 ashish 3655
    first = false;
3656
    if (!first) sb.append(", ");
483 rajveer 3657
    sb.append("featureId:");
3658
    sb.append(this.featureId);
3659
    first = false;
3660
    if (!first) sb.append(", ");
3661
    sb.append("featureDescription:");
3662
    if (this.featureDescription == null) {
3663
      sb.append("null");
3664
    } else {
3665
      sb.append(this.featureDescription);
3666
    }
3667
    first = false;
2128 ankur.sing 3668
    if (isSetMrp()) {
3669
      if (!first) sb.append(", ");
3670
      sb.append("mrp:");
3671
      sb.append(this.mrp);
3672
      first = false;
3673
    }
3674
    if (isSetSellingPrice()) {
3675
      if (!first) sb.append(", ");
3676
      sb.append("sellingPrice:");
3677
      sb.append(this.sellingPrice);
3678
      first = false;
3679
    }
3680
    if (isSetWeight()) {
3681
      if (!first) sb.append(", ");
3682
      sb.append("weight:");
3683
      sb.append(this.weight);
3684
      first = false;
3685
    }
721 chandransh 3686
    if (!first) sb.append(", ");
103 ashish 3687
    sb.append("addedOn:");
3688
    sb.append(this.addedOn);
3689
    first = false;
2491 ankur.sing 3690
    if (isSetStartDate()) {
3691
      if (!first) sb.append(", ");
3692
      sb.append("startDate:");
3693
      sb.append(this.startDate);
3694
      first = false;
3695
    }
3696
    if (isSetRetireDate()) {
3697
      if (!first) sb.append(", ");
3698
      sb.append("retireDate:");
3699
      sb.append(this.retireDate);
3700
      first = false;
3701
    }
103 ashish 3702
    if (!first) sb.append(", ");
3703
    sb.append("itemStatus:");
3704
    if (this.itemStatus == null) {
3705
      sb.append("null");
3706
    } else {
3707
      sb.append(this.itemStatus);
3708
    }
3709
    first = false;
3710
    if (!first) sb.append(", ");
2034 rajveer 3711
    sb.append("status_description:");
3712
    if (this.status_description == null) {
3713
      sb.append("null");
3714
    } else {
3715
      sb.append(this.status_description);
3716
    }
3717
    first = false;
3718
    if (!first) sb.append(", ");
5336 rajveer 3719
    sb.append("otherInfo:");
3720
    if (this.otherInfo == null) {
3721
      sb.append("null");
3722
    } else {
3723
      sb.append(this.otherInfo);
3724
    }
3725
    first = false;
3726
    if (!first) sb.append(", ");
607 chandransh 3727
    sb.append("bestDealText:");
3728
    if (this.bestDealText == null) {
3729
      sb.append("null");
3730
    } else {
3731
      sb.append(this.bestDealText);
3732
    }
3733
    first = false;
2128 ankur.sing 3734
    if (isSetBestDealValue()) {
3735
      if (!first) sb.append(", ");
3736
      sb.append("bestDealValue:");
3737
      sb.append(this.bestDealValue);
3738
      first = false;
3739
    }
607 chandransh 3740
    if (!first) sb.append(", ");
1910 varun.gupt 3741
    sb.append("defaultForEntity:");
3742
    sb.append(this.defaultForEntity);
3743
    first = false;
3744
    if (!first) sb.append(", ");
607 chandransh 3745
    sb.append("updatedOn:");
3746
    sb.append(this.updatedOn);
3747
    first = false;
2128 ankur.sing 3748
    if (isSetBestSellingRank()) {
3749
      if (!first) sb.append(", ");
3750
      sb.append("bestSellingRank:");
3751
      sb.append(this.bestSellingRank);
3752
      first = false;
3753
    }
2064 ankur.sing 3754
    if (!first) sb.append(", ");
2250 ankur.sing 3755
    sb.append("risky:");
3756
    sb.append(this.risky);
3757
    first = false;
3355 chandransh 3758
    if (isSetExpectedDelay()) {
3759
      if (!first) sb.append(", ");
3760
      sb.append("expectedDelay:");
3761
      sb.append(this.expectedDelay);
3762
      first = false;
3763
    }
4406 anupam.sin 3764
    if (isSetIsWarehousePreferenceSticky()) {
3765
      if (!first) sb.append(", ");
3766
      sb.append("isWarehousePreferenceSticky:");
3767
      sb.append(this.isWarehousePreferenceSticky);
3768
      first = false;
3769
    }
4295 varun.gupt 3770
    if (!first) sb.append(", ");
3771
    sb.append("warrantyPeriod:");
3772
    sb.append(this.warrantyPeriod);
3773
    first = false;
4506 phani.kuma 3774
    if (isSetPreferredVendor()) {
3775
      if (!first) sb.append(", ");
3776
      sb.append("preferredVendor:");
3777
      sb.append(this.preferredVendor);
3778
      first = false;
3779
    }
5110 mandeep.dh 3780
    if (!first) sb.append(", ");
3781
    sb.append("type:");
3782
    if (this.type == null) {
3783
      sb.append("null");
3784
    } else {
3785
      sb.append(this.type);
3786
    }
3787
    first = false;
5217 amit.gupta 3788
    if (isSetComingSoonStartDate()) {
3789
      if (!first) sb.append(", ");
3790
      sb.append("comingSoonStartDate:");
3791
      sb.append(this.comingSoonStartDate);
3792
      first = false;
3793
    }
3794
    if (isSetExpectedArrivalDate()) {
3795
      if (!first) sb.append(", ");
3796
      sb.append("expectedArrivalDate:");
3797
      sb.append(this.expectedArrivalDate);
3798
      first = false;
3799
    }
5385 phani.kuma 3800
    if (!first) sb.append(", ");
3801
    sb.append("hasItemNo:");
3802
    sb.append(this.hasItemNo);
3803
    first = false;
5460 phani.kuma 3804
    if (!first) sb.append(", ");
7256 rajveer 3805
    sb.append("activeOnStore:");
3806
    sb.append(this.activeOnStore);
5460 phani.kuma 3807
    first = false;
6039 amit.gupta 3808
    if (!first) sb.append(", ");
6241 amit.gupta 3809
    sb.append("showSellingPrice:");
3810
    sb.append(this.showSellingPrice);
3811
    first = false;
6777 vikram.rag 3812
    if (!first) sb.append(", ");
3813
    sb.append("bestDealsDetailsText:");
3814
    if (this.bestDealsDetailsText == null) {
3815
      sb.append("null");
3816
    } else {
3817
      sb.append(this.bestDealsDetailsText);
3818
    }
3819
    first = false;
3820
    if (!first) sb.append(", ");
3821
    sb.append("bestDealsDetailsLink:");
3822
    if (this.bestDealsDetailsLink == null) {
3823
      sb.append("null");
3824
    } else {
3825
      sb.append(this.bestDealsDetailsLink);
3826
    }
3827
    first = false;
6805 anupam.sin 3828
    if (!first) sb.append(", ");
3829
    sb.append("preferredInsurer:");
3830
    sb.append(this.preferredInsurer);
3831
    first = false;
7291 vikram.rag 3832
    if (!first) sb.append(", ");
3833
    sb.append("asin:");
3834
    if (this.asin == null) {
3835
      sb.append("null");
3836
    } else {
3837
      sb.append(this.asin);
3838
    }
3839
    first = false;
3840
    if (!first) sb.append(", ");
3841
    sb.append("defaultInventory:");
3842
    sb.append(this.defaultInventory);
3843
    first = false;
3844
    if (!first) sb.append(", ");
3845
    sb.append("holdInventory:");
3846
    sb.append(this.holdInventory);
3847
    first = false;
100 ashish 3848
    sb.append(")");
3849
    return sb.toString();
3850
  }
3851
 
3430 rajveer 3852
  public void validate() throws org.apache.thrift.TException {
100 ashish 3853
    // check for required fields
3854
  }
3855
 
3430 rajveer 3856
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3857
    try {
3858
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3859
    } catch (org.apache.thrift.TException te) {
3860
      throw new java.io.IOException(te);
3861
    }
3862
  }
3863
 
3864
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3865
    try {
3866
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3867
      __isset_bit_vector = new BitSet(1);
3868
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3869
    } catch (org.apache.thrift.TException te) {
3870
      throw new java.io.IOException(te);
3871
    }
3872
  }
3873
 
100 ashish 3874
}
3875