Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
7073 anupam.sin 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 RechargeTransaction implements org.apache.thrift.TBase<RechargeTransaction, RechargeTransaction._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeTransaction");
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 STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  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)3);
29
  private static final org.apache.thrift.protocol.TField TRANSACTION_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionTime", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField DEVICE_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNum", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField DEVICE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceType", org.apache.thrift.protocol.TType.I32, (short)6);
32
  private static final org.apache.thrift.protocol.TField IS_FRC_FIELD_DESC = new org.apache.thrift.protocol.TField("isFrc", org.apache.thrift.protocol.TType.BOOL, (short)7);
33
  private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField DISCOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("discount", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField PAYMENT_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField PAY_METHOD_FIELD_DESC = new org.apache.thrift.protocol.TField("payMethod", org.apache.thrift.protocol.TType.I32, (short)11);
37
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)12);
38
  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)13);
39
  private static final org.apache.thrift.protocol.TField CIRCLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("circleId", org.apache.thrift.protocol.TType.I64, (short)14);
40
  private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)15);
41
  private static final org.apache.thrift.protocol.TField PLAN_FIELD_DESC = new org.apache.thrift.protocol.TField("plan", org.apache.thrift.protocol.TType.STRING, (short)16);
42
  private static final org.apache.thrift.protocol.TField IP_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("ipAddress", org.apache.thrift.protocol.TType.STRING, (short)17);
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);
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);
7080 anupam.sin 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);
7096 anupam.sin 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);
7169 anupam.sin 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);
7370 anupam.sin 49
  private static final org.apache.thrift.protocol.TField SPICE_TID_FIELD_DESC = new org.apache.thrift.protocol.TField("spiceTID", org.apache.thrift.protocol.TType.STRING, (short)24);
50
  private static final org.apache.thrift.protocol.TField AGG_TID_FIELD_DESC = new org.apache.thrift.protocol.TField("aggTID", org.apache.thrift.protocol.TType.STRING, (short)25);
51
  private static final org.apache.thrift.protocol.TField PROVIDER_TID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerTID", org.apache.thrift.protocol.TType.STRING, (short)26);
7073 anupam.sin 52
 
53
  private long id; // required
54
  private long storeId; // required
55
  private double amount; // required
56
  private long transactionTime; // required
57
  private String deviceNum; // required
58
  private RechargeType deviceType; // required
59
  private boolean isFrc; // required
60
  private String email; // required
61
  private double discount; // required
62
  private double paymentAmount; // required
63
  private PayMethod payMethod; // required
64
  private RechargeOrderStatus status; // required
65
  private String invoiceNumber; // required
66
  private long circleId; // required
67
  private long operatorId; // required
68
  private String plan; // required
69
  private String ipAddress; // required
70
  private String name; // required
71
  private String cafNum; // required
72
  private String simNum; // required
7080 anupam.sin 73
  private String alternateNumber; // required
7096 anupam.sin 74
  private String description; // required
7169 anupam.sin 75
  private long responseTime; // required
7370 anupam.sin 76
  private String spiceTID; // required
77
  private String aggTID; // required
78
  private String providerTID; // required
7073 anupam.sin 79
 
80
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
81
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
82
    ID((short)1, "id"),
83
    STORE_ID((short)2, "storeId"),
84
    AMOUNT((short)3, "amount"),
85
    TRANSACTION_TIME((short)4, "transactionTime"),
86
    DEVICE_NUM((short)5, "deviceNum"),
87
    /**
88
     * 
89
     * @see RechargeType
90
     */
91
    DEVICE_TYPE((short)6, "deviceType"),
92
    IS_FRC((short)7, "isFrc"),
93
    EMAIL((short)8, "email"),
94
    DISCOUNT((short)9, "discount"),
95
    PAYMENT_AMOUNT((short)10, "paymentAmount"),
96
    /**
97
     * 
98
     * @see PayMethod
99
     */
100
    PAY_METHOD((short)11, "payMethod"),
101
    /**
102
     * 
103
     * @see RechargeOrderStatus
104
     */
105
    STATUS((short)12, "status"),
106
    INVOICE_NUMBER((short)13, "invoiceNumber"),
107
    CIRCLE_ID((short)14, "circleId"),
108
    OPERATOR_ID((short)15, "operatorId"),
109
    PLAN((short)16, "plan"),
110
    IP_ADDRESS((short)17, "ipAddress"),
111
    NAME((short)18, "name"),
112
    CAF_NUM((short)19, "cafNum"),
7080 anupam.sin 113
    SIM_NUM((short)20, "simNum"),
7096 anupam.sin 114
    ALTERNATE_NUMBER((short)21, "alternateNumber"),
7169 anupam.sin 115
    DESCRIPTION((short)22, "description"),
7370 anupam.sin 116
    RESPONSE_TIME((short)23, "responseTime"),
117
    SPICE_TID((short)24, "spiceTID"),
118
    AGG_TID((short)25, "aggTID"),
119
    PROVIDER_TID((short)26, "providerTID");
7073 anupam.sin 120
 
121
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
122
 
123
    static {
124
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
125
        byName.put(field.getFieldName(), field);
126
      }
127
    }
128
 
129
    /**
130
     * Find the _Fields constant that matches fieldId, or null if its not found.
131
     */
132
    public static _Fields findByThriftId(int fieldId) {
133
      switch(fieldId) {
134
        case 1: // ID
135
          return ID;
136
        case 2: // STORE_ID
137
          return STORE_ID;
138
        case 3: // AMOUNT
139
          return AMOUNT;
140
        case 4: // TRANSACTION_TIME
141
          return TRANSACTION_TIME;
142
        case 5: // DEVICE_NUM
143
          return DEVICE_NUM;
144
        case 6: // DEVICE_TYPE
145
          return DEVICE_TYPE;
146
        case 7: // IS_FRC
147
          return IS_FRC;
148
        case 8: // EMAIL
149
          return EMAIL;
150
        case 9: // DISCOUNT
151
          return DISCOUNT;
152
        case 10: // PAYMENT_AMOUNT
153
          return PAYMENT_AMOUNT;
154
        case 11: // PAY_METHOD
155
          return PAY_METHOD;
156
        case 12: // STATUS
157
          return STATUS;
158
        case 13: // INVOICE_NUMBER
159
          return INVOICE_NUMBER;
160
        case 14: // CIRCLE_ID
161
          return CIRCLE_ID;
162
        case 15: // OPERATOR_ID
163
          return OPERATOR_ID;
164
        case 16: // PLAN
165
          return PLAN;
166
        case 17: // IP_ADDRESS
167
          return IP_ADDRESS;
168
        case 18: // NAME
169
          return NAME;
170
        case 19: // CAF_NUM
171
          return CAF_NUM;
172
        case 20: // SIM_NUM
173
          return SIM_NUM;
7080 anupam.sin 174
        case 21: // ALTERNATE_NUMBER
175
          return ALTERNATE_NUMBER;
7096 anupam.sin 176
        case 22: // DESCRIPTION
177
          return DESCRIPTION;
7169 anupam.sin 178
        case 23: // RESPONSE_TIME
179
          return RESPONSE_TIME;
7370 anupam.sin 180
        case 24: // SPICE_TID
181
          return SPICE_TID;
182
        case 25: // AGG_TID
183
          return AGG_TID;
184
        case 26: // PROVIDER_TID
185
          return PROVIDER_TID;
7073 anupam.sin 186
        default:
187
          return null;
188
      }
189
    }
190
 
191
    /**
192
     * Find the _Fields constant that matches fieldId, throwing an exception
193
     * if it is not found.
194
     */
195
    public static _Fields findByThriftIdOrThrow(int fieldId) {
196
      _Fields fields = findByThriftId(fieldId);
197
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
198
      return fields;
199
    }
200
 
201
    /**
202
     * Find the _Fields constant that matches name, or null if its not found.
203
     */
204
    public static _Fields findByName(String name) {
205
      return byName.get(name);
206
    }
207
 
208
    private final short _thriftId;
209
    private final String _fieldName;
210
 
211
    _Fields(short thriftId, String fieldName) {
212
      _thriftId = thriftId;
213
      _fieldName = fieldName;
214
    }
215
 
216
    public short getThriftFieldId() {
217
      return _thriftId;
218
    }
219
 
220
    public String getFieldName() {
221
      return _fieldName;
222
    }
223
  }
224
 
225
  // isset id assignments
226
  private static final int __ID_ISSET_ID = 0;
227
  private static final int __STOREID_ISSET_ID = 1;
228
  private static final int __AMOUNT_ISSET_ID = 2;
229
  private static final int __TRANSACTIONTIME_ISSET_ID = 3;
230
  private static final int __ISFRC_ISSET_ID = 4;
231
  private static final int __DISCOUNT_ISSET_ID = 5;
232
  private static final int __PAYMENTAMOUNT_ISSET_ID = 6;
233
  private static final int __CIRCLEID_ISSET_ID = 7;
234
  private static final int __OPERATORID_ISSET_ID = 8;
7169 anupam.sin 235
  private static final int __RESPONSETIME_ISSET_ID = 9;
236
  private BitSet __isset_bit_vector = new BitSet(10);
7073 anupam.sin 237
 
238
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
239
  static {
240
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
241
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
242
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
243
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
244
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
245
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
246
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
247
    tmpMap.put(_Fields.TRANSACTION_TIME, new org.apache.thrift.meta_data.FieldMetaData("transactionTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
248
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
249
    tmpMap.put(_Fields.DEVICE_NUM, new org.apache.thrift.meta_data.FieldMetaData("deviceNum", org.apache.thrift.TFieldRequirementType.DEFAULT, 
250
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
251
    tmpMap.put(_Fields.DEVICE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("deviceType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
252
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
253
    tmpMap.put(_Fields.IS_FRC, new org.apache.thrift.meta_data.FieldMetaData("isFrc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
254
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
255
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
256
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
257
    tmpMap.put(_Fields.DISCOUNT, new org.apache.thrift.meta_data.FieldMetaData("discount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
258
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
259
    tmpMap.put(_Fields.PAYMENT_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("paymentAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
260
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
261
    tmpMap.put(_Fields.PAY_METHOD, new org.apache.thrift.meta_data.FieldMetaData("payMethod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
262
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PayMethod.class)));
263
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
264
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeOrderStatus.class)));
265
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
266
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
267
    tmpMap.put(_Fields.CIRCLE_ID, new org.apache.thrift.meta_data.FieldMetaData("circleId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
268
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
269
    tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
270
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
271
    tmpMap.put(_Fields.PLAN, new org.apache.thrift.meta_data.FieldMetaData("plan", org.apache.thrift.TFieldRequirementType.DEFAULT, 
272
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
273
    tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
274
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
275
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
276
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
277
    tmpMap.put(_Fields.CAF_NUM, new org.apache.thrift.meta_data.FieldMetaData("cafNum", org.apache.thrift.TFieldRequirementType.DEFAULT, 
278
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
279
    tmpMap.put(_Fields.SIM_NUM, new org.apache.thrift.meta_data.FieldMetaData("simNum", org.apache.thrift.TFieldRequirementType.DEFAULT, 
280
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7080 anupam.sin 281
    tmpMap.put(_Fields.ALTERNATE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("alternateNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
282
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7096 anupam.sin 283
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
284
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7169 anupam.sin 285
    tmpMap.put(_Fields.RESPONSE_TIME, new org.apache.thrift.meta_data.FieldMetaData("responseTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
286
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7370 anupam.sin 287
    tmpMap.put(_Fields.SPICE_TID, new org.apache.thrift.meta_data.FieldMetaData("spiceTID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
288
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
289
    tmpMap.put(_Fields.AGG_TID, new org.apache.thrift.meta_data.FieldMetaData("aggTID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
290
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
291
    tmpMap.put(_Fields.PROVIDER_TID, new org.apache.thrift.meta_data.FieldMetaData("providerTID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
292
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7073 anupam.sin 293
    metaDataMap = Collections.unmodifiableMap(tmpMap);
294
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeTransaction.class, metaDataMap);
295
  }
296
 
297
  public RechargeTransaction() {
298
  }
299
 
300
  public RechargeTransaction(
301
    long id,
302
    long storeId,
303
    double amount,
304
    long transactionTime,
305
    String deviceNum,
306
    RechargeType deviceType,
307
    boolean isFrc,
308
    String email,
309
    double discount,
310
    double paymentAmount,
311
    PayMethod payMethod,
312
    RechargeOrderStatus status,
313
    String invoiceNumber,
314
    long circleId,
315
    long operatorId,
316
    String plan,
317
    String ipAddress,
318
    String name,
319
    String cafNum,
7080 anupam.sin 320
    String simNum,
7096 anupam.sin 321
    String alternateNumber,
7169 anupam.sin 322
    String description,
7370 anupam.sin 323
    long responseTime,
324
    String spiceTID,
325
    String aggTID,
326
    String providerTID)
7073 anupam.sin 327
  {
328
    this();
329
    this.id = id;
330
    setIdIsSet(true);
331
    this.storeId = storeId;
332
    setStoreIdIsSet(true);
333
    this.amount = amount;
334
    setAmountIsSet(true);
335
    this.transactionTime = transactionTime;
336
    setTransactionTimeIsSet(true);
337
    this.deviceNum = deviceNum;
338
    this.deviceType = deviceType;
339
    this.isFrc = isFrc;
340
    setIsFrcIsSet(true);
341
    this.email = email;
342
    this.discount = discount;
343
    setDiscountIsSet(true);
344
    this.paymentAmount = paymentAmount;
345
    setPaymentAmountIsSet(true);
346
    this.payMethod = payMethod;
347
    this.status = status;
348
    this.invoiceNumber = invoiceNumber;
349
    this.circleId = circleId;
350
    setCircleIdIsSet(true);
351
    this.operatorId = operatorId;
352
    setOperatorIdIsSet(true);
353
    this.plan = plan;
354
    this.ipAddress = ipAddress;
355
    this.name = name;
356
    this.cafNum = cafNum;
357
    this.simNum = simNum;
7080 anupam.sin 358
    this.alternateNumber = alternateNumber;
7096 anupam.sin 359
    this.description = description;
7169 anupam.sin 360
    this.responseTime = responseTime;
361
    setResponseTimeIsSet(true);
7370 anupam.sin 362
    this.spiceTID = spiceTID;
363
    this.aggTID = aggTID;
364
    this.providerTID = providerTID;
7073 anupam.sin 365
  }
366
 
367
  /**
368
   * Performs a deep copy on <i>other</i>.
369
   */
370
  public RechargeTransaction(RechargeTransaction other) {
371
    __isset_bit_vector.clear();
372
    __isset_bit_vector.or(other.__isset_bit_vector);
373
    this.id = other.id;
374
    this.storeId = other.storeId;
375
    this.amount = other.amount;
376
    this.transactionTime = other.transactionTime;
377
    if (other.isSetDeviceNum()) {
378
      this.deviceNum = other.deviceNum;
379
    }
380
    if (other.isSetDeviceType()) {
381
      this.deviceType = other.deviceType;
382
    }
383
    this.isFrc = other.isFrc;
384
    if (other.isSetEmail()) {
385
      this.email = other.email;
386
    }
387
    this.discount = other.discount;
388
    this.paymentAmount = other.paymentAmount;
389
    if (other.isSetPayMethod()) {
390
      this.payMethod = other.payMethod;
391
    }
392
    if (other.isSetStatus()) {
393
      this.status = other.status;
394
    }
395
    if (other.isSetInvoiceNumber()) {
396
      this.invoiceNumber = other.invoiceNumber;
397
    }
398
    this.circleId = other.circleId;
399
    this.operatorId = other.operatorId;
400
    if (other.isSetPlan()) {
401
      this.plan = other.plan;
402
    }
403
    if (other.isSetIpAddress()) {
404
      this.ipAddress = other.ipAddress;
405
    }
406
    if (other.isSetName()) {
407
      this.name = other.name;
408
    }
409
    if (other.isSetCafNum()) {
410
      this.cafNum = other.cafNum;
411
    }
412
    if (other.isSetSimNum()) {
413
      this.simNum = other.simNum;
414
    }
7080 anupam.sin 415
    if (other.isSetAlternateNumber()) {
416
      this.alternateNumber = other.alternateNumber;
417
    }
7096 anupam.sin 418
    if (other.isSetDescription()) {
419
      this.description = other.description;
420
    }
7169 anupam.sin 421
    this.responseTime = other.responseTime;
7370 anupam.sin 422
    if (other.isSetSpiceTID()) {
423
      this.spiceTID = other.spiceTID;
424
    }
425
    if (other.isSetAggTID()) {
426
      this.aggTID = other.aggTID;
427
    }
428
    if (other.isSetProviderTID()) {
429
      this.providerTID = other.providerTID;
430
    }
7073 anupam.sin 431
  }
432
 
433
  public RechargeTransaction deepCopy() {
434
    return new RechargeTransaction(this);
435
  }
436
 
437
  @Override
438
  public void clear() {
439
    setIdIsSet(false);
440
    this.id = 0;
441
    setStoreIdIsSet(false);
442
    this.storeId = 0;
443
    setAmountIsSet(false);
444
    this.amount = 0.0;
445
    setTransactionTimeIsSet(false);
446
    this.transactionTime = 0;
447
    this.deviceNum = null;
448
    this.deviceType = null;
449
    setIsFrcIsSet(false);
450
    this.isFrc = false;
451
    this.email = null;
452
    setDiscountIsSet(false);
453
    this.discount = 0.0;
454
    setPaymentAmountIsSet(false);
455
    this.paymentAmount = 0.0;
456
    this.payMethod = null;
457
    this.status = null;
458
    this.invoiceNumber = null;
459
    setCircleIdIsSet(false);
460
    this.circleId = 0;
461
    setOperatorIdIsSet(false);
462
    this.operatorId = 0;
463
    this.plan = null;
464
    this.ipAddress = null;
465
    this.name = null;
466
    this.cafNum = null;
467
    this.simNum = null;
7080 anupam.sin 468
    this.alternateNumber = null;
7096 anupam.sin 469
    this.description = null;
7169 anupam.sin 470
    setResponseTimeIsSet(false);
471
    this.responseTime = 0;
7370 anupam.sin 472
    this.spiceTID = null;
473
    this.aggTID = null;
474
    this.providerTID = null;
7073 anupam.sin 475
  }
476
 
477
  public long getId() {
478
    return this.id;
479
  }
480
 
481
  public void setId(long id) {
482
    this.id = id;
483
    setIdIsSet(true);
484
  }
485
 
486
  public void unsetId() {
487
    __isset_bit_vector.clear(__ID_ISSET_ID);
488
  }
489
 
490
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
491
  public boolean isSetId() {
492
    return __isset_bit_vector.get(__ID_ISSET_ID);
493
  }
494
 
495
  public void setIdIsSet(boolean value) {
496
    __isset_bit_vector.set(__ID_ISSET_ID, value);
497
  }
498
 
499
  public long getStoreId() {
500
    return this.storeId;
501
  }
502
 
503
  public void setStoreId(long storeId) {
504
    this.storeId = storeId;
505
    setStoreIdIsSet(true);
506
  }
507
 
508
  public void unsetStoreId() {
509
    __isset_bit_vector.clear(__STOREID_ISSET_ID);
510
  }
511
 
512
  /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
513
  public boolean isSetStoreId() {
514
    return __isset_bit_vector.get(__STOREID_ISSET_ID);
515
  }
516
 
517
  public void setStoreIdIsSet(boolean value) {
518
    __isset_bit_vector.set(__STOREID_ISSET_ID, value);
519
  }
520
 
521
  public double getAmount() {
522
    return this.amount;
523
  }
524
 
525
  public void setAmount(double amount) {
526
    this.amount = amount;
527
    setAmountIsSet(true);
528
  }
529
 
530
  public void unsetAmount() {
531
    __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
532
  }
533
 
534
  /** Returns true if field amount is set (has been assigned a value) and false otherwise */
535
  public boolean isSetAmount() {
536
    return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
537
  }
538
 
539
  public void setAmountIsSet(boolean value) {
540
    __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
541
  }
542
 
543
  public long getTransactionTime() {
544
    return this.transactionTime;
545
  }
546
 
547
  public void setTransactionTime(long transactionTime) {
548
    this.transactionTime = transactionTime;
549
    setTransactionTimeIsSet(true);
550
  }
551
 
552
  public void unsetTransactionTime() {
553
    __isset_bit_vector.clear(__TRANSACTIONTIME_ISSET_ID);
554
  }
555
 
556
  /** Returns true if field transactionTime is set (has been assigned a value) and false otherwise */
557
  public boolean isSetTransactionTime() {
558
    return __isset_bit_vector.get(__TRANSACTIONTIME_ISSET_ID);
559
  }
560
 
561
  public void setTransactionTimeIsSet(boolean value) {
562
    __isset_bit_vector.set(__TRANSACTIONTIME_ISSET_ID, value);
563
  }
564
 
565
  public String getDeviceNum() {
566
    return this.deviceNum;
567
  }
568
 
569
  public void setDeviceNum(String deviceNum) {
570
    this.deviceNum = deviceNum;
571
  }
572
 
573
  public void unsetDeviceNum() {
574
    this.deviceNum = null;
575
  }
576
 
577
  /** Returns true if field deviceNum is set (has been assigned a value) and false otherwise */
578
  public boolean isSetDeviceNum() {
579
    return this.deviceNum != null;
580
  }
581
 
582
  public void setDeviceNumIsSet(boolean value) {
583
    if (!value) {
584
      this.deviceNum = null;
585
    }
586
  }
587
 
588
  /**
589
   * 
590
   * @see RechargeType
591
   */
592
  public RechargeType getDeviceType() {
593
    return this.deviceType;
594
  }
595
 
596
  /**
597
   * 
598
   * @see RechargeType
599
   */
600
  public void setDeviceType(RechargeType deviceType) {
601
    this.deviceType = deviceType;
602
  }
603
 
604
  public void unsetDeviceType() {
605
    this.deviceType = null;
606
  }
607
 
608
  /** Returns true if field deviceType is set (has been assigned a value) and false otherwise */
609
  public boolean isSetDeviceType() {
610
    return this.deviceType != null;
611
  }
612
 
613
  public void setDeviceTypeIsSet(boolean value) {
614
    if (!value) {
615
      this.deviceType = null;
616
    }
617
  }
618
 
619
  public boolean isIsFrc() {
620
    return this.isFrc;
621
  }
622
 
623
  public void setIsFrc(boolean isFrc) {
624
    this.isFrc = isFrc;
625
    setIsFrcIsSet(true);
626
  }
627
 
628
  public void unsetIsFrc() {
629
    __isset_bit_vector.clear(__ISFRC_ISSET_ID);
630
  }
631
 
632
  /** Returns true if field isFrc is set (has been assigned a value) and false otherwise */
633
  public boolean isSetIsFrc() {
634
    return __isset_bit_vector.get(__ISFRC_ISSET_ID);
635
  }
636
 
637
  public void setIsFrcIsSet(boolean value) {
638
    __isset_bit_vector.set(__ISFRC_ISSET_ID, value);
639
  }
640
 
641
  public String getEmail() {
642
    return this.email;
643
  }
644
 
645
  public void setEmail(String email) {
646
    this.email = email;
647
  }
648
 
649
  public void unsetEmail() {
650
    this.email = null;
651
  }
652
 
653
  /** Returns true if field email is set (has been assigned a value) and false otherwise */
654
  public boolean isSetEmail() {
655
    return this.email != null;
656
  }
657
 
658
  public void setEmailIsSet(boolean value) {
659
    if (!value) {
660
      this.email = null;
661
    }
662
  }
663
 
664
  public double getDiscount() {
665
    return this.discount;
666
  }
667
 
668
  public void setDiscount(double discount) {
669
    this.discount = discount;
670
    setDiscountIsSet(true);
671
  }
672
 
673
  public void unsetDiscount() {
674
    __isset_bit_vector.clear(__DISCOUNT_ISSET_ID);
675
  }
676
 
677
  /** Returns true if field discount is set (has been assigned a value) and false otherwise */
678
  public boolean isSetDiscount() {
679
    return __isset_bit_vector.get(__DISCOUNT_ISSET_ID);
680
  }
681
 
682
  public void setDiscountIsSet(boolean value) {
683
    __isset_bit_vector.set(__DISCOUNT_ISSET_ID, value);
684
  }
685
 
686
  public double getPaymentAmount() {
687
    return this.paymentAmount;
688
  }
689
 
690
  public void setPaymentAmount(double paymentAmount) {
691
    this.paymentAmount = paymentAmount;
692
    setPaymentAmountIsSet(true);
693
  }
694
 
695
  public void unsetPaymentAmount() {
696
    __isset_bit_vector.clear(__PAYMENTAMOUNT_ISSET_ID);
697
  }
698
 
699
  /** Returns true if field paymentAmount is set (has been assigned a value) and false otherwise */
700
  public boolean isSetPaymentAmount() {
701
    return __isset_bit_vector.get(__PAYMENTAMOUNT_ISSET_ID);
702
  }
703
 
704
  public void setPaymentAmountIsSet(boolean value) {
705
    __isset_bit_vector.set(__PAYMENTAMOUNT_ISSET_ID, value);
706
  }
707
 
708
  /**
709
   * 
710
   * @see PayMethod
711
   */
712
  public PayMethod getPayMethod() {
713
    return this.payMethod;
714
  }
715
 
716
  /**
717
   * 
718
   * @see PayMethod
719
   */
720
  public void setPayMethod(PayMethod payMethod) {
721
    this.payMethod = payMethod;
722
  }
723
 
724
  public void unsetPayMethod() {
725
    this.payMethod = null;
726
  }
727
 
728
  /** Returns true if field payMethod is set (has been assigned a value) and false otherwise */
729
  public boolean isSetPayMethod() {
730
    return this.payMethod != null;
731
  }
732
 
733
  public void setPayMethodIsSet(boolean value) {
734
    if (!value) {
735
      this.payMethod = null;
736
    }
737
  }
738
 
739
  /**
740
   * 
741
   * @see RechargeOrderStatus
742
   */
743
  public RechargeOrderStatus getStatus() {
744
    return this.status;
745
  }
746
 
747
  /**
748
   * 
749
   * @see RechargeOrderStatus
750
   */
751
  public void setStatus(RechargeOrderStatus status) {
752
    this.status = status;
753
  }
754
 
755
  public void unsetStatus() {
756
    this.status = null;
757
  }
758
 
759
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
760
  public boolean isSetStatus() {
761
    return this.status != null;
762
  }
763
 
764
  public void setStatusIsSet(boolean value) {
765
    if (!value) {
766
      this.status = null;
767
    }
768
  }
769
 
770
  public String getInvoiceNumber() {
771
    return this.invoiceNumber;
772
  }
773
 
774
  public void setInvoiceNumber(String invoiceNumber) {
775
    this.invoiceNumber = invoiceNumber;
776
  }
777
 
778
  public void unsetInvoiceNumber() {
779
    this.invoiceNumber = null;
780
  }
781
 
782
  /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
783
  public boolean isSetInvoiceNumber() {
784
    return this.invoiceNumber != null;
785
  }
786
 
787
  public void setInvoiceNumberIsSet(boolean value) {
788
    if (!value) {
789
      this.invoiceNumber = null;
790
    }
791
  }
792
 
793
  public long getCircleId() {
794
    return this.circleId;
795
  }
796
 
797
  public void setCircleId(long circleId) {
798
    this.circleId = circleId;
799
    setCircleIdIsSet(true);
800
  }
801
 
802
  public void unsetCircleId() {
803
    __isset_bit_vector.clear(__CIRCLEID_ISSET_ID);
804
  }
805
 
806
  /** Returns true if field circleId is set (has been assigned a value) and false otherwise */
807
  public boolean isSetCircleId() {
808
    return __isset_bit_vector.get(__CIRCLEID_ISSET_ID);
809
  }
810
 
811
  public void setCircleIdIsSet(boolean value) {
812
    __isset_bit_vector.set(__CIRCLEID_ISSET_ID, value);
813
  }
814
 
815
  public long getOperatorId() {
816
    return this.operatorId;
817
  }
818
 
819
  public void setOperatorId(long operatorId) {
820
    this.operatorId = operatorId;
821
    setOperatorIdIsSet(true);
822
  }
823
 
824
  public void unsetOperatorId() {
825
    __isset_bit_vector.clear(__OPERATORID_ISSET_ID);
826
  }
827
 
828
  /** Returns true if field operatorId is set (has been assigned a value) and false otherwise */
829
  public boolean isSetOperatorId() {
830
    return __isset_bit_vector.get(__OPERATORID_ISSET_ID);
831
  }
832
 
833
  public void setOperatorIdIsSet(boolean value) {
834
    __isset_bit_vector.set(__OPERATORID_ISSET_ID, value);
835
  }
836
 
837
  public String getPlan() {
838
    return this.plan;
839
  }
840
 
841
  public void setPlan(String plan) {
842
    this.plan = plan;
843
  }
844
 
845
  public void unsetPlan() {
846
    this.plan = null;
847
  }
848
 
849
  /** Returns true if field plan is set (has been assigned a value) and false otherwise */
850
  public boolean isSetPlan() {
851
    return this.plan != null;
852
  }
853
 
854
  public void setPlanIsSet(boolean value) {
855
    if (!value) {
856
      this.plan = null;
857
    }
858
  }
859
 
860
  public String getIpAddress() {
861
    return this.ipAddress;
862
  }
863
 
864
  public void setIpAddress(String ipAddress) {
865
    this.ipAddress = ipAddress;
866
  }
867
 
868
  public void unsetIpAddress() {
869
    this.ipAddress = null;
870
  }
871
 
872
  /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
873
  public boolean isSetIpAddress() {
874
    return this.ipAddress != null;
875
  }
876
 
877
  public void setIpAddressIsSet(boolean value) {
878
    if (!value) {
879
      this.ipAddress = null;
880
    }
881
  }
882
 
883
  public String getName() {
884
    return this.name;
885
  }
886
 
887
  public void setName(String name) {
888
    this.name = name;
889
  }
890
 
891
  public void unsetName() {
892
    this.name = null;
893
  }
894
 
895
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
896
  public boolean isSetName() {
897
    return this.name != null;
898
  }
899
 
900
  public void setNameIsSet(boolean value) {
901
    if (!value) {
902
      this.name = null;
903
    }
904
  }
905
 
906
  public String getCafNum() {
907
    return this.cafNum;
908
  }
909
 
910
  public void setCafNum(String cafNum) {
911
    this.cafNum = cafNum;
912
  }
913
 
914
  public void unsetCafNum() {
915
    this.cafNum = null;
916
  }
917
 
918
  /** Returns true if field cafNum is set (has been assigned a value) and false otherwise */
919
  public boolean isSetCafNum() {
920
    return this.cafNum != null;
921
  }
922
 
923
  public void setCafNumIsSet(boolean value) {
924
    if (!value) {
925
      this.cafNum = null;
926
    }
927
  }
928
 
929
  public String getSimNum() {
930
    return this.simNum;
931
  }
932
 
933
  public void setSimNum(String simNum) {
934
    this.simNum = simNum;
935
  }
936
 
937
  public void unsetSimNum() {
938
    this.simNum = null;
939
  }
940
 
941
  /** Returns true if field simNum is set (has been assigned a value) and false otherwise */
942
  public boolean isSetSimNum() {
943
    return this.simNum != null;
944
  }
945
 
946
  public void setSimNumIsSet(boolean value) {
947
    if (!value) {
948
      this.simNum = null;
949
    }
950
  }
951
 
7080 anupam.sin 952
  public String getAlternateNumber() {
953
    return this.alternateNumber;
954
  }
955
 
956
  public void setAlternateNumber(String alternateNumber) {
957
    this.alternateNumber = alternateNumber;
958
  }
959
 
960
  public void unsetAlternateNumber() {
961
    this.alternateNumber = null;
962
  }
963
 
964
  /** Returns true if field alternateNumber is set (has been assigned a value) and false otherwise */
965
  public boolean isSetAlternateNumber() {
966
    return this.alternateNumber != null;
967
  }
968
 
969
  public void setAlternateNumberIsSet(boolean value) {
970
    if (!value) {
971
      this.alternateNumber = null;
972
    }
973
  }
974
 
7096 anupam.sin 975
  public String getDescription() {
976
    return this.description;
977
  }
978
 
979
  public void setDescription(String description) {
980
    this.description = description;
981
  }
982
 
983
  public void unsetDescription() {
984
    this.description = null;
985
  }
986
 
987
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
988
  public boolean isSetDescription() {
989
    return this.description != null;
990
  }
991
 
992
  public void setDescriptionIsSet(boolean value) {
993
    if (!value) {
994
      this.description = null;
995
    }
996
  }
997
 
7169 anupam.sin 998
  public long getResponseTime() {
999
    return this.responseTime;
1000
  }
1001
 
1002
  public void setResponseTime(long responseTime) {
1003
    this.responseTime = responseTime;
1004
    setResponseTimeIsSet(true);
1005
  }
1006
 
1007
  public void unsetResponseTime() {
1008
    __isset_bit_vector.clear(__RESPONSETIME_ISSET_ID);
1009
  }
1010
 
1011
  /** Returns true if field responseTime is set (has been assigned a value) and false otherwise */
1012
  public boolean isSetResponseTime() {
1013
    return __isset_bit_vector.get(__RESPONSETIME_ISSET_ID);
1014
  }
1015
 
1016
  public void setResponseTimeIsSet(boolean value) {
1017
    __isset_bit_vector.set(__RESPONSETIME_ISSET_ID, value);
1018
  }
1019
 
7370 anupam.sin 1020
  public String getSpiceTID() {
1021
    return this.spiceTID;
1022
  }
1023
 
1024
  public void setSpiceTID(String spiceTID) {
1025
    this.spiceTID = spiceTID;
1026
  }
1027
 
1028
  public void unsetSpiceTID() {
1029
    this.spiceTID = null;
1030
  }
1031
 
1032
  /** Returns true if field spiceTID is set (has been assigned a value) and false otherwise */
1033
  public boolean isSetSpiceTID() {
1034
    return this.spiceTID != null;
1035
  }
1036
 
1037
  public void setSpiceTIDIsSet(boolean value) {
1038
    if (!value) {
1039
      this.spiceTID = null;
1040
    }
1041
  }
1042
 
1043
  public String getAggTID() {
1044
    return this.aggTID;
1045
  }
1046
 
1047
  public void setAggTID(String aggTID) {
1048
    this.aggTID = aggTID;
1049
  }
1050
 
1051
  public void unsetAggTID() {
1052
    this.aggTID = null;
1053
  }
1054
 
1055
  /** Returns true if field aggTID is set (has been assigned a value) and false otherwise */
1056
  public boolean isSetAggTID() {
1057
    return this.aggTID != null;
1058
  }
1059
 
1060
  public void setAggTIDIsSet(boolean value) {
1061
    if (!value) {
1062
      this.aggTID = null;
1063
    }
1064
  }
1065
 
1066
  public String getProviderTID() {
1067
    return this.providerTID;
1068
  }
1069
 
1070
  public void setProviderTID(String providerTID) {
1071
    this.providerTID = providerTID;
1072
  }
1073
 
1074
  public void unsetProviderTID() {
1075
    this.providerTID = null;
1076
  }
1077
 
1078
  /** Returns true if field providerTID is set (has been assigned a value) and false otherwise */
1079
  public boolean isSetProviderTID() {
1080
    return this.providerTID != null;
1081
  }
1082
 
1083
  public void setProviderTIDIsSet(boolean value) {
1084
    if (!value) {
1085
      this.providerTID = null;
1086
    }
1087
  }
1088
 
7073 anupam.sin 1089
  public void setFieldValue(_Fields field, Object value) {
1090
    switch (field) {
1091
    case ID:
1092
      if (value == null) {
1093
        unsetId();
1094
      } else {
1095
        setId((Long)value);
1096
      }
1097
      break;
1098
 
1099
    case STORE_ID:
1100
      if (value == null) {
1101
        unsetStoreId();
1102
      } else {
1103
        setStoreId((Long)value);
1104
      }
1105
      break;
1106
 
1107
    case AMOUNT:
1108
      if (value == null) {
1109
        unsetAmount();
1110
      } else {
1111
        setAmount((Double)value);
1112
      }
1113
      break;
1114
 
1115
    case TRANSACTION_TIME:
1116
      if (value == null) {
1117
        unsetTransactionTime();
1118
      } else {
1119
        setTransactionTime((Long)value);
1120
      }
1121
      break;
1122
 
1123
    case DEVICE_NUM:
1124
      if (value == null) {
1125
        unsetDeviceNum();
1126
      } else {
1127
        setDeviceNum((String)value);
1128
      }
1129
      break;
1130
 
1131
    case DEVICE_TYPE:
1132
      if (value == null) {
1133
        unsetDeviceType();
1134
      } else {
1135
        setDeviceType((RechargeType)value);
1136
      }
1137
      break;
1138
 
1139
    case IS_FRC:
1140
      if (value == null) {
1141
        unsetIsFrc();
1142
      } else {
1143
        setIsFrc((Boolean)value);
1144
      }
1145
      break;
1146
 
1147
    case EMAIL:
1148
      if (value == null) {
1149
        unsetEmail();
1150
      } else {
1151
        setEmail((String)value);
1152
      }
1153
      break;
1154
 
1155
    case DISCOUNT:
1156
      if (value == null) {
1157
        unsetDiscount();
1158
      } else {
1159
        setDiscount((Double)value);
1160
      }
1161
      break;
1162
 
1163
    case PAYMENT_AMOUNT:
1164
      if (value == null) {
1165
        unsetPaymentAmount();
1166
      } else {
1167
        setPaymentAmount((Double)value);
1168
      }
1169
      break;
1170
 
1171
    case PAY_METHOD:
1172
      if (value == null) {
1173
        unsetPayMethod();
1174
      } else {
1175
        setPayMethod((PayMethod)value);
1176
      }
1177
      break;
1178
 
1179
    case STATUS:
1180
      if (value == null) {
1181
        unsetStatus();
1182
      } else {
1183
        setStatus((RechargeOrderStatus)value);
1184
      }
1185
      break;
1186
 
1187
    case INVOICE_NUMBER:
1188
      if (value == null) {
1189
        unsetInvoiceNumber();
1190
      } else {
1191
        setInvoiceNumber((String)value);
1192
      }
1193
      break;
1194
 
1195
    case CIRCLE_ID:
1196
      if (value == null) {
1197
        unsetCircleId();
1198
      } else {
1199
        setCircleId((Long)value);
1200
      }
1201
      break;
1202
 
1203
    case OPERATOR_ID:
1204
      if (value == null) {
1205
        unsetOperatorId();
1206
      } else {
1207
        setOperatorId((Long)value);
1208
      }
1209
      break;
1210
 
1211
    case PLAN:
1212
      if (value == null) {
1213
        unsetPlan();
1214
      } else {
1215
        setPlan((String)value);
1216
      }
1217
      break;
1218
 
1219
    case IP_ADDRESS:
1220
      if (value == null) {
1221
        unsetIpAddress();
1222
      } else {
1223
        setIpAddress((String)value);
1224
      }
1225
      break;
1226
 
1227
    case NAME:
1228
      if (value == null) {
1229
        unsetName();
1230
      } else {
1231
        setName((String)value);
1232
      }
1233
      break;
1234
 
1235
    case CAF_NUM:
1236
      if (value == null) {
1237
        unsetCafNum();
1238
      } else {
1239
        setCafNum((String)value);
1240
      }
1241
      break;
1242
 
1243
    case SIM_NUM:
1244
      if (value == null) {
1245
        unsetSimNum();
1246
      } else {
1247
        setSimNum((String)value);
1248
      }
1249
      break;
1250
 
7080 anupam.sin 1251
    case ALTERNATE_NUMBER:
1252
      if (value == null) {
1253
        unsetAlternateNumber();
1254
      } else {
1255
        setAlternateNumber((String)value);
1256
      }
1257
      break;
1258
 
7096 anupam.sin 1259
    case DESCRIPTION:
1260
      if (value == null) {
1261
        unsetDescription();
1262
      } else {
1263
        setDescription((String)value);
1264
      }
1265
      break;
1266
 
7169 anupam.sin 1267
    case RESPONSE_TIME:
1268
      if (value == null) {
1269
        unsetResponseTime();
1270
      } else {
1271
        setResponseTime((Long)value);
1272
      }
1273
      break;
1274
 
7370 anupam.sin 1275
    case SPICE_TID:
1276
      if (value == null) {
1277
        unsetSpiceTID();
1278
      } else {
1279
        setSpiceTID((String)value);
1280
      }
1281
      break;
1282
 
1283
    case AGG_TID:
1284
      if (value == null) {
1285
        unsetAggTID();
1286
      } else {
1287
        setAggTID((String)value);
1288
      }
1289
      break;
1290
 
1291
    case PROVIDER_TID:
1292
      if (value == null) {
1293
        unsetProviderTID();
1294
      } else {
1295
        setProviderTID((String)value);
1296
      }
1297
      break;
1298
 
7073 anupam.sin 1299
    }
1300
  }
1301
 
1302
  public Object getFieldValue(_Fields field) {
1303
    switch (field) {
1304
    case ID:
1305
      return Long.valueOf(getId());
1306
 
1307
    case STORE_ID:
1308
      return Long.valueOf(getStoreId());
1309
 
1310
    case AMOUNT:
1311
      return Double.valueOf(getAmount());
1312
 
1313
    case TRANSACTION_TIME:
1314
      return Long.valueOf(getTransactionTime());
1315
 
1316
    case DEVICE_NUM:
1317
      return getDeviceNum();
1318
 
1319
    case DEVICE_TYPE:
1320
      return getDeviceType();
1321
 
1322
    case IS_FRC:
1323
      return Boolean.valueOf(isIsFrc());
1324
 
1325
    case EMAIL:
1326
      return getEmail();
1327
 
1328
    case DISCOUNT:
1329
      return Double.valueOf(getDiscount());
1330
 
1331
    case PAYMENT_AMOUNT:
1332
      return Double.valueOf(getPaymentAmount());
1333
 
1334
    case PAY_METHOD:
1335
      return getPayMethod();
1336
 
1337
    case STATUS:
1338
      return getStatus();
1339
 
1340
    case INVOICE_NUMBER:
1341
      return getInvoiceNumber();
1342
 
1343
    case CIRCLE_ID:
1344
      return Long.valueOf(getCircleId());
1345
 
1346
    case OPERATOR_ID:
1347
      return Long.valueOf(getOperatorId());
1348
 
1349
    case PLAN:
1350
      return getPlan();
1351
 
1352
    case IP_ADDRESS:
1353
      return getIpAddress();
1354
 
1355
    case NAME:
1356
      return getName();
1357
 
1358
    case CAF_NUM:
1359
      return getCafNum();
1360
 
1361
    case SIM_NUM:
1362
      return getSimNum();
1363
 
7080 anupam.sin 1364
    case ALTERNATE_NUMBER:
1365
      return getAlternateNumber();
1366
 
7096 anupam.sin 1367
    case DESCRIPTION:
1368
      return getDescription();
1369
 
7169 anupam.sin 1370
    case RESPONSE_TIME:
1371
      return Long.valueOf(getResponseTime());
1372
 
7370 anupam.sin 1373
    case SPICE_TID:
1374
      return getSpiceTID();
1375
 
1376
    case AGG_TID:
1377
      return getAggTID();
1378
 
1379
    case PROVIDER_TID:
1380
      return getProviderTID();
1381
 
7073 anupam.sin 1382
    }
1383
    throw new IllegalStateException();
1384
  }
1385
 
1386
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1387
  public boolean isSet(_Fields field) {
1388
    if (field == null) {
1389
      throw new IllegalArgumentException();
1390
    }
1391
 
1392
    switch (field) {
1393
    case ID:
1394
      return isSetId();
1395
    case STORE_ID:
1396
      return isSetStoreId();
1397
    case AMOUNT:
1398
      return isSetAmount();
1399
    case TRANSACTION_TIME:
1400
      return isSetTransactionTime();
1401
    case DEVICE_NUM:
1402
      return isSetDeviceNum();
1403
    case DEVICE_TYPE:
1404
      return isSetDeviceType();
1405
    case IS_FRC:
1406
      return isSetIsFrc();
1407
    case EMAIL:
1408
      return isSetEmail();
1409
    case DISCOUNT:
1410
      return isSetDiscount();
1411
    case PAYMENT_AMOUNT:
1412
      return isSetPaymentAmount();
1413
    case PAY_METHOD:
1414
      return isSetPayMethod();
1415
    case STATUS:
1416
      return isSetStatus();
1417
    case INVOICE_NUMBER:
1418
      return isSetInvoiceNumber();
1419
    case CIRCLE_ID:
1420
      return isSetCircleId();
1421
    case OPERATOR_ID:
1422
      return isSetOperatorId();
1423
    case PLAN:
1424
      return isSetPlan();
1425
    case IP_ADDRESS:
1426
      return isSetIpAddress();
1427
    case NAME:
1428
      return isSetName();
1429
    case CAF_NUM:
1430
      return isSetCafNum();
1431
    case SIM_NUM:
1432
      return isSetSimNum();
7080 anupam.sin 1433
    case ALTERNATE_NUMBER:
1434
      return isSetAlternateNumber();
7096 anupam.sin 1435
    case DESCRIPTION:
1436
      return isSetDescription();
7169 anupam.sin 1437
    case RESPONSE_TIME:
1438
      return isSetResponseTime();
7370 anupam.sin 1439
    case SPICE_TID:
1440
      return isSetSpiceTID();
1441
    case AGG_TID:
1442
      return isSetAggTID();
1443
    case PROVIDER_TID:
1444
      return isSetProviderTID();
7073 anupam.sin 1445
    }
1446
    throw new IllegalStateException();
1447
  }
1448
 
1449
  @Override
1450
  public boolean equals(Object that) {
1451
    if (that == null)
1452
      return false;
1453
    if (that instanceof RechargeTransaction)
1454
      return this.equals((RechargeTransaction)that);
1455
    return false;
1456
  }
1457
 
1458
  public boolean equals(RechargeTransaction that) {
1459
    if (that == null)
1460
      return false;
1461
 
1462
    boolean this_present_id = true;
1463
    boolean that_present_id = true;
1464
    if (this_present_id || that_present_id) {
1465
      if (!(this_present_id && that_present_id))
1466
        return false;
1467
      if (this.id != that.id)
1468
        return false;
1469
    }
1470
 
1471
    boolean this_present_storeId = true;
1472
    boolean that_present_storeId = true;
1473
    if (this_present_storeId || that_present_storeId) {
1474
      if (!(this_present_storeId && that_present_storeId))
1475
        return false;
1476
      if (this.storeId != that.storeId)
1477
        return false;
1478
    }
1479
 
1480
    boolean this_present_amount = true;
1481
    boolean that_present_amount = true;
1482
    if (this_present_amount || that_present_amount) {
1483
      if (!(this_present_amount && that_present_amount))
1484
        return false;
1485
      if (this.amount != that.amount)
1486
        return false;
1487
    }
1488
 
1489
    boolean this_present_transactionTime = true;
1490
    boolean that_present_transactionTime = true;
1491
    if (this_present_transactionTime || that_present_transactionTime) {
1492
      if (!(this_present_transactionTime && that_present_transactionTime))
1493
        return false;
1494
      if (this.transactionTime != that.transactionTime)
1495
        return false;
1496
    }
1497
 
1498
    boolean this_present_deviceNum = true && this.isSetDeviceNum();
1499
    boolean that_present_deviceNum = true && that.isSetDeviceNum();
1500
    if (this_present_deviceNum || that_present_deviceNum) {
1501
      if (!(this_present_deviceNum && that_present_deviceNum))
1502
        return false;
1503
      if (!this.deviceNum.equals(that.deviceNum))
1504
        return false;
1505
    }
1506
 
1507
    boolean this_present_deviceType = true && this.isSetDeviceType();
1508
    boolean that_present_deviceType = true && that.isSetDeviceType();
1509
    if (this_present_deviceType || that_present_deviceType) {
1510
      if (!(this_present_deviceType && that_present_deviceType))
1511
        return false;
1512
      if (!this.deviceType.equals(that.deviceType))
1513
        return false;
1514
    }
1515
 
1516
    boolean this_present_isFrc = true;
1517
    boolean that_present_isFrc = true;
1518
    if (this_present_isFrc || that_present_isFrc) {
1519
      if (!(this_present_isFrc && that_present_isFrc))
1520
        return false;
1521
      if (this.isFrc != that.isFrc)
1522
        return false;
1523
    }
1524
 
1525
    boolean this_present_email = true && this.isSetEmail();
1526
    boolean that_present_email = true && that.isSetEmail();
1527
    if (this_present_email || that_present_email) {
1528
      if (!(this_present_email && that_present_email))
1529
        return false;
1530
      if (!this.email.equals(that.email))
1531
        return false;
1532
    }
1533
 
1534
    boolean this_present_discount = true;
1535
    boolean that_present_discount = true;
1536
    if (this_present_discount || that_present_discount) {
1537
      if (!(this_present_discount && that_present_discount))
1538
        return false;
1539
      if (this.discount != that.discount)
1540
        return false;
1541
    }
1542
 
1543
    boolean this_present_paymentAmount = true;
1544
    boolean that_present_paymentAmount = true;
1545
    if (this_present_paymentAmount || that_present_paymentAmount) {
1546
      if (!(this_present_paymentAmount && that_present_paymentAmount))
1547
        return false;
1548
      if (this.paymentAmount != that.paymentAmount)
1549
        return false;
1550
    }
1551
 
1552
    boolean this_present_payMethod = true && this.isSetPayMethod();
1553
    boolean that_present_payMethod = true && that.isSetPayMethod();
1554
    if (this_present_payMethod || that_present_payMethod) {
1555
      if (!(this_present_payMethod && that_present_payMethod))
1556
        return false;
1557
      if (!this.payMethod.equals(that.payMethod))
1558
        return false;
1559
    }
1560
 
1561
    boolean this_present_status = true && this.isSetStatus();
1562
    boolean that_present_status = true && that.isSetStatus();
1563
    if (this_present_status || that_present_status) {
1564
      if (!(this_present_status && that_present_status))
1565
        return false;
1566
      if (!this.status.equals(that.status))
1567
        return false;
1568
    }
1569
 
1570
    boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
1571
    boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
1572
    if (this_present_invoiceNumber || that_present_invoiceNumber) {
1573
      if (!(this_present_invoiceNumber && that_present_invoiceNumber))
1574
        return false;
1575
      if (!this.invoiceNumber.equals(that.invoiceNumber))
1576
        return false;
1577
    }
1578
 
1579
    boolean this_present_circleId = true;
1580
    boolean that_present_circleId = true;
1581
    if (this_present_circleId || that_present_circleId) {
1582
      if (!(this_present_circleId && that_present_circleId))
1583
        return false;
1584
      if (this.circleId != that.circleId)
1585
        return false;
1586
    }
1587
 
1588
    boolean this_present_operatorId = true;
1589
    boolean that_present_operatorId = true;
1590
    if (this_present_operatorId || that_present_operatorId) {
1591
      if (!(this_present_operatorId && that_present_operatorId))
1592
        return false;
1593
      if (this.operatorId != that.operatorId)
1594
        return false;
1595
    }
1596
 
1597
    boolean this_present_plan = true && this.isSetPlan();
1598
    boolean that_present_plan = true && that.isSetPlan();
1599
    if (this_present_plan || that_present_plan) {
1600
      if (!(this_present_plan && that_present_plan))
1601
        return false;
1602
      if (!this.plan.equals(that.plan))
1603
        return false;
1604
    }
1605
 
1606
    boolean this_present_ipAddress = true && this.isSetIpAddress();
1607
    boolean that_present_ipAddress = true && that.isSetIpAddress();
1608
    if (this_present_ipAddress || that_present_ipAddress) {
1609
      if (!(this_present_ipAddress && that_present_ipAddress))
1610
        return false;
1611
      if (!this.ipAddress.equals(that.ipAddress))
1612
        return false;
1613
    }
1614
 
1615
    boolean this_present_name = true && this.isSetName();
1616
    boolean that_present_name = true && that.isSetName();
1617
    if (this_present_name || that_present_name) {
1618
      if (!(this_present_name && that_present_name))
1619
        return false;
1620
      if (!this.name.equals(that.name))
1621
        return false;
1622
    }
1623
 
1624
    boolean this_present_cafNum = true && this.isSetCafNum();
1625
    boolean that_present_cafNum = true && that.isSetCafNum();
1626
    if (this_present_cafNum || that_present_cafNum) {
1627
      if (!(this_present_cafNum && that_present_cafNum))
1628
        return false;
1629
      if (!this.cafNum.equals(that.cafNum))
1630
        return false;
1631
    }
1632
 
1633
    boolean this_present_simNum = true && this.isSetSimNum();
1634
    boolean that_present_simNum = true && that.isSetSimNum();
1635
    if (this_present_simNum || that_present_simNum) {
1636
      if (!(this_present_simNum && that_present_simNum))
1637
        return false;
1638
      if (!this.simNum.equals(that.simNum))
1639
        return false;
1640
    }
1641
 
7080 anupam.sin 1642
    boolean this_present_alternateNumber = true && this.isSetAlternateNumber();
1643
    boolean that_present_alternateNumber = true && that.isSetAlternateNumber();
1644
    if (this_present_alternateNumber || that_present_alternateNumber) {
1645
      if (!(this_present_alternateNumber && that_present_alternateNumber))
1646
        return false;
1647
      if (!this.alternateNumber.equals(that.alternateNumber))
1648
        return false;
1649
    }
1650
 
7096 anupam.sin 1651
    boolean this_present_description = true && this.isSetDescription();
1652
    boolean that_present_description = true && that.isSetDescription();
1653
    if (this_present_description || that_present_description) {
1654
      if (!(this_present_description && that_present_description))
1655
        return false;
1656
      if (!this.description.equals(that.description))
1657
        return false;
1658
    }
1659
 
7169 anupam.sin 1660
    boolean this_present_responseTime = true;
1661
    boolean that_present_responseTime = true;
1662
    if (this_present_responseTime || that_present_responseTime) {
1663
      if (!(this_present_responseTime && that_present_responseTime))
1664
        return false;
1665
      if (this.responseTime != that.responseTime)
1666
        return false;
1667
    }
1668
 
7370 anupam.sin 1669
    boolean this_present_spiceTID = true && this.isSetSpiceTID();
1670
    boolean that_present_spiceTID = true && that.isSetSpiceTID();
1671
    if (this_present_spiceTID || that_present_spiceTID) {
1672
      if (!(this_present_spiceTID && that_present_spiceTID))
1673
        return false;
1674
      if (!this.spiceTID.equals(that.spiceTID))
1675
        return false;
1676
    }
1677
 
1678
    boolean this_present_aggTID = true && this.isSetAggTID();
1679
    boolean that_present_aggTID = true && that.isSetAggTID();
1680
    if (this_present_aggTID || that_present_aggTID) {
1681
      if (!(this_present_aggTID && that_present_aggTID))
1682
        return false;
1683
      if (!this.aggTID.equals(that.aggTID))
1684
        return false;
1685
    }
1686
 
1687
    boolean this_present_providerTID = true && this.isSetProviderTID();
1688
    boolean that_present_providerTID = true && that.isSetProviderTID();
1689
    if (this_present_providerTID || that_present_providerTID) {
1690
      if (!(this_present_providerTID && that_present_providerTID))
1691
        return false;
1692
      if (!this.providerTID.equals(that.providerTID))
1693
        return false;
1694
    }
1695
 
7073 anupam.sin 1696
    return true;
1697
  }
1698
 
1699
  @Override
1700
  public int hashCode() {
1701
    return 0;
1702
  }
1703
 
1704
  public int compareTo(RechargeTransaction other) {
1705
    if (!getClass().equals(other.getClass())) {
1706
      return getClass().getName().compareTo(other.getClass().getName());
1707
    }
1708
 
1709
    int lastComparison = 0;
1710
    RechargeTransaction typedOther = (RechargeTransaction)other;
1711
 
1712
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1713
    if (lastComparison != 0) {
1714
      return lastComparison;
1715
    }
1716
    if (isSetId()) {
1717
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1718
      if (lastComparison != 0) {
1719
        return lastComparison;
1720
      }
1721
    }
1722
    lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
1723
    if (lastComparison != 0) {
1724
      return lastComparison;
1725
    }
1726
    if (isSetStoreId()) {
1727
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
1728
      if (lastComparison != 0) {
1729
        return lastComparison;
1730
      }
1731
    }
1732
    lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
1733
    if (lastComparison != 0) {
1734
      return lastComparison;
1735
    }
1736
    if (isSetAmount()) {
1737
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
1738
      if (lastComparison != 0) {
1739
        return lastComparison;
1740
      }
1741
    }
1742
    lastComparison = Boolean.valueOf(isSetTransactionTime()).compareTo(typedOther.isSetTransactionTime());
1743
    if (lastComparison != 0) {
1744
      return lastComparison;
1745
    }
1746
    if (isSetTransactionTime()) {
1747
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionTime, typedOther.transactionTime);
1748
      if (lastComparison != 0) {
1749
        return lastComparison;
1750
      }
1751
    }
1752
    lastComparison = Boolean.valueOf(isSetDeviceNum()).compareTo(typedOther.isSetDeviceNum());
1753
    if (lastComparison != 0) {
1754
      return lastComparison;
1755
    }
1756
    if (isSetDeviceNum()) {
1757
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceNum, typedOther.deviceNum);
1758
      if (lastComparison != 0) {
1759
        return lastComparison;
1760
      }
1761
    }
1762
    lastComparison = Boolean.valueOf(isSetDeviceType()).compareTo(typedOther.isSetDeviceType());
1763
    if (lastComparison != 0) {
1764
      return lastComparison;
1765
    }
1766
    if (isSetDeviceType()) {
1767
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceType, typedOther.deviceType);
1768
      if (lastComparison != 0) {
1769
        return lastComparison;
1770
      }
1771
    }
1772
    lastComparison = Boolean.valueOf(isSetIsFrc()).compareTo(typedOther.isSetIsFrc());
1773
    if (lastComparison != 0) {
1774
      return lastComparison;
1775
    }
1776
    if (isSetIsFrc()) {
1777
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isFrc, typedOther.isFrc);
1778
      if (lastComparison != 0) {
1779
        return lastComparison;
1780
      }
1781
    }
1782
    lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
1783
    if (lastComparison != 0) {
1784
      return lastComparison;
1785
    }
1786
    if (isSetEmail()) {
1787
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
1788
      if (lastComparison != 0) {
1789
        return lastComparison;
1790
      }
1791
    }
1792
    lastComparison = Boolean.valueOf(isSetDiscount()).compareTo(typedOther.isSetDiscount());
1793
    if (lastComparison != 0) {
1794
      return lastComparison;
1795
    }
1796
    if (isSetDiscount()) {
1797
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discount, typedOther.discount);
1798
      if (lastComparison != 0) {
1799
        return lastComparison;
1800
      }
1801
    }
1802
    lastComparison = Boolean.valueOf(isSetPaymentAmount()).compareTo(typedOther.isSetPaymentAmount());
1803
    if (lastComparison != 0) {
1804
      return lastComparison;
1805
    }
1806
    if (isSetPaymentAmount()) {
1807
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentAmount, typedOther.paymentAmount);
1808
      if (lastComparison != 0) {
1809
        return lastComparison;
1810
      }
1811
    }
1812
    lastComparison = Boolean.valueOf(isSetPayMethod()).compareTo(typedOther.isSetPayMethod());
1813
    if (lastComparison != 0) {
1814
      return lastComparison;
1815
    }
1816
    if (isSetPayMethod()) {
1817
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.payMethod, typedOther.payMethod);
1818
      if (lastComparison != 0) {
1819
        return lastComparison;
1820
      }
1821
    }
1822
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
1823
    if (lastComparison != 0) {
1824
      return lastComparison;
1825
    }
1826
    if (isSetStatus()) {
1827
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
1828
      if (lastComparison != 0) {
1829
        return lastComparison;
1830
      }
1831
    }
1832
    lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
1833
    if (lastComparison != 0) {
1834
      return lastComparison;
1835
    }
1836
    if (isSetInvoiceNumber()) {
1837
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
1838
      if (lastComparison != 0) {
1839
        return lastComparison;
1840
      }
1841
    }
1842
    lastComparison = Boolean.valueOf(isSetCircleId()).compareTo(typedOther.isSetCircleId());
1843
    if (lastComparison != 0) {
1844
      return lastComparison;
1845
    }
1846
    if (isSetCircleId()) {
1847
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.circleId, typedOther.circleId);
1848
      if (lastComparison != 0) {
1849
        return lastComparison;
1850
      }
1851
    }
1852
    lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId());
1853
    if (lastComparison != 0) {
1854
      return lastComparison;
1855
    }
1856
    if (isSetOperatorId()) {
1857
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId);
1858
      if (lastComparison != 0) {
1859
        return lastComparison;
1860
      }
1861
    }
1862
    lastComparison = Boolean.valueOf(isSetPlan()).compareTo(typedOther.isSetPlan());
1863
    if (lastComparison != 0) {
1864
      return lastComparison;
1865
    }
1866
    if (isSetPlan()) {
1867
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.plan, typedOther.plan);
1868
      if (lastComparison != 0) {
1869
        return lastComparison;
1870
      }
1871
    }
1872
    lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(typedOther.isSetIpAddress());
1873
    if (lastComparison != 0) {
1874
      return lastComparison;
1875
    }
1876
    if (isSetIpAddress()) {
1877
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, typedOther.ipAddress);
1878
      if (lastComparison != 0) {
1879
        return lastComparison;
1880
      }
1881
    }
1882
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1883
    if (lastComparison != 0) {
1884
      return lastComparison;
1885
    }
1886
    if (isSetName()) {
1887
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
1888
      if (lastComparison != 0) {
1889
        return lastComparison;
1890
      }
1891
    }
1892
    lastComparison = Boolean.valueOf(isSetCafNum()).compareTo(typedOther.isSetCafNum());
1893
    if (lastComparison != 0) {
1894
      return lastComparison;
1895
    }
1896
    if (isSetCafNum()) {
1897
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cafNum, typedOther.cafNum);
1898
      if (lastComparison != 0) {
1899
        return lastComparison;
1900
      }
1901
    }
1902
    lastComparison = Boolean.valueOf(isSetSimNum()).compareTo(typedOther.isSetSimNum());
1903
    if (lastComparison != 0) {
1904
      return lastComparison;
1905
    }
1906
    if (isSetSimNum()) {
1907
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.simNum, typedOther.simNum);
1908
      if (lastComparison != 0) {
1909
        return lastComparison;
1910
      }
1911
    }
7080 anupam.sin 1912
    lastComparison = Boolean.valueOf(isSetAlternateNumber()).compareTo(typedOther.isSetAlternateNumber());
1913
    if (lastComparison != 0) {
1914
      return lastComparison;
1915
    }
1916
    if (isSetAlternateNumber()) {
1917
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.alternateNumber, typedOther.alternateNumber);
1918
      if (lastComparison != 0) {
1919
        return lastComparison;
1920
      }
1921
    }
7096 anupam.sin 1922
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
1923
    if (lastComparison != 0) {
1924
      return lastComparison;
1925
    }
1926
    if (isSetDescription()) {
1927
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1928
      if (lastComparison != 0) {
1929
        return lastComparison;
1930
      }
1931
    }
7169 anupam.sin 1932
    lastComparison = Boolean.valueOf(isSetResponseTime()).compareTo(typedOther.isSetResponseTime());
1933
    if (lastComparison != 0) {
1934
      return lastComparison;
1935
    }
1936
    if (isSetResponseTime()) {
1937
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.responseTime, typedOther.responseTime);
1938
      if (lastComparison != 0) {
1939
        return lastComparison;
1940
      }
1941
    }
7370 anupam.sin 1942
    lastComparison = Boolean.valueOf(isSetSpiceTID()).compareTo(typedOther.isSetSpiceTID());
1943
    if (lastComparison != 0) {
1944
      return lastComparison;
1945
    }
1946
    if (isSetSpiceTID()) {
1947
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.spiceTID, typedOther.spiceTID);
1948
      if (lastComparison != 0) {
1949
        return lastComparison;
1950
      }
1951
    }
1952
    lastComparison = Boolean.valueOf(isSetAggTID()).compareTo(typedOther.isSetAggTID());
1953
    if (lastComparison != 0) {
1954
      return lastComparison;
1955
    }
1956
    if (isSetAggTID()) {
1957
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aggTID, typedOther.aggTID);
1958
      if (lastComparison != 0) {
1959
        return lastComparison;
1960
      }
1961
    }
1962
    lastComparison = Boolean.valueOf(isSetProviderTID()).compareTo(typedOther.isSetProviderTID());
1963
    if (lastComparison != 0) {
1964
      return lastComparison;
1965
    }
1966
    if (isSetProviderTID()) {
1967
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerTID, typedOther.providerTID);
1968
      if (lastComparison != 0) {
1969
        return lastComparison;
1970
      }
1971
    }
7073 anupam.sin 1972
    return 0;
1973
  }
1974
 
1975
  public _Fields fieldForId(int fieldId) {
1976
    return _Fields.findByThriftId(fieldId);
1977
  }
1978
 
1979
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1980
    org.apache.thrift.protocol.TField field;
1981
    iprot.readStructBegin();
1982
    while (true)
1983
    {
1984
      field = iprot.readFieldBegin();
1985
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1986
        break;
1987
      }
1988
      switch (field.id) {
1989
        case 1: // ID
1990
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1991
            this.id = iprot.readI64();
1992
            setIdIsSet(true);
1993
          } else { 
1994
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1995
          }
1996
          break;
1997
        case 2: // STORE_ID
1998
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1999
            this.storeId = iprot.readI64();
2000
            setStoreIdIsSet(true);
2001
          } else { 
2002
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2003
          }
2004
          break;
2005
        case 3: // AMOUNT
2006
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2007
            this.amount = iprot.readDouble();
2008
            setAmountIsSet(true);
2009
          } else { 
2010
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2011
          }
2012
          break;
2013
        case 4: // TRANSACTION_TIME
2014
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2015
            this.transactionTime = iprot.readI64();
2016
            setTransactionTimeIsSet(true);
2017
          } else { 
2018
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2019
          }
2020
          break;
2021
        case 5: // DEVICE_NUM
2022
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2023
            this.deviceNum = iprot.readString();
2024
          } else { 
2025
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2026
          }
2027
          break;
2028
        case 6: // DEVICE_TYPE
2029
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2030
            this.deviceType = RechargeType.findByValue(iprot.readI32());
2031
          } else { 
2032
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2033
          }
2034
          break;
2035
        case 7: // IS_FRC
2036
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2037
            this.isFrc = iprot.readBool();
2038
            setIsFrcIsSet(true);
2039
          } else { 
2040
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2041
          }
2042
          break;
2043
        case 8: // EMAIL
2044
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2045
            this.email = iprot.readString();
2046
          } else { 
2047
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2048
          }
2049
          break;
2050
        case 9: // DISCOUNT
2051
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2052
            this.discount = iprot.readDouble();
2053
            setDiscountIsSet(true);
2054
          } else { 
2055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2056
          }
2057
          break;
2058
        case 10: // PAYMENT_AMOUNT
2059
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2060
            this.paymentAmount = iprot.readDouble();
2061
            setPaymentAmountIsSet(true);
2062
          } else { 
2063
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2064
          }
2065
          break;
2066
        case 11: // PAY_METHOD
2067
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2068
            this.payMethod = PayMethod.findByValue(iprot.readI32());
2069
          } else { 
2070
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2071
          }
2072
          break;
2073
        case 12: // STATUS
2074
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2075
            this.status = RechargeOrderStatus.findByValue(iprot.readI32());
2076
          } else { 
2077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2078
          }
2079
          break;
2080
        case 13: // INVOICE_NUMBER
2081
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2082
            this.invoiceNumber = iprot.readString();
2083
          } else { 
2084
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2085
          }
2086
          break;
2087
        case 14: // CIRCLE_ID
2088
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2089
            this.circleId = iprot.readI64();
2090
            setCircleIdIsSet(true);
2091
          } else { 
2092
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2093
          }
2094
          break;
2095
        case 15: // OPERATOR_ID
2096
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2097
            this.operatorId = iprot.readI64();
2098
            setOperatorIdIsSet(true);
2099
          } else { 
2100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2101
          }
2102
          break;
2103
        case 16: // PLAN
2104
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2105
            this.plan = iprot.readString();
2106
          } else { 
2107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2108
          }
2109
          break;
2110
        case 17: // IP_ADDRESS
2111
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2112
            this.ipAddress = iprot.readString();
2113
          } else { 
2114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2115
          }
2116
          break;
2117
        case 18: // NAME
2118
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2119
            this.name = iprot.readString();
2120
          } else { 
2121
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2122
          }
2123
          break;
2124
        case 19: // CAF_NUM
2125
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2126
            this.cafNum = iprot.readString();
2127
          } else { 
2128
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2129
          }
2130
          break;
2131
        case 20: // SIM_NUM
2132
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2133
            this.simNum = iprot.readString();
2134
          } else { 
2135
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2136
          }
2137
          break;
7080 anupam.sin 2138
        case 21: // ALTERNATE_NUMBER
2139
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2140
            this.alternateNumber = iprot.readString();
2141
          } else { 
2142
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2143
          }
2144
          break;
7096 anupam.sin 2145
        case 22: // DESCRIPTION
2146
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2147
            this.description = iprot.readString();
2148
          } else { 
2149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2150
          }
2151
          break;
7169 anupam.sin 2152
        case 23: // RESPONSE_TIME
2153
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2154
            this.responseTime = iprot.readI64();
2155
            setResponseTimeIsSet(true);
2156
          } else { 
2157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2158
          }
2159
          break;
7370 anupam.sin 2160
        case 24: // SPICE_TID
2161
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2162
            this.spiceTID = iprot.readString();
2163
          } else { 
2164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2165
          }
2166
          break;
2167
        case 25: // AGG_TID
2168
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2169
            this.aggTID = iprot.readString();
2170
          } else { 
2171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2172
          }
2173
          break;
2174
        case 26: // PROVIDER_TID
2175
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2176
            this.providerTID = iprot.readString();
2177
          } else { 
2178
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2179
          }
2180
          break;
7073 anupam.sin 2181
        default:
2182
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2183
      }
2184
      iprot.readFieldEnd();
2185
    }
2186
    iprot.readStructEnd();
2187
    validate();
2188
  }
2189
 
2190
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2191
    validate();
2192
 
2193
    oprot.writeStructBegin(STRUCT_DESC);
2194
    oprot.writeFieldBegin(ID_FIELD_DESC);
2195
    oprot.writeI64(this.id);
2196
    oprot.writeFieldEnd();
2197
    oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
2198
    oprot.writeI64(this.storeId);
2199
    oprot.writeFieldEnd();
2200
    oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
2201
    oprot.writeDouble(this.amount);
2202
    oprot.writeFieldEnd();
2203
    oprot.writeFieldBegin(TRANSACTION_TIME_FIELD_DESC);
2204
    oprot.writeI64(this.transactionTime);
2205
    oprot.writeFieldEnd();
2206
    if (this.deviceNum != null) {
2207
      oprot.writeFieldBegin(DEVICE_NUM_FIELD_DESC);
2208
      oprot.writeString(this.deviceNum);
2209
      oprot.writeFieldEnd();
2210
    }
2211
    if (this.deviceType != null) {
2212
      oprot.writeFieldBegin(DEVICE_TYPE_FIELD_DESC);
2213
      oprot.writeI32(this.deviceType.getValue());
2214
      oprot.writeFieldEnd();
2215
    }
2216
    oprot.writeFieldBegin(IS_FRC_FIELD_DESC);
2217
    oprot.writeBool(this.isFrc);
2218
    oprot.writeFieldEnd();
2219
    if (this.email != null) {
2220
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
2221
      oprot.writeString(this.email);
2222
      oprot.writeFieldEnd();
2223
    }
2224
    oprot.writeFieldBegin(DISCOUNT_FIELD_DESC);
2225
    oprot.writeDouble(this.discount);
2226
    oprot.writeFieldEnd();
2227
    oprot.writeFieldBegin(PAYMENT_AMOUNT_FIELD_DESC);
2228
    oprot.writeDouble(this.paymentAmount);
2229
    oprot.writeFieldEnd();
2230
    if (this.payMethod != null) {
2231
      oprot.writeFieldBegin(PAY_METHOD_FIELD_DESC);
2232
      oprot.writeI32(this.payMethod.getValue());
2233
      oprot.writeFieldEnd();
2234
    }
2235
    if (this.status != null) {
2236
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
2237
      oprot.writeI32(this.status.getValue());
2238
      oprot.writeFieldEnd();
2239
    }
2240
    if (this.invoiceNumber != null) {
2241
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
2242
      oprot.writeString(this.invoiceNumber);
2243
      oprot.writeFieldEnd();
2244
    }
2245
    oprot.writeFieldBegin(CIRCLE_ID_FIELD_DESC);
2246
    oprot.writeI64(this.circleId);
2247
    oprot.writeFieldEnd();
2248
    oprot.writeFieldBegin(OPERATOR_ID_FIELD_DESC);
2249
    oprot.writeI64(this.operatorId);
2250
    oprot.writeFieldEnd();
2251
    if (this.plan != null) {
2252
      oprot.writeFieldBegin(PLAN_FIELD_DESC);
2253
      oprot.writeString(this.plan);
2254
      oprot.writeFieldEnd();
2255
    }
2256
    if (this.ipAddress != null) {
2257
      oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
2258
      oprot.writeString(this.ipAddress);
2259
      oprot.writeFieldEnd();
2260
    }
2261
    if (this.name != null) {
2262
      oprot.writeFieldBegin(NAME_FIELD_DESC);
2263
      oprot.writeString(this.name);
2264
      oprot.writeFieldEnd();
2265
    }
2266
    if (this.cafNum != null) {
2267
      oprot.writeFieldBegin(CAF_NUM_FIELD_DESC);
2268
      oprot.writeString(this.cafNum);
2269
      oprot.writeFieldEnd();
2270
    }
2271
    if (this.simNum != null) {
2272
      oprot.writeFieldBegin(SIM_NUM_FIELD_DESC);
2273
      oprot.writeString(this.simNum);
2274
      oprot.writeFieldEnd();
2275
    }
7080 anupam.sin 2276
    if (this.alternateNumber != null) {
2277
      oprot.writeFieldBegin(ALTERNATE_NUMBER_FIELD_DESC);
2278
      oprot.writeString(this.alternateNumber);
2279
      oprot.writeFieldEnd();
2280
    }
7096 anupam.sin 2281
    if (this.description != null) {
2282
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
2283
      oprot.writeString(this.description);
2284
      oprot.writeFieldEnd();
2285
    }
7169 anupam.sin 2286
    oprot.writeFieldBegin(RESPONSE_TIME_FIELD_DESC);
2287
    oprot.writeI64(this.responseTime);
2288
    oprot.writeFieldEnd();
7370 anupam.sin 2289
    if (this.spiceTID != null) {
2290
      oprot.writeFieldBegin(SPICE_TID_FIELD_DESC);
2291
      oprot.writeString(this.spiceTID);
2292
      oprot.writeFieldEnd();
2293
    }
2294
    if (this.aggTID != null) {
2295
      oprot.writeFieldBegin(AGG_TID_FIELD_DESC);
2296
      oprot.writeString(this.aggTID);
2297
      oprot.writeFieldEnd();
2298
    }
2299
    if (this.providerTID != null) {
2300
      oprot.writeFieldBegin(PROVIDER_TID_FIELD_DESC);
2301
      oprot.writeString(this.providerTID);
2302
      oprot.writeFieldEnd();
2303
    }
7073 anupam.sin 2304
    oprot.writeFieldStop();
2305
    oprot.writeStructEnd();
2306
  }
2307
 
2308
  @Override
2309
  public String toString() {
2310
    StringBuilder sb = new StringBuilder("RechargeTransaction(");
2311
    boolean first = true;
2312
 
2313
    sb.append("id:");
2314
    sb.append(this.id);
2315
    first = false;
2316
    if (!first) sb.append(", ");
2317
    sb.append("storeId:");
2318
    sb.append(this.storeId);
2319
    first = false;
2320
    if (!first) sb.append(", ");
2321
    sb.append("amount:");
2322
    sb.append(this.amount);
2323
    first = false;
2324
    if (!first) sb.append(", ");
2325
    sb.append("transactionTime:");
2326
    sb.append(this.transactionTime);
2327
    first = false;
2328
    if (!first) sb.append(", ");
2329
    sb.append("deviceNum:");
2330
    if (this.deviceNum == null) {
2331
      sb.append("null");
2332
    } else {
2333
      sb.append(this.deviceNum);
2334
    }
2335
    first = false;
2336
    if (!first) sb.append(", ");
2337
    sb.append("deviceType:");
2338
    if (this.deviceType == null) {
2339
      sb.append("null");
2340
    } else {
2341
      sb.append(this.deviceType);
2342
    }
2343
    first = false;
2344
    if (!first) sb.append(", ");
2345
    sb.append("isFrc:");
2346
    sb.append(this.isFrc);
2347
    first = false;
2348
    if (!first) sb.append(", ");
2349
    sb.append("email:");
2350
    if (this.email == null) {
2351
      sb.append("null");
2352
    } else {
2353
      sb.append(this.email);
2354
    }
2355
    first = false;
2356
    if (!first) sb.append(", ");
2357
    sb.append("discount:");
2358
    sb.append(this.discount);
2359
    first = false;
2360
    if (!first) sb.append(", ");
2361
    sb.append("paymentAmount:");
2362
    sb.append(this.paymentAmount);
2363
    first = false;
2364
    if (!first) sb.append(", ");
2365
    sb.append("payMethod:");
2366
    if (this.payMethod == null) {
2367
      sb.append("null");
2368
    } else {
2369
      sb.append(this.payMethod);
2370
    }
2371
    first = false;
2372
    if (!first) sb.append(", ");
2373
    sb.append("status:");
2374
    if (this.status == null) {
2375
      sb.append("null");
2376
    } else {
2377
      sb.append(this.status);
2378
    }
2379
    first = false;
2380
    if (!first) sb.append(", ");
2381
    sb.append("invoiceNumber:");
2382
    if (this.invoiceNumber == null) {
2383
      sb.append("null");
2384
    } else {
2385
      sb.append(this.invoiceNumber);
2386
    }
2387
    first = false;
2388
    if (!first) sb.append(", ");
2389
    sb.append("circleId:");
2390
    sb.append(this.circleId);
2391
    first = false;
2392
    if (!first) sb.append(", ");
2393
    sb.append("operatorId:");
2394
    sb.append(this.operatorId);
2395
    first = false;
2396
    if (!first) sb.append(", ");
2397
    sb.append("plan:");
2398
    if (this.plan == null) {
2399
      sb.append("null");
2400
    } else {
2401
      sb.append(this.plan);
2402
    }
2403
    first = false;
2404
    if (!first) sb.append(", ");
2405
    sb.append("ipAddress:");
2406
    if (this.ipAddress == null) {
2407
      sb.append("null");
2408
    } else {
2409
      sb.append(this.ipAddress);
2410
    }
2411
    first = false;
2412
    if (!first) sb.append(", ");
2413
    sb.append("name:");
2414
    if (this.name == null) {
2415
      sb.append("null");
2416
    } else {
2417
      sb.append(this.name);
2418
    }
2419
    first = false;
2420
    if (!first) sb.append(", ");
2421
    sb.append("cafNum:");
2422
    if (this.cafNum == null) {
2423
      sb.append("null");
2424
    } else {
2425
      sb.append(this.cafNum);
2426
    }
2427
    first = false;
2428
    if (!first) sb.append(", ");
2429
    sb.append("simNum:");
2430
    if (this.simNum == null) {
2431
      sb.append("null");
2432
    } else {
2433
      sb.append(this.simNum);
2434
    }
2435
    first = false;
7080 anupam.sin 2436
    if (!first) sb.append(", ");
2437
    sb.append("alternateNumber:");
2438
    if (this.alternateNumber == null) {
2439
      sb.append("null");
2440
    } else {
2441
      sb.append(this.alternateNumber);
2442
    }
2443
    first = false;
7096 anupam.sin 2444
    if (!first) sb.append(", ");
2445
    sb.append("description:");
2446
    if (this.description == null) {
2447
      sb.append("null");
2448
    } else {
2449
      sb.append(this.description);
2450
    }
2451
    first = false;
7169 anupam.sin 2452
    if (!first) sb.append(", ");
2453
    sb.append("responseTime:");
2454
    sb.append(this.responseTime);
2455
    first = false;
7370 anupam.sin 2456
    if (!first) sb.append(", ");
2457
    sb.append("spiceTID:");
2458
    if (this.spiceTID == null) {
2459
      sb.append("null");
2460
    } else {
2461
      sb.append(this.spiceTID);
2462
    }
2463
    first = false;
2464
    if (!first) sb.append(", ");
2465
    sb.append("aggTID:");
2466
    if (this.aggTID == null) {
2467
      sb.append("null");
2468
    } else {
2469
      sb.append(this.aggTID);
2470
    }
2471
    first = false;
2472
    if (!first) sb.append(", ");
2473
    sb.append("providerTID:");
2474
    if (this.providerTID == null) {
2475
      sb.append("null");
2476
    } else {
2477
      sb.append(this.providerTID);
2478
    }
2479
    first = false;
7073 anupam.sin 2480
    sb.append(")");
2481
    return sb.toString();
2482
  }
2483
 
2484
  public void validate() throws org.apache.thrift.TException {
2485
    // check for required fields
2486
  }
2487
 
2488
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2489
    try {
2490
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2491
    } catch (org.apache.thrift.TException te) {
2492
      throw new java.io.IOException(te);
2493
    }
2494
  }
2495
 
2496
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2497
    try {
2498
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2499
      __isset_bit_vector = new BitSet(1);
2500
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2501
    } catch (org.apache.thrift.TException te) {
2502
      throw new java.io.IOException(te);
2503
    }
2504
  }
2505
 
2506
}
2507