Subversion Repositories SmartDukaan

Rev

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

Rev 5189 Rev 5208
Line 775... Line 775...
775
 
775
 
776
    public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException;
776
    public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException;
777
 
777
 
778
    public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
778
    public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
779
 
779
 
-
 
780
    public List<Order> getRefundedOrdersMarkedPaid() throws TransactionServiceException, org.apache.thrift.TException;
-
 
781
 
780
  }
782
  }
781
 
783
 
782
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
784
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
783
 
785
 
784
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
786
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 997... Line 999...
997
 
999
 
998
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
1000
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
999
 
1001
 
1000
    public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException;
1002
    public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException;
1001
 
1003
 
-
 
1004
    public void getRefundedOrdersMarkedPaid(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRefundedOrdersMarkedPaid_call> resultHandler) throws org.apache.thrift.TException;
-
 
1005
 
1002
  }
1006
  }
1003
 
1007
 
1004
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1008
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1005
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1009
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1006
      public Factory() {}
1010
      public Factory() {}
Line 3804... Line 3808...
3804
        throw result.ex;
3808
        throw result.ex;
3805
      }
3809
      }
3806
      return;
3810
      return;
3807
    }
3811
    }
3808
 
3812
 
-
 
3813
    public List<Order> getRefundedOrdersMarkedPaid() throws TransactionServiceException, org.apache.thrift.TException
-
 
3814
    {
-
 
3815
      send_getRefundedOrdersMarkedPaid();
-
 
3816
      return recv_getRefundedOrdersMarkedPaid();
-
 
3817
    }
-
 
3818
 
-
 
3819
    public void send_getRefundedOrdersMarkedPaid() throws org.apache.thrift.TException
-
 
3820
    {
-
 
3821
      getRefundedOrdersMarkedPaid_args args = new getRefundedOrdersMarkedPaid_args();
-
 
3822
      sendBase("getRefundedOrdersMarkedPaid", args);
-
 
3823
    }
-
 
3824
 
-
 
3825
    public List<Order> recv_getRefundedOrdersMarkedPaid() throws TransactionServiceException, org.apache.thrift.TException
-
 
3826
    {
-
 
3827
      getRefundedOrdersMarkedPaid_result result = new getRefundedOrdersMarkedPaid_result();
-
 
3828
      receiveBase(result, "getRefundedOrdersMarkedPaid");
-
 
3829
      if (result.isSetSuccess()) {
-
 
3830
        return result.success;
-
 
3831
      }
-
 
3832
      if (result.ex != null) {
-
 
3833
        throw result.ex;
-
 
3834
      }
-
 
3835
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRefundedOrdersMarkedPaid failed: unknown result");
-
 
3836
    }
-
 
3837
 
3809
  }
3838
  }
3810
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3839
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3811
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3840
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3812
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3841
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3813
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3842
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 7640... Line 7669...
7640
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7669
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7641
        (new Client(prot)).recv_updateOrderAsPaidToVendor();
7670
        (new Client(prot)).recv_updateOrderAsPaidToVendor();
7642
      }
7671
      }
7643
    }
7672
    }
7644
 
7673
 
-
 
7674
    public void getRefundedOrdersMarkedPaid(org.apache.thrift.async.AsyncMethodCallback<getRefundedOrdersMarkedPaid_call> resultHandler) throws org.apache.thrift.TException {
-
 
7675
      checkReady();
-
 
7676
      getRefundedOrdersMarkedPaid_call method_call = new getRefundedOrdersMarkedPaid_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
7677
      this.___currentMethod = method_call;
-
 
7678
      ___manager.call(method_call);
-
 
7679
    }
-
 
7680
 
-
 
7681
    public static class getRefundedOrdersMarkedPaid_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7682
      public getRefundedOrdersMarkedPaid_call(org.apache.thrift.async.AsyncMethodCallback<getRefundedOrdersMarkedPaid_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 {
-
 
7683
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7684
      }
-
 
7685
 
-
 
7686
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7687
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRefundedOrdersMarkedPaid", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7688
        getRefundedOrdersMarkedPaid_args args = new getRefundedOrdersMarkedPaid_args();
-
 
7689
        args.write(prot);
-
 
7690
        prot.writeMessageEnd();
-
 
7691
      }
-
 
7692
 
-
 
7693
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
7694
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7695
          throw new IllegalStateException("Method call not finished!");
-
 
7696
        }
-
 
7697
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7698
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7699
        return (new Client(prot)).recv_getRefundedOrdersMarkedPaid();
-
 
7700
      }
-
 
7701
    }
-
 
7702
 
7645
  }
7703
  }
7646
 
7704
 
7647
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7705
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7648
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7706
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7649
    public Processor(I iface) {
7707
    public Processor(I iface) {
Line 7762... Line 7820...
7762
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
7820
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
7763
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7821
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7764
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7822
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7765
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
7823
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
7766
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
7824
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
-
 
7825
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
7767
      return processMap;
7826
      return processMap;
7768
    }
7827
    }
7769
 
7828
 
7770
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
7829
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
7771
      public createTransaction() {
7830
      public createTransaction() {
Line 9882... Line 9941...
9882
        }
9941
        }
9883
        return result;
9942
        return result;
9884
      }
9943
      }
9885
    }
9944
    }
9886
 
9945
 
-
 
9946
    private static class getRefundedOrdersMarkedPaid<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRefundedOrdersMarkedPaid_args> {
-
 
9947
      public getRefundedOrdersMarkedPaid() {
-
 
9948
        super("getRefundedOrdersMarkedPaid");
-
 
9949
      }
-
 
9950
 
-
 
9951
      protected getRefundedOrdersMarkedPaid_args getEmptyArgsInstance() {
-
 
9952
        return new getRefundedOrdersMarkedPaid_args();
-
 
9953
      }
-
 
9954
 
-
 
9955
      protected getRefundedOrdersMarkedPaid_result getResult(I iface, getRefundedOrdersMarkedPaid_args args) throws org.apache.thrift.TException {
-
 
9956
        getRefundedOrdersMarkedPaid_result result = new getRefundedOrdersMarkedPaid_result();
-
 
9957
        try {
-
 
9958
          result.success = iface.getRefundedOrdersMarkedPaid();
-
 
9959
        } catch (TransactionServiceException ex) {
-
 
9960
          result.ex = ex;
-
 
9961
        }
-
 
9962
        return result;
-
 
9963
      }
-
 
9964
    }
-
 
9965
 
9887
  }
9966
  }
9888
 
9967
 
9889
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
9968
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
9890
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
9969
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
9891
 
9970
 
Line 90452... Line 90531...
90452
      sb.append("ex:");
90531
      sb.append("ex:");
90453
      if (this.ex == null) {
90532
      if (this.ex == null) {
90454
        sb.append("null");
90533
        sb.append("null");
90455
      } else {
90534
      } else {
90456
        sb.append(this.ex);
90535
        sb.append(this.ex);
-
 
90536
      }
-
 
90537
      first = false;
-
 
90538
      sb.append(")");
-
 
90539
      return sb.toString();
-
 
90540
    }
-
 
90541
 
-
 
90542
    public void validate() throws org.apache.thrift.TException {
-
 
90543
      // check for required fields
-
 
90544
    }
-
 
90545
 
-
 
90546
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
90547
      try {
-
 
90548
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
90549
      } catch (org.apache.thrift.TException te) {
-
 
90550
        throw new java.io.IOException(te);
-
 
90551
      }
-
 
90552
    }
-
 
90553
 
-
 
90554
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
90555
      try {
-
 
90556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
90557
      } catch (org.apache.thrift.TException te) {
-
 
90558
        throw new java.io.IOException(te);
-
 
90559
      }
-
 
90560
    }
-
 
90561
 
-
 
90562
  }
-
 
90563
 
-
 
90564
  public static class getRefundedOrdersMarkedPaid_args implements org.apache.thrift.TBase<getRefundedOrdersMarkedPaid_args, getRefundedOrdersMarkedPaid_args._Fields>, java.io.Serializable, Cloneable   {
-
 
90565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRefundedOrdersMarkedPaid_args");
-
 
90566
 
-
 
90567
 
-
 
90568
 
-
 
90569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
90570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
90571
;
-
 
90572
 
-
 
90573
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
90574
 
-
 
90575
      static {
-
 
90576
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
90577
          byName.put(field.getFieldName(), field);
-
 
90578
        }
-
 
90579
      }
-
 
90580
 
-
 
90581
      /**
-
 
90582
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
90583
       */
-
 
90584
      public static _Fields findByThriftId(int fieldId) {
-
 
90585
        switch(fieldId) {
-
 
90586
          default:
-
 
90587
            return null;
-
 
90588
        }
-
 
90589
      }
-
 
90590
 
-
 
90591
      /**
-
 
90592
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
90593
       * if it is not found.
-
 
90594
       */
-
 
90595
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
90596
        _Fields fields = findByThriftId(fieldId);
-
 
90597
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
90598
        return fields;
-
 
90599
      }
-
 
90600
 
-
 
90601
      /**
-
 
90602
       * Find the _Fields constant that matches name, or null if its not found.
-
 
90603
       */
-
 
90604
      public static _Fields findByName(String name) {
-
 
90605
        return byName.get(name);
-
 
90606
      }
-
 
90607
 
-
 
90608
      private final short _thriftId;
-
 
90609
      private final String _fieldName;
-
 
90610
 
-
 
90611
      _Fields(short thriftId, String fieldName) {
-
 
90612
        _thriftId = thriftId;
-
 
90613
        _fieldName = fieldName;
-
 
90614
      }
-
 
90615
 
-
 
90616
      public short getThriftFieldId() {
-
 
90617
        return _thriftId;
-
 
90618
      }
-
 
90619
 
-
 
90620
      public String getFieldName() {
-
 
90621
        return _fieldName;
-
 
90622
      }
-
 
90623
    }
-
 
90624
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
90625
    static {
-
 
90626
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
90627
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
90628
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRefundedOrdersMarkedPaid_args.class, metaDataMap);
-
 
90629
    }
-
 
90630
 
-
 
90631
    public getRefundedOrdersMarkedPaid_args() {
-
 
90632
    }
-
 
90633
 
-
 
90634
    /**
-
 
90635
     * Performs a deep copy on <i>other</i>.
-
 
90636
     */
-
 
90637
    public getRefundedOrdersMarkedPaid_args(getRefundedOrdersMarkedPaid_args other) {
-
 
90638
    }
-
 
90639
 
-
 
90640
    public getRefundedOrdersMarkedPaid_args deepCopy() {
-
 
90641
      return new getRefundedOrdersMarkedPaid_args(this);
-
 
90642
    }
-
 
90643
 
-
 
90644
    @Override
-
 
90645
    public void clear() {
-
 
90646
    }
-
 
90647
 
-
 
90648
    public void setFieldValue(_Fields field, Object value) {
-
 
90649
      switch (field) {
-
 
90650
      }
-
 
90651
    }
-
 
90652
 
-
 
90653
    public Object getFieldValue(_Fields field) {
-
 
90654
      switch (field) {
-
 
90655
      }
-
 
90656
      throw new IllegalStateException();
-
 
90657
    }
-
 
90658
 
-
 
90659
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
90660
    public boolean isSet(_Fields field) {
-
 
90661
      if (field == null) {
-
 
90662
        throw new IllegalArgumentException();
-
 
90663
      }
-
 
90664
 
-
 
90665
      switch (field) {
-
 
90666
      }
-
 
90667
      throw new IllegalStateException();
-
 
90668
    }
-
 
90669
 
-
 
90670
    @Override
-
 
90671
    public boolean equals(Object that) {
-
 
90672
      if (that == null)
-
 
90673
        return false;
-
 
90674
      if (that instanceof getRefundedOrdersMarkedPaid_args)
-
 
90675
        return this.equals((getRefundedOrdersMarkedPaid_args)that);
-
 
90676
      return false;
-
 
90677
    }
-
 
90678
 
-
 
90679
    public boolean equals(getRefundedOrdersMarkedPaid_args that) {
-
 
90680
      if (that == null)
-
 
90681
        return false;
-
 
90682
 
-
 
90683
      return true;
-
 
90684
    }
-
 
90685
 
-
 
90686
    @Override
-
 
90687
    public int hashCode() {
-
 
90688
      return 0;
-
 
90689
    }
-
 
90690
 
-
 
90691
    public int compareTo(getRefundedOrdersMarkedPaid_args other) {
-
 
90692
      if (!getClass().equals(other.getClass())) {
-
 
90693
        return getClass().getName().compareTo(other.getClass().getName());
-
 
90694
      }
-
 
90695
 
-
 
90696
      int lastComparison = 0;
-
 
90697
      getRefundedOrdersMarkedPaid_args typedOther = (getRefundedOrdersMarkedPaid_args)other;
-
 
90698
 
-
 
90699
      return 0;
-
 
90700
    }
-
 
90701
 
-
 
90702
    public _Fields fieldForId(int fieldId) {
-
 
90703
      return _Fields.findByThriftId(fieldId);
-
 
90704
    }
-
 
90705
 
-
 
90706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
90707
      org.apache.thrift.protocol.TField field;
-
 
90708
      iprot.readStructBegin();
-
 
90709
      while (true)
-
 
90710
      {
-
 
90711
        field = iprot.readFieldBegin();
-
 
90712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
90713
          break;
-
 
90714
        }
-
 
90715
        switch (field.id) {
-
 
90716
          default:
-
 
90717
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90718
        }
-
 
90719
        iprot.readFieldEnd();
-
 
90720
      }
-
 
90721
      iprot.readStructEnd();
-
 
90722
      validate();
-
 
90723
    }
-
 
90724
 
-
 
90725
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
90726
      validate();
-
 
90727
 
-
 
90728
      oprot.writeStructBegin(STRUCT_DESC);
-
 
90729
      oprot.writeFieldStop();
-
 
90730
      oprot.writeStructEnd();
-
 
90731
    }
-
 
90732
 
-
 
90733
    @Override
-
 
90734
    public String toString() {
-
 
90735
      StringBuilder sb = new StringBuilder("getRefundedOrdersMarkedPaid_args(");
-
 
90736
      boolean first = true;
-
 
90737
 
-
 
90738
      sb.append(")");
-
 
90739
      return sb.toString();
-
 
90740
    }
-
 
90741
 
-
 
90742
    public void validate() throws org.apache.thrift.TException {
-
 
90743
      // check for required fields
-
 
90744
    }
-
 
90745
 
-
 
90746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
90747
      try {
-
 
90748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
90749
      } catch (org.apache.thrift.TException te) {
-
 
90750
        throw new java.io.IOException(te);
-
 
90751
      }
-
 
90752
    }
-
 
90753
 
-
 
90754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
90755
      try {
-
 
90756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
90757
      } catch (org.apache.thrift.TException te) {
-
 
90758
        throw new java.io.IOException(te);
-
 
90759
      }
-
 
90760
    }
-
 
90761
 
-
 
90762
  }
-
 
90763
 
-
 
90764
  public static class getRefundedOrdersMarkedPaid_result implements org.apache.thrift.TBase<getRefundedOrdersMarkedPaid_result, getRefundedOrdersMarkedPaid_result._Fields>, java.io.Serializable, Cloneable   {
-
 
90765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRefundedOrdersMarkedPaid_result");
-
 
90766
 
-
 
90767
    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);
-
 
90768
    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);
-
 
90769
 
-
 
90770
    private List<Order> success; // required
-
 
90771
    private TransactionServiceException ex; // required
-
 
90772
 
-
 
90773
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
90774
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
90775
      SUCCESS((short)0, "success"),
-
 
90776
      EX((short)1, "ex");
-
 
90777
 
-
 
90778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
90779
 
-
 
90780
      static {
-
 
90781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
90782
          byName.put(field.getFieldName(), field);
-
 
90783
        }
-
 
90784
      }
-
 
90785
 
-
 
90786
      /**
-
 
90787
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
90788
       */
-
 
90789
      public static _Fields findByThriftId(int fieldId) {
-
 
90790
        switch(fieldId) {
-
 
90791
          case 0: // SUCCESS
-
 
90792
            return SUCCESS;
-
 
90793
          case 1: // EX
-
 
90794
            return EX;
-
 
90795
          default:
-
 
90796
            return null;
-
 
90797
        }
-
 
90798
      }
-
 
90799
 
-
 
90800
      /**
-
 
90801
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
90802
       * if it is not found.
-
 
90803
       */
-
 
90804
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
90805
        _Fields fields = findByThriftId(fieldId);
-
 
90806
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
90807
        return fields;
-
 
90808
      }
-
 
90809
 
-
 
90810
      /**
-
 
90811
       * Find the _Fields constant that matches name, or null if its not found.
-
 
90812
       */
-
 
90813
      public static _Fields findByName(String name) {
-
 
90814
        return byName.get(name);
-
 
90815
      }
-
 
90816
 
-
 
90817
      private final short _thriftId;
-
 
90818
      private final String _fieldName;
-
 
90819
 
-
 
90820
      _Fields(short thriftId, String fieldName) {
-
 
90821
        _thriftId = thriftId;
-
 
90822
        _fieldName = fieldName;
-
 
90823
      }
-
 
90824
 
-
 
90825
      public short getThriftFieldId() {
-
 
90826
        return _thriftId;
-
 
90827
      }
-
 
90828
 
-
 
90829
      public String getFieldName() {
-
 
90830
        return _fieldName;
-
 
90831
      }
-
 
90832
    }
-
 
90833
 
-
 
90834
    // isset id assignments
-
 
90835
 
-
 
90836
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
90837
    static {
-
 
90838
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
90839
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
90840
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
90841
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
90842
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
90843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
90844
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
90845
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRefundedOrdersMarkedPaid_result.class, metaDataMap);
-
 
90846
    }
-
 
90847
 
-
 
90848
    public getRefundedOrdersMarkedPaid_result() {
-
 
90849
    }
-
 
90850
 
-
 
90851
    public getRefundedOrdersMarkedPaid_result(
-
 
90852
      List<Order> success,
-
 
90853
      TransactionServiceException ex)
-
 
90854
    {
-
 
90855
      this();
-
 
90856
      this.success = success;
-
 
90857
      this.ex = ex;
-
 
90858
    }
-
 
90859
 
-
 
90860
    /**
-
 
90861
     * Performs a deep copy on <i>other</i>.
-
 
90862
     */
-
 
90863
    public getRefundedOrdersMarkedPaid_result(getRefundedOrdersMarkedPaid_result other) {
-
 
90864
      if (other.isSetSuccess()) {
-
 
90865
        List<Order> __this__success = new ArrayList<Order>();
-
 
90866
        for (Order other_element : other.success) {
-
 
90867
          __this__success.add(new Order(other_element));
-
 
90868
        }
-
 
90869
        this.success = __this__success;
-
 
90870
      }
-
 
90871
      if (other.isSetEx()) {
-
 
90872
        this.ex = new TransactionServiceException(other.ex);
-
 
90873
      }
-
 
90874
    }
-
 
90875
 
-
 
90876
    public getRefundedOrdersMarkedPaid_result deepCopy() {
-
 
90877
      return new getRefundedOrdersMarkedPaid_result(this);
-
 
90878
    }
-
 
90879
 
-
 
90880
    @Override
-
 
90881
    public void clear() {
-
 
90882
      this.success = null;
-
 
90883
      this.ex = null;
-
 
90884
    }
-
 
90885
 
-
 
90886
    public int getSuccessSize() {
-
 
90887
      return (this.success == null) ? 0 : this.success.size();
-
 
90888
    }
-
 
90889
 
-
 
90890
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
90891
      return (this.success == null) ? null : this.success.iterator();
-
 
90892
    }
-
 
90893
 
-
 
90894
    public void addToSuccess(Order elem) {
-
 
90895
      if (this.success == null) {
-
 
90896
        this.success = new ArrayList<Order>();
-
 
90897
      }
-
 
90898
      this.success.add(elem);
-
 
90899
    }
-
 
90900
 
-
 
90901
    public List<Order> getSuccess() {
-
 
90902
      return this.success;
-
 
90903
    }
-
 
90904
 
-
 
90905
    public void setSuccess(List<Order> success) {
-
 
90906
      this.success = success;
-
 
90907
    }
-
 
90908
 
-
 
90909
    public void unsetSuccess() {
-
 
90910
      this.success = null;
-
 
90911
    }
-
 
90912
 
-
 
90913
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
90914
    public boolean isSetSuccess() {
-
 
90915
      return this.success != null;
-
 
90916
    }
-
 
90917
 
-
 
90918
    public void setSuccessIsSet(boolean value) {
-
 
90919
      if (!value) {
-
 
90920
        this.success = null;
-
 
90921
      }
-
 
90922
    }
-
 
90923
 
-
 
90924
    public TransactionServiceException getEx() {
-
 
90925
      return this.ex;
-
 
90926
    }
-
 
90927
 
-
 
90928
    public void setEx(TransactionServiceException ex) {
-
 
90929
      this.ex = ex;
-
 
90930
    }
-
 
90931
 
-
 
90932
    public void unsetEx() {
-
 
90933
      this.ex = null;
-
 
90934
    }
-
 
90935
 
-
 
90936
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
90937
    public boolean isSetEx() {
-
 
90938
      return this.ex != null;
-
 
90939
    }
-
 
90940
 
-
 
90941
    public void setExIsSet(boolean value) {
-
 
90942
      if (!value) {
-
 
90943
        this.ex = null;
-
 
90944
      }
-
 
90945
    }
-
 
90946
 
-
 
90947
    public void setFieldValue(_Fields field, Object value) {
-
 
90948
      switch (field) {
-
 
90949
      case SUCCESS:
-
 
90950
        if (value == null) {
-
 
90951
          unsetSuccess();
-
 
90952
        } else {
-
 
90953
          setSuccess((List<Order>)value);
-
 
90954
        }
-
 
90955
        break;
-
 
90956
 
-
 
90957
      case EX:
-
 
90958
        if (value == null) {
-
 
90959
          unsetEx();
-
 
90960
        } else {
-
 
90961
          setEx((TransactionServiceException)value);
-
 
90962
        }
-
 
90963
        break;
-
 
90964
 
-
 
90965
      }
-
 
90966
    }
-
 
90967
 
-
 
90968
    public Object getFieldValue(_Fields field) {
-
 
90969
      switch (field) {
-
 
90970
      case SUCCESS:
-
 
90971
        return getSuccess();
-
 
90972
 
-
 
90973
      case EX:
-
 
90974
        return getEx();
-
 
90975
 
-
 
90976
      }
-
 
90977
      throw new IllegalStateException();
-
 
90978
    }
-
 
90979
 
-
 
90980
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
90981
    public boolean isSet(_Fields field) {
-
 
90982
      if (field == null) {
-
 
90983
        throw new IllegalArgumentException();
-
 
90984
      }
-
 
90985
 
-
 
90986
      switch (field) {
-
 
90987
      case SUCCESS:
-
 
90988
        return isSetSuccess();
-
 
90989
      case EX:
-
 
90990
        return isSetEx();
-
 
90991
      }
-
 
90992
      throw new IllegalStateException();
-
 
90993
    }
-
 
90994
 
-
 
90995
    @Override
-
 
90996
    public boolean equals(Object that) {
-
 
90997
      if (that == null)
-
 
90998
        return false;
-
 
90999
      if (that instanceof getRefundedOrdersMarkedPaid_result)
-
 
91000
        return this.equals((getRefundedOrdersMarkedPaid_result)that);
-
 
91001
      return false;
-
 
91002
    }
-
 
91003
 
-
 
91004
    public boolean equals(getRefundedOrdersMarkedPaid_result that) {
-
 
91005
      if (that == null)
-
 
91006
        return false;
-
 
91007
 
-
 
91008
      boolean this_present_success = true && this.isSetSuccess();
-
 
91009
      boolean that_present_success = true && that.isSetSuccess();
-
 
91010
      if (this_present_success || that_present_success) {
-
 
91011
        if (!(this_present_success && that_present_success))
-
 
91012
          return false;
-
 
91013
        if (!this.success.equals(that.success))
-
 
91014
          return false;
-
 
91015
      }
-
 
91016
 
-
 
91017
      boolean this_present_ex = true && this.isSetEx();
-
 
91018
      boolean that_present_ex = true && that.isSetEx();
-
 
91019
      if (this_present_ex || that_present_ex) {
-
 
91020
        if (!(this_present_ex && that_present_ex))
-
 
91021
          return false;
-
 
91022
        if (!this.ex.equals(that.ex))
-
 
91023
          return false;
-
 
91024
      }
-
 
91025
 
-
 
91026
      return true;
-
 
91027
    }
-
 
91028
 
-
 
91029
    @Override
-
 
91030
    public int hashCode() {
-
 
91031
      return 0;
-
 
91032
    }
-
 
91033
 
-
 
91034
    public int compareTo(getRefundedOrdersMarkedPaid_result other) {
-
 
91035
      if (!getClass().equals(other.getClass())) {
-
 
91036
        return getClass().getName().compareTo(other.getClass().getName());
-
 
91037
      }
-
 
91038
 
-
 
91039
      int lastComparison = 0;
-
 
91040
      getRefundedOrdersMarkedPaid_result typedOther = (getRefundedOrdersMarkedPaid_result)other;
-
 
91041
 
-
 
91042
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
91043
      if (lastComparison != 0) {
-
 
91044
        return lastComparison;
-
 
91045
      }
-
 
91046
      if (isSetSuccess()) {
-
 
91047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
91048
        if (lastComparison != 0) {
-
 
91049
          return lastComparison;
-
 
91050
        }
-
 
91051
      }
-
 
91052
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
91053
      if (lastComparison != 0) {
-
 
91054
        return lastComparison;
-
 
91055
      }
-
 
91056
      if (isSetEx()) {
-
 
91057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
91058
        if (lastComparison != 0) {
-
 
91059
          return lastComparison;
-
 
91060
        }
-
 
91061
      }
-
 
91062
      return 0;
-
 
91063
    }
-
 
91064
 
-
 
91065
    public _Fields fieldForId(int fieldId) {
-
 
91066
      return _Fields.findByThriftId(fieldId);
-
 
91067
    }
-
 
91068
 
-
 
91069
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
91070
      org.apache.thrift.protocol.TField field;
-
 
91071
      iprot.readStructBegin();
-
 
91072
      while (true)
-
 
91073
      {
-
 
91074
        field = iprot.readFieldBegin();
-
 
91075
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
91076
          break;
-
 
91077
        }
-
 
91078
        switch (field.id) {
-
 
91079
          case 0: // SUCCESS
-
 
91080
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
91081
              {
-
 
91082
                org.apache.thrift.protocol.TList _list297 = iprot.readListBegin();
-
 
91083
                this.success = new ArrayList<Order>(_list297.size);
-
 
91084
                for (int _i298 = 0; _i298 < _list297.size; ++_i298)
-
 
91085
                {
-
 
91086
                  Order _elem299; // required
-
 
91087
                  _elem299 = new Order();
-
 
91088
                  _elem299.read(iprot);
-
 
91089
                  this.success.add(_elem299);
-
 
91090
                }
-
 
91091
                iprot.readListEnd();
-
 
91092
              }
-
 
91093
            } else { 
-
 
91094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
91095
            }
-
 
91096
            break;
-
 
91097
          case 1: // EX
-
 
91098
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
91099
              this.ex = new TransactionServiceException();
-
 
91100
              this.ex.read(iprot);
-
 
91101
            } else { 
-
 
91102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
91103
            }
-
 
91104
            break;
-
 
91105
          default:
-
 
91106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
91107
        }
-
 
91108
        iprot.readFieldEnd();
-
 
91109
      }
-
 
91110
      iprot.readStructEnd();
-
 
91111
      validate();
-
 
91112
    }
-
 
91113
 
-
 
91114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
91115
      oprot.writeStructBegin(STRUCT_DESC);
-
 
91116
 
-
 
91117
      if (this.isSetSuccess()) {
-
 
91118
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
91119
        {
-
 
91120
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
91121
          for (Order _iter300 : this.success)
-
 
91122
          {
-
 
91123
            _iter300.write(oprot);
-
 
91124
          }
-
 
91125
          oprot.writeListEnd();
-
 
91126
        }
-
 
91127
        oprot.writeFieldEnd();
-
 
91128
      } else if (this.isSetEx()) {
-
 
91129
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
91130
        this.ex.write(oprot);
-
 
91131
        oprot.writeFieldEnd();
-
 
91132
      }
-
 
91133
      oprot.writeFieldStop();
-
 
91134
      oprot.writeStructEnd();
-
 
91135
    }
-
 
91136
 
-
 
91137
    @Override
-
 
91138
    public String toString() {
-
 
91139
      StringBuilder sb = new StringBuilder("getRefundedOrdersMarkedPaid_result(");
-
 
91140
      boolean first = true;
-
 
91141
 
-
 
91142
      sb.append("success:");
-
 
91143
      if (this.success == null) {
-
 
91144
        sb.append("null");
-
 
91145
      } else {
-
 
91146
        sb.append(this.success);
-
 
91147
      }
-
 
91148
      first = false;
-
 
91149
      if (!first) sb.append(", ");
-
 
91150
      sb.append("ex:");
-
 
91151
      if (this.ex == null) {
-
 
91152
        sb.append("null");
-
 
91153
      } else {
-
 
91154
        sb.append(this.ex);
90457
      }
91155
      }
90458
      first = false;
91156
      first = false;
90459
      sb.append(")");
91157
      sb.append(")");
90460
      return sb.toString();
91158
      return sb.toString();
90461
    }
91159
    }