Subversion Repositories SmartDukaan

Rev

Rev 18634 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
18634 manish.sha 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.model.v1.order;
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 LoanHistory implements org.apache.thrift.TBase<LoanHistory, LoanHistory._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LoanHistory");
25
 
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 USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("user_id", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditor_id", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("payment_id", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField CREDIT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("credit_type", org.apache.thrift.protocol.TType.I32, (short)6);
32
  private static final org.apache.thrift.protocol.TField CREATED_FIELD_DESC = new org.apache.thrift.protocol.TField("created", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField UPDATED_FIELD_DESC = new org.apache.thrift.protocol.TField("updated", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField LOAN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("loan_id", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField DUE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("due_date", org.apache.thrift.protocol.TType.I64, (short)10);
36
  private static final org.apache.thrift.protocol.TField VALUE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("value_date", org.apache.thrift.protocol.TType.I64, (short)11);
18769 manish.sha 37
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)12);
18634 manish.sha 38
 
39
  private long id; // required
40
  private long user_id; // required
41
  private long creditor_id; // required
42
  private long payment_id; // required
43
  private double amount; // required
44
  private CreditTxnType credit_type; // required
45
  private long created; // required
46
  private long updated; // required
47
  private String loan_id; // required
48
  private long due_date; // required
49
  private long value_date; // required
18769 manish.sha 50
  private String invoiceNumber; // required
18634 manish.sha 51
 
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54
    ID((short)1, "id"),
55
    USER_ID((short)2, "user_id"),
56
    CREDITOR_ID((short)3, "creditor_id"),
57
    PAYMENT_ID((short)4, "payment_id"),
58
    AMOUNT((short)5, "amount"),
59
    /**
60
     * 
61
     * @see CreditTxnType
62
     */
63
    CREDIT_TYPE((short)6, "credit_type"),
64
    CREATED((short)7, "created"),
65
    UPDATED((short)8, "updated"),
66
    LOAN_ID((short)9, "loan_id"),
67
    DUE_DATE((short)10, "due_date"),
18769 manish.sha 68
    VALUE_DATE((short)11, "value_date"),
69
    INVOICE_NUMBER((short)12, "invoiceNumber");
18634 manish.sha 70
 
71
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
72
 
73
    static {
74
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
75
        byName.put(field.getFieldName(), field);
76
      }
77
    }
78
 
79
    /**
80
     * Find the _Fields constant that matches fieldId, or null if its not found.
81
     */
82
    public static _Fields findByThriftId(int fieldId) {
83
      switch(fieldId) {
84
        case 1: // ID
85
          return ID;
86
        case 2: // USER_ID
87
          return USER_ID;
88
        case 3: // CREDITOR_ID
89
          return CREDITOR_ID;
90
        case 4: // PAYMENT_ID
91
          return PAYMENT_ID;
92
        case 5: // AMOUNT
93
          return AMOUNT;
94
        case 6: // CREDIT_TYPE
95
          return CREDIT_TYPE;
96
        case 7: // CREATED
97
          return CREATED;
98
        case 8: // UPDATED
99
          return UPDATED;
100
        case 9: // LOAN_ID
101
          return LOAN_ID;
102
        case 10: // DUE_DATE
103
          return DUE_DATE;
104
        case 11: // VALUE_DATE
105
          return VALUE_DATE;
18769 manish.sha 106
        case 12: // INVOICE_NUMBER
107
          return INVOICE_NUMBER;
18634 manish.sha 108
        default:
109
          return null;
110
      }
111
    }
112
 
113
    /**
114
     * Find the _Fields constant that matches fieldId, throwing an exception
115
     * if it is not found.
116
     */
117
    public static _Fields findByThriftIdOrThrow(int fieldId) {
118
      _Fields fields = findByThriftId(fieldId);
119
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
120
      return fields;
121
    }
122
 
123
    /**
124
     * Find the _Fields constant that matches name, or null if its not found.
125
     */
126
    public static _Fields findByName(String name) {
127
      return byName.get(name);
128
    }
129
 
130
    private final short _thriftId;
131
    private final String _fieldName;
132
 
133
    _Fields(short thriftId, String fieldName) {
134
      _thriftId = thriftId;
135
      _fieldName = fieldName;
136
    }
137
 
138
    public short getThriftFieldId() {
139
      return _thriftId;
140
    }
141
 
142
    public String getFieldName() {
143
      return _fieldName;
144
    }
145
  }
146
 
147
  // isset id assignments
148
  private static final int __ID_ISSET_ID = 0;
149
  private static final int __USER_ID_ISSET_ID = 1;
150
  private static final int __CREDITOR_ID_ISSET_ID = 2;
151
  private static final int __PAYMENT_ID_ISSET_ID = 3;
152
  private static final int __AMOUNT_ISSET_ID = 4;
153
  private static final int __CREATED_ISSET_ID = 5;
154
  private static final int __UPDATED_ISSET_ID = 6;
155
  private static final int __DUE_DATE_ISSET_ID = 7;
156
  private static final int __VALUE_DATE_ISSET_ID = 8;
157
  private BitSet __isset_bit_vector = new BitSet(9);
158
 
159
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
160
  static {
161
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
162
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
164
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
166
    tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditor_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
168
    tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("payment_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
170
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
172
    tmpMap.put(_Fields.CREDIT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("credit_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
173
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
174
    tmpMap.put(_Fields.CREATED, new org.apache.thrift.meta_data.FieldMetaData("created", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
176
    tmpMap.put(_Fields.UPDATED, new org.apache.thrift.meta_data.FieldMetaData("updated", org.apache.thrift.TFieldRequirementType.DEFAULT, 
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
178
    tmpMap.put(_Fields.LOAN_ID, new org.apache.thrift.meta_data.FieldMetaData("loan_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
180
    tmpMap.put(_Fields.DUE_DATE, new org.apache.thrift.meta_data.FieldMetaData("due_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
182
    tmpMap.put(_Fields.VALUE_DATE, new org.apache.thrift.meta_data.FieldMetaData("value_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
183
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18769 manish.sha 184
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18634 manish.sha 186
    metaDataMap = Collections.unmodifiableMap(tmpMap);
187
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LoanHistory.class, metaDataMap);
188
  }
189
 
190
  public LoanHistory() {
191
  }
192
 
193
  public LoanHistory(
194
    long id,
195
    long user_id,
196
    long creditor_id,
197
    long payment_id,
198
    double amount,
199
    CreditTxnType credit_type,
200
    long created,
201
    long updated,
202
    String loan_id,
203
    long due_date,
18769 manish.sha 204
    long value_date,
205
    String invoiceNumber)
18634 manish.sha 206
  {
207
    this();
208
    this.id = id;
209
    setIdIsSet(true);
210
    this.user_id = user_id;
211
    setUser_idIsSet(true);
212
    this.creditor_id = creditor_id;
213
    setCreditor_idIsSet(true);
214
    this.payment_id = payment_id;
215
    setPayment_idIsSet(true);
216
    this.amount = amount;
217
    setAmountIsSet(true);
218
    this.credit_type = credit_type;
219
    this.created = created;
220
    setCreatedIsSet(true);
221
    this.updated = updated;
222
    setUpdatedIsSet(true);
223
    this.loan_id = loan_id;
224
    this.due_date = due_date;
225
    setDue_dateIsSet(true);
226
    this.value_date = value_date;
227
    setValue_dateIsSet(true);
18769 manish.sha 228
    this.invoiceNumber = invoiceNumber;
18634 manish.sha 229
  }
230
 
231
  /**
232
   * Performs a deep copy on <i>other</i>.
233
   */
234
  public LoanHistory(LoanHistory other) {
235
    __isset_bit_vector.clear();
236
    __isset_bit_vector.or(other.__isset_bit_vector);
237
    this.id = other.id;
238
    this.user_id = other.user_id;
239
    this.creditor_id = other.creditor_id;
240
    this.payment_id = other.payment_id;
241
    this.amount = other.amount;
242
    if (other.isSetCredit_type()) {
243
      this.credit_type = other.credit_type;
244
    }
245
    this.created = other.created;
246
    this.updated = other.updated;
247
    if (other.isSetLoan_id()) {
248
      this.loan_id = other.loan_id;
249
    }
250
    this.due_date = other.due_date;
251
    this.value_date = other.value_date;
18769 manish.sha 252
    if (other.isSetInvoiceNumber()) {
253
      this.invoiceNumber = other.invoiceNumber;
254
    }
18634 manish.sha 255
  }
256
 
257
  public LoanHistory deepCopy() {
258
    return new LoanHistory(this);
259
  }
260
 
261
  @Override
262
  public void clear() {
263
    setIdIsSet(false);
264
    this.id = 0;
265
    setUser_idIsSet(false);
266
    this.user_id = 0;
267
    setCreditor_idIsSet(false);
268
    this.creditor_id = 0;
269
    setPayment_idIsSet(false);
270
    this.payment_id = 0;
271
    setAmountIsSet(false);
272
    this.amount = 0.0;
273
    this.credit_type = null;
274
    setCreatedIsSet(false);
275
    this.created = 0;
276
    setUpdatedIsSet(false);
277
    this.updated = 0;
278
    this.loan_id = null;
279
    setDue_dateIsSet(false);
280
    this.due_date = 0;
281
    setValue_dateIsSet(false);
282
    this.value_date = 0;
18769 manish.sha 283
    this.invoiceNumber = null;
18634 manish.sha 284
  }
285
 
286
  public long getId() {
287
    return this.id;
288
  }
289
 
290
  public void setId(long id) {
291
    this.id = id;
292
    setIdIsSet(true);
293
  }
294
 
295
  public void unsetId() {
296
    __isset_bit_vector.clear(__ID_ISSET_ID);
297
  }
298
 
299
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
300
  public boolean isSetId() {
301
    return __isset_bit_vector.get(__ID_ISSET_ID);
302
  }
303
 
304
  public void setIdIsSet(boolean value) {
305
    __isset_bit_vector.set(__ID_ISSET_ID, value);
306
  }
307
 
308
  public long getUser_id() {
309
    return this.user_id;
310
  }
311
 
312
  public void setUser_id(long user_id) {
313
    this.user_id = user_id;
314
    setUser_idIsSet(true);
315
  }
316
 
317
  public void unsetUser_id() {
318
    __isset_bit_vector.clear(__USER_ID_ISSET_ID);
319
  }
320
 
321
  /** Returns true if field user_id is set (has been assigned a value) and false otherwise */
322
  public boolean isSetUser_id() {
323
    return __isset_bit_vector.get(__USER_ID_ISSET_ID);
324
  }
325
 
326
  public void setUser_idIsSet(boolean value) {
327
    __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
328
  }
329
 
330
  public long getCreditor_id() {
331
    return this.creditor_id;
332
  }
333
 
334
  public void setCreditor_id(long creditor_id) {
335
    this.creditor_id = creditor_id;
336
    setCreditor_idIsSet(true);
337
  }
338
 
339
  public void unsetCreditor_id() {
340
    __isset_bit_vector.clear(__CREDITOR_ID_ISSET_ID);
341
  }
342
 
343
  /** Returns true if field creditor_id is set (has been assigned a value) and false otherwise */
344
  public boolean isSetCreditor_id() {
345
    return __isset_bit_vector.get(__CREDITOR_ID_ISSET_ID);
346
  }
347
 
348
  public void setCreditor_idIsSet(boolean value) {
349
    __isset_bit_vector.set(__CREDITOR_ID_ISSET_ID, value);
350
  }
351
 
352
  public long getPayment_id() {
353
    return this.payment_id;
354
  }
355
 
356
  public void setPayment_id(long payment_id) {
357
    this.payment_id = payment_id;
358
    setPayment_idIsSet(true);
359
  }
360
 
361
  public void unsetPayment_id() {
362
    __isset_bit_vector.clear(__PAYMENT_ID_ISSET_ID);
363
  }
364
 
365
  /** Returns true if field payment_id is set (has been assigned a value) and false otherwise */
366
  public boolean isSetPayment_id() {
367
    return __isset_bit_vector.get(__PAYMENT_ID_ISSET_ID);
368
  }
369
 
370
  public void setPayment_idIsSet(boolean value) {
371
    __isset_bit_vector.set(__PAYMENT_ID_ISSET_ID, value);
372
  }
373
 
374
  public double getAmount() {
375
    return this.amount;
376
  }
377
 
378
  public void setAmount(double amount) {
379
    this.amount = amount;
380
    setAmountIsSet(true);
381
  }
382
 
383
  public void unsetAmount() {
384
    __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
385
  }
386
 
387
  /** Returns true if field amount is set (has been assigned a value) and false otherwise */
388
  public boolean isSetAmount() {
389
    return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
390
  }
391
 
392
  public void setAmountIsSet(boolean value) {
393
    __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
394
  }
395
 
396
  /**
397
   * 
398
   * @see CreditTxnType
399
   */
400
  public CreditTxnType getCredit_type() {
401
    return this.credit_type;
402
  }
403
 
404
  /**
405
   * 
406
   * @see CreditTxnType
407
   */
408
  public void setCredit_type(CreditTxnType credit_type) {
409
    this.credit_type = credit_type;
410
  }
411
 
412
  public void unsetCredit_type() {
413
    this.credit_type = null;
414
  }
415
 
416
  /** Returns true if field credit_type is set (has been assigned a value) and false otherwise */
417
  public boolean isSetCredit_type() {
418
    return this.credit_type != null;
419
  }
420
 
421
  public void setCredit_typeIsSet(boolean value) {
422
    if (!value) {
423
      this.credit_type = null;
424
    }
425
  }
426
 
427
  public long getCreated() {
428
    return this.created;
429
  }
430
 
431
  public void setCreated(long created) {
432
    this.created = created;
433
    setCreatedIsSet(true);
434
  }
435
 
436
  public void unsetCreated() {
437
    __isset_bit_vector.clear(__CREATED_ISSET_ID);
438
  }
439
 
440
  /** Returns true if field created is set (has been assigned a value) and false otherwise */
441
  public boolean isSetCreated() {
442
    return __isset_bit_vector.get(__CREATED_ISSET_ID);
443
  }
444
 
445
  public void setCreatedIsSet(boolean value) {
446
    __isset_bit_vector.set(__CREATED_ISSET_ID, value);
447
  }
448
 
449
  public long getUpdated() {
450
    return this.updated;
451
  }
452
 
453
  public void setUpdated(long updated) {
454
    this.updated = updated;
455
    setUpdatedIsSet(true);
456
  }
457
 
458
  public void unsetUpdated() {
459
    __isset_bit_vector.clear(__UPDATED_ISSET_ID);
460
  }
461
 
462
  /** Returns true if field updated is set (has been assigned a value) and false otherwise */
463
  public boolean isSetUpdated() {
464
    return __isset_bit_vector.get(__UPDATED_ISSET_ID);
465
  }
466
 
467
  public void setUpdatedIsSet(boolean value) {
468
    __isset_bit_vector.set(__UPDATED_ISSET_ID, value);
469
  }
470
 
471
  public String getLoan_id() {
472
    return this.loan_id;
473
  }
474
 
475
  public void setLoan_id(String loan_id) {
476
    this.loan_id = loan_id;
477
  }
478
 
479
  public void unsetLoan_id() {
480
    this.loan_id = null;
481
  }
482
 
483
  /** Returns true if field loan_id is set (has been assigned a value) and false otherwise */
484
  public boolean isSetLoan_id() {
485
    return this.loan_id != null;
486
  }
487
 
488
  public void setLoan_idIsSet(boolean value) {
489
    if (!value) {
490
      this.loan_id = null;
491
    }
492
  }
493
 
494
  public long getDue_date() {
495
    return this.due_date;
496
  }
497
 
498
  public void setDue_date(long due_date) {
499
    this.due_date = due_date;
500
    setDue_dateIsSet(true);
501
  }
502
 
503
  public void unsetDue_date() {
504
    __isset_bit_vector.clear(__DUE_DATE_ISSET_ID);
505
  }
506
 
507
  /** Returns true if field due_date is set (has been assigned a value) and false otherwise */
508
  public boolean isSetDue_date() {
509
    return __isset_bit_vector.get(__DUE_DATE_ISSET_ID);
510
  }
511
 
512
  public void setDue_dateIsSet(boolean value) {
513
    __isset_bit_vector.set(__DUE_DATE_ISSET_ID, value);
514
  }
515
 
516
  public long getValue_date() {
517
    return this.value_date;
518
  }
519
 
520
  public void setValue_date(long value_date) {
521
    this.value_date = value_date;
522
    setValue_dateIsSet(true);
523
  }
524
 
525
  public void unsetValue_date() {
526
    __isset_bit_vector.clear(__VALUE_DATE_ISSET_ID);
527
  }
528
 
529
  /** Returns true if field value_date is set (has been assigned a value) and false otherwise */
530
  public boolean isSetValue_date() {
531
    return __isset_bit_vector.get(__VALUE_DATE_ISSET_ID);
532
  }
533
 
534
  public void setValue_dateIsSet(boolean value) {
535
    __isset_bit_vector.set(__VALUE_DATE_ISSET_ID, value);
536
  }
537
 
18769 manish.sha 538
  public String getInvoiceNumber() {
539
    return this.invoiceNumber;
540
  }
541
 
542
  public void setInvoiceNumber(String invoiceNumber) {
543
    this.invoiceNumber = invoiceNumber;
544
  }
545
 
546
  public void unsetInvoiceNumber() {
547
    this.invoiceNumber = null;
548
  }
549
 
550
  /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
551
  public boolean isSetInvoiceNumber() {
552
    return this.invoiceNumber != null;
553
  }
554
 
555
  public void setInvoiceNumberIsSet(boolean value) {
556
    if (!value) {
557
      this.invoiceNumber = null;
558
    }
559
  }
560
 
18634 manish.sha 561
  public void setFieldValue(_Fields field, Object value) {
562
    switch (field) {
563
    case ID:
564
      if (value == null) {
565
        unsetId();
566
      } else {
567
        setId((Long)value);
568
      }
569
      break;
570
 
571
    case USER_ID:
572
      if (value == null) {
573
        unsetUser_id();
574
      } else {
575
        setUser_id((Long)value);
576
      }
577
      break;
578
 
579
    case CREDITOR_ID:
580
      if (value == null) {
581
        unsetCreditor_id();
582
      } else {
583
        setCreditor_id((Long)value);
584
      }
585
      break;
586
 
587
    case PAYMENT_ID:
588
      if (value == null) {
589
        unsetPayment_id();
590
      } else {
591
        setPayment_id((Long)value);
592
      }
593
      break;
594
 
595
    case AMOUNT:
596
      if (value == null) {
597
        unsetAmount();
598
      } else {
599
        setAmount((Double)value);
600
      }
601
      break;
602
 
603
    case CREDIT_TYPE:
604
      if (value == null) {
605
        unsetCredit_type();
606
      } else {
607
        setCredit_type((CreditTxnType)value);
608
      }
609
      break;
610
 
611
    case CREATED:
612
      if (value == null) {
613
        unsetCreated();
614
      } else {
615
        setCreated((Long)value);
616
      }
617
      break;
618
 
619
    case UPDATED:
620
      if (value == null) {
621
        unsetUpdated();
622
      } else {
623
        setUpdated((Long)value);
624
      }
625
      break;
626
 
627
    case LOAN_ID:
628
      if (value == null) {
629
        unsetLoan_id();
630
      } else {
631
        setLoan_id((String)value);
632
      }
633
      break;
634
 
635
    case DUE_DATE:
636
      if (value == null) {
637
        unsetDue_date();
638
      } else {
639
        setDue_date((Long)value);
640
      }
641
      break;
642
 
643
    case VALUE_DATE:
644
      if (value == null) {
645
        unsetValue_date();
646
      } else {
647
        setValue_date((Long)value);
648
      }
649
      break;
650
 
18769 manish.sha 651
    case INVOICE_NUMBER:
652
      if (value == null) {
653
        unsetInvoiceNumber();
654
      } else {
655
        setInvoiceNumber((String)value);
656
      }
657
      break;
658
 
18634 manish.sha 659
    }
660
  }
661
 
662
  public Object getFieldValue(_Fields field) {
663
    switch (field) {
664
    case ID:
665
      return Long.valueOf(getId());
666
 
667
    case USER_ID:
668
      return Long.valueOf(getUser_id());
669
 
670
    case CREDITOR_ID:
671
      return Long.valueOf(getCreditor_id());
672
 
673
    case PAYMENT_ID:
674
      return Long.valueOf(getPayment_id());
675
 
676
    case AMOUNT:
677
      return Double.valueOf(getAmount());
678
 
679
    case CREDIT_TYPE:
680
      return getCredit_type();
681
 
682
    case CREATED:
683
      return Long.valueOf(getCreated());
684
 
685
    case UPDATED:
686
      return Long.valueOf(getUpdated());
687
 
688
    case LOAN_ID:
689
      return getLoan_id();
690
 
691
    case DUE_DATE:
692
      return Long.valueOf(getDue_date());
693
 
694
    case VALUE_DATE:
695
      return Long.valueOf(getValue_date());
696
 
18769 manish.sha 697
    case INVOICE_NUMBER:
698
      return getInvoiceNumber();
699
 
18634 manish.sha 700
    }
701
    throw new IllegalStateException();
702
  }
703
 
704
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
705
  public boolean isSet(_Fields field) {
706
    if (field == null) {
707
      throw new IllegalArgumentException();
708
    }
709
 
710
    switch (field) {
711
    case ID:
712
      return isSetId();
713
    case USER_ID:
714
      return isSetUser_id();
715
    case CREDITOR_ID:
716
      return isSetCreditor_id();
717
    case PAYMENT_ID:
718
      return isSetPayment_id();
719
    case AMOUNT:
720
      return isSetAmount();
721
    case CREDIT_TYPE:
722
      return isSetCredit_type();
723
    case CREATED:
724
      return isSetCreated();
725
    case UPDATED:
726
      return isSetUpdated();
727
    case LOAN_ID:
728
      return isSetLoan_id();
729
    case DUE_DATE:
730
      return isSetDue_date();
731
    case VALUE_DATE:
732
      return isSetValue_date();
18769 manish.sha 733
    case INVOICE_NUMBER:
734
      return isSetInvoiceNumber();
18634 manish.sha 735
    }
736
    throw new IllegalStateException();
737
  }
738
 
739
  @Override
740
  public boolean equals(Object that) {
741
    if (that == null)
742
      return false;
743
    if (that instanceof LoanHistory)
744
      return this.equals((LoanHistory)that);
745
    return false;
746
  }
747
 
748
  public boolean equals(LoanHistory that) {
749
    if (that == null)
750
      return false;
751
 
752
    boolean this_present_id = true;
753
    boolean that_present_id = true;
754
    if (this_present_id || that_present_id) {
755
      if (!(this_present_id && that_present_id))
756
        return false;
757
      if (this.id != that.id)
758
        return false;
759
    }
760
 
761
    boolean this_present_user_id = true;
762
    boolean that_present_user_id = true;
763
    if (this_present_user_id || that_present_user_id) {
764
      if (!(this_present_user_id && that_present_user_id))
765
        return false;
766
      if (this.user_id != that.user_id)
767
        return false;
768
    }
769
 
770
    boolean this_present_creditor_id = true;
771
    boolean that_present_creditor_id = true;
772
    if (this_present_creditor_id || that_present_creditor_id) {
773
      if (!(this_present_creditor_id && that_present_creditor_id))
774
        return false;
775
      if (this.creditor_id != that.creditor_id)
776
        return false;
777
    }
778
 
779
    boolean this_present_payment_id = true;
780
    boolean that_present_payment_id = true;
781
    if (this_present_payment_id || that_present_payment_id) {
782
      if (!(this_present_payment_id && that_present_payment_id))
783
        return false;
784
      if (this.payment_id != that.payment_id)
785
        return false;
786
    }
787
 
788
    boolean this_present_amount = true;
789
    boolean that_present_amount = true;
790
    if (this_present_amount || that_present_amount) {
791
      if (!(this_present_amount && that_present_amount))
792
        return false;
793
      if (this.amount != that.amount)
794
        return false;
795
    }
796
 
797
    boolean this_present_credit_type = true && this.isSetCredit_type();
798
    boolean that_present_credit_type = true && that.isSetCredit_type();
799
    if (this_present_credit_type || that_present_credit_type) {
800
      if (!(this_present_credit_type && that_present_credit_type))
801
        return false;
802
      if (!this.credit_type.equals(that.credit_type))
803
        return false;
804
    }
805
 
806
    boolean this_present_created = true;
807
    boolean that_present_created = true;
808
    if (this_present_created || that_present_created) {
809
      if (!(this_present_created && that_present_created))
810
        return false;
811
      if (this.created != that.created)
812
        return false;
813
    }
814
 
815
    boolean this_present_updated = true;
816
    boolean that_present_updated = true;
817
    if (this_present_updated || that_present_updated) {
818
      if (!(this_present_updated && that_present_updated))
819
        return false;
820
      if (this.updated != that.updated)
821
        return false;
822
    }
823
 
824
    boolean this_present_loan_id = true && this.isSetLoan_id();
825
    boolean that_present_loan_id = true && that.isSetLoan_id();
826
    if (this_present_loan_id || that_present_loan_id) {
827
      if (!(this_present_loan_id && that_present_loan_id))
828
        return false;
829
      if (!this.loan_id.equals(that.loan_id))
830
        return false;
831
    }
832
 
833
    boolean this_present_due_date = true;
834
    boolean that_present_due_date = true;
835
    if (this_present_due_date || that_present_due_date) {
836
      if (!(this_present_due_date && that_present_due_date))
837
        return false;
838
      if (this.due_date != that.due_date)
839
        return false;
840
    }
841
 
842
    boolean this_present_value_date = true;
843
    boolean that_present_value_date = true;
844
    if (this_present_value_date || that_present_value_date) {
845
      if (!(this_present_value_date && that_present_value_date))
846
        return false;
847
      if (this.value_date != that.value_date)
848
        return false;
849
    }
850
 
18769 manish.sha 851
    boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
852
    boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
853
    if (this_present_invoiceNumber || that_present_invoiceNumber) {
854
      if (!(this_present_invoiceNumber && that_present_invoiceNumber))
855
        return false;
856
      if (!this.invoiceNumber.equals(that.invoiceNumber))
857
        return false;
858
    }
859
 
18634 manish.sha 860
    return true;
861
  }
862
 
863
  @Override
864
  public int hashCode() {
865
    return 0;
866
  }
867
 
868
  public int compareTo(LoanHistory other) {
869
    if (!getClass().equals(other.getClass())) {
870
      return getClass().getName().compareTo(other.getClass().getName());
871
    }
872
 
873
    int lastComparison = 0;
874
    LoanHistory typedOther = (LoanHistory)other;
875
 
876
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
877
    if (lastComparison != 0) {
878
      return lastComparison;
879
    }
880
    if (isSetId()) {
881
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
882
      if (lastComparison != 0) {
883
        return lastComparison;
884
      }
885
    }
886
    lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
887
    if (lastComparison != 0) {
888
      return lastComparison;
889
    }
890
    if (isSetUser_id()) {
891
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
892
      if (lastComparison != 0) {
893
        return lastComparison;
894
      }
895
    }
896
    lastComparison = Boolean.valueOf(isSetCreditor_id()).compareTo(typedOther.isSetCreditor_id());
897
    if (lastComparison != 0) {
898
      return lastComparison;
899
    }
900
    if (isSetCreditor_id()) {
901
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditor_id, typedOther.creditor_id);
902
      if (lastComparison != 0) {
903
        return lastComparison;
904
      }
905
    }
906
    lastComparison = Boolean.valueOf(isSetPayment_id()).compareTo(typedOther.isSetPayment_id());
907
    if (lastComparison != 0) {
908
      return lastComparison;
909
    }
910
    if (isSetPayment_id()) {
911
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.payment_id, typedOther.payment_id);
912
      if (lastComparison != 0) {
913
        return lastComparison;
914
      }
915
    }
916
    lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
917
    if (lastComparison != 0) {
918
      return lastComparison;
919
    }
920
    if (isSetAmount()) {
921
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
922
      if (lastComparison != 0) {
923
        return lastComparison;
924
      }
925
    }
926
    lastComparison = Boolean.valueOf(isSetCredit_type()).compareTo(typedOther.isSetCredit_type());
927
    if (lastComparison != 0) {
928
      return lastComparison;
929
    }
930
    if (isSetCredit_type()) {
931
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credit_type, typedOther.credit_type);
932
      if (lastComparison != 0) {
933
        return lastComparison;
934
      }
935
    }
936
    lastComparison = Boolean.valueOf(isSetCreated()).compareTo(typedOther.isSetCreated());
937
    if (lastComparison != 0) {
938
      return lastComparison;
939
    }
940
    if (isSetCreated()) {
941
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.created, typedOther.created);
942
      if (lastComparison != 0) {
943
        return lastComparison;
944
      }
945
    }
946
    lastComparison = Boolean.valueOf(isSetUpdated()).compareTo(typedOther.isSetUpdated());
947
    if (lastComparison != 0) {
948
      return lastComparison;
949
    }
950
    if (isSetUpdated()) {
951
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updated, typedOther.updated);
952
      if (lastComparison != 0) {
953
        return lastComparison;
954
      }
955
    }
956
    lastComparison = Boolean.valueOf(isSetLoan_id()).compareTo(typedOther.isSetLoan_id());
957
    if (lastComparison != 0) {
958
      return lastComparison;
959
    }
960
    if (isSetLoan_id()) {
961
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.loan_id, typedOther.loan_id);
962
      if (lastComparison != 0) {
963
        return lastComparison;
964
      }
965
    }
966
    lastComparison = Boolean.valueOf(isSetDue_date()).compareTo(typedOther.isSetDue_date());
967
    if (lastComparison != 0) {
968
      return lastComparison;
969
    }
970
    if (isSetDue_date()) {
971
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.due_date, typedOther.due_date);
972
      if (lastComparison != 0) {
973
        return lastComparison;
974
      }
975
    }
976
    lastComparison = Boolean.valueOf(isSetValue_date()).compareTo(typedOther.isSetValue_date());
977
    if (lastComparison != 0) {
978
      return lastComparison;
979
    }
980
    if (isSetValue_date()) {
981
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value_date, typedOther.value_date);
982
      if (lastComparison != 0) {
983
        return lastComparison;
984
      }
985
    }
18769 manish.sha 986
    lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
987
    if (lastComparison != 0) {
988
      return lastComparison;
989
    }
990
    if (isSetInvoiceNumber()) {
991
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
992
      if (lastComparison != 0) {
993
        return lastComparison;
994
      }
995
    }
18634 manish.sha 996
    return 0;
997
  }
998
 
999
  public _Fields fieldForId(int fieldId) {
1000
    return _Fields.findByThriftId(fieldId);
1001
  }
1002
 
1003
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1004
    org.apache.thrift.protocol.TField field;
1005
    iprot.readStructBegin();
1006
    while (true)
1007
    {
1008
      field = iprot.readFieldBegin();
1009
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1010
        break;
1011
      }
1012
      switch (field.id) {
1013
        case 1: // ID
1014
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1015
            this.id = iprot.readI64();
1016
            setIdIsSet(true);
1017
          } else { 
1018
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1019
          }
1020
          break;
1021
        case 2: // USER_ID
1022
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1023
            this.user_id = iprot.readI64();
1024
            setUser_idIsSet(true);
1025
          } else { 
1026
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1027
          }
1028
          break;
1029
        case 3: // CREDITOR_ID
1030
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1031
            this.creditor_id = iprot.readI64();
1032
            setCreditor_idIsSet(true);
1033
          } else { 
1034
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1035
          }
1036
          break;
1037
        case 4: // PAYMENT_ID
1038
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1039
            this.payment_id = iprot.readI64();
1040
            setPayment_idIsSet(true);
1041
          } else { 
1042
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1043
          }
1044
          break;
1045
        case 5: // AMOUNT
1046
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1047
            this.amount = iprot.readDouble();
1048
            setAmountIsSet(true);
1049
          } else { 
1050
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1051
          }
1052
          break;
1053
        case 6: // CREDIT_TYPE
1054
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1055
            this.credit_type = CreditTxnType.findByValue(iprot.readI32());
1056
          } else { 
1057
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1058
          }
1059
          break;
1060
        case 7: // CREATED
1061
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1062
            this.created = iprot.readI64();
1063
            setCreatedIsSet(true);
1064
          } else { 
1065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1066
          }
1067
          break;
1068
        case 8: // UPDATED
1069
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1070
            this.updated = iprot.readI64();
1071
            setUpdatedIsSet(true);
1072
          } else { 
1073
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1074
          }
1075
          break;
1076
        case 9: // LOAN_ID
1077
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1078
            this.loan_id = iprot.readString();
1079
          } else { 
1080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1081
          }
1082
          break;
1083
        case 10: // DUE_DATE
1084
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1085
            this.due_date = iprot.readI64();
1086
            setDue_dateIsSet(true);
1087
          } else { 
1088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1089
          }
1090
          break;
1091
        case 11: // VALUE_DATE
1092
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1093
            this.value_date = iprot.readI64();
1094
            setValue_dateIsSet(true);
1095
          } else { 
1096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1097
          }
1098
          break;
18769 manish.sha 1099
        case 12: // INVOICE_NUMBER
1100
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1101
            this.invoiceNumber = iprot.readString();
1102
          } else { 
1103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1104
          }
1105
          break;
18634 manish.sha 1106
        default:
1107
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1108
      }
1109
      iprot.readFieldEnd();
1110
    }
1111
    iprot.readStructEnd();
1112
    validate();
1113
  }
1114
 
1115
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1116
    validate();
1117
 
1118
    oprot.writeStructBegin(STRUCT_DESC);
1119
    oprot.writeFieldBegin(ID_FIELD_DESC);
1120
    oprot.writeI64(this.id);
1121
    oprot.writeFieldEnd();
1122
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1123
    oprot.writeI64(this.user_id);
1124
    oprot.writeFieldEnd();
1125
    oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
1126
    oprot.writeI64(this.creditor_id);
1127
    oprot.writeFieldEnd();
1128
    oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
1129
    oprot.writeI64(this.payment_id);
1130
    oprot.writeFieldEnd();
1131
    oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
1132
    oprot.writeDouble(this.amount);
1133
    oprot.writeFieldEnd();
1134
    if (this.credit_type != null) {
1135
      oprot.writeFieldBegin(CREDIT_TYPE_FIELD_DESC);
1136
      oprot.writeI32(this.credit_type.getValue());
1137
      oprot.writeFieldEnd();
1138
    }
1139
    oprot.writeFieldBegin(CREATED_FIELD_DESC);
1140
    oprot.writeI64(this.created);
1141
    oprot.writeFieldEnd();
1142
    oprot.writeFieldBegin(UPDATED_FIELD_DESC);
1143
    oprot.writeI64(this.updated);
1144
    oprot.writeFieldEnd();
1145
    if (this.loan_id != null) {
1146
      oprot.writeFieldBegin(LOAN_ID_FIELD_DESC);
1147
      oprot.writeString(this.loan_id);
1148
      oprot.writeFieldEnd();
1149
    }
1150
    oprot.writeFieldBegin(DUE_DATE_FIELD_DESC);
1151
    oprot.writeI64(this.due_date);
1152
    oprot.writeFieldEnd();
1153
    oprot.writeFieldBegin(VALUE_DATE_FIELD_DESC);
1154
    oprot.writeI64(this.value_date);
1155
    oprot.writeFieldEnd();
18769 manish.sha 1156
    if (this.invoiceNumber != null) {
1157
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
1158
      oprot.writeString(this.invoiceNumber);
1159
      oprot.writeFieldEnd();
1160
    }
18634 manish.sha 1161
    oprot.writeFieldStop();
1162
    oprot.writeStructEnd();
1163
  }
1164
 
1165
  @Override
1166
  public String toString() {
1167
    StringBuilder sb = new StringBuilder("LoanHistory(");
1168
    boolean first = true;
1169
 
1170
    sb.append("id:");
1171
    sb.append(this.id);
1172
    first = false;
1173
    if (!first) sb.append(", ");
1174
    sb.append("user_id:");
1175
    sb.append(this.user_id);
1176
    first = false;
1177
    if (!first) sb.append(", ");
1178
    sb.append("creditor_id:");
1179
    sb.append(this.creditor_id);
1180
    first = false;
1181
    if (!first) sb.append(", ");
1182
    sb.append("payment_id:");
1183
    sb.append(this.payment_id);
1184
    first = false;
1185
    if (!first) sb.append(", ");
1186
    sb.append("amount:");
1187
    sb.append(this.amount);
1188
    first = false;
1189
    if (!first) sb.append(", ");
1190
    sb.append("credit_type:");
1191
    if (this.credit_type == null) {
1192
      sb.append("null");
1193
    } else {
1194
      sb.append(this.credit_type);
1195
    }
1196
    first = false;
1197
    if (!first) sb.append(", ");
1198
    sb.append("created:");
1199
    sb.append(this.created);
1200
    first = false;
1201
    if (!first) sb.append(", ");
1202
    sb.append("updated:");
1203
    sb.append(this.updated);
1204
    first = false;
1205
    if (!first) sb.append(", ");
1206
    sb.append("loan_id:");
1207
    if (this.loan_id == null) {
1208
      sb.append("null");
1209
    } else {
1210
      sb.append(this.loan_id);
1211
    }
1212
    first = false;
1213
    if (!first) sb.append(", ");
1214
    sb.append("due_date:");
1215
    sb.append(this.due_date);
1216
    first = false;
1217
    if (!first) sb.append(", ");
1218
    sb.append("value_date:");
1219
    sb.append(this.value_date);
1220
    first = false;
18769 manish.sha 1221
    if (!first) sb.append(", ");
1222
    sb.append("invoiceNumber:");
1223
    if (this.invoiceNumber == null) {
1224
      sb.append("null");
1225
    } else {
1226
      sb.append(this.invoiceNumber);
1227
    }
1228
    first = false;
18634 manish.sha 1229
    sb.append(")");
1230
    return sb.toString();
1231
  }
1232
 
1233
  public void validate() throws org.apache.thrift.TException {
1234
    // check for required fields
1235
  }
1236
 
1237
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1238
    try {
1239
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1240
    } catch (org.apache.thrift.TException te) {
1241
      throw new java.io.IOException(te);
1242
    }
1243
  }
1244
 
1245
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1246
    try {
1247
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1248
      __isset_bit_vector = new BitSet(1);
1249
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1250
    } catch (org.apache.thrift.TException te) {
1251
      throw new java.io.IOException(te);
1252
    }
1253
  }
1254
 
1255
}
1256