Subversion Repositories SmartDukaan

Rev

Rev 18578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18578 Rev 18585
Line 25... Line 25...
25
 
25
 
26
  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)1);
26
  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)1);
27
  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)2);
27
  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)2);
28
  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)3);
28
  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)3);
29
  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)4);
29
  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)4);
30
  private static final org.apache.thrift.protocol.TField CREDITTYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("credittype", org.apache.thrift.protocol.TType.I32, (short)5);
30
  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)5);
31
  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)6);
31
  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)6);
32
  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)7);
32
  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)7);
33
  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)8);
33
  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)8);
34
  private static final org.apache.thrift.protocol.TField SHIPPING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shipping_id", org.apache.thrift.protocol.TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField SHIPPING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shipping_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("dueDate", org.apache.thrift.protocol.TType.I64, (short)10);
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
 
36
 
37
  private long user_id; // required
37
  private long user_id; // required
38
  private long creditor_id; // required
38
  private long creditor_id; // required
39
  private long payment_id; // required
39
  private long payment_id; // required
40
  private double amount; // required
40
  private double amount; // required
41
  private CreditTxnType credittype; // required
41
  private CreditTxnType credit_type; // required
42
  private long created; // required
42
  private long created; // required
43
  private long updated; // required
43
  private long updated; // required
44
  private String loan_id; // required
44
  private String loan_id; // required
45
  private String shipping_id; // required
45
  private String shipping_id; // required
46
  private long dueDate; // required
46
  private long due_date; // required
47
 
47
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50
    USER_ID((short)1, "user_id"),
50
    USER_ID((short)1, "user_id"),
51
    CREDITOR_ID((short)2, "creditor_id"),
51
    CREDITOR_ID((short)2, "creditor_id"),
Line 53... Line 53...
53
    AMOUNT((short)4, "amount"),
53
    AMOUNT((short)4, "amount"),
54
    /**
54
    /**
55
     * 
55
     * 
56
     * @see CreditTxnType
56
     * @see CreditTxnType
57
     */
57
     */
58
    CREDITTYPE((short)5, "credittype"),
58
    CREDIT_TYPE((short)5, "credit_type"),
59
    CREATED((short)6, "created"),
59
    CREATED((short)6, "created"),
60
    UPDATED((short)7, "updated"),
60
    UPDATED((short)7, "updated"),
61
    LOAN_ID((short)8, "loan_id"),
61
    LOAN_ID((short)8, "loan_id"),
62
    SHIPPING_ID((short)9, "shipping_id"),
62
    SHIPPING_ID((short)9, "shipping_id"),
63
    DUE_DATE((short)10, "dueDate");
63
    DUE_DATE((short)10, "due_date");
64
 
64
 
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
66
 
66
 
67
    static {
67
    static {
68
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
68
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 81... Line 81...
81
          return CREDITOR_ID;
81
          return CREDITOR_ID;
82
        case 3: // PAYMENT_ID
82
        case 3: // PAYMENT_ID
83
          return PAYMENT_ID;
83
          return PAYMENT_ID;
84
        case 4: // AMOUNT
84
        case 4: // AMOUNT
85
          return AMOUNT;
85
          return AMOUNT;
86
        case 5: // CREDITTYPE
86
        case 5: // CREDIT_TYPE
87
          return CREDITTYPE;
87
          return CREDIT_TYPE;
88
        case 6: // CREATED
88
        case 6: // CREATED
89
          return CREATED;
89
          return CREATED;
90
        case 7: // UPDATED
90
        case 7: // UPDATED
91
          return UPDATED;
91
          return UPDATED;
92
        case 8: // LOAN_ID
92
        case 8: // LOAN_ID
Line 139... Line 139...
139
  private static final int __CREDITOR_ID_ISSET_ID = 1;
139
  private static final int __CREDITOR_ID_ISSET_ID = 1;
140
  private static final int __PAYMENT_ID_ISSET_ID = 2;
140
  private static final int __PAYMENT_ID_ISSET_ID = 2;
141
  private static final int __AMOUNT_ISSET_ID = 3;
141
  private static final int __AMOUNT_ISSET_ID = 3;
142
  private static final int __CREATED_ISSET_ID = 4;
142
  private static final int __CREATED_ISSET_ID = 4;
143
  private static final int __UPDATED_ISSET_ID = 5;
143
  private static final int __UPDATED_ISSET_ID = 5;
144
  private static final int __DUEDATE_ISSET_ID = 6;
144
  private static final int __DUE_DATE_ISSET_ID = 6;
145
  private BitSet __isset_bit_vector = new BitSet(7);
145
  private BitSet __isset_bit_vector = new BitSet(7);
146
 
146
 
147
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
147
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
148
  static {
148
  static {
149
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
149
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
Line 153... Line 153...
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
154
    tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("payment_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
154
    tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("payment_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
156
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
158
    tmpMap.put(_Fields.CREDITTYPE, new org.apache.thrift.meta_data.FieldMetaData("credittype", org.apache.thrift.TFieldRequirementType.DEFAULT, 
158
    tmpMap.put(_Fields.CREDIT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("credit_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
159
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
160
    tmpMap.put(_Fields.CREATED, new org.apache.thrift.meta_data.FieldMetaData("created", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
    tmpMap.put(_Fields.CREATED, new org.apache.thrift.meta_data.FieldMetaData("created", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
162
    tmpMap.put(_Fields.UPDATED, new org.apache.thrift.meta_data.FieldMetaData("updated", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
    tmpMap.put(_Fields.UPDATED, new org.apache.thrift.meta_data.FieldMetaData("updated", org.apache.thrift.TFieldRequirementType.DEFAULT, 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
164
    tmpMap.put(_Fields.LOAN_ID, new org.apache.thrift.meta_data.FieldMetaData("loan_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
    tmpMap.put(_Fields.LOAN_ID, new org.apache.thrift.meta_data.FieldMetaData("loan_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
166
    tmpMap.put(_Fields.SHIPPING_ID, new org.apache.thrift.meta_data.FieldMetaData("shipping_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
    tmpMap.put(_Fields.SHIPPING_ID, new org.apache.thrift.meta_data.FieldMetaData("shipping_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
168
    tmpMap.put(_Fields.DUE_DATE, new org.apache.thrift.meta_data.FieldMetaData("dueDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
    tmpMap.put(_Fields.DUE_DATE, new org.apache.thrift.meta_data.FieldMetaData("due_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
170
    metaDataMap = Collections.unmodifiableMap(tmpMap);
170
    metaDataMap = Collections.unmodifiableMap(tmpMap);
171
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CreditHistory.class, metaDataMap);
171
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CreditHistory.class, metaDataMap);
172
  }
172
  }
173
 
173
 
Line 177... Line 177...
177
  public CreditHistory(
177
  public CreditHistory(
178
    long user_id,
178
    long user_id,
179
    long creditor_id,
179
    long creditor_id,
180
    long payment_id,
180
    long payment_id,
181
    double amount,
181
    double amount,
182
    CreditTxnType credittype,
182
    CreditTxnType credit_type,
183
    long created,
183
    long created,
184
    long updated,
184
    long updated,
185
    String loan_id,
185
    String loan_id,
186
    String shipping_id,
186
    String shipping_id,
187
    long dueDate)
187
    long due_date)
188
  {
188
  {
189
    this();
189
    this();
190
    this.user_id = user_id;
190
    this.user_id = user_id;
191
    setUser_idIsSet(true);
191
    setUser_idIsSet(true);
192
    this.creditor_id = creditor_id;
192
    this.creditor_id = creditor_id;
193
    setCreditor_idIsSet(true);
193
    setCreditor_idIsSet(true);
194
    this.payment_id = payment_id;
194
    this.payment_id = payment_id;
195
    setPayment_idIsSet(true);
195
    setPayment_idIsSet(true);
196
    this.amount = amount;
196
    this.amount = amount;
197
    setAmountIsSet(true);
197
    setAmountIsSet(true);
198
    this.credittype = credittype;
198
    this.credit_type = credit_type;
199
    this.created = created;
199
    this.created = created;
200
    setCreatedIsSet(true);
200
    setCreatedIsSet(true);
201
    this.updated = updated;
201
    this.updated = updated;
202
    setUpdatedIsSet(true);
202
    setUpdatedIsSet(true);
203
    this.loan_id = loan_id;
203
    this.loan_id = loan_id;
204
    this.shipping_id = shipping_id;
204
    this.shipping_id = shipping_id;
205
    this.dueDate = dueDate;
205
    this.due_date = due_date;
206
    setDueDateIsSet(true);
206
    setDue_dateIsSet(true);
207
  }
207
  }
208
 
208
 
209
  /**
209
  /**
210
   * Performs a deep copy on <i>other</i>.
210
   * Performs a deep copy on <i>other</i>.
211
   */
211
   */
Line 214... Line 214...
214
    __isset_bit_vector.or(other.__isset_bit_vector);
214
    __isset_bit_vector.or(other.__isset_bit_vector);
215
    this.user_id = other.user_id;
215
    this.user_id = other.user_id;
216
    this.creditor_id = other.creditor_id;
216
    this.creditor_id = other.creditor_id;
217
    this.payment_id = other.payment_id;
217
    this.payment_id = other.payment_id;
218
    this.amount = other.amount;
218
    this.amount = other.amount;
219
    if (other.isSetCredittype()) {
219
    if (other.isSetCredit_type()) {
220
      this.credittype = other.credittype;
220
      this.credit_type = other.credit_type;
221
    }
221
    }
222
    this.created = other.created;
222
    this.created = other.created;
223
    this.updated = other.updated;
223
    this.updated = other.updated;
224
    if (other.isSetLoan_id()) {
224
    if (other.isSetLoan_id()) {
225
      this.loan_id = other.loan_id;
225
      this.loan_id = other.loan_id;
226
    }
226
    }
227
    if (other.isSetShipping_id()) {
227
    if (other.isSetShipping_id()) {
228
      this.shipping_id = other.shipping_id;
228
      this.shipping_id = other.shipping_id;
229
    }
229
    }
230
    this.dueDate = other.dueDate;
230
    this.due_date = other.due_date;
231
  }
231
  }
232
 
232
 
233
  public CreditHistory deepCopy() {
233
  public CreditHistory deepCopy() {
234
    return new CreditHistory(this);
234
    return new CreditHistory(this);
235
  }
235
  }
Line 242... Line 242...
242
    this.creditor_id = 0;
242
    this.creditor_id = 0;
243
    setPayment_idIsSet(false);
243
    setPayment_idIsSet(false);
244
    this.payment_id = 0;
244
    this.payment_id = 0;
245
    setAmountIsSet(false);
245
    setAmountIsSet(false);
246
    this.amount = 0.0;
246
    this.amount = 0.0;
247
    this.credittype = null;
247
    this.credit_type = null;
248
    setCreatedIsSet(false);
248
    setCreatedIsSet(false);
249
    this.created = 0;
249
    this.created = 0;
250
    setUpdatedIsSet(false);
250
    setUpdatedIsSet(false);
251
    this.updated = 0;
251
    this.updated = 0;
252
    this.loan_id = null;
252
    this.loan_id = null;
253
    this.shipping_id = null;
253
    this.shipping_id = null;
254
    setDueDateIsSet(false);
254
    setDue_dateIsSet(false);
255
    this.dueDate = 0;
255
    this.due_date = 0;
256
  }
256
  }
257
 
257
 
258
  public long getUser_id() {
258
  public long getUser_id() {
259
    return this.user_id;
259
    return this.user_id;
260
  }
260
  }
Line 345... Line 345...
345
 
345
 
346
  /**
346
  /**
347
   * 
347
   * 
348
   * @see CreditTxnType
348
   * @see CreditTxnType
349
   */
349
   */
350
  public CreditTxnType getCredittype() {
350
  public CreditTxnType getCredit_type() {
351
    return this.credittype;
351
    return this.credit_type;
352
  }
352
  }
353
 
353
 
354
  /**
354
  /**
355
   * 
355
   * 
356
   * @see CreditTxnType
356
   * @see CreditTxnType
357
   */
357
   */
358
  public void setCredittype(CreditTxnType credittype) {
358
  public void setCredit_type(CreditTxnType credit_type) {
359
    this.credittype = credittype;
359
    this.credit_type = credit_type;
360
  }
360
  }
361
 
361
 
362
  public void unsetCredittype() {
362
  public void unsetCredit_type() {
363
    this.credittype = null;
363
    this.credit_type = null;
364
  }
364
  }
365
 
365
 
366
  /** Returns true if field credittype is set (has been assigned a value) and false otherwise */
366
  /** Returns true if field credit_type is set (has been assigned a value) and false otherwise */
367
  public boolean isSetCredittype() {
367
  public boolean isSetCredit_type() {
368
    return this.credittype != null;
368
    return this.credit_type != null;
369
  }
369
  }
370
 
370
 
371
  public void setCredittypeIsSet(boolean value) {
371
  public void setCredit_typeIsSet(boolean value) {
372
    if (!value) {
372
    if (!value) {
373
      this.credittype = null;
373
      this.credit_type = null;
374
    }
374
    }
375
  }
375
  }
376
 
376
 
377
  public long getCreated() {
377
  public long getCreated() {
378
    return this.created;
378
    return this.created;
Line 462... Line 462...
462
    if (!value) {
462
    if (!value) {
463
      this.shipping_id = null;
463
      this.shipping_id = null;
464
    }
464
    }
465
  }
465
  }
466
 
466
 
467
  public long getDueDate() {
467
  public long getDue_date() {
468
    return this.dueDate;
468
    return this.due_date;
469
  }
469
  }
470
 
470
 
471
  public void setDueDate(long dueDate) {
471
  public void setDue_date(long due_date) {
472
    this.dueDate = dueDate;
472
    this.due_date = due_date;
473
    setDueDateIsSet(true);
473
    setDue_dateIsSet(true);
474
  }
474
  }
475
 
475
 
476
  public void unsetDueDate() {
476
  public void unsetDue_date() {
477
    __isset_bit_vector.clear(__DUEDATE_ISSET_ID);
477
    __isset_bit_vector.clear(__DUE_DATE_ISSET_ID);
478
  }
478
  }
479
 
479
 
480
  /** Returns true if field dueDate is set (has been assigned a value) and false otherwise */
480
  /** Returns true if field due_date is set (has been assigned a value) and false otherwise */
481
  public boolean isSetDueDate() {
481
  public boolean isSetDue_date() {
482
    return __isset_bit_vector.get(__DUEDATE_ISSET_ID);
482
    return __isset_bit_vector.get(__DUE_DATE_ISSET_ID);
483
  }
483
  }
484
 
484
 
485
  public void setDueDateIsSet(boolean value) {
485
  public void setDue_dateIsSet(boolean value) {
486
    __isset_bit_vector.set(__DUEDATE_ISSET_ID, value);
486
    __isset_bit_vector.set(__DUE_DATE_ISSET_ID, value);
487
  }
487
  }
488
 
488
 
489
  public void setFieldValue(_Fields field, Object value) {
489
  public void setFieldValue(_Fields field, Object value) {
490
    switch (field) {
490
    switch (field) {
491
    case USER_ID:
491
    case USER_ID:
Line 518... Line 518...
518
      } else {
518
      } else {
519
        setAmount((Double)value);
519
        setAmount((Double)value);
520
      }
520
      }
521
      break;
521
      break;
522
 
522
 
523
    case CREDITTYPE:
523
    case CREDIT_TYPE:
524
      if (value == null) {
524
      if (value == null) {
525
        unsetCredittype();
525
        unsetCredit_type();
526
      } else {
526
      } else {
527
        setCredittype((CreditTxnType)value);
527
        setCredit_type((CreditTxnType)value);
528
      }
528
      }
529
      break;
529
      break;
530
 
530
 
531
    case CREATED:
531
    case CREATED:
532
      if (value == null) {
532
      if (value == null) {
Line 560... Line 560...
560
      }
560
      }
561
      break;
561
      break;
562
 
562
 
563
    case DUE_DATE:
563
    case DUE_DATE:
564
      if (value == null) {
564
      if (value == null) {
565
        unsetDueDate();
565
        unsetDue_date();
566
      } else {
566
      } else {
567
        setDueDate((Long)value);
567
        setDue_date((Long)value);
568
      }
568
      }
569
      break;
569
      break;
570
 
570
 
571
    }
571
    }
572
  }
572
  }
Line 583... Line 583...
583
      return Long.valueOf(getPayment_id());
583
      return Long.valueOf(getPayment_id());
584
 
584
 
585
    case AMOUNT:
585
    case AMOUNT:
586
      return Double.valueOf(getAmount());
586
      return Double.valueOf(getAmount());
587
 
587
 
588
    case CREDITTYPE:
588
    case CREDIT_TYPE:
589
      return getCredittype();
589
      return getCredit_type();
590
 
590
 
591
    case CREATED:
591
    case CREATED:
592
      return Long.valueOf(getCreated());
592
      return Long.valueOf(getCreated());
593
 
593
 
594
    case UPDATED:
594
    case UPDATED:
Line 599... Line 599...
599
 
599
 
600
    case SHIPPING_ID:
600
    case SHIPPING_ID:
601
      return getShipping_id();
601
      return getShipping_id();
602
 
602
 
603
    case DUE_DATE:
603
    case DUE_DATE:
604
      return Long.valueOf(getDueDate());
604
      return Long.valueOf(getDue_date());
605
 
605
 
606
    }
606
    }
607
    throw new IllegalStateException();
607
    throw new IllegalStateException();
608
  }
608
  }
609
 
609
 
Line 620... Line 620...
620
      return isSetCreditor_id();
620
      return isSetCreditor_id();
621
    case PAYMENT_ID:
621
    case PAYMENT_ID:
622
      return isSetPayment_id();
622
      return isSetPayment_id();
623
    case AMOUNT:
623
    case AMOUNT:
624
      return isSetAmount();
624
      return isSetAmount();
625
    case CREDITTYPE:
625
    case CREDIT_TYPE:
626
      return isSetCredittype();
626
      return isSetCredit_type();
627
    case CREATED:
627
    case CREATED:
628
      return isSetCreated();
628
      return isSetCreated();
629
    case UPDATED:
629
    case UPDATED:
630
      return isSetUpdated();
630
      return isSetUpdated();
631
    case LOAN_ID:
631
    case LOAN_ID:
632
      return isSetLoan_id();
632
      return isSetLoan_id();
633
    case SHIPPING_ID:
633
    case SHIPPING_ID:
634
      return isSetShipping_id();
634
      return isSetShipping_id();
635
    case DUE_DATE:
635
    case DUE_DATE:
636
      return isSetDueDate();
636
      return isSetDue_date();
637
    }
637
    }
638
    throw new IllegalStateException();
638
    throw new IllegalStateException();
639
  }
639
  }
640
 
640
 
641
  @Override
641
  @Override
Line 685... Line 685...
685
        return false;
685
        return false;
686
      if (this.amount != that.amount)
686
      if (this.amount != that.amount)
687
        return false;
687
        return false;
688
    }
688
    }
689
 
689
 
690
    boolean this_present_credittype = true && this.isSetCredittype();
690
    boolean this_present_credit_type = true && this.isSetCredit_type();
691
    boolean that_present_credittype = true && that.isSetCredittype();
691
    boolean that_present_credit_type = true && that.isSetCredit_type();
692
    if (this_present_credittype || that_present_credittype) {
692
    if (this_present_credit_type || that_present_credit_type) {
693
      if (!(this_present_credittype && that_present_credittype))
693
      if (!(this_present_credit_type && that_present_credit_type))
694
        return false;
694
        return false;
695
      if (!this.credittype.equals(that.credittype))
695
      if (!this.credit_type.equals(that.credit_type))
696
        return false;
696
        return false;
697
    }
697
    }
698
 
698
 
699
    boolean this_present_created = true;
699
    boolean this_present_created = true;
700
    boolean that_present_created = true;
700
    boolean that_present_created = true;
Line 730... Line 730...
730
        return false;
730
        return false;
731
      if (!this.shipping_id.equals(that.shipping_id))
731
      if (!this.shipping_id.equals(that.shipping_id))
732
        return false;
732
        return false;
733
    }
733
    }
734
 
734
 
735
    boolean this_present_dueDate = true;
735
    boolean this_present_due_date = true;
736
    boolean that_present_dueDate = true;
736
    boolean that_present_due_date = true;
737
    if (this_present_dueDate || that_present_dueDate) {
737
    if (this_present_due_date || that_present_due_date) {
738
      if (!(this_present_dueDate && that_present_dueDate))
738
      if (!(this_present_due_date && that_present_due_date))
739
        return false;
739
        return false;
740
      if (this.dueDate != that.dueDate)
740
      if (this.due_date != that.due_date)
741
        return false;
741
        return false;
742
    }
742
    }
743
 
743
 
744
    return true;
744
    return true;
745
  }
745
  }
Line 795... Line 795...
795
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
795
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
796
      if (lastComparison != 0) {
796
      if (lastComparison != 0) {
797
        return lastComparison;
797
        return lastComparison;
798
      }
798
      }
799
    }
799
    }
800
    lastComparison = Boolean.valueOf(isSetCredittype()).compareTo(typedOther.isSetCredittype());
800
    lastComparison = Boolean.valueOf(isSetCredit_type()).compareTo(typedOther.isSetCredit_type());
801
    if (lastComparison != 0) {
801
    if (lastComparison != 0) {
802
      return lastComparison;
802
      return lastComparison;
803
    }
803
    }
804
    if (isSetCredittype()) {
804
    if (isSetCredit_type()) {
805
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credittype, typedOther.credittype);
805
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credit_type, typedOther.credit_type);
806
      if (lastComparison != 0) {
806
      if (lastComparison != 0) {
807
        return lastComparison;
807
        return lastComparison;
808
      }
808
      }
809
    }
809
    }
810
    lastComparison = Boolean.valueOf(isSetCreated()).compareTo(typedOther.isSetCreated());
810
    lastComparison = Boolean.valueOf(isSetCreated()).compareTo(typedOther.isSetCreated());
Line 845... Line 845...
845
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipping_id, typedOther.shipping_id);
845
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipping_id, typedOther.shipping_id);
846
      if (lastComparison != 0) {
846
      if (lastComparison != 0) {
847
        return lastComparison;
847
        return lastComparison;
848
      }
848
      }
849
    }
849
    }
850
    lastComparison = Boolean.valueOf(isSetDueDate()).compareTo(typedOther.isSetDueDate());
850
    lastComparison = Boolean.valueOf(isSetDue_date()).compareTo(typedOther.isSetDue_date());
851
    if (lastComparison != 0) {
851
    if (lastComparison != 0) {
852
      return lastComparison;
852
      return lastComparison;
853
    }
853
    }
854
    if (isSetDueDate()) {
854
    if (isSetDue_date()) {
855
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dueDate, typedOther.dueDate);
855
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.due_date, typedOther.due_date);
856
      if (lastComparison != 0) {
856
      if (lastComparison != 0) {
857
        return lastComparison;
857
        return lastComparison;
858
      }
858
      }
859
    }
859
    }
860
    return 0;
860
    return 0;
Line 904... Line 904...
904
            setAmountIsSet(true);
904
            setAmountIsSet(true);
905
          } else { 
905
          } else { 
906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
907
          }
907
          }
908
          break;
908
          break;
909
        case 5: // CREDITTYPE
909
        case 5: // CREDIT_TYPE
910
          if (field.type == org.apache.thrift.protocol.TType.I32) {
910
          if (field.type == org.apache.thrift.protocol.TType.I32) {
911
            this.credittype = CreditTxnType.findByValue(iprot.readI32());
911
            this.credit_type = CreditTxnType.findByValue(iprot.readI32());
912
          } else { 
912
          } else { 
913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
914
          }
914
          }
915
          break;
915
          break;
916
        case 6: // CREATED
916
        case 6: // CREATED
Line 943... Line 943...
943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
944
          }
944
          }
945
          break;
945
          break;
946
        case 10: // DUE_DATE
946
        case 10: // DUE_DATE
947
          if (field.type == org.apache.thrift.protocol.TType.I64) {
947
          if (field.type == org.apache.thrift.protocol.TType.I64) {
948
            this.dueDate = iprot.readI64();
948
            this.due_date = iprot.readI64();
949
            setDueDateIsSet(true);
949
            setDue_dateIsSet(true);
950
          } else { 
950
          } else { 
951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
952
          }
952
          }
953
          break;
953
          break;
954
        default:
954
        default:
Line 974... Line 974...
974
    oprot.writeI64(this.payment_id);
974
    oprot.writeI64(this.payment_id);
975
    oprot.writeFieldEnd();
975
    oprot.writeFieldEnd();
976
    oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
976
    oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
977
    oprot.writeDouble(this.amount);
977
    oprot.writeDouble(this.amount);
978
    oprot.writeFieldEnd();
978
    oprot.writeFieldEnd();
979
    if (this.credittype != null) {
979
    if (this.credit_type != null) {
980
      oprot.writeFieldBegin(CREDITTYPE_FIELD_DESC);
980
      oprot.writeFieldBegin(CREDIT_TYPE_FIELD_DESC);
981
      oprot.writeI32(this.credittype.getValue());
981
      oprot.writeI32(this.credit_type.getValue());
982
      oprot.writeFieldEnd();
982
      oprot.writeFieldEnd();
983
    }
983
    }
984
    oprot.writeFieldBegin(CREATED_FIELD_DESC);
984
    oprot.writeFieldBegin(CREATED_FIELD_DESC);
985
    oprot.writeI64(this.created);
985
    oprot.writeI64(this.created);
986
    oprot.writeFieldEnd();
986
    oprot.writeFieldEnd();
Line 996... Line 996...
996
      oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);
996
      oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);
997
      oprot.writeString(this.shipping_id);
997
      oprot.writeString(this.shipping_id);
998
      oprot.writeFieldEnd();
998
      oprot.writeFieldEnd();
999
    }
999
    }
1000
    oprot.writeFieldBegin(DUE_DATE_FIELD_DESC);
1000
    oprot.writeFieldBegin(DUE_DATE_FIELD_DESC);
1001
    oprot.writeI64(this.dueDate);
1001
    oprot.writeI64(this.due_date);
1002
    oprot.writeFieldEnd();
1002
    oprot.writeFieldEnd();
1003
    oprot.writeFieldStop();
1003
    oprot.writeFieldStop();
1004
    oprot.writeStructEnd();
1004
    oprot.writeStructEnd();
1005
  }
1005
  }
1006
 
1006
 
Line 1023... Line 1023...
1023
    if (!first) sb.append(", ");
1023
    if (!first) sb.append(", ");
1024
    sb.append("amount:");
1024
    sb.append("amount:");
1025
    sb.append(this.amount);
1025
    sb.append(this.amount);
1026
    first = false;
1026
    first = false;
1027
    if (!first) sb.append(", ");
1027
    if (!first) sb.append(", ");
1028
    sb.append("credittype:");
1028
    sb.append("credit_type:");
1029
    if (this.credittype == null) {
1029
    if (this.credit_type == null) {
1030
      sb.append("null");
1030
      sb.append("null");
1031
    } else {
1031
    } else {
1032
      sb.append(this.credittype);
1032
      sb.append(this.credit_type);
1033
    }
1033
    }
1034
    first = false;
1034
    first = false;
1035
    if (!first) sb.append(", ");
1035
    if (!first) sb.append(", ");
1036
    sb.append("created:");
1036
    sb.append("created:");
1037
    sb.append(this.created);
1037
    sb.append(this.created);
Line 1055... Line 1055...
1055
    } else {
1055
    } else {
1056
      sb.append(this.shipping_id);
1056
      sb.append(this.shipping_id);
1057
    }
1057
    }
1058
    first = false;
1058
    first = false;
1059
    if (!first) sb.append(", ");
1059
    if (!first) sb.append(", ");
1060
    sb.append("dueDate:");
1060
    sb.append("due_date:");
1061
    sb.append(this.dueDate);
1061
    sb.append(this.due_date);
1062
    first = false;
1062
    first = false;
1063
    sb.append(")");
1063
    sb.append(")");
1064
    return sb.toString();
1064
    return sb.toString();
1065
  }
1065
  }
1066
 
1066