Subversion Repositories SmartDukaan

Rev

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

Rev 4741 Rev 4757
Line 477... Line 477...
477
     * @param returnOrderId
477
     * @param returnOrderId
478
     */
478
     */
479
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException;
479
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException;
480
 
480
 
481
    /**
481
    /**
482
     * Creates purchase orders corresponding to all the pending orders of the given warehouse.
-
 
483
     * Returns the list of PO no. of the newly created purchase order.
-
 
484
     * Returns null if no new purchase order had to be created.
-
 
485
     * 
-
 
486
     * @param warehouseId
-
 
487
     */
-
 
488
    public List<Long> createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
489
 
-
 
490
    /**
-
 
491
     * 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.
482
     * 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.
492
     * 
483
     * 
493
     * @param orderId
484
     * @param orderId
494
     * @param weight
485
     * @param weight
495
     */
486
     */
Line 702... Line 693...
702
     * 
693
     * 
703
     * @param orderIds
694
     * @param orderIds
704
     */
695
     */
705
    public List<Long> getReshippedOrderIds(List<Long> orderIds) throws TransactionServiceException, org.apache.thrift.TException;
696
    public List<Long> getReshippedOrderIds(List<Long> orderIds) throws TransactionServiceException, org.apache.thrift.TException;
706
 
697
 
-
 
698
    /**
-
 
699
     * Updates orders as PO raised. Also updates purchase order id in orders. Pass a map of items mapped to
-
 
700
     * the quantities for which the PO is raised.
-
 
701
     * 
-
 
702
     * @param itemIdQuantityMap
-
 
703
     * @param purchaseOrderId
-
 
704
     * @param warehouseId
-
 
705
     */
-
 
706
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
707
 
707
  }
708
  }
708
 
709
 
709
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
710
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
710
 
711
 
711
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
712
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 824... Line 825...
824
 
825
 
825
    public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrder_call> resultHandler) throws org.apache.thrift.TException;
826
    public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrder_call> resultHandler) throws org.apache.thrift.TException;
826
 
827
 
827
    public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processReturn_call> resultHandler) throws org.apache.thrift.TException;
828
    public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processReturn_call> resultHandler) throws org.apache.thrift.TException;
828
 
829
 
829
    public void createPurchaseOrder(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
830
 
-
 
831
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateWeight_call> resultHandler) throws org.apache.thrift.TException;
830
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateWeight_call> resultHandler) throws org.apache.thrift.TException;
832
 
831
 
833
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
832
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
834
 
833
 
835
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
834
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 896... Line 895...
896
 
895
 
897
    public void getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementsByDate_call> resultHandler) throws org.apache.thrift.TException;
896
    public void getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementsByDate_call> resultHandler) throws org.apache.thrift.TException;
898
 
897
 
899
    public void getReshippedOrderIds(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReshippedOrderIds_call> resultHandler) throws org.apache.thrift.TException;
898
    public void getReshippedOrderIds(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReshippedOrderIds_call> resultHandler) throws org.apache.thrift.TException;
900
 
899
 
-
 
900
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrdersAsPORaised_call> resultHandler) throws org.apache.thrift.TException;
-
 
901
 
901
  }
902
  }
902
 
903
 
903
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
904
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
904
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
905
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
905
      public Factory() {}
906
      public Factory() {}
Line 2461... Line 2462...
2461
        throw result.ex;
2462
        throw result.ex;
2462
      }
2463
      }
2463
      return;
2464
      return;
2464
    }
2465
    }
2465
 
2466
 
2466
    public List<Long> createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
-
 
2467
    {
-
 
2468
      send_createPurchaseOrder(warehouseId);
-
 
2469
      return recv_createPurchaseOrder();
-
 
2470
    }
-
 
2471
 
-
 
2472
    public void send_createPurchaseOrder(long warehouseId) throws org.apache.thrift.TException
-
 
2473
    {
-
 
2474
      createPurchaseOrder_args args = new createPurchaseOrder_args();
-
 
2475
      args.setWarehouseId(warehouseId);
-
 
2476
      sendBase("createPurchaseOrder", args);
-
 
2477
    }
-
 
2478
 
-
 
2479
    public List<Long> recv_createPurchaseOrder() throws TransactionServiceException, org.apache.thrift.TException
-
 
2480
    {
-
 
2481
      createPurchaseOrder_result result = new createPurchaseOrder_result();
-
 
2482
      receiveBase(result, "createPurchaseOrder");
-
 
2483
      if (result.isSetSuccess()) {
-
 
2484
        return result.success;
-
 
2485
      }
-
 
2486
      if (result.ex != null) {
-
 
2487
        throw result.ex;
-
 
2488
      }
-
 
2489
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
-
 
2490
    }
-
 
2491
 
-
 
2492
    public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException
2467
    public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException
2493
    {
2468
    {
2494
      send_updateWeight(orderId, weight);
2469
      send_updateWeight(orderId, weight);
2495
      return recv_updateWeight();
2470
      return recv_updateWeight();
2496
    }
2471
    }
Line 3381... Line 3356...
3381
        throw result.ex;
3356
        throw result.ex;
3382
      }
3357
      }
3383
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
3358
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
3384
    }
3359
    }
3385
 
3360
 
-
 
3361
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
-
 
3362
    {
-
 
3363
      send_updateOrdersAsPORaised(itemIdQuantityMap, purchaseOrderId, warehouseId);
-
 
3364
      recv_updateOrdersAsPORaised();
-
 
3365
    }
-
 
3366
 
-
 
3367
    public void send_updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId) throws org.apache.thrift.TException
-
 
3368
    {
-
 
3369
      updateOrdersAsPORaised_args args = new updateOrdersAsPORaised_args();
-
 
3370
      args.setItemIdQuantityMap(itemIdQuantityMap);
-
 
3371
      args.setPurchaseOrderId(purchaseOrderId);
-
 
3372
      args.setWarehouseId(warehouseId);
-
 
3373
      sendBase("updateOrdersAsPORaised", args);
-
 
3374
    }
-
 
3375
 
-
 
3376
    public void recv_updateOrdersAsPORaised() throws TransactionServiceException, org.apache.thrift.TException
-
 
3377
    {
-
 
3378
      updateOrdersAsPORaised_result result = new updateOrdersAsPORaised_result();
-
 
3379
      receiveBase(result, "updateOrdersAsPORaised");
-
 
3380
      if (result.ex != null) {
-
 
3381
        throw result.ex;
-
 
3382
      }
-
 
3383
      return;
-
 
3384
    }
-
 
3385
 
3386
  }
3386
  }
3387
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3387
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3388
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3388
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3389
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3389
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3390
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3390
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5476... Line 5476...
5476
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5476
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5477
        (new Client(prot)).recv_processReturn();
5477
        (new Client(prot)).recv_processReturn();
5478
      }
5478
      }
5479
    }
5479
    }
5480
 
5480
 
5481
    public void createPurchaseOrder(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
5482
      checkReady();
-
 
5483
      createPurchaseOrder_call method_call = new createPurchaseOrder_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5484
      this.___currentMethod = method_call;
-
 
5485
      ___manager.call(method_call);
-
 
5486
    }
-
 
5487
 
-
 
5488
    public static class createPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5489
      private long warehouseId;
-
 
5490
      public createPurchaseOrder_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_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 {
-
 
5491
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5492
        this.warehouseId = warehouseId;
-
 
5493
      }
-
 
5494
 
-
 
5495
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5496
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5497
        createPurchaseOrder_args args = new createPurchaseOrder_args();
-
 
5498
        args.setWarehouseId(warehouseId);
-
 
5499
        args.write(prot);
-
 
5500
        prot.writeMessageEnd();
-
 
5501
      }
-
 
5502
 
-
 
5503
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
5504
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5505
          throw new IllegalStateException("Method call not finished!");
-
 
5506
        }
-
 
5507
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5508
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5509
        return (new Client(prot)).recv_createPurchaseOrder();
-
 
5510
      }
-
 
5511
    }
-
 
5512
 
-
 
5513
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<updateWeight_call> resultHandler) throws org.apache.thrift.TException {
5481
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<updateWeight_call> resultHandler) throws org.apache.thrift.TException {
5514
      checkReady();
5482
      checkReady();
5515
      updateWeight_call method_call = new updateWeight_call(orderId, weight, resultHandler, this, ___protocolFactory, ___transport);
5483
      updateWeight_call method_call = new updateWeight_call(orderId, weight, resultHandler, this, ___protocolFactory, ___transport);
5516
      this.___currentMethod = method_call;
5484
      this.___currentMethod = method_call;
5517
      ___manager.call(method_call);
5485
      ___manager.call(method_call);
Line 6742... Line 6710...
6742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6710
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6743
        return (new Client(prot)).recv_getReshippedOrderIds();
6711
        return (new Client(prot)).recv_getReshippedOrderIds();
6744
      }
6712
      }
6745
    }
6713
    }
6746
 
6714
 
-
 
6715
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<updateOrdersAsPORaised_call> resultHandler) throws org.apache.thrift.TException {
-
 
6716
      checkReady();
-
 
6717
      updateOrdersAsPORaised_call method_call = new updateOrdersAsPORaised_call(itemIdQuantityMap, purchaseOrderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
6718
      this.___currentMethod = method_call;
-
 
6719
      ___manager.call(method_call);
-
 
6720
    }
-
 
6721
 
-
 
6722
    public static class updateOrdersAsPORaised_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6723
      private Map<Long,Long> itemIdQuantityMap;
-
 
6724
      private long purchaseOrderId;
-
 
6725
      private long warehouseId;
-
 
6726
      public updateOrdersAsPORaised_call(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<updateOrdersAsPORaised_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 {
-
 
6727
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6728
        this.itemIdQuantityMap = itemIdQuantityMap;
-
 
6729
        this.purchaseOrderId = purchaseOrderId;
-
 
6730
        this.warehouseId = warehouseId;
-
 
6731
      }
-
 
6732
 
-
 
6733
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6734
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOrdersAsPORaised", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6735
        updateOrdersAsPORaised_args args = new updateOrdersAsPORaised_args();
-
 
6736
        args.setItemIdQuantityMap(itemIdQuantityMap);
-
 
6737
        args.setPurchaseOrderId(purchaseOrderId);
-
 
6738
        args.setWarehouseId(warehouseId);
-
 
6739
        args.write(prot);
-
 
6740
        prot.writeMessageEnd();
-
 
6741
      }
-
 
6742
 
-
 
6743
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
6744
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6745
          throw new IllegalStateException("Method call not finished!");
-
 
6746
        }
-
 
6747
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6748
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6749
        (new Client(prot)).recv_updateOrdersAsPORaised();
-
 
6750
      }
-
 
6751
    }
-
 
6752
 
6747
  }
6753
  }
6748
 
6754
 
6749
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6755
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6750
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6756
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6751
    public Processor(I iface) {
6757
    public Processor(I iface) {
Line 6814... Line 6820...
6814
      processMap.put("reshipOrder", new reshipOrder());
6820
      processMap.put("reshipOrder", new reshipOrder());
6815
      processMap.put("refundOrder", new refundOrder());
6821
      processMap.put("refundOrder", new refundOrder());
6816
      processMap.put("getReturnOrders", new getReturnOrders());
6822
      processMap.put("getReturnOrders", new getReturnOrders());
6817
      processMap.put("getReturnOrder", new getReturnOrder());
6823
      processMap.put("getReturnOrder", new getReturnOrder());
6818
      processMap.put("processReturn", new processReturn());
6824
      processMap.put("processReturn", new processReturn());
6819
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
-
 
6820
      processMap.put("updateWeight", new updateWeight());
6825
      processMap.put("updateWeight", new updateWeight());
6821
      processMap.put("changeItem", new changeItem());
6826
      processMap.put("changeItem", new changeItem());
6822
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
6827
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
6823
      processMap.put("addDelayReason", new addDelayReason());
6828
      processMap.put("addDelayReason", new addDelayReason());
6824
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
6829
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
Line 6850... Line 6855...
6850
      processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());
6855
      processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());
6851
      processMap.put("markEBSSettlementUploaded", new markEBSSettlementUploaded());
6856
      processMap.put("markEBSSettlementUploaded", new markEBSSettlementUploaded());
6852
      processMap.put("getEBSSettlementDate", new getEBSSettlementDate());
6857
      processMap.put("getEBSSettlementDate", new getEBSSettlementDate());
6853
      processMap.put("getSettlementsByDate", new getSettlementsByDate());
6858
      processMap.put("getSettlementsByDate", new getSettlementsByDate());
6854
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
6859
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
-
 
6860
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
6855
      return processMap;
6861
      return processMap;
6856
    }
6862
    }
6857
 
6863
 
6858
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
6864
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
6859
      public createTransaction() {
6865
      public createTransaction() {
Line 8015... Line 8021...
8015
        }
8021
        }
8016
        return result;
8022
        return result;
8017
      }
8023
      }
8018
    }
8024
    }
8019
 
8025
 
8020
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
-
 
8021
      public createPurchaseOrder() {
-
 
8022
        super("createPurchaseOrder");
-
 
8023
      }
-
 
8024
 
-
 
8025
      protected createPurchaseOrder_args getEmptyArgsInstance() {
-
 
8026
        return new createPurchaseOrder_args();
-
 
8027
      }
-
 
8028
 
-
 
8029
      protected createPurchaseOrder_result getResult(I iface, createPurchaseOrder_args args) throws org.apache.thrift.TException {
-
 
8030
        createPurchaseOrder_result result = new createPurchaseOrder_result();
-
 
8031
        try {
-
 
8032
          result.success = iface.createPurchaseOrder(args.warehouseId);
-
 
8033
        } catch (TransactionServiceException ex) {
-
 
8034
          result.ex = ex;
-
 
8035
        }
-
 
8036
        return result;
-
 
8037
      }
-
 
8038
    }
-
 
8039
 
-
 
8040
    private static class updateWeight<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateWeight_args> {
8026
    private static class updateWeight<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateWeight_args> {
8041
      public updateWeight() {
8027
      public updateWeight() {
8042
        super("updateWeight");
8028
        super("updateWeight");
8043
      }
8029
      }
8044
 
8030
 
Line 8723... Line 8709...
8723
        }
8709
        }
8724
        return result;
8710
        return result;
8725
      }
8711
      }
8726
    }
8712
    }
8727
 
8713
 
-
 
8714
    private static class updateOrdersAsPORaised<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrdersAsPORaised_args> {
-
 
8715
      public updateOrdersAsPORaised() {
-
 
8716
        super("updateOrdersAsPORaised");
-
 
8717
      }
-
 
8718
 
-
 
8719
      protected updateOrdersAsPORaised_args getEmptyArgsInstance() {
-
 
8720
        return new updateOrdersAsPORaised_args();
-
 
8721
      }
-
 
8722
 
-
 
8723
      protected updateOrdersAsPORaised_result getResult(I iface, updateOrdersAsPORaised_args args) throws org.apache.thrift.TException {
-
 
8724
        updateOrdersAsPORaised_result result = new updateOrdersAsPORaised_result();
-
 
8725
        try {
-
 
8726
          iface.updateOrdersAsPORaised(args.itemIdQuantityMap, args.purchaseOrderId, args.warehouseId);
-
 
8727
        } catch (TransactionServiceException ex) {
-
 
8728
          result.ex = ex;
-
 
8729
        }
-
 
8730
        return result;
-
 
8731
      }
-
 
8732
    }
-
 
8733
 
8728
  }
8734
  }
8729
 
8735
 
8730
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
8736
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
8731
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
8737
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
8732
 
8738
 
Line 53475... Line 53481...
53475
      }
53481
      }
53476
    }
53482
    }
53477
 
53483
 
53478
  }
53484
  }
53479
 
53485
 
53480
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
53481
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
-
 
53482
 
-
 
53483
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
53484
 
-
 
53485
    private long warehouseId; // required
-
 
53486
 
-
 
53487
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53488
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53489
      WAREHOUSE_ID((short)1, "warehouseId");
-
 
53490
 
-
 
53491
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53492
 
-
 
53493
      static {
-
 
53494
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53495
          byName.put(field.getFieldName(), field);
-
 
53496
        }
-
 
53497
      }
-
 
53498
 
-
 
53499
      /**
-
 
53500
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53501
       */
-
 
53502
      public static _Fields findByThriftId(int fieldId) {
-
 
53503
        switch(fieldId) {
-
 
53504
          case 1: // WAREHOUSE_ID
-
 
53505
            return WAREHOUSE_ID;
-
 
53506
          default:
-
 
53507
            return null;
-
 
53508
        }
-
 
53509
      }
-
 
53510
 
-
 
53511
      /**
-
 
53512
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53513
       * if it is not found.
-
 
53514
       */
-
 
53515
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53516
        _Fields fields = findByThriftId(fieldId);
-
 
53517
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53518
        return fields;
-
 
53519
      }
-
 
53520
 
-
 
53521
      /**
-
 
53522
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53523
       */
-
 
53524
      public static _Fields findByName(String name) {
-
 
53525
        return byName.get(name);
-
 
53526
      }
-
 
53527
 
-
 
53528
      private final short _thriftId;
-
 
53529
      private final String _fieldName;
-
 
53530
 
-
 
53531
      _Fields(short thriftId, String fieldName) {
-
 
53532
        _thriftId = thriftId;
-
 
53533
        _fieldName = fieldName;
-
 
53534
      }
-
 
53535
 
-
 
53536
      public short getThriftFieldId() {
-
 
53537
        return _thriftId;
-
 
53538
      }
-
 
53539
 
-
 
53540
      public String getFieldName() {
-
 
53541
        return _fieldName;
-
 
53542
      }
-
 
53543
    }
-
 
53544
 
-
 
53545
    // isset id assignments
-
 
53546
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
53547
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
53548
 
-
 
53549
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53550
    static {
-
 
53551
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53552
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53553
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53554
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53555
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_args.class, metaDataMap);
-
 
53556
    }
-
 
53557
 
-
 
53558
    public createPurchaseOrder_args() {
-
 
53559
    }
-
 
53560
 
-
 
53561
    public createPurchaseOrder_args(
-
 
53562
      long warehouseId)
-
 
53563
    {
-
 
53564
      this();
-
 
53565
      this.warehouseId = warehouseId;
-
 
53566
      setWarehouseIdIsSet(true);
-
 
53567
    }
-
 
53568
 
-
 
53569
    /**
-
 
53570
     * Performs a deep copy on <i>other</i>.
-
 
53571
     */
-
 
53572
    public createPurchaseOrder_args(createPurchaseOrder_args other) {
-
 
53573
      __isset_bit_vector.clear();
-
 
53574
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
53575
      this.warehouseId = other.warehouseId;
-
 
53576
    }
-
 
53577
 
-
 
53578
    public createPurchaseOrder_args deepCopy() {
-
 
53579
      return new createPurchaseOrder_args(this);
-
 
53580
    }
-
 
53581
 
-
 
53582
    @Override
-
 
53583
    public void clear() {
-
 
53584
      setWarehouseIdIsSet(false);
-
 
53585
      this.warehouseId = 0;
-
 
53586
    }
-
 
53587
 
-
 
53588
    public long getWarehouseId() {
-
 
53589
      return this.warehouseId;
-
 
53590
    }
-
 
53591
 
-
 
53592
    public void setWarehouseId(long warehouseId) {
-
 
53593
      this.warehouseId = warehouseId;
-
 
53594
      setWarehouseIdIsSet(true);
-
 
53595
    }
-
 
53596
 
-
 
53597
    public void unsetWarehouseId() {
-
 
53598
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
53599
    }
-
 
53600
 
-
 
53601
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
53602
    public boolean isSetWarehouseId() {
-
 
53603
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
53604
    }
-
 
53605
 
-
 
53606
    public void setWarehouseIdIsSet(boolean value) {
-
 
53607
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
53608
    }
-
 
53609
 
-
 
53610
    public void setFieldValue(_Fields field, Object value) {
-
 
53611
      switch (field) {
-
 
53612
      case WAREHOUSE_ID:
-
 
53613
        if (value == null) {
-
 
53614
          unsetWarehouseId();
-
 
53615
        } else {
-
 
53616
          setWarehouseId((Long)value);
-
 
53617
        }
-
 
53618
        break;
-
 
53619
 
-
 
53620
      }
-
 
53621
    }
-
 
53622
 
-
 
53623
    public Object getFieldValue(_Fields field) {
-
 
53624
      switch (field) {
-
 
53625
      case WAREHOUSE_ID:
-
 
53626
        return Long.valueOf(getWarehouseId());
-
 
53627
 
-
 
53628
      }
-
 
53629
      throw new IllegalStateException();
-
 
53630
    }
-
 
53631
 
-
 
53632
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53633
    public boolean isSet(_Fields field) {
-
 
53634
      if (field == null) {
-
 
53635
        throw new IllegalArgumentException();
-
 
53636
      }
-
 
53637
 
-
 
53638
      switch (field) {
-
 
53639
      case WAREHOUSE_ID:
-
 
53640
        return isSetWarehouseId();
-
 
53641
      }
-
 
53642
      throw new IllegalStateException();
-
 
53643
    }
-
 
53644
 
-
 
53645
    @Override
-
 
53646
    public boolean equals(Object that) {
-
 
53647
      if (that == null)
-
 
53648
        return false;
-
 
53649
      if (that instanceof createPurchaseOrder_args)
-
 
53650
        return this.equals((createPurchaseOrder_args)that);
-
 
53651
      return false;
-
 
53652
    }
-
 
53653
 
-
 
53654
    public boolean equals(createPurchaseOrder_args that) {
-
 
53655
      if (that == null)
-
 
53656
        return false;
-
 
53657
 
-
 
53658
      boolean this_present_warehouseId = true;
-
 
53659
      boolean that_present_warehouseId = true;
-
 
53660
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
53661
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
53662
          return false;
-
 
53663
        if (this.warehouseId != that.warehouseId)
-
 
53664
          return false;
-
 
53665
      }
-
 
53666
 
-
 
53667
      return true;
-
 
53668
    }
-
 
53669
 
-
 
53670
    @Override
-
 
53671
    public int hashCode() {
-
 
53672
      return 0;
-
 
53673
    }
-
 
53674
 
-
 
53675
    public int compareTo(createPurchaseOrder_args other) {
-
 
53676
      if (!getClass().equals(other.getClass())) {
-
 
53677
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53678
      }
-
 
53679
 
-
 
53680
      int lastComparison = 0;
-
 
53681
      createPurchaseOrder_args typedOther = (createPurchaseOrder_args)other;
-
 
53682
 
-
 
53683
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
53684
      if (lastComparison != 0) {
-
 
53685
        return lastComparison;
-
 
53686
      }
-
 
53687
      if (isSetWarehouseId()) {
-
 
53688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
53689
        if (lastComparison != 0) {
-
 
53690
          return lastComparison;
-
 
53691
        }
-
 
53692
      }
-
 
53693
      return 0;
-
 
53694
    }
-
 
53695
 
-
 
53696
    public _Fields fieldForId(int fieldId) {
-
 
53697
      return _Fields.findByThriftId(fieldId);
-
 
53698
    }
-
 
53699
 
-
 
53700
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53701
      org.apache.thrift.protocol.TField field;
-
 
53702
      iprot.readStructBegin();
-
 
53703
      while (true)
-
 
53704
      {
-
 
53705
        field = iprot.readFieldBegin();
-
 
53706
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53707
          break;
-
 
53708
        }
-
 
53709
        switch (field.id) {
-
 
53710
          case 1: // WAREHOUSE_ID
-
 
53711
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53712
              this.warehouseId = iprot.readI64();
-
 
53713
              setWarehouseIdIsSet(true);
-
 
53714
            } else { 
-
 
53715
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53716
            }
-
 
53717
            break;
-
 
53718
          default:
-
 
53719
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53720
        }
-
 
53721
        iprot.readFieldEnd();
-
 
53722
      }
-
 
53723
      iprot.readStructEnd();
-
 
53724
      validate();
-
 
53725
    }
-
 
53726
 
-
 
53727
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53728
      validate();
-
 
53729
 
-
 
53730
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53731
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
53732
      oprot.writeI64(this.warehouseId);
-
 
53733
      oprot.writeFieldEnd();
-
 
53734
      oprot.writeFieldStop();
-
 
53735
      oprot.writeStructEnd();
-
 
53736
    }
-
 
53737
 
-
 
53738
    @Override
-
 
53739
    public String toString() {
-
 
53740
      StringBuilder sb = new StringBuilder("createPurchaseOrder_args(");
-
 
53741
      boolean first = true;
-
 
53742
 
-
 
53743
      sb.append("warehouseId:");
-
 
53744
      sb.append(this.warehouseId);
-
 
53745
      first = false;
-
 
53746
      sb.append(")");
-
 
53747
      return sb.toString();
-
 
53748
    }
-
 
53749
 
-
 
53750
    public void validate() throws org.apache.thrift.TException {
-
 
53751
      // check for required fields
-
 
53752
    }
-
 
53753
 
-
 
53754
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53755
      try {
-
 
53756
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53757
      } catch (org.apache.thrift.TException te) {
-
 
53758
        throw new java.io.IOException(te);
-
 
53759
      }
-
 
53760
    }
-
 
53761
 
-
 
53762
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53763
      try {
-
 
53764
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53765
      } catch (org.apache.thrift.TException te) {
-
 
53766
        throw new java.io.IOException(te);
-
 
53767
      }
-
 
53768
    }
-
 
53769
 
-
 
53770
  }
-
 
53771
 
-
 
53772
  public static class createPurchaseOrder_result implements org.apache.thrift.TBase<createPurchaseOrder_result, createPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
53773
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_result");
-
 
53774
 
-
 
53775
    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);
-
 
53776
    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);
-
 
53777
 
-
 
53778
    private List<Long> success; // required
-
 
53779
    private TransactionServiceException ex; // required
-
 
53780
 
-
 
53781
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53782
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53783
      SUCCESS((short)0, "success"),
-
 
53784
      EX((short)1, "ex");
-
 
53785
 
-
 
53786
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53787
 
-
 
53788
      static {
-
 
53789
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53790
          byName.put(field.getFieldName(), field);
-
 
53791
        }
-
 
53792
      }
-
 
53793
 
-
 
53794
      /**
-
 
53795
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53796
       */
-
 
53797
      public static _Fields findByThriftId(int fieldId) {
-
 
53798
        switch(fieldId) {
-
 
53799
          case 0: // SUCCESS
-
 
53800
            return SUCCESS;
-
 
53801
          case 1: // EX
-
 
53802
            return EX;
-
 
53803
          default:
-
 
53804
            return null;
-
 
53805
        }
-
 
53806
      }
-
 
53807
 
-
 
53808
      /**
-
 
53809
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53810
       * if it is not found.
-
 
53811
       */
-
 
53812
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53813
        _Fields fields = findByThriftId(fieldId);
-
 
53814
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53815
        return fields;
-
 
53816
      }
-
 
53817
 
-
 
53818
      /**
-
 
53819
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53820
       */
-
 
53821
      public static _Fields findByName(String name) {
-
 
53822
        return byName.get(name);
-
 
53823
      }
-
 
53824
 
-
 
53825
      private final short _thriftId;
-
 
53826
      private final String _fieldName;
-
 
53827
 
-
 
53828
      _Fields(short thriftId, String fieldName) {
-
 
53829
        _thriftId = thriftId;
-
 
53830
        _fieldName = fieldName;
-
 
53831
      }
-
 
53832
 
-
 
53833
      public short getThriftFieldId() {
-
 
53834
        return _thriftId;
-
 
53835
      }
-
 
53836
 
-
 
53837
      public String getFieldName() {
-
 
53838
        return _fieldName;
-
 
53839
      }
-
 
53840
    }
-
 
53841
 
-
 
53842
    // isset id assignments
-
 
53843
 
-
 
53844
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53845
    static {
-
 
53846
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53847
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53848
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
53849
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
53850
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53851
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
53852
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53853
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_result.class, metaDataMap);
-
 
53854
    }
-
 
53855
 
-
 
53856
    public createPurchaseOrder_result() {
-
 
53857
    }
-
 
53858
 
-
 
53859
    public createPurchaseOrder_result(
-
 
53860
      List<Long> success,
-
 
53861
      TransactionServiceException ex)
-
 
53862
    {
-
 
53863
      this();
-
 
53864
      this.success = success;
-
 
53865
      this.ex = ex;
-
 
53866
    }
-
 
53867
 
-
 
53868
    /**
-
 
53869
     * Performs a deep copy on <i>other</i>.
-
 
53870
     */
-
 
53871
    public createPurchaseOrder_result(createPurchaseOrder_result other) {
-
 
53872
      if (other.isSetSuccess()) {
-
 
53873
        List<Long> __this__success = new ArrayList<Long>();
-
 
53874
        for (Long other_element : other.success) {
-
 
53875
          __this__success.add(other_element);
-
 
53876
        }
-
 
53877
        this.success = __this__success;
-
 
53878
      }
-
 
53879
      if (other.isSetEx()) {
-
 
53880
        this.ex = new TransactionServiceException(other.ex);
-
 
53881
      }
-
 
53882
    }
-
 
53883
 
-
 
53884
    public createPurchaseOrder_result deepCopy() {
-
 
53885
      return new createPurchaseOrder_result(this);
-
 
53886
    }
-
 
53887
 
-
 
53888
    @Override
-
 
53889
    public void clear() {
-
 
53890
      this.success = null;
-
 
53891
      this.ex = null;
-
 
53892
    }
-
 
53893
 
-
 
53894
    public int getSuccessSize() {
-
 
53895
      return (this.success == null) ? 0 : this.success.size();
-
 
53896
    }
-
 
53897
 
-
 
53898
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
53899
      return (this.success == null) ? null : this.success.iterator();
-
 
53900
    }
-
 
53901
 
-
 
53902
    public void addToSuccess(long elem) {
-
 
53903
      if (this.success == null) {
-
 
53904
        this.success = new ArrayList<Long>();
-
 
53905
      }
-
 
53906
      this.success.add(elem);
-
 
53907
    }
-
 
53908
 
-
 
53909
    public List<Long> getSuccess() {
-
 
53910
      return this.success;
-
 
53911
    }
-
 
53912
 
-
 
53913
    public void setSuccess(List<Long> success) {
-
 
53914
      this.success = success;
-
 
53915
    }
-
 
53916
 
-
 
53917
    public void unsetSuccess() {
-
 
53918
      this.success = null;
-
 
53919
    }
-
 
53920
 
-
 
53921
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
53922
    public boolean isSetSuccess() {
-
 
53923
      return this.success != null;
-
 
53924
    }
-
 
53925
 
-
 
53926
    public void setSuccessIsSet(boolean value) {
-
 
53927
      if (!value) {
-
 
53928
        this.success = null;
-
 
53929
      }
-
 
53930
    }
-
 
53931
 
-
 
53932
    public TransactionServiceException getEx() {
-
 
53933
      return this.ex;
-
 
53934
    }
-
 
53935
 
-
 
53936
    public void setEx(TransactionServiceException ex) {
-
 
53937
      this.ex = ex;
-
 
53938
    }
-
 
53939
 
-
 
53940
    public void unsetEx() {
-
 
53941
      this.ex = null;
-
 
53942
    }
-
 
53943
 
-
 
53944
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
53945
    public boolean isSetEx() {
-
 
53946
      return this.ex != null;
-
 
53947
    }
-
 
53948
 
-
 
53949
    public void setExIsSet(boolean value) {
-
 
53950
      if (!value) {
-
 
53951
        this.ex = null;
-
 
53952
      }
-
 
53953
    }
-
 
53954
 
-
 
53955
    public void setFieldValue(_Fields field, Object value) {
-
 
53956
      switch (field) {
-
 
53957
      case SUCCESS:
-
 
53958
        if (value == null) {
-
 
53959
          unsetSuccess();
-
 
53960
        } else {
-
 
53961
          setSuccess((List<Long>)value);
-
 
53962
        }
-
 
53963
        break;
-
 
53964
 
-
 
53965
      case EX:
-
 
53966
        if (value == null) {
-
 
53967
          unsetEx();
-
 
53968
        } else {
-
 
53969
          setEx((TransactionServiceException)value);
-
 
53970
        }
-
 
53971
        break;
-
 
53972
 
-
 
53973
      }
-
 
53974
    }
-
 
53975
 
-
 
53976
    public Object getFieldValue(_Fields field) {
-
 
53977
      switch (field) {
-
 
53978
      case SUCCESS:
-
 
53979
        return getSuccess();
-
 
53980
 
-
 
53981
      case EX:
-
 
53982
        return getEx();
-
 
53983
 
-
 
53984
      }
-
 
53985
      throw new IllegalStateException();
-
 
53986
    }
-
 
53987
 
-
 
53988
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53989
    public boolean isSet(_Fields field) {
-
 
53990
      if (field == null) {
-
 
53991
        throw new IllegalArgumentException();
-
 
53992
      }
-
 
53993
 
-
 
53994
      switch (field) {
-
 
53995
      case SUCCESS:
-
 
53996
        return isSetSuccess();
-
 
53997
      case EX:
-
 
53998
        return isSetEx();
-
 
53999
      }
-
 
54000
      throw new IllegalStateException();
-
 
54001
    }
-
 
54002
 
-
 
54003
    @Override
-
 
54004
    public boolean equals(Object that) {
-
 
54005
      if (that == null)
-
 
54006
        return false;
-
 
54007
      if (that instanceof createPurchaseOrder_result)
-
 
54008
        return this.equals((createPurchaseOrder_result)that);
-
 
54009
      return false;
-
 
54010
    }
-
 
54011
 
-
 
54012
    public boolean equals(createPurchaseOrder_result that) {
-
 
54013
      if (that == null)
-
 
54014
        return false;
-
 
54015
 
-
 
54016
      boolean this_present_success = true && this.isSetSuccess();
-
 
54017
      boolean that_present_success = true && that.isSetSuccess();
-
 
54018
      if (this_present_success || that_present_success) {
-
 
54019
        if (!(this_present_success && that_present_success))
-
 
54020
          return false;
-
 
54021
        if (!this.success.equals(that.success))
-
 
54022
          return false;
-
 
54023
      }
-
 
54024
 
-
 
54025
      boolean this_present_ex = true && this.isSetEx();
-
 
54026
      boolean that_present_ex = true && that.isSetEx();
-
 
54027
      if (this_present_ex || that_present_ex) {
-
 
54028
        if (!(this_present_ex && that_present_ex))
-
 
54029
          return false;
-
 
54030
        if (!this.ex.equals(that.ex))
-
 
54031
          return false;
-
 
54032
      }
-
 
54033
 
-
 
54034
      return true;
-
 
54035
    }
-
 
54036
 
-
 
54037
    @Override
-
 
54038
    public int hashCode() {
-
 
54039
      return 0;
-
 
54040
    }
-
 
54041
 
-
 
54042
    public int compareTo(createPurchaseOrder_result other) {
-
 
54043
      if (!getClass().equals(other.getClass())) {
-
 
54044
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54045
      }
-
 
54046
 
-
 
54047
      int lastComparison = 0;
-
 
54048
      createPurchaseOrder_result typedOther = (createPurchaseOrder_result)other;
-
 
54049
 
-
 
54050
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
54051
      if (lastComparison != 0) {
-
 
54052
        return lastComparison;
-
 
54053
      }
-
 
54054
      if (isSetSuccess()) {
-
 
54055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
54056
        if (lastComparison != 0) {
-
 
54057
          return lastComparison;
-
 
54058
        }
-
 
54059
      }
-
 
54060
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
54061
      if (lastComparison != 0) {
-
 
54062
        return lastComparison;
-
 
54063
      }
-
 
54064
      if (isSetEx()) {
-
 
54065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
54066
        if (lastComparison != 0) {
-
 
54067
          return lastComparison;
-
 
54068
        }
-
 
54069
      }
-
 
54070
      return 0;
-
 
54071
    }
-
 
54072
 
-
 
54073
    public _Fields fieldForId(int fieldId) {
-
 
54074
      return _Fields.findByThriftId(fieldId);
-
 
54075
    }
-
 
54076
 
-
 
54077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54078
      org.apache.thrift.protocol.TField field;
-
 
54079
      iprot.readStructBegin();
-
 
54080
      while (true)
-
 
54081
      {
-
 
54082
        field = iprot.readFieldBegin();
-
 
54083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54084
          break;
-
 
54085
        }
-
 
54086
        switch (field.id) {
-
 
54087
          case 0: // SUCCESS
-
 
54088
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
54089
              {
-
 
54090
                org.apache.thrift.protocol.TList _list134 = iprot.readListBegin();
-
 
54091
                this.success = new ArrayList<Long>(_list134.size);
-
 
54092
                for (int _i135 = 0; _i135 < _list134.size; ++_i135)
-
 
54093
                {
-
 
54094
                  long _elem136; // required
-
 
54095
                  _elem136 = iprot.readI64();
-
 
54096
                  this.success.add(_elem136);
-
 
54097
                }
-
 
54098
                iprot.readListEnd();
-
 
54099
              }
-
 
54100
            } else { 
-
 
54101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54102
            }
-
 
54103
            break;
-
 
54104
          case 1: // EX
-
 
54105
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
54106
              this.ex = new TransactionServiceException();
-
 
54107
              this.ex.read(iprot);
-
 
54108
            } else { 
-
 
54109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54110
            }
-
 
54111
            break;
-
 
54112
          default:
-
 
54113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54114
        }
-
 
54115
        iprot.readFieldEnd();
-
 
54116
      }
-
 
54117
      iprot.readStructEnd();
-
 
54118
      validate();
-
 
54119
    }
-
 
54120
 
-
 
54121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54122
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54123
 
-
 
54124
      if (this.isSetSuccess()) {
-
 
54125
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
54126
        {
-
 
54127
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
54128
          for (long _iter137 : this.success)
-
 
54129
          {
-
 
54130
            oprot.writeI64(_iter137);
-
 
54131
          }
-
 
54132
          oprot.writeListEnd();
-
 
54133
        }
-
 
54134
        oprot.writeFieldEnd();
-
 
54135
      } else if (this.isSetEx()) {
-
 
54136
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
54137
        this.ex.write(oprot);
-
 
54138
        oprot.writeFieldEnd();
-
 
54139
      }
-
 
54140
      oprot.writeFieldStop();
-
 
54141
      oprot.writeStructEnd();
-
 
54142
    }
-
 
54143
 
-
 
54144
    @Override
-
 
54145
    public String toString() {
-
 
54146
      StringBuilder sb = new StringBuilder("createPurchaseOrder_result(");
-
 
54147
      boolean first = true;
-
 
54148
 
-
 
54149
      sb.append("success:");
-
 
54150
      if (this.success == null) {
-
 
54151
        sb.append("null");
-
 
54152
      } else {
-
 
54153
        sb.append(this.success);
-
 
54154
      }
-
 
54155
      first = false;
-
 
54156
      if (!first) sb.append(", ");
-
 
54157
      sb.append("ex:");
-
 
54158
      if (this.ex == null) {
-
 
54159
        sb.append("null");
-
 
54160
      } else {
-
 
54161
        sb.append(this.ex);
-
 
54162
      }
-
 
54163
      first = false;
-
 
54164
      sb.append(")");
-
 
54165
      return sb.toString();
-
 
54166
    }
-
 
54167
 
-
 
54168
    public void validate() throws org.apache.thrift.TException {
-
 
54169
      // check for required fields
-
 
54170
    }
-
 
54171
 
-
 
54172
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54173
      try {
-
 
54174
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54175
      } catch (org.apache.thrift.TException te) {
-
 
54176
        throw new java.io.IOException(te);
-
 
54177
      }
-
 
54178
    }
-
 
54179
 
-
 
54180
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54181
      try {
-
 
54182
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54183
      } catch (org.apache.thrift.TException te) {
-
 
54184
        throw new java.io.IOException(te);
-
 
54185
      }
-
 
54186
    }
-
 
54187
 
-
 
54188
  }
-
 
54189
 
-
 
54190
  public static class updateWeight_args implements org.apache.thrift.TBase<updateWeight_args, updateWeight_args._Fields>, java.io.Serializable, Cloneable   {
53486
  public static class updateWeight_args implements org.apache.thrift.TBase<updateWeight_args, updateWeight_args._Fields>, java.io.Serializable, Cloneable   {
54191
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_args");
53487
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_args");
54192
 
53488
 
54193
    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);
53489
    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);
54194
    private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
53490
    private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
Line 57862... Line 57158...
57862
        }
57158
        }
57863
        switch (field.id) {
57159
        switch (field.id) {
57864
          case 1: // COLLECTED_AMOUNT_MAP
57160
          case 1: // COLLECTED_AMOUNT_MAP
57865
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
57161
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
57866
              {
57162
              {
57867
                org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin();
57163
                org.apache.thrift.protocol.TMap _map134 = iprot.readMapBegin();
57868
                this.collectedAmountMap = new HashMap<String,Double>(2*_map138.size);
57164
                this.collectedAmountMap = new HashMap<String,Double>(2*_map134.size);
57869
                for (int _i139 = 0; _i139 < _map138.size; ++_i139)
57165
                for (int _i135 = 0; _i135 < _map134.size; ++_i135)
57870
                {
57166
                {
57871
                  String _key140; // required
57167
                  String _key136; // required
57872
                  double _val141; // required
57168
                  double _val137; // required
57873
                  _key140 = iprot.readString();
57169
                  _key136 = iprot.readString();
57874
                  _val141 = iprot.readDouble();
57170
                  _val137 = iprot.readDouble();
57875
                  this.collectedAmountMap.put(_key140, _val141);
57171
                  this.collectedAmountMap.put(_key136, _val137);
57876
                }
57172
                }
57877
                iprot.readMapEnd();
57173
                iprot.readMapEnd();
57878
              }
57174
              }
57879
            } else { 
57175
            } else { 
57880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57917... Line 57213...
57917
      oprot.writeStructBegin(STRUCT_DESC);
57213
      oprot.writeStructBegin(STRUCT_DESC);
57918
      if (this.collectedAmountMap != null) {
57214
      if (this.collectedAmountMap != null) {
57919
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
57215
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
57920
        {
57216
        {
57921
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
57217
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
57922
          for (Map.Entry<String, Double> _iter142 : this.collectedAmountMap.entrySet())
57218
          for (Map.Entry<String, Double> _iter138 : this.collectedAmountMap.entrySet())
57923
          {
57219
          {
57924
            oprot.writeString(_iter142.getKey());
57220
            oprot.writeString(_iter138.getKey());
57925
            oprot.writeDouble(_iter142.getValue());
57221
            oprot.writeDouble(_iter138.getValue());
57926
          }
57222
          }
57927
          oprot.writeMapEnd();
57223
          oprot.writeMapEnd();
57928
        }
57224
        }
57929
        oprot.writeFieldEnd();
57225
        oprot.writeFieldEnd();
57930
      }
57226
      }
Line 58324... Line 57620...
58324
        }
57620
        }
58325
        switch (field.id) {
57621
        switch (field.id) {
58326
          case 0: // SUCCESS
57622
          case 0: // SUCCESS
58327
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
57623
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
58328
              {
57624
              {
58329
                org.apache.thrift.protocol.TMap _map143 = iprot.readMapBegin();
57625
                org.apache.thrift.protocol.TMap _map139 = iprot.readMapBegin();
58330
                this.success = new HashMap<String,String>(2*_map143.size);
57626
                this.success = new HashMap<String,String>(2*_map139.size);
58331
                for (int _i144 = 0; _i144 < _map143.size; ++_i144)
57627
                for (int _i140 = 0; _i140 < _map139.size; ++_i140)
58332
                {
57628
                {
58333
                  String _key145; // required
57629
                  String _key141; // required
58334
                  String _val146; // required
57630
                  String _val142; // required
58335
                  _key145 = iprot.readString();
57631
                  _key141 = iprot.readString();
58336
                  _val146 = iprot.readString();
57632
                  _val142 = iprot.readString();
58337
                  this.success.put(_key145, _val146);
57633
                  this.success.put(_key141, _val142);
58338
                }
57634
                }
58339
                iprot.readMapEnd();
57635
                iprot.readMapEnd();
58340
              }
57636
              }
58341
            } else { 
57637
            } else { 
58342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 58364... Line 57660...
58364
 
57660
 
58365
      if (this.isSetSuccess()) {
57661
      if (this.isSetSuccess()) {
58366
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57662
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58367
        {
57663
        {
58368
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
57664
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
58369
          for (Map.Entry<String, String> _iter147 : this.success.entrySet())
57665
          for (Map.Entry<String, String> _iter143 : this.success.entrySet())
58370
          {
57666
          {
58371
            oprot.writeString(_iter147.getKey());
57667
            oprot.writeString(_iter143.getKey());
58372
            oprot.writeString(_iter147.getValue());
57668
            oprot.writeString(_iter143.getValue());
58373
          }
57669
          }
58374
          oprot.writeMapEnd();
57670
          oprot.writeMapEnd();
58375
        }
57671
        }
58376
        oprot.writeFieldEnd();
57672
        oprot.writeFieldEnd();
58377
      } else if (this.isSetEx()) {
57673
      } else if (this.isSetEx()) {
Line 58983... Line 58279...
58983
        }
58279
        }
58984
        switch (field.id) {
58280
        switch (field.id) {
58985
          case 0: // SUCCESS
58281
          case 0: // SUCCESS
58986
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
58282
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
58987
              {
58283
              {
58988
                org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
58284
                org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
58989
                this.success = new ArrayList<Long>(_list148.size);
58285
                this.success = new ArrayList<Long>(_list144.size);
58990
                for (int _i149 = 0; _i149 < _list148.size; ++_i149)
58286
                for (int _i145 = 0; _i145 < _list144.size; ++_i145)
58991
                {
58287
                {
58992
                  long _elem150; // required
58288
                  long _elem146; // required
58993
                  _elem150 = iprot.readI64();
58289
                  _elem146 = iprot.readI64();
58994
                  this.success.add(_elem150);
58290
                  this.success.add(_elem146);
58995
                }
58291
                }
58996
                iprot.readListEnd();
58292
                iprot.readListEnd();
58997
              }
58293
              }
58998
            } else { 
58294
            } else { 
58999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 59013... Line 58309...
59013
 
58309
 
59014
      if (this.isSetSuccess()) {
58310
      if (this.isSetSuccess()) {
59015
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58311
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
59016
        {
58312
        {
59017
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
58313
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
59018
          for (long _iter151 : this.success)
58314
          for (long _iter147 : this.success)
59019
          {
58315
          {
59020
            oprot.writeI64(_iter151);
58316
            oprot.writeI64(_iter147);
59021
          }
58317
          }
59022
          oprot.writeListEnd();
58318
          oprot.writeListEnd();
59023
        }
58319
        }
59024
        oprot.writeFieldEnd();
58320
        oprot.writeFieldEnd();
59025
      }
58321
      }
Line 60109... Line 59405...
60109
        }
59405
        }
60110
        switch (field.id) {
59406
        switch (field.id) {
60111
          case 0: // SUCCESS
59407
          case 0: // SUCCESS
60112
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
59408
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
60113
              {
59409
              {
60114
                org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin();
59410
                org.apache.thrift.protocol.TMap _map148 = iprot.readMapBegin();
60115
                this.success = new HashMap<Long,Long>(2*_map152.size);
59411
                this.success = new HashMap<Long,Long>(2*_map148.size);
60116
                for (int _i153 = 0; _i153 < _map152.size; ++_i153)
59412
                for (int _i149 = 0; _i149 < _map148.size; ++_i149)
60117
                {
59413
                {
60118
                  long _key154; // required
59414
                  long _key150; // required
60119
                  long _val155; // required
59415
                  long _val151; // required
60120
                  _key154 = iprot.readI64();
59416
                  _key150 = iprot.readI64();
60121
                  _val155 = iprot.readI64();
59417
                  _val151 = iprot.readI64();
60122
                  this.success.put(_key154, _val155);
59418
                  this.success.put(_key150, _val151);
60123
                }
59419
                }
60124
                iprot.readMapEnd();
59420
                iprot.readMapEnd();
60125
              }
59421
              }
60126
            } else { 
59422
            } else { 
60127
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 60141... Line 59437...
60141
 
59437
 
60142
      if (this.isSetSuccess()) {
59438
      if (this.isSetSuccess()) {
60143
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
59439
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60144
        {
59440
        {
60145
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
59441
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
60146
          for (Map.Entry<Long, Long> _iter156 : this.success.entrySet())
59442
          for (Map.Entry<Long, Long> _iter152 : this.success.entrySet())
60147
          {
59443
          {
60148
            oprot.writeI64(_iter156.getKey());
59444
            oprot.writeI64(_iter152.getKey());
60149
            oprot.writeI64(_iter156.getValue());
59445
            oprot.writeI64(_iter152.getValue());
60150
          }
59446
          }
60151
          oprot.writeMapEnd();
59447
          oprot.writeMapEnd();
60152
        }
59448
        }
60153
        oprot.writeFieldEnd();
59449
        oprot.writeFieldEnd();
60154
      }
59450
      }
Line 60442... Line 59738...
60442
        }
59738
        }
60443
        switch (field.id) {
59739
        switch (field.id) {
60444
          case 1: // ITEM_IDS
59740
          case 1: // ITEM_IDS
60445
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
59741
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60446
              {
59742
              {
60447
                org.apache.thrift.protocol.TList _list157 = iprot.readListBegin();
59743
                org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
60448
                this.itemIds = new ArrayList<Long>(_list157.size);
59744
                this.itemIds = new ArrayList<Long>(_list153.size);
60449
                for (int _i158 = 0; _i158 < _list157.size; ++_i158)
59745
                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
60450
                {
59746
                {
60451
                  long _elem159; // required
59747
                  long _elem155; // required
60452
                  _elem159 = iprot.readI64();
59748
                  _elem155 = iprot.readI64();
60453
                  this.itemIds.add(_elem159);
59749
                  this.itemIds.add(_elem155);
60454
                }
59750
                }
60455
                iprot.readListEnd();
59751
                iprot.readListEnd();
60456
              }
59752
              }
60457
            } else { 
59753
            } else { 
60458
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 60473... Line 59769...
60473
      oprot.writeStructBegin(STRUCT_DESC);
59769
      oprot.writeStructBegin(STRUCT_DESC);
60474
      if (this.itemIds != null) {
59770
      if (this.itemIds != null) {
60475
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
59771
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
60476
        {
59772
        {
60477
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
59773
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
60478
          for (long _iter160 : this.itemIds)
59774
          for (long _iter156 : this.itemIds)
60479
          {
59775
          {
60480
            oprot.writeI64(_iter160);
59776
            oprot.writeI64(_iter156);
60481
          }
59777
          }
60482
          oprot.writeListEnd();
59778
          oprot.writeListEnd();
60483
        }
59779
        }
60484
        oprot.writeFieldEnd();
59780
        oprot.writeFieldEnd();
60485
      }
59781
      }
Line 60773... Line 60069...
60773
        }
60069
        }
60774
        switch (field.id) {
60070
        switch (field.id) {
60775
          case 0: // SUCCESS
60071
          case 0: // SUCCESS
60776
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60072
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60777
              {
60073
              {
60778
                org.apache.thrift.protocol.TList _list161 = iprot.readListBegin();
60074
                org.apache.thrift.protocol.TList _list157 = iprot.readListBegin();
60779
                this.success = new ArrayList<Order>(_list161.size);
60075
                this.success = new ArrayList<Order>(_list157.size);
60780
                for (int _i162 = 0; _i162 < _list161.size; ++_i162)
60076
                for (int _i158 = 0; _i158 < _list157.size; ++_i158)
60781
                {
60077
                {
60782
                  Order _elem163; // required
60078
                  Order _elem159; // required
60783
                  _elem163 = new Order();
60079
                  _elem159 = new Order();
60784
                  _elem163.read(iprot);
60080
                  _elem159.read(iprot);
60785
                  this.success.add(_elem163);
60081
                  this.success.add(_elem159);
60786
                }
60082
                }
60787
                iprot.readListEnd();
60083
                iprot.readListEnd();
60788
              }
60084
              }
60789
            } else { 
60085
            } else { 
60790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60086
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 60804... Line 60100...
60804
 
60100
 
60805
      if (this.isSetSuccess()) {
60101
      if (this.isSetSuccess()) {
60806
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60102
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60807
        {
60103
        {
60808
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
60104
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
60809
          for (Order _iter164 : this.success)
60105
          for (Order _iter160 : this.success)
60810
          {
60106
          {
60811
            _iter164.write(oprot);
60107
            _iter160.write(oprot);
60812
          }
60108
          }
60813
          oprot.writeListEnd();
60109
          oprot.writeListEnd();
60814
        }
60110
        }
60815
        oprot.writeFieldEnd();
60111
        oprot.writeFieldEnd();
60816
      }
60112
      }
Line 68762... Line 68058...
68762
        }
68058
        }
68763
        switch (field.id) {
68059
        switch (field.id) {
68764
          case 0: // SUCCESS
68060
          case 0: // SUCCESS
68765
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
68061
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
68766
              {
68062
              {
68767
                org.apache.thrift.protocol.TMap _map165 = iprot.readMapBegin();
68063
                org.apache.thrift.protocol.TMap _map161 = iprot.readMapBegin();
68768
                this.success = new HashMap<Integer,TimeoutSummary>(2*_map165.size);
68064
                this.success = new HashMap<Integer,TimeoutSummary>(2*_map161.size);
68769
                for (int _i166 = 0; _i166 < _map165.size; ++_i166)
68065
                for (int _i162 = 0; _i162 < _map161.size; ++_i162)
68770
                {
68066
                {
68771
                  int _key167; // required
68067
                  int _key163; // required
68772
                  TimeoutSummary _val168; // required
68068
                  TimeoutSummary _val164; // required
68773
                  _key167 = iprot.readI32();
68069
                  _key163 = iprot.readI32();
68774
                  _val168 = new TimeoutSummary();
68070
                  _val164 = new TimeoutSummary();
68775
                  _val168.read(iprot);
68071
                  _val164.read(iprot);
68776
                  this.success.put(_key167, _val168);
68072
                  this.success.put(_key163, _val164);
68777
                }
68073
                }
68778
                iprot.readMapEnd();
68074
                iprot.readMapEnd();
68779
              }
68075
              }
68780
            } else { 
68076
            } else { 
68781
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 68803... Line 68099...
68803
 
68099
 
68804
      if (this.isSetSuccess()) {
68100
      if (this.isSetSuccess()) {
68805
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
68101
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
68806
        {
68102
        {
68807
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
68103
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
68808
          for (Map.Entry<Integer, TimeoutSummary> _iter169 : this.success.entrySet())
68104
          for (Map.Entry<Integer, TimeoutSummary> _iter165 : this.success.entrySet())
68809
          {
68105
          {
68810
            oprot.writeI32(_iter169.getKey());
68106
            oprot.writeI32(_iter165.getKey());
68811
            _iter169.getValue().write(oprot);
68107
            _iter165.getValue().write(oprot);
68812
          }
68108
          }
68813
          oprot.writeMapEnd();
68109
          oprot.writeMapEnd();
68814
        }
68110
        }
68815
        oprot.writeFieldEnd();
68111
        oprot.writeFieldEnd();
68816
      } else if (this.isSetEx()) {
68112
      } else if (this.isSetEx()) {
Line 70929... Line 70225...
70929
        }
70225
        }
70930
        switch (field.id) {
70226
        switch (field.id) {
70931
          case 0: // SUCCESS
70227
          case 0: // SUCCESS
70932
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
70228
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
70933
              {
70229
              {
70934
                org.apache.thrift.protocol.TList _list170 = iprot.readListBegin();
70230
                org.apache.thrift.protocol.TList _list166 = iprot.readListBegin();
70935
                this.success = new ArrayList<Order>(_list170.size);
70231
                this.success = new ArrayList<Order>(_list166.size);
70936
                for (int _i171 = 0; _i171 < _list170.size; ++_i171)
70232
                for (int _i167 = 0; _i167 < _list166.size; ++_i167)
70937
                {
70233
                {
70938
                  Order _elem172; // required
70234
                  Order _elem168; // required
70939
                  _elem172 = new Order();
70235
                  _elem168 = new Order();
70940
                  _elem172.read(iprot);
70236
                  _elem168.read(iprot);
70941
                  this.success.add(_elem172);
70237
                  this.success.add(_elem168);
70942
                }
70238
                }
70943
                iprot.readListEnd();
70239
                iprot.readListEnd();
70944
              }
70240
              }
70945
            } else { 
70241
            } else { 
70946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
70242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 70968... Line 70264...
70968
 
70264
 
70969
      if (this.isSetSuccess()) {
70265
      if (this.isSetSuccess()) {
70970
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
70266
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
70971
        {
70267
        {
70972
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
70268
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
70973
          for (Order _iter173 : this.success)
70269
          for (Order _iter169 : this.success)
70974
          {
70270
          {
70975
            _iter173.write(oprot);
70271
            _iter169.write(oprot);
70976
          }
70272
          }
70977
          oprot.writeListEnd();
70273
          oprot.writeListEnd();
70978
        }
70274
        }
70979
        oprot.writeFieldEnd();
70275
        oprot.writeFieldEnd();
70980
      } else if (this.isSetEx()) {
70276
      } else if (this.isSetEx()) {
Line 71808... Line 71104...
71808
        }
71104
        }
71809
        switch (field.id) {
71105
        switch (field.id) {
71810
          case 0: // SUCCESS
71106
          case 0: // SUCCESS
71811
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
71107
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
71812
              {
71108
              {
71813
                org.apache.thrift.protocol.TList _list174 = iprot.readListBegin();
71109
                org.apache.thrift.protocol.TList _list170 = iprot.readListBegin();
71814
                this.success = new ArrayList<Order>(_list174.size);
71110
                this.success = new ArrayList<Order>(_list170.size);
71815
                for (int _i175 = 0; _i175 < _list174.size; ++_i175)
71111
                for (int _i171 = 0; _i171 < _list170.size; ++_i171)
71816
                {
71112
                {
71817
                  Order _elem176; // required
71113
                  Order _elem172; // required
71818
                  _elem176 = new Order();
71114
                  _elem172 = new Order();
71819
                  _elem176.read(iprot);
71115
                  _elem172.read(iprot);
71820
                  this.success.add(_elem176);
71116
                  this.success.add(_elem172);
71821
                }
71117
                }
71822
                iprot.readListEnd();
71118
                iprot.readListEnd();
71823
              }
71119
              }
71824
            } else { 
71120
            } else { 
71825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
71121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 71847... Line 71143...
71847
 
71143
 
71848
      if (this.isSetSuccess()) {
71144
      if (this.isSetSuccess()) {
71849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
71145
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
71850
        {
71146
        {
71851
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
71147
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
71852
          for (Order _iter177 : this.success)
71148
          for (Order _iter173 : this.success)
71853
          {
71149
          {
71854
            _iter177.write(oprot);
71150
            _iter173.write(oprot);
71855
          }
71151
          }
71856
          oprot.writeListEnd();
71152
          oprot.writeListEnd();
71857
        }
71153
        }
71858
        oprot.writeFieldEnd();
71154
        oprot.writeFieldEnd();
71859
      } else if (this.isSetEx()) {
71155
      } else if (this.isSetEx()) {
Line 72427... Line 71723...
72427
        }
71723
        }
72428
        switch (field.id) {
71724
        switch (field.id) {
72429
          case 0: // SUCCESS
71725
          case 0: // SUCCESS
72430
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
71726
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
72431
              {
71727
              {
72432
                org.apache.thrift.protocol.TList _list178 = iprot.readListBegin();
71728
                org.apache.thrift.protocol.TList _list174 = iprot.readListBegin();
72433
                this.success = new ArrayList<Order>(_list178.size);
71729
                this.success = new ArrayList<Order>(_list174.size);
72434
                for (int _i179 = 0; _i179 < _list178.size; ++_i179)
71730
                for (int _i175 = 0; _i175 < _list174.size; ++_i175)
72435
                {
71731
                {
72436
                  Order _elem180; // required
71732
                  Order _elem176; // required
72437
                  _elem180 = new Order();
71733
                  _elem176 = new Order();
72438
                  _elem180.read(iprot);
71734
                  _elem176.read(iprot);
72439
                  this.success.add(_elem180);
71735
                  this.success.add(_elem176);
72440
                }
71736
                }
72441
                iprot.readListEnd();
71737
                iprot.readListEnd();
72442
              }
71738
              }
72443
            } else { 
71739
            } else { 
72444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
71740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 72466... Line 71762...
72466
 
71762
 
72467
      if (this.isSetSuccess()) {
71763
      if (this.isSetSuccess()) {
72468
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
71764
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
72469
        {
71765
        {
72470
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
71766
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
72471
          for (Order _iter181 : this.success)
71767
          for (Order _iter177 : this.success)
72472
          {
71768
          {
72473
            _iter181.write(oprot);
71769
            _iter177.write(oprot);
72474
          }
71770
          }
72475
          oprot.writeListEnd();
71771
          oprot.writeListEnd();
72476
        }
71772
        }
72477
        oprot.writeFieldEnd();
71773
        oprot.writeFieldEnd();
72478
      } else if (this.isSetEx()) {
71774
      } else if (this.isSetEx()) {
Line 73223... Line 72519...
73223
        }
72519
        }
73224
        switch (field.id) {
72520
        switch (field.id) {
73225
          case 0: // SUCCESS
72521
          case 0: // SUCCESS
73226
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
72522
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
73227
              {
72523
              {
73228
                org.apache.thrift.protocol.TList _list182 = iprot.readListBegin();
72524
                org.apache.thrift.protocol.TList _list178 = iprot.readListBegin();
73229
                this.success = new ArrayList<Order>(_list182.size);
72525
                this.success = new ArrayList<Order>(_list178.size);
73230
                for (int _i183 = 0; _i183 < _list182.size; ++_i183)
72526
                for (int _i179 = 0; _i179 < _list178.size; ++_i179)
73231
                {
72527
                {
73232
                  Order _elem184; // required
72528
                  Order _elem180; // required
73233
                  _elem184 = new Order();
72529
                  _elem180 = new Order();
73234
                  _elem184.read(iprot);
72530
                  _elem180.read(iprot);
73235
                  this.success.add(_elem184);
72531
                  this.success.add(_elem180);
73236
                }
72532
                }
73237
                iprot.readListEnd();
72533
                iprot.readListEnd();
73238
              }
72534
              }
73239
            } else { 
72535
            } else { 
73240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
72536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 73262... Line 72558...
73262
 
72558
 
73263
      if (this.isSetSuccess()) {
72559
      if (this.isSetSuccess()) {
73264
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
72560
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
73265
        {
72561
        {
73266
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
72562
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
73267
          for (Order _iter185 : this.success)
72563
          for (Order _iter181 : this.success)
73268
          {
72564
          {
73269
            _iter185.write(oprot);
72565
            _iter181.write(oprot);
73270
          }
72566
          }
73271
          oprot.writeListEnd();
72567
          oprot.writeListEnd();
73272
        }
72568
        }
73273
        oprot.writeFieldEnd();
72569
        oprot.writeFieldEnd();
73274
      } else if (this.isSetEx()) {
72570
      } else if (this.isSetEx()) {
Line 73579... Line 72875...
73579
        }
72875
        }
73580
        switch (field.id) {
72876
        switch (field.id) {
73581
          case 1: // MAP_AWBAND_AMOUNT
72877
          case 1: // MAP_AWBAND_AMOUNT
73582
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
72878
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
73583
              {
72879
              {
73584
                org.apache.thrift.protocol.TMap _map186 = iprot.readMapBegin();
72880
                org.apache.thrift.protocol.TMap _map182 = iprot.readMapBegin();
73585
                this.mapAWBAndAmount = new HashMap<Long,Double>(2*_map186.size);
72881
                this.mapAWBAndAmount = new HashMap<Long,Double>(2*_map182.size);
73586
                for (int _i187 = 0; _i187 < _map186.size; ++_i187)
72882
                for (int _i183 = 0; _i183 < _map182.size; ++_i183)
73587
                {
72883
                {
73588
                  long _key188; // required
72884
                  long _key184; // required
73589
                  double _val189; // required
72885
                  double _val185; // required
73590
                  _key188 = iprot.readI64();
72886
                  _key184 = iprot.readI64();
73591
                  _val189 = iprot.readDouble();
72887
                  _val185 = iprot.readDouble();
73592
                  this.mapAWBAndAmount.put(_key188, _val189);
72888
                  this.mapAWBAndAmount.put(_key184, _val185);
73593
                }
72889
                }
73594
                iprot.readMapEnd();
72890
                iprot.readMapEnd();
73595
              }
72891
              }
73596
            } else { 
72892
            } else { 
73597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
72893
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 73612... Line 72908...
73612
      oprot.writeStructBegin(STRUCT_DESC);
72908
      oprot.writeStructBegin(STRUCT_DESC);
73613
      if (this.mapAWBAndAmount != null) {
72909
      if (this.mapAWBAndAmount != null) {
73614
        oprot.writeFieldBegin(MAP_AWBAND_AMOUNT_FIELD_DESC);
72910
        oprot.writeFieldBegin(MAP_AWBAND_AMOUNT_FIELD_DESC);
73615
        {
72911
        {
73616
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.mapAWBAndAmount.size()));
72912
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.mapAWBAndAmount.size()));
73617
          for (Map.Entry<Long, Double> _iter190 : this.mapAWBAndAmount.entrySet())
72913
          for (Map.Entry<Long, Double> _iter186 : this.mapAWBAndAmount.entrySet())
73618
          {
72914
          {
73619
            oprot.writeI64(_iter190.getKey());
72915
            oprot.writeI64(_iter186.getKey());
73620
            oprot.writeDouble(_iter190.getValue());
72916
            oprot.writeDouble(_iter186.getValue());
73621
          }
72917
          }
73622
          oprot.writeMapEnd();
72918
          oprot.writeMapEnd();
73623
        }
72919
        }
73624
        oprot.writeFieldEnd();
72920
        oprot.writeFieldEnd();
73625
      }
72921
      }
Line 77079... Line 76375...
77079
        }
76375
        }
77080
        switch (field.id) {
76376
        switch (field.id) {
77081
          case 0: // SUCCESS
76377
          case 0: // SUCCESS
77082
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
76378
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
77083
              {
76379
              {
77084
                org.apache.thrift.protocol.TMap _map191 = iprot.readMapBegin();
76380
                org.apache.thrift.protocol.TMap _map187 = iprot.readMapBegin();
77085
                this.success = new HashMap<Long,String>(2*_map191.size);
76381
                this.success = new HashMap<Long,String>(2*_map187.size);
77086
                for (int _i192 = 0; _i192 < _map191.size; ++_i192)
76382
                for (int _i188 = 0; _i188 < _map187.size; ++_i188)
77087
                {
76383
                {
77088
                  long _key193; // required
76384
                  long _key189; // required
77089
                  String _val194; // required
76385
                  String _val190; // required
77090
                  _key193 = iprot.readI64();
76386
                  _key189 = iprot.readI64();
77091
                  _val194 = iprot.readString();
76387
                  _val190 = iprot.readString();
77092
                  this.success.put(_key193, _val194);
76388
                  this.success.put(_key189, _val190);
77093
                }
76389
                }
77094
                iprot.readMapEnd();
76390
                iprot.readMapEnd();
77095
              }
76391
              }
77096
            } else { 
76392
            } else { 
77097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
76393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 77119... Line 76415...
77119
 
76415
 
77120
      if (this.isSetSuccess()) {
76416
      if (this.isSetSuccess()) {
77121
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
76417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
77122
        {
76418
        {
77123
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));
76419
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));
77124
          for (Map.Entry<Long, String> _iter195 : this.success.entrySet())
76420
          for (Map.Entry<Long, String> _iter191 : this.success.entrySet())
77125
          {
76421
          {
77126
            oprot.writeI64(_iter195.getKey());
76422
            oprot.writeI64(_iter191.getKey());
77127
            oprot.writeString(_iter195.getValue());
76423
            oprot.writeString(_iter191.getValue());
77128
          }
76424
          }
77129
          oprot.writeMapEnd();
76425
          oprot.writeMapEnd();
77130
        }
76426
        }
77131
        oprot.writeFieldEnd();
76427
        oprot.writeFieldEnd();
77132
      } else if (this.isSetEx()) {
76428
      } else if (this.isSetEx()) {
Line 79223... Line 78519...
79223
        }
78519
        }
79224
        switch (field.id) {
78520
        switch (field.id) {
79225
          case 0: // SUCCESS
78521
          case 0: // SUCCESS
79226
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
78522
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
79227
              {
78523
              {
79228
                org.apache.thrift.protocol.TList _list196 = iprot.readListBegin();
78524
                org.apache.thrift.protocol.TList _list192 = iprot.readListBegin();
79229
                this.success = new ArrayList<PaymentSettlement>(_list196.size);
78525
                this.success = new ArrayList<PaymentSettlement>(_list192.size);
79230
                for (int _i197 = 0; _i197 < _list196.size; ++_i197)
78526
                for (int _i193 = 0; _i193 < _list192.size; ++_i193)
79231
                {
78527
                {
79232
                  PaymentSettlement _elem198; // required
78528
                  PaymentSettlement _elem194; // required
79233
                  _elem198 = new PaymentSettlement();
78529
                  _elem194 = new PaymentSettlement();
79234
                  _elem198.read(iprot);
78530
                  _elem194.read(iprot);
79235
                  this.success.add(_elem198);
78531
                  this.success.add(_elem194);
79236
                }
78532
                }
79237
                iprot.readListEnd();
78533
                iprot.readListEnd();
79238
              }
78534
              }
79239
            } else { 
78535
            } else { 
79240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
78536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 79262... Line 78558...
79262
 
78558
 
79263
      if (this.isSetSuccess()) {
78559
      if (this.isSetSuccess()) {
79264
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
78560
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
79265
        {
78561
        {
79266
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
78562
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
79267
          for (PaymentSettlement _iter199 : this.success)
78563
          for (PaymentSettlement _iter195 : this.success)
79268
          {
78564
          {
79269
            _iter199.write(oprot);
78565
            _iter195.write(oprot);
79270
          }
78566
          }
79271
          oprot.writeListEnd();
78567
          oprot.writeListEnd();
79272
        }
78568
        }
79273
        oprot.writeFieldEnd();
78569
        oprot.writeFieldEnd();
79274
      } else if (this.isSetEx()) {
78570
      } else if (this.isSetEx()) {
Line 79574... Line 78870...
79574
        }
78870
        }
79575
        switch (field.id) {
78871
        switch (field.id) {
79576
          case 1: // ORDER_IDS
78872
          case 1: // ORDER_IDS
79577
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
78873
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
79578
              {
78874
              {
79579
                org.apache.thrift.protocol.TList _list200 = iprot.readListBegin();
78875
                org.apache.thrift.protocol.TList _list196 = iprot.readListBegin();
79580
                this.orderIds = new ArrayList<Long>(_list200.size);
78876
                this.orderIds = new ArrayList<Long>(_list196.size);
79581
                for (int _i201 = 0; _i201 < _list200.size; ++_i201)
78877
                for (int _i197 = 0; _i197 < _list196.size; ++_i197)
79582
                {
78878
                {
79583
                  long _elem202; // required
78879
                  long _elem198; // required
79584
                  _elem202 = iprot.readI64();
78880
                  _elem198 = iprot.readI64();
79585
                  this.orderIds.add(_elem202);
78881
                  this.orderIds.add(_elem198);
79586
                }
78882
                }
79587
                iprot.readListEnd();
78883
                iprot.readListEnd();
79588
              }
78884
              }
79589
            } else { 
78885
            } else { 
79590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
78886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 79605... Line 78901...
79605
      oprot.writeStructBegin(STRUCT_DESC);
78901
      oprot.writeStructBegin(STRUCT_DESC);
79606
      if (this.orderIds != null) {
78902
      if (this.orderIds != null) {
79607
        oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);
78903
        oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);
79608
        {
78904
        {
79609
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.orderIds.size()));
78905
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.orderIds.size()));
79610
          for (long _iter203 : this.orderIds)
78906
          for (long _iter199 : this.orderIds)
79611
          {
78907
          {
79612
            oprot.writeI64(_iter203);
78908
            oprot.writeI64(_iter199);
79613
          }
78909
          }
79614
          oprot.writeListEnd();
78910
          oprot.writeListEnd();
79615
        }
78911
        }
79616
        oprot.writeFieldEnd();
78912
        oprot.writeFieldEnd();
79617
      }
78913
      }
Line 79973... Line 79269...
79973
        }
79269
        }
79974
        switch (field.id) {
79270
        switch (field.id) {
79975
          case 0: // SUCCESS
79271
          case 0: // SUCCESS
79976
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
79272
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
79977
              {
79273
              {
79978
                org.apache.thrift.protocol.TList _list204 = iprot.readListBegin();
79274
                org.apache.thrift.protocol.TList _list200 = iprot.readListBegin();
79979
                this.success = new ArrayList<Long>(_list204.size);
79275
                this.success = new ArrayList<Long>(_list200.size);
79980
                for (int _i205 = 0; _i205 < _list204.size; ++_i205)
79276
                for (int _i201 = 0; _i201 < _list200.size; ++_i201)
79981
                {
79277
                {
79982
                  long _elem206; // required
79278
                  long _elem202; // required
79983
                  _elem206 = iprot.readI64();
79279
                  _elem202 = iprot.readI64();
79984
                  this.success.add(_elem206);
79280
                  this.success.add(_elem202);
79985
                }
79281
                }
79986
                iprot.readListEnd();
79282
                iprot.readListEnd();
79987
              }
79283
              }
79988
            } else { 
79284
            } else { 
79989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
79285
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 80011... Line 79307...
80011
 
79307
 
80012
      if (this.isSetSuccess()) {
79308
      if (this.isSetSuccess()) {
80013
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
79309
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
80014
        {
79310
        {
80015
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
79311
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
80016
          for (long _iter207 : this.success)
79312
          for (long _iter203 : this.success)
80017
          {
79313
          {
80018
            oprot.writeI64(_iter207);
79314
            oprot.writeI64(_iter203);
80019
          }
79315
          }
80020
          oprot.writeListEnd();
79316
          oprot.writeListEnd();
80021
        }
79317
        }
80022
        oprot.writeFieldEnd();
79318
        oprot.writeFieldEnd();
80023
      } else if (this.isSetEx()) {
79319
      } else if (this.isSetEx()) {
Line 80045... Line 79341...
80045
      sb.append("ex:");
79341
      sb.append("ex:");
80046
      if (this.ex == null) {
79342
      if (this.ex == null) {
80047
        sb.append("null");
79343
        sb.append("null");
80048
      } else {
79344
      } else {
80049
        sb.append(this.ex);
79345
        sb.append(this.ex);
-
 
79346
      }
-
 
79347
      first = false;
-
 
79348
      sb.append(")");
-
 
79349
      return sb.toString();
-
 
79350
    }
-
 
79351
 
-
 
79352
    public void validate() throws org.apache.thrift.TException {
-
 
79353
      // check for required fields
-
 
79354
    }
-
 
79355
 
-
 
79356
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
79357
      try {
-
 
79358
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
79359
      } catch (org.apache.thrift.TException te) {
-
 
79360
        throw new java.io.IOException(te);
-
 
79361
      }
-
 
79362
    }
-
 
79363
 
-
 
79364
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
79365
      try {
-
 
79366
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
79367
      } catch (org.apache.thrift.TException te) {
-
 
79368
        throw new java.io.IOException(te);
-
 
79369
      }
-
 
79370
    }
-
 
79371
 
-
 
79372
  }
-
 
79373
 
-
 
79374
  public static class updateOrdersAsPORaised_args implements org.apache.thrift.TBase<updateOrdersAsPORaised_args, updateOrdersAsPORaised_args._Fields>, java.io.Serializable, Cloneable   {
-
 
79375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrdersAsPORaised_args");
-
 
79376
 
-
 
79377
    private static final org.apache.thrift.protocol.TField ITEM_ID_QUANTITY_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIdQuantityMap", org.apache.thrift.protocol.TType.MAP, (short)1);
-
 
79378
    private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
79379
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
79380
 
-
 
79381
    private Map<Long,Long> itemIdQuantityMap; // required
-
 
79382
    private long purchaseOrderId; // required
-
 
79383
    private long warehouseId; // required
-
 
79384
 
-
 
79385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
79386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
79387
      ITEM_ID_QUANTITY_MAP((short)1, "itemIdQuantityMap"),
-
 
79388
      PURCHASE_ORDER_ID((short)2, "purchaseOrderId"),
-
 
79389
      WAREHOUSE_ID((short)3, "warehouseId");
-
 
79390
 
-
 
79391
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
79392
 
-
 
79393
      static {
-
 
79394
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
79395
          byName.put(field.getFieldName(), field);
-
 
79396
        }
-
 
79397
      }
-
 
79398
 
-
 
79399
      /**
-
 
79400
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
79401
       */
-
 
79402
      public static _Fields findByThriftId(int fieldId) {
-
 
79403
        switch(fieldId) {
-
 
79404
          case 1: // ITEM_ID_QUANTITY_MAP
-
 
79405
            return ITEM_ID_QUANTITY_MAP;
-
 
79406
          case 2: // PURCHASE_ORDER_ID
-
 
79407
            return PURCHASE_ORDER_ID;
-
 
79408
          case 3: // WAREHOUSE_ID
-
 
79409
            return WAREHOUSE_ID;
-
 
79410
          default:
-
 
79411
            return null;
-
 
79412
        }
-
 
79413
      }
-
 
79414
 
-
 
79415
      /**
-
 
79416
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
79417
       * if it is not found.
-
 
79418
       */
-
 
79419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
79420
        _Fields fields = findByThriftId(fieldId);
-
 
79421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
79422
        return fields;
-
 
79423
      }
-
 
79424
 
-
 
79425
      /**
-
 
79426
       * Find the _Fields constant that matches name, or null if its not found.
-
 
79427
       */
-
 
79428
      public static _Fields findByName(String name) {
-
 
79429
        return byName.get(name);
-
 
79430
      }
-
 
79431
 
-
 
79432
      private final short _thriftId;
-
 
79433
      private final String _fieldName;
-
 
79434
 
-
 
79435
      _Fields(short thriftId, String fieldName) {
-
 
79436
        _thriftId = thriftId;
-
 
79437
        _fieldName = fieldName;
-
 
79438
      }
-
 
79439
 
-
 
79440
      public short getThriftFieldId() {
-
 
79441
        return _thriftId;
-
 
79442
      }
-
 
79443
 
-
 
79444
      public String getFieldName() {
-
 
79445
        return _fieldName;
-
 
79446
      }
-
 
79447
    }
-
 
79448
 
-
 
79449
    // isset id assignments
-
 
79450
    private static final int __PURCHASEORDERID_ISSET_ID = 0;
-
 
79451
    private static final int __WAREHOUSEID_ISSET_ID = 1;
-
 
79452
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
79453
 
-
 
79454
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
79455
    static {
-
 
79456
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
79457
      tmpMap.put(_Fields.ITEM_ID_QUANTITY_MAP, new org.apache.thrift.meta_data.FieldMetaData("itemIdQuantityMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
79458
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
79459
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
79460
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
79461
      tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
79462
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
79463
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
79464
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
79465
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
79466
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrdersAsPORaised_args.class, metaDataMap);
-
 
79467
    }
-
 
79468
 
-
 
79469
    public updateOrdersAsPORaised_args() {
-
 
79470
    }
-
 
79471
 
-
 
79472
    public updateOrdersAsPORaised_args(
-
 
79473
      Map<Long,Long> itemIdQuantityMap,
-
 
79474
      long purchaseOrderId,
-
 
79475
      long warehouseId)
-
 
79476
    {
-
 
79477
      this();
-
 
79478
      this.itemIdQuantityMap = itemIdQuantityMap;
-
 
79479
      this.purchaseOrderId = purchaseOrderId;
-
 
79480
      setPurchaseOrderIdIsSet(true);
-
 
79481
      this.warehouseId = warehouseId;
-
 
79482
      setWarehouseIdIsSet(true);
-
 
79483
    }
-
 
79484
 
-
 
79485
    /**
-
 
79486
     * Performs a deep copy on <i>other</i>.
-
 
79487
     */
-
 
79488
    public updateOrdersAsPORaised_args(updateOrdersAsPORaised_args other) {
-
 
79489
      __isset_bit_vector.clear();
-
 
79490
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
79491
      if (other.isSetItemIdQuantityMap()) {
-
 
79492
        Map<Long,Long> __this__itemIdQuantityMap = new HashMap<Long,Long>();
-
 
79493
        for (Map.Entry<Long, Long> other_element : other.itemIdQuantityMap.entrySet()) {
-
 
79494
 
-
 
79495
          Long other_element_key = other_element.getKey();
-
 
79496
          Long other_element_value = other_element.getValue();
-
 
79497
 
-
 
79498
          Long __this__itemIdQuantityMap_copy_key = other_element_key;
-
 
79499
 
-
 
79500
          Long __this__itemIdQuantityMap_copy_value = other_element_value;
-
 
79501
 
-
 
79502
          __this__itemIdQuantityMap.put(__this__itemIdQuantityMap_copy_key, __this__itemIdQuantityMap_copy_value);
-
 
79503
        }
-
 
79504
        this.itemIdQuantityMap = __this__itemIdQuantityMap;
-
 
79505
      }
-
 
79506
      this.purchaseOrderId = other.purchaseOrderId;
-
 
79507
      this.warehouseId = other.warehouseId;
-
 
79508
    }
-
 
79509
 
-
 
79510
    public updateOrdersAsPORaised_args deepCopy() {
-
 
79511
      return new updateOrdersAsPORaised_args(this);
-
 
79512
    }
-
 
79513
 
-
 
79514
    @Override
-
 
79515
    public void clear() {
-
 
79516
      this.itemIdQuantityMap = null;
-
 
79517
      setPurchaseOrderIdIsSet(false);
-
 
79518
      this.purchaseOrderId = 0;
-
 
79519
      setWarehouseIdIsSet(false);
-
 
79520
      this.warehouseId = 0;
-
 
79521
    }
-
 
79522
 
-
 
79523
    public int getItemIdQuantityMapSize() {
-
 
79524
      return (this.itemIdQuantityMap == null) ? 0 : this.itemIdQuantityMap.size();
-
 
79525
    }
-
 
79526
 
-
 
79527
    public void putToItemIdQuantityMap(long key, long val) {
-
 
79528
      if (this.itemIdQuantityMap == null) {
-
 
79529
        this.itemIdQuantityMap = new HashMap<Long,Long>();
-
 
79530
      }
-
 
79531
      this.itemIdQuantityMap.put(key, val);
-
 
79532
    }
-
 
79533
 
-
 
79534
    public Map<Long,Long> getItemIdQuantityMap() {
-
 
79535
      return this.itemIdQuantityMap;
-
 
79536
    }
-
 
79537
 
-
 
79538
    public void setItemIdQuantityMap(Map<Long,Long> itemIdQuantityMap) {
-
 
79539
      this.itemIdQuantityMap = itemIdQuantityMap;
-
 
79540
    }
-
 
79541
 
-
 
79542
    public void unsetItemIdQuantityMap() {
-
 
79543
      this.itemIdQuantityMap = null;
-
 
79544
    }
-
 
79545
 
-
 
79546
    /** Returns true if field itemIdQuantityMap is set (has been assigned a value) and false otherwise */
-
 
79547
    public boolean isSetItemIdQuantityMap() {
-
 
79548
      return this.itemIdQuantityMap != null;
-
 
79549
    }
-
 
79550
 
-
 
79551
    public void setItemIdQuantityMapIsSet(boolean value) {
-
 
79552
      if (!value) {
-
 
79553
        this.itemIdQuantityMap = null;
-
 
79554
      }
-
 
79555
    }
-
 
79556
 
-
 
79557
    public long getPurchaseOrderId() {
-
 
79558
      return this.purchaseOrderId;
-
 
79559
    }
-
 
79560
 
-
 
79561
    public void setPurchaseOrderId(long purchaseOrderId) {
-
 
79562
      this.purchaseOrderId = purchaseOrderId;
-
 
79563
      setPurchaseOrderIdIsSet(true);
-
 
79564
    }
-
 
79565
 
-
 
79566
    public void unsetPurchaseOrderId() {
-
 
79567
      __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
-
 
79568
    }
-
 
79569
 
-
 
79570
    /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
-
 
79571
    public boolean isSetPurchaseOrderId() {
-
 
79572
      return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
-
 
79573
    }
-
 
79574
 
-
 
79575
    public void setPurchaseOrderIdIsSet(boolean value) {
-
 
79576
      __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
-
 
79577
    }
-
 
79578
 
-
 
79579
    public long getWarehouseId() {
-
 
79580
      return this.warehouseId;
-
 
79581
    }
-
 
79582
 
-
 
79583
    public void setWarehouseId(long warehouseId) {
-
 
79584
      this.warehouseId = warehouseId;
-
 
79585
      setWarehouseIdIsSet(true);
-
 
79586
    }
-
 
79587
 
-
 
79588
    public void unsetWarehouseId() {
-
 
79589
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
79590
    }
-
 
79591
 
-
 
79592
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
79593
    public boolean isSetWarehouseId() {
-
 
79594
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
79595
    }
-
 
79596
 
-
 
79597
    public void setWarehouseIdIsSet(boolean value) {
-
 
79598
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
79599
    }
-
 
79600
 
-
 
79601
    public void setFieldValue(_Fields field, Object value) {
-
 
79602
      switch (field) {
-
 
79603
      case ITEM_ID_QUANTITY_MAP:
-
 
79604
        if (value == null) {
-
 
79605
          unsetItemIdQuantityMap();
-
 
79606
        } else {
-
 
79607
          setItemIdQuantityMap((Map<Long,Long>)value);
-
 
79608
        }
-
 
79609
        break;
-
 
79610
 
-
 
79611
      case PURCHASE_ORDER_ID:
-
 
79612
        if (value == null) {
-
 
79613
          unsetPurchaseOrderId();
-
 
79614
        } else {
-
 
79615
          setPurchaseOrderId((Long)value);
-
 
79616
        }
-
 
79617
        break;
-
 
79618
 
-
 
79619
      case WAREHOUSE_ID:
-
 
79620
        if (value == null) {
-
 
79621
          unsetWarehouseId();
-
 
79622
        } else {
-
 
79623
          setWarehouseId((Long)value);
-
 
79624
        }
-
 
79625
        break;
-
 
79626
 
-
 
79627
      }
-
 
79628
    }
-
 
79629
 
-
 
79630
    public Object getFieldValue(_Fields field) {
-
 
79631
      switch (field) {
-
 
79632
      case ITEM_ID_QUANTITY_MAP:
-
 
79633
        return getItemIdQuantityMap();
-
 
79634
 
-
 
79635
      case PURCHASE_ORDER_ID:
-
 
79636
        return Long.valueOf(getPurchaseOrderId());
-
 
79637
 
-
 
79638
      case WAREHOUSE_ID:
-
 
79639
        return Long.valueOf(getWarehouseId());
-
 
79640
 
-
 
79641
      }
-
 
79642
      throw new IllegalStateException();
-
 
79643
    }
-
 
79644
 
-
 
79645
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
79646
    public boolean isSet(_Fields field) {
-
 
79647
      if (field == null) {
-
 
79648
        throw new IllegalArgumentException();
-
 
79649
      }
-
 
79650
 
-
 
79651
      switch (field) {
-
 
79652
      case ITEM_ID_QUANTITY_MAP:
-
 
79653
        return isSetItemIdQuantityMap();
-
 
79654
      case PURCHASE_ORDER_ID:
-
 
79655
        return isSetPurchaseOrderId();
-
 
79656
      case WAREHOUSE_ID:
-
 
79657
        return isSetWarehouseId();
-
 
79658
      }
-
 
79659
      throw new IllegalStateException();
-
 
79660
    }
-
 
79661
 
-
 
79662
    @Override
-
 
79663
    public boolean equals(Object that) {
-
 
79664
      if (that == null)
-
 
79665
        return false;
-
 
79666
      if (that instanceof updateOrdersAsPORaised_args)
-
 
79667
        return this.equals((updateOrdersAsPORaised_args)that);
-
 
79668
      return false;
-
 
79669
    }
-
 
79670
 
-
 
79671
    public boolean equals(updateOrdersAsPORaised_args that) {
-
 
79672
      if (that == null)
-
 
79673
        return false;
-
 
79674
 
-
 
79675
      boolean this_present_itemIdQuantityMap = true && this.isSetItemIdQuantityMap();
-
 
79676
      boolean that_present_itemIdQuantityMap = true && that.isSetItemIdQuantityMap();
-
 
79677
      if (this_present_itemIdQuantityMap || that_present_itemIdQuantityMap) {
-
 
79678
        if (!(this_present_itemIdQuantityMap && that_present_itemIdQuantityMap))
-
 
79679
          return false;
-
 
79680
        if (!this.itemIdQuantityMap.equals(that.itemIdQuantityMap))
-
 
79681
          return false;
-
 
79682
      }
-
 
79683
 
-
 
79684
      boolean this_present_purchaseOrderId = true;
-
 
79685
      boolean that_present_purchaseOrderId = true;
-
 
79686
      if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
-
 
79687
        if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
-
 
79688
          return false;
-
 
79689
        if (this.purchaseOrderId != that.purchaseOrderId)
-
 
79690
          return false;
-
 
79691
      }
-
 
79692
 
-
 
79693
      boolean this_present_warehouseId = true;
-
 
79694
      boolean that_present_warehouseId = true;
-
 
79695
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
79696
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
79697
          return false;
-
 
79698
        if (this.warehouseId != that.warehouseId)
-
 
79699
          return false;
-
 
79700
      }
-
 
79701
 
-
 
79702
      return true;
-
 
79703
    }
-
 
79704
 
-
 
79705
    @Override
-
 
79706
    public int hashCode() {
-
 
79707
      return 0;
-
 
79708
    }
-
 
79709
 
-
 
79710
    public int compareTo(updateOrdersAsPORaised_args other) {
-
 
79711
      if (!getClass().equals(other.getClass())) {
-
 
79712
        return getClass().getName().compareTo(other.getClass().getName());
-
 
79713
      }
-
 
79714
 
-
 
79715
      int lastComparison = 0;
-
 
79716
      updateOrdersAsPORaised_args typedOther = (updateOrdersAsPORaised_args)other;
-
 
79717
 
-
 
79718
      lastComparison = Boolean.valueOf(isSetItemIdQuantityMap()).compareTo(typedOther.isSetItemIdQuantityMap());
-
 
79719
      if (lastComparison != 0) {
-
 
79720
        return lastComparison;
-
 
79721
      }
-
 
79722
      if (isSetItemIdQuantityMap()) {
-
 
79723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIdQuantityMap, typedOther.itemIdQuantityMap);
-
 
79724
        if (lastComparison != 0) {
-
 
79725
          return lastComparison;
-
 
79726
        }
-
 
79727
      }
-
 
79728
      lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
-
 
79729
      if (lastComparison != 0) {
-
 
79730
        return lastComparison;
-
 
79731
      }
-
 
79732
      if (isSetPurchaseOrderId()) {
-
 
79733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
-
 
79734
        if (lastComparison != 0) {
-
 
79735
          return lastComparison;
-
 
79736
        }
-
 
79737
      }
-
 
79738
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
79739
      if (lastComparison != 0) {
-
 
79740
        return lastComparison;
-
 
79741
      }
-
 
79742
      if (isSetWarehouseId()) {
-
 
79743
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
79744
        if (lastComparison != 0) {
-
 
79745
          return lastComparison;
-
 
79746
        }
-
 
79747
      }
-
 
79748
      return 0;
-
 
79749
    }
-
 
79750
 
-
 
79751
    public _Fields fieldForId(int fieldId) {
-
 
79752
      return _Fields.findByThriftId(fieldId);
-
 
79753
    }
-
 
79754
 
-
 
79755
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
79756
      org.apache.thrift.protocol.TField field;
-
 
79757
      iprot.readStructBegin();
-
 
79758
      while (true)
-
 
79759
      {
-
 
79760
        field = iprot.readFieldBegin();
-
 
79761
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
79762
          break;
-
 
79763
        }
-
 
79764
        switch (field.id) {
-
 
79765
          case 1: // ITEM_ID_QUANTITY_MAP
-
 
79766
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
79767
              {
-
 
79768
                org.apache.thrift.protocol.TMap _map204 = iprot.readMapBegin();
-
 
79769
                this.itemIdQuantityMap = new HashMap<Long,Long>(2*_map204.size);
-
 
79770
                for (int _i205 = 0; _i205 < _map204.size; ++_i205)
-
 
79771
                {
-
 
79772
                  long _key206; // required
-
 
79773
                  long _val207; // required
-
 
79774
                  _key206 = iprot.readI64();
-
 
79775
                  _val207 = iprot.readI64();
-
 
79776
                  this.itemIdQuantityMap.put(_key206, _val207);
-
 
79777
                }
-
 
79778
                iprot.readMapEnd();
-
 
79779
              }
-
 
79780
            } else { 
-
 
79781
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
79782
            }
-
 
79783
            break;
-
 
79784
          case 2: // PURCHASE_ORDER_ID
-
 
79785
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
79786
              this.purchaseOrderId = iprot.readI64();
-
 
79787
              setPurchaseOrderIdIsSet(true);
-
 
79788
            } else { 
-
 
79789
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
79790
            }
-
 
79791
            break;
-
 
79792
          case 3: // WAREHOUSE_ID
-
 
79793
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
79794
              this.warehouseId = iprot.readI64();
-
 
79795
              setWarehouseIdIsSet(true);
-
 
79796
            } else { 
-
 
79797
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
79798
            }
-
 
79799
            break;
-
 
79800
          default:
-
 
79801
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
79802
        }
-
 
79803
        iprot.readFieldEnd();
-
 
79804
      }
-
 
79805
      iprot.readStructEnd();
-
 
79806
      validate();
-
 
79807
    }
-
 
79808
 
-
 
79809
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
79810
      validate();
-
 
79811
 
-
 
79812
      oprot.writeStructBegin(STRUCT_DESC);
-
 
79813
      if (this.itemIdQuantityMap != null) {
-
 
79814
        oprot.writeFieldBegin(ITEM_ID_QUANTITY_MAP_FIELD_DESC);
-
 
79815
        {
-
 
79816
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.itemIdQuantityMap.size()));
-
 
79817
          for (Map.Entry<Long, Long> _iter208 : this.itemIdQuantityMap.entrySet())
-
 
79818
          {
-
 
79819
            oprot.writeI64(_iter208.getKey());
-
 
79820
            oprot.writeI64(_iter208.getValue());
-
 
79821
          }
-
 
79822
          oprot.writeMapEnd();
-
 
79823
        }
-
 
79824
        oprot.writeFieldEnd();
-
 
79825
      }
-
 
79826
      oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
-
 
79827
      oprot.writeI64(this.purchaseOrderId);
-
 
79828
      oprot.writeFieldEnd();
-
 
79829
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
79830
      oprot.writeI64(this.warehouseId);
-
 
79831
      oprot.writeFieldEnd();
-
 
79832
      oprot.writeFieldStop();
-
 
79833
      oprot.writeStructEnd();
-
 
79834
    }
-
 
79835
 
-
 
79836
    @Override
-
 
79837
    public String toString() {
-
 
79838
      StringBuilder sb = new StringBuilder("updateOrdersAsPORaised_args(");
-
 
79839
      boolean first = true;
-
 
79840
 
-
 
79841
      sb.append("itemIdQuantityMap:");
-
 
79842
      if (this.itemIdQuantityMap == null) {
-
 
79843
        sb.append("null");
-
 
79844
      } else {
-
 
79845
        sb.append(this.itemIdQuantityMap);
-
 
79846
      }
-
 
79847
      first = false;
-
 
79848
      if (!first) sb.append(", ");
-
 
79849
      sb.append("purchaseOrderId:");
-
 
79850
      sb.append(this.purchaseOrderId);
-
 
79851
      first = false;
-
 
79852
      if (!first) sb.append(", ");
-
 
79853
      sb.append("warehouseId:");
-
 
79854
      sb.append(this.warehouseId);
-
 
79855
      first = false;
-
 
79856
      sb.append(")");
-
 
79857
      return sb.toString();
-
 
79858
    }
-
 
79859
 
-
 
79860
    public void validate() throws org.apache.thrift.TException {
-
 
79861
      // check for required fields
-
 
79862
    }
-
 
79863
 
-
 
79864
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
79865
      try {
-
 
79866
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
79867
      } catch (org.apache.thrift.TException te) {
-
 
79868
        throw new java.io.IOException(te);
-
 
79869
      }
-
 
79870
    }
-
 
79871
 
-
 
79872
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
79873
      try {
-
 
79874
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
79875
        __isset_bit_vector = new BitSet(1);
-
 
79876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
79877
      } catch (org.apache.thrift.TException te) {
-
 
79878
        throw new java.io.IOException(te);
-
 
79879
      }
-
 
79880
    }
-
 
79881
 
-
 
79882
  }
-
 
79883
 
-
 
79884
  public static class updateOrdersAsPORaised_result implements org.apache.thrift.TBase<updateOrdersAsPORaised_result, updateOrdersAsPORaised_result._Fields>, java.io.Serializable, Cloneable   {
-
 
79885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrdersAsPORaised_result");
-
 
79886
 
-
 
79887
    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);
-
 
79888
 
-
 
79889
    private TransactionServiceException ex; // required
-
 
79890
 
-
 
79891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
79892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
79893
      EX((short)1, "ex");
-
 
79894
 
-
 
79895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
79896
 
-
 
79897
      static {
-
 
79898
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
79899
          byName.put(field.getFieldName(), field);
-
 
79900
        }
-
 
79901
      }
-
 
79902
 
-
 
79903
      /**
-
 
79904
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
79905
       */
-
 
79906
      public static _Fields findByThriftId(int fieldId) {
-
 
79907
        switch(fieldId) {
-
 
79908
          case 1: // EX
-
 
79909
            return EX;
-
 
79910
          default:
-
 
79911
            return null;
-
 
79912
        }
-
 
79913
      }
-
 
79914
 
-
 
79915
      /**
-
 
79916
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
79917
       * if it is not found.
-
 
79918
       */
-
 
79919
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
79920
        _Fields fields = findByThriftId(fieldId);
-
 
79921
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
79922
        return fields;
-
 
79923
      }
-
 
79924
 
-
 
79925
      /**
-
 
79926
       * Find the _Fields constant that matches name, or null if its not found.
-
 
79927
       */
-
 
79928
      public static _Fields findByName(String name) {
-
 
79929
        return byName.get(name);
-
 
79930
      }
-
 
79931
 
-
 
79932
      private final short _thriftId;
-
 
79933
      private final String _fieldName;
-
 
79934
 
-
 
79935
      _Fields(short thriftId, String fieldName) {
-
 
79936
        _thriftId = thriftId;
-
 
79937
        _fieldName = fieldName;
-
 
79938
      }
-
 
79939
 
-
 
79940
      public short getThriftFieldId() {
-
 
79941
        return _thriftId;
-
 
79942
      }
-
 
79943
 
-
 
79944
      public String getFieldName() {
-
 
79945
        return _fieldName;
-
 
79946
      }
-
 
79947
    }
-
 
79948
 
-
 
79949
    // isset id assignments
-
 
79950
 
-
 
79951
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
79952
    static {
-
 
79953
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
79954
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
79955
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
79956
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
79957
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrdersAsPORaised_result.class, metaDataMap);
-
 
79958
    }
-
 
79959
 
-
 
79960
    public updateOrdersAsPORaised_result() {
-
 
79961
    }
-
 
79962
 
-
 
79963
    public updateOrdersAsPORaised_result(
-
 
79964
      TransactionServiceException ex)
-
 
79965
    {
-
 
79966
      this();
-
 
79967
      this.ex = ex;
-
 
79968
    }
-
 
79969
 
-
 
79970
    /**
-
 
79971
     * Performs a deep copy on <i>other</i>.
-
 
79972
     */
-
 
79973
    public updateOrdersAsPORaised_result(updateOrdersAsPORaised_result other) {
-
 
79974
      if (other.isSetEx()) {
-
 
79975
        this.ex = new TransactionServiceException(other.ex);
-
 
79976
      }
-
 
79977
    }
-
 
79978
 
-
 
79979
    public updateOrdersAsPORaised_result deepCopy() {
-
 
79980
      return new updateOrdersAsPORaised_result(this);
-
 
79981
    }
-
 
79982
 
-
 
79983
    @Override
-
 
79984
    public void clear() {
-
 
79985
      this.ex = null;
-
 
79986
    }
-
 
79987
 
-
 
79988
    public TransactionServiceException getEx() {
-
 
79989
      return this.ex;
-
 
79990
    }
-
 
79991
 
-
 
79992
    public void setEx(TransactionServiceException ex) {
-
 
79993
      this.ex = ex;
-
 
79994
    }
-
 
79995
 
-
 
79996
    public void unsetEx() {
-
 
79997
      this.ex = null;
-
 
79998
    }
-
 
79999
 
-
 
80000
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
80001
    public boolean isSetEx() {
-
 
80002
      return this.ex != null;
-
 
80003
    }
-
 
80004
 
-
 
80005
    public void setExIsSet(boolean value) {
-
 
80006
      if (!value) {
-
 
80007
        this.ex = null;
-
 
80008
      }
-
 
80009
    }
-
 
80010
 
-
 
80011
    public void setFieldValue(_Fields field, Object value) {
-
 
80012
      switch (field) {
-
 
80013
      case EX:
-
 
80014
        if (value == null) {
-
 
80015
          unsetEx();
-
 
80016
        } else {
-
 
80017
          setEx((TransactionServiceException)value);
-
 
80018
        }
-
 
80019
        break;
-
 
80020
 
-
 
80021
      }
-
 
80022
    }
-
 
80023
 
-
 
80024
    public Object getFieldValue(_Fields field) {
-
 
80025
      switch (field) {
-
 
80026
      case EX:
-
 
80027
        return getEx();
-
 
80028
 
-
 
80029
      }
-
 
80030
      throw new IllegalStateException();
-
 
80031
    }
-
 
80032
 
-
 
80033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
80034
    public boolean isSet(_Fields field) {
-
 
80035
      if (field == null) {
-
 
80036
        throw new IllegalArgumentException();
-
 
80037
      }
-
 
80038
 
-
 
80039
      switch (field) {
-
 
80040
      case EX:
-
 
80041
        return isSetEx();
-
 
80042
      }
-
 
80043
      throw new IllegalStateException();
-
 
80044
    }
-
 
80045
 
-
 
80046
    @Override
-
 
80047
    public boolean equals(Object that) {
-
 
80048
      if (that == null)
-
 
80049
        return false;
-
 
80050
      if (that instanceof updateOrdersAsPORaised_result)
-
 
80051
        return this.equals((updateOrdersAsPORaised_result)that);
-
 
80052
      return false;
-
 
80053
    }
-
 
80054
 
-
 
80055
    public boolean equals(updateOrdersAsPORaised_result that) {
-
 
80056
      if (that == null)
-
 
80057
        return false;
-
 
80058
 
-
 
80059
      boolean this_present_ex = true && this.isSetEx();
-
 
80060
      boolean that_present_ex = true && that.isSetEx();
-
 
80061
      if (this_present_ex || that_present_ex) {
-
 
80062
        if (!(this_present_ex && that_present_ex))
-
 
80063
          return false;
-
 
80064
        if (!this.ex.equals(that.ex))
-
 
80065
          return false;
-
 
80066
      }
-
 
80067
 
-
 
80068
      return true;
-
 
80069
    }
-
 
80070
 
-
 
80071
    @Override
-
 
80072
    public int hashCode() {
-
 
80073
      return 0;
-
 
80074
    }
-
 
80075
 
-
 
80076
    public int compareTo(updateOrdersAsPORaised_result other) {
-
 
80077
      if (!getClass().equals(other.getClass())) {
-
 
80078
        return getClass().getName().compareTo(other.getClass().getName());
-
 
80079
      }
-
 
80080
 
-
 
80081
      int lastComparison = 0;
-
 
80082
      updateOrdersAsPORaised_result typedOther = (updateOrdersAsPORaised_result)other;
-
 
80083
 
-
 
80084
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
80085
      if (lastComparison != 0) {
-
 
80086
        return lastComparison;
-
 
80087
      }
-
 
80088
      if (isSetEx()) {
-
 
80089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
80090
        if (lastComparison != 0) {
-
 
80091
          return lastComparison;
-
 
80092
        }
-
 
80093
      }
-
 
80094
      return 0;
-
 
80095
    }
-
 
80096
 
-
 
80097
    public _Fields fieldForId(int fieldId) {
-
 
80098
      return _Fields.findByThriftId(fieldId);
-
 
80099
    }
-
 
80100
 
-
 
80101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
80102
      org.apache.thrift.protocol.TField field;
-
 
80103
      iprot.readStructBegin();
-
 
80104
      while (true)
-
 
80105
      {
-
 
80106
        field = iprot.readFieldBegin();
-
 
80107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
80108
          break;
-
 
80109
        }
-
 
80110
        switch (field.id) {
-
 
80111
          case 1: // EX
-
 
80112
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
80113
              this.ex = new TransactionServiceException();
-
 
80114
              this.ex.read(iprot);
-
 
80115
            } else { 
-
 
80116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
80117
            }
-
 
80118
            break;
-
 
80119
          default:
-
 
80120
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
80121
        }
-
 
80122
        iprot.readFieldEnd();
-
 
80123
      }
-
 
80124
      iprot.readStructEnd();
-
 
80125
      validate();
-
 
80126
    }
-
 
80127
 
-
 
80128
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
80129
      oprot.writeStructBegin(STRUCT_DESC);
-
 
80130
 
-
 
80131
      if (this.isSetEx()) {
-
 
80132
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
80133
        this.ex.write(oprot);
-
 
80134
        oprot.writeFieldEnd();
-
 
80135
      }
-
 
80136
      oprot.writeFieldStop();
-
 
80137
      oprot.writeStructEnd();
-
 
80138
    }
-
 
80139
 
-
 
80140
    @Override
-
 
80141
    public String toString() {
-
 
80142
      StringBuilder sb = new StringBuilder("updateOrdersAsPORaised_result(");
-
 
80143
      boolean first = true;
-
 
80144
 
-
 
80145
      sb.append("ex:");
-
 
80146
      if (this.ex == null) {
-
 
80147
        sb.append("null");
-
 
80148
      } else {
-
 
80149
        sb.append(this.ex);
80050
      }
80150
      }
80051
      first = false;
80151
      first = false;
80052
      sb.append(")");
80152
      sb.append(")");
80053
      return sb.toString();
80153
      return sb.toString();
80054
    }
80154
    }