Subversion Repositories SmartDukaan

Rev

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