Subversion Repositories SmartDukaan

Rev

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