Subversion Repositories SmartDukaan

Rev

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

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