Subversion Repositories SmartDukaan

Rev

Rev 18735 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18735 Rev 22715
Line 29... Line 29...
29
  private static final org.apache.thrift.protocol.TField COUNTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("counterId", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField COUNTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("counterId", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField BULK_SHIPMENT_AMOUNT_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkShipmentAmountLimit", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
31
  private static final org.apache.thrift.protocol.TField BULK_SHIPMENT_AMOUNT_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkShipmentAmountLimit", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField CREDITOR_ASSIGNED_FIELD_DESC = new org.apache.thrift.protocol.TField("creditorAssigned", org.apache.thrift.protocol.TType.BOOL, (short)7);
32
  private static final org.apache.thrift.protocol.TField CREDITOR_ASSIGNED_FIELD_DESC = new org.apache.thrift.protocol.TField("creditorAssigned", org.apache.thrift.protocol.TType.BOOL, (short)7);
33
  private static final org.apache.thrift.protocol.TField TIN_VERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("tinVerified", org.apache.thrift.protocol.TType.BOOL, (short)8);
33
  private static final org.apache.thrift.protocol.TField TIN_VERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("tinVerified", org.apache.thrift.protocol.TType.BOOL, (short)8);
-
 
34
  private static final org.apache.thrift.protocol.TField IS_FOFO_FIELD_DESC = new org.apache.thrift.protocol.TField("isFofo", org.apache.thrift.protocol.TType.I64, (short)9);
34
 
35
 
35
  private long userId; // required
36
  private long userId; // required
36
  private long addedOn; // required
37
  private long addedOn; // required
37
  private boolean isActive; // required
38
  private boolean isActive; // required
38
  private long counterId; // required
39
  private long counterId; // required
39
  private String tin; // required
40
  private String tin; // required
40
  private double bulkShipmentAmountLimit; // required
41
  private double bulkShipmentAmountLimit; // required
41
  private boolean creditorAssigned; // required
42
  private boolean creditorAssigned; // required
42
  private boolean tinVerified; // required
43
  private boolean tinVerified; // required
-
 
44
  private long isFofo; // required
43
 
45
 
44
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46
    USER_ID((short)1, "userId"),
48
    USER_ID((short)1, "userId"),
47
    ADDED_ON((short)2, "addedOn"),
49
    ADDED_ON((short)2, "addedOn"),
48
    IS_ACTIVE((short)3, "isActive"),
50
    IS_ACTIVE((short)3, "isActive"),
49
    COUNTER_ID((short)4, "counterId"),
51
    COUNTER_ID((short)4, "counterId"),
50
    TIN((short)5, "tin"),
52
    TIN((short)5, "tin"),
51
    BULK_SHIPMENT_AMOUNT_LIMIT((short)6, "bulkShipmentAmountLimit"),
53
    BULK_SHIPMENT_AMOUNT_LIMIT((short)6, "bulkShipmentAmountLimit"),
52
    CREDITOR_ASSIGNED((short)7, "creditorAssigned"),
54
    CREDITOR_ASSIGNED((short)7, "creditorAssigned"),
53
    TIN_VERIFIED((short)8, "tinVerified");
55
    TIN_VERIFIED((short)8, "tinVerified"),
-
 
56
    IS_FOFO((short)9, "isFofo");
54
 
57
 
55
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56
 
59
 
57
    static {
60
    static {
58
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
61
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 79... Line 82...
79
          return BULK_SHIPMENT_AMOUNT_LIMIT;
82
          return BULK_SHIPMENT_AMOUNT_LIMIT;
80
        case 7: // CREDITOR_ASSIGNED
83
        case 7: // CREDITOR_ASSIGNED
81
          return CREDITOR_ASSIGNED;
84
          return CREDITOR_ASSIGNED;
82
        case 8: // TIN_VERIFIED
85
        case 8: // TIN_VERIFIED
83
          return TIN_VERIFIED;
86
          return TIN_VERIFIED;
-
 
87
        case 9: // IS_FOFO
-
 
88
          return IS_FOFO;
84
        default:
89
        default:
85
          return null;
90
          return null;
86
      }
91
      }
87
    }
92
    }
88
 
93
 
Line 126... Line 131...
126
  private static final int __ISACTIVE_ISSET_ID = 2;
131
  private static final int __ISACTIVE_ISSET_ID = 2;
127
  private static final int __COUNTERID_ISSET_ID = 3;
132
  private static final int __COUNTERID_ISSET_ID = 3;
128
  private static final int __BULKSHIPMENTAMOUNTLIMIT_ISSET_ID = 4;
133
  private static final int __BULKSHIPMENTAMOUNTLIMIT_ISSET_ID = 4;
129
  private static final int __CREDITORASSIGNED_ISSET_ID = 5;
134
  private static final int __CREDITORASSIGNED_ISSET_ID = 5;
130
  private static final int __TINVERIFIED_ISSET_ID = 6;
135
  private static final int __TINVERIFIED_ISSET_ID = 6;
-
 
136
  private static final int __ISFOFO_ISSET_ID = 7;
131
  private BitSet __isset_bit_vector = new BitSet(7);
137
  private BitSet __isset_bit_vector = new BitSet(8);
132
 
138
 
133
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
139
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
134
  static {
140
  static {
135
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
141
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
136
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
142
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 147... Line 153...
147
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
148
    tmpMap.put(_Fields.CREDITOR_ASSIGNED, new org.apache.thrift.meta_data.FieldMetaData("creditorAssigned", org.apache.thrift.TFieldRequirementType.DEFAULT, 
154
    tmpMap.put(_Fields.CREDITOR_ASSIGNED, new org.apache.thrift.meta_data.FieldMetaData("creditorAssigned", org.apache.thrift.TFieldRequirementType.DEFAULT, 
149
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
150
    tmpMap.put(_Fields.TIN_VERIFIED, new org.apache.thrift.meta_data.FieldMetaData("tinVerified", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
    tmpMap.put(_Fields.TIN_VERIFIED, new org.apache.thrift.meta_data.FieldMetaData("tinVerified", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
158
    tmpMap.put(_Fields.IS_FOFO, new org.apache.thrift.meta_data.FieldMetaData("isFofo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
159
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
152
    metaDataMap = Collections.unmodifiableMap(tmpMap);
160
    metaDataMap = Collections.unmodifiableMap(tmpMap);
153
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrivateDealUser.class, metaDataMap);
161
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrivateDealUser.class, metaDataMap);
154
  }
162
  }
155
 
163
 
156
  public PrivateDealUser() {
164
  public PrivateDealUser() {
Line 162... Line 170...
162
    boolean isActive,
170
    boolean isActive,
163
    long counterId,
171
    long counterId,
164
    String tin,
172
    String tin,
165
    double bulkShipmentAmountLimit,
173
    double bulkShipmentAmountLimit,
166
    boolean creditorAssigned,
174
    boolean creditorAssigned,
167
    boolean tinVerified)
175
    boolean tinVerified,
-
 
176
    long isFofo)
168
  {
177
  {
169
    this();
178
    this();
170
    this.userId = userId;
179
    this.userId = userId;
171
    setUserIdIsSet(true);
180
    setUserIdIsSet(true);
172
    this.addedOn = addedOn;
181
    this.addedOn = addedOn;
Line 180... Line 189...
180
    setBulkShipmentAmountLimitIsSet(true);
189
    setBulkShipmentAmountLimitIsSet(true);
181
    this.creditorAssigned = creditorAssigned;
190
    this.creditorAssigned = creditorAssigned;
182
    setCreditorAssignedIsSet(true);
191
    setCreditorAssignedIsSet(true);
183
    this.tinVerified = tinVerified;
192
    this.tinVerified = tinVerified;
184
    setTinVerifiedIsSet(true);
193
    setTinVerifiedIsSet(true);
-
 
194
    this.isFofo = isFofo;
-
 
195
    setIsFofoIsSet(true);
185
  }
196
  }
186
 
197
 
187
  /**
198
  /**
188
   * Performs a deep copy on <i>other</i>.
199
   * Performs a deep copy on <i>other</i>.
189
   */
200
   */
Line 198... Line 209...
198
      this.tin = other.tin;
209
      this.tin = other.tin;
199
    }
210
    }
200
    this.bulkShipmentAmountLimit = other.bulkShipmentAmountLimit;
211
    this.bulkShipmentAmountLimit = other.bulkShipmentAmountLimit;
201
    this.creditorAssigned = other.creditorAssigned;
212
    this.creditorAssigned = other.creditorAssigned;
202
    this.tinVerified = other.tinVerified;
213
    this.tinVerified = other.tinVerified;
-
 
214
    this.isFofo = other.isFofo;
203
  }
215
  }
204
 
216
 
205
  public PrivateDealUser deepCopy() {
217
  public PrivateDealUser deepCopy() {
206
    return new PrivateDealUser(this);
218
    return new PrivateDealUser(this);
207
  }
219
  }
Line 221... Line 233...
221
    this.bulkShipmentAmountLimit = 0.0;
233
    this.bulkShipmentAmountLimit = 0.0;
222
    setCreditorAssignedIsSet(false);
234
    setCreditorAssignedIsSet(false);
223
    this.creditorAssigned = false;
235
    this.creditorAssigned = false;
224
    setTinVerifiedIsSet(false);
236
    setTinVerifiedIsSet(false);
225
    this.tinVerified = false;
237
    this.tinVerified = false;
-
 
238
    setIsFofoIsSet(false);
-
 
239
    this.isFofo = 0;
226
  }
240
  }
227
 
241
 
228
  public long getUserId() {
242
  public long getUserId() {
229
    return this.userId;
243
    return this.userId;
230
  }
244
  }
Line 400... Line 414...
400
 
414
 
401
  public void setTinVerifiedIsSet(boolean value) {
415
  public void setTinVerifiedIsSet(boolean value) {
402
    __isset_bit_vector.set(__TINVERIFIED_ISSET_ID, value);
416
    __isset_bit_vector.set(__TINVERIFIED_ISSET_ID, value);
403
  }
417
  }
404
 
418
 
-
 
419
  public long getIsFofo() {
-
 
420
    return this.isFofo;
-
 
421
  }
-
 
422
 
-
 
423
  public void setIsFofo(long isFofo) {
-
 
424
    this.isFofo = isFofo;
-
 
425
    setIsFofoIsSet(true);
-
 
426
  }
-
 
427
 
-
 
428
  public void unsetIsFofo() {
-
 
429
    __isset_bit_vector.clear(__ISFOFO_ISSET_ID);
-
 
430
  }
-
 
431
 
-
 
432
  /** Returns true if field isFofo is set (has been assigned a value) and false otherwise */
-
 
433
  public boolean isSetIsFofo() {
-
 
434
    return __isset_bit_vector.get(__ISFOFO_ISSET_ID);
-
 
435
  }
-
 
436
 
-
 
437
  public void setIsFofoIsSet(boolean value) {
-
 
438
    __isset_bit_vector.set(__ISFOFO_ISSET_ID, value);
-
 
439
  }
-
 
440
 
405
  public void setFieldValue(_Fields field, Object value) {
441
  public void setFieldValue(_Fields field, Object value) {
406
    switch (field) {
442
    switch (field) {
407
    case USER_ID:
443
    case USER_ID:
408
      if (value == null) {
444
      if (value == null) {
409
        unsetUserId();
445
        unsetUserId();
Line 466... Line 502...
466
      } else {
502
      } else {
467
        setTinVerified((Boolean)value);
503
        setTinVerified((Boolean)value);
468
      }
504
      }
469
      break;
505
      break;
470
 
506
 
-
 
507
    case IS_FOFO:
-
 
508
      if (value == null) {
-
 
509
        unsetIsFofo();
-
 
510
      } else {
-
 
511
        setIsFofo((Long)value);
-
 
512
      }
-
 
513
      break;
-
 
514
 
471
    }
515
    }
472
  }
516
  }
473
 
517
 
474
  public Object getFieldValue(_Fields field) {
518
  public Object getFieldValue(_Fields field) {
475
    switch (field) {
519
    switch (field) {
Line 495... Line 539...
495
      return Boolean.valueOf(isCreditorAssigned());
539
      return Boolean.valueOf(isCreditorAssigned());
496
 
540
 
497
    case TIN_VERIFIED:
541
    case TIN_VERIFIED:
498
      return Boolean.valueOf(isTinVerified());
542
      return Boolean.valueOf(isTinVerified());
499
 
543
 
-
 
544
    case IS_FOFO:
-
 
545
      return Long.valueOf(getIsFofo());
-
 
546
 
500
    }
547
    }
501
    throw new IllegalStateException();
548
    throw new IllegalStateException();
502
  }
549
  }
503
 
550
 
504
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
551
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 522... Line 569...
522
      return isSetBulkShipmentAmountLimit();
569
      return isSetBulkShipmentAmountLimit();
523
    case CREDITOR_ASSIGNED:
570
    case CREDITOR_ASSIGNED:
524
      return isSetCreditorAssigned();
571
      return isSetCreditorAssigned();
525
    case TIN_VERIFIED:
572
    case TIN_VERIFIED:
526
      return isSetTinVerified();
573
      return isSetTinVerified();
-
 
574
    case IS_FOFO:
-
 
575
      return isSetIsFofo();
527
    }
576
    }
528
    throw new IllegalStateException();
577
    throw new IllegalStateException();
529
  }
578
  }
530
 
579
 
531
  @Override
580
  @Override
Line 611... Line 660...
611
        return false;
660
        return false;
612
      if (this.tinVerified != that.tinVerified)
661
      if (this.tinVerified != that.tinVerified)
613
        return false;
662
        return false;
614
    }
663
    }
615
 
664
 
-
 
665
    boolean this_present_isFofo = true;
-
 
666
    boolean that_present_isFofo = true;
-
 
667
    if (this_present_isFofo || that_present_isFofo) {
-
 
668
      if (!(this_present_isFofo && that_present_isFofo))
-
 
669
        return false;
-
 
670
      if (this.isFofo != that.isFofo)
-
 
671
        return false;
-
 
672
    }
-
 
673
 
616
    return true;
674
    return true;
617
  }
675
  }
618
 
676
 
619
  @Override
677
  @Override
620
  public int hashCode() {
678
  public int hashCode() {
Line 707... Line 765...
707
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinVerified, typedOther.tinVerified);
765
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinVerified, typedOther.tinVerified);
708
      if (lastComparison != 0) {
766
      if (lastComparison != 0) {
709
        return lastComparison;
767
        return lastComparison;
710
      }
768
      }
711
    }
769
    }
-
 
770
    lastComparison = Boolean.valueOf(isSetIsFofo()).compareTo(typedOther.isSetIsFofo());
-
 
771
    if (lastComparison != 0) {
-
 
772
      return lastComparison;
-
 
773
    }
-
 
774
    if (isSetIsFofo()) {
-
 
775
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isFofo, typedOther.isFofo);
-
 
776
      if (lastComparison != 0) {
-
 
777
        return lastComparison;
-
 
778
      }
-
 
779
    }
712
    return 0;
780
    return 0;
713
  }
781
  }
714
 
782
 
715
  public _Fields fieldForId(int fieldId) {
783
  public _Fields fieldForId(int fieldId) {
716
    return _Fields.findByThriftId(fieldId);
784
    return _Fields.findByThriftId(fieldId);
Line 787... Line 855...
787
            setTinVerifiedIsSet(true);
855
            setTinVerifiedIsSet(true);
788
          } else { 
856
          } else { 
789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
857
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
790
          }
858
          }
791
          break;
859
          break;
-
 
860
        case 9: // IS_FOFO
-
 
861
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
862
            this.isFofo = iprot.readI64();
-
 
863
            setIsFofoIsSet(true);
-
 
864
          } else { 
-
 
865
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
866
          }
-
 
867
          break;
792
        default:
868
        default:
793
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
869
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
794
      }
870
      }
795
      iprot.readFieldEnd();
871
      iprot.readFieldEnd();
796
    }
872
    }
Line 826... Line 902...
826
    oprot.writeBool(this.creditorAssigned);
902
    oprot.writeBool(this.creditorAssigned);
827
    oprot.writeFieldEnd();
903
    oprot.writeFieldEnd();
828
    oprot.writeFieldBegin(TIN_VERIFIED_FIELD_DESC);
904
    oprot.writeFieldBegin(TIN_VERIFIED_FIELD_DESC);
829
    oprot.writeBool(this.tinVerified);
905
    oprot.writeBool(this.tinVerified);
830
    oprot.writeFieldEnd();
906
    oprot.writeFieldEnd();
-
 
907
    oprot.writeFieldBegin(IS_FOFO_FIELD_DESC);
-
 
908
    oprot.writeI64(this.isFofo);
-
 
909
    oprot.writeFieldEnd();
831
    oprot.writeFieldStop();
910
    oprot.writeFieldStop();
832
    oprot.writeStructEnd();
911
    oprot.writeStructEnd();
833
  }
912
  }
834
 
913
 
835
  @Override
914
  @Override
Line 870... Line 949...
870
    first = false;
949
    first = false;
871
    if (!first) sb.append(", ");
950
    if (!first) sb.append(", ");
872
    sb.append("tinVerified:");
951
    sb.append("tinVerified:");
873
    sb.append(this.tinVerified);
952
    sb.append(this.tinVerified);
874
    first = false;
953
    first = false;
-
 
954
    if (!first) sb.append(", ");
-
 
955
    sb.append("isFofo:");
-
 
956
    sb.append(this.isFofo);
-
 
957
    first = false;
875
    sb.append(")");
958
    sb.append(")");
876
    return sb.toString();
959
    return sb.toString();
877
  }
960
  }
878
 
961
 
879
  public void validate() throws org.apache.thrift.TException {
962
  public void validate() throws org.apache.thrift.TException {