Subversion Repositories SmartDukaan

Rev

Rev 2816 | Rev 3858 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
68 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
68 ashish 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;
3430 rajveer 18
import java.nio.ByteBuffer;
68 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
3430 rajveer 23
public class Transaction implements org.apache.thrift.TBase<Transaction, Transaction._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Transaction");
68 ashish 25
 
3430 rajveer 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 ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("orders", org.apache.thrift.protocol.TType.LIST, (short)2);
28
  private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField TRANSACTION_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionStatus", org.apache.thrift.protocol.TType.I32, (short)4);
30
  private static final org.apache.thrift.protocol.TField STATUS_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("statusDescription", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField SHOPPING_CARTID_FIELD_DESC = new org.apache.thrift.protocol.TField("shoppingCartid", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_id", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("coupon_code", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField SESSION_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionStartTime", org.apache.thrift.protocol.TType.I64, (short)10);
68 ashish 36
 
3430 rajveer 37
  private long id; // required
38
  private List<Order> orders; // required
39
  private long createdOn; // required
40
  private TransactionStatus transactionStatus; // required
41
  private String statusDescription; // required
42
  private long shoppingCartid; // required
43
  private long customer_id; // required
44
  private String coupon_code; // required
45
  private String sessionSource; // required
46
  private long sessionStartTime; // required
68 ashish 47
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 50
    ID((short)1, "id"),
483 rajveer 51
    ORDERS((short)2, "orders"),
684 chandransh 52
    CREATED_ON((short)3, "createdOn"),
68 ashish 53
    /**
54
     * 
55
     * @see TransactionStatus
56
     */
684 chandransh 57
    TRANSACTION_STATUS((short)4, "transactionStatus"),
58
    STATUS_DESCRIPTION((short)5, "statusDescription"),
59
    SHOPPING_CARTID((short)6, "shoppingCartid"),
2219 varun.gupt 60
    CUSTOMER_ID((short)7, "customer_id"),
2816 vikas 61
    COUPON_CODE((short)8, "coupon_code"),
62
    SESSION_SOURCE((short)9, "sessionSource"),
63
    SESSION_START_TIME((short)10, "sessionStartTime");
68 ashish 64
 
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
66
 
67
    static {
68
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
69
        byName.put(field.getFieldName(), field);
70
      }
71
    }
72
 
73
    /**
74
     * Find the _Fields constant that matches fieldId, or null if its not found.
75
     */
76
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 77
      switch(fieldId) {
78
        case 1: // ID
79
          return ID;
80
        case 2: // ORDERS
81
          return ORDERS;
82
        case 3: // CREATED_ON
83
          return CREATED_ON;
84
        case 4: // TRANSACTION_STATUS
85
          return TRANSACTION_STATUS;
86
        case 5: // STATUS_DESCRIPTION
87
          return STATUS_DESCRIPTION;
88
        case 6: // SHOPPING_CARTID
89
          return SHOPPING_CARTID;
90
        case 7: // CUSTOMER_ID
91
          return CUSTOMER_ID;
92
        case 8: // COUPON_CODE
93
          return COUPON_CODE;
94
        case 9: // SESSION_SOURCE
95
          return SESSION_SOURCE;
96
        case 10: // SESSION_START_TIME
97
          return SESSION_START_TIME;
98
        default:
99
          return null;
100
      }
68 ashish 101
    }
102
 
103
    /**
104
     * Find the _Fields constant that matches fieldId, throwing an exception
105
     * if it is not found.
106
     */
107
    public static _Fields findByThriftIdOrThrow(int fieldId) {
108
      _Fields fields = findByThriftId(fieldId);
109
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
110
      return fields;
111
    }
112
 
113
    /**
114
     * Find the _Fields constant that matches name, or null if its not found.
115
     */
116
    public static _Fields findByName(String name) {
117
      return byName.get(name);
118
    }
119
 
120
    private final short _thriftId;
121
    private final String _fieldName;
122
 
123
    _Fields(short thriftId, String fieldName) {
124
      _thriftId = thriftId;
125
      _fieldName = fieldName;
126
    }
127
 
128
    public short getThriftFieldId() {
129
      return _thriftId;
130
    }
131
 
132
    public String getFieldName() {
133
      return _fieldName;
134
    }
135
  }
136
 
137
  // isset id assignments
138
  private static final int __ID_ISSET_ID = 0;
139
  private static final int __CREATEDON_ISSET_ID = 1;
483 rajveer 140
  private static final int __SHOPPINGCARTID_ISSET_ID = 2;
68 ashish 141
  private static final int __CUSTOMER_ID_ISSET_ID = 3;
2816 vikas 142
  private static final int __SESSIONSTARTTIME_ISSET_ID = 4;
143
  private BitSet __isset_bit_vector = new BitSet(5);
68 ashish 144
 
3430 rajveer 145
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 146
  static {
3430 rajveer 147
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
148
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
149
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
150
    tmpMap.put(_Fields.ORDERS, new org.apache.thrift.meta_data.FieldMetaData("orders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
152
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
153
    tmpMap.put(_Fields.CREATED_ON, new org.apache.thrift.meta_data.FieldMetaData("createdOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
155
    tmpMap.put(_Fields.TRANSACTION_STATUS, new org.apache.thrift.meta_data.FieldMetaData("transactionStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
157
    tmpMap.put(_Fields.STATUS_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("statusDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
159
    tmpMap.put(_Fields.SHOPPING_CARTID, new org.apache.thrift.meta_data.FieldMetaData("shoppingCartid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
161
    tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
163
    tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("coupon_code", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
165
    tmpMap.put(_Fields.SESSION_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("sessionSource", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
167
    tmpMap.put(_Fields.SESSION_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sessionStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
169
    metaDataMap = Collections.unmodifiableMap(tmpMap);
170
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Transaction.class, metaDataMap);
68 ashish 171
  }
172
 
173
  public Transaction() {
174
  }
175
 
176
  public Transaction(
177
    long id,
483 rajveer 178
    List<Order> orders,
68 ashish 179
    long createdOn,
180
    TransactionStatus transactionStatus,
181
    String statusDescription,
358 ashish 182
    long shoppingCartid,
2219 varun.gupt 183
    long customer_id,
2816 vikas 184
    String coupon_code,
185
    String sessionSource,
186
    long sessionStartTime)
68 ashish 187
  {
188
    this();
189
    this.id = id;
190
    setIdIsSet(true);
483 rajveer 191
    this.orders = orders;
68 ashish 192
    this.createdOn = createdOn;
193
    setCreatedOnIsSet(true);
194
    this.transactionStatus = transactionStatus;
195
    this.statusDescription = statusDescription;
483 rajveer 196
    this.shoppingCartid = shoppingCartid;
197
    setShoppingCartidIsSet(true);
68 ashish 198
    this.customer_id = customer_id;
199
    setCustomer_idIsSet(true);
2219 varun.gupt 200
    this.coupon_code = coupon_code;
2816 vikas 201
    this.sessionSource = sessionSource;
202
    this.sessionStartTime = sessionStartTime;
203
    setSessionStartTimeIsSet(true);
68 ashish 204
  }
205
 
206
  /**
207
   * Performs a deep copy on <i>other</i>.
208
   */
209
  public Transaction(Transaction other) {
210
    __isset_bit_vector.clear();
211
    __isset_bit_vector.or(other.__isset_bit_vector);
212
    this.id = other.id;
483 rajveer 213
    if (other.isSetOrders()) {
214
      List<Order> __this__orders = new ArrayList<Order>();
215
      for (Order other_element : other.orders) {
216
        __this__orders.add(new Order(other_element));
217
      }
218
      this.orders = __this__orders;
68 ashish 219
    }
220
    this.createdOn = other.createdOn;
221
    if (other.isSetTransactionStatus()) {
222
      this.transactionStatus = other.transactionStatus;
223
    }
224
    if (other.isSetStatusDescription()) {
225
      this.statusDescription = other.statusDescription;
226
    }
483 rajveer 227
    this.shoppingCartid = other.shoppingCartid;
68 ashish 228
    this.customer_id = other.customer_id;
2219 varun.gupt 229
    if (other.isSetCoupon_code()) {
230
      this.coupon_code = other.coupon_code;
231
    }
2816 vikas 232
    if (other.isSetSessionSource()) {
233
      this.sessionSource = other.sessionSource;
234
    }
235
    this.sessionStartTime = other.sessionStartTime;
68 ashish 236
  }
237
 
238
  public Transaction deepCopy() {
239
    return new Transaction(this);
240
  }
241
 
3430 rajveer 242
  @Override
243
  public void clear() {
244
    setIdIsSet(false);
245
    this.id = 0;
246
    this.orders = null;
247
    setCreatedOnIsSet(false);
248
    this.createdOn = 0;
249
    this.transactionStatus = null;
250
    this.statusDescription = null;
251
    setShoppingCartidIsSet(false);
252
    this.shoppingCartid = 0;
253
    setCustomer_idIsSet(false);
254
    this.customer_id = 0;
255
    this.coupon_code = null;
256
    this.sessionSource = null;
257
    setSessionStartTimeIsSet(false);
258
    this.sessionStartTime = 0;
68 ashish 259
  }
260
 
261
  public long getId() {
262
    return this.id;
263
  }
264
 
3430 rajveer 265
  public void setId(long id) {
68 ashish 266
    this.id = id;
267
    setIdIsSet(true);
268
  }
269
 
270
  public void unsetId() {
271
    __isset_bit_vector.clear(__ID_ISSET_ID);
272
  }
273
 
3430 rajveer 274
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
68 ashish 275
  public boolean isSetId() {
276
    return __isset_bit_vector.get(__ID_ISSET_ID);
277
  }
278
 
279
  public void setIdIsSet(boolean value) {
280
    __isset_bit_vector.set(__ID_ISSET_ID, value);
281
  }
282
 
483 rajveer 283
  public int getOrdersSize() {
284
    return (this.orders == null) ? 0 : this.orders.size();
68 ashish 285
  }
286
 
483 rajveer 287
  public java.util.Iterator<Order> getOrdersIterator() {
288
    return (this.orders == null) ? null : this.orders.iterator();
68 ashish 289
  }
290
 
483 rajveer 291
  public void addToOrders(Order elem) {
292
    if (this.orders == null) {
293
      this.orders = new ArrayList<Order>();
68 ashish 294
    }
483 rajveer 295
    this.orders.add(elem);
68 ashish 296
  }
297
 
483 rajveer 298
  public List<Order> getOrders() {
299
    return this.orders;
68 ashish 300
  }
301
 
3430 rajveer 302
  public void setOrders(List<Order> orders) {
483 rajveer 303
    this.orders = orders;
68 ashish 304
  }
305
 
483 rajveer 306
  public void unsetOrders() {
307
    this.orders = null;
68 ashish 308
  }
309
 
3430 rajveer 310
  /** Returns true if field orders is set (has been assigned a value) and false otherwise */
483 rajveer 311
  public boolean isSetOrders() {
312
    return this.orders != null;
68 ashish 313
  }
314
 
483 rajveer 315
  public void setOrdersIsSet(boolean value) {
68 ashish 316
    if (!value) {
483 rajveer 317
      this.orders = null;
68 ashish 318
    }
319
  }
320
 
321
  public long getCreatedOn() {
322
    return this.createdOn;
323
  }
324
 
3430 rajveer 325
  public void setCreatedOn(long createdOn) {
68 ashish 326
    this.createdOn = createdOn;
327
    setCreatedOnIsSet(true);
328
  }
329
 
330
  public void unsetCreatedOn() {
331
    __isset_bit_vector.clear(__CREATEDON_ISSET_ID);
332
  }
333
 
3430 rajveer 334
  /** Returns true if field createdOn is set (has been assigned a value) and false otherwise */
68 ashish 335
  public boolean isSetCreatedOn() {
336
    return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
337
  }
338
 
339
  public void setCreatedOnIsSet(boolean value) {
340
    __isset_bit_vector.set(__CREATEDON_ISSET_ID, value);
341
  }
342
 
343
  /**
344
   * 
345
   * @see TransactionStatus
346
   */
347
  public TransactionStatus getTransactionStatus() {
348
    return this.transactionStatus;
349
  }
350
 
351
  /**
352
   * 
353
   * @see TransactionStatus
354
   */
3430 rajveer 355
  public void setTransactionStatus(TransactionStatus transactionStatus) {
68 ashish 356
    this.transactionStatus = transactionStatus;
357
  }
358
 
359
  public void unsetTransactionStatus() {
360
    this.transactionStatus = null;
361
  }
362
 
3430 rajveer 363
  /** Returns true if field transactionStatus is set (has been assigned a value) and false otherwise */
68 ashish 364
  public boolean isSetTransactionStatus() {
365
    return this.transactionStatus != null;
366
  }
367
 
368
  public void setTransactionStatusIsSet(boolean value) {
369
    if (!value) {
370
      this.transactionStatus = null;
371
    }
372
  }
373
 
374
  public String getStatusDescription() {
375
    return this.statusDescription;
376
  }
377
 
3430 rajveer 378
  public void setStatusDescription(String statusDescription) {
68 ashish 379
    this.statusDescription = statusDescription;
380
  }
381
 
382
  public void unsetStatusDescription() {
383
    this.statusDescription = null;
384
  }
385
 
3430 rajveer 386
  /** Returns true if field statusDescription is set (has been assigned a value) and false otherwise */
68 ashish 387
  public boolean isSetStatusDescription() {
388
    return this.statusDescription != null;
389
  }
390
 
391
  public void setStatusDescriptionIsSet(boolean value) {
392
    if (!value) {
393
      this.statusDescription = null;
394
    }
395
  }
396
 
132 ashish 397
  public long getShoppingCartid() {
398
    return this.shoppingCartid;
399
  }
400
 
3430 rajveer 401
  public void setShoppingCartid(long shoppingCartid) {
132 ashish 402
    this.shoppingCartid = shoppingCartid;
403
    setShoppingCartidIsSet(true);
404
  }
405
 
406
  public void unsetShoppingCartid() {
407
    __isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);
408
  }
409
 
3430 rajveer 410
  /** Returns true if field shoppingCartid is set (has been assigned a value) and false otherwise */
132 ashish 411
  public boolean isSetShoppingCartid() {
412
    return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);
413
  }
414
 
415
  public void setShoppingCartidIsSet(boolean value) {
416
    __isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);
417
  }
418
 
483 rajveer 419
  public long getCustomer_id() {
420
    return this.customer_id;
358 ashish 421
  }
422
 
3430 rajveer 423
  public void setCustomer_id(long customer_id) {
483 rajveer 424
    this.customer_id = customer_id;
425
    setCustomer_idIsSet(true);
358 ashish 426
  }
427
 
483 rajveer 428
  public void unsetCustomer_id() {
429
    __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
358 ashish 430
  }
431
 
3430 rajveer 432
  /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
483 rajveer 433
  public boolean isSetCustomer_id() {
434
    return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
358 ashish 435
  }
436
 
483 rajveer 437
  public void setCustomer_idIsSet(boolean value) {
438
    __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
358 ashish 439
  }
440
 
2219 varun.gupt 441
  public String getCoupon_code() {
442
    return this.coupon_code;
443
  }
444
 
3430 rajveer 445
  public void setCoupon_code(String coupon_code) {
2219 varun.gupt 446
    this.coupon_code = coupon_code;
447
  }
448
 
449
  public void unsetCoupon_code() {
450
    this.coupon_code = null;
451
  }
452
 
3430 rajveer 453
  /** Returns true if field coupon_code is set (has been assigned a value) and false otherwise */
2219 varun.gupt 454
  public boolean isSetCoupon_code() {
455
    return this.coupon_code != null;
456
  }
457
 
458
  public void setCoupon_codeIsSet(boolean value) {
459
    if (!value) {
460
      this.coupon_code = null;
461
    }
462
  }
463
 
2816 vikas 464
  public String getSessionSource() {
465
    return this.sessionSource;
466
  }
467
 
3430 rajveer 468
  public void setSessionSource(String sessionSource) {
2816 vikas 469
    this.sessionSource = sessionSource;
470
  }
471
 
472
  public void unsetSessionSource() {
473
    this.sessionSource = null;
474
  }
475
 
3430 rajveer 476
  /** Returns true if field sessionSource is set (has been assigned a value) and false otherwise */
2816 vikas 477
  public boolean isSetSessionSource() {
478
    return this.sessionSource != null;
479
  }
480
 
481
  public void setSessionSourceIsSet(boolean value) {
482
    if (!value) {
483
      this.sessionSource = null;
484
    }
485
  }
486
 
487
  public long getSessionStartTime() {
488
    return this.sessionStartTime;
489
  }
490
 
3430 rajveer 491
  public void setSessionStartTime(long sessionStartTime) {
2816 vikas 492
    this.sessionStartTime = sessionStartTime;
493
    setSessionStartTimeIsSet(true);
494
  }
495
 
496
  public void unsetSessionStartTime() {
497
    __isset_bit_vector.clear(__SESSIONSTARTTIME_ISSET_ID);
498
  }
499
 
3430 rajveer 500
  /** Returns true if field sessionStartTime is set (has been assigned a value) and false otherwise */
2816 vikas 501
  public boolean isSetSessionStartTime() {
502
    return __isset_bit_vector.get(__SESSIONSTARTTIME_ISSET_ID);
503
  }
504
 
505
  public void setSessionStartTimeIsSet(boolean value) {
506
    __isset_bit_vector.set(__SESSIONSTARTTIME_ISSET_ID, value);
507
  }
508
 
68 ashish 509
  public void setFieldValue(_Fields field, Object value) {
510
    switch (field) {
511
    case ID:
512
      if (value == null) {
513
        unsetId();
514
      } else {
515
        setId((Long)value);
516
      }
517
      break;
518
 
483 rajveer 519
    case ORDERS:
68 ashish 520
      if (value == null) {
483 rajveer 521
        unsetOrders();
68 ashish 522
      } else {
483 rajveer 523
        setOrders((List<Order>)value);
68 ashish 524
      }
525
      break;
526
 
527
    case CREATED_ON:
528
      if (value == null) {
529
        unsetCreatedOn();
530
      } else {
531
        setCreatedOn((Long)value);
532
      }
533
      break;
534
 
535
    case TRANSACTION_STATUS:
536
      if (value == null) {
537
        unsetTransactionStatus();
538
      } else {
539
        setTransactionStatus((TransactionStatus)value);
540
      }
541
      break;
542
 
543
    case STATUS_DESCRIPTION:
544
      if (value == null) {
545
        unsetStatusDescription();
546
      } else {
547
        setStatusDescription((String)value);
548
      }
549
      break;
550
 
132 ashish 551
    case SHOPPING_CARTID:
552
      if (value == null) {
553
        unsetShoppingCartid();
554
      } else {
555
        setShoppingCartid((Long)value);
556
      }
557
      break;
558
 
483 rajveer 559
    case CUSTOMER_ID:
358 ashish 560
      if (value == null) {
483 rajveer 561
        unsetCustomer_id();
358 ashish 562
      } else {
483 rajveer 563
        setCustomer_id((Long)value);
358 ashish 564
      }
565
      break;
566
 
2219 varun.gupt 567
    case COUPON_CODE:
568
      if (value == null) {
569
        unsetCoupon_code();
570
      } else {
571
        setCoupon_code((String)value);
572
      }
573
      break;
574
 
2816 vikas 575
    case SESSION_SOURCE:
576
      if (value == null) {
577
        unsetSessionSource();
578
      } else {
579
        setSessionSource((String)value);
580
      }
581
      break;
582
 
583
    case SESSION_START_TIME:
584
      if (value == null) {
585
        unsetSessionStartTime();
586
      } else {
587
        setSessionStartTime((Long)value);
588
      }
589
      break;
590
 
68 ashish 591
    }
592
  }
593
 
594
  public Object getFieldValue(_Fields field) {
595
    switch (field) {
596
    case ID:
3430 rajveer 597
      return Long.valueOf(getId());
68 ashish 598
 
483 rajveer 599
    case ORDERS:
600
      return getOrders();
68 ashish 601
 
602
    case CREATED_ON:
3430 rajveer 603
      return Long.valueOf(getCreatedOn());
68 ashish 604
 
605
    case TRANSACTION_STATUS:
606
      return getTransactionStatus();
607
 
608
    case STATUS_DESCRIPTION:
609
      return getStatusDescription();
610
 
132 ashish 611
    case SHOPPING_CARTID:
3430 rajveer 612
      return Long.valueOf(getShoppingCartid());
132 ashish 613
 
483 rajveer 614
    case CUSTOMER_ID:
3430 rajveer 615
      return Long.valueOf(getCustomer_id());
358 ashish 616
 
2219 varun.gupt 617
    case COUPON_CODE:
618
      return getCoupon_code();
619
 
2816 vikas 620
    case SESSION_SOURCE:
621
      return getSessionSource();
622
 
623
    case SESSION_START_TIME:
3430 rajveer 624
      return Long.valueOf(getSessionStartTime());
2816 vikas 625
 
68 ashish 626
    }
627
    throw new IllegalStateException();
628
  }
629
 
3430 rajveer 630
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
631
  public boolean isSet(_Fields field) {
632
    if (field == null) {
633
      throw new IllegalArgumentException();
634
    }
68 ashish 635
 
636
    switch (field) {
637
    case ID:
638
      return isSetId();
483 rajveer 639
    case ORDERS:
640
      return isSetOrders();
68 ashish 641
    case CREATED_ON:
642
      return isSetCreatedOn();
643
    case TRANSACTION_STATUS:
644
      return isSetTransactionStatus();
645
    case STATUS_DESCRIPTION:
646
      return isSetStatusDescription();
483 rajveer 647
    case SHOPPING_CARTID:
648
      return isSetShoppingCartid();
68 ashish 649
    case CUSTOMER_ID:
650
      return isSetCustomer_id();
2219 varun.gupt 651
    case COUPON_CODE:
652
      return isSetCoupon_code();
2816 vikas 653
    case SESSION_SOURCE:
654
      return isSetSessionSource();
655
    case SESSION_START_TIME:
656
      return isSetSessionStartTime();
68 ashish 657
    }
658
    throw new IllegalStateException();
659
  }
660
 
661
  @Override
662
  public boolean equals(Object that) {
663
    if (that == null)
664
      return false;
665
    if (that instanceof Transaction)
666
      return this.equals((Transaction)that);
667
    return false;
668
  }
669
 
670
  public boolean equals(Transaction that) {
671
    if (that == null)
672
      return false;
673
 
674
    boolean this_present_id = true;
675
    boolean that_present_id = true;
676
    if (this_present_id || that_present_id) {
677
      if (!(this_present_id && that_present_id))
678
        return false;
679
      if (this.id != that.id)
680
        return false;
681
    }
682
 
483 rajveer 683
    boolean this_present_orders = true && this.isSetOrders();
684
    boolean that_present_orders = true && that.isSetOrders();
685
    if (this_present_orders || that_present_orders) {
686
      if (!(this_present_orders && that_present_orders))
68 ashish 687
        return false;
483 rajveer 688
      if (!this.orders.equals(that.orders))
68 ashish 689
        return false;
690
    }
691
 
692
    boolean this_present_createdOn = true;
693
    boolean that_present_createdOn = true;
694
    if (this_present_createdOn || that_present_createdOn) {
695
      if (!(this_present_createdOn && that_present_createdOn))
696
        return false;
697
      if (this.createdOn != that.createdOn)
698
        return false;
699
    }
700
 
701
    boolean this_present_transactionStatus = true && this.isSetTransactionStatus();
702
    boolean that_present_transactionStatus = true && that.isSetTransactionStatus();
703
    if (this_present_transactionStatus || that_present_transactionStatus) {
704
      if (!(this_present_transactionStatus && that_present_transactionStatus))
705
        return false;
706
      if (!this.transactionStatus.equals(that.transactionStatus))
707
        return false;
708
    }
709
 
710
    boolean this_present_statusDescription = true && this.isSetStatusDescription();
711
    boolean that_present_statusDescription = true && that.isSetStatusDescription();
712
    if (this_present_statusDescription || that_present_statusDescription) {
713
      if (!(this_present_statusDescription && that_present_statusDescription))
714
        return false;
715
      if (!this.statusDescription.equals(that.statusDescription))
716
        return false;
717
    }
718
 
132 ashish 719
    boolean this_present_shoppingCartid = true;
720
    boolean that_present_shoppingCartid = true;
721
    if (this_present_shoppingCartid || that_present_shoppingCartid) {
722
      if (!(this_present_shoppingCartid && that_present_shoppingCartid))
723
        return false;
724
      if (this.shoppingCartid != that.shoppingCartid)
725
        return false;
726
    }
727
 
483 rajveer 728
    boolean this_present_customer_id = true;
729
    boolean that_present_customer_id = true;
730
    if (this_present_customer_id || that_present_customer_id) {
731
      if (!(this_present_customer_id && that_present_customer_id))
358 ashish 732
        return false;
483 rajveer 733
      if (this.customer_id != that.customer_id)
358 ashish 734
        return false;
735
    }
736
 
2219 varun.gupt 737
    boolean this_present_coupon_code = true && this.isSetCoupon_code();
738
    boolean that_present_coupon_code = true && that.isSetCoupon_code();
739
    if (this_present_coupon_code || that_present_coupon_code) {
740
      if (!(this_present_coupon_code && that_present_coupon_code))
741
        return false;
742
      if (!this.coupon_code.equals(that.coupon_code))
743
        return false;
744
    }
745
 
2816 vikas 746
    boolean this_present_sessionSource = true && this.isSetSessionSource();
747
    boolean that_present_sessionSource = true && that.isSetSessionSource();
748
    if (this_present_sessionSource || that_present_sessionSource) {
749
      if (!(this_present_sessionSource && that_present_sessionSource))
750
        return false;
751
      if (!this.sessionSource.equals(that.sessionSource))
752
        return false;
753
    }
754
 
755
    boolean this_present_sessionStartTime = true;
756
    boolean that_present_sessionStartTime = true;
757
    if (this_present_sessionStartTime || that_present_sessionStartTime) {
758
      if (!(this_present_sessionStartTime && that_present_sessionStartTime))
759
        return false;
760
      if (this.sessionStartTime != that.sessionStartTime)
761
        return false;
762
    }
763
 
68 ashish 764
    return true;
765
  }
766
 
767
  @Override
768
  public int hashCode() {
769
    return 0;
770
  }
771
 
684 chandransh 772
  public int compareTo(Transaction other) {
773
    if (!getClass().equals(other.getClass())) {
774
      return getClass().getName().compareTo(other.getClass().getName());
775
    }
776
 
777
    int lastComparison = 0;
778
    Transaction typedOther = (Transaction)other;
779
 
3430 rajveer 780
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
684 chandransh 781
    if (lastComparison != 0) {
782
      return lastComparison;
783
    }
3430 rajveer 784
    if (isSetId()) {
785
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
786
      if (lastComparison != 0) {
787
        return lastComparison;
788
      }
684 chandransh 789
    }
3430 rajveer 790
    lastComparison = Boolean.valueOf(isSetOrders()).compareTo(typedOther.isSetOrders());
684 chandransh 791
    if (lastComparison != 0) {
792
      return lastComparison;
793
    }
3430 rajveer 794
    if (isSetOrders()) {
795
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orders, typedOther.orders);
796
      if (lastComparison != 0) {
797
        return lastComparison;
798
      }
684 chandransh 799
    }
3430 rajveer 800
    lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(typedOther.isSetCreatedOn());
684 chandransh 801
    if (lastComparison != 0) {
802
      return lastComparison;
803
    }
3430 rajveer 804
    if (isSetCreatedOn()) {
805
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdOn, typedOther.createdOn);
806
      if (lastComparison != 0) {
807
        return lastComparison;
808
      }
684 chandransh 809
    }
3430 rajveer 810
    lastComparison = Boolean.valueOf(isSetTransactionStatus()).compareTo(typedOther.isSetTransactionStatus());
684 chandransh 811
    if (lastComparison != 0) {
812
      return lastComparison;
813
    }
3430 rajveer 814
    if (isSetTransactionStatus()) {
815
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionStatus, typedOther.transactionStatus);
816
      if (lastComparison != 0) {
817
        return lastComparison;
818
      }
684 chandransh 819
    }
3430 rajveer 820
    lastComparison = Boolean.valueOf(isSetStatusDescription()).compareTo(typedOther.isSetStatusDescription());
684 chandransh 821
    if (lastComparison != 0) {
822
      return lastComparison;
823
    }
3430 rajveer 824
    if (isSetStatusDescription()) {
825
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusDescription, typedOther.statusDescription);
826
      if (lastComparison != 0) {
827
        return lastComparison;
828
      }
684 chandransh 829
    }
3430 rajveer 830
    lastComparison = Boolean.valueOf(isSetShoppingCartid()).compareTo(typedOther.isSetShoppingCartid());
684 chandransh 831
    if (lastComparison != 0) {
832
      return lastComparison;
833
    }
3430 rajveer 834
    if (isSetShoppingCartid()) {
835
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shoppingCartid, typedOther.shoppingCartid);
836
      if (lastComparison != 0) {
837
        return lastComparison;
838
      }
684 chandransh 839
    }
3430 rajveer 840
    lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
684 chandransh 841
    if (lastComparison != 0) {
842
      return lastComparison;
843
    }
3430 rajveer 844
    if (isSetCustomer_id()) {
845
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
846
      if (lastComparison != 0) {
847
        return lastComparison;
848
      }
684 chandransh 849
    }
3430 rajveer 850
    lastComparison = Boolean.valueOf(isSetCoupon_code()).compareTo(typedOther.isSetCoupon_code());
2219 varun.gupt 851
    if (lastComparison != 0) {
852
      return lastComparison;
853
    }
3430 rajveer 854
    if (isSetCoupon_code()) {
855
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.coupon_code, typedOther.coupon_code);
856
      if (lastComparison != 0) {
857
        return lastComparison;
858
      }
2219 varun.gupt 859
    }
3430 rajveer 860
    lastComparison = Boolean.valueOf(isSetSessionSource()).compareTo(typedOther.isSetSessionSource());
2816 vikas 861
    if (lastComparison != 0) {
862
      return lastComparison;
863
    }
3430 rajveer 864
    if (isSetSessionSource()) {
865
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionSource, typedOther.sessionSource);
866
      if (lastComparison != 0) {
867
        return lastComparison;
868
      }
2816 vikas 869
    }
3430 rajveer 870
    lastComparison = Boolean.valueOf(isSetSessionStartTime()).compareTo(typedOther.isSetSessionStartTime());
2816 vikas 871
    if (lastComparison != 0) {
872
      return lastComparison;
873
    }
3430 rajveer 874
    if (isSetSessionStartTime()) {
875
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionStartTime, typedOther.sessionStartTime);
876
      if (lastComparison != 0) {
877
        return lastComparison;
878
      }
2816 vikas 879
    }
684 chandransh 880
    return 0;
881
  }
882
 
3430 rajveer 883
  public _Fields fieldForId(int fieldId) {
884
    return _Fields.findByThriftId(fieldId);
885
  }
886
 
887
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
888
    org.apache.thrift.protocol.TField field;
68 ashish 889
    iprot.readStructBegin();
890
    while (true)
891
    {
892
      field = iprot.readFieldBegin();
3430 rajveer 893
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 894
        break;
895
      }
3430 rajveer 896
      switch (field.id) {
897
        case 1: // ID
898
          if (field.type == org.apache.thrift.protocol.TType.I64) {
899
            this.id = iprot.readI64();
900
            setIdIsSet(true);
901
          } else { 
902
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
903
          }
904
          break;
905
        case 2: // ORDERS
906
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
907
            {
908
              org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
909
              this.orders = new ArrayList<Order>(_list4.size);
910
              for (int _i5 = 0; _i5 < _list4.size; ++_i5)
483 rajveer 911
              {
3430 rajveer 912
                Order _elem6; // required
913
                _elem6 = new Order();
914
                _elem6.read(iprot);
915
                this.orders.add(_elem6);
483 rajveer 916
              }
3430 rajveer 917
              iprot.readListEnd();
68 ashish 918
            }
3430 rajveer 919
          } else { 
920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
921
          }
922
          break;
923
        case 3: // CREATED_ON
924
          if (field.type == org.apache.thrift.protocol.TType.I64) {
925
            this.createdOn = iprot.readI64();
926
            setCreatedOnIsSet(true);
927
          } else { 
928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
929
          }
930
          break;
931
        case 4: // TRANSACTION_STATUS
932
          if (field.type == org.apache.thrift.protocol.TType.I32) {
933
            this.transactionStatus = TransactionStatus.findByValue(iprot.readI32());
934
          } else { 
935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
936
          }
937
          break;
938
        case 5: // STATUS_DESCRIPTION
939
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
940
            this.statusDescription = iprot.readString();
941
          } else { 
942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
943
          }
944
          break;
945
        case 6: // SHOPPING_CARTID
946
          if (field.type == org.apache.thrift.protocol.TType.I64) {
947
            this.shoppingCartid = iprot.readI64();
948
            setShoppingCartidIsSet(true);
949
          } else { 
950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
951
          }
952
          break;
953
        case 7: // CUSTOMER_ID
954
          if (field.type == org.apache.thrift.protocol.TType.I64) {
955
            this.customer_id = iprot.readI64();
956
            setCustomer_idIsSet(true);
957
          } else { 
958
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
959
          }
960
          break;
961
        case 8: // COUPON_CODE
962
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
963
            this.coupon_code = iprot.readString();
964
          } else { 
965
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
966
          }
967
          break;
968
        case 9: // SESSION_SOURCE
969
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
970
            this.sessionSource = iprot.readString();
971
          } else { 
972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
973
          }
974
          break;
975
        case 10: // SESSION_START_TIME
976
          if (field.type == org.apache.thrift.protocol.TType.I64) {
977
            this.sessionStartTime = iprot.readI64();
978
            setSessionStartTimeIsSet(true);
979
          } else { 
980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
981
          }
982
          break;
983
        default:
984
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 985
      }
3430 rajveer 986
      iprot.readFieldEnd();
68 ashish 987
    }
988
    iprot.readStructEnd();
989
    validate();
990
  }
991
 
3430 rajveer 992
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 993
    validate();
994
 
995
    oprot.writeStructBegin(STRUCT_DESC);
996
    oprot.writeFieldBegin(ID_FIELD_DESC);
997
    oprot.writeI64(this.id);
998
    oprot.writeFieldEnd();
483 rajveer 999
    if (this.orders != null) {
1000
      oprot.writeFieldBegin(ORDERS_FIELD_DESC);
1001
      {
3430 rajveer 1002
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.orders.size()));
684 chandransh 1003
        for (Order _iter7 : this.orders)
483 rajveer 1004
        {
684 chandransh 1005
          _iter7.write(oprot);
483 rajveer 1006
        }
1007
        oprot.writeListEnd();
1008
      }
68 ashish 1009
      oprot.writeFieldEnd();
1010
    }
1011
    oprot.writeFieldBegin(CREATED_ON_FIELD_DESC);
1012
    oprot.writeI64(this.createdOn);
1013
    oprot.writeFieldEnd();
1014
    if (this.transactionStatus != null) {
1015
      oprot.writeFieldBegin(TRANSACTION_STATUS_FIELD_DESC);
1016
      oprot.writeI32(this.transactionStatus.getValue());
1017
      oprot.writeFieldEnd();
1018
    }
1019
    if (this.statusDescription != null) {
1020
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
1021
      oprot.writeString(this.statusDescription);
1022
      oprot.writeFieldEnd();
1023
    }
132 ashish 1024
    oprot.writeFieldBegin(SHOPPING_CARTID_FIELD_DESC);
1025
    oprot.writeI64(this.shoppingCartid);
1026
    oprot.writeFieldEnd();
483 rajveer 1027
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1028
    oprot.writeI64(this.customer_id);
358 ashish 1029
    oprot.writeFieldEnd();
2219 varun.gupt 1030
    if (this.coupon_code != null) {
1031
      oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
1032
      oprot.writeString(this.coupon_code);
1033
      oprot.writeFieldEnd();
1034
    }
2816 vikas 1035
    if (this.sessionSource != null) {
1036
      oprot.writeFieldBegin(SESSION_SOURCE_FIELD_DESC);
1037
      oprot.writeString(this.sessionSource);
1038
      oprot.writeFieldEnd();
1039
    }
1040
    oprot.writeFieldBegin(SESSION_START_TIME_FIELD_DESC);
1041
    oprot.writeI64(this.sessionStartTime);
1042
    oprot.writeFieldEnd();
68 ashish 1043
    oprot.writeFieldStop();
1044
    oprot.writeStructEnd();
1045
  }
1046
 
1047
  @Override
1048
  public String toString() {
1049
    StringBuilder sb = new StringBuilder("Transaction(");
1050
    boolean first = true;
1051
 
1052
    sb.append("id:");
1053
    sb.append(this.id);
1054
    first = false;
1055
    if (!first) sb.append(", ");
483 rajveer 1056
    sb.append("orders:");
1057
    if (this.orders == null) {
68 ashish 1058
      sb.append("null");
1059
    } else {
483 rajveer 1060
      sb.append(this.orders);
68 ashish 1061
    }
1062
    first = false;
1063
    if (!first) sb.append(", ");
1064
    sb.append("createdOn:");
1065
    sb.append(this.createdOn);
1066
    first = false;
1067
    if (!first) sb.append(", ");
1068
    sb.append("transactionStatus:");
1069
    if (this.transactionStatus == null) {
1070
      sb.append("null");
1071
    } else {
1072
      sb.append(this.transactionStatus);
1073
    }
1074
    first = false;
1075
    if (!first) sb.append(", ");
1076
    sb.append("statusDescription:");
1077
    if (this.statusDescription == null) {
1078
      sb.append("null");
1079
    } else {
1080
      sb.append(this.statusDescription);
1081
    }
1082
    first = false;
1083
    if (!first) sb.append(", ");
132 ashish 1084
    sb.append("shoppingCartid:");
1085
    sb.append(this.shoppingCartid);
1086
    first = false;
358 ashish 1087
    if (!first) sb.append(", ");
483 rajveer 1088
    sb.append("customer_id:");
1089
    sb.append(this.customer_id);
358 ashish 1090
    first = false;
2219 varun.gupt 1091
    if (!first) sb.append(", ");
1092
    sb.append("coupon_code:");
1093
    if (this.coupon_code == null) {
1094
      sb.append("null");
1095
    } else {
1096
      sb.append(this.coupon_code);
1097
    }
1098
    first = false;
2816 vikas 1099
    if (!first) sb.append(", ");
1100
    sb.append("sessionSource:");
1101
    if (this.sessionSource == null) {
1102
      sb.append("null");
1103
    } else {
1104
      sb.append(this.sessionSource);
1105
    }
1106
    first = false;
1107
    if (!first) sb.append(", ");
1108
    sb.append("sessionStartTime:");
1109
    sb.append(this.sessionStartTime);
1110
    first = false;
68 ashish 1111
    sb.append(")");
1112
    return sb.toString();
1113
  }
1114
 
3430 rajveer 1115
  public void validate() throws org.apache.thrift.TException {
68 ashish 1116
    // check for required fields
1117
  }
1118
 
3430 rajveer 1119
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1120
    try {
1121
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1122
    } catch (org.apache.thrift.TException te) {
1123
      throw new java.io.IOException(te);
1124
    }
1125
  }
1126
 
1127
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1128
    try {
1129
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1130
      __isset_bit_vector = new BitSet(1);
1131
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1132
    } catch (org.apache.thrift.TException te) {
1133
      throw new java.io.IOException(te);
1134
    }
1135
  }
1136
 
68 ashish 1137
}
1138