Subversion Repositories SmartDukaan

Rev

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