Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5372 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.warehouse;
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;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class DetailedPurchaseScan implements org.apache.thrift.TBase<DetailedPurchaseScan, DetailedPurchaseScan._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DetailedPurchaseScan");
25
 
26
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField PO_CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("poCreatedAt", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField SUPPLIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierName", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBERS_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumbers", org.apache.thrift.protocol.TType.STRING, (short)4);
6494 amar.kumar 30
  private static final org.apache.thrift.protocol.TField RECEIVED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedBy", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)6);
32
  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)7);
33
  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)8);
34
  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)9);
35
  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)10);
36
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
37
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField PURCHASED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("purchasedAt", org.apache.thrift.protocol.TType.I64, (short)14);
7672 rajveer 40
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
8580 amar.kumar 41
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)16);
9433 amar.kumar 42
  private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.I64, (short)17);
5372 mandeep.dh 43
 
44
  private long purchaseOrderId; // required
45
  private long poCreatedAt; // required
46
  private String supplierName; // required
47
  private String invoiceNumbers; // required
6494 amar.kumar 48
  private String receivedBy; // required
5372 mandeep.dh 49
  private long itemId; // required
5545 mandeep.dh 50
  private String brand; // required
51
  private String modelName; // required
52
  private String modelNumber; // required
53
  private String color; // required
5372 mandeep.dh 54
  private double unitPrice; // required
55
  private long quantity; // required
6361 rajveer 56
  private long purchaseId; // required
57
  private long purchasedAt; // required
7672 rajveer 58
  private double nlc; // required
8580 amar.kumar 59
  private long warehouseId; // required
9433 amar.kumar 60
  private long taxType; // required
5372 mandeep.dh 61
 
62
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
63
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
64
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
65
    PO_CREATED_AT((short)2, "poCreatedAt"),
66
    SUPPLIER_NAME((short)3, "supplierName"),
67
    INVOICE_NUMBERS((short)4, "invoiceNumbers"),
6494 amar.kumar 68
    RECEIVED_BY((short)5, "receivedBy"),
69
    ITEM_ID((short)6, "itemId"),
70
    BRAND((short)7, "brand"),
71
    MODEL_NAME((short)8, "modelName"),
72
    MODEL_NUMBER((short)9, "modelNumber"),
73
    COLOR((short)10, "color"),
74
    UNIT_PRICE((short)11, "unitPrice"),
75
    QUANTITY((short)12, "quantity"),
76
    PURCHASE_ID((short)13, "purchaseId"),
7672 rajveer 77
    PURCHASED_AT((short)14, "purchasedAt"),
8580 amar.kumar 78
    NLC((short)15, "nlc"),
9433 amar.kumar 79
    WAREHOUSE_ID((short)16, "warehouseId"),
80
    TAX_TYPE((short)17, "taxType");
5372 mandeep.dh 81
 
82
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
83
 
84
    static {
85
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
86
        byName.put(field.getFieldName(), field);
87
      }
88
    }
89
 
90
    /**
91
     * Find the _Fields constant that matches fieldId, or null if its not found.
92
     */
93
    public static _Fields findByThriftId(int fieldId) {
94
      switch(fieldId) {
95
        case 1: // PURCHASE_ORDER_ID
96
          return PURCHASE_ORDER_ID;
97
        case 2: // PO_CREATED_AT
98
          return PO_CREATED_AT;
99
        case 3: // SUPPLIER_NAME
100
          return SUPPLIER_NAME;
101
        case 4: // INVOICE_NUMBERS
102
          return INVOICE_NUMBERS;
6494 amar.kumar 103
        case 5: // RECEIVED_BY
104
          return RECEIVED_BY;
105
        case 6: // ITEM_ID
5372 mandeep.dh 106
          return ITEM_ID;
6494 amar.kumar 107
        case 7: // BRAND
5545 mandeep.dh 108
          return BRAND;
6494 amar.kumar 109
        case 8: // MODEL_NAME
5545 mandeep.dh 110
          return MODEL_NAME;
6494 amar.kumar 111
        case 9: // MODEL_NUMBER
5545 mandeep.dh 112
          return MODEL_NUMBER;
6494 amar.kumar 113
        case 10: // COLOR
5545 mandeep.dh 114
          return COLOR;
6494 amar.kumar 115
        case 11: // UNIT_PRICE
5372 mandeep.dh 116
          return UNIT_PRICE;
6494 amar.kumar 117
        case 12: // QUANTITY
5372 mandeep.dh 118
          return QUANTITY;
6494 amar.kumar 119
        case 13: // PURCHASE_ID
6361 rajveer 120
          return PURCHASE_ID;
6494 amar.kumar 121
        case 14: // PURCHASED_AT
6361 rajveer 122
          return PURCHASED_AT;
7672 rajveer 123
        case 15: // NLC
124
          return NLC;
8580 amar.kumar 125
        case 16: // WAREHOUSE_ID
126
          return WAREHOUSE_ID;
9433 amar.kumar 127
        case 17: // TAX_TYPE
128
          return TAX_TYPE;
5372 mandeep.dh 129
        default:
130
          return null;
131
      }
132
    }
133
 
134
    /**
135
     * Find the _Fields constant that matches fieldId, throwing an exception
136
     * if it is not found.
137
     */
138
    public static _Fields findByThriftIdOrThrow(int fieldId) {
139
      _Fields fields = findByThriftId(fieldId);
140
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
141
      return fields;
142
    }
143
 
144
    /**
145
     * Find the _Fields constant that matches name, or null if its not found.
146
     */
147
    public static _Fields findByName(String name) {
148
      return byName.get(name);
149
    }
150
 
151
    private final short _thriftId;
152
    private final String _fieldName;
153
 
154
    _Fields(short thriftId, String fieldName) {
155
      _thriftId = thriftId;
156
      _fieldName = fieldName;
157
    }
158
 
159
    public short getThriftFieldId() {
160
      return _thriftId;
161
    }
162
 
163
    public String getFieldName() {
164
      return _fieldName;
165
    }
166
  }
167
 
168
  // isset id assignments
169
  private static final int __PURCHASEORDERID_ISSET_ID = 0;
170
  private static final int __POCREATEDAT_ISSET_ID = 1;
171
  private static final int __ITEMID_ISSET_ID = 2;
172
  private static final int __UNITPRICE_ISSET_ID = 3;
173
  private static final int __QUANTITY_ISSET_ID = 4;
6361 rajveer 174
  private static final int __PURCHASEID_ISSET_ID = 5;
175
  private static final int __PURCHASEDAT_ISSET_ID = 6;
7672 rajveer 176
  private static final int __NLC_ISSET_ID = 7;
8580 amar.kumar 177
  private static final int __WAREHOUSEID_ISSET_ID = 8;
9433 amar.kumar 178
  private static final int __TAXTYPE_ISSET_ID = 9;
179
  private BitSet __isset_bit_vector = new BitSet(10);
5372 mandeep.dh 180
 
181
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
182
  static {
183
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
184
    tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
186
    tmpMap.put(_Fields.PO_CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("poCreatedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
188
    tmpMap.put(_Fields.SUPPLIER_NAME, new org.apache.thrift.meta_data.FieldMetaData("supplierName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
190
    tmpMap.put(_Fields.INVOICE_NUMBERS, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumbers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
191
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6494 amar.kumar 192
    tmpMap.put(_Fields.RECEIVED_BY, new org.apache.thrift.meta_data.FieldMetaData("receivedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
193
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5372 mandeep.dh 194
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
195
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5545 mandeep.dh 196
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5372 mandeep.dh 197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5545 mandeep.dh 198
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
200
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
202
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5372 mandeep.dh 204
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
206
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
207
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6361 rajveer 208
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
210
    tmpMap.put(_Fields.PURCHASED_AT, new org.apache.thrift.meta_data.FieldMetaData("purchasedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7672 rajveer 212
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8580 amar.kumar 214
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9433 amar.kumar 216
    tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5372 mandeep.dh 218
    metaDataMap = Collections.unmodifiableMap(tmpMap);
219
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DetailedPurchaseScan.class, metaDataMap);
220
  }
221
 
222
  public DetailedPurchaseScan() {
223
  }
224
 
225
  public DetailedPurchaseScan(
226
    long purchaseOrderId,
227
    long poCreatedAt,
228
    String supplierName,
229
    String invoiceNumbers,
6494 amar.kumar 230
    String receivedBy,
5372 mandeep.dh 231
    long itemId,
5545 mandeep.dh 232
    String brand,
233
    String modelName,
234
    String modelNumber,
235
    String color,
5372 mandeep.dh 236
    double unitPrice,
6361 rajveer 237
    long quantity,
238
    long purchaseId,
7672 rajveer 239
    long purchasedAt,
8580 amar.kumar 240
    double nlc,
9433 amar.kumar 241
    long warehouseId,
242
    long taxType)
5372 mandeep.dh 243
  {
244
    this();
245
    this.purchaseOrderId = purchaseOrderId;
246
    setPurchaseOrderIdIsSet(true);
247
    this.poCreatedAt = poCreatedAt;
248
    setPoCreatedAtIsSet(true);
249
    this.supplierName = supplierName;
250
    this.invoiceNumbers = invoiceNumbers;
6494 amar.kumar 251
    this.receivedBy = receivedBy;
5372 mandeep.dh 252
    this.itemId = itemId;
253
    setItemIdIsSet(true);
5545 mandeep.dh 254
    this.brand = brand;
255
    this.modelName = modelName;
256
    this.modelNumber = modelNumber;
257
    this.color = color;
5372 mandeep.dh 258
    this.unitPrice = unitPrice;
259
    setUnitPriceIsSet(true);
260
    this.quantity = quantity;
261
    setQuantityIsSet(true);
6361 rajveer 262
    this.purchaseId = purchaseId;
263
    setPurchaseIdIsSet(true);
264
    this.purchasedAt = purchasedAt;
265
    setPurchasedAtIsSet(true);
7672 rajveer 266
    this.nlc = nlc;
267
    setNlcIsSet(true);
8580 amar.kumar 268
    this.warehouseId = warehouseId;
269
    setWarehouseIdIsSet(true);
9433 amar.kumar 270
    this.taxType = taxType;
271
    setTaxTypeIsSet(true);
5372 mandeep.dh 272
  }
273
 
274
  /**
275
   * Performs a deep copy on <i>other</i>.
276
   */
277
  public DetailedPurchaseScan(DetailedPurchaseScan other) {
278
    __isset_bit_vector.clear();
279
    __isset_bit_vector.or(other.__isset_bit_vector);
280
    this.purchaseOrderId = other.purchaseOrderId;
281
    this.poCreatedAt = other.poCreatedAt;
282
    if (other.isSetSupplierName()) {
283
      this.supplierName = other.supplierName;
284
    }
285
    if (other.isSetInvoiceNumbers()) {
286
      this.invoiceNumbers = other.invoiceNumbers;
287
    }
6494 amar.kumar 288
    if (other.isSetReceivedBy()) {
289
      this.receivedBy = other.receivedBy;
290
    }
5372 mandeep.dh 291
    this.itemId = other.itemId;
5545 mandeep.dh 292
    if (other.isSetBrand()) {
293
      this.brand = other.brand;
5372 mandeep.dh 294
    }
5545 mandeep.dh 295
    if (other.isSetModelName()) {
296
      this.modelName = other.modelName;
297
    }
298
    if (other.isSetModelNumber()) {
299
      this.modelNumber = other.modelNumber;
300
    }
301
    if (other.isSetColor()) {
302
      this.color = other.color;
303
    }
5372 mandeep.dh 304
    this.unitPrice = other.unitPrice;
305
    this.quantity = other.quantity;
6361 rajveer 306
    this.purchaseId = other.purchaseId;
307
    this.purchasedAt = other.purchasedAt;
7672 rajveer 308
    this.nlc = other.nlc;
8580 amar.kumar 309
    this.warehouseId = other.warehouseId;
9433 amar.kumar 310
    this.taxType = other.taxType;
5372 mandeep.dh 311
  }
312
 
313
  public DetailedPurchaseScan deepCopy() {
314
    return new DetailedPurchaseScan(this);
315
  }
316
 
317
  @Override
318
  public void clear() {
319
    setPurchaseOrderIdIsSet(false);
320
    this.purchaseOrderId = 0;
321
    setPoCreatedAtIsSet(false);
322
    this.poCreatedAt = 0;
323
    this.supplierName = null;
324
    this.invoiceNumbers = null;
6494 amar.kumar 325
    this.receivedBy = null;
5372 mandeep.dh 326
    setItemIdIsSet(false);
327
    this.itemId = 0;
5545 mandeep.dh 328
    this.brand = null;
329
    this.modelName = null;
330
    this.modelNumber = null;
331
    this.color = null;
5372 mandeep.dh 332
    setUnitPriceIsSet(false);
333
    this.unitPrice = 0.0;
334
    setQuantityIsSet(false);
335
    this.quantity = 0;
6361 rajveer 336
    setPurchaseIdIsSet(false);
337
    this.purchaseId = 0;
338
    setPurchasedAtIsSet(false);
339
    this.purchasedAt = 0;
7672 rajveer 340
    setNlcIsSet(false);
341
    this.nlc = 0.0;
8580 amar.kumar 342
    setWarehouseIdIsSet(false);
343
    this.warehouseId = 0;
9433 amar.kumar 344
    setTaxTypeIsSet(false);
345
    this.taxType = 0;
5372 mandeep.dh 346
  }
347
 
348
  public long getPurchaseOrderId() {
349
    return this.purchaseOrderId;
350
  }
351
 
352
  public void setPurchaseOrderId(long purchaseOrderId) {
353
    this.purchaseOrderId = purchaseOrderId;
354
    setPurchaseOrderIdIsSet(true);
355
  }
356
 
357
  public void unsetPurchaseOrderId() {
358
    __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
359
  }
360
 
361
  /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
362
  public boolean isSetPurchaseOrderId() {
363
    return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
364
  }
365
 
366
  public void setPurchaseOrderIdIsSet(boolean value) {
367
    __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
368
  }
369
 
370
  public long getPoCreatedAt() {
371
    return this.poCreatedAt;
372
  }
373
 
374
  public void setPoCreatedAt(long poCreatedAt) {
375
    this.poCreatedAt = poCreatedAt;
376
    setPoCreatedAtIsSet(true);
377
  }
378
 
379
  public void unsetPoCreatedAt() {
380
    __isset_bit_vector.clear(__POCREATEDAT_ISSET_ID);
381
  }
382
 
383
  /** Returns true if field poCreatedAt is set (has been assigned a value) and false otherwise */
384
  public boolean isSetPoCreatedAt() {
385
    return __isset_bit_vector.get(__POCREATEDAT_ISSET_ID);
386
  }
387
 
388
  public void setPoCreatedAtIsSet(boolean value) {
389
    __isset_bit_vector.set(__POCREATEDAT_ISSET_ID, value);
390
  }
391
 
392
  public String getSupplierName() {
393
    return this.supplierName;
394
  }
395
 
396
  public void setSupplierName(String supplierName) {
397
    this.supplierName = supplierName;
398
  }
399
 
400
  public void unsetSupplierName() {
401
    this.supplierName = null;
402
  }
403
 
404
  /** Returns true if field supplierName is set (has been assigned a value) and false otherwise */
405
  public boolean isSetSupplierName() {
406
    return this.supplierName != null;
407
  }
408
 
409
  public void setSupplierNameIsSet(boolean value) {
410
    if (!value) {
411
      this.supplierName = null;
412
    }
413
  }
414
 
415
  public String getInvoiceNumbers() {
416
    return this.invoiceNumbers;
417
  }
418
 
419
  public void setInvoiceNumbers(String invoiceNumbers) {
420
    this.invoiceNumbers = invoiceNumbers;
421
  }
422
 
423
  public void unsetInvoiceNumbers() {
424
    this.invoiceNumbers = null;
425
  }
426
 
427
  /** Returns true if field invoiceNumbers is set (has been assigned a value) and false otherwise */
428
  public boolean isSetInvoiceNumbers() {
429
    return this.invoiceNumbers != null;
430
  }
431
 
432
  public void setInvoiceNumbersIsSet(boolean value) {
433
    if (!value) {
434
      this.invoiceNumbers = null;
435
    }
436
  }
437
 
6494 amar.kumar 438
  public String getReceivedBy() {
439
    return this.receivedBy;
440
  }
441
 
442
  public void setReceivedBy(String receivedBy) {
443
    this.receivedBy = receivedBy;
444
  }
445
 
446
  public void unsetReceivedBy() {
447
    this.receivedBy = null;
448
  }
449
 
450
  /** Returns true if field receivedBy is set (has been assigned a value) and false otherwise */
451
  public boolean isSetReceivedBy() {
452
    return this.receivedBy != null;
453
  }
454
 
455
  public void setReceivedByIsSet(boolean value) {
456
    if (!value) {
457
      this.receivedBy = null;
458
    }
459
  }
460
 
5372 mandeep.dh 461
  public long getItemId() {
462
    return this.itemId;
463
  }
464
 
465
  public void setItemId(long itemId) {
466
    this.itemId = itemId;
467
    setItemIdIsSet(true);
468
  }
469
 
470
  public void unsetItemId() {
471
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
472
  }
473
 
474
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
475
  public boolean isSetItemId() {
476
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
477
  }
478
 
479
  public void setItemIdIsSet(boolean value) {
480
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
481
  }
482
 
5545 mandeep.dh 483
  public String getBrand() {
484
    return this.brand;
5372 mandeep.dh 485
  }
486
 
5545 mandeep.dh 487
  public void setBrand(String brand) {
488
    this.brand = brand;
5372 mandeep.dh 489
  }
490
 
5545 mandeep.dh 491
  public void unsetBrand() {
492
    this.brand = null;
5372 mandeep.dh 493
  }
494
 
5545 mandeep.dh 495
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
496
  public boolean isSetBrand() {
497
    return this.brand != null;
5372 mandeep.dh 498
  }
499
 
5545 mandeep.dh 500
  public void setBrandIsSet(boolean value) {
5372 mandeep.dh 501
    if (!value) {
5545 mandeep.dh 502
      this.brand = null;
5372 mandeep.dh 503
    }
504
  }
505
 
5545 mandeep.dh 506
  public String getModelName() {
507
    return this.modelName;
508
  }
509
 
510
  public void setModelName(String modelName) {
511
    this.modelName = modelName;
512
  }
513
 
514
  public void unsetModelName() {
515
    this.modelName = null;
516
  }
517
 
518
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
519
  public boolean isSetModelName() {
520
    return this.modelName != null;
521
  }
522
 
523
  public void setModelNameIsSet(boolean value) {
524
    if (!value) {
525
      this.modelName = null;
526
    }
527
  }
528
 
529
  public String getModelNumber() {
530
    return this.modelNumber;
531
  }
532
 
533
  public void setModelNumber(String modelNumber) {
534
    this.modelNumber = modelNumber;
535
  }
536
 
537
  public void unsetModelNumber() {
538
    this.modelNumber = null;
539
  }
540
 
541
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
542
  public boolean isSetModelNumber() {
543
    return this.modelNumber != null;
544
  }
545
 
546
  public void setModelNumberIsSet(boolean value) {
547
    if (!value) {
548
      this.modelNumber = null;
549
    }
550
  }
551
 
552
  public String getColor() {
553
    return this.color;
554
  }
555
 
556
  public void setColor(String color) {
557
    this.color = color;
558
  }
559
 
560
  public void unsetColor() {
561
    this.color = null;
562
  }
563
 
564
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
565
  public boolean isSetColor() {
566
    return this.color != null;
567
  }
568
 
569
  public void setColorIsSet(boolean value) {
570
    if (!value) {
571
      this.color = null;
572
    }
573
  }
574
 
5372 mandeep.dh 575
  public double getUnitPrice() {
576
    return this.unitPrice;
577
  }
578
 
579
  public void setUnitPrice(double unitPrice) {
580
    this.unitPrice = unitPrice;
581
    setUnitPriceIsSet(true);
582
  }
583
 
584
  public void unsetUnitPrice() {
585
    __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
586
  }
587
 
588
  /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
589
  public boolean isSetUnitPrice() {
590
    return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
591
  }
592
 
593
  public void setUnitPriceIsSet(boolean value) {
594
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
595
  }
596
 
597
  public long getQuantity() {
598
    return this.quantity;
599
  }
600
 
601
  public void setQuantity(long quantity) {
602
    this.quantity = quantity;
603
    setQuantityIsSet(true);
604
  }
605
 
606
  public void unsetQuantity() {
607
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
608
  }
609
 
610
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
611
  public boolean isSetQuantity() {
612
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
613
  }
614
 
615
  public void setQuantityIsSet(boolean value) {
616
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
617
  }
618
 
6361 rajveer 619
  public long getPurchaseId() {
620
    return this.purchaseId;
621
  }
622
 
623
  public void setPurchaseId(long purchaseId) {
624
    this.purchaseId = purchaseId;
625
    setPurchaseIdIsSet(true);
626
  }
627
 
628
  public void unsetPurchaseId() {
629
    __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
630
  }
631
 
632
  /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
633
  public boolean isSetPurchaseId() {
634
    return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
635
  }
636
 
637
  public void setPurchaseIdIsSet(boolean value) {
638
    __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
639
  }
640
 
641
  public long getPurchasedAt() {
642
    return this.purchasedAt;
643
  }
644
 
645
  public void setPurchasedAt(long purchasedAt) {
646
    this.purchasedAt = purchasedAt;
647
    setPurchasedAtIsSet(true);
648
  }
649
 
650
  public void unsetPurchasedAt() {
651
    __isset_bit_vector.clear(__PURCHASEDAT_ISSET_ID);
652
  }
653
 
654
  /** Returns true if field purchasedAt is set (has been assigned a value) and false otherwise */
655
  public boolean isSetPurchasedAt() {
656
    return __isset_bit_vector.get(__PURCHASEDAT_ISSET_ID);
657
  }
658
 
659
  public void setPurchasedAtIsSet(boolean value) {
660
    __isset_bit_vector.set(__PURCHASEDAT_ISSET_ID, value);
661
  }
662
 
7672 rajveer 663
  public double getNlc() {
664
    return this.nlc;
665
  }
666
 
667
  public void setNlc(double nlc) {
668
    this.nlc = nlc;
669
    setNlcIsSet(true);
670
  }
671
 
672
  public void unsetNlc() {
673
    __isset_bit_vector.clear(__NLC_ISSET_ID);
674
  }
675
 
676
  /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
677
  public boolean isSetNlc() {
678
    return __isset_bit_vector.get(__NLC_ISSET_ID);
679
  }
680
 
681
  public void setNlcIsSet(boolean value) {
682
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
683
  }
684
 
8580 amar.kumar 685
  public long getWarehouseId() {
686
    return this.warehouseId;
687
  }
688
 
689
  public void setWarehouseId(long warehouseId) {
690
    this.warehouseId = warehouseId;
691
    setWarehouseIdIsSet(true);
692
  }
693
 
694
  public void unsetWarehouseId() {
695
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
696
  }
697
 
698
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
699
  public boolean isSetWarehouseId() {
700
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
701
  }
702
 
703
  public void setWarehouseIdIsSet(boolean value) {
704
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
705
  }
706
 
9433 amar.kumar 707
  public long getTaxType() {
708
    return this.taxType;
709
  }
710
 
711
  public void setTaxType(long taxType) {
712
    this.taxType = taxType;
713
    setTaxTypeIsSet(true);
714
  }
715
 
716
  public void unsetTaxType() {
717
    __isset_bit_vector.clear(__TAXTYPE_ISSET_ID);
718
  }
719
 
720
  /** Returns true if field taxType is set (has been assigned a value) and false otherwise */
721
  public boolean isSetTaxType() {
722
    return __isset_bit_vector.get(__TAXTYPE_ISSET_ID);
723
  }
724
 
725
  public void setTaxTypeIsSet(boolean value) {
726
    __isset_bit_vector.set(__TAXTYPE_ISSET_ID, value);
727
  }
728
 
5372 mandeep.dh 729
  public void setFieldValue(_Fields field, Object value) {
730
    switch (field) {
731
    case PURCHASE_ORDER_ID:
732
      if (value == null) {
733
        unsetPurchaseOrderId();
734
      } else {
735
        setPurchaseOrderId((Long)value);
736
      }
737
      break;
738
 
739
    case PO_CREATED_AT:
740
      if (value == null) {
741
        unsetPoCreatedAt();
742
      } else {
743
        setPoCreatedAt((Long)value);
744
      }
745
      break;
746
 
747
    case SUPPLIER_NAME:
748
      if (value == null) {
749
        unsetSupplierName();
750
      } else {
751
        setSupplierName((String)value);
752
      }
753
      break;
754
 
755
    case INVOICE_NUMBERS:
756
      if (value == null) {
757
        unsetInvoiceNumbers();
758
      } else {
759
        setInvoiceNumbers((String)value);
760
      }
761
      break;
762
 
6494 amar.kumar 763
    case RECEIVED_BY:
764
      if (value == null) {
765
        unsetReceivedBy();
766
      } else {
767
        setReceivedBy((String)value);
768
      }
769
      break;
770
 
5372 mandeep.dh 771
    case ITEM_ID:
772
      if (value == null) {
773
        unsetItemId();
774
      } else {
775
        setItemId((Long)value);
776
      }
777
      break;
778
 
5545 mandeep.dh 779
    case BRAND:
5372 mandeep.dh 780
      if (value == null) {
5545 mandeep.dh 781
        unsetBrand();
5372 mandeep.dh 782
      } else {
5545 mandeep.dh 783
        setBrand((String)value);
5372 mandeep.dh 784
      }
785
      break;
786
 
5545 mandeep.dh 787
    case MODEL_NAME:
788
      if (value == null) {
789
        unsetModelName();
790
      } else {
791
        setModelName((String)value);
792
      }
793
      break;
794
 
795
    case MODEL_NUMBER:
796
      if (value == null) {
797
        unsetModelNumber();
798
      } else {
799
        setModelNumber((String)value);
800
      }
801
      break;
802
 
803
    case COLOR:
804
      if (value == null) {
805
        unsetColor();
806
      } else {
807
        setColor((String)value);
808
      }
809
      break;
810
 
5372 mandeep.dh 811
    case UNIT_PRICE:
812
      if (value == null) {
813
        unsetUnitPrice();
814
      } else {
815
        setUnitPrice((Double)value);
816
      }
817
      break;
818
 
819
    case QUANTITY:
820
      if (value == null) {
821
        unsetQuantity();
822
      } else {
823
        setQuantity((Long)value);
824
      }
825
      break;
826
 
6361 rajveer 827
    case PURCHASE_ID:
828
      if (value == null) {
829
        unsetPurchaseId();
830
      } else {
831
        setPurchaseId((Long)value);
832
      }
833
      break;
834
 
835
    case PURCHASED_AT:
836
      if (value == null) {
837
        unsetPurchasedAt();
838
      } else {
839
        setPurchasedAt((Long)value);
840
      }
841
      break;
842
 
7672 rajveer 843
    case NLC:
844
      if (value == null) {
845
        unsetNlc();
846
      } else {
847
        setNlc((Double)value);
848
      }
849
      break;
850
 
8580 amar.kumar 851
    case WAREHOUSE_ID:
852
      if (value == null) {
853
        unsetWarehouseId();
854
      } else {
855
        setWarehouseId((Long)value);
856
      }
857
      break;
858
 
9433 amar.kumar 859
    case TAX_TYPE:
860
      if (value == null) {
861
        unsetTaxType();
862
      } else {
863
        setTaxType((Long)value);
864
      }
865
      break;
866
 
5372 mandeep.dh 867
    }
868
  }
869
 
870
  public Object getFieldValue(_Fields field) {
871
    switch (field) {
872
    case PURCHASE_ORDER_ID:
873
      return Long.valueOf(getPurchaseOrderId());
874
 
875
    case PO_CREATED_AT:
876
      return Long.valueOf(getPoCreatedAt());
877
 
878
    case SUPPLIER_NAME:
879
      return getSupplierName();
880
 
881
    case INVOICE_NUMBERS:
882
      return getInvoiceNumbers();
883
 
6494 amar.kumar 884
    case RECEIVED_BY:
885
      return getReceivedBy();
886
 
5372 mandeep.dh 887
    case ITEM_ID:
888
      return Long.valueOf(getItemId());
889
 
5545 mandeep.dh 890
    case BRAND:
891
      return getBrand();
5372 mandeep.dh 892
 
5545 mandeep.dh 893
    case MODEL_NAME:
894
      return getModelName();
895
 
896
    case MODEL_NUMBER:
897
      return getModelNumber();
898
 
899
    case COLOR:
900
      return getColor();
901
 
5372 mandeep.dh 902
    case UNIT_PRICE:
903
      return Double.valueOf(getUnitPrice());
904
 
905
    case QUANTITY:
906
      return Long.valueOf(getQuantity());
907
 
6361 rajveer 908
    case PURCHASE_ID:
909
      return Long.valueOf(getPurchaseId());
910
 
911
    case PURCHASED_AT:
912
      return Long.valueOf(getPurchasedAt());
913
 
7672 rajveer 914
    case NLC:
915
      return Double.valueOf(getNlc());
916
 
8580 amar.kumar 917
    case WAREHOUSE_ID:
918
      return Long.valueOf(getWarehouseId());
919
 
9433 amar.kumar 920
    case TAX_TYPE:
921
      return Long.valueOf(getTaxType());
922
 
5372 mandeep.dh 923
    }
924
    throw new IllegalStateException();
925
  }
926
 
927
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
928
  public boolean isSet(_Fields field) {
929
    if (field == null) {
930
      throw new IllegalArgumentException();
931
    }
932
 
933
    switch (field) {
934
    case PURCHASE_ORDER_ID:
935
      return isSetPurchaseOrderId();
936
    case PO_CREATED_AT:
937
      return isSetPoCreatedAt();
938
    case SUPPLIER_NAME:
939
      return isSetSupplierName();
940
    case INVOICE_NUMBERS:
941
      return isSetInvoiceNumbers();
6494 amar.kumar 942
    case RECEIVED_BY:
943
      return isSetReceivedBy();
5372 mandeep.dh 944
    case ITEM_ID:
945
      return isSetItemId();
5545 mandeep.dh 946
    case BRAND:
947
      return isSetBrand();
948
    case MODEL_NAME:
949
      return isSetModelName();
950
    case MODEL_NUMBER:
951
      return isSetModelNumber();
952
    case COLOR:
953
      return isSetColor();
5372 mandeep.dh 954
    case UNIT_PRICE:
955
      return isSetUnitPrice();
956
    case QUANTITY:
957
      return isSetQuantity();
6361 rajveer 958
    case PURCHASE_ID:
959
      return isSetPurchaseId();
960
    case PURCHASED_AT:
961
      return isSetPurchasedAt();
7672 rajveer 962
    case NLC:
963
      return isSetNlc();
8580 amar.kumar 964
    case WAREHOUSE_ID:
965
      return isSetWarehouseId();
9433 amar.kumar 966
    case TAX_TYPE:
967
      return isSetTaxType();
5372 mandeep.dh 968
    }
969
    throw new IllegalStateException();
970
  }
971
 
972
  @Override
973
  public boolean equals(Object that) {
974
    if (that == null)
975
      return false;
976
    if (that instanceof DetailedPurchaseScan)
977
      return this.equals((DetailedPurchaseScan)that);
978
    return false;
979
  }
980
 
981
  public boolean equals(DetailedPurchaseScan that) {
982
    if (that == null)
983
      return false;
984
 
985
    boolean this_present_purchaseOrderId = true;
986
    boolean that_present_purchaseOrderId = true;
987
    if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
988
      if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
989
        return false;
990
      if (this.purchaseOrderId != that.purchaseOrderId)
991
        return false;
992
    }
993
 
994
    boolean this_present_poCreatedAt = true;
995
    boolean that_present_poCreatedAt = true;
996
    if (this_present_poCreatedAt || that_present_poCreatedAt) {
997
      if (!(this_present_poCreatedAt && that_present_poCreatedAt))
998
        return false;
999
      if (this.poCreatedAt != that.poCreatedAt)
1000
        return false;
1001
    }
1002
 
1003
    boolean this_present_supplierName = true && this.isSetSupplierName();
1004
    boolean that_present_supplierName = true && that.isSetSupplierName();
1005
    if (this_present_supplierName || that_present_supplierName) {
1006
      if (!(this_present_supplierName && that_present_supplierName))
1007
        return false;
1008
      if (!this.supplierName.equals(that.supplierName))
1009
        return false;
1010
    }
1011
 
1012
    boolean this_present_invoiceNumbers = true && this.isSetInvoiceNumbers();
1013
    boolean that_present_invoiceNumbers = true && that.isSetInvoiceNumbers();
1014
    if (this_present_invoiceNumbers || that_present_invoiceNumbers) {
1015
      if (!(this_present_invoiceNumbers && that_present_invoiceNumbers))
1016
        return false;
1017
      if (!this.invoiceNumbers.equals(that.invoiceNumbers))
1018
        return false;
1019
    }
1020
 
6494 amar.kumar 1021
    boolean this_present_receivedBy = true && this.isSetReceivedBy();
1022
    boolean that_present_receivedBy = true && that.isSetReceivedBy();
1023
    if (this_present_receivedBy || that_present_receivedBy) {
1024
      if (!(this_present_receivedBy && that_present_receivedBy))
1025
        return false;
1026
      if (!this.receivedBy.equals(that.receivedBy))
1027
        return false;
1028
    }
1029
 
5372 mandeep.dh 1030
    boolean this_present_itemId = true;
1031
    boolean that_present_itemId = true;
1032
    if (this_present_itemId || that_present_itemId) {
1033
      if (!(this_present_itemId && that_present_itemId))
1034
        return false;
1035
      if (this.itemId != that.itemId)
1036
        return false;
1037
    }
1038
 
5545 mandeep.dh 1039
    boolean this_present_brand = true && this.isSetBrand();
1040
    boolean that_present_brand = true && that.isSetBrand();
1041
    if (this_present_brand || that_present_brand) {
1042
      if (!(this_present_brand && that_present_brand))
5372 mandeep.dh 1043
        return false;
5545 mandeep.dh 1044
      if (!this.brand.equals(that.brand))
5372 mandeep.dh 1045
        return false;
1046
    }
1047
 
5545 mandeep.dh 1048
    boolean this_present_modelName = true && this.isSetModelName();
1049
    boolean that_present_modelName = true && that.isSetModelName();
1050
    if (this_present_modelName || that_present_modelName) {
1051
      if (!(this_present_modelName && that_present_modelName))
1052
        return false;
1053
      if (!this.modelName.equals(that.modelName))
1054
        return false;
1055
    }
1056
 
1057
    boolean this_present_modelNumber = true && this.isSetModelNumber();
1058
    boolean that_present_modelNumber = true && that.isSetModelNumber();
1059
    if (this_present_modelNumber || that_present_modelNumber) {
1060
      if (!(this_present_modelNumber && that_present_modelNumber))
1061
        return false;
1062
      if (!this.modelNumber.equals(that.modelNumber))
1063
        return false;
1064
    }
1065
 
1066
    boolean this_present_color = true && this.isSetColor();
1067
    boolean that_present_color = true && that.isSetColor();
1068
    if (this_present_color || that_present_color) {
1069
      if (!(this_present_color && that_present_color))
1070
        return false;
1071
      if (!this.color.equals(that.color))
1072
        return false;
1073
    }
1074
 
5372 mandeep.dh 1075
    boolean this_present_unitPrice = true;
1076
    boolean that_present_unitPrice = true;
1077
    if (this_present_unitPrice || that_present_unitPrice) {
1078
      if (!(this_present_unitPrice && that_present_unitPrice))
1079
        return false;
1080
      if (this.unitPrice != that.unitPrice)
1081
        return false;
1082
    }
1083
 
1084
    boolean this_present_quantity = true;
1085
    boolean that_present_quantity = true;
1086
    if (this_present_quantity || that_present_quantity) {
1087
      if (!(this_present_quantity && that_present_quantity))
1088
        return false;
1089
      if (this.quantity != that.quantity)
1090
        return false;
1091
    }
1092
 
6361 rajveer 1093
    boolean this_present_purchaseId = true;
1094
    boolean that_present_purchaseId = true;
1095
    if (this_present_purchaseId || that_present_purchaseId) {
1096
      if (!(this_present_purchaseId && that_present_purchaseId))
1097
        return false;
1098
      if (this.purchaseId != that.purchaseId)
1099
        return false;
1100
    }
1101
 
1102
    boolean this_present_purchasedAt = true;
1103
    boolean that_present_purchasedAt = true;
1104
    if (this_present_purchasedAt || that_present_purchasedAt) {
1105
      if (!(this_present_purchasedAt && that_present_purchasedAt))
1106
        return false;
1107
      if (this.purchasedAt != that.purchasedAt)
1108
        return false;
1109
    }
1110
 
7672 rajveer 1111
    boolean this_present_nlc = true;
1112
    boolean that_present_nlc = true;
1113
    if (this_present_nlc || that_present_nlc) {
1114
      if (!(this_present_nlc && that_present_nlc))
1115
        return false;
1116
      if (this.nlc != that.nlc)
1117
        return false;
1118
    }
1119
 
8580 amar.kumar 1120
    boolean this_present_warehouseId = true;
1121
    boolean that_present_warehouseId = true;
1122
    if (this_present_warehouseId || that_present_warehouseId) {
1123
      if (!(this_present_warehouseId && that_present_warehouseId))
1124
        return false;
1125
      if (this.warehouseId != that.warehouseId)
1126
        return false;
1127
    }
1128
 
9433 amar.kumar 1129
    boolean this_present_taxType = true;
1130
    boolean that_present_taxType = true;
1131
    if (this_present_taxType || that_present_taxType) {
1132
      if (!(this_present_taxType && that_present_taxType))
1133
        return false;
1134
      if (this.taxType != that.taxType)
1135
        return false;
1136
    }
1137
 
5372 mandeep.dh 1138
    return true;
1139
  }
1140
 
1141
  @Override
1142
  public int hashCode() {
1143
    return 0;
1144
  }
1145
 
1146
  public int compareTo(DetailedPurchaseScan other) {
1147
    if (!getClass().equals(other.getClass())) {
1148
      return getClass().getName().compareTo(other.getClass().getName());
1149
    }
1150
 
1151
    int lastComparison = 0;
1152
    DetailedPurchaseScan typedOther = (DetailedPurchaseScan)other;
1153
 
1154
    lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
1155
    if (lastComparison != 0) {
1156
      return lastComparison;
1157
    }
1158
    if (isSetPurchaseOrderId()) {
1159
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
1160
      if (lastComparison != 0) {
1161
        return lastComparison;
1162
      }
1163
    }
1164
    lastComparison = Boolean.valueOf(isSetPoCreatedAt()).compareTo(typedOther.isSetPoCreatedAt());
1165
    if (lastComparison != 0) {
1166
      return lastComparison;
1167
    }
1168
    if (isSetPoCreatedAt()) {
1169
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poCreatedAt, typedOther.poCreatedAt);
1170
      if (lastComparison != 0) {
1171
        return lastComparison;
1172
      }
1173
    }
1174
    lastComparison = Boolean.valueOf(isSetSupplierName()).compareTo(typedOther.isSetSupplierName());
1175
    if (lastComparison != 0) {
1176
      return lastComparison;
1177
    }
1178
    if (isSetSupplierName()) {
1179
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierName, typedOther.supplierName);
1180
      if (lastComparison != 0) {
1181
        return lastComparison;
1182
      }
1183
    }
1184
    lastComparison = Boolean.valueOf(isSetInvoiceNumbers()).compareTo(typedOther.isSetInvoiceNumbers());
1185
    if (lastComparison != 0) {
1186
      return lastComparison;
1187
    }
1188
    if (isSetInvoiceNumbers()) {
1189
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumbers, typedOther.invoiceNumbers);
1190
      if (lastComparison != 0) {
1191
        return lastComparison;
1192
      }
1193
    }
6494 amar.kumar 1194
    lastComparison = Boolean.valueOf(isSetReceivedBy()).compareTo(typedOther.isSetReceivedBy());
1195
    if (lastComparison != 0) {
1196
      return lastComparison;
1197
    }
1198
    if (isSetReceivedBy()) {
1199
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedBy, typedOther.receivedBy);
1200
      if (lastComparison != 0) {
1201
        return lastComparison;
1202
      }
1203
    }
5372 mandeep.dh 1204
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
1205
    if (lastComparison != 0) {
1206
      return lastComparison;
1207
    }
1208
    if (isSetItemId()) {
1209
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
1210
      if (lastComparison != 0) {
1211
        return lastComparison;
1212
      }
1213
    }
5545 mandeep.dh 1214
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
5372 mandeep.dh 1215
    if (lastComparison != 0) {
1216
      return lastComparison;
1217
    }
5545 mandeep.dh 1218
    if (isSetBrand()) {
1219
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
5372 mandeep.dh 1220
      if (lastComparison != 0) {
1221
        return lastComparison;
1222
      }
1223
    }
5545 mandeep.dh 1224
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
1225
    if (lastComparison != 0) {
1226
      return lastComparison;
1227
    }
1228
    if (isSetModelName()) {
1229
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
1230
      if (lastComparison != 0) {
1231
        return lastComparison;
1232
      }
1233
    }
1234
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
1235
    if (lastComparison != 0) {
1236
      return lastComparison;
1237
    }
1238
    if (isSetModelNumber()) {
1239
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
1240
      if (lastComparison != 0) {
1241
        return lastComparison;
1242
      }
1243
    }
1244
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1245
    if (lastComparison != 0) {
1246
      return lastComparison;
1247
    }
1248
    if (isSetColor()) {
1249
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1250
      if (lastComparison != 0) {
1251
        return lastComparison;
1252
      }
1253
    }
5372 mandeep.dh 1254
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
1255
    if (lastComparison != 0) {
1256
      return lastComparison;
1257
    }
1258
    if (isSetUnitPrice()) {
1259
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
1260
      if (lastComparison != 0) {
1261
        return lastComparison;
1262
      }
1263
    }
1264
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
1265
    if (lastComparison != 0) {
1266
      return lastComparison;
1267
    }
1268
    if (isSetQuantity()) {
1269
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
1270
      if (lastComparison != 0) {
1271
        return lastComparison;
1272
      }
1273
    }
6361 rajveer 1274
    lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
1275
    if (lastComparison != 0) {
1276
      return lastComparison;
1277
    }
1278
    if (isSetPurchaseId()) {
1279
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
1280
      if (lastComparison != 0) {
1281
        return lastComparison;
1282
      }
1283
    }
1284
    lastComparison = Boolean.valueOf(isSetPurchasedAt()).compareTo(typedOther.isSetPurchasedAt());
1285
    if (lastComparison != 0) {
1286
      return lastComparison;
1287
    }
1288
    if (isSetPurchasedAt()) {
1289
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchasedAt, typedOther.purchasedAt);
1290
      if (lastComparison != 0) {
1291
        return lastComparison;
1292
      }
1293
    }
7672 rajveer 1294
    lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
1295
    if (lastComparison != 0) {
1296
      return lastComparison;
1297
    }
1298
    if (isSetNlc()) {
1299
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
1300
      if (lastComparison != 0) {
1301
        return lastComparison;
1302
      }
1303
    }
8580 amar.kumar 1304
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1305
    if (lastComparison != 0) {
1306
      return lastComparison;
1307
    }
1308
    if (isSetWarehouseId()) {
1309
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
1310
      if (lastComparison != 0) {
1311
        return lastComparison;
1312
      }
1313
    }
9433 amar.kumar 1314
    lastComparison = Boolean.valueOf(isSetTaxType()).compareTo(typedOther.isSetTaxType());
1315
    if (lastComparison != 0) {
1316
      return lastComparison;
1317
    }
1318
    if (isSetTaxType()) {
1319
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);
1320
      if (lastComparison != 0) {
1321
        return lastComparison;
1322
      }
1323
    }
5372 mandeep.dh 1324
    return 0;
1325
  }
1326
 
1327
  public _Fields fieldForId(int fieldId) {
1328
    return _Fields.findByThriftId(fieldId);
1329
  }
1330
 
1331
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1332
    org.apache.thrift.protocol.TField field;
1333
    iprot.readStructBegin();
1334
    while (true)
1335
    {
1336
      field = iprot.readFieldBegin();
1337
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1338
        break;
1339
      }
1340
      switch (field.id) {
1341
        case 1: // PURCHASE_ORDER_ID
1342
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1343
            this.purchaseOrderId = iprot.readI64();
1344
            setPurchaseOrderIdIsSet(true);
1345
          } else { 
1346
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1347
          }
1348
          break;
1349
        case 2: // PO_CREATED_AT
1350
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1351
            this.poCreatedAt = iprot.readI64();
1352
            setPoCreatedAtIsSet(true);
1353
          } else { 
1354
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1355
          }
1356
          break;
1357
        case 3: // SUPPLIER_NAME
1358
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1359
            this.supplierName = iprot.readString();
1360
          } else { 
1361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1362
          }
1363
          break;
1364
        case 4: // INVOICE_NUMBERS
1365
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1366
            this.invoiceNumbers = iprot.readString();
1367
          } else { 
1368
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1369
          }
1370
          break;
6494 amar.kumar 1371
        case 5: // RECEIVED_BY
1372
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1373
            this.receivedBy = iprot.readString();
1374
          } else { 
1375
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1376
          }
1377
          break;
1378
        case 6: // ITEM_ID
5372 mandeep.dh 1379
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1380
            this.itemId = iprot.readI64();
1381
            setItemIdIsSet(true);
1382
          } else { 
1383
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1384
          }
1385
          break;
6494 amar.kumar 1386
        case 7: // BRAND
5372 mandeep.dh 1387
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
5545 mandeep.dh 1388
            this.brand = iprot.readString();
5372 mandeep.dh 1389
          } else { 
1390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1391
          }
1392
          break;
6494 amar.kumar 1393
        case 8: // MODEL_NAME
5545 mandeep.dh 1394
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1395
            this.modelName = iprot.readString();
1396
          } else { 
1397
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1398
          }
1399
          break;
6494 amar.kumar 1400
        case 9: // MODEL_NUMBER
5545 mandeep.dh 1401
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1402
            this.modelNumber = iprot.readString();
1403
          } else { 
1404
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1405
          }
1406
          break;
6494 amar.kumar 1407
        case 10: // COLOR
5545 mandeep.dh 1408
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1409
            this.color = iprot.readString();
1410
          } else { 
1411
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1412
          }
1413
          break;
6494 amar.kumar 1414
        case 11: // UNIT_PRICE
5372 mandeep.dh 1415
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1416
            this.unitPrice = iprot.readDouble();
1417
            setUnitPriceIsSet(true);
1418
          } else { 
1419
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1420
          }
1421
          break;
6494 amar.kumar 1422
        case 12: // QUANTITY
5372 mandeep.dh 1423
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1424
            this.quantity = iprot.readI64();
1425
            setQuantityIsSet(true);
1426
          } else { 
1427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1428
          }
1429
          break;
6494 amar.kumar 1430
        case 13: // PURCHASE_ID
6361 rajveer 1431
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1432
            this.purchaseId = iprot.readI64();
1433
            setPurchaseIdIsSet(true);
1434
          } else { 
1435
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1436
          }
1437
          break;
6494 amar.kumar 1438
        case 14: // PURCHASED_AT
6361 rajveer 1439
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1440
            this.purchasedAt = iprot.readI64();
1441
            setPurchasedAtIsSet(true);
1442
          } else { 
1443
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1444
          }
1445
          break;
7672 rajveer 1446
        case 15: // NLC
1447
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1448
            this.nlc = iprot.readDouble();
1449
            setNlcIsSet(true);
1450
          } else { 
1451
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1452
          }
1453
          break;
8580 amar.kumar 1454
        case 16: // WAREHOUSE_ID
1455
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1456
            this.warehouseId = iprot.readI64();
1457
            setWarehouseIdIsSet(true);
1458
          } else { 
1459
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1460
          }
1461
          break;
9433 amar.kumar 1462
        case 17: // TAX_TYPE
1463
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1464
            this.taxType = iprot.readI64();
1465
            setTaxTypeIsSet(true);
1466
          } else { 
1467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1468
          }
1469
          break;
5372 mandeep.dh 1470
        default:
1471
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1472
      }
1473
      iprot.readFieldEnd();
1474
    }
1475
    iprot.readStructEnd();
1476
    validate();
1477
  }
1478
 
1479
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1480
    validate();
1481
 
1482
    oprot.writeStructBegin(STRUCT_DESC);
1483
    oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
1484
    oprot.writeI64(this.purchaseOrderId);
1485
    oprot.writeFieldEnd();
1486
    oprot.writeFieldBegin(PO_CREATED_AT_FIELD_DESC);
1487
    oprot.writeI64(this.poCreatedAt);
1488
    oprot.writeFieldEnd();
1489
    if (this.supplierName != null) {
1490
      oprot.writeFieldBegin(SUPPLIER_NAME_FIELD_DESC);
1491
      oprot.writeString(this.supplierName);
1492
      oprot.writeFieldEnd();
1493
    }
1494
    if (this.invoiceNumbers != null) {
1495
      oprot.writeFieldBegin(INVOICE_NUMBERS_FIELD_DESC);
1496
      oprot.writeString(this.invoiceNumbers);
1497
      oprot.writeFieldEnd();
1498
    }
6494 amar.kumar 1499
    if (this.receivedBy != null) {
1500
      oprot.writeFieldBegin(RECEIVED_BY_FIELD_DESC);
1501
      oprot.writeString(this.receivedBy);
1502
      oprot.writeFieldEnd();
1503
    }
5372 mandeep.dh 1504
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1505
    oprot.writeI64(this.itemId);
1506
    oprot.writeFieldEnd();
5545 mandeep.dh 1507
    if (this.brand != null) {
1508
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1509
      oprot.writeString(this.brand);
5372 mandeep.dh 1510
      oprot.writeFieldEnd();
1511
    }
5545 mandeep.dh 1512
    if (this.modelName != null) {
1513
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1514
      oprot.writeString(this.modelName);
1515
      oprot.writeFieldEnd();
1516
    }
1517
    if (this.modelNumber != null) {
1518
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
1519
      oprot.writeString(this.modelNumber);
1520
      oprot.writeFieldEnd();
1521
    }
1522
    if (this.color != null) {
1523
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1524
      oprot.writeString(this.color);
1525
      oprot.writeFieldEnd();
1526
    }
5372 mandeep.dh 1527
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1528
    oprot.writeDouble(this.unitPrice);
1529
    oprot.writeFieldEnd();
1530
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
1531
    oprot.writeI64(this.quantity);
1532
    oprot.writeFieldEnd();
6361 rajveer 1533
    oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
1534
    oprot.writeI64(this.purchaseId);
1535
    oprot.writeFieldEnd();
1536
    oprot.writeFieldBegin(PURCHASED_AT_FIELD_DESC);
1537
    oprot.writeI64(this.purchasedAt);
1538
    oprot.writeFieldEnd();
7672 rajveer 1539
    oprot.writeFieldBegin(NLC_FIELD_DESC);
1540
    oprot.writeDouble(this.nlc);
1541
    oprot.writeFieldEnd();
8580 amar.kumar 1542
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1543
    oprot.writeI64(this.warehouseId);
1544
    oprot.writeFieldEnd();
9433 amar.kumar 1545
    oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);
1546
    oprot.writeI64(this.taxType);
1547
    oprot.writeFieldEnd();
5372 mandeep.dh 1548
    oprot.writeFieldStop();
1549
    oprot.writeStructEnd();
1550
  }
1551
 
1552
  @Override
1553
  public String toString() {
1554
    StringBuilder sb = new StringBuilder("DetailedPurchaseScan(");
1555
    boolean first = true;
1556
 
1557
    sb.append("purchaseOrderId:");
1558
    sb.append(this.purchaseOrderId);
1559
    first = false;
1560
    if (!first) sb.append(", ");
1561
    sb.append("poCreatedAt:");
1562
    sb.append(this.poCreatedAt);
1563
    first = false;
1564
    if (!first) sb.append(", ");
1565
    sb.append("supplierName:");
1566
    if (this.supplierName == null) {
1567
      sb.append("null");
1568
    } else {
1569
      sb.append(this.supplierName);
1570
    }
1571
    first = false;
1572
    if (!first) sb.append(", ");
1573
    sb.append("invoiceNumbers:");
1574
    if (this.invoiceNumbers == null) {
1575
      sb.append("null");
1576
    } else {
1577
      sb.append(this.invoiceNumbers);
1578
    }
1579
    first = false;
1580
    if (!first) sb.append(", ");
6494 amar.kumar 1581
    sb.append("receivedBy:");
1582
    if (this.receivedBy == null) {
1583
      sb.append("null");
1584
    } else {
1585
      sb.append(this.receivedBy);
1586
    }
1587
    first = false;
1588
    if (!first) sb.append(", ");
5372 mandeep.dh 1589
    sb.append("itemId:");
1590
    sb.append(this.itemId);
1591
    first = false;
1592
    if (!first) sb.append(", ");
5545 mandeep.dh 1593
    sb.append("brand:");
1594
    if (this.brand == null) {
5372 mandeep.dh 1595
      sb.append("null");
1596
    } else {
5545 mandeep.dh 1597
      sb.append(this.brand);
5372 mandeep.dh 1598
    }
1599
    first = false;
1600
    if (!first) sb.append(", ");
5545 mandeep.dh 1601
    sb.append("modelName:");
1602
    if (this.modelName == null) {
1603
      sb.append("null");
1604
    } else {
1605
      sb.append(this.modelName);
1606
    }
1607
    first = false;
1608
    if (!first) sb.append(", ");
1609
    sb.append("modelNumber:");
1610
    if (this.modelNumber == null) {
1611
      sb.append("null");
1612
    } else {
1613
      sb.append(this.modelNumber);
1614
    }
1615
    first = false;
1616
    if (!first) sb.append(", ");
1617
    sb.append("color:");
1618
    if (this.color == null) {
1619
      sb.append("null");
1620
    } else {
1621
      sb.append(this.color);
1622
    }
1623
    first = false;
1624
    if (!first) sb.append(", ");
5372 mandeep.dh 1625
    sb.append("unitPrice:");
1626
    sb.append(this.unitPrice);
1627
    first = false;
1628
    if (!first) sb.append(", ");
1629
    sb.append("quantity:");
1630
    sb.append(this.quantity);
1631
    first = false;
6361 rajveer 1632
    if (!first) sb.append(", ");
1633
    sb.append("purchaseId:");
1634
    sb.append(this.purchaseId);
1635
    first = false;
1636
    if (!first) sb.append(", ");
1637
    sb.append("purchasedAt:");
1638
    sb.append(this.purchasedAt);
1639
    first = false;
7672 rajveer 1640
    if (!first) sb.append(", ");
1641
    sb.append("nlc:");
1642
    sb.append(this.nlc);
1643
    first = false;
8580 amar.kumar 1644
    if (!first) sb.append(", ");
1645
    sb.append("warehouseId:");
1646
    sb.append(this.warehouseId);
1647
    first = false;
9433 amar.kumar 1648
    if (!first) sb.append(", ");
1649
    sb.append("taxType:");
1650
    sb.append(this.taxType);
1651
    first = false;
5372 mandeep.dh 1652
    sb.append(")");
1653
    return sb.toString();
1654
  }
1655
 
1656
  public void validate() throws org.apache.thrift.TException {
1657
    // check for required fields
1658
  }
1659
 
1660
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1661
    try {
1662
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1663
    } catch (org.apache.thrift.TException te) {
1664
      throw new java.io.IOException(te);
1665
    }
1666
  }
1667
 
1668
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1669
    try {
1670
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1671
      __isset_bit_vector = new BitSet(1);
1672
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1673
    } catch (org.apache.thrift.TException te) {
1674
      throw new java.io.IOException(te);
1675
    }
1676
  }
1677
 
1678
}
1679