Subversion Repositories SmartDukaan

Rev

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