Subversion Repositories SmartDukaan

Rev

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