Subversion Repositories SmartDukaan

Rev

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