Subversion Repositories SmartDukaan

Rev

Rev 5460 | Rev 6039 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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