Subversion Repositories SmartDukaan

Rev

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

Rev 7096 Rev 7169
Line 43... Line 43...
43
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)18);
43
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)18);
44
  private static final org.apache.thrift.protocol.TField CAF_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("cafNum", org.apache.thrift.protocol.TType.STRING, (short)19);
44
  private static final org.apache.thrift.protocol.TField CAF_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("cafNum", org.apache.thrift.protocol.TType.STRING, (short)19);
45
  private static final org.apache.thrift.protocol.TField SIM_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("simNum", org.apache.thrift.protocol.TType.STRING, (short)20);
45
  private static final org.apache.thrift.protocol.TField SIM_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("simNum", org.apache.thrift.protocol.TType.STRING, (short)20);
46
  private static final org.apache.thrift.protocol.TField ALTERNATE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("alternateNumber", org.apache.thrift.protocol.TType.STRING, (short)21);
46
  private static final org.apache.thrift.protocol.TField ALTERNATE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("alternateNumber", org.apache.thrift.protocol.TType.STRING, (short)21);
47
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)22);
47
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)22);
-
 
48
  private static final org.apache.thrift.protocol.TField RESPONSE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("responseTime", org.apache.thrift.protocol.TType.I64, (short)23);
48
 
49
 
49
  private long id; // required
50
  private long id; // required
50
  private long storeId; // required
51
  private long storeId; // required
51
  private double amount; // required
52
  private double amount; // required
52
  private long transactionTime; // required
53
  private long transactionTime; // required
Line 66... Line 67...
66
  private String name; // required
67
  private String name; // required
67
  private String cafNum; // required
68
  private String cafNum; // required
68
  private String simNum; // required
69
  private String simNum; // required
69
  private String alternateNumber; // required
70
  private String alternateNumber; // required
70
  private String description; // required
71
  private String description; // required
-
 
72
  private long responseTime; // required
71
 
73
 
72
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
74
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
73
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
75
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
74
    ID((short)1, "id"),
76
    ID((short)1, "id"),
75
    STORE_ID((short)2, "storeId"),
77
    STORE_ID((short)2, "storeId"),
Line 102... Line 104...
102
    IP_ADDRESS((short)17, "ipAddress"),
104
    IP_ADDRESS((short)17, "ipAddress"),
103
    NAME((short)18, "name"),
105
    NAME((short)18, "name"),
104
    CAF_NUM((short)19, "cafNum"),
106
    CAF_NUM((short)19, "cafNum"),
105
    SIM_NUM((short)20, "simNum"),
107
    SIM_NUM((short)20, "simNum"),
106
    ALTERNATE_NUMBER((short)21, "alternateNumber"),
108
    ALTERNATE_NUMBER((short)21, "alternateNumber"),
107
    DESCRIPTION((short)22, "description");
109
    DESCRIPTION((short)22, "description"),
-
 
110
    RESPONSE_TIME((short)23, "responseTime");
108
 
111
 
109
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
112
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
110
 
113
 
111
    static {
114
    static {
112
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
115
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 161... Line 164...
161
          return SIM_NUM;
164
          return SIM_NUM;
162
        case 21: // ALTERNATE_NUMBER
165
        case 21: // ALTERNATE_NUMBER
163
          return ALTERNATE_NUMBER;
166
          return ALTERNATE_NUMBER;
164
        case 22: // DESCRIPTION
167
        case 22: // DESCRIPTION
165
          return DESCRIPTION;
168
          return DESCRIPTION;
-
 
169
        case 23: // RESPONSE_TIME
-
 
170
          return RESPONSE_TIME;
166
        default:
171
        default:
167
          return null;
172
          return null;
168
      }
173
      }
169
    }
174
    }
170
 
175
 
Line 210... Line 215...
210
  private static final int __ISFRC_ISSET_ID = 4;
215
  private static final int __ISFRC_ISSET_ID = 4;
211
  private static final int __DISCOUNT_ISSET_ID = 5;
216
  private static final int __DISCOUNT_ISSET_ID = 5;
212
  private static final int __PAYMENTAMOUNT_ISSET_ID = 6;
217
  private static final int __PAYMENTAMOUNT_ISSET_ID = 6;
213
  private static final int __CIRCLEID_ISSET_ID = 7;
218
  private static final int __CIRCLEID_ISSET_ID = 7;
214
  private static final int __OPERATORID_ISSET_ID = 8;
219
  private static final int __OPERATORID_ISSET_ID = 8;
-
 
220
  private static final int __RESPONSETIME_ISSET_ID = 9;
215
  private BitSet __isset_bit_vector = new BitSet(9);
221
  private BitSet __isset_bit_vector = new BitSet(10);
216
 
222
 
217
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
223
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
218
  static {
224
  static {
219
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
225
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
220
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
226
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 259... Line 265...
259
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
265
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
260
    tmpMap.put(_Fields.ALTERNATE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("alternateNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
266
    tmpMap.put(_Fields.ALTERNATE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("alternateNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
261
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
267
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
262
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
268
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
263
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
269
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
270
    tmpMap.put(_Fields.RESPONSE_TIME, new org.apache.thrift.meta_data.FieldMetaData("responseTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
271
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
264
    metaDataMap = Collections.unmodifiableMap(tmpMap);
272
    metaDataMap = Collections.unmodifiableMap(tmpMap);
265
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeTransaction.class, metaDataMap);
273
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeTransaction.class, metaDataMap);
266
  }
274
  }
267
 
275
 
268
  public RechargeTransaction() {
276
  public RechargeTransaction() {
Line 288... Line 296...
288
    String ipAddress,
296
    String ipAddress,
289
    String name,
297
    String name,
290
    String cafNum,
298
    String cafNum,
291
    String simNum,
299
    String simNum,
292
    String alternateNumber,
300
    String alternateNumber,
293
    String description)
301
    String description,
-
 
302
    long responseTime)
294
  {
303
  {
295
    this();
304
    this();
296
    this.id = id;
305
    this.id = id;
297
    setIdIsSet(true);
306
    setIdIsSet(true);
298
    this.storeId = storeId;
307
    this.storeId = storeId;
Line 322... Line 331...
322
    this.name = name;
331
    this.name = name;
323
    this.cafNum = cafNum;
332
    this.cafNum = cafNum;
324
    this.simNum = simNum;
333
    this.simNum = simNum;
325
    this.alternateNumber = alternateNumber;
334
    this.alternateNumber = alternateNumber;
326
    this.description = description;
335
    this.description = description;
-
 
336
    this.responseTime = responseTime;
-
 
337
    setResponseTimeIsSet(true);
327
  }
338
  }
328
 
339
 
329
  /**
340
  /**
330
   * Performs a deep copy on <i>other</i>.
341
   * Performs a deep copy on <i>other</i>.
331
   */
342
   */
Line 378... Line 389...
378
      this.alternateNumber = other.alternateNumber;
389
      this.alternateNumber = other.alternateNumber;
379
    }
390
    }
380
    if (other.isSetDescription()) {
391
    if (other.isSetDescription()) {
381
      this.description = other.description;
392
      this.description = other.description;
382
    }
393
    }
-
 
394
    this.responseTime = other.responseTime;
383
  }
395
  }
384
 
396
 
385
  public RechargeTransaction deepCopy() {
397
  public RechargeTransaction deepCopy() {
386
    return new RechargeTransaction(this);
398
    return new RechargeTransaction(this);
387
  }
399
  }
Line 417... Line 429...
417
    this.name = null;
429
    this.name = null;
418
    this.cafNum = null;
430
    this.cafNum = null;
419
    this.simNum = null;
431
    this.simNum = null;
420
    this.alternateNumber = null;
432
    this.alternateNumber = null;
421
    this.description = null;
433
    this.description = null;
-
 
434
    setResponseTimeIsSet(false);
-
 
435
    this.responseTime = 0;
422
  }
436
  }
423
 
437
 
424
  public long getId() {
438
  public long getId() {
425
    return this.id;
439
    return this.id;
426
  }
440
  }
Line 940... Line 954...
940
    if (!value) {
954
    if (!value) {
941
      this.description = null;
955
      this.description = null;
942
    }
956
    }
943
  }
957
  }
944
 
958
 
-
 
959
  public long getResponseTime() {
-
 
960
    return this.responseTime;
-
 
961
  }
-
 
962
 
-
 
963
  public void setResponseTime(long responseTime) {
-
 
964
    this.responseTime = responseTime;
-
 
965
    setResponseTimeIsSet(true);
-
 
966
  }
-
 
967
 
-
 
968
  public void unsetResponseTime() {
-
 
969
    __isset_bit_vector.clear(__RESPONSETIME_ISSET_ID);
-
 
970
  }
-
 
971
 
-
 
972
  /** Returns true if field responseTime is set (has been assigned a value) and false otherwise */
-
 
973
  public boolean isSetResponseTime() {
-
 
974
    return __isset_bit_vector.get(__RESPONSETIME_ISSET_ID);
-
 
975
  }
-
 
976
 
-
 
977
  public void setResponseTimeIsSet(boolean value) {
-
 
978
    __isset_bit_vector.set(__RESPONSETIME_ISSET_ID, value);
-
 
979
  }
-
 
980
 
945
  public void setFieldValue(_Fields field, Object value) {
981
  public void setFieldValue(_Fields field, Object value) {
946
    switch (field) {
982
    switch (field) {
947
    case ID:
983
    case ID:
948
      if (value == null) {
984
      if (value == null) {
949
        unsetId();
985
        unsetId();
Line 1118... Line 1154...
1118
      } else {
1154
      } else {
1119
        setDescription((String)value);
1155
        setDescription((String)value);
1120
      }
1156
      }
1121
      break;
1157
      break;
1122
 
1158
 
-
 
1159
    case RESPONSE_TIME:
-
 
1160
      if (value == null) {
-
 
1161
        unsetResponseTime();
-
 
1162
      } else {
-
 
1163
        setResponseTime((Long)value);
-
 
1164
      }
-
 
1165
      break;
-
 
1166
 
1123
    }
1167
    }
1124
  }
1168
  }
1125
 
1169
 
1126
  public Object getFieldValue(_Fields field) {
1170
  public Object getFieldValue(_Fields field) {
1127
    switch (field) {
1171
    switch (field) {
Line 1189... Line 1233...
1189
      return getAlternateNumber();
1233
      return getAlternateNumber();
1190
 
1234
 
1191
    case DESCRIPTION:
1235
    case DESCRIPTION:
1192
      return getDescription();
1236
      return getDescription();
1193
 
1237
 
-
 
1238
    case RESPONSE_TIME:
-
 
1239
      return Long.valueOf(getResponseTime());
-
 
1240
 
1194
    }
1241
    }
1195
    throw new IllegalStateException();
1242
    throw new IllegalStateException();
1196
  }
1243
  }
1197
 
1244
 
1198
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1245
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 1244... Line 1291...
1244
      return isSetSimNum();
1291
      return isSetSimNum();
1245
    case ALTERNATE_NUMBER:
1292
    case ALTERNATE_NUMBER:
1246
      return isSetAlternateNumber();
1293
      return isSetAlternateNumber();
1247
    case DESCRIPTION:
1294
    case DESCRIPTION:
1248
      return isSetDescription();
1295
      return isSetDescription();
-
 
1296
    case RESPONSE_TIME:
-
 
1297
      return isSetResponseTime();
1249
    }
1298
    }
1250
    throw new IllegalStateException();
1299
    throw new IllegalStateException();
1251
  }
1300
  }
1252
 
1301
 
1253
  @Override
1302
  @Override
Line 1459... Line 1508...
1459
        return false;
1508
        return false;
1460
      if (!this.description.equals(that.description))
1509
      if (!this.description.equals(that.description))
1461
        return false;
1510
        return false;
1462
    }
1511
    }
1463
 
1512
 
-
 
1513
    boolean this_present_responseTime = true;
-
 
1514
    boolean that_present_responseTime = true;
-
 
1515
    if (this_present_responseTime || that_present_responseTime) {
-
 
1516
      if (!(this_present_responseTime && that_present_responseTime))
-
 
1517
        return false;
-
 
1518
      if (this.responseTime != that.responseTime)
-
 
1519
        return false;
-
 
1520
    }
-
 
1521
 
1464
    return true;
1522
    return true;
1465
  }
1523
  }
1466
 
1524
 
1467
  @Override
1525
  @Override
1468
  public int hashCode() {
1526
  public int hashCode() {
Line 1695... Line 1753...
1695
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1753
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1696
      if (lastComparison != 0) {
1754
      if (lastComparison != 0) {
1697
        return lastComparison;
1755
        return lastComparison;
1698
      }
1756
      }
1699
    }
1757
    }
-
 
1758
    lastComparison = Boolean.valueOf(isSetResponseTime()).compareTo(typedOther.isSetResponseTime());
-
 
1759
    if (lastComparison != 0) {
-
 
1760
      return lastComparison;
-
 
1761
    }
-
 
1762
    if (isSetResponseTime()) {
-
 
1763
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.responseTime, typedOther.responseTime);
-
 
1764
      if (lastComparison != 0) {
-
 
1765
        return lastComparison;
-
 
1766
      }
-
 
1767
    }
1700
    return 0;
1768
    return 0;
1701
  }
1769
  }
1702
 
1770
 
1703
  public _Fields fieldForId(int fieldId) {
1771
  public _Fields fieldForId(int fieldId) {
1704
    return _Fields.findByThriftId(fieldId);
1772
    return _Fields.findByThriftId(fieldId);
Line 1875... Line 1943...
1875
            this.description = iprot.readString();
1943
            this.description = iprot.readString();
1876
          } else { 
1944
          } else { 
1877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1945
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1878
          }
1946
          }
1879
          break;
1947
          break;
-
 
1948
        case 23: // RESPONSE_TIME
-
 
1949
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1950
            this.responseTime = iprot.readI64();
-
 
1951
            setResponseTimeIsSet(true);
-
 
1952
          } else { 
-
 
1953
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1954
          }
-
 
1955
          break;
1880
        default:
1956
        default:
1881
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1957
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1882
      }
1958
      }
1883
      iprot.readFieldEnd();
1959
      iprot.readFieldEnd();
1884
    }
1960
    }
Line 1980... Line 2056...
1980
    if (this.description != null) {
2056
    if (this.description != null) {
1981
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
2057
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
1982
      oprot.writeString(this.description);
2058
      oprot.writeString(this.description);
1983
      oprot.writeFieldEnd();
2059
      oprot.writeFieldEnd();
1984
    }
2060
    }
-
 
2061
    oprot.writeFieldBegin(RESPONSE_TIME_FIELD_DESC);
-
 
2062
    oprot.writeI64(this.responseTime);
-
 
2063
    oprot.writeFieldEnd();
1985
    oprot.writeFieldStop();
2064
    oprot.writeFieldStop();
1986
    oprot.writeStructEnd();
2065
    oprot.writeStructEnd();
1987
  }
2066
  }
1988
 
2067
 
1989
  @Override
2068
  @Override
Line 2128... Line 2207...
2128
      sb.append("null");
2207
      sb.append("null");
2129
    } else {
2208
    } else {
2130
      sb.append(this.description);
2209
      sb.append(this.description);
2131
    }
2210
    }
2132
    first = false;
2211
    first = false;
-
 
2212
    if (!first) sb.append(", ");
-
 
2213
    sb.append("responseTime:");
-
 
2214
    sb.append(this.responseTime);
-
 
2215
    first = false;
2133
    sb.append(")");
2216
    sb.append(")");
2134
    return sb.toString();
2217
    return sb.toString();
2135
  }
2218
  }
2136
 
2219
 
2137
  public void validate() throws org.apache.thrift.TException {
2220
  public void validate() throws org.apache.thrift.TException {