Subversion Repositories SmartDukaan

Rev

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

Rev 18530 Rev 21908
Line 38... Line 38...
38
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)13);
38
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.I64, (short)14);
39
  private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.I64, (short)14);
40
  private static final org.apache.thrift.protocol.TField DOCUMENT_VERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("documentVerified", org.apache.thrift.protocol.TType.BOOL, (short)15);
40
  private static final org.apache.thrift.protocol.TField DOCUMENT_VERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("documentVerified", org.apache.thrift.protocol.TType.BOOL, (short)15);
41
  private static final org.apache.thrift.protocol.TField VERIFICATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("verificationType", org.apache.thrift.protocol.TType.I32, (short)16);
41
  private static final org.apache.thrift.protocol.TField VERIFICATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("verificationType", org.apache.thrift.protocol.TType.I32, (short)16);
42
  private static final org.apache.thrift.protocol.TField VERIFIED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("verifiedOn", org.apache.thrift.protocol.TType.I64, (short)17);
42
  private static final org.apache.thrift.protocol.TField VERIFIED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("verifiedOn", org.apache.thrift.protocol.TType.I64, (short)17);
-
 
43
  private static final org.apache.thrift.protocol.TField GST_IN_FIELD_DESC = new org.apache.thrift.protocol.TField("gstIn", org.apache.thrift.protocol.TType.STRING, (short)18);
43
 
44
 
44
  private long id; // required
45
  private long id; // required
45
  private String code; // required
46
  private String code; // required
46
  private String name; // required
47
  private String name; // required
47
  private String ownerName; // required
48
  private String ownerName; // required
Line 56... Line 57...
56
  private long addedOn; // required
57
  private long addedOn; // required
57
  private long address; // required
58
  private long address; // required
58
  private boolean documentVerified; // required
59
  private boolean documentVerified; // required
59
  private CounterVerificationType verificationType; // required
60
  private CounterVerificationType verificationType; // required
60
  private long verifiedOn; // required
61
  private long verifiedOn; // required
-
 
62
  private String gstIn; // required
61
 
63
 
62
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
63
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
64
    ID((short)1, "id"),
66
    ID((short)1, "id"),
65
    CODE((short)2, "code"),
67
    CODE((short)2, "code"),
Line 79... Line 81...
79
    /**
81
    /**
80
     * 
82
     * 
81
     * @see CounterVerificationType
83
     * @see CounterVerificationType
82
     */
84
     */
83
    VERIFICATION_TYPE((short)16, "verificationType"),
85
    VERIFICATION_TYPE((short)16, "verificationType"),
84
    VERIFIED_ON((short)17, "verifiedOn");
86
    VERIFIED_ON((short)17, "verifiedOn"),
-
 
87
    GST_IN((short)18, "gstIn");
85
 
88
 
86
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
87
 
90
 
88
    static {
91
    static {
89
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
92
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 128... Line 131...
128
          return DOCUMENT_VERIFIED;
131
          return DOCUMENT_VERIFIED;
129
        case 16: // VERIFICATION_TYPE
132
        case 16: // VERIFICATION_TYPE
130
          return VERIFICATION_TYPE;
133
          return VERIFICATION_TYPE;
131
        case 17: // VERIFIED_ON
134
        case 17: // VERIFIED_ON
132
          return VERIFIED_ON;
135
          return VERIFIED_ON;
-
 
136
        case 18: // GST_IN
-
 
137
          return GST_IN;
133
        default:
138
        default:
134
          return null;
139
          return null;
135
      }
140
      }
136
    }
141
    }
137
 
142
 
Line 215... Line 220...
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
216
    tmpMap.put(_Fields.VERIFICATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("verificationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
    tmpMap.put(_Fields.VERIFICATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("verificationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
217
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CounterVerificationType.class)));
222
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CounterVerificationType.class)));
218
    tmpMap.put(_Fields.VERIFIED_ON, new org.apache.thrift.meta_data.FieldMetaData("verifiedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
223
    tmpMap.put(_Fields.VERIFIED_ON, new org.apache.thrift.meta_data.FieldMetaData("verifiedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
225
    tmpMap.put(_Fields.GST_IN, new org.apache.thrift.meta_data.FieldMetaData("gstIn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
226
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
220
    metaDataMap = Collections.unmodifiableMap(tmpMap);
227
    metaDataMap = Collections.unmodifiableMap(tmpMap);
221
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Counter.class, metaDataMap);
228
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Counter.class, metaDataMap);
222
  }
229
  }
223
 
230
 
224
  public Counter() {
231
  public Counter() {
Line 239... Line 246...
239
    String dob,
246
    String dob,
240
    long addedOn,
247
    long addedOn,
241
    long address,
248
    long address,
242
    boolean documentVerified,
249
    boolean documentVerified,
243
    CounterVerificationType verificationType,
250
    CounterVerificationType verificationType,
244
    long verifiedOn)
251
    long verifiedOn,
-
 
252
    String gstIn)
245
  {
253
  {
246
    this();
254
    this();
247
    this.id = id;
255
    this.id = id;
248
    setIdIsSet(true);
256
    setIdIsSet(true);
249
    this.code = code;
257
    this.code = code;
Line 267... Line 275...
267
    this.documentVerified = documentVerified;
275
    this.documentVerified = documentVerified;
268
    setDocumentVerifiedIsSet(true);
276
    setDocumentVerifiedIsSet(true);
269
    this.verificationType = verificationType;
277
    this.verificationType = verificationType;
270
    this.verifiedOn = verifiedOn;
278
    this.verifiedOn = verifiedOn;
271
    setVerifiedOnIsSet(true);
279
    setVerifiedOnIsSet(true);
-
 
280
    this.gstIn = gstIn;
272
  }
281
  }
273
 
282
 
274
  /**
283
  /**
275
   * Performs a deep copy on <i>other</i>.
284
   * Performs a deep copy on <i>other</i>.
276
   */
285
   */
Line 310... Line 319...
310
    this.documentVerified = other.documentVerified;
319
    this.documentVerified = other.documentVerified;
311
    if (other.isSetVerificationType()) {
320
    if (other.isSetVerificationType()) {
312
      this.verificationType = other.verificationType;
321
      this.verificationType = other.verificationType;
313
    }
322
    }
314
    this.verifiedOn = other.verifiedOn;
323
    this.verifiedOn = other.verifiedOn;
-
 
324
    if (other.isSetGstIn()) {
-
 
325
      this.gstIn = other.gstIn;
-
 
326
    }
315
  }
327
  }
316
 
328
 
317
  public Counter deepCopy() {
329
  public Counter deepCopy() {
318
    return new Counter(this);
330
    return new Counter(this);
319
  }
331
  }
Line 343... Line 355...
343
    setDocumentVerifiedIsSet(false);
355
    setDocumentVerifiedIsSet(false);
344
    this.documentVerified = false;
356
    this.documentVerified = false;
345
    this.verificationType = null;
357
    this.verificationType = null;
346
    setVerifiedOnIsSet(false);
358
    setVerifiedOnIsSet(false);
347
    this.verifiedOn = 0;
359
    this.verifiedOn = 0;
-
 
360
    this.gstIn = null;
348
  }
361
  }
349
 
362
 
350
  public long getId() {
363
  public long getId() {
351
    return this.id;
364
    return this.id;
352
  }
365
  }
Line 736... Line 749...
736
 
749
 
737
  public void setVerifiedOnIsSet(boolean value) {
750
  public void setVerifiedOnIsSet(boolean value) {
738
    __isset_bit_vector.set(__VERIFIEDON_ISSET_ID, value);
751
    __isset_bit_vector.set(__VERIFIEDON_ISSET_ID, value);
739
  }
752
  }
740
 
753
 
-
 
754
  public String getGstIn() {
-
 
755
    return this.gstIn;
-
 
756
  }
-
 
757
 
-
 
758
  public void setGstIn(String gstIn) {
-
 
759
    this.gstIn = gstIn;
-
 
760
  }
-
 
761
 
-
 
762
  public void unsetGstIn() {
-
 
763
    this.gstIn = null;
-
 
764
  }
-
 
765
 
-
 
766
  /** Returns true if field gstIn is set (has been assigned a value) and false otherwise */
-
 
767
  public boolean isSetGstIn() {
-
 
768
    return this.gstIn != null;
-
 
769
  }
-
 
770
 
-
 
771
  public void setGstInIsSet(boolean value) {
-
 
772
    if (!value) {
-
 
773
      this.gstIn = null;
-
 
774
    }
-
 
775
  }
-
 
776
 
741
  public void setFieldValue(_Fields field, Object value) {
777
  public void setFieldValue(_Fields field, Object value) {
742
    switch (field) {
778
    switch (field) {
743
    case ID:
779
    case ID:
744
      if (value == null) {
780
      if (value == null) {
745
        unsetId();
781
        unsetId();
Line 874... Line 910...
874
      } else {
910
      } else {
875
        setVerifiedOn((Long)value);
911
        setVerifiedOn((Long)value);
876
      }
912
      }
877
      break;
913
      break;
878
 
914
 
-
 
915
    case GST_IN:
-
 
916
      if (value == null) {
-
 
917
        unsetGstIn();
-
 
918
      } else {
-
 
919
        setGstIn((String)value);
-
 
920
      }
-
 
921
      break;
-
 
922
 
879
    }
923
    }
880
  }
924
  }
881
 
925
 
882
  public Object getFieldValue(_Fields field) {
926
  public Object getFieldValue(_Fields field) {
883
    switch (field) {
927
    switch (field) {
Line 930... Line 974...
930
      return getVerificationType();
974
      return getVerificationType();
931
 
975
 
932
    case VERIFIED_ON:
976
    case VERIFIED_ON:
933
      return Long.valueOf(getVerifiedOn());
977
      return Long.valueOf(getVerifiedOn());
934
 
978
 
-
 
979
    case GST_IN:
-
 
980
      return getGstIn();
-
 
981
 
935
    }
982
    }
936
    throw new IllegalStateException();
983
    throw new IllegalStateException();
937
  }
984
  }
938
 
985
 
939
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
986
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 975... Line 1022...
975
      return isSetDocumentVerified();
1022
      return isSetDocumentVerified();
976
    case VERIFICATION_TYPE:
1023
    case VERIFICATION_TYPE:
977
      return isSetVerificationType();
1024
      return isSetVerificationType();
978
    case VERIFIED_ON:
1025
    case VERIFIED_ON:
979
      return isSetVerifiedOn();
1026
      return isSetVerifiedOn();
-
 
1027
    case GST_IN:
-
 
1028
      return isSetGstIn();
980
    }
1029
    }
981
    throw new IllegalStateException();
1030
    throw new IllegalStateException();
982
  }
1031
  }
983
 
1032
 
984
  @Override
1033
  @Override
Line 1145... Line 1194...
1145
        return false;
1194
        return false;
1146
      if (this.verifiedOn != that.verifiedOn)
1195
      if (this.verifiedOn != that.verifiedOn)
1147
        return false;
1196
        return false;
1148
    }
1197
    }
1149
 
1198
 
-
 
1199
    boolean this_present_gstIn = true && this.isSetGstIn();
-
 
1200
    boolean that_present_gstIn = true && that.isSetGstIn();
-
 
1201
    if (this_present_gstIn || that_present_gstIn) {
-
 
1202
      if (!(this_present_gstIn && that_present_gstIn))
-
 
1203
        return false;
-
 
1204
      if (!this.gstIn.equals(that.gstIn))
-
 
1205
        return false;
-
 
1206
    }
-
 
1207
 
1150
    return true;
1208
    return true;
1151
  }
1209
  }
1152
 
1210
 
1153
  @Override
1211
  @Override
1154
  public int hashCode() {
1212
  public int hashCode() {
Line 1331... Line 1389...
1331
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.verifiedOn, typedOther.verifiedOn);
1389
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.verifiedOn, typedOther.verifiedOn);
1332
      if (lastComparison != 0) {
1390
      if (lastComparison != 0) {
1333
        return lastComparison;
1391
        return lastComparison;
1334
      }
1392
      }
1335
    }
1393
    }
-
 
1394
    lastComparison = Boolean.valueOf(isSetGstIn()).compareTo(typedOther.isSetGstIn());
-
 
1395
    if (lastComparison != 0) {
-
 
1396
      return lastComparison;
-
 
1397
    }
-
 
1398
    if (isSetGstIn()) {
-
 
1399
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gstIn, typedOther.gstIn);
-
 
1400
      if (lastComparison != 0) {
-
 
1401
        return lastComparison;
-
 
1402
      }
-
 
1403
    }
1336
    return 0;
1404
    return 0;
1337
  }
1405
  }
1338
 
1406
 
1339
  public _Fields fieldForId(int fieldId) {
1407
  public _Fields fieldForId(int fieldId) {
1340
    return _Fields.findByThriftId(fieldId);
1408
    return _Fields.findByThriftId(fieldId);
Line 1475... Line 1543...
1475
            setVerifiedOnIsSet(true);
1543
            setVerifiedOnIsSet(true);
1476
          } else { 
1544
          } else { 
1477
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1478
          }
1546
          }
1479
          break;
1547
          break;
-
 
1548
        case 18: // GST_IN
-
 
1549
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1550
            this.gstIn = iprot.readString();
-
 
1551
          } else { 
-
 
1552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1553
          }
-
 
1554
          break;
1480
        default:
1555
        default:
1481
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1556
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1482
      }
1557
      }
1483
      iprot.readFieldEnd();
1558
      iprot.readFieldEnd();
1484
    }
1559
    }
Line 1557... Line 1632...
1557
      oprot.writeFieldEnd();
1632
      oprot.writeFieldEnd();
1558
    }
1633
    }
1559
    oprot.writeFieldBegin(VERIFIED_ON_FIELD_DESC);
1634
    oprot.writeFieldBegin(VERIFIED_ON_FIELD_DESC);
1560
    oprot.writeI64(this.verifiedOn);
1635
    oprot.writeI64(this.verifiedOn);
1561
    oprot.writeFieldEnd();
1636
    oprot.writeFieldEnd();
-
 
1637
    if (this.gstIn != null) {
-
 
1638
      oprot.writeFieldBegin(GST_IN_FIELD_DESC);
-
 
1639
      oprot.writeString(this.gstIn);
-
 
1640
      oprot.writeFieldEnd();
-
 
1641
    }
1562
    oprot.writeFieldStop();
1642
    oprot.writeFieldStop();
1563
    oprot.writeStructEnd();
1643
    oprot.writeStructEnd();
1564
  }
1644
  }
1565
 
1645
 
1566
  @Override
1646
  @Override
Line 1669... Line 1749...
1669
    first = false;
1749
    first = false;
1670
    if (!first) sb.append(", ");
1750
    if (!first) sb.append(", ");
1671
    sb.append("verifiedOn:");
1751
    sb.append("verifiedOn:");
1672
    sb.append(this.verifiedOn);
1752
    sb.append(this.verifiedOn);
1673
    first = false;
1753
    first = false;
-
 
1754
    if (!first) sb.append(", ");
-
 
1755
    sb.append("gstIn:");
-
 
1756
    if (this.gstIn == null) {
-
 
1757
      sb.append("null");
-
 
1758
    } else {
-
 
1759
      sb.append(this.gstIn);
-
 
1760
    }
-
 
1761
    first = false;
1674
    sb.append(")");
1762
    sb.append(")");
1675
    return sb.toString();
1763
    return sb.toString();
1676
  }
1764
  }
1677
 
1765
 
1678
  public void validate() throws org.apache.thrift.TException {
1766
  public void validate() throws org.apache.thrift.TException {