Subversion Repositories SmartDukaan

Rev

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