Subversion Repositories SmartDukaan

Rev

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