Subversion Repositories SmartDukaan

Rev

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

Rev 12580 Rev 12589
Line 1078... Line 1078...
1078
 
1078
 
1079
    public List<AmazonFbaOrderReturns> getAllAmazonFbaOrderReturnsByCurrentTime(long insertionTimestamp) throws TransactionServiceException, org.apache.thrift.TException;
1079
    public List<AmazonFbaOrderReturns> getAllAmazonFbaOrderReturnsByCurrentTime(long insertionTimestamp) throws TransactionServiceException, org.apache.thrift.TException;
1080
 
1080
 
1081
    public Map<Long,Map<String,Long>> getTotalSaleReturnsFbaSkusCurentTime(long insertionTimestamp) throws TransactionServiceException, org.apache.thrift.TException;
1081
    public Map<Long,Map<String,Long>> getTotalSaleReturnsFbaSkusCurentTime(long insertionTimestamp) throws TransactionServiceException, org.apache.thrift.TException;
1082
 
1082
 
-
 
1083
    public List<FlipkartOrder> getVerificationPendingOrdersFK() throws TransactionServiceException, org.apache.thrift.TException;
-
 
1084
 
1083
  }
1085
  }
1084
 
1086
 
1085
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1087
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1086
 
1088
 
1087
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1089
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1542... Line 1544...
1542
 
1544
 
1543
    public void getAllAmazonFbaOrderReturnsByCurrentTime(long insertionTimestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonFbaOrderReturnsByCurrentTime_call> resultHandler) throws org.apache.thrift.TException;
1545
    public void getAllAmazonFbaOrderReturnsByCurrentTime(long insertionTimestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonFbaOrderReturnsByCurrentTime_call> resultHandler) throws org.apache.thrift.TException;
1544
 
1546
 
1545
    public void getTotalSaleReturnsFbaSkusCurentTime(long insertionTimestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTotalSaleReturnsFbaSkusCurentTime_call> resultHandler) throws org.apache.thrift.TException;
1547
    public void getTotalSaleReturnsFbaSkusCurentTime(long insertionTimestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTotalSaleReturnsFbaSkusCurentTime_call> resultHandler) throws org.apache.thrift.TException;
1546
 
1548
 
-
 
1549
    public void getVerificationPendingOrdersFK(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVerificationPendingOrdersFK_call> resultHandler) throws org.apache.thrift.TException;
-
 
1550
 
1547
  }
1551
  }
1548
 
1552
 
1549
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1553
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1550
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1554
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1551
      public Factory() {}
1555
      public Factory() {}
Line 7233... Line 7237...
7233
        throw result.ex;
7237
        throw result.ex;
7234
      }
7238
      }
7235
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTotalSaleReturnsFbaSkusCurentTime failed: unknown result");
7239
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTotalSaleReturnsFbaSkusCurentTime failed: unknown result");
7236
    }
7240
    }
7237
 
7241
 
-
 
7242
    public List<FlipkartOrder> getVerificationPendingOrdersFK() throws TransactionServiceException, org.apache.thrift.TException
-
 
7243
    {
-
 
7244
      send_getVerificationPendingOrdersFK();
-
 
7245
      return recv_getVerificationPendingOrdersFK();
-
 
7246
    }
-
 
7247
 
-
 
7248
    public void send_getVerificationPendingOrdersFK() throws org.apache.thrift.TException
-
 
7249
    {
-
 
7250
      getVerificationPendingOrdersFK_args args = new getVerificationPendingOrdersFK_args();
-
 
7251
      sendBase("getVerificationPendingOrdersFK", args);
-
 
7252
    }
-
 
7253
 
-
 
7254
    public List<FlipkartOrder> recv_getVerificationPendingOrdersFK() throws TransactionServiceException, org.apache.thrift.TException
-
 
7255
    {
-
 
7256
      getVerificationPendingOrdersFK_result result = new getVerificationPendingOrdersFK_result();
-
 
7257
      receiveBase(result, "getVerificationPendingOrdersFK");
-
 
7258
      if (result.isSetSuccess()) {
-
 
7259
        return result.success;
-
 
7260
      }
-
 
7261
      if (result.ex != null) {
-
 
7262
        throw result.ex;
-
 
7263
      }
-
 
7264
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVerificationPendingOrdersFK failed: unknown result");
-
 
7265
    }
-
 
7266
 
7238
  }
7267
  }
7239
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7268
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7240
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7269
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7241
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7270
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7242
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
7271
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 15244... Line 15273...
15244
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
15273
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
15245
        return (new Client(prot)).recv_getTotalSaleReturnsFbaSkusCurentTime();
15274
        return (new Client(prot)).recv_getTotalSaleReturnsFbaSkusCurentTime();
15246
      }
15275
      }
15247
    }
15276
    }
15248
 
15277
 
-
 
15278
    public void getVerificationPendingOrdersFK(org.apache.thrift.async.AsyncMethodCallback<getVerificationPendingOrdersFK_call> resultHandler) throws org.apache.thrift.TException {
-
 
15279
      checkReady();
-
 
15280
      getVerificationPendingOrdersFK_call method_call = new getVerificationPendingOrdersFK_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
15281
      this.___currentMethod = method_call;
-
 
15282
      ___manager.call(method_call);
-
 
15283
    }
-
 
15284
 
-
 
15285
    public static class getVerificationPendingOrdersFK_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
15286
      public getVerificationPendingOrdersFK_call(org.apache.thrift.async.AsyncMethodCallback<getVerificationPendingOrdersFK_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
15287
        super(client, protocolFactory, transport, resultHandler, false);
-
 
15288
      }
-
 
15289
 
-
 
15290
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
15291
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVerificationPendingOrdersFK", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
15292
        getVerificationPendingOrdersFK_args args = new getVerificationPendingOrdersFK_args();
-
 
15293
        args.write(prot);
-
 
15294
        prot.writeMessageEnd();
-
 
15295
      }
-
 
15296
 
-
 
15297
      public List<FlipkartOrder> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
15298
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
15299
          throw new IllegalStateException("Method call not finished!");
-
 
15300
        }
-
 
15301
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
15302
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
15303
        return (new Client(prot)).recv_getVerificationPendingOrdersFK();
-
 
15304
      }
-
 
15305
    }
-
 
15306
 
15249
  }
15307
  }
15250
 
15308
 
15251
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
15309
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
15252
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
15310
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
15253
    public Processor(I iface) {
15311
    public Processor(I iface) {
Line 15487... Line 15545...
15487
      processMap.put("getAmazonFbaSalesLatestSnapshotForItemLocationWise", new getAmazonFbaSalesLatestSnapshotForItemLocationWise());
15545
      processMap.put("getAmazonFbaSalesLatestSnapshotForItemLocationWise", new getAmazonFbaSalesLatestSnapshotForItemLocationWise());
15488
      processMap.put("changeEasyshipMfnOrderTxnStatus", new changeEasyshipMfnOrderTxnStatus());
15546
      processMap.put("changeEasyshipMfnOrderTxnStatus", new changeEasyshipMfnOrderTxnStatus());
15489
      processMap.put("updateAmazonFbaOrdersReturns", new updateAmazonFbaOrdersReturns());
15547
      processMap.put("updateAmazonFbaOrdersReturns", new updateAmazonFbaOrdersReturns());
15490
      processMap.put("getAllAmazonFbaOrderReturnsByCurrentTime", new getAllAmazonFbaOrderReturnsByCurrentTime());
15548
      processMap.put("getAllAmazonFbaOrderReturnsByCurrentTime", new getAllAmazonFbaOrderReturnsByCurrentTime());
15491
      processMap.put("getTotalSaleReturnsFbaSkusCurentTime", new getTotalSaleReturnsFbaSkusCurentTime());
15549
      processMap.put("getTotalSaleReturnsFbaSkusCurentTime", new getTotalSaleReturnsFbaSkusCurentTime());
-
 
15550
      processMap.put("getVerificationPendingOrdersFK", new getVerificationPendingOrdersFK());
15492
      return processMap;
15551
      return processMap;
15493
    }
15552
    }
15494
 
15553
 
15495
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
15554
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
15496
      public createTransaction() {
15555
      public createTransaction() {
Line 19652... Line 19711...
19652
        }
19711
        }
19653
        return result;
19712
        return result;
19654
      }
19713
      }
19655
    }
19714
    }
19656
 
19715
 
-
 
19716
    private static class getVerificationPendingOrdersFK<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVerificationPendingOrdersFK_args> {
-
 
19717
      public getVerificationPendingOrdersFK() {
-
 
19718
        super("getVerificationPendingOrdersFK");
-
 
19719
      }
-
 
19720
 
-
 
19721
      protected getVerificationPendingOrdersFK_args getEmptyArgsInstance() {
-
 
19722
        return new getVerificationPendingOrdersFK_args();
-
 
19723
      }
-
 
19724
 
-
 
19725
      protected getVerificationPendingOrdersFK_result getResult(I iface, getVerificationPendingOrdersFK_args args) throws org.apache.thrift.TException {
-
 
19726
        getVerificationPendingOrdersFK_result result = new getVerificationPendingOrdersFK_result();
-
 
19727
        try {
-
 
19728
          result.success = iface.getVerificationPendingOrdersFK();
-
 
19729
        } catch (TransactionServiceException ex) {
-
 
19730
          result.ex = ex;
-
 
19731
        }
-
 
19732
        return result;
-
 
19733
      }
-
 
19734
    }
-
 
19735
 
19657
  }
19736
  }
19658
 
19737
 
19659
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
19738
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
19660
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
19739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
19661
 
19740
 
Line 182200... Line 182279...
182200
      boolean first = true;
182279
      boolean first = true;
182201
 
182280
 
182202
      sb.append("success:");
182281
      sb.append("success:");
182203
      if (this.success == null) {
182282
      if (this.success == null) {
182204
        sb.append("null");
182283
        sb.append("null");
-
 
182284
      } else {
-
 
182285
        sb.append(this.success);
-
 
182286
      }
-
 
182287
      first = false;
-
 
182288
      if (!first) sb.append(", ");
-
 
182289
      sb.append("ex:");
-
 
182290
      if (this.ex == null) {
-
 
182291
        sb.append("null");
-
 
182292
      } else {
-
 
182293
        sb.append(this.ex);
-
 
182294
      }
-
 
182295
      first = false;
-
 
182296
      sb.append(")");
-
 
182297
      return sb.toString();
-
 
182298
    }
-
 
182299
 
-
 
182300
    public void validate() throws org.apache.thrift.TException {
-
 
182301
      // check for required fields
-
 
182302
    }
-
 
182303
 
-
 
182304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
182305
      try {
-
 
182306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
182307
      } catch (org.apache.thrift.TException te) {
-
 
182308
        throw new java.io.IOException(te);
-
 
182309
      }
-
 
182310
    }
-
 
182311
 
-
 
182312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
182313
      try {
-
 
182314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
182315
      } catch (org.apache.thrift.TException te) {
-
 
182316
        throw new java.io.IOException(te);
-
 
182317
      }
-
 
182318
    }
-
 
182319
 
-
 
182320
  }
-
 
182321
 
-
 
182322
  public static class getVerificationPendingOrdersFK_args implements org.apache.thrift.TBase<getVerificationPendingOrdersFK_args, getVerificationPendingOrdersFK_args._Fields>, java.io.Serializable, Cloneable   {
-
 
182323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerificationPendingOrdersFK_args");
-
 
182324
 
-
 
182325
 
-
 
182326
 
-
 
182327
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
182328
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
182329
;
-
 
182330
 
-
 
182331
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
182332
 
-
 
182333
      static {
-
 
182334
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
182335
          byName.put(field.getFieldName(), field);
-
 
182336
        }
-
 
182337
      }
-
 
182338
 
-
 
182339
      /**
-
 
182340
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
182341
       */
-
 
182342
      public static _Fields findByThriftId(int fieldId) {
-
 
182343
        switch(fieldId) {
-
 
182344
          default:
-
 
182345
            return null;
-
 
182346
        }
-
 
182347
      }
-
 
182348
 
-
 
182349
      /**
-
 
182350
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
182351
       * if it is not found.
-
 
182352
       */
-
 
182353
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
182354
        _Fields fields = findByThriftId(fieldId);
-
 
182355
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
182356
        return fields;
-
 
182357
      }
-
 
182358
 
-
 
182359
      /**
-
 
182360
       * Find the _Fields constant that matches name, or null if its not found.
-
 
182361
       */
-
 
182362
      public static _Fields findByName(String name) {
-
 
182363
        return byName.get(name);
-
 
182364
      }
-
 
182365
 
-
 
182366
      private final short _thriftId;
-
 
182367
      private final String _fieldName;
-
 
182368
 
-
 
182369
      _Fields(short thriftId, String fieldName) {
-
 
182370
        _thriftId = thriftId;
-
 
182371
        _fieldName = fieldName;
-
 
182372
      }
-
 
182373
 
-
 
182374
      public short getThriftFieldId() {
-
 
182375
        return _thriftId;
-
 
182376
      }
-
 
182377
 
-
 
182378
      public String getFieldName() {
-
 
182379
        return _fieldName;
-
 
182380
      }
-
 
182381
    }
-
 
182382
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
182383
    static {
-
 
182384
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
182385
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
182386
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerificationPendingOrdersFK_args.class, metaDataMap);
-
 
182387
    }
-
 
182388
 
-
 
182389
    public getVerificationPendingOrdersFK_args() {
-
 
182390
    }
-
 
182391
 
-
 
182392
    /**
-
 
182393
     * Performs a deep copy on <i>other</i>.
-
 
182394
     */
-
 
182395
    public getVerificationPendingOrdersFK_args(getVerificationPendingOrdersFK_args other) {
-
 
182396
    }
-
 
182397
 
-
 
182398
    public getVerificationPendingOrdersFK_args deepCopy() {
-
 
182399
      return new getVerificationPendingOrdersFK_args(this);
-
 
182400
    }
-
 
182401
 
-
 
182402
    @Override
-
 
182403
    public void clear() {
-
 
182404
    }
-
 
182405
 
-
 
182406
    public void setFieldValue(_Fields field, Object value) {
-
 
182407
      switch (field) {
-
 
182408
      }
-
 
182409
    }
-
 
182410
 
-
 
182411
    public Object getFieldValue(_Fields field) {
-
 
182412
      switch (field) {
-
 
182413
      }
-
 
182414
      throw new IllegalStateException();
-
 
182415
    }
-
 
182416
 
-
 
182417
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
182418
    public boolean isSet(_Fields field) {
-
 
182419
      if (field == null) {
-
 
182420
        throw new IllegalArgumentException();
-
 
182421
      }
-
 
182422
 
-
 
182423
      switch (field) {
-
 
182424
      }
-
 
182425
      throw new IllegalStateException();
-
 
182426
    }
-
 
182427
 
-
 
182428
    @Override
-
 
182429
    public boolean equals(Object that) {
-
 
182430
      if (that == null)
-
 
182431
        return false;
-
 
182432
      if (that instanceof getVerificationPendingOrdersFK_args)
-
 
182433
        return this.equals((getVerificationPendingOrdersFK_args)that);
-
 
182434
      return false;
-
 
182435
    }
-
 
182436
 
-
 
182437
    public boolean equals(getVerificationPendingOrdersFK_args that) {
-
 
182438
      if (that == null)
-
 
182439
        return false;
-
 
182440
 
-
 
182441
      return true;
-
 
182442
    }
-
 
182443
 
-
 
182444
    @Override
-
 
182445
    public int hashCode() {
-
 
182446
      return 0;
-
 
182447
    }
-
 
182448
 
-
 
182449
    public int compareTo(getVerificationPendingOrdersFK_args other) {
-
 
182450
      if (!getClass().equals(other.getClass())) {
-
 
182451
        return getClass().getName().compareTo(other.getClass().getName());
-
 
182452
      }
-
 
182453
 
-
 
182454
      int lastComparison = 0;
-
 
182455
      getVerificationPendingOrdersFK_args typedOther = (getVerificationPendingOrdersFK_args)other;
-
 
182456
 
-
 
182457
      return 0;
-
 
182458
    }
-
 
182459
 
-
 
182460
    public _Fields fieldForId(int fieldId) {
-
 
182461
      return _Fields.findByThriftId(fieldId);
-
 
182462
    }
-
 
182463
 
-
 
182464
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
182465
      org.apache.thrift.protocol.TField field;
-
 
182466
      iprot.readStructBegin();
-
 
182467
      while (true)
-
 
182468
      {
-
 
182469
        field = iprot.readFieldBegin();
-
 
182470
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
182471
          break;
-
 
182472
        }
-
 
182473
        switch (field.id) {
-
 
182474
          default:
-
 
182475
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
182476
        }
-
 
182477
        iprot.readFieldEnd();
-
 
182478
      }
-
 
182479
      iprot.readStructEnd();
-
 
182480
      validate();
-
 
182481
    }
-
 
182482
 
-
 
182483
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
182484
      validate();
-
 
182485
 
-
 
182486
      oprot.writeStructBegin(STRUCT_DESC);
-
 
182487
      oprot.writeFieldStop();
-
 
182488
      oprot.writeStructEnd();
-
 
182489
    }
-
 
182490
 
-
 
182491
    @Override
-
 
182492
    public String toString() {
-
 
182493
      StringBuilder sb = new StringBuilder("getVerificationPendingOrdersFK_args(");
-
 
182494
      boolean first = true;
-
 
182495
 
-
 
182496
      sb.append(")");
-
 
182497
      return sb.toString();
-
 
182498
    }
-
 
182499
 
-
 
182500
    public void validate() throws org.apache.thrift.TException {
-
 
182501
      // check for required fields
-
 
182502
    }
-
 
182503
 
-
 
182504
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
182505
      try {
-
 
182506
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
182507
      } catch (org.apache.thrift.TException te) {
-
 
182508
        throw new java.io.IOException(te);
-
 
182509
      }
-
 
182510
    }
-
 
182511
 
-
 
182512
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
182513
      try {
-
 
182514
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
182515
      } catch (org.apache.thrift.TException te) {
-
 
182516
        throw new java.io.IOException(te);
-
 
182517
      }
-
 
182518
    }
-
 
182519
 
-
 
182520
  }
-
 
182521
 
-
 
182522
  public static class getVerificationPendingOrdersFK_result implements org.apache.thrift.TBase<getVerificationPendingOrdersFK_result, getVerificationPendingOrdersFK_result._Fields>, java.io.Serializable, Cloneable   {
-
 
182523
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerificationPendingOrdersFK_result");
-
 
182524
 
-
 
182525
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
182526
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
182527
 
-
 
182528
    private List<FlipkartOrder> success; // required
-
 
182529
    private TransactionServiceException ex; // required
-
 
182530
 
-
 
182531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
182532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
182533
      SUCCESS((short)0, "success"),
-
 
182534
      EX((short)1, "ex");
-
 
182535
 
-
 
182536
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
182537
 
-
 
182538
      static {
-
 
182539
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
182540
          byName.put(field.getFieldName(), field);
-
 
182541
        }
-
 
182542
      }
-
 
182543
 
-
 
182544
      /**
-
 
182545
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
182546
       */
-
 
182547
      public static _Fields findByThriftId(int fieldId) {
-
 
182548
        switch(fieldId) {
-
 
182549
          case 0: // SUCCESS
-
 
182550
            return SUCCESS;
-
 
182551
          case 1: // EX
-
 
182552
            return EX;
-
 
182553
          default:
-
 
182554
            return null;
-
 
182555
        }
-
 
182556
      }
-
 
182557
 
-
 
182558
      /**
-
 
182559
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
182560
       * if it is not found.
-
 
182561
       */
-
 
182562
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
182563
        _Fields fields = findByThriftId(fieldId);
-
 
182564
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
182565
        return fields;
-
 
182566
      }
-
 
182567
 
-
 
182568
      /**
-
 
182569
       * Find the _Fields constant that matches name, or null if its not found.
-
 
182570
       */
-
 
182571
      public static _Fields findByName(String name) {
-
 
182572
        return byName.get(name);
-
 
182573
      }
-
 
182574
 
-
 
182575
      private final short _thriftId;
-
 
182576
      private final String _fieldName;
-
 
182577
 
-
 
182578
      _Fields(short thriftId, String fieldName) {
-
 
182579
        _thriftId = thriftId;
-
 
182580
        _fieldName = fieldName;
-
 
182581
      }
-
 
182582
 
-
 
182583
      public short getThriftFieldId() {
-
 
182584
        return _thriftId;
-
 
182585
      }
-
 
182586
 
-
 
182587
      public String getFieldName() {
-
 
182588
        return _fieldName;
-
 
182589
      }
-
 
182590
    }
-
 
182591
 
-
 
182592
    // isset id assignments
-
 
182593
 
-
 
182594
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
182595
    static {
-
 
182596
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
182597
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
182598
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
182599
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartOrder.class))));
-
 
182600
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
182601
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
182602
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
182603
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerificationPendingOrdersFK_result.class, metaDataMap);
-
 
182604
    }
-
 
182605
 
-
 
182606
    public getVerificationPendingOrdersFK_result() {
-
 
182607
    }
-
 
182608
 
-
 
182609
    public getVerificationPendingOrdersFK_result(
-
 
182610
      List<FlipkartOrder> success,
-
 
182611
      TransactionServiceException ex)
-
 
182612
    {
-
 
182613
      this();
-
 
182614
      this.success = success;
-
 
182615
      this.ex = ex;
-
 
182616
    }
-
 
182617
 
-
 
182618
    /**
-
 
182619
     * Performs a deep copy on <i>other</i>.
-
 
182620
     */
-
 
182621
    public getVerificationPendingOrdersFK_result(getVerificationPendingOrdersFK_result other) {
-
 
182622
      if (other.isSetSuccess()) {
-
 
182623
        List<FlipkartOrder> __this__success = new ArrayList<FlipkartOrder>();
-
 
182624
        for (FlipkartOrder other_element : other.success) {
-
 
182625
          __this__success.add(new FlipkartOrder(other_element));
-
 
182626
        }
-
 
182627
        this.success = __this__success;
-
 
182628
      }
-
 
182629
      if (other.isSetEx()) {
-
 
182630
        this.ex = new TransactionServiceException(other.ex);
-
 
182631
      }
-
 
182632
    }
-
 
182633
 
-
 
182634
    public getVerificationPendingOrdersFK_result deepCopy() {
-
 
182635
      return new getVerificationPendingOrdersFK_result(this);
-
 
182636
    }
-
 
182637
 
-
 
182638
    @Override
-
 
182639
    public void clear() {
-
 
182640
      this.success = null;
-
 
182641
      this.ex = null;
-
 
182642
    }
-
 
182643
 
-
 
182644
    public int getSuccessSize() {
-
 
182645
      return (this.success == null) ? 0 : this.success.size();
-
 
182646
    }
-
 
182647
 
-
 
182648
    public java.util.Iterator<FlipkartOrder> getSuccessIterator() {
-
 
182649
      return (this.success == null) ? null : this.success.iterator();
-
 
182650
    }
-
 
182651
 
-
 
182652
    public void addToSuccess(FlipkartOrder elem) {
-
 
182653
      if (this.success == null) {
-
 
182654
        this.success = new ArrayList<FlipkartOrder>();
-
 
182655
      }
-
 
182656
      this.success.add(elem);
-
 
182657
    }
-
 
182658
 
-
 
182659
    public List<FlipkartOrder> getSuccess() {
-
 
182660
      return this.success;
-
 
182661
    }
-
 
182662
 
-
 
182663
    public void setSuccess(List<FlipkartOrder> success) {
-
 
182664
      this.success = success;
-
 
182665
    }
-
 
182666
 
-
 
182667
    public void unsetSuccess() {
-
 
182668
      this.success = null;
-
 
182669
    }
-
 
182670
 
-
 
182671
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
182672
    public boolean isSetSuccess() {
-
 
182673
      return this.success != null;
-
 
182674
    }
-
 
182675
 
-
 
182676
    public void setSuccessIsSet(boolean value) {
-
 
182677
      if (!value) {
-
 
182678
        this.success = null;
-
 
182679
      }
-
 
182680
    }
-
 
182681
 
-
 
182682
    public TransactionServiceException getEx() {
-
 
182683
      return this.ex;
-
 
182684
    }
-
 
182685
 
-
 
182686
    public void setEx(TransactionServiceException ex) {
-
 
182687
      this.ex = ex;
-
 
182688
    }
-
 
182689
 
-
 
182690
    public void unsetEx() {
-
 
182691
      this.ex = null;
-
 
182692
    }
-
 
182693
 
-
 
182694
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
182695
    public boolean isSetEx() {
-
 
182696
      return this.ex != null;
-
 
182697
    }
-
 
182698
 
-
 
182699
    public void setExIsSet(boolean value) {
-
 
182700
      if (!value) {
-
 
182701
        this.ex = null;
-
 
182702
      }
-
 
182703
    }
-
 
182704
 
-
 
182705
    public void setFieldValue(_Fields field, Object value) {
-
 
182706
      switch (field) {
-
 
182707
      case SUCCESS:
-
 
182708
        if (value == null) {
-
 
182709
          unsetSuccess();
-
 
182710
        } else {
-
 
182711
          setSuccess((List<FlipkartOrder>)value);
-
 
182712
        }
-
 
182713
        break;
-
 
182714
 
-
 
182715
      case EX:
-
 
182716
        if (value == null) {
-
 
182717
          unsetEx();
-
 
182718
        } else {
-
 
182719
          setEx((TransactionServiceException)value);
-
 
182720
        }
-
 
182721
        break;
-
 
182722
 
-
 
182723
      }
-
 
182724
    }
-
 
182725
 
-
 
182726
    public Object getFieldValue(_Fields field) {
-
 
182727
      switch (field) {
-
 
182728
      case SUCCESS:
-
 
182729
        return getSuccess();
-
 
182730
 
-
 
182731
      case EX:
-
 
182732
        return getEx();
-
 
182733
 
-
 
182734
      }
-
 
182735
      throw new IllegalStateException();
-
 
182736
    }
-
 
182737
 
-
 
182738
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
182739
    public boolean isSet(_Fields field) {
-
 
182740
      if (field == null) {
-
 
182741
        throw new IllegalArgumentException();
-
 
182742
      }
-
 
182743
 
-
 
182744
      switch (field) {
-
 
182745
      case SUCCESS:
-
 
182746
        return isSetSuccess();
-
 
182747
      case EX:
-
 
182748
        return isSetEx();
-
 
182749
      }
-
 
182750
      throw new IllegalStateException();
-
 
182751
    }
-
 
182752
 
-
 
182753
    @Override
-
 
182754
    public boolean equals(Object that) {
-
 
182755
      if (that == null)
-
 
182756
        return false;
-
 
182757
      if (that instanceof getVerificationPendingOrdersFK_result)
-
 
182758
        return this.equals((getVerificationPendingOrdersFK_result)that);
-
 
182759
      return false;
-
 
182760
    }
-
 
182761
 
-
 
182762
    public boolean equals(getVerificationPendingOrdersFK_result that) {
-
 
182763
      if (that == null)
-
 
182764
        return false;
-
 
182765
 
-
 
182766
      boolean this_present_success = true && this.isSetSuccess();
-
 
182767
      boolean that_present_success = true && that.isSetSuccess();
-
 
182768
      if (this_present_success || that_present_success) {
-
 
182769
        if (!(this_present_success && that_present_success))
-
 
182770
          return false;
-
 
182771
        if (!this.success.equals(that.success))
-
 
182772
          return false;
-
 
182773
      }
-
 
182774
 
-
 
182775
      boolean this_present_ex = true && this.isSetEx();
-
 
182776
      boolean that_present_ex = true && that.isSetEx();
-
 
182777
      if (this_present_ex || that_present_ex) {
-
 
182778
        if (!(this_present_ex && that_present_ex))
-
 
182779
          return false;
-
 
182780
        if (!this.ex.equals(that.ex))
-
 
182781
          return false;
-
 
182782
      }
-
 
182783
 
-
 
182784
      return true;
-
 
182785
    }
-
 
182786
 
-
 
182787
    @Override
-
 
182788
    public int hashCode() {
-
 
182789
      return 0;
-
 
182790
    }
-
 
182791
 
-
 
182792
    public int compareTo(getVerificationPendingOrdersFK_result other) {
-
 
182793
      if (!getClass().equals(other.getClass())) {
-
 
182794
        return getClass().getName().compareTo(other.getClass().getName());
-
 
182795
      }
-
 
182796
 
-
 
182797
      int lastComparison = 0;
-
 
182798
      getVerificationPendingOrdersFK_result typedOther = (getVerificationPendingOrdersFK_result)other;
-
 
182799
 
-
 
182800
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
182801
      if (lastComparison != 0) {
-
 
182802
        return lastComparison;
-
 
182803
      }
-
 
182804
      if (isSetSuccess()) {
-
 
182805
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
182806
        if (lastComparison != 0) {
-
 
182807
          return lastComparison;
-
 
182808
        }
-
 
182809
      }
-
 
182810
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
182811
      if (lastComparison != 0) {
-
 
182812
        return lastComparison;
-
 
182813
      }
-
 
182814
      if (isSetEx()) {
-
 
182815
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
182816
        if (lastComparison != 0) {
-
 
182817
          return lastComparison;
-
 
182818
        }
-
 
182819
      }
-
 
182820
      return 0;
-
 
182821
    }
-
 
182822
 
-
 
182823
    public _Fields fieldForId(int fieldId) {
-
 
182824
      return _Fields.findByThriftId(fieldId);
-
 
182825
    }
-
 
182826
 
-
 
182827
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
182828
      org.apache.thrift.protocol.TField field;
-
 
182829
      iprot.readStructBegin();
-
 
182830
      while (true)
-
 
182831
      {
-
 
182832
        field = iprot.readFieldBegin();
-
 
182833
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
182834
          break;
-
 
182835
        }
-
 
182836
        switch (field.id) {
-
 
182837
          case 0: // SUCCESS
-
 
182838
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
182839
              {
-
 
182840
                org.apache.thrift.protocol.TList _list577 = iprot.readListBegin();
-
 
182841
                this.success = new ArrayList<FlipkartOrder>(_list577.size);
-
 
182842
                for (int _i578 = 0; _i578 < _list577.size; ++_i578)
-
 
182843
                {
-
 
182844
                  FlipkartOrder _elem579; // required
-
 
182845
                  _elem579 = new FlipkartOrder();
-
 
182846
                  _elem579.read(iprot);
-
 
182847
                  this.success.add(_elem579);
-
 
182848
                }
-
 
182849
                iprot.readListEnd();
-
 
182850
              }
-
 
182851
            } else { 
-
 
182852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
182853
            }
-
 
182854
            break;
-
 
182855
          case 1: // EX
-
 
182856
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
182857
              this.ex = new TransactionServiceException();
-
 
182858
              this.ex.read(iprot);
-
 
182859
            } else { 
-
 
182860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
182861
            }
-
 
182862
            break;
-
 
182863
          default:
-
 
182864
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
182865
        }
-
 
182866
        iprot.readFieldEnd();
-
 
182867
      }
-
 
182868
      iprot.readStructEnd();
-
 
182869
      validate();
-
 
182870
    }
-
 
182871
 
-
 
182872
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
182873
      oprot.writeStructBegin(STRUCT_DESC);
-
 
182874
 
-
 
182875
      if (this.isSetSuccess()) {
-
 
182876
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
182877
        {
-
 
182878
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
182879
          for (FlipkartOrder _iter580 : this.success)
-
 
182880
          {
-
 
182881
            _iter580.write(oprot);
-
 
182882
          }
-
 
182883
          oprot.writeListEnd();
-
 
182884
        }
-
 
182885
        oprot.writeFieldEnd();
-
 
182886
      } else if (this.isSetEx()) {
-
 
182887
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
182888
        this.ex.write(oprot);
-
 
182889
        oprot.writeFieldEnd();
-
 
182890
      }
-
 
182891
      oprot.writeFieldStop();
-
 
182892
      oprot.writeStructEnd();
-
 
182893
    }
-
 
182894
 
-
 
182895
    @Override
-
 
182896
    public String toString() {
-
 
182897
      StringBuilder sb = new StringBuilder("getVerificationPendingOrdersFK_result(");
-
 
182898
      boolean first = true;
-
 
182899
 
-
 
182900
      sb.append("success:");
-
 
182901
      if (this.success == null) {
-
 
182902
        sb.append("null");
182205
      } else {
182903
      } else {
182206
        sb.append(this.success);
182904
        sb.append(this.success);
182207
      }
182905
      }
182208
      first = false;
182906
      first = false;
182209
      if (!first) sb.append(", ");
182907
      if (!first) sb.append(", ");