Subversion Repositories SmartDukaan

Rev

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