Subversion Repositories SmartDukaan

Rev

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

Rev 4581 Rev 4586
Line 465... Line 465...
465
     * @param returnOrderId
465
     * @param returnOrderId
466
     */
466
     */
467
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException;
467
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException;
468
 
468
 
469
    /**
469
    /**
470
     * Creates a purchase order corresponding to all the pending orders of the given warehouse.
470
     * Creates purchase orders corresponding to all the pending orders of the given warehouse.
-
 
471
     * Returns the list of PO no. of the newly created purchase order.
471
     * Returns the PO no. of the newly created purchase order. Returns -1 no new purchase order had to be created.
472
     * Returns null if no new purchase order had to be created.
472
     * 
473
     * 
473
     * @param warehouseId
474
     * @param warehouseId
474
     */
475
     */
475
    public long createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
476
    public List<Long> createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
476
 
477
 
477
    /**
478
    /**
478
     * Set the weight of the given order to the provided value. Will attempt to update the weight of the item in the catalog as well.
479
     * Set the weight of the given order to the provided value. Will attempt to update the weight of the item in the catalog as well.
479
     * 
480
     * 
480
     * @param orderId
481
     * @param orderId
Line 2324... Line 2325...
2324
        throw result.ex;
2325
        throw result.ex;
2325
      }
2326
      }
2326
      return;
2327
      return;
2327
    }
2328
    }
2328
 
2329
 
2329
    public long createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
2330
    public List<Long> createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
2330
    {
2331
    {
2331
      send_createPurchaseOrder(warehouseId);
2332
      send_createPurchaseOrder(warehouseId);
2332
      return recv_createPurchaseOrder();
2333
      return recv_createPurchaseOrder();
2333
    }
2334
    }
2334
 
2335
 
Line 2337... Line 2338...
2337
      createPurchaseOrder_args args = new createPurchaseOrder_args();
2338
      createPurchaseOrder_args args = new createPurchaseOrder_args();
2338
      args.setWarehouseId(warehouseId);
2339
      args.setWarehouseId(warehouseId);
2339
      sendBase("createPurchaseOrder", args);
2340
      sendBase("createPurchaseOrder", args);
2340
    }
2341
    }
2341
 
2342
 
2342
    public long recv_createPurchaseOrder() throws TransactionServiceException, org.apache.thrift.TException
2343
    public List<Long> recv_createPurchaseOrder() throws TransactionServiceException, org.apache.thrift.TException
2343
    {
2344
    {
2344
      createPurchaseOrder_result result = new createPurchaseOrder_result();
2345
      createPurchaseOrder_result result = new createPurchaseOrder_result();
2345
      receiveBase(result, "createPurchaseOrder");
2346
      receiveBase(result, "createPurchaseOrder");
2346
      if (result.isSetSuccess()) {
2347
      if (result.isSetSuccess()) {
2347
        return result.success;
2348
        return result.success;
Line 4946... Line 4947...
4946
        args.setWarehouseId(warehouseId);
4947
        args.setWarehouseId(warehouseId);
4947
        args.write(prot);
4948
        args.write(prot);
4948
        prot.writeMessageEnd();
4949
        prot.writeMessageEnd();
4949
      }
4950
      }
4950
 
4951
 
4951
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
4952
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
4952
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4953
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4953
          throw new IllegalStateException("Method call not finished!");
4954
          throw new IllegalStateException("Method call not finished!");
4954
        }
4955
        }
4955
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4956
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4956
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4957
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 6970... Line 6971...
6970
 
6971
 
6971
      protected createPurchaseOrder_result getResult(I iface, createPurchaseOrder_args args) throws org.apache.thrift.TException {
6972
      protected createPurchaseOrder_result getResult(I iface, createPurchaseOrder_args args) throws org.apache.thrift.TException {
6972
        createPurchaseOrder_result result = new createPurchaseOrder_result();
6973
        createPurchaseOrder_result result = new createPurchaseOrder_result();
6973
        try {
6974
        try {
6974
          result.success = iface.createPurchaseOrder(args.warehouseId);
6975
          result.success = iface.createPurchaseOrder(args.warehouseId);
6975
          result.setSuccessIsSet(true);
-
 
6976
        } catch (TransactionServiceException ex) {
6976
        } catch (TransactionServiceException ex) {
6977
          result.ex = ex;
6977
          result.ex = ex;
6978
        }
6978
        }
6979
        return result;
6979
        return result;
6980
      }
6980
      }
Line 32327... Line 32327...
32327
      }
32327
      }
32328
    }
32328
    }
32329
 
32329
 
32330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32331
      try {
32331
      try {
32332
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
32333
        __isset_bit_vector = new BitSet(1);
-
 
32334
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32332
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32335
      } catch (org.apache.thrift.TException te) {
32333
      } catch (org.apache.thrift.TException te) {
32336
        throw new java.io.IOException(te);
32334
        throw new java.io.IOException(te);
32337
      }
32335
      }
32338
    }
32336
    }
Line 50848... Line 50846...
50848
  }
50846
  }
50849
 
50847
 
50850
  public static class createPurchaseOrder_result implements org.apache.thrift.TBase<createPurchaseOrder_result, createPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
50848
  public static class createPurchaseOrder_result implements org.apache.thrift.TBase<createPurchaseOrder_result, createPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
50851
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_result");
50849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_result");
50852
 
50850
 
50853
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
50851
    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);
50854
    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);
50852
    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);
50855
 
50853
 
50856
    private long success; // required
50854
    private List<Long> success; // required
50857
    private TransactionServiceException ex; // required
50855
    private TransactionServiceException ex; // required
50858
 
50856
 
50859
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50857
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50860
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50858
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50861
      SUCCESS((short)0, "success"),
50859
      SUCCESS((short)0, "success"),
Line 50916... Line 50914...
50916
        return _fieldName;
50914
        return _fieldName;
50917
      }
50915
      }
50918
    }
50916
    }
50919
 
50917
 
50920
    // isset id assignments
50918
    // isset id assignments
50921
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
50922
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
50923
 
50919
 
50924
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50925
    static {
50921
    static {
50926
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50927
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50923
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50924
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
50928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50925
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
50929
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50926
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50927
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50928
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_result.class, metaDataMap);
50929
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_result.class, metaDataMap);
50933
    }
50930
    }
50934
 
50931
 
50935
    public createPurchaseOrder_result() {
50932
    public createPurchaseOrder_result() {
50936
    }
50933
    }
50937
 
50934
 
50938
    public createPurchaseOrder_result(
50935
    public createPurchaseOrder_result(
50939
      long success,
50936
      List<Long> success,
50940
      TransactionServiceException ex)
50937
      TransactionServiceException ex)
50941
    {
50938
    {
50942
      this();
50939
      this();
50943
      this.success = success;
50940
      this.success = success;
50944
      setSuccessIsSet(true);
-
 
50945
      this.ex = ex;
50941
      this.ex = ex;
50946
    }
50942
    }
50947
 
50943
 
50948
    /**
50944
    /**
50949
     * Performs a deep copy on <i>other</i>.
50945
     * Performs a deep copy on <i>other</i>.
50950
     */
50946
     */
50951
    public createPurchaseOrder_result(createPurchaseOrder_result other) {
50947
    public createPurchaseOrder_result(createPurchaseOrder_result other) {
50952
      __isset_bit_vector.clear();
50948
      if (other.isSetSuccess()) {
-
 
50949
        List<Long> __this__success = new ArrayList<Long>();
-
 
50950
        for (Long other_element : other.success) {
50953
      __isset_bit_vector.or(other.__isset_bit_vector);
50951
          __this__success.add(other_element);
-
 
50952
        }
50954
      this.success = other.success;
50953
        this.success = __this__success;
-
 
50954
      }
50955
      if (other.isSetEx()) {
50955
      if (other.isSetEx()) {
50956
        this.ex = new TransactionServiceException(other.ex);
50956
        this.ex = new TransactionServiceException(other.ex);
50957
      }
50957
      }
50958
    }
50958
    }
50959
 
50959
 
Line 50961... Line 50961...
50961
      return new createPurchaseOrder_result(this);
50961
      return new createPurchaseOrder_result(this);
50962
    }
50962
    }
50963
 
50963
 
50964
    @Override
50964
    @Override
50965
    public void clear() {
50965
    public void clear() {
50966
      setSuccessIsSet(false);
-
 
50967
      this.success = 0;
50966
      this.success = null;
50968
      this.ex = null;
50967
      this.ex = null;
50969
    }
50968
    }
50970
 
50969
 
-
 
50970
    public int getSuccessSize() {
-
 
50971
      return (this.success == null) ? 0 : this.success.size();
-
 
50972
    }
-
 
50973
 
-
 
50974
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
50975
      return (this.success == null) ? null : this.success.iterator();
-
 
50976
    }
-
 
50977
 
-
 
50978
    public void addToSuccess(long elem) {
-
 
50979
      if (this.success == null) {
-
 
50980
        this.success = new ArrayList<Long>();
-
 
50981
      }
-
 
50982
      this.success.add(elem);
-
 
50983
    }
-
 
50984
 
50971
    public long getSuccess() {
50985
    public List<Long> getSuccess() {
50972
      return this.success;
50986
      return this.success;
50973
    }
50987
    }
50974
 
50988
 
50975
    public void setSuccess(long success) {
50989
    public void setSuccess(List<Long> success) {
50976
      this.success = success;
50990
      this.success = success;
50977
      setSuccessIsSet(true);
-
 
50978
    }
50991
    }
50979
 
50992
 
50980
    public void unsetSuccess() {
50993
    public void unsetSuccess() {
50981
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
50994
      this.success = null;
50982
    }
50995
    }
50983
 
50996
 
50984
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
50997
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
50985
    public boolean isSetSuccess() {
50998
    public boolean isSetSuccess() {
50986
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
50999
      return this.success != null;
50987
    }
51000
    }
50988
 
51001
 
50989
    public void setSuccessIsSet(boolean value) {
51002
    public void setSuccessIsSet(boolean value) {
-
 
51003
      if (!value) {
50990
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
51004
        this.success = null;
-
 
51005
      }
50991
    }
51006
    }
50992
 
51007
 
50993
    public TransactionServiceException getEx() {
51008
    public TransactionServiceException getEx() {
50994
      return this.ex;
51009
      return this.ex;
50995
    }
51010
    }
Line 51017... Line 51032...
51017
      switch (field) {
51032
      switch (field) {
51018
      case SUCCESS:
51033
      case SUCCESS:
51019
        if (value == null) {
51034
        if (value == null) {
51020
          unsetSuccess();
51035
          unsetSuccess();
51021
        } else {
51036
        } else {
51022
          setSuccess((Long)value);
51037
          setSuccess((List<Long>)value);
51023
        }
51038
        }
51024
        break;
51039
        break;
51025
 
51040
 
51026
      case EX:
51041
      case EX:
51027
        if (value == null) {
51042
        if (value == null) {
Line 51035... Line 51050...
51035
    }
51050
    }
51036
 
51051
 
51037
    public Object getFieldValue(_Fields field) {
51052
    public Object getFieldValue(_Fields field) {
51038
      switch (field) {
51053
      switch (field) {
51039
      case SUCCESS:
51054
      case SUCCESS:
51040
        return Long.valueOf(getSuccess());
51055
        return getSuccess();
51041
 
51056
 
51042
      case EX:
51057
      case EX:
51043
        return getEx();
51058
        return getEx();
51044
 
51059
 
51045
      }
51060
      }
Line 51072... Line 51087...
51072
 
51087
 
51073
    public boolean equals(createPurchaseOrder_result that) {
51088
    public boolean equals(createPurchaseOrder_result that) {
51074
      if (that == null)
51089
      if (that == null)
51075
        return false;
51090
        return false;
51076
 
51091
 
51077
      boolean this_present_success = true;
51092
      boolean this_present_success = true && this.isSetSuccess();
51078
      boolean that_present_success = true;
51093
      boolean that_present_success = true && that.isSetSuccess();
51079
      if (this_present_success || that_present_success) {
51094
      if (this_present_success || that_present_success) {
51080
        if (!(this_present_success && that_present_success))
51095
        if (!(this_present_success && that_present_success))
51081
          return false;
51096
          return false;
51082
        if (this.success != that.success)
51097
        if (!this.success.equals(that.success))
51083
          return false;
51098
          return false;
51084
      }
51099
      }
51085
 
51100
 
51086
      boolean this_present_ex = true && this.isSetEx();
51101
      boolean this_present_ex = true && this.isSetEx();
51087
      boolean that_present_ex = true && that.isSetEx();
51102
      boolean that_present_ex = true && that.isSetEx();
Line 51144... Line 51159...
51144
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51159
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51145
          break;
51160
          break;
51146
        }
51161
        }
51147
        switch (field.id) {
51162
        switch (field.id) {
51148
          case 0: // SUCCESS
51163
          case 0: // SUCCESS
51149
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51164
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
51165
              {
-
 
51166
                org.apache.thrift.protocol.TList _list125 = iprot.readListBegin();
-
 
51167
                this.success = new ArrayList<Long>(_list125.size);
-
 
51168
                for (int _i126 = 0; _i126 < _list125.size; ++_i126)
-
 
51169
                {
-
 
51170
                  long _elem127; // required
51150
              this.success = iprot.readI64();
51171
                  _elem127 = iprot.readI64();
51151
              setSuccessIsSet(true);
51172
                  this.success.add(_elem127);
-
 
51173
                }
-
 
51174
                iprot.readListEnd();
-
 
51175
              }
51152
            } else { 
51176
            } else { 
51153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51177
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51154
            }
51178
            }
51155
            break;
51179
            break;
51156
          case 1: // EX
51180
          case 1: // EX
Line 51173... Line 51197...
51173
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51174
      oprot.writeStructBegin(STRUCT_DESC);
51198
      oprot.writeStructBegin(STRUCT_DESC);
51175
 
51199
 
51176
      if (this.isSetSuccess()) {
51200
      if (this.isSetSuccess()) {
51177
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51201
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
51202
        {
-
 
51203
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
51204
          for (long _iter128 : this.success)
-
 
51205
          {
51178
        oprot.writeI64(this.success);
51206
            oprot.writeI64(_iter128);
-
 
51207
          }
-
 
51208
          oprot.writeListEnd();
-
 
51209
        }
51179
        oprot.writeFieldEnd();
51210
        oprot.writeFieldEnd();
51180
      } else if (this.isSetEx()) {
51211
      } else if (this.isSetEx()) {
51181
        oprot.writeFieldBegin(EX_FIELD_DESC);
51212
        oprot.writeFieldBegin(EX_FIELD_DESC);
51182
        this.ex.write(oprot);
51213
        this.ex.write(oprot);
51183
        oprot.writeFieldEnd();
51214
        oprot.writeFieldEnd();
Line 51190... Line 51221...
51190
    public String toString() {
51221
    public String toString() {
51191
      StringBuilder sb = new StringBuilder("createPurchaseOrder_result(");
51222
      StringBuilder sb = new StringBuilder("createPurchaseOrder_result(");
51192
      boolean first = true;
51223
      boolean first = true;
51193
 
51224
 
51194
      sb.append("success:");
51225
      sb.append("success:");
-
 
51226
      if (this.success == null) {
-
 
51227
        sb.append("null");
-
 
51228
      } else {
51195
      sb.append(this.success);
51229
        sb.append(this.success);
-
 
51230
      }
51196
      first = false;
51231
      first = false;
51197
      if (!first) sb.append(", ");
51232
      if (!first) sb.append(", ");
51198
      sb.append("ex:");
51233
      sb.append("ex:");
51199
      if (this.ex == null) {
51234
      if (this.ex == null) {
51200
        sb.append("null");
51235
        sb.append("null");
Line 54815... Line 54850...
54815
        }
54850
        }
54816
        switch (field.id) {
54851
        switch (field.id) {
54817
          case 1: // COLLECTED_AMOUNT_MAP
54852
          case 1: // COLLECTED_AMOUNT_MAP
54818
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
54853
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
54819
              {
54854
              {
54820
                org.apache.thrift.protocol.TMap _map125 = iprot.readMapBegin();
54855
                org.apache.thrift.protocol.TMap _map129 = iprot.readMapBegin();
54821
                this.collectedAmountMap = new HashMap<String,Double>(2*_map125.size);
54856
                this.collectedAmountMap = new HashMap<String,Double>(2*_map129.size);
54822
                for (int _i126 = 0; _i126 < _map125.size; ++_i126)
54857
                for (int _i130 = 0; _i130 < _map129.size; ++_i130)
54823
                {
54858
                {
54824
                  String _key127; // required
54859
                  String _key131; // required
54825
                  double _val128; // required
54860
                  double _val132; // required
54826
                  _key127 = iprot.readString();
54861
                  _key131 = iprot.readString();
54827
                  _val128 = iprot.readDouble();
54862
                  _val132 = iprot.readDouble();
54828
                  this.collectedAmountMap.put(_key127, _val128);
54863
                  this.collectedAmountMap.put(_key131, _val132);
54829
                }
54864
                }
54830
                iprot.readMapEnd();
54865
                iprot.readMapEnd();
54831
              }
54866
              }
54832
            } else { 
54867
            } else { 
54833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 54870... Line 54905...
54870
      oprot.writeStructBegin(STRUCT_DESC);
54905
      oprot.writeStructBegin(STRUCT_DESC);
54871
      if (this.collectedAmountMap != null) {
54906
      if (this.collectedAmountMap != null) {
54872
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
54907
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
54873
        {
54908
        {
54874
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
54909
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
54875
          for (Map.Entry<String, Double> _iter129 : this.collectedAmountMap.entrySet())
54910
          for (Map.Entry<String, Double> _iter133 : this.collectedAmountMap.entrySet())
54876
          {
54911
          {
54877
            oprot.writeString(_iter129.getKey());
54912
            oprot.writeString(_iter133.getKey());
54878
            oprot.writeDouble(_iter129.getValue());
54913
            oprot.writeDouble(_iter133.getValue());
54879
          }
54914
          }
54880
          oprot.writeMapEnd();
54915
          oprot.writeMapEnd();
54881
        }
54916
        }
54882
        oprot.writeFieldEnd();
54917
        oprot.writeFieldEnd();
54883
      }
54918
      }
Line 55277... Line 55312...
55277
        }
55312
        }
55278
        switch (field.id) {
55313
        switch (field.id) {
55279
          case 0: // SUCCESS
55314
          case 0: // SUCCESS
55280
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
55315
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
55281
              {
55316
              {
55282
                org.apache.thrift.protocol.TMap _map130 = iprot.readMapBegin();
55317
                org.apache.thrift.protocol.TMap _map134 = iprot.readMapBegin();
55283
                this.success = new HashMap<String,String>(2*_map130.size);
55318
                this.success = new HashMap<String,String>(2*_map134.size);
55284
                for (int _i131 = 0; _i131 < _map130.size; ++_i131)
55319
                for (int _i135 = 0; _i135 < _map134.size; ++_i135)
55285
                {
55320
                {
55286
                  String _key132; // required
55321
                  String _key136; // required
55287
                  String _val133; // required
55322
                  String _val137; // required
55288
                  _key132 = iprot.readString();
55323
                  _key136 = iprot.readString();
55289
                  _val133 = iprot.readString();
55324
                  _val137 = iprot.readString();
55290
                  this.success.put(_key132, _val133);
55325
                  this.success.put(_key136, _val137);
55291
                }
55326
                }
55292
                iprot.readMapEnd();
55327
                iprot.readMapEnd();
55293
              }
55328
              }
55294
            } else { 
55329
            } else { 
55295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55317... Line 55352...
55317
 
55352
 
55318
      if (this.isSetSuccess()) {
55353
      if (this.isSetSuccess()) {
55319
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55354
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55320
        {
55355
        {
55321
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
55356
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
55322
          for (Map.Entry<String, String> _iter134 : this.success.entrySet())
55357
          for (Map.Entry<String, String> _iter138 : this.success.entrySet())
55323
          {
55358
          {
55324
            oprot.writeString(_iter134.getKey());
55359
            oprot.writeString(_iter138.getKey());
55325
            oprot.writeString(_iter134.getValue());
55360
            oprot.writeString(_iter138.getValue());
55326
          }
55361
          }
55327
          oprot.writeMapEnd();
55362
          oprot.writeMapEnd();
55328
        }
55363
        }
55329
        oprot.writeFieldEnd();
55364
        oprot.writeFieldEnd();
55330
      } else if (this.isSetEx()) {
55365
      } else if (this.isSetEx()) {
Line 55936... Line 55971...
55936
        }
55971
        }
55937
        switch (field.id) {
55972
        switch (field.id) {
55938
          case 0: // SUCCESS
55973
          case 0: // SUCCESS
55939
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55974
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55940
              {
55975
              {
55941
                org.apache.thrift.protocol.TList _list135 = iprot.readListBegin();
55976
                org.apache.thrift.protocol.TList _list139 = iprot.readListBegin();
55942
                this.success = new ArrayList<Long>(_list135.size);
55977
                this.success = new ArrayList<Long>(_list139.size);
55943
                for (int _i136 = 0; _i136 < _list135.size; ++_i136)
55978
                for (int _i140 = 0; _i140 < _list139.size; ++_i140)
55944
                {
55979
                {
55945
                  long _elem137; // required
55980
                  long _elem141; // required
55946
                  _elem137 = iprot.readI64();
55981
                  _elem141 = iprot.readI64();
55947
                  this.success.add(_elem137);
55982
                  this.success.add(_elem141);
55948
                }
55983
                }
55949
                iprot.readListEnd();
55984
                iprot.readListEnd();
55950
              }
55985
              }
55951
            } else { 
55986
            } else { 
55952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55966... Line 56001...
55966
 
56001
 
55967
      if (this.isSetSuccess()) {
56002
      if (this.isSetSuccess()) {
55968
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56003
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55969
        {
56004
        {
55970
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
56005
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
55971
          for (long _iter138 : this.success)
56006
          for (long _iter142 : this.success)
55972
          {
56007
          {
55973
            oprot.writeI64(_iter138);
56008
            oprot.writeI64(_iter142);
55974
          }
56009
          }
55975
          oprot.writeListEnd();
56010
          oprot.writeListEnd();
55976
        }
56011
        }
55977
        oprot.writeFieldEnd();
56012
        oprot.writeFieldEnd();
55978
      }
56013
      }
Line 57062... Line 57097...
57062
        }
57097
        }
57063
        switch (field.id) {
57098
        switch (field.id) {
57064
          case 0: // SUCCESS
57099
          case 0: // SUCCESS
57065
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
57100
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
57066
              {
57101
              {
57067
                org.apache.thrift.protocol.TMap _map139 = iprot.readMapBegin();
57102
                org.apache.thrift.protocol.TMap _map143 = iprot.readMapBegin();
57068
                this.success = new HashMap<Long,Long>(2*_map139.size);
57103
                this.success = new HashMap<Long,Long>(2*_map143.size);
57069
                for (int _i140 = 0; _i140 < _map139.size; ++_i140)
57104
                for (int _i144 = 0; _i144 < _map143.size; ++_i144)
57070
                {
57105
                {
57071
                  long _key141; // required
57106
                  long _key145; // required
57072
                  long _val142; // required
57107
                  long _val146; // required
57073
                  _key141 = iprot.readI64();
57108
                  _key145 = iprot.readI64();
57074
                  _val142 = iprot.readI64();
57109
                  _val146 = iprot.readI64();
57075
                  this.success.put(_key141, _val142);
57110
                  this.success.put(_key145, _val146);
57076
                }
57111
                }
57077
                iprot.readMapEnd();
57112
                iprot.readMapEnd();
57078
              }
57113
              }
57079
            } else { 
57114
            } else { 
57080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57094... Line 57129...
57094
 
57129
 
57095
      if (this.isSetSuccess()) {
57130
      if (this.isSetSuccess()) {
57096
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57131
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57097
        {
57132
        {
57098
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
57133
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
57099
          for (Map.Entry<Long, Long> _iter143 : this.success.entrySet())
57134
          for (Map.Entry<Long, Long> _iter147 : this.success.entrySet())
57100
          {
57135
          {
57101
            oprot.writeI64(_iter143.getKey());
57136
            oprot.writeI64(_iter147.getKey());
57102
            oprot.writeI64(_iter143.getValue());
57137
            oprot.writeI64(_iter147.getValue());
57103
          }
57138
          }
57104
          oprot.writeMapEnd();
57139
          oprot.writeMapEnd();
57105
        }
57140
        }
57106
        oprot.writeFieldEnd();
57141
        oprot.writeFieldEnd();
57107
      }
57142
      }
Line 57395... Line 57430...
57395
        }
57430
        }
57396
        switch (field.id) {
57431
        switch (field.id) {
57397
          case 1: // ITEM_IDS
57432
          case 1: // ITEM_IDS
57398
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57433
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57399
              {
57434
              {
57400
                org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
57435
                org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
57401
                this.itemIds = new ArrayList<Long>(_list144.size);
57436
                this.itemIds = new ArrayList<Long>(_list148.size);
57402
                for (int _i145 = 0; _i145 < _list144.size; ++_i145)
57437
                for (int _i149 = 0; _i149 < _list148.size; ++_i149)
57403
                {
57438
                {
57404
                  long _elem146; // required
57439
                  long _elem150; // required
57405
                  _elem146 = iprot.readI64();
57440
                  _elem150 = iprot.readI64();
57406
                  this.itemIds.add(_elem146);
57441
                  this.itemIds.add(_elem150);
57407
                }
57442
                }
57408
                iprot.readListEnd();
57443
                iprot.readListEnd();
57409
              }
57444
              }
57410
            } else { 
57445
            } else { 
57411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57426... Line 57461...
57426
      oprot.writeStructBegin(STRUCT_DESC);
57461
      oprot.writeStructBegin(STRUCT_DESC);
57427
      if (this.itemIds != null) {
57462
      if (this.itemIds != null) {
57428
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
57463
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
57429
        {
57464
        {
57430
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
57465
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
57431
          for (long _iter147 : this.itemIds)
57466
          for (long _iter151 : this.itemIds)
57432
          {
57467
          {
57433
            oprot.writeI64(_iter147);
57468
            oprot.writeI64(_iter151);
57434
          }
57469
          }
57435
          oprot.writeListEnd();
57470
          oprot.writeListEnd();
57436
        }
57471
        }
57437
        oprot.writeFieldEnd();
57472
        oprot.writeFieldEnd();
57438
      }
57473
      }
Line 57726... Line 57761...
57726
        }
57761
        }
57727
        switch (field.id) {
57762
        switch (field.id) {
57728
          case 0: // SUCCESS
57763
          case 0: // SUCCESS
57729
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57764
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57730
              {
57765
              {
57731
                org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
57766
                org.apache.thrift.protocol.TList _list152 = iprot.readListBegin();
57732
                this.success = new ArrayList<Order>(_list148.size);
57767
                this.success = new ArrayList<Order>(_list152.size);
57733
                for (int _i149 = 0; _i149 < _list148.size; ++_i149)
57768
                for (int _i153 = 0; _i153 < _list152.size; ++_i153)
57734
                {
57769
                {
57735
                  Order _elem150; // required
57770
                  Order _elem154; // required
57736
                  _elem150 = new Order();
57771
                  _elem154 = new Order();
57737
                  _elem150.read(iprot);
57772
                  _elem154.read(iprot);
57738
                  this.success.add(_elem150);
57773
                  this.success.add(_elem154);
57739
                }
57774
                }
57740
                iprot.readListEnd();
57775
                iprot.readListEnd();
57741
              }
57776
              }
57742
            } else { 
57777
            } else { 
57743
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57778
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57757... Line 57792...
57757
 
57792
 
57758
      if (this.isSetSuccess()) {
57793
      if (this.isSetSuccess()) {
57759
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57794
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57760
        {
57795
        {
57761
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
57796
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
57762
          for (Order _iter151 : this.success)
57797
          for (Order _iter155 : this.success)
57763
          {
57798
          {
57764
            _iter151.write(oprot);
57799
            _iter155.write(oprot);
57765
          }
57800
          }
57766
          oprot.writeListEnd();
57801
          oprot.writeListEnd();
57767
        }
57802
        }
57768
        oprot.writeFieldEnd();
57803
        oprot.writeFieldEnd();
57769
      }
57804
      }
Line 65715... Line 65750...
65715
        }
65750
        }
65716
        switch (field.id) {
65751
        switch (field.id) {
65717
          case 0: // SUCCESS
65752
          case 0: // SUCCESS
65718
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
65753
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
65719
              {
65754
              {
65720
                org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin();
65755
                org.apache.thrift.protocol.TMap _map156 = iprot.readMapBegin();
65721
                this.success = new HashMap<Integer,TimeoutSummary>(2*_map152.size);
65756
                this.success = new HashMap<Integer,TimeoutSummary>(2*_map156.size);
65722
                for (int _i153 = 0; _i153 < _map152.size; ++_i153)
65757
                for (int _i157 = 0; _i157 < _map156.size; ++_i157)
65723
                {
65758
                {
65724
                  int _key154; // required
65759
                  int _key158; // required
65725
                  TimeoutSummary _val155; // required
65760
                  TimeoutSummary _val159; // required
65726
                  _key154 = iprot.readI32();
65761
                  _key158 = iprot.readI32();
65727
                  _val155 = new TimeoutSummary();
65762
                  _val159 = new TimeoutSummary();
65728
                  _val155.read(iprot);
65763
                  _val159.read(iprot);
65729
                  this.success.put(_key154, _val155);
65764
                  this.success.put(_key158, _val159);
65730
                }
65765
                }
65731
                iprot.readMapEnd();
65766
                iprot.readMapEnd();
65732
              }
65767
              }
65733
            } else { 
65768
            } else { 
65734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
65769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 65756... Line 65791...
65756
 
65791
 
65757
      if (this.isSetSuccess()) {
65792
      if (this.isSetSuccess()) {
65758
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
65793
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
65759
        {
65794
        {
65760
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
65795
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
65761
          for (Map.Entry<Integer, TimeoutSummary> _iter156 : this.success.entrySet())
65796
          for (Map.Entry<Integer, TimeoutSummary> _iter160 : this.success.entrySet())
65762
          {
65797
          {
65763
            oprot.writeI32(_iter156.getKey());
65798
            oprot.writeI32(_iter160.getKey());
65764
            _iter156.getValue().write(oprot);
65799
            _iter160.getValue().write(oprot);
65765
          }
65800
          }
65766
          oprot.writeMapEnd();
65801
          oprot.writeMapEnd();
65767
        }
65802
        }
65768
        oprot.writeFieldEnd();
65803
        oprot.writeFieldEnd();
65769
      } else if (this.isSetEx()) {
65804
      } else if (this.isSetEx()) {
Line 67207... Line 67242...
67207
        }
67242
        }
67208
        switch (field.id) {
67243
        switch (field.id) {
67209
          case 0: // SUCCESS
67244
          case 0: // SUCCESS
67210
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
67245
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
67211
              {
67246
              {
67212
                org.apache.thrift.protocol.TList _list157 = iprot.readListBegin();
67247
                org.apache.thrift.protocol.TList _list161 = iprot.readListBegin();
67213
                this.success = new ArrayList<Order>(_list157.size);
67248
                this.success = new ArrayList<Order>(_list161.size);
67214
                for (int _i158 = 0; _i158 < _list157.size; ++_i158)
67249
                for (int _i162 = 0; _i162 < _list161.size; ++_i162)
67215
                {
67250
                {
67216
                  Order _elem159; // required
67251
                  Order _elem163; // required
67217
                  _elem159 = new Order();
67252
                  _elem163 = new Order();
67218
                  _elem159.read(iprot);
67253
                  _elem163.read(iprot);
67219
                  this.success.add(_elem159);
67254
                  this.success.add(_elem163);
67220
                }
67255
                }
67221
                iprot.readListEnd();
67256
                iprot.readListEnd();
67222
              }
67257
              }
67223
            } else { 
67258
            } else { 
67224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
67259
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 67246... Line 67281...
67246
 
67281
 
67247
      if (this.isSetSuccess()) {
67282
      if (this.isSetSuccess()) {
67248
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
67283
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
67249
        {
67284
        {
67250
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
67285
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
67251
          for (Order _iter160 : this.success)
67286
          for (Order _iter164 : this.success)
67252
          {
67287
          {
67253
            _iter160.write(oprot);
67288
            _iter164.write(oprot);
67254
          }
67289
          }
67255
          oprot.writeListEnd();
67290
          oprot.writeListEnd();
67256
        }
67291
        }
67257
        oprot.writeFieldEnd();
67292
        oprot.writeFieldEnd();
67258
      } else if (this.isSetEx()) {
67293
      } else if (this.isSetEx()) {