Subversion Repositories SmartDukaan

Rev

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

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