Subversion Repositories SmartDukaan

Rev

Rev 5385 | Rev 5460 | 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);
5336 rajveer 37
  private static final org.apache.thrift.protocol.TField ITEM_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("itemInventory", org.apache.thrift.protocol.TType.STRUCT, (short)12);
3430 rajveer 38
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
4762 phani.kuma 39
  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);
40
  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);
41
  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);
42
  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);
43
  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);
44
  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);
45
  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 46
  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 47
  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);
48
  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);
49
  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);
50
  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);
51
  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);
52
  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);
53
  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 54
  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);
55
  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);
56
  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);
57
  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);
58
  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);
59
  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);
60
  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);
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
5336 rajveer 73
  private ItemInventory itemInventory; // required
3430 rajveer 74
  private double mrp; // required
75
  private double sellingPrice; // required
76
  private double weight; // required
77
  private long addedOn; // required
78
  private long startDate; // required
79
  private long retireDate; // required
80
  private status itemStatus; // required
81
  private String status_description; // required
5336 rajveer 82
  private Map<String,String> otherInfo; // required
3430 rajveer 83
  private String bestDealText; // required
84
  private double bestDealValue; // required
85
  private boolean defaultForEntity; // required
86
  private long updatedOn; // required
87
  private long bestSellingRank; // required
88
  private boolean risky; // required
89
  private int expectedDelay; // required
4406 anupam.sin 90
  private boolean isWarehousePreferenceSticky; // required
4295 varun.gupt 91
  private int warrantyPeriod; // required
4506 phani.kuma 92
  private long preferredVendor; // required
5110 mandeep.dh 93
  private ItemType type; // required
5217 amit.gupta 94
  private long comingSoonStartDate; // required
95
  private long expectedArrivalDate; // required
5385 phani.kuma 96
  private boolean hasItemNo; // 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"),
5336 rajveer 111
    ITEM_INVENTORY((short)12, "itemInventory"),
483 rajveer 112
    MRP((short)13, "mrp"),
4762 phani.kuma 113
    SELLING_PRICE((short)14, "sellingPrice"),
114
    WEIGHT((short)15, "weight"),
115
    ADDED_ON((short)16, "addedOn"),
116
    START_DATE((short)17, "startDate"),
117
    RETIRE_DATE((short)18, "retireDate"),
103 ashish 118
    /**
119
     * 
120
     * @see status
121
     */
4762 phani.kuma 122
    ITEM_STATUS((short)19, "itemStatus"),
123
    STATUS_DESCRIPTION((short)20, "status_description"),
5336 rajveer 124
    OTHER_INFO((short)21, "otherInfo"),
4762 phani.kuma 125
    BEST_DEAL_TEXT((short)22, "bestDealText"),
126
    BEST_DEAL_VALUE((short)23, "bestDealValue"),
127
    DEFAULT_FOR_ENTITY((short)24, "defaultForEntity"),
128
    UPDATED_ON((short)25, "updatedOn"),
129
    BEST_SELLING_RANK((short)26, "bestSellingRank"),
130
    RISKY((short)27, "risky"),
131
    EXPECTED_DELAY((short)28, "expectedDelay"),
5440 phani.kuma 132
    IS_WAREHOUSE_PREFERENCE_STICKY((short)29, "isWarehousePreferenceSticky"),
133
    WARRANTY_PERIOD((short)30, "warrantyPeriod"),
134
    PREFERRED_VENDOR((short)31, "preferredVendor"),
5110 mandeep.dh 135
    /**
136
     * 
137
     * @see ItemType
138
     */
5440 phani.kuma 139
    TYPE((short)32, "type"),
140
    COMING_SOON_START_DATE((short)33, "comingSoonStartDate"),
141
    EXPECTED_ARRIVAL_DATE((short)34, "expectedArrivalDate"),
142
    HAS_ITEM_NO((short)35, "hasItemNo");
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;
5336 rajveer 179
        case 12: // ITEM_INVENTORY
180
          return ITEM_INVENTORY;
3430 rajveer 181
        case 13: // MRP
182
          return MRP;
4762 phani.kuma 183
        case 14: // SELLING_PRICE
3430 rajveer 184
          return SELLING_PRICE;
4762 phani.kuma 185
        case 15: // WEIGHT
3430 rajveer 186
          return WEIGHT;
4762 phani.kuma 187
        case 16: // ADDED_ON
3430 rajveer 188
          return ADDED_ON;
4762 phani.kuma 189
        case 17: // START_DATE
3430 rajveer 190
          return START_DATE;
4762 phani.kuma 191
        case 18: // RETIRE_DATE
3430 rajveer 192
          return RETIRE_DATE;
4762 phani.kuma 193
        case 19: // ITEM_STATUS
3430 rajveer 194
          return ITEM_STATUS;
4762 phani.kuma 195
        case 20: // STATUS_DESCRIPTION
3430 rajveer 196
          return STATUS_DESCRIPTION;
5336 rajveer 197
        case 21: // OTHER_INFO
198
          return OTHER_INFO;
4762 phani.kuma 199
        case 22: // BEST_DEAL_TEXT
3430 rajveer 200
          return BEST_DEAL_TEXT;
4762 phani.kuma 201
        case 23: // BEST_DEAL_VALUE
3430 rajveer 202
          return BEST_DEAL_VALUE;
4762 phani.kuma 203
        case 24: // DEFAULT_FOR_ENTITY
3430 rajveer 204
          return DEFAULT_FOR_ENTITY;
4762 phani.kuma 205
        case 25: // UPDATED_ON
3430 rajveer 206
          return UPDATED_ON;
4762 phani.kuma 207
        case 26: // BEST_SELLING_RANK
3430 rajveer 208
          return BEST_SELLING_RANK;
4762 phani.kuma 209
        case 27: // RISKY
3430 rajveer 210
          return RISKY;
4762 phani.kuma 211
        case 28: // EXPECTED_DELAY
3430 rajveer 212
          return EXPECTED_DELAY;
5440 phani.kuma 213
        case 29: // IS_WAREHOUSE_PREFERENCE_STICKY
4406 anupam.sin 214
          return IS_WAREHOUSE_PREFERENCE_STICKY;
5440 phani.kuma 215
        case 30: // WARRANTY_PERIOD
4295 varun.gupt 216
          return WARRANTY_PERIOD;
5440 phani.kuma 217
        case 31: // PREFERRED_VENDOR
4506 phani.kuma 218
          return PREFERRED_VENDOR;
5440 phani.kuma 219
        case 32: // TYPE
5110 mandeep.dh 220
          return TYPE;
5440 phani.kuma 221
        case 33: // COMING_SOON_START_DATE
5217 amit.gupta 222
          return COMING_SOON_START_DATE;
5440 phani.kuma 223
        case 34: // EXPECTED_ARRIVAL_DATE
5217 amit.gupta 224
          return EXPECTED_ARRIVAL_DATE;
5440 phani.kuma 225
        case 35: // HAS_ITEM_NO
5385 phani.kuma 226
          return HAS_ITEM_NO;
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;
289
  private BitSet __isset_bit_vector = new BitSet(22);
100 ashish 290
 
3430 rajveer 291
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
100 ashish 292
  static {
3430 rajveer 293
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
294
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
295
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
296
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
297
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
298
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
299
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
300
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
301
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
302
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
303
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
304
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
305
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
306
    tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
307
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
308
    tmpMap.put(_Fields.COMMENTS, new org.apache.thrift.meta_data.FieldMetaData("comments", org.apache.thrift.TFieldRequirementType.DEFAULT, 
309
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
310
    tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
311
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
312
    tmpMap.put(_Fields.FEATURE_ID, new org.apache.thrift.meta_data.FieldMetaData("featureId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
313
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
314
    tmpMap.put(_Fields.FEATURE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("featureDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
315
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5336 rajveer 316
    tmpMap.put(_Fields.ITEM_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("itemInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
317
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
3430 rajveer 318
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
319
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
320
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
321
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
322
    tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
323
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
324
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
325
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
326
    tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
327
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
328
    tmpMap.put(_Fields.RETIRE_DATE, new org.apache.thrift.meta_data.FieldMetaData("retireDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
329
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
330
    tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
331
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
332
    tmpMap.put(_Fields.STATUS_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("status_description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
333
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5336 rajveer 334
    tmpMap.put(_Fields.OTHER_INFO, new org.apache.thrift.meta_data.FieldMetaData("otherInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
335
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
336
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
337
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 338
    tmpMap.put(_Fields.BEST_DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("bestDealText", org.apache.thrift.TFieldRequirementType.DEFAULT, 
339
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
340
    tmpMap.put(_Fields.BEST_DEAL_VALUE, new org.apache.thrift.meta_data.FieldMetaData("bestDealValue", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
341
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
342
    tmpMap.put(_Fields.DEFAULT_FOR_ENTITY, new org.apache.thrift.meta_data.FieldMetaData("defaultForEntity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
343
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
344
    tmpMap.put(_Fields.UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("updatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
345
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
346
    tmpMap.put(_Fields.BEST_SELLING_RANK, new org.apache.thrift.meta_data.FieldMetaData("bestSellingRank", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
347
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
348
    tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT, 
349
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
350
    tmpMap.put(_Fields.EXPECTED_DELAY, new org.apache.thrift.meta_data.FieldMetaData("expectedDelay", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
351
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4406 anupam.sin 352
    tmpMap.put(_Fields.IS_WAREHOUSE_PREFERENCE_STICKY, new org.apache.thrift.meta_data.FieldMetaData("isWarehousePreferenceSticky", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
353
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
4295 varun.gupt 354
    tmpMap.put(_Fields.WARRANTY_PERIOD, new org.apache.thrift.meta_data.FieldMetaData("warrantyPeriod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
355
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4506 phani.kuma 356
    tmpMap.put(_Fields.PREFERRED_VENDOR, new org.apache.thrift.meta_data.FieldMetaData("preferredVendor", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
357
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 358
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
359
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemType.class)));
5217 amit.gupta 360
    tmpMap.put(_Fields.COMING_SOON_START_DATE, new org.apache.thrift.meta_data.FieldMetaData("comingSoonStartDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
361
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
362
    tmpMap.put(_Fields.EXPECTED_ARRIVAL_DATE, new org.apache.thrift.meta_data.FieldMetaData("expectedArrivalDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
363
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5385 phani.kuma 364
    tmpMap.put(_Fields.HAS_ITEM_NO, new org.apache.thrift.meta_data.FieldMetaData("hasItemNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
365
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 366
    metaDataMap = Collections.unmodifiableMap(tmpMap);
367
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
100 ashish 368
  }
369
 
370
  public Item() {
371
  }
372
 
373
  public Item(
374
    long id,
957 chandransh 375
    String productGroup,
376
    String brand,
483 rajveer 377
    String modelNumber,
378
    String modelName,
1329 chandransh 379
    String color,
622 chandransh 380
    long category,
483 rajveer 381
    String comments,
123 ashish 382
    long catalogItemId,
483 rajveer 383
    long featureId,
384
    String featureDescription,
5336 rajveer 385
    ItemInventory itemInventory,
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,
396
    boolean hasItemNo)
100 ashish 397
  {
398
    this();
399
    this.id = id;
400
    setIdIsSet(true);
957 chandransh 401
    this.productGroup = productGroup;
402
    this.brand = brand;
483 rajveer 403
    this.modelNumber = modelNumber;
404
    this.modelName = modelName;
1329 chandransh 405
    this.color = color;
483 rajveer 406
    this.category = category;
622 chandransh 407
    setCategoryIsSet(true);
483 rajveer 408
    this.comments = comments;
123 ashish 409
    this.catalogItemId = catalogItemId;
410
    setCatalogItemIdIsSet(true);
483 rajveer 411
    this.featureId = featureId;
412
    setFeatureIdIsSet(true);
413
    this.featureDescription = featureDescription;
5336 rajveer 414
    this.itemInventory = itemInventory;
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);
100 ashish 432
  }
433
 
434
  /**
435
   * Performs a deep copy on <i>other</i>.
436
   */
437
  public Item(Item other) {
438
    __isset_bit_vector.clear();
439
    __isset_bit_vector.or(other.__isset_bit_vector);
440
    this.id = other.id;
957 chandransh 441
    if (other.isSetProductGroup()) {
442
      this.productGroup = other.productGroup;
483 rajveer 443
    }
957 chandransh 444
    if (other.isSetBrand()) {
445
      this.brand = other.brand;
446
    }
483 rajveer 447
    if (other.isSetModelNumber()) {
448
      this.modelNumber = other.modelNumber;
449
    }
450
    if (other.isSetModelName()) {
451
      this.modelName = other.modelName;
452
    }
1329 chandransh 453
    if (other.isSetColor()) {
454
      this.color = other.color;
455
    }
622 chandransh 456
    this.category = other.category;
483 rajveer 457
    if (other.isSetComments()) {
458
      this.comments = other.comments;
459
    }
123 ashish 460
    this.catalogItemId = other.catalogItemId;
483 rajveer 461
    this.featureId = other.featureId;
462
    if (other.isSetFeatureDescription()) {
463
      this.featureDescription = other.featureDescription;
464
    }
5336 rajveer 465
    if (other.isSetItemInventory()) {
466
      this.itemInventory = new ItemInventory(other.itemInventory);
467
    }
483 rajveer 468
    this.mrp = other.mrp;
469
    this.sellingPrice = other.sellingPrice;
470
    this.weight = other.weight;
103 ashish 471
    this.addedOn = other.addedOn;
472
    this.startDate = other.startDate;
483 rajveer 473
    this.retireDate = other.retireDate;
103 ashish 474
    if (other.isSetItemStatus()) {
475
      this.itemStatus = other.itemStatus;
476
    }
2034 rajveer 477
    if (other.isSetStatus_description()) {
478
      this.status_description = other.status_description;
479
    }
5336 rajveer 480
    if (other.isSetOtherInfo()) {
481
      Map<String,String> __this__otherInfo = new HashMap<String,String>();
482
      for (Map.Entry<String, String> other_element : other.otherInfo.entrySet()) {
483
 
484
        String other_element_key = other_element.getKey();
485
        String other_element_value = other_element.getValue();
486
 
487
        String __this__otherInfo_copy_key = other_element_key;
488
 
489
        String __this__otherInfo_copy_value = other_element_value;
490
 
491
        __this__otherInfo.put(__this__otherInfo_copy_key, __this__otherInfo_copy_value);
492
      }
493
      this.otherInfo = __this__otherInfo;
494
    }
607 chandransh 495
    if (other.isSetBestDealText()) {
496
      this.bestDealText = other.bestDealText;
497
    }
498
    this.bestDealValue = other.bestDealValue;
1910 varun.gupt 499
    this.defaultForEntity = other.defaultForEntity;
607 chandransh 500
    this.updatedOn = other.updatedOn;
2064 ankur.sing 501
    this.bestSellingRank = other.bestSellingRank;
2250 ankur.sing 502
    this.risky = other.risky;
3355 chandransh 503
    this.expectedDelay = other.expectedDelay;
4406 anupam.sin 504
    this.isWarehousePreferenceSticky = other.isWarehousePreferenceSticky;
4295 varun.gupt 505
    this.warrantyPeriod = other.warrantyPeriod;
4506 phani.kuma 506
    this.preferredVendor = other.preferredVendor;
5110 mandeep.dh 507
    if (other.isSetType()) {
508
      this.type = other.type;
509
    }
5217 amit.gupta 510
    this.comingSoonStartDate = other.comingSoonStartDate;
511
    this.expectedArrivalDate = other.expectedArrivalDate;
5385 phani.kuma 512
    this.hasItemNo = other.hasItemNo;
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;
5336 rajveer 536
    this.itemInventory = null;
3430 rajveer 537
    setMrpIsSet(false);
538
    this.mrp = 0.0;
539
    setSellingPriceIsSet(false);
540
    this.sellingPrice = 0.0;
541
    setWeightIsSet(false);
542
    this.weight = 0.0;
543
    setAddedOnIsSet(false);
544
    this.addedOn = 0;
545
    setStartDateIsSet(false);
546
    this.startDate = 0;
547
    setRetireDateIsSet(false);
548
    this.retireDate = 0;
549
    this.itemStatus = null;
550
    this.status_description = null;
5336 rajveer 551
    this.otherInfo = null;
3430 rajveer 552
    this.bestDealText = null;
553
    setBestDealValueIsSet(false);
554
    this.bestDealValue = 0.0;
555
    setDefaultForEntityIsSet(false);
556
    this.defaultForEntity = false;
557
    setUpdatedOnIsSet(false);
558
    this.updatedOn = 0;
559
    setBestSellingRankIsSet(false);
560
    this.bestSellingRank = 0;
561
    setRiskyIsSet(false);
562
    this.risky = false;
563
    setExpectedDelayIsSet(false);
564
    this.expectedDelay = 0;
4406 anupam.sin 565
    setIsWarehousePreferenceStickyIsSet(false);
566
    this.isWarehousePreferenceSticky = false;
4295 varun.gupt 567
    setWarrantyPeriodIsSet(false);
568
    this.warrantyPeriod = 0;
4506 phani.kuma 569
    setPreferredVendorIsSet(false);
570
    this.preferredVendor = 0;
5110 mandeep.dh 571
    this.type = null;
5217 amit.gupta 572
    setComingSoonStartDateIsSet(false);
573
    this.comingSoonStartDate = 0;
574
    setExpectedArrivalDateIsSet(false);
575
    this.expectedArrivalDate = 0;
5385 phani.kuma 576
    setHasItemNoIsSet(false);
577
    this.hasItemNo = false;
100 ashish 578
  }
579
 
580
  public long getId() {
581
    return this.id;
582
  }
583
 
3430 rajveer 584
  public void setId(long id) {
100 ashish 585
    this.id = id;
586
    setIdIsSet(true);
587
  }
588
 
589
  public void unsetId() {
590
    __isset_bit_vector.clear(__ID_ISSET_ID);
591
  }
592
 
3430 rajveer 593
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
100 ashish 594
  public boolean isSetId() {
595
    return __isset_bit_vector.get(__ID_ISSET_ID);
596
  }
597
 
598
  public void setIdIsSet(boolean value) {
599
    __isset_bit_vector.set(__ID_ISSET_ID, value);
600
  }
601
 
957 chandransh 602
  public String getProductGroup() {
603
    return this.productGroup;
483 rajveer 604
  }
605
 
3430 rajveer 606
  public void setProductGroup(String productGroup) {
957 chandransh 607
    this.productGroup = productGroup;
483 rajveer 608
  }
609
 
957 chandransh 610
  public void unsetProductGroup() {
611
    this.productGroup = null;
483 rajveer 612
  }
613
 
3430 rajveer 614
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
957 chandransh 615
  public boolean isSetProductGroup() {
616
    return this.productGroup != null;
483 rajveer 617
  }
618
 
957 chandransh 619
  public void setProductGroupIsSet(boolean value) {
483 rajveer 620
    if (!value) {
957 chandransh 621
      this.productGroup = null;
483 rajveer 622
    }
623
  }
624
 
957 chandransh 625
  public String getBrand() {
626
    return this.brand;
627
  }
628
 
3430 rajveer 629
  public void setBrand(String brand) {
957 chandransh 630
    this.brand = brand;
631
  }
632
 
633
  public void unsetBrand() {
634
    this.brand = null;
635
  }
636
 
3430 rajveer 637
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
957 chandransh 638
  public boolean isSetBrand() {
639
    return this.brand != null;
640
  }
641
 
642
  public void setBrandIsSet(boolean value) {
643
    if (!value) {
644
      this.brand = null;
645
    }
646
  }
647
 
483 rajveer 648
  public String getModelNumber() {
649
    return this.modelNumber;
650
  }
651
 
3430 rajveer 652
  public void setModelNumber(String modelNumber) {
483 rajveer 653
    this.modelNumber = modelNumber;
654
  }
655
 
656
  public void unsetModelNumber() {
657
    this.modelNumber = null;
658
  }
659
 
3430 rajveer 660
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
483 rajveer 661
  public boolean isSetModelNumber() {
662
    return this.modelNumber != null;
663
  }
664
 
665
  public void setModelNumberIsSet(boolean value) {
666
    if (!value) {
667
      this.modelNumber = null;
668
    }
669
  }
670
 
671
  public String getModelName() {
672
    return this.modelName;
673
  }
674
 
3430 rajveer 675
  public void setModelName(String modelName) {
483 rajveer 676
    this.modelName = modelName;
677
  }
678
 
679
  public void unsetModelName() {
680
    this.modelName = null;
681
  }
682
 
3430 rajveer 683
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
483 rajveer 684
  public boolean isSetModelName() {
685
    return this.modelName != null;
686
  }
687
 
688
  public void setModelNameIsSet(boolean value) {
689
    if (!value) {
690
      this.modelName = null;
691
    }
692
  }
693
 
1329 chandransh 694
  public String getColor() {
695
    return this.color;
696
  }
697
 
3430 rajveer 698
  public void setColor(String color) {
1329 chandransh 699
    this.color = color;
700
  }
701
 
702
  public void unsetColor() {
703
    this.color = null;
704
  }
705
 
3430 rajveer 706
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
1329 chandransh 707
  public boolean isSetColor() {
708
    return this.color != null;
709
  }
710
 
711
  public void setColorIsSet(boolean value) {
712
    if (!value) {
713
      this.color = null;
714
    }
715
  }
716
 
622 chandransh 717
  public long getCategory() {
483 rajveer 718
    return this.category;
719
  }
720
 
3430 rajveer 721
  public void setCategory(long category) {
483 rajveer 722
    this.category = category;
622 chandransh 723
    setCategoryIsSet(true);
483 rajveer 724
  }
725
 
726
  public void unsetCategory() {
622 chandransh 727
    __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
483 rajveer 728
  }
729
 
3430 rajveer 730
  /** Returns true if field category is set (has been assigned a value) and false otherwise */
483 rajveer 731
  public boolean isSetCategory() {
622 chandransh 732
    return __isset_bit_vector.get(__CATEGORY_ISSET_ID);
483 rajveer 733
  }
734
 
735
  public void setCategoryIsSet(boolean value) {
622 chandransh 736
    __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
483 rajveer 737
  }
738
 
739
  public String getComments() {
740
    return this.comments;
741
  }
742
 
3430 rajveer 743
  public void setComments(String comments) {
483 rajveer 744
    this.comments = comments;
745
  }
746
 
747
  public void unsetComments() {
748
    this.comments = null;
749
  }
750
 
3430 rajveer 751
  /** Returns true if field comments is set (has been assigned a value) and false otherwise */
483 rajveer 752
  public boolean isSetComments() {
753
    return this.comments != null;
754
  }
755
 
756
  public void setCommentsIsSet(boolean value) {
757
    if (!value) {
758
      this.comments = null;
759
    }
760
  }
761
 
123 ashish 762
  public long getCatalogItemId() {
763
    return this.catalogItemId;
100 ashish 764
  }
765
 
3430 rajveer 766
  public void setCatalogItemId(long catalogItemId) {
123 ashish 767
    this.catalogItemId = catalogItemId;
768
    setCatalogItemIdIsSet(true);
100 ashish 769
  }
770
 
123 ashish 771
  public void unsetCatalogItemId() {
772
    __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
100 ashish 773
  }
774
 
3430 rajveer 775
  /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
123 ashish 776
  public boolean isSetCatalogItemId() {
777
    return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
100 ashish 778
  }
779
 
123 ashish 780
  public void setCatalogItemIdIsSet(boolean value) {
781
    __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
100 ashish 782
  }
783
 
483 rajveer 784
  public long getFeatureId() {
785
    return this.featureId;
786
  }
787
 
3430 rajveer 788
  public void setFeatureId(long featureId) {
483 rajveer 789
    this.featureId = featureId;
790
    setFeatureIdIsSet(true);
791
  }
792
 
793
  public void unsetFeatureId() {
794
    __isset_bit_vector.clear(__FEATUREID_ISSET_ID);
795
  }
796
 
3430 rajveer 797
  /** Returns true if field featureId is set (has been assigned a value) and false otherwise */
483 rajveer 798
  public boolean isSetFeatureId() {
799
    return __isset_bit_vector.get(__FEATUREID_ISSET_ID);
800
  }
801
 
802
  public void setFeatureIdIsSet(boolean value) {
803
    __isset_bit_vector.set(__FEATUREID_ISSET_ID, value);
804
  }
805
 
806
  public String getFeatureDescription() {
807
    return this.featureDescription;
808
  }
809
 
3430 rajveer 810
  public void setFeatureDescription(String featureDescription) {
483 rajveer 811
    this.featureDescription = featureDescription;
812
  }
813
 
814
  public void unsetFeatureDescription() {
815
    this.featureDescription = null;
816
  }
817
 
3430 rajveer 818
  /** Returns true if field featureDescription is set (has been assigned a value) and false otherwise */
483 rajveer 819
  public boolean isSetFeatureDescription() {
820
    return this.featureDescription != null;
821
  }
822
 
823
  public void setFeatureDescriptionIsSet(boolean value) {
824
    if (!value) {
825
      this.featureDescription = null;
826
    }
827
  }
828
 
5336 rajveer 829
  public ItemInventory getItemInventory() {
830
    return this.itemInventory;
831
  }
832
 
833
  public void setItemInventory(ItemInventory itemInventory) {
834
    this.itemInventory = itemInventory;
835
  }
836
 
837
  public void unsetItemInventory() {
838
    this.itemInventory = null;
839
  }
840
 
841
  /** Returns true if field itemInventory is set (has been assigned a value) and false otherwise */
842
  public boolean isSetItemInventory() {
843
    return this.itemInventory != null;
844
  }
845
 
846
  public void setItemInventoryIsSet(boolean value) {
847
    if (!value) {
848
      this.itemInventory = null;
849
    }
850
  }
851
 
483 rajveer 852
  public double getMrp() {
853
    return this.mrp;
854
  }
855
 
3430 rajveer 856
  public void setMrp(double mrp) {
483 rajveer 857
    this.mrp = mrp;
858
    setMrpIsSet(true);
859
  }
860
 
861
  public void unsetMrp() {
862
    __isset_bit_vector.clear(__MRP_ISSET_ID);
863
  }
864
 
3430 rajveer 865
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
483 rajveer 866
  public boolean isSetMrp() {
867
    return __isset_bit_vector.get(__MRP_ISSET_ID);
868
  }
869
 
870
  public void setMrpIsSet(boolean value) {
871
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
872
  }
873
 
874
  public double getSellingPrice() {
875
    return this.sellingPrice;
876
  }
877
 
3430 rajveer 878
  public void setSellingPrice(double sellingPrice) {
483 rajveer 879
    this.sellingPrice = sellingPrice;
880
    setSellingPriceIsSet(true);
881
  }
882
 
883
  public void unsetSellingPrice() {
884
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
885
  }
886
 
3430 rajveer 887
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
483 rajveer 888
  public boolean isSetSellingPrice() {
889
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
890
  }
891
 
892
  public void setSellingPriceIsSet(boolean value) {
893
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
894
  }
895
 
896
  public double getWeight() {
897
    return this.weight;
898
  }
899
 
3430 rajveer 900
  public void setWeight(double weight) {
483 rajveer 901
    this.weight = weight;
902
    setWeightIsSet(true);
903
  }
904
 
905
  public void unsetWeight() {
906
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
907
  }
908
 
3430 rajveer 909
  /** Returns true if field weight is set (has been assigned a value) and false otherwise */
483 rajveer 910
  public boolean isSetWeight() {
911
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
912
  }
913
 
914
  public void setWeightIsSet(boolean value) {
915
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
916
  }
917
 
103 ashish 918
  public long getAddedOn() {
919
    return this.addedOn;
920
  }
921
 
3430 rajveer 922
  public void setAddedOn(long addedOn) {
103 ashish 923
    this.addedOn = addedOn;
924
    setAddedOnIsSet(true);
925
  }
926
 
927
  public void unsetAddedOn() {
928
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
929
  }
930
 
3430 rajveer 931
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
103 ashish 932
  public boolean isSetAddedOn() {
933
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
934
  }
935
 
936
  public void setAddedOnIsSet(boolean value) {
937
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
938
  }
939
 
940
  public long getStartDate() {
941
    return this.startDate;
942
  }
943
 
3430 rajveer 944
  public void setStartDate(long startDate) {
103 ashish 945
    this.startDate = startDate;
946
    setStartDateIsSet(true);
947
  }
948
 
949
  public void unsetStartDate() {
950
    __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
951
  }
952
 
3430 rajveer 953
  /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
103 ashish 954
  public boolean isSetStartDate() {
955
    return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
956
  }
957
 
958
  public void setStartDateIsSet(boolean value) {
959
    __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
960
  }
961
 
483 rajveer 962
  public long getRetireDate() {
963
    return this.retireDate;
964
  }
965
 
3430 rajveer 966
  public void setRetireDate(long retireDate) {
483 rajveer 967
    this.retireDate = retireDate;
968
    setRetireDateIsSet(true);
969
  }
970
 
971
  public void unsetRetireDate() {
972
    __isset_bit_vector.clear(__RETIREDATE_ISSET_ID);
973
  }
974
 
3430 rajveer 975
  /** Returns true if field retireDate is set (has been assigned a value) and false otherwise */
483 rajveer 976
  public boolean isSetRetireDate() {
977
    return __isset_bit_vector.get(__RETIREDATE_ISSET_ID);
978
  }
979
 
980
  public void setRetireDateIsSet(boolean value) {
981
    __isset_bit_vector.set(__RETIREDATE_ISSET_ID, value);
982
  }
983
 
103 ashish 984
  /**
985
   * 
986
   * @see status
987
   */
988
  public status getItemStatus() {
989
    return this.itemStatus;
990
  }
991
 
992
  /**
993
   * 
994
   * @see status
995
   */
3430 rajveer 996
  public void setItemStatus(status itemStatus) {
103 ashish 997
    this.itemStatus = itemStatus;
998
  }
999
 
1000
  public void unsetItemStatus() {
1001
    this.itemStatus = null;
1002
  }
1003
 
3430 rajveer 1004
  /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
103 ashish 1005
  public boolean isSetItemStatus() {
1006
    return this.itemStatus != null;
1007
  }
1008
 
1009
  public void setItemStatusIsSet(boolean value) {
1010
    if (!value) {
1011
      this.itemStatus = null;
1012
    }
1013
  }
1014
 
2034 rajveer 1015
  public String getStatus_description() {
1016
    return this.status_description;
1017
  }
1018
 
3430 rajveer 1019
  public void setStatus_description(String status_description) {
2034 rajveer 1020
    this.status_description = status_description;
1021
  }
1022
 
1023
  public void unsetStatus_description() {
1024
    this.status_description = null;
1025
  }
1026
 
3430 rajveer 1027
  /** Returns true if field status_description is set (has been assigned a value) and false otherwise */
2034 rajveer 1028
  public boolean isSetStatus_description() {
1029
    return this.status_description != null;
1030
  }
1031
 
1032
  public void setStatus_descriptionIsSet(boolean value) {
1033
    if (!value) {
1034
      this.status_description = null;
1035
    }
1036
  }
1037
 
5336 rajveer 1038
  public int getOtherInfoSize() {
1039
    return (this.otherInfo == null) ? 0 : this.otherInfo.size();
1040
  }
1041
 
1042
  public void putToOtherInfo(String key, String val) {
1043
    if (this.otherInfo == null) {
1044
      this.otherInfo = new HashMap<String,String>();
1045
    }
1046
    this.otherInfo.put(key, val);
1047
  }
1048
 
1049
  public Map<String,String> getOtherInfo() {
1050
    return this.otherInfo;
1051
  }
1052
 
1053
  public void setOtherInfo(Map<String,String> otherInfo) {
1054
    this.otherInfo = otherInfo;
1055
  }
1056
 
1057
  public void unsetOtherInfo() {
1058
    this.otherInfo = null;
1059
  }
1060
 
1061
  /** Returns true if field otherInfo is set (has been assigned a value) and false otherwise */
1062
  public boolean isSetOtherInfo() {
1063
    return this.otherInfo != null;
1064
  }
1065
 
1066
  public void setOtherInfoIsSet(boolean value) {
1067
    if (!value) {
1068
      this.otherInfo = null;
1069
    }
1070
  }
1071
 
607 chandransh 1072
  public String getBestDealText() {
1073
    return this.bestDealText;
1074
  }
1075
 
3430 rajveer 1076
  public void setBestDealText(String bestDealText) {
607 chandransh 1077
    this.bestDealText = bestDealText;
1078
  }
1079
 
1080
  public void unsetBestDealText() {
1081
    this.bestDealText = null;
1082
  }
1083
 
3430 rajveer 1084
  /** Returns true if field bestDealText is set (has been assigned a value) and false otherwise */
607 chandransh 1085
  public boolean isSetBestDealText() {
1086
    return this.bestDealText != null;
1087
  }
1088
 
1089
  public void setBestDealTextIsSet(boolean value) {
1090
    if (!value) {
1091
      this.bestDealText = null;
1092
    }
1093
  }
1094
 
1095
  public double getBestDealValue() {
1096
    return this.bestDealValue;
1097
  }
1098
 
3430 rajveer 1099
  public void setBestDealValue(double bestDealValue) {
607 chandransh 1100
    this.bestDealValue = bestDealValue;
1101
    setBestDealValueIsSet(true);
1102
  }
1103
 
1104
  public void unsetBestDealValue() {
1105
    __isset_bit_vector.clear(__BESTDEALVALUE_ISSET_ID);
1106
  }
1107
 
3430 rajveer 1108
  /** Returns true if field bestDealValue is set (has been assigned a value) and false otherwise */
607 chandransh 1109
  public boolean isSetBestDealValue() {
1110
    return __isset_bit_vector.get(__BESTDEALVALUE_ISSET_ID);
1111
  }
1112
 
1113
  public void setBestDealValueIsSet(boolean value) {
1114
    __isset_bit_vector.set(__BESTDEALVALUE_ISSET_ID, value);
1115
  }
1116
 
1910 varun.gupt 1117
  public boolean isDefaultForEntity() {
1118
    return this.defaultForEntity;
1119
  }
1120
 
3430 rajveer 1121
  public void setDefaultForEntity(boolean defaultForEntity) {
1910 varun.gupt 1122
    this.defaultForEntity = defaultForEntity;
1123
    setDefaultForEntityIsSet(true);
1124
  }
1125
 
1126
  public void unsetDefaultForEntity() {
1127
    __isset_bit_vector.clear(__DEFAULTFORENTITY_ISSET_ID);
1128
  }
1129
 
3430 rajveer 1130
  /** Returns true if field defaultForEntity is set (has been assigned a value) and false otherwise */
1910 varun.gupt 1131
  public boolean isSetDefaultForEntity() {
1132
    return __isset_bit_vector.get(__DEFAULTFORENTITY_ISSET_ID);
1133
  }
1134
 
1135
  public void setDefaultForEntityIsSet(boolean value) {
1136
    __isset_bit_vector.set(__DEFAULTFORENTITY_ISSET_ID, value);
1137
  }
1138
 
607 chandransh 1139
  public long getUpdatedOn() {
1140
    return this.updatedOn;
1141
  }
1142
 
3430 rajveer 1143
  public void setUpdatedOn(long updatedOn) {
607 chandransh 1144
    this.updatedOn = updatedOn;
1145
    setUpdatedOnIsSet(true);
1146
  }
1147
 
1148
  public void unsetUpdatedOn() {
1149
    __isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
1150
  }
1151
 
3430 rajveer 1152
  /** Returns true if field updatedOn is set (has been assigned a value) and false otherwise */
607 chandransh 1153
  public boolean isSetUpdatedOn() {
1154
    return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
1155
  }
1156
 
1157
  public void setUpdatedOnIsSet(boolean value) {
1158
    __isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
1159
  }
1160
 
2064 ankur.sing 1161
  public long getBestSellingRank() {
1162
    return this.bestSellingRank;
1163
  }
1164
 
3430 rajveer 1165
  public void setBestSellingRank(long bestSellingRank) {
2064 ankur.sing 1166
    this.bestSellingRank = bestSellingRank;
1167
    setBestSellingRankIsSet(true);
1168
  }
1169
 
1170
  public void unsetBestSellingRank() {
1171
    __isset_bit_vector.clear(__BESTSELLINGRANK_ISSET_ID);
1172
  }
1173
 
3430 rajveer 1174
  /** Returns true if field bestSellingRank is set (has been assigned a value) and false otherwise */
2064 ankur.sing 1175
  public boolean isSetBestSellingRank() {
1176
    return __isset_bit_vector.get(__BESTSELLINGRANK_ISSET_ID);
1177
  }
1178
 
1179
  public void setBestSellingRankIsSet(boolean value) {
1180
    __isset_bit_vector.set(__BESTSELLINGRANK_ISSET_ID, value);
1181
  }
1182
 
2250 ankur.sing 1183
  public boolean isRisky() {
1184
    return this.risky;
1185
  }
1186
 
3430 rajveer 1187
  public void setRisky(boolean risky) {
2250 ankur.sing 1188
    this.risky = risky;
1189
    setRiskyIsSet(true);
1190
  }
1191
 
1192
  public void unsetRisky() {
1193
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
1194
  }
1195
 
3430 rajveer 1196
  /** Returns true if field risky is set (has been assigned a value) and false otherwise */
2250 ankur.sing 1197
  public boolean isSetRisky() {
1198
    return __isset_bit_vector.get(__RISKY_ISSET_ID);
1199
  }
1200
 
1201
  public void setRiskyIsSet(boolean value) {
1202
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
1203
  }
1204
 
3355 chandransh 1205
  public int getExpectedDelay() {
1206
    return this.expectedDelay;
1207
  }
1208
 
3430 rajveer 1209
  public void setExpectedDelay(int expectedDelay) {
3355 chandransh 1210
    this.expectedDelay = expectedDelay;
1211
    setExpectedDelayIsSet(true);
1212
  }
1213
 
1214
  public void unsetExpectedDelay() {
1215
    __isset_bit_vector.clear(__EXPECTEDDELAY_ISSET_ID);
1216
  }
1217
 
3430 rajveer 1218
  /** Returns true if field expectedDelay is set (has been assigned a value) and false otherwise */
3355 chandransh 1219
  public boolean isSetExpectedDelay() {
1220
    return __isset_bit_vector.get(__EXPECTEDDELAY_ISSET_ID);
1221
  }
1222
 
1223
  public void setExpectedDelayIsSet(boolean value) {
1224
    __isset_bit_vector.set(__EXPECTEDDELAY_ISSET_ID, value);
1225
  }
1226
 
4406 anupam.sin 1227
  public boolean isIsWarehousePreferenceSticky() {
1228
    return this.isWarehousePreferenceSticky;
1229
  }
1230
 
1231
  public void setIsWarehousePreferenceSticky(boolean isWarehousePreferenceSticky) {
1232
    this.isWarehousePreferenceSticky = isWarehousePreferenceSticky;
1233
    setIsWarehousePreferenceStickyIsSet(true);
1234
  }
1235
 
1236
  public void unsetIsWarehousePreferenceSticky() {
1237
    __isset_bit_vector.clear(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID);
1238
  }
1239
 
1240
  /** Returns true if field isWarehousePreferenceSticky is set (has been assigned a value) and false otherwise */
1241
  public boolean isSetIsWarehousePreferenceSticky() {
1242
    return __isset_bit_vector.get(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID);
1243
  }
1244
 
1245
  public void setIsWarehousePreferenceStickyIsSet(boolean value) {
1246
    __isset_bit_vector.set(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID, value);
1247
  }
1248
 
4295 varun.gupt 1249
  public int getWarrantyPeriod() {
1250
    return this.warrantyPeriod;
1251
  }
1252
 
1253
  public void setWarrantyPeriod(int warrantyPeriod) {
1254
    this.warrantyPeriod = warrantyPeriod;
1255
    setWarrantyPeriodIsSet(true);
1256
  }
1257
 
1258
  public void unsetWarrantyPeriod() {
1259
    __isset_bit_vector.clear(__WARRANTYPERIOD_ISSET_ID);
1260
  }
1261
 
1262
  /** Returns true if field warrantyPeriod is set (has been assigned a value) and false otherwise */
1263
  public boolean isSetWarrantyPeriod() {
1264
    return __isset_bit_vector.get(__WARRANTYPERIOD_ISSET_ID);
1265
  }
1266
 
1267
  public void setWarrantyPeriodIsSet(boolean value) {
1268
    __isset_bit_vector.set(__WARRANTYPERIOD_ISSET_ID, value);
1269
  }
1270
 
4506 phani.kuma 1271
  public long getPreferredVendor() {
1272
    return this.preferredVendor;
1273
  }
1274
 
1275
  public void setPreferredVendor(long preferredVendor) {
1276
    this.preferredVendor = preferredVendor;
1277
    setPreferredVendorIsSet(true);
1278
  }
1279
 
1280
  public void unsetPreferredVendor() {
1281
    __isset_bit_vector.clear(__PREFERREDVENDOR_ISSET_ID);
1282
  }
1283
 
1284
  /** Returns true if field preferredVendor is set (has been assigned a value) and false otherwise */
1285
  public boolean isSetPreferredVendor() {
1286
    return __isset_bit_vector.get(__PREFERREDVENDOR_ISSET_ID);
1287
  }
1288
 
1289
  public void setPreferredVendorIsSet(boolean value) {
1290
    __isset_bit_vector.set(__PREFERREDVENDOR_ISSET_ID, value);
1291
  }
1292
 
5110 mandeep.dh 1293
  /**
1294
   * 
1295
   * @see ItemType
1296
   */
1297
  public ItemType getType() {
1298
    return this.type;
1299
  }
1300
 
1301
  /**
1302
   * 
1303
   * @see ItemType
1304
   */
1305
  public void setType(ItemType type) {
1306
    this.type = type;
1307
  }
1308
 
1309
  public void unsetType() {
1310
    this.type = null;
1311
  }
1312
 
1313
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
1314
  public boolean isSetType() {
1315
    return this.type != null;
1316
  }
1317
 
1318
  public void setTypeIsSet(boolean value) {
1319
    if (!value) {
1320
      this.type = null;
1321
    }
1322
  }
1323
 
5217 amit.gupta 1324
  public long getComingSoonStartDate() {
1325
    return this.comingSoonStartDate;
1326
  }
1327
 
1328
  public void setComingSoonStartDate(long comingSoonStartDate) {
1329
    this.comingSoonStartDate = comingSoonStartDate;
1330
    setComingSoonStartDateIsSet(true);
1331
  }
1332
 
1333
  public void unsetComingSoonStartDate() {
1334
    __isset_bit_vector.clear(__COMINGSOONSTARTDATE_ISSET_ID);
1335
  }
1336
 
1337
  /** Returns true if field comingSoonStartDate is set (has been assigned a value) and false otherwise */
1338
  public boolean isSetComingSoonStartDate() {
1339
    return __isset_bit_vector.get(__COMINGSOONSTARTDATE_ISSET_ID);
1340
  }
1341
 
1342
  public void setComingSoonStartDateIsSet(boolean value) {
1343
    __isset_bit_vector.set(__COMINGSOONSTARTDATE_ISSET_ID, value);
1344
  }
1345
 
1346
  public long getExpectedArrivalDate() {
1347
    return this.expectedArrivalDate;
1348
  }
1349
 
1350
  public void setExpectedArrivalDate(long expectedArrivalDate) {
1351
    this.expectedArrivalDate = expectedArrivalDate;
1352
    setExpectedArrivalDateIsSet(true);
1353
  }
1354
 
1355
  public void unsetExpectedArrivalDate() {
1356
    __isset_bit_vector.clear(__EXPECTEDARRIVALDATE_ISSET_ID);
1357
  }
1358
 
1359
  /** Returns true if field expectedArrivalDate is set (has been assigned a value) and false otherwise */
1360
  public boolean isSetExpectedArrivalDate() {
1361
    return __isset_bit_vector.get(__EXPECTEDARRIVALDATE_ISSET_ID);
1362
  }
1363
 
1364
  public void setExpectedArrivalDateIsSet(boolean value) {
1365
    __isset_bit_vector.set(__EXPECTEDARRIVALDATE_ISSET_ID, value);
1366
  }
1367
 
5385 phani.kuma 1368
  public boolean isHasItemNo() {
1369
    return this.hasItemNo;
1370
  }
1371
 
1372
  public void setHasItemNo(boolean hasItemNo) {
1373
    this.hasItemNo = hasItemNo;
1374
    setHasItemNoIsSet(true);
1375
  }
1376
 
1377
  public void unsetHasItemNo() {
1378
    __isset_bit_vector.clear(__HASITEMNO_ISSET_ID);
1379
  }
1380
 
1381
  /** Returns true if field hasItemNo is set (has been assigned a value) and false otherwise */
1382
  public boolean isSetHasItemNo() {
1383
    return __isset_bit_vector.get(__HASITEMNO_ISSET_ID);
1384
  }
1385
 
1386
  public void setHasItemNoIsSet(boolean value) {
1387
    __isset_bit_vector.set(__HASITEMNO_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
 
5336 rajveer 1480
    case ITEM_INVENTORY:
1481
      if (value == null) {
1482
        unsetItemInventory();
1483
      } else {
1484
        setItemInventory((ItemInventory)value);
1485
      }
1486
      break;
1487
 
483 rajveer 1488
    case MRP:
103 ashish 1489
      if (value == null) {
483 rajveer 1490
        unsetMrp();
103 ashish 1491
      } else {
483 rajveer 1492
        setMrp((Double)value);
103 ashish 1493
      }
1494
      break;
1495
 
483 rajveer 1496
    case SELLING_PRICE:
1497
      if (value == null) {
1498
        unsetSellingPrice();
1499
      } else {
1500
        setSellingPrice((Double)value);
1501
      }
1502
      break;
1503
 
123 ashish 1504
    case WEIGHT:
1505
      if (value == null) {
1506
        unsetWeight();
1507
      } else {
1508
        setWeight((Double)value);
1509
      }
1510
      break;
1511
 
483 rajveer 1512
    case ADDED_ON:
123 ashish 1513
      if (value == null) {
483 rajveer 1514
        unsetAddedOn();
123 ashish 1515
      } else {
483 rajveer 1516
        setAddedOn((Long)value);
123 ashish 1517
      }
1518
      break;
1519
 
483 rajveer 1520
    case START_DATE:
123 ashish 1521
      if (value == null) {
483 rajveer 1522
        unsetStartDate();
123 ashish 1523
      } else {
483 rajveer 1524
        setStartDate((Long)value);
123 ashish 1525
      }
1526
      break;
1527
 
483 rajveer 1528
    case RETIRE_DATE:
123 ashish 1529
      if (value == null) {
483 rajveer 1530
        unsetRetireDate();
123 ashish 1531
      } else {
483 rajveer 1532
        setRetireDate((Long)value);
123 ashish 1533
      }
1534
      break;
1535
 
483 rajveer 1536
    case ITEM_STATUS:
1537
      if (value == null) {
1538
        unsetItemStatus();
1539
      } else {
1540
        setItemStatus((status)value);
1541
      }
1542
      break;
1543
 
2034 rajveer 1544
    case STATUS_DESCRIPTION:
1545
      if (value == null) {
1546
        unsetStatus_description();
1547
      } else {
1548
        setStatus_description((String)value);
1549
      }
1550
      break;
1551
 
5336 rajveer 1552
    case OTHER_INFO:
1553
      if (value == null) {
1554
        unsetOtherInfo();
1555
      } else {
1556
        setOtherInfo((Map<String,String>)value);
1557
      }
1558
      break;
1559
 
607 chandransh 1560
    case BEST_DEAL_TEXT:
1561
      if (value == null) {
1562
        unsetBestDealText();
1563
      } else {
1564
        setBestDealText((String)value);
1565
      }
1566
      break;
1567
 
1568
    case BEST_DEAL_VALUE:
1569
      if (value == null) {
1570
        unsetBestDealValue();
1571
      } else {
1572
        setBestDealValue((Double)value);
1573
      }
1574
      break;
1575
 
1910 varun.gupt 1576
    case DEFAULT_FOR_ENTITY:
1577
      if (value == null) {
1578
        unsetDefaultForEntity();
1579
      } else {
1580
        setDefaultForEntity((Boolean)value);
1581
      }
1582
      break;
1583
 
607 chandransh 1584
    case UPDATED_ON:
1585
      if (value == null) {
1586
        unsetUpdatedOn();
1587
      } else {
1588
        setUpdatedOn((Long)value);
1589
      }
1590
      break;
1591
 
2064 ankur.sing 1592
    case BEST_SELLING_RANK:
1593
      if (value == null) {
1594
        unsetBestSellingRank();
1595
      } else {
1596
        setBestSellingRank((Long)value);
1597
      }
1598
      break;
1599
 
2250 ankur.sing 1600
    case RISKY:
1601
      if (value == null) {
1602
        unsetRisky();
1603
      } else {
1604
        setRisky((Boolean)value);
1605
      }
1606
      break;
1607
 
3355 chandransh 1608
    case EXPECTED_DELAY:
1609
      if (value == null) {
1610
        unsetExpectedDelay();
1611
      } else {
1612
        setExpectedDelay((Integer)value);
1613
      }
1614
      break;
1615
 
4406 anupam.sin 1616
    case IS_WAREHOUSE_PREFERENCE_STICKY:
1617
      if (value == null) {
1618
        unsetIsWarehousePreferenceSticky();
1619
      } else {
1620
        setIsWarehousePreferenceSticky((Boolean)value);
1621
      }
1622
      break;
1623
 
4295 varun.gupt 1624
    case WARRANTY_PERIOD:
1625
      if (value == null) {
1626
        unsetWarrantyPeriod();
1627
      } else {
1628
        setWarrantyPeriod((Integer)value);
1629
      }
1630
      break;
1631
 
4506 phani.kuma 1632
    case PREFERRED_VENDOR:
1633
      if (value == null) {
1634
        unsetPreferredVendor();
1635
      } else {
1636
        setPreferredVendor((Long)value);
1637
      }
1638
      break;
1639
 
5110 mandeep.dh 1640
    case TYPE:
1641
      if (value == null) {
1642
        unsetType();
1643
      } else {
1644
        setType((ItemType)value);
1645
      }
1646
      break;
1647
 
5217 amit.gupta 1648
    case COMING_SOON_START_DATE:
1649
      if (value == null) {
1650
        unsetComingSoonStartDate();
1651
      } else {
1652
        setComingSoonStartDate((Long)value);
1653
      }
1654
      break;
1655
 
1656
    case EXPECTED_ARRIVAL_DATE:
1657
      if (value == null) {
1658
        unsetExpectedArrivalDate();
1659
      } else {
1660
        setExpectedArrivalDate((Long)value);
1661
      }
1662
      break;
1663
 
5385 phani.kuma 1664
    case HAS_ITEM_NO:
1665
      if (value == null) {
1666
        unsetHasItemNo();
1667
      } else {
1668
        setHasItemNo((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
 
5336 rajveer 1710
    case ITEM_INVENTORY:
1711
      return getItemInventory();
1712
 
483 rajveer 1713
    case MRP:
3430 rajveer 1714
      return Double.valueOf(getMrp());
483 rajveer 1715
 
1716
    case SELLING_PRICE:
3430 rajveer 1717
      return Double.valueOf(getSellingPrice());
483 rajveer 1718
 
1719
    case WEIGHT:
3430 rajveer 1720
      return Double.valueOf(getWeight());
483 rajveer 1721
 
103 ashish 1722
    case ADDED_ON:
3430 rajveer 1723
      return Long.valueOf(getAddedOn());
103 ashish 1724
 
1725
    case START_DATE:
3430 rajveer 1726
      return Long.valueOf(getStartDate());
103 ashish 1727
 
483 rajveer 1728
    case RETIRE_DATE:
3430 rajveer 1729
      return Long.valueOf(getRetireDate());
483 rajveer 1730
 
103 ashish 1731
    case ITEM_STATUS:
1732
      return getItemStatus();
1733
 
2034 rajveer 1734
    case STATUS_DESCRIPTION:
1735
      return getStatus_description();
1736
 
5336 rajveer 1737
    case OTHER_INFO:
1738
      return getOtherInfo();
1739
 
607 chandransh 1740
    case BEST_DEAL_TEXT:
1741
      return getBestDealText();
1742
 
1743
    case BEST_DEAL_VALUE:
3430 rajveer 1744
      return Double.valueOf(getBestDealValue());
607 chandransh 1745
 
1910 varun.gupt 1746
    case DEFAULT_FOR_ENTITY:
3430 rajveer 1747
      return Boolean.valueOf(isDefaultForEntity());
1910 varun.gupt 1748
 
607 chandransh 1749
    case UPDATED_ON:
3430 rajveer 1750
      return Long.valueOf(getUpdatedOn());
607 chandransh 1751
 
2064 ankur.sing 1752
    case BEST_SELLING_RANK:
3430 rajveer 1753
      return Long.valueOf(getBestSellingRank());
2064 ankur.sing 1754
 
2250 ankur.sing 1755
    case RISKY:
3430 rajveer 1756
      return Boolean.valueOf(isRisky());
2250 ankur.sing 1757
 
3355 chandransh 1758
    case EXPECTED_DELAY:
3430 rajveer 1759
      return Integer.valueOf(getExpectedDelay());
3355 chandransh 1760
 
4406 anupam.sin 1761
    case IS_WAREHOUSE_PREFERENCE_STICKY:
1762
      return Boolean.valueOf(isIsWarehousePreferenceSticky());
1763
 
4295 varun.gupt 1764
    case WARRANTY_PERIOD:
1765
      return Integer.valueOf(getWarrantyPeriod());
1766
 
4506 phani.kuma 1767
    case PREFERRED_VENDOR:
1768
      return Long.valueOf(getPreferredVendor());
1769
 
5110 mandeep.dh 1770
    case TYPE:
1771
      return getType();
1772
 
5217 amit.gupta 1773
    case COMING_SOON_START_DATE:
1774
      return Long.valueOf(getComingSoonStartDate());
1775
 
1776
    case EXPECTED_ARRIVAL_DATE:
1777
      return Long.valueOf(getExpectedArrivalDate());
1778
 
5385 phani.kuma 1779
    case HAS_ITEM_NO:
1780
      return Boolean.valueOf(isHasItemNo());
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();
5336 rajveer 1815
    case ITEM_INVENTORY:
1816
      return isSetItemInventory();
483 rajveer 1817
    case MRP:
1818
      return isSetMrp();
1819
    case SELLING_PRICE:
1820
      return isSetSellingPrice();
1821
    case WEIGHT:
1822
      return isSetWeight();
103 ashish 1823
    case ADDED_ON:
1824
      return isSetAddedOn();
1825
    case START_DATE:
1826
      return isSetStartDate();
483 rajveer 1827
    case RETIRE_DATE:
1828
      return isSetRetireDate();
103 ashish 1829
    case ITEM_STATUS:
1830
      return isSetItemStatus();
2034 rajveer 1831
    case STATUS_DESCRIPTION:
1832
      return isSetStatus_description();
5336 rajveer 1833
    case OTHER_INFO:
1834
      return isSetOtherInfo();
607 chandransh 1835
    case BEST_DEAL_TEXT:
1836
      return isSetBestDealText();
1837
    case BEST_DEAL_VALUE:
1838
      return isSetBestDealValue();
1910 varun.gupt 1839
    case DEFAULT_FOR_ENTITY:
1840
      return isSetDefaultForEntity();
607 chandransh 1841
    case UPDATED_ON:
1842
      return isSetUpdatedOn();
2064 ankur.sing 1843
    case BEST_SELLING_RANK:
1844
      return isSetBestSellingRank();
2250 ankur.sing 1845
    case RISKY:
1846
      return isSetRisky();
3355 chandransh 1847
    case EXPECTED_DELAY:
1848
      return isSetExpectedDelay();
4406 anupam.sin 1849
    case IS_WAREHOUSE_PREFERENCE_STICKY:
1850
      return isSetIsWarehousePreferenceSticky();
4295 varun.gupt 1851
    case WARRANTY_PERIOD:
1852
      return isSetWarrantyPeriod();
4506 phani.kuma 1853
    case PREFERRED_VENDOR:
1854
      return isSetPreferredVendor();
5110 mandeep.dh 1855
    case TYPE:
1856
      return isSetType();
5217 amit.gupta 1857
    case COMING_SOON_START_DATE:
1858
      return isSetComingSoonStartDate();
1859
    case EXPECTED_ARRIVAL_DATE:
1860
      return isSetExpectedArrivalDate();
5385 phani.kuma 1861
    case HAS_ITEM_NO:
1862
      return isSetHasItemNo();
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
 
5336 rajveer 1979
    boolean this_present_itemInventory = true && this.isSetItemInventory();
1980
    boolean that_present_itemInventory = true && that.isSetItemInventory();
1981
    if (this_present_itemInventory || that_present_itemInventory) {
1982
      if (!(this_present_itemInventory && that_present_itemInventory))
1983
        return false;
1984
      if (!this.itemInventory.equals(that.itemInventory))
1985
        return false;
1986
    }
1987
 
2128 ankur.sing 1988
    boolean this_present_mrp = true && this.isSetMrp();
1989
    boolean that_present_mrp = true && that.isSetMrp();
483 rajveer 1990
    if (this_present_mrp || that_present_mrp) {
1991
      if (!(this_present_mrp && that_present_mrp))
1992
        return false;
1993
      if (this.mrp != that.mrp)
1994
        return false;
1995
    }
1996
 
2128 ankur.sing 1997
    boolean this_present_sellingPrice = true && this.isSetSellingPrice();
1998
    boolean that_present_sellingPrice = true && that.isSetSellingPrice();
483 rajveer 1999
    if (this_present_sellingPrice || that_present_sellingPrice) {
2000
      if (!(this_present_sellingPrice && that_present_sellingPrice))
2001
        return false;
2002
      if (this.sellingPrice != that.sellingPrice)
2003
        return false;
2004
    }
2005
 
2128 ankur.sing 2006
    boolean this_present_weight = true && this.isSetWeight();
2007
    boolean that_present_weight = true && that.isSetWeight();
483 rajveer 2008
    if (this_present_weight || that_present_weight) {
2009
      if (!(this_present_weight && that_present_weight))
2010
        return false;
2011
      if (this.weight != that.weight)
2012
        return false;
2013
    }
2014
 
103 ashish 2015
    boolean this_present_addedOn = true;
2016
    boolean that_present_addedOn = true;
2017
    if (this_present_addedOn || that_present_addedOn) {
2018
      if (!(this_present_addedOn && that_present_addedOn))
2019
        return false;
2020
      if (this.addedOn != that.addedOn)
2021
        return false;
2022
    }
2023
 
2491 ankur.sing 2024
    boolean this_present_startDate = true && this.isSetStartDate();
2025
    boolean that_present_startDate = true && that.isSetStartDate();
103 ashish 2026
    if (this_present_startDate || that_present_startDate) {
2027
      if (!(this_present_startDate && that_present_startDate))
2028
        return false;
2029
      if (this.startDate != that.startDate)
2030
        return false;
2031
    }
2032
 
2491 ankur.sing 2033
    boolean this_present_retireDate = true && this.isSetRetireDate();
2034
    boolean that_present_retireDate = true && that.isSetRetireDate();
483 rajveer 2035
    if (this_present_retireDate || that_present_retireDate) {
2036
      if (!(this_present_retireDate && that_present_retireDate))
2037
        return false;
2038
      if (this.retireDate != that.retireDate)
2039
        return false;
2040
    }
2041
 
103 ashish 2042
    boolean this_present_itemStatus = true && this.isSetItemStatus();
2043
    boolean that_present_itemStatus = true && that.isSetItemStatus();
2044
    if (this_present_itemStatus || that_present_itemStatus) {
2045
      if (!(this_present_itemStatus && that_present_itemStatus))
2046
        return false;
2047
      if (!this.itemStatus.equals(that.itemStatus))
2048
        return false;
2049
    }
2050
 
2034 rajveer 2051
    boolean this_present_status_description = true && this.isSetStatus_description();
2052
    boolean that_present_status_description = true && that.isSetStatus_description();
2053
    if (this_present_status_description || that_present_status_description) {
2054
      if (!(this_present_status_description && that_present_status_description))
2055
        return false;
2056
      if (!this.status_description.equals(that.status_description))
2057
        return false;
2058
    }
2059
 
5336 rajveer 2060
    boolean this_present_otherInfo = true && this.isSetOtherInfo();
2061
    boolean that_present_otherInfo = true && that.isSetOtherInfo();
2062
    if (this_present_otherInfo || that_present_otherInfo) {
2063
      if (!(this_present_otherInfo && that_present_otherInfo))
2064
        return false;
2065
      if (!this.otherInfo.equals(that.otherInfo))
2066
        return false;
2067
    }
2068
 
607 chandransh 2069
    boolean this_present_bestDealText = true && this.isSetBestDealText();
2070
    boolean that_present_bestDealText = true && that.isSetBestDealText();
2071
    if (this_present_bestDealText || that_present_bestDealText) {
2072
      if (!(this_present_bestDealText && that_present_bestDealText))
2073
        return false;
2074
      if (!this.bestDealText.equals(that.bestDealText))
2075
        return false;
2076
    }
2077
 
2128 ankur.sing 2078
    boolean this_present_bestDealValue = true && this.isSetBestDealValue();
2079
    boolean that_present_bestDealValue = true && that.isSetBestDealValue();
607 chandransh 2080
    if (this_present_bestDealValue || that_present_bestDealValue) {
2081
      if (!(this_present_bestDealValue && that_present_bestDealValue))
2082
        return false;
2083
      if (this.bestDealValue != that.bestDealValue)
2084
        return false;
2085
    }
2086
 
1910 varun.gupt 2087
    boolean this_present_defaultForEntity = true;
2088
    boolean that_present_defaultForEntity = true;
2089
    if (this_present_defaultForEntity || that_present_defaultForEntity) {
2090
      if (!(this_present_defaultForEntity && that_present_defaultForEntity))
2091
        return false;
2092
      if (this.defaultForEntity != that.defaultForEntity)
2093
        return false;
2094
    }
2095
 
607 chandransh 2096
    boolean this_present_updatedOn = true;
2097
    boolean that_present_updatedOn = true;
2098
    if (this_present_updatedOn || that_present_updatedOn) {
2099
      if (!(this_present_updatedOn && that_present_updatedOn))
2100
        return false;
2101
      if (this.updatedOn != that.updatedOn)
2102
        return false;
2103
    }
2104
 
2128 ankur.sing 2105
    boolean this_present_bestSellingRank = true && this.isSetBestSellingRank();
2106
    boolean that_present_bestSellingRank = true && that.isSetBestSellingRank();
2064 ankur.sing 2107
    if (this_present_bestSellingRank || that_present_bestSellingRank) {
2108
      if (!(this_present_bestSellingRank && that_present_bestSellingRank))
2109
        return false;
2110
      if (this.bestSellingRank != that.bestSellingRank)
2111
        return false;
2112
    }
2113
 
2250 ankur.sing 2114
    boolean this_present_risky = true;
2115
    boolean that_present_risky = true;
2116
    if (this_present_risky || that_present_risky) {
2117
      if (!(this_present_risky && that_present_risky))
2118
        return false;
2119
      if (this.risky != that.risky)
2120
        return false;
2121
    }
2122
 
3355 chandransh 2123
    boolean this_present_expectedDelay = true && this.isSetExpectedDelay();
2124
    boolean that_present_expectedDelay = true && that.isSetExpectedDelay();
2125
    if (this_present_expectedDelay || that_present_expectedDelay) {
2126
      if (!(this_present_expectedDelay && that_present_expectedDelay))
2127
        return false;
2128
      if (this.expectedDelay != that.expectedDelay)
2129
        return false;
2130
    }
2131
 
4406 anupam.sin 2132
    boolean this_present_isWarehousePreferenceSticky = true && this.isSetIsWarehousePreferenceSticky();
2133
    boolean that_present_isWarehousePreferenceSticky = true && that.isSetIsWarehousePreferenceSticky();
2134
    if (this_present_isWarehousePreferenceSticky || that_present_isWarehousePreferenceSticky) {
2135
      if (!(this_present_isWarehousePreferenceSticky && that_present_isWarehousePreferenceSticky))
2136
        return false;
2137
      if (this.isWarehousePreferenceSticky != that.isWarehousePreferenceSticky)
2138
        return false;
2139
    }
2140
 
4295 varun.gupt 2141
    boolean this_present_warrantyPeriod = true;
2142
    boolean that_present_warrantyPeriod = true;
2143
    if (this_present_warrantyPeriod || that_present_warrantyPeriod) {
2144
      if (!(this_present_warrantyPeriod && that_present_warrantyPeriod))
2145
        return false;
2146
      if (this.warrantyPeriod != that.warrantyPeriod)
2147
        return false;
2148
    }
2149
 
4506 phani.kuma 2150
    boolean this_present_preferredVendor = true && this.isSetPreferredVendor();
2151
    boolean that_present_preferredVendor = true && that.isSetPreferredVendor();
2152
    if (this_present_preferredVendor || that_present_preferredVendor) {
2153
      if (!(this_present_preferredVendor && that_present_preferredVendor))
2154
        return false;
2155
      if (this.preferredVendor != that.preferredVendor)
2156
        return false;
2157
    }
2158
 
5110 mandeep.dh 2159
    boolean this_present_type = true && this.isSetType();
2160
    boolean that_present_type = true && that.isSetType();
2161
    if (this_present_type || that_present_type) {
2162
      if (!(this_present_type && that_present_type))
2163
        return false;
2164
      if (!this.type.equals(that.type))
2165
        return false;
2166
    }
2167
 
5217 amit.gupta 2168
    boolean this_present_comingSoonStartDate = true && this.isSetComingSoonStartDate();
2169
    boolean that_present_comingSoonStartDate = true && that.isSetComingSoonStartDate();
2170
    if (this_present_comingSoonStartDate || that_present_comingSoonStartDate) {
2171
      if (!(this_present_comingSoonStartDate && that_present_comingSoonStartDate))
2172
        return false;
2173
      if (this.comingSoonStartDate != that.comingSoonStartDate)
2174
        return false;
2175
    }
2176
 
2177
    boolean this_present_expectedArrivalDate = true && this.isSetExpectedArrivalDate();
2178
    boolean that_present_expectedArrivalDate = true && that.isSetExpectedArrivalDate();
2179
    if (this_present_expectedArrivalDate || that_present_expectedArrivalDate) {
2180
      if (!(this_present_expectedArrivalDate && that_present_expectedArrivalDate))
2181
        return false;
2182
      if (this.expectedArrivalDate != that.expectedArrivalDate)
2183
        return false;
2184
    }
2185
 
5385 phani.kuma 2186
    boolean this_present_hasItemNo = true;
2187
    boolean that_present_hasItemNo = true;
2188
    if (this_present_hasItemNo || that_present_hasItemNo) {
2189
      if (!(this_present_hasItemNo && that_present_hasItemNo))
2190
        return false;
2191
      if (this.hasItemNo != that.hasItemNo)
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
    }
5336 rajveer 2321
    lastComparison = Boolean.valueOf(isSetItemInventory()).compareTo(typedOther.isSetItemInventory());
2322
    if (lastComparison != 0) {
2323
      return lastComparison;
2324
    }
2325
    if (isSetItemInventory()) {
2326
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemInventory, typedOther.itemInventory);
2327
      if (lastComparison != 0) {
2328
        return lastComparison;
2329
      }
2330
    }
3430 rajveer 2331
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
2332
    if (lastComparison != 0) {
2333
      return lastComparison;
2334
    }
2335
    if (isSetMrp()) {
2336
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
2337
      if (lastComparison != 0) {
2338
        return lastComparison;
2339
      }
2340
    }
2341
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
2342
    if (lastComparison != 0) {
2343
      return lastComparison;
2344
    }
2345
    if (isSetSellingPrice()) {
2346
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
2347
      if (lastComparison != 0) {
2348
        return lastComparison;
2349
      }
2350
    }
2351
    lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
2352
    if (lastComparison != 0) {
2353
      return lastComparison;
2354
    }
2355
    if (isSetWeight()) {
2356
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
2357
      if (lastComparison != 0) {
2358
        return lastComparison;
2359
      }
2360
    }
2361
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
2362
    if (lastComparison != 0) {
2363
      return lastComparison;
2364
    }
2365
    if (isSetAddedOn()) {
2366
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
2367
      if (lastComparison != 0) {
2368
        return lastComparison;
2369
      }
2370
    }
2371
    lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
2372
    if (lastComparison != 0) {
2373
      return lastComparison;
2374
    }
2375
    if (isSetStartDate()) {
2376
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
2377
      if (lastComparison != 0) {
2378
        return lastComparison;
2379
      }
2380
    }
2381
    lastComparison = Boolean.valueOf(isSetRetireDate()).compareTo(typedOther.isSetRetireDate());
2382
    if (lastComparison != 0) {
2383
      return lastComparison;
2384
    }
2385
    if (isSetRetireDate()) {
2386
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retireDate, typedOther.retireDate);
2387
      if (lastComparison != 0) {
2388
        return lastComparison;
2389
      }
2390
    }
2391
    lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
2392
    if (lastComparison != 0) {
2393
      return lastComparison;
2394
    }
2395
    if (isSetItemStatus()) {
2396
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
2397
      if (lastComparison != 0) {
2398
        return lastComparison;
2399
      }
2400
    }
2401
    lastComparison = Boolean.valueOf(isSetStatus_description()).compareTo(typedOther.isSetStatus_description());
2402
    if (lastComparison != 0) {
2403
      return lastComparison;
2404
    }
2405
    if (isSetStatus_description()) {
2406
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status_description, typedOther.status_description);
2407
      if (lastComparison != 0) {
2408
        return lastComparison;
2409
      }
2410
    }
5336 rajveer 2411
    lastComparison = Boolean.valueOf(isSetOtherInfo()).compareTo(typedOther.isSetOtherInfo());
2412
    if (lastComparison != 0) {
2413
      return lastComparison;
2414
    }
2415
    if (isSetOtherInfo()) {
2416
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherInfo, typedOther.otherInfo);
2417
      if (lastComparison != 0) {
2418
        return lastComparison;
2419
      }
2420
    }
3430 rajveer 2421
    lastComparison = Boolean.valueOf(isSetBestDealText()).compareTo(typedOther.isSetBestDealText());
2422
    if (lastComparison != 0) {
2423
      return lastComparison;
2424
    }
2425
    if (isSetBestDealText()) {
2426
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealText, typedOther.bestDealText);
2427
      if (lastComparison != 0) {
2428
        return lastComparison;
2429
      }
2430
    }
2431
    lastComparison = Boolean.valueOf(isSetBestDealValue()).compareTo(typedOther.isSetBestDealValue());
2432
    if (lastComparison != 0) {
2433
      return lastComparison;
2434
    }
2435
    if (isSetBestDealValue()) {
2436
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealValue, typedOther.bestDealValue);
2437
      if (lastComparison != 0) {
2438
        return lastComparison;
2439
      }
2440
    }
2441
    lastComparison = Boolean.valueOf(isSetDefaultForEntity()).compareTo(typedOther.isSetDefaultForEntity());
2442
    if (lastComparison != 0) {
2443
      return lastComparison;
2444
    }
2445
    if (isSetDefaultForEntity()) {
2446
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultForEntity, typedOther.defaultForEntity);
2447
      if (lastComparison != 0) {
2448
        return lastComparison;
2449
      }
2450
    }
2451
    lastComparison = Boolean.valueOf(isSetUpdatedOn()).compareTo(typedOther.isSetUpdatedOn());
2452
    if (lastComparison != 0) {
2453
      return lastComparison;
2454
    }
2455
    if (isSetUpdatedOn()) {
2456
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedOn, typedOther.updatedOn);
2457
      if (lastComparison != 0) {
2458
        return lastComparison;
2459
      }
2460
    }
2461
    lastComparison = Boolean.valueOf(isSetBestSellingRank()).compareTo(typedOther.isSetBestSellingRank());
2462
    if (lastComparison != 0) {
2463
      return lastComparison;
2464
    }
2465
    if (isSetBestSellingRank()) {
2466
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestSellingRank, typedOther.bestSellingRank);
2467
      if (lastComparison != 0) {
2468
        return lastComparison;
2469
      }
2470
    }
2471
    lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
2472
    if (lastComparison != 0) {
2473
      return lastComparison;
2474
    }
2475
    if (isSetRisky()) {
2476
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
2477
      if (lastComparison != 0) {
2478
        return lastComparison;
2479
      }
2480
    }
2481
    lastComparison = Boolean.valueOf(isSetExpectedDelay()).compareTo(typedOther.isSetExpectedDelay());
2482
    if (lastComparison != 0) {
2483
      return lastComparison;
2484
    }
2485
    if (isSetExpectedDelay()) {
2486
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expectedDelay, typedOther.expectedDelay);
2487
      if (lastComparison != 0) {
2488
        return lastComparison;
2489
      }
2490
    }
4406 anupam.sin 2491
    lastComparison = Boolean.valueOf(isSetIsWarehousePreferenceSticky()).compareTo(typedOther.isSetIsWarehousePreferenceSticky());
2492
    if (lastComparison != 0) {
2493
      return lastComparison;
2494
    }
2495
    if (isSetIsWarehousePreferenceSticky()) {
2496
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWarehousePreferenceSticky, typedOther.isWarehousePreferenceSticky);
2497
      if (lastComparison != 0) {
2498
        return lastComparison;
2499
      }
2500
    }
4295 varun.gupt 2501
    lastComparison = Boolean.valueOf(isSetWarrantyPeriod()).compareTo(typedOther.isSetWarrantyPeriod());
2502
    if (lastComparison != 0) {
2503
      return lastComparison;
2504
    }
2505
    if (isSetWarrantyPeriod()) {
2506
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warrantyPeriod, typedOther.warrantyPeriod);
2507
      if (lastComparison != 0) {
2508
        return lastComparison;
2509
      }
2510
    }
4506 phani.kuma 2511
    lastComparison = Boolean.valueOf(isSetPreferredVendor()).compareTo(typedOther.isSetPreferredVendor());
2512
    if (lastComparison != 0) {
2513
      return lastComparison;
2514
    }
2515
    if (isSetPreferredVendor()) {
2516
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preferredVendor, typedOther.preferredVendor);
2517
      if (lastComparison != 0) {
2518
        return lastComparison;
2519
      }
2520
    }
5110 mandeep.dh 2521
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2522
    if (lastComparison != 0) {
2523
      return lastComparison;
2524
    }
2525
    if (isSetType()) {
2526
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
2527
      if (lastComparison != 0) {
2528
        return lastComparison;
2529
      }
2530
    }
5217 amit.gupta 2531
    lastComparison = Boolean.valueOf(isSetComingSoonStartDate()).compareTo(typedOther.isSetComingSoonStartDate());
2532
    if (lastComparison != 0) {
2533
      return lastComparison;
2534
    }
2535
    if (isSetComingSoonStartDate()) {
2536
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comingSoonStartDate, typedOther.comingSoonStartDate);
2537
      if (lastComparison != 0) {
2538
        return lastComparison;
2539
      }
2540
    }
2541
    lastComparison = Boolean.valueOf(isSetExpectedArrivalDate()).compareTo(typedOther.isSetExpectedArrivalDate());
2542
    if (lastComparison != 0) {
2543
      return lastComparison;
2544
    }
2545
    if (isSetExpectedArrivalDate()) {
2546
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expectedArrivalDate, typedOther.expectedArrivalDate);
2547
      if (lastComparison != 0) {
2548
        return lastComparison;
2549
      }
2550
    }
5385 phani.kuma 2551
    lastComparison = Boolean.valueOf(isSetHasItemNo()).compareTo(typedOther.isSetHasItemNo());
2552
    if (lastComparison != 0) {
2553
      return lastComparison;
2554
    }
2555
    if (isSetHasItemNo()) {
2556
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasItemNo, typedOther.hasItemNo);
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;
5336 rajveer 2659
        case 12: // ITEM_INVENTORY
2660
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2661
            this.itemInventory = new ItemInventory();
2662
            this.itemInventory.read(iprot);
2663
          } else { 
2664
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2665
          }
2666
          break;
3430 rajveer 2667
        case 13: // MRP
2668
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2669
            this.mrp = iprot.readDouble();
2670
            setMrpIsSet(true);
2671
          } else { 
2672
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2673
          }
2674
          break;
4762 phani.kuma 2675
        case 14: // SELLING_PRICE
3430 rajveer 2676
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2677
            this.sellingPrice = iprot.readDouble();
2678
            setSellingPriceIsSet(true);
2679
          } else { 
2680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2681
          }
2682
          break;
4762 phani.kuma 2683
        case 15: // WEIGHT
3430 rajveer 2684
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2685
            this.weight = iprot.readDouble();
2686
            setWeightIsSet(true);
2687
          } else { 
2688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2689
          }
2690
          break;
4762 phani.kuma 2691
        case 16: // ADDED_ON
3430 rajveer 2692
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2693
            this.addedOn = iprot.readI64();
2694
            setAddedOnIsSet(true);
2695
          } else { 
2696
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2697
          }
2698
          break;
4762 phani.kuma 2699
        case 17: // START_DATE
3430 rajveer 2700
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2701
            this.startDate = iprot.readI64();
2702
            setStartDateIsSet(true);
2703
          } else { 
2704
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2705
          }
2706
          break;
4762 phani.kuma 2707
        case 18: // RETIRE_DATE
3430 rajveer 2708
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2709
            this.retireDate = iprot.readI64();
2710
            setRetireDateIsSet(true);
2711
          } else { 
2712
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2713
          }
2714
          break;
4762 phani.kuma 2715
        case 19: // ITEM_STATUS
3430 rajveer 2716
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2717
            this.itemStatus = status.findByValue(iprot.readI32());
2718
          } else { 
2719
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2720
          }
2721
          break;
4762 phani.kuma 2722
        case 20: // STATUS_DESCRIPTION
3430 rajveer 2723
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2724
            this.status_description = iprot.readString();
2725
          } else { 
2726
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2727
          }
2728
          break;
5336 rajveer 2729
        case 21: // OTHER_INFO
2730
          if (field.type == org.apache.thrift.protocol.TType.MAP) {
2731
            {
2732
              org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
2733
              this.otherInfo = new HashMap<String,String>(2*_map10.size);
2734
              for (int _i11 = 0; _i11 < _map10.size; ++_i11)
2735
              {
2736
                String _key12; // required
2737
                String _val13; // required
2738
                _key12 = iprot.readString();
2739
                _val13 = iprot.readString();
2740
                this.otherInfo.put(_key12, _val13);
2741
              }
2742
              iprot.readMapEnd();
2743
            }
2744
          } else { 
2745
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2746
          }
2747
          break;
4762 phani.kuma 2748
        case 22: // BEST_DEAL_TEXT
3430 rajveer 2749
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2750
            this.bestDealText = iprot.readString();
2751
          } else { 
2752
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2753
          }
2754
          break;
4762 phani.kuma 2755
        case 23: // BEST_DEAL_VALUE
3430 rajveer 2756
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2757
            this.bestDealValue = iprot.readDouble();
2758
            setBestDealValueIsSet(true);
2759
          } else { 
2760
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2761
          }
2762
          break;
4762 phani.kuma 2763
        case 24: // DEFAULT_FOR_ENTITY
3430 rajveer 2764
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2765
            this.defaultForEntity = iprot.readBool();
2766
            setDefaultForEntityIsSet(true);
2767
          } else { 
2768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2769
          }
2770
          break;
4762 phani.kuma 2771
        case 25: // UPDATED_ON
3430 rajveer 2772
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2773
            this.updatedOn = iprot.readI64();
2774
            setUpdatedOnIsSet(true);
2775
          } else { 
2776
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2777
          }
2778
          break;
4762 phani.kuma 2779
        case 26: // BEST_SELLING_RANK
3430 rajveer 2780
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2781
            this.bestSellingRank = iprot.readI64();
2782
            setBestSellingRankIsSet(true);
2783
          } else { 
2784
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2785
          }
2786
          break;
4762 phani.kuma 2787
        case 27: // RISKY
3430 rajveer 2788
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2789
            this.risky = iprot.readBool();
2790
            setRiskyIsSet(true);
2791
          } else { 
2792
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2793
          }
2794
          break;
4762 phani.kuma 2795
        case 28: // EXPECTED_DELAY
3430 rajveer 2796
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2797
            this.expectedDelay = iprot.readI32();
2798
            setExpectedDelayIsSet(true);
2799
          } else { 
2800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2801
          }
2802
          break;
5440 phani.kuma 2803
        case 29: // IS_WAREHOUSE_PREFERENCE_STICKY
4406 anupam.sin 2804
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2805
            this.isWarehousePreferenceSticky = iprot.readBool();
2806
            setIsWarehousePreferenceStickyIsSet(true);
2807
          } else { 
2808
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2809
          }
2810
          break;
5440 phani.kuma 2811
        case 30: // WARRANTY_PERIOD
4295 varun.gupt 2812
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2813
            this.warrantyPeriod = iprot.readI32();
2814
            setWarrantyPeriodIsSet(true);
2815
          } else { 
2816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2817
          }
2818
          break;
5440 phani.kuma 2819
        case 31: // PREFERRED_VENDOR
4506 phani.kuma 2820
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2821
            this.preferredVendor = iprot.readI64();
2822
            setPreferredVendorIsSet(true);
2823
          } else { 
2824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2825
          }
2826
          break;
5440 phani.kuma 2827
        case 32: // TYPE
5110 mandeep.dh 2828
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2829
            this.type = ItemType.findByValue(iprot.readI32());
2830
          } else { 
2831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832
          }
2833
          break;
5440 phani.kuma 2834
        case 33: // COMING_SOON_START_DATE
5217 amit.gupta 2835
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2836
            this.comingSoonStartDate = iprot.readI64();
2837
            setComingSoonStartDateIsSet(true);
2838
          } else { 
2839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2840
          }
2841
          break;
5440 phani.kuma 2842
        case 34: // EXPECTED_ARRIVAL_DATE
5217 amit.gupta 2843
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2844
            this.expectedArrivalDate = iprot.readI64();
2845
            setExpectedArrivalDateIsSet(true);
2846
          } else { 
2847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2848
          }
2849
          break;
5440 phani.kuma 2850
        case 35: // HAS_ITEM_NO
5385 phani.kuma 2851
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2852
            this.hasItemNo = iprot.readBool();
2853
            setHasItemNoIsSet(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
    }
5336 rajveer 2918
    if (this.itemInventory != null) {
2919
      oprot.writeFieldBegin(ITEM_INVENTORY_FIELD_DESC);
2920
      this.itemInventory.write(oprot);
2921
      oprot.writeFieldEnd();
2922
    }
2128 ankur.sing 2923
    if (isSetMrp()) {
2924
      oprot.writeFieldBegin(MRP_FIELD_DESC);
2925
      oprot.writeDouble(this.mrp);
2926
      oprot.writeFieldEnd();
2927
    }
2928
    if (isSetSellingPrice()) {
2929
      oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
2930
      oprot.writeDouble(this.sellingPrice);
2931
      oprot.writeFieldEnd();
2932
    }
2933
    if (isSetWeight()) {
2934
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
2935
      oprot.writeDouble(this.weight);
2936
      oprot.writeFieldEnd();
2937
    }
103 ashish 2938
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
2939
    oprot.writeI64(this.addedOn);
2940
    oprot.writeFieldEnd();
2491 ankur.sing 2941
    if (isSetStartDate()) {
2942
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
2943
      oprot.writeI64(this.startDate);
2944
      oprot.writeFieldEnd();
2945
    }
2946
    if (isSetRetireDate()) {
2947
      oprot.writeFieldBegin(RETIRE_DATE_FIELD_DESC);
2948
      oprot.writeI64(this.retireDate);
2949
      oprot.writeFieldEnd();
2950
    }
103 ashish 2951
    if (this.itemStatus != null) {
2952
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
2953
      oprot.writeI32(this.itemStatus.getValue());
2954
      oprot.writeFieldEnd();
2955
    }
2034 rajveer 2956
    if (this.status_description != null) {
2957
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
2958
      oprot.writeString(this.status_description);
2959
      oprot.writeFieldEnd();
2960
    }
5336 rajveer 2961
    if (this.otherInfo != null) {
2962
      oprot.writeFieldBegin(OTHER_INFO_FIELD_DESC);
2963
      {
2964
        oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.otherInfo.size()));
2965
        for (Map.Entry<String, String> _iter14 : this.otherInfo.entrySet())
2966
        {
2967
          oprot.writeString(_iter14.getKey());
2968
          oprot.writeString(_iter14.getValue());
2969
        }
2970
        oprot.writeMapEnd();
2971
      }
2972
      oprot.writeFieldEnd();
2973
    }
607 chandransh 2974
    if (this.bestDealText != null) {
2975
      oprot.writeFieldBegin(BEST_DEAL_TEXT_FIELD_DESC);
2976
      oprot.writeString(this.bestDealText);
2977
      oprot.writeFieldEnd();
2978
    }
2128 ankur.sing 2979
    if (isSetBestDealValue()) {
2980
      oprot.writeFieldBegin(BEST_DEAL_VALUE_FIELD_DESC);
2981
      oprot.writeDouble(this.bestDealValue);
2982
      oprot.writeFieldEnd();
2983
    }
1910 varun.gupt 2984
    oprot.writeFieldBegin(DEFAULT_FOR_ENTITY_FIELD_DESC);
2985
    oprot.writeBool(this.defaultForEntity);
2986
    oprot.writeFieldEnd();
607 chandransh 2987
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
2988
    oprot.writeI64(this.updatedOn);
2989
    oprot.writeFieldEnd();
2128 ankur.sing 2990
    if (isSetBestSellingRank()) {
2991
      oprot.writeFieldBegin(BEST_SELLING_RANK_FIELD_DESC);
2992
      oprot.writeI64(this.bestSellingRank);
2993
      oprot.writeFieldEnd();
2994
    }
2250 ankur.sing 2995
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
2996
    oprot.writeBool(this.risky);
2997
    oprot.writeFieldEnd();
3355 chandransh 2998
    if (isSetExpectedDelay()) {
2999
      oprot.writeFieldBegin(EXPECTED_DELAY_FIELD_DESC);
3000
      oprot.writeI32(this.expectedDelay);
3001
      oprot.writeFieldEnd();
3002
    }
4406 anupam.sin 3003
    if (isSetIsWarehousePreferenceSticky()) {
3004
      oprot.writeFieldBegin(IS_WAREHOUSE_PREFERENCE_STICKY_FIELD_DESC);
3005
      oprot.writeBool(this.isWarehousePreferenceSticky);
3006
      oprot.writeFieldEnd();
3007
    }
4295 varun.gupt 3008
    oprot.writeFieldBegin(WARRANTY_PERIOD_FIELD_DESC);
3009
    oprot.writeI32(this.warrantyPeriod);
3010
    oprot.writeFieldEnd();
4506 phani.kuma 3011
    if (isSetPreferredVendor()) {
3012
      oprot.writeFieldBegin(PREFERRED_VENDOR_FIELD_DESC);
3013
      oprot.writeI64(this.preferredVendor);
3014
      oprot.writeFieldEnd();
3015
    }
5110 mandeep.dh 3016
    if (this.type != null) {
3017
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
3018
      oprot.writeI32(this.type.getValue());
3019
      oprot.writeFieldEnd();
3020
    }
5217 amit.gupta 3021
    if (isSetComingSoonStartDate()) {
3022
      oprot.writeFieldBegin(COMING_SOON_START_DATE_FIELD_DESC);
3023
      oprot.writeI64(this.comingSoonStartDate);
3024
      oprot.writeFieldEnd();
3025
    }
3026
    if (isSetExpectedArrivalDate()) {
3027
      oprot.writeFieldBegin(EXPECTED_ARRIVAL_DATE_FIELD_DESC);
3028
      oprot.writeI64(this.expectedArrivalDate);
3029
      oprot.writeFieldEnd();
3030
    }
5385 phani.kuma 3031
    oprot.writeFieldBegin(HAS_ITEM_NO_FIELD_DESC);
3032
    oprot.writeBool(this.hasItemNo);
3033
    oprot.writeFieldEnd();
100 ashish 3034
    oprot.writeFieldStop();
3035
    oprot.writeStructEnd();
3036
  }
3037
 
3038
  @Override
3039
  public String toString() {
3040
    StringBuilder sb = new StringBuilder("Item(");
3041
    boolean first = true;
3042
 
3043
    sb.append("id:");
3044
    sb.append(this.id);
3045
    first = false;
3046
    if (!first) sb.append(", ");
957 chandransh 3047
    sb.append("productGroup:");
3048
    if (this.productGroup == null) {
483 rajveer 3049
      sb.append("null");
3050
    } else {
957 chandransh 3051
      sb.append(this.productGroup);
483 rajveer 3052
    }
3053
    first = false;
3054
    if (!first) sb.append(", ");
957 chandransh 3055
    sb.append("brand:");
3056
    if (this.brand == null) {
3057
      sb.append("null");
3058
    } else {
3059
      sb.append(this.brand);
3060
    }
3061
    first = false;
3062
    if (!first) sb.append(", ");
483 rajveer 3063
    sb.append("modelNumber:");
3064
    if (this.modelNumber == null) {
3065
      sb.append("null");
3066
    } else {
3067
      sb.append(this.modelNumber);
3068
    }
3069
    first = false;
3070
    if (!first) sb.append(", ");
3071
    sb.append("modelName:");
3072
    if (this.modelName == null) {
3073
      sb.append("null");
3074
    } else {
3075
      sb.append(this.modelName);
3076
    }
3077
    first = false;
3078
    if (!first) sb.append(", ");
1329 chandransh 3079
    sb.append("color:");
3080
    if (this.color == null) {
3081
      sb.append("null");
3082
    } else {
3083
      sb.append(this.color);
3084
    }
3085
    first = false;
3086
    if (!first) sb.append(", ");
483 rajveer 3087
    sb.append("category:");
622 chandransh 3088
    sb.append(this.category);
483 rajveer 3089
    first = false;
3090
    if (!first) sb.append(", ");
3091
    sb.append("comments:");
3092
    if (this.comments == null) {
3093
      sb.append("null");
3094
    } else {
3095
      sb.append(this.comments);
3096
    }
3097
    first = false;
3098
    if (!first) sb.append(", ");
123 ashish 3099
    sb.append("catalogItemId:");
3100
    sb.append(this.catalogItemId);
100 ashish 3101
    first = false;
3102
    if (!first) sb.append(", ");
483 rajveer 3103
    sb.append("featureId:");
3104
    sb.append(this.featureId);
3105
    first = false;
3106
    if (!first) sb.append(", ");
3107
    sb.append("featureDescription:");
3108
    if (this.featureDescription == null) {
3109
      sb.append("null");
3110
    } else {
3111
      sb.append(this.featureDescription);
3112
    }
3113
    first = false;
5336 rajveer 3114
    if (!first) sb.append(", ");
3115
    sb.append("itemInventory:");
3116
    if (this.itemInventory == null) {
3117
      sb.append("null");
3118
    } else {
3119
      sb.append(this.itemInventory);
3120
    }
3121
    first = false;
2128 ankur.sing 3122
    if (isSetMrp()) {
3123
      if (!first) sb.append(", ");
3124
      sb.append("mrp:");
3125
      sb.append(this.mrp);
3126
      first = false;
3127
    }
3128
    if (isSetSellingPrice()) {
3129
      if (!first) sb.append(", ");
3130
      sb.append("sellingPrice:");
3131
      sb.append(this.sellingPrice);
3132
      first = false;
3133
    }
3134
    if (isSetWeight()) {
3135
      if (!first) sb.append(", ");
3136
      sb.append("weight:");
3137
      sb.append(this.weight);
3138
      first = false;
3139
    }
721 chandransh 3140
    if (!first) sb.append(", ");
103 ashish 3141
    sb.append("addedOn:");
3142
    sb.append(this.addedOn);
3143
    first = false;
2491 ankur.sing 3144
    if (isSetStartDate()) {
3145
      if (!first) sb.append(", ");
3146
      sb.append("startDate:");
3147
      sb.append(this.startDate);
3148
      first = false;
3149
    }
3150
    if (isSetRetireDate()) {
3151
      if (!first) sb.append(", ");
3152
      sb.append("retireDate:");
3153
      sb.append(this.retireDate);
3154
      first = false;
3155
    }
103 ashish 3156
    if (!first) sb.append(", ");
3157
    sb.append("itemStatus:");
3158
    if (this.itemStatus == null) {
3159
      sb.append("null");
3160
    } else {
3161
      sb.append(this.itemStatus);
3162
    }
3163
    first = false;
3164
    if (!first) sb.append(", ");
2034 rajveer 3165
    sb.append("status_description:");
3166
    if (this.status_description == null) {
3167
      sb.append("null");
3168
    } else {
3169
      sb.append(this.status_description);
3170
    }
3171
    first = false;
3172
    if (!first) sb.append(", ");
5336 rajveer 3173
    sb.append("otherInfo:");
3174
    if (this.otherInfo == null) {
3175
      sb.append("null");
3176
    } else {
3177
      sb.append(this.otherInfo);
3178
    }
3179
    first = false;
3180
    if (!first) sb.append(", ");
607 chandransh 3181
    sb.append("bestDealText:");
3182
    if (this.bestDealText == null) {
3183
      sb.append("null");
3184
    } else {
3185
      sb.append(this.bestDealText);
3186
    }
3187
    first = false;
2128 ankur.sing 3188
    if (isSetBestDealValue()) {
3189
      if (!first) sb.append(", ");
3190
      sb.append("bestDealValue:");
3191
      sb.append(this.bestDealValue);
3192
      first = false;
3193
    }
607 chandransh 3194
    if (!first) sb.append(", ");
1910 varun.gupt 3195
    sb.append("defaultForEntity:");
3196
    sb.append(this.defaultForEntity);
3197
    first = false;
3198
    if (!first) sb.append(", ");
607 chandransh 3199
    sb.append("updatedOn:");
3200
    sb.append(this.updatedOn);
3201
    first = false;
2128 ankur.sing 3202
    if (isSetBestSellingRank()) {
3203
      if (!first) sb.append(", ");
3204
      sb.append("bestSellingRank:");
3205
      sb.append(this.bestSellingRank);
3206
      first = false;
3207
    }
2064 ankur.sing 3208
    if (!first) sb.append(", ");
2250 ankur.sing 3209
    sb.append("risky:");
3210
    sb.append(this.risky);
3211
    first = false;
3355 chandransh 3212
    if (isSetExpectedDelay()) {
3213
      if (!first) sb.append(", ");
3214
      sb.append("expectedDelay:");
3215
      sb.append(this.expectedDelay);
3216
      first = false;
3217
    }
4406 anupam.sin 3218
    if (isSetIsWarehousePreferenceSticky()) {
3219
      if (!first) sb.append(", ");
3220
      sb.append("isWarehousePreferenceSticky:");
3221
      sb.append(this.isWarehousePreferenceSticky);
3222
      first = false;
3223
    }
4295 varun.gupt 3224
    if (!first) sb.append(", ");
3225
    sb.append("warrantyPeriod:");
3226
    sb.append(this.warrantyPeriod);
3227
    first = false;
4506 phani.kuma 3228
    if (isSetPreferredVendor()) {
3229
      if (!first) sb.append(", ");
3230
      sb.append("preferredVendor:");
3231
      sb.append(this.preferredVendor);
3232
      first = false;
3233
    }
5110 mandeep.dh 3234
    if (!first) sb.append(", ");
3235
    sb.append("type:");
3236
    if (this.type == null) {
3237
      sb.append("null");
3238
    } else {
3239
      sb.append(this.type);
3240
    }
3241
    first = false;
5217 amit.gupta 3242
    if (isSetComingSoonStartDate()) {
3243
      if (!first) sb.append(", ");
3244
      sb.append("comingSoonStartDate:");
3245
      sb.append(this.comingSoonStartDate);
3246
      first = false;
3247
    }
3248
    if (isSetExpectedArrivalDate()) {
3249
      if (!first) sb.append(", ");
3250
      sb.append("expectedArrivalDate:");
3251
      sb.append(this.expectedArrivalDate);
3252
      first = false;
3253
    }
5385 phani.kuma 3254
    if (!first) sb.append(", ");
3255
    sb.append("hasItemNo:");
3256
    sb.append(this.hasItemNo);
3257
    first = false;
100 ashish 3258
    sb.append(")");
3259
    return sb.toString();
3260
  }
3261
 
3430 rajveer 3262
  public void validate() throws org.apache.thrift.TException {
100 ashish 3263
    // check for required fields
3264
  }
3265
 
3430 rajveer 3266
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3267
    try {
3268
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3269
    } catch (org.apache.thrift.TException te) {
3270
      throw new java.io.IOException(te);
3271
    }
3272
  }
3273
 
3274
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3275
    try {
3276
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3277
      __isset_bit_vector = new BitSet(1);
3278
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3279
    } catch (org.apache.thrift.TException te) {
3280
      throw new java.io.IOException(te);
3281
    }
3282
  }
3283
 
100 ashish 3284
}
3285