Subversion Repositories SmartDukaan

Rev

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