Subversion Repositories SmartDukaan

Rev

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

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