Subversion Repositories SmartDukaan

Rev

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