Subversion Repositories SmartDukaan

Rev

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