Subversion Repositories SmartDukaan

Rev

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

Rev 5067 Rev 5099
Line 773... Line 773...
773
 
773
 
774
    public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;
774
    public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;
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;
-
 
779
 
778
  }
780
  }
779
 
781
 
780
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
782
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
781
 
783
 
782
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
784
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 993... Line 995...
993
 
995
 
994
    public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;
996
    public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;
995
 
997
 
996
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
998
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
997
 
999
 
-
 
1000
    public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException;
-
 
1001
 
998
  }
1002
  }
999
 
1003
 
1000
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1004
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1001
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1005
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1002
      public Factory() {}
1006
      public Factory() {}
Line 3776... Line 3780...
3776
        throw result.ex;
3780
        throw result.ex;
3777
      }
3781
      }
3778
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");
3782
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");
3779
    }
3783
    }
3780
 
3784
 
-
 
3785
    public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
3786
    {
-
 
3787
      send_updateOrderAsPaidToVendor(orderId);
-
 
3788
      recv_updateOrderAsPaidToVendor();
-
 
3789
    }
-
 
3790
 
-
 
3791
    public void send_updateOrderAsPaidToVendor(long orderId) throws org.apache.thrift.TException
-
 
3792
    {
-
 
3793
      updateOrderAsPaidToVendor_args args = new updateOrderAsPaidToVendor_args();
-
 
3794
      args.setOrderId(orderId);
-
 
3795
      sendBase("updateOrderAsPaidToVendor", args);
-
 
3796
    }
-
 
3797
 
-
 
3798
    public void recv_updateOrderAsPaidToVendor() throws TransactionServiceException, org.apache.thrift.TException
-
 
3799
    {
-
 
3800
      updateOrderAsPaidToVendor_result result = new updateOrderAsPaidToVendor_result();
-
 
3801
      receiveBase(result, "updateOrderAsPaidToVendor");
-
 
3802
      if (result.ex != null) {
-
 
3803
        throw result.ex;
-
 
3804
      }
-
 
3805
      return;
-
 
3806
    }
-
 
3807
 
3781
  }
3808
  }
3782
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3809
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3783
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3810
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3784
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3811
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3785
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3812
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 7577... Line 7604...
7577
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7604
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7578
        return (new Client(prot)).recv_getOrderIdsForStatus();
7605
        return (new Client(prot)).recv_getOrderIdsForStatus();
7579
      }
7606
      }
7580
    }
7607
    }
7581
 
7608
 
-
 
7609
    public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException {
-
 
7610
      checkReady();
-
 
7611
      updateOrderAsPaidToVendor_call method_call = new updateOrderAsPaidToVendor_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
7612
      this.___currentMethod = method_call;
-
 
7613
      ___manager.call(method_call);
-
 
7614
    }
-
 
7615
 
-
 
7616
    public static class updateOrderAsPaidToVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7617
      private long orderId;
-
 
7618
      public updateOrderAsPaidToVendor_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<updateOrderAsPaidToVendor_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 {
-
 
7619
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7620
        this.orderId = orderId;
-
 
7621
      }
-
 
7622
 
-
 
7623
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7624
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOrderAsPaidToVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7625
        updateOrderAsPaidToVendor_args args = new updateOrderAsPaidToVendor_args();
-
 
7626
        args.setOrderId(orderId);
-
 
7627
        args.write(prot);
-
 
7628
        prot.writeMessageEnd();
-
 
7629
      }
-
 
7630
 
-
 
7631
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
7632
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7633
          throw new IllegalStateException("Method call not finished!");
-
 
7634
        }
-
 
7635
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7636
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7637
        (new Client(prot)).recv_updateOrderAsPaidToVendor();
-
 
7638
      }
-
 
7639
    }
-
 
7640
 
7582
  }
7641
  }
7583
 
7642
 
7584
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7643
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7585
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7644
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7586
    public Processor(I iface) {
7645
    public Processor(I iface) {
Line 7698... Line 7757...
7698
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
7757
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
7699
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
7758
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
7700
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7759
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7701
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7760
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7702
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
7761
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
-
 
7762
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
7703
      return processMap;
7763
      return processMap;
7704
    }
7764
    }
7705
 
7765
 
7706
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
7766
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
7707
      public createTransaction() {
7767
      public createTransaction() {
Line 9798... Line 9858...
9798
        }
9858
        }
9799
        return result;
9859
        return result;
9800
      }
9860
      }
9801
    }
9861
    }
9802
 
9862
 
-
 
9863
    private static class updateOrderAsPaidToVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrderAsPaidToVendor_args> {
-
 
9864
      public updateOrderAsPaidToVendor() {
-
 
9865
        super("updateOrderAsPaidToVendor");
-
 
9866
      }
-
 
9867
 
-
 
9868
      protected updateOrderAsPaidToVendor_args getEmptyArgsInstance() {
-
 
9869
        return new updateOrderAsPaidToVendor_args();
-
 
9870
      }
-
 
9871
 
-
 
9872
      protected updateOrderAsPaidToVendor_result getResult(I iface, updateOrderAsPaidToVendor_args args) throws org.apache.thrift.TException {
-
 
9873
        updateOrderAsPaidToVendor_result result = new updateOrderAsPaidToVendor_result();
-
 
9874
        try {
-
 
9875
          iface.updateOrderAsPaidToVendor(args.orderId);
-
 
9876
        } catch (TransactionServiceException ex) {
-
 
9877
          result.ex = ex;
-
 
9878
        }
-
 
9879
        return result;
-
 
9880
      }
-
 
9881
    }
-
 
9882
 
9803
  }
9883
  }
9804
 
9884
 
9805
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
9885
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
9806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
9886
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
9807
 
9887
 
Line 89697... Line 89777...
89697
      sb.append("ex:");
89777
      sb.append("ex:");
89698
      if (this.ex == null) {
89778
      if (this.ex == null) {
89699
        sb.append("null");
89779
        sb.append("null");
89700
      } else {
89780
      } else {
89701
        sb.append(this.ex);
89781
        sb.append(this.ex);
-
 
89782
      }
-
 
89783
      first = false;
-
 
89784
      sb.append(")");
-
 
89785
      return sb.toString();
-
 
89786
    }
-
 
89787
 
-
 
89788
    public void validate() throws org.apache.thrift.TException {
-
 
89789
      // check for required fields
-
 
89790
    }
-
 
89791
 
-
 
89792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
89793
      try {
-
 
89794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
89795
      } catch (org.apache.thrift.TException te) {
-
 
89796
        throw new java.io.IOException(te);
-
 
89797
      }
-
 
89798
    }
-
 
89799
 
-
 
89800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
89801
      try {
-
 
89802
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
89803
      } catch (org.apache.thrift.TException te) {
-
 
89804
        throw new java.io.IOException(te);
-
 
89805
      }
-
 
89806
    }
-
 
89807
 
-
 
89808
  }
-
 
89809
 
-
 
89810
  public static class updateOrderAsPaidToVendor_args implements org.apache.thrift.TBase<updateOrderAsPaidToVendor_args, updateOrderAsPaidToVendor_args._Fields>, java.io.Serializable, Cloneable   {
-
 
89811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderAsPaidToVendor_args");
-
 
89812
 
-
 
89813
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
89814
 
-
 
89815
    private long orderId; // required
-
 
89816
 
-
 
89817
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
89818
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
89819
      ORDER_ID((short)1, "orderId");
-
 
89820
 
-
 
89821
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
89822
 
-
 
89823
      static {
-
 
89824
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
89825
          byName.put(field.getFieldName(), field);
-
 
89826
        }
-
 
89827
      }
-
 
89828
 
-
 
89829
      /**
-
 
89830
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
89831
       */
-
 
89832
      public static _Fields findByThriftId(int fieldId) {
-
 
89833
        switch(fieldId) {
-
 
89834
          case 1: // ORDER_ID
-
 
89835
            return ORDER_ID;
-
 
89836
          default:
-
 
89837
            return null;
-
 
89838
        }
-
 
89839
      }
-
 
89840
 
-
 
89841
      /**
-
 
89842
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
89843
       * if it is not found.
-
 
89844
       */
-
 
89845
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
89846
        _Fields fields = findByThriftId(fieldId);
-
 
89847
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
89848
        return fields;
-
 
89849
      }
-
 
89850
 
-
 
89851
      /**
-
 
89852
       * Find the _Fields constant that matches name, or null if its not found.
-
 
89853
       */
-
 
89854
      public static _Fields findByName(String name) {
-
 
89855
        return byName.get(name);
-
 
89856
      }
-
 
89857
 
-
 
89858
      private final short _thriftId;
-
 
89859
      private final String _fieldName;
-
 
89860
 
-
 
89861
      _Fields(short thriftId, String fieldName) {
-
 
89862
        _thriftId = thriftId;
-
 
89863
        _fieldName = fieldName;
-
 
89864
      }
-
 
89865
 
-
 
89866
      public short getThriftFieldId() {
-
 
89867
        return _thriftId;
-
 
89868
      }
-
 
89869
 
-
 
89870
      public String getFieldName() {
-
 
89871
        return _fieldName;
-
 
89872
      }
-
 
89873
    }
-
 
89874
 
-
 
89875
    // isset id assignments
-
 
89876
    private static final int __ORDERID_ISSET_ID = 0;
-
 
89877
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
89878
 
-
 
89879
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
89880
    static {
-
 
89881
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
89882
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
89883
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
89884
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
89885
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderAsPaidToVendor_args.class, metaDataMap);
-
 
89886
    }
-
 
89887
 
-
 
89888
    public updateOrderAsPaidToVendor_args() {
-
 
89889
    }
-
 
89890
 
-
 
89891
    public updateOrderAsPaidToVendor_args(
-
 
89892
      long orderId)
-
 
89893
    {
-
 
89894
      this();
-
 
89895
      this.orderId = orderId;
-
 
89896
      setOrderIdIsSet(true);
-
 
89897
    }
-
 
89898
 
-
 
89899
    /**
-
 
89900
     * Performs a deep copy on <i>other</i>.
-
 
89901
     */
-
 
89902
    public updateOrderAsPaidToVendor_args(updateOrderAsPaidToVendor_args other) {
-
 
89903
      __isset_bit_vector.clear();
-
 
89904
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
89905
      this.orderId = other.orderId;
-
 
89906
    }
-
 
89907
 
-
 
89908
    public updateOrderAsPaidToVendor_args deepCopy() {
-
 
89909
      return new updateOrderAsPaidToVendor_args(this);
-
 
89910
    }
-
 
89911
 
-
 
89912
    @Override
-
 
89913
    public void clear() {
-
 
89914
      setOrderIdIsSet(false);
-
 
89915
      this.orderId = 0;
-
 
89916
    }
-
 
89917
 
-
 
89918
    public long getOrderId() {
-
 
89919
      return this.orderId;
-
 
89920
    }
-
 
89921
 
-
 
89922
    public void setOrderId(long orderId) {
-
 
89923
      this.orderId = orderId;
-
 
89924
      setOrderIdIsSet(true);
-
 
89925
    }
-
 
89926
 
-
 
89927
    public void unsetOrderId() {
-
 
89928
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
89929
    }
-
 
89930
 
-
 
89931
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
89932
    public boolean isSetOrderId() {
-
 
89933
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
89934
    }
-
 
89935
 
-
 
89936
    public void setOrderIdIsSet(boolean value) {
-
 
89937
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
89938
    }
-
 
89939
 
-
 
89940
    public void setFieldValue(_Fields field, Object value) {
-
 
89941
      switch (field) {
-
 
89942
      case ORDER_ID:
-
 
89943
        if (value == null) {
-
 
89944
          unsetOrderId();
-
 
89945
        } else {
-
 
89946
          setOrderId((Long)value);
-
 
89947
        }
-
 
89948
        break;
-
 
89949
 
-
 
89950
      }
-
 
89951
    }
-
 
89952
 
-
 
89953
    public Object getFieldValue(_Fields field) {
-
 
89954
      switch (field) {
-
 
89955
      case ORDER_ID:
-
 
89956
        return Long.valueOf(getOrderId());
-
 
89957
 
-
 
89958
      }
-
 
89959
      throw new IllegalStateException();
-
 
89960
    }
-
 
89961
 
-
 
89962
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
89963
    public boolean isSet(_Fields field) {
-
 
89964
      if (field == null) {
-
 
89965
        throw new IllegalArgumentException();
-
 
89966
      }
-
 
89967
 
-
 
89968
      switch (field) {
-
 
89969
      case ORDER_ID:
-
 
89970
        return isSetOrderId();
-
 
89971
      }
-
 
89972
      throw new IllegalStateException();
-
 
89973
    }
-
 
89974
 
-
 
89975
    @Override
-
 
89976
    public boolean equals(Object that) {
-
 
89977
      if (that == null)
-
 
89978
        return false;
-
 
89979
      if (that instanceof updateOrderAsPaidToVendor_args)
-
 
89980
        return this.equals((updateOrderAsPaidToVendor_args)that);
-
 
89981
      return false;
-
 
89982
    }
-
 
89983
 
-
 
89984
    public boolean equals(updateOrderAsPaidToVendor_args that) {
-
 
89985
      if (that == null)
-
 
89986
        return false;
-
 
89987
 
-
 
89988
      boolean this_present_orderId = true;
-
 
89989
      boolean that_present_orderId = true;
-
 
89990
      if (this_present_orderId || that_present_orderId) {
-
 
89991
        if (!(this_present_orderId && that_present_orderId))
-
 
89992
          return false;
-
 
89993
        if (this.orderId != that.orderId)
-
 
89994
          return false;
-
 
89995
      }
-
 
89996
 
-
 
89997
      return true;
-
 
89998
    }
-
 
89999
 
-
 
90000
    @Override
-
 
90001
    public int hashCode() {
-
 
90002
      return 0;
-
 
90003
    }
-
 
90004
 
-
 
90005
    public int compareTo(updateOrderAsPaidToVendor_args other) {
-
 
90006
      if (!getClass().equals(other.getClass())) {
-
 
90007
        return getClass().getName().compareTo(other.getClass().getName());
-
 
90008
      }
-
 
90009
 
-
 
90010
      int lastComparison = 0;
-
 
90011
      updateOrderAsPaidToVendor_args typedOther = (updateOrderAsPaidToVendor_args)other;
-
 
90012
 
-
 
90013
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
90014
      if (lastComparison != 0) {
-
 
90015
        return lastComparison;
-
 
90016
      }
-
 
90017
      if (isSetOrderId()) {
-
 
90018
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
90019
        if (lastComparison != 0) {
-
 
90020
          return lastComparison;
-
 
90021
        }
-
 
90022
      }
-
 
90023
      return 0;
-
 
90024
    }
-
 
90025
 
-
 
90026
    public _Fields fieldForId(int fieldId) {
-
 
90027
      return _Fields.findByThriftId(fieldId);
-
 
90028
    }
-
 
90029
 
-
 
90030
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
90031
      org.apache.thrift.protocol.TField field;
-
 
90032
      iprot.readStructBegin();
-
 
90033
      while (true)
-
 
90034
      {
-
 
90035
        field = iprot.readFieldBegin();
-
 
90036
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
90037
          break;
-
 
90038
        }
-
 
90039
        switch (field.id) {
-
 
90040
          case 1: // ORDER_ID
-
 
90041
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
90042
              this.orderId = iprot.readI64();
-
 
90043
              setOrderIdIsSet(true);
-
 
90044
            } else { 
-
 
90045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90046
            }
-
 
90047
            break;
-
 
90048
          default:
-
 
90049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90050
        }
-
 
90051
        iprot.readFieldEnd();
-
 
90052
      }
-
 
90053
      iprot.readStructEnd();
-
 
90054
      validate();
-
 
90055
    }
-
 
90056
 
-
 
90057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
90058
      validate();
-
 
90059
 
-
 
90060
      oprot.writeStructBegin(STRUCT_DESC);
-
 
90061
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
90062
      oprot.writeI64(this.orderId);
-
 
90063
      oprot.writeFieldEnd();
-
 
90064
      oprot.writeFieldStop();
-
 
90065
      oprot.writeStructEnd();
-
 
90066
    }
-
 
90067
 
-
 
90068
    @Override
-
 
90069
    public String toString() {
-
 
90070
      StringBuilder sb = new StringBuilder("updateOrderAsPaidToVendor_args(");
-
 
90071
      boolean first = true;
-
 
90072
 
-
 
90073
      sb.append("orderId:");
-
 
90074
      sb.append(this.orderId);
-
 
90075
      first = false;
-
 
90076
      sb.append(")");
-
 
90077
      return sb.toString();
-
 
90078
    }
-
 
90079
 
-
 
90080
    public void validate() throws org.apache.thrift.TException {
-
 
90081
      // check for required fields
-
 
90082
    }
-
 
90083
 
-
 
90084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
90085
      try {
-
 
90086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
90087
      } catch (org.apache.thrift.TException te) {
-
 
90088
        throw new java.io.IOException(te);
-
 
90089
      }
-
 
90090
    }
-
 
90091
 
-
 
90092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
90093
      try {
-
 
90094
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
90095
        __isset_bit_vector = new BitSet(1);
-
 
90096
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
90097
      } catch (org.apache.thrift.TException te) {
-
 
90098
        throw new java.io.IOException(te);
-
 
90099
      }
-
 
90100
    }
-
 
90101
 
-
 
90102
  }
-
 
90103
 
-
 
90104
  public static class updateOrderAsPaidToVendor_result implements org.apache.thrift.TBase<updateOrderAsPaidToVendor_result, updateOrderAsPaidToVendor_result._Fields>, java.io.Serializable, Cloneable   {
-
 
90105
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderAsPaidToVendor_result");
-
 
90106
 
-
 
90107
    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);
-
 
90108
 
-
 
90109
    private TransactionServiceException ex; // required
-
 
90110
 
-
 
90111
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
90112
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
90113
      EX((short)1, "ex");
-
 
90114
 
-
 
90115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
90116
 
-
 
90117
      static {
-
 
90118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
90119
          byName.put(field.getFieldName(), field);
-
 
90120
        }
-
 
90121
      }
-
 
90122
 
-
 
90123
      /**
-
 
90124
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
90125
       */
-
 
90126
      public static _Fields findByThriftId(int fieldId) {
-
 
90127
        switch(fieldId) {
-
 
90128
          case 1: // EX
-
 
90129
            return EX;
-
 
90130
          default:
-
 
90131
            return null;
-
 
90132
        }
-
 
90133
      }
-
 
90134
 
-
 
90135
      /**
-
 
90136
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
90137
       * if it is not found.
-
 
90138
       */
-
 
90139
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
90140
        _Fields fields = findByThriftId(fieldId);
-
 
90141
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
90142
        return fields;
-
 
90143
      }
-
 
90144
 
-
 
90145
      /**
-
 
90146
       * Find the _Fields constant that matches name, or null if its not found.
-
 
90147
       */
-
 
90148
      public static _Fields findByName(String name) {
-
 
90149
        return byName.get(name);
-
 
90150
      }
-
 
90151
 
-
 
90152
      private final short _thriftId;
-
 
90153
      private final String _fieldName;
-
 
90154
 
-
 
90155
      _Fields(short thriftId, String fieldName) {
-
 
90156
        _thriftId = thriftId;
-
 
90157
        _fieldName = fieldName;
-
 
90158
      }
-
 
90159
 
-
 
90160
      public short getThriftFieldId() {
-
 
90161
        return _thriftId;
-
 
90162
      }
-
 
90163
 
-
 
90164
      public String getFieldName() {
-
 
90165
        return _fieldName;
-
 
90166
      }
-
 
90167
    }
-
 
90168
 
-
 
90169
    // isset id assignments
-
 
90170
 
-
 
90171
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
90172
    static {
-
 
90173
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
90174
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
90175
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
90176
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
90177
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderAsPaidToVendor_result.class, metaDataMap);
-
 
90178
    }
-
 
90179
 
-
 
90180
    public updateOrderAsPaidToVendor_result() {
-
 
90181
    }
-
 
90182
 
-
 
90183
    public updateOrderAsPaidToVendor_result(
-
 
90184
      TransactionServiceException ex)
-
 
90185
    {
-
 
90186
      this();
-
 
90187
      this.ex = ex;
-
 
90188
    }
-
 
90189
 
-
 
90190
    /**
-
 
90191
     * Performs a deep copy on <i>other</i>.
-
 
90192
     */
-
 
90193
    public updateOrderAsPaidToVendor_result(updateOrderAsPaidToVendor_result other) {
-
 
90194
      if (other.isSetEx()) {
-
 
90195
        this.ex = new TransactionServiceException(other.ex);
-
 
90196
      }
-
 
90197
    }
-
 
90198
 
-
 
90199
    public updateOrderAsPaidToVendor_result deepCopy() {
-
 
90200
      return new updateOrderAsPaidToVendor_result(this);
-
 
90201
    }
-
 
90202
 
-
 
90203
    @Override
-
 
90204
    public void clear() {
-
 
90205
      this.ex = null;
-
 
90206
    }
-
 
90207
 
-
 
90208
    public TransactionServiceException getEx() {
-
 
90209
      return this.ex;
-
 
90210
    }
-
 
90211
 
-
 
90212
    public void setEx(TransactionServiceException ex) {
-
 
90213
      this.ex = ex;
-
 
90214
    }
-
 
90215
 
-
 
90216
    public void unsetEx() {
-
 
90217
      this.ex = null;
-
 
90218
    }
-
 
90219
 
-
 
90220
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
90221
    public boolean isSetEx() {
-
 
90222
      return this.ex != null;
-
 
90223
    }
-
 
90224
 
-
 
90225
    public void setExIsSet(boolean value) {
-
 
90226
      if (!value) {
-
 
90227
        this.ex = null;
-
 
90228
      }
-
 
90229
    }
-
 
90230
 
-
 
90231
    public void setFieldValue(_Fields field, Object value) {
-
 
90232
      switch (field) {
-
 
90233
      case EX:
-
 
90234
        if (value == null) {
-
 
90235
          unsetEx();
-
 
90236
        } else {
-
 
90237
          setEx((TransactionServiceException)value);
-
 
90238
        }
-
 
90239
        break;
-
 
90240
 
-
 
90241
      }
-
 
90242
    }
-
 
90243
 
-
 
90244
    public Object getFieldValue(_Fields field) {
-
 
90245
      switch (field) {
-
 
90246
      case EX:
-
 
90247
        return getEx();
-
 
90248
 
-
 
90249
      }
-
 
90250
      throw new IllegalStateException();
-
 
90251
    }
-
 
90252
 
-
 
90253
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
90254
    public boolean isSet(_Fields field) {
-
 
90255
      if (field == null) {
-
 
90256
        throw new IllegalArgumentException();
-
 
90257
      }
-
 
90258
 
-
 
90259
      switch (field) {
-
 
90260
      case EX:
-
 
90261
        return isSetEx();
-
 
90262
      }
-
 
90263
      throw new IllegalStateException();
-
 
90264
    }
-
 
90265
 
-
 
90266
    @Override
-
 
90267
    public boolean equals(Object that) {
-
 
90268
      if (that == null)
-
 
90269
        return false;
-
 
90270
      if (that instanceof updateOrderAsPaidToVendor_result)
-
 
90271
        return this.equals((updateOrderAsPaidToVendor_result)that);
-
 
90272
      return false;
-
 
90273
    }
-
 
90274
 
-
 
90275
    public boolean equals(updateOrderAsPaidToVendor_result that) {
-
 
90276
      if (that == null)
-
 
90277
        return false;
-
 
90278
 
-
 
90279
      boolean this_present_ex = true && this.isSetEx();
-
 
90280
      boolean that_present_ex = true && that.isSetEx();
-
 
90281
      if (this_present_ex || that_present_ex) {
-
 
90282
        if (!(this_present_ex && that_present_ex))
-
 
90283
          return false;
-
 
90284
        if (!this.ex.equals(that.ex))
-
 
90285
          return false;
-
 
90286
      }
-
 
90287
 
-
 
90288
      return true;
-
 
90289
    }
-
 
90290
 
-
 
90291
    @Override
-
 
90292
    public int hashCode() {
-
 
90293
      return 0;
-
 
90294
    }
-
 
90295
 
-
 
90296
    public int compareTo(updateOrderAsPaidToVendor_result other) {
-
 
90297
      if (!getClass().equals(other.getClass())) {
-
 
90298
        return getClass().getName().compareTo(other.getClass().getName());
-
 
90299
      }
-
 
90300
 
-
 
90301
      int lastComparison = 0;
-
 
90302
      updateOrderAsPaidToVendor_result typedOther = (updateOrderAsPaidToVendor_result)other;
-
 
90303
 
-
 
90304
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
90305
      if (lastComparison != 0) {
-
 
90306
        return lastComparison;
-
 
90307
      }
-
 
90308
      if (isSetEx()) {
-
 
90309
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
90310
        if (lastComparison != 0) {
-
 
90311
          return lastComparison;
-
 
90312
        }
-
 
90313
      }
-
 
90314
      return 0;
-
 
90315
    }
-
 
90316
 
-
 
90317
    public _Fields fieldForId(int fieldId) {
-
 
90318
      return _Fields.findByThriftId(fieldId);
-
 
90319
    }
-
 
90320
 
-
 
90321
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
90322
      org.apache.thrift.protocol.TField field;
-
 
90323
      iprot.readStructBegin();
-
 
90324
      while (true)
-
 
90325
      {
-
 
90326
        field = iprot.readFieldBegin();
-
 
90327
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
90328
          break;
-
 
90329
        }
-
 
90330
        switch (field.id) {
-
 
90331
          case 1: // EX
-
 
90332
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
90333
              this.ex = new TransactionServiceException();
-
 
90334
              this.ex.read(iprot);
-
 
90335
            } else { 
-
 
90336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90337
            }
-
 
90338
            break;
-
 
90339
          default:
-
 
90340
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90341
        }
-
 
90342
        iprot.readFieldEnd();
-
 
90343
      }
-
 
90344
      iprot.readStructEnd();
-
 
90345
      validate();
-
 
90346
    }
-
 
90347
 
-
 
90348
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
90349
      oprot.writeStructBegin(STRUCT_DESC);
-
 
90350
 
-
 
90351
      if (this.isSetEx()) {
-
 
90352
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
90353
        this.ex.write(oprot);
-
 
90354
        oprot.writeFieldEnd();
-
 
90355
      }
-
 
90356
      oprot.writeFieldStop();
-
 
90357
      oprot.writeStructEnd();
-
 
90358
    }
-
 
90359
 
-
 
90360
    @Override
-
 
90361
    public String toString() {
-
 
90362
      StringBuilder sb = new StringBuilder("updateOrderAsPaidToVendor_result(");
-
 
90363
      boolean first = true;
-
 
90364
 
-
 
90365
      sb.append("ex:");
-
 
90366
      if (this.ex == null) {
-
 
90367
        sb.append("null");
-
 
90368
      } else {
-
 
90369
        sb.append(this.ex);
89702
      }
90370
      }
89703
      first = false;
90371
      first = false;
89704
      sb.append(")");
90372
      sb.append(")");
89705
      return sb.toString();
90373
      return sb.toString();
89706
    }
90374
    }