Subversion Repositories SmartDukaan

Rev

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

Rev 5238 Rev 5348
Line 757... Line 757...
757
     * 
757
     * 
758
     * @param orderIds
758
     * @param orderIds
759
     */
759
     */
760
    public List<Long> getReshippedOrderIds(List<Long> orderIds) throws TransactionServiceException, org.apache.thrift.TException;
760
    public List<Long> getReshippedOrderIds(List<Long> orderIds) throws TransactionServiceException, org.apache.thrift.TException;
761
 
761
 
-
 
762
    /**
-
 
763
     * Updates orders as PO raised. Also updates purchase order id in orders. Pass a map of items mapped to
-
 
764
     * the quantities for which the PO is raised.
-
 
765
     * 
-
 
766
     * @param itemIdQuantityMap
-
 
767
     * @param purchaseOrderId
-
 
768
     * @param warehouseId
-
 
769
     */
-
 
770
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
771
 
762
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
772
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
763
 
773
 
764
    public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;
774
    public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;
765
 
775
 
766
    public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException;
776
    public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException;
767
 
777
 
-
 
778
    /**
-
 
779
     * Updates the agent who handled the COD verification call
-
 
780
     * 
-
 
781
     * @param agent
-
 
782
     * @param orderId
-
 
783
     */
-
 
784
    public void updateCODAgent(String agent, long orderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
785
 
768
    public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
786
    public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
769
 
787
 
770
    public List<Order> getRefundedOrdersMarkedPaid() throws TransactionServiceException, org.apache.thrift.TException;
788
    public List<Order> getRefundedOrdersMarkedPaid() throws TransactionServiceException, org.apache.thrift.TException;
771
 
789
 
772
  }
790
  }
Line 979... Line 997...
979
 
997
 
980
    public void getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementsByDate_call> resultHandler) throws org.apache.thrift.TException;
998
    public void getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementsByDate_call> resultHandler) throws org.apache.thrift.TException;
981
 
999
 
982
    public void getReshippedOrderIds(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReshippedOrderIds_call> resultHandler) throws org.apache.thrift.TException;
1000
    public void getReshippedOrderIds(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReshippedOrderIds_call> resultHandler) throws org.apache.thrift.TException;
983
 
1001
 
-
 
1002
    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;
-
 
1003
 
984
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException;
1004
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException;
985
 
1005
 
986
    public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;
1006
    public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;
987
 
1007
 
988
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
1008
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
989
 
1009
 
-
 
1010
    public void updateCODAgent(String agent, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateCODAgent_call> resultHandler) throws org.apache.thrift.TException;
-
 
1011
 
990
    public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException;
1012
    public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException;
991
 
1013
 
992
    public void getRefundedOrdersMarkedPaid(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRefundedOrdersMarkedPaid_call> resultHandler) throws org.apache.thrift.TException;
1014
    public void getRefundedOrdersMarkedPaid(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRefundedOrdersMarkedPaid_call> resultHandler) throws org.apache.thrift.TException;
993
 
1015
 
994
  }
1016
  }
Line 3667... Line 3689...
3667
        throw result.ex;
3689
        throw result.ex;
3668
      }
3690
      }
3669
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
3691
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
3670
    }
3692
    }
3671
 
3693
 
-
 
3694
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
-
 
3695
    {
-
 
3696
      send_updateOrdersAsPORaised(itemIdQuantityMap, purchaseOrderId, warehouseId);
-
 
3697
      recv_updateOrdersAsPORaised();
-
 
3698
    }
-
 
3699
 
-
 
3700
    public void send_updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId) throws org.apache.thrift.TException
-
 
3701
    {
-
 
3702
      updateOrdersAsPORaised_args args = new updateOrdersAsPORaised_args();
-
 
3703
      args.setItemIdQuantityMap(itemIdQuantityMap);
-
 
3704
      args.setPurchaseOrderId(purchaseOrderId);
-
 
3705
      args.setWarehouseId(warehouseId);
-
 
3706
      sendBase("updateOrdersAsPORaised", args);
-
 
3707
    }
-
 
3708
 
-
 
3709
    public void recv_updateOrdersAsPORaised() throws TransactionServiceException, org.apache.thrift.TException
-
 
3710
    {
-
 
3711
      updateOrdersAsPORaised_result result = new updateOrdersAsPORaised_result();
-
 
3712
      receiveBase(result, "updateOrdersAsPORaised");
-
 
3713
      if (result.ex != null) {
-
 
3714
        throw result.ex;
-
 
3715
      }
-
 
3716
      return;
-
 
3717
    }
-
 
3718
 
3672
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException
3719
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException
3673
    {
3720
    {
3674
      send_getOrdersWhereVendorNotPaid(vendorId);
3721
      send_getOrdersWhereVendorNotPaid(vendorId);
3675
      return recv_getOrdersWhereVendorNotPaid();
3722
      return recv_getOrdersWhereVendorNotPaid();
3676
    }
3723
    }
Line 3748... Line 3795...
3748
        throw result.ex;
3795
        throw result.ex;
3749
      }
3796
      }
3750
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");
3797
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");
3751
    }
3798
    }
3752
 
3799
 
-
 
3800
    public void updateCODAgent(String agent, long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
3801
    {
-
 
3802
      send_updateCODAgent(agent, orderId);
-
 
3803
      recv_updateCODAgent();
-
 
3804
    }
-
 
3805
 
-
 
3806
    public void send_updateCODAgent(String agent, long orderId) throws org.apache.thrift.TException
-
 
3807
    {
-
 
3808
      updateCODAgent_args args = new updateCODAgent_args();
-
 
3809
      args.setAgent(agent);
-
 
3810
      args.setOrderId(orderId);
-
 
3811
      sendBase("updateCODAgent", args);
-
 
3812
    }
-
 
3813
 
-
 
3814
    public void recv_updateCODAgent() throws TransactionServiceException, org.apache.thrift.TException
-
 
3815
    {
-
 
3816
      updateCODAgent_result result = new updateCODAgent_result();
-
 
3817
      receiveBase(result, "updateCODAgent");
-
 
3818
      if (result.ex != null) {
-
 
3819
        throw result.ex;
-
 
3820
      }
-
 
3821
      return;
-
 
3822
    }
-
 
3823
 
3753
    public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException
3824
    public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException
3754
    {
3825
    {
3755
      send_updateOrderAsPaidToVendor(orderId);
3826
      send_updateOrderAsPaidToVendor(orderId);
3756
      recv_updateOrderAsPaidToVendor();
3827
      recv_updateOrderAsPaidToVendor();
3757
    }
3828
    }
Line 7457... Line 7528...
7457
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7528
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7458
        return (new Client(prot)).recv_getReshippedOrderIds();
7529
        return (new Client(prot)).recv_getReshippedOrderIds();
7459
      }
7530
      }
7460
    }
7531
    }
7461
 
7532
 
-
 
7533
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<updateOrdersAsPORaised_call> resultHandler) throws org.apache.thrift.TException {
-
 
7534
      checkReady();
-
 
7535
      updateOrdersAsPORaised_call method_call = new updateOrdersAsPORaised_call(itemIdQuantityMap, purchaseOrderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
7536
      this.___currentMethod = method_call;
-
 
7537
      ___manager.call(method_call);
-
 
7538
    }
-
 
7539
 
-
 
7540
    public static class updateOrdersAsPORaised_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7541
      private Map<Long,Long> itemIdQuantityMap;
-
 
7542
      private long purchaseOrderId;
-
 
7543
      private long warehouseId;
-
 
7544
      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 {
-
 
7545
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7546
        this.itemIdQuantityMap = itemIdQuantityMap;
-
 
7547
        this.purchaseOrderId = purchaseOrderId;
-
 
7548
        this.warehouseId = warehouseId;
-
 
7549
      }
-
 
7550
 
-
 
7551
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7552
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOrdersAsPORaised", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7553
        updateOrdersAsPORaised_args args = new updateOrdersAsPORaised_args();
-
 
7554
        args.setItemIdQuantityMap(itemIdQuantityMap);
-
 
7555
        args.setPurchaseOrderId(purchaseOrderId);
-
 
7556
        args.setWarehouseId(warehouseId);
-
 
7557
        args.write(prot);
-
 
7558
        prot.writeMessageEnd();
-
 
7559
      }
-
 
7560
 
-
 
7561
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
7562
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7563
          throw new IllegalStateException("Method call not finished!");
-
 
7564
        }
-
 
7565
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7566
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7567
        (new Client(prot)).recv_updateOrdersAsPORaised();
-
 
7568
      }
-
 
7569
    }
-
 
7570
 
7462
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException {
7571
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException {
7463
      checkReady();
7572
      checkReady();
7464
      getOrdersWhereVendorNotPaid_call method_call = new getOrdersWhereVendorNotPaid_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
7573
      getOrdersWhereVendorNotPaid_call method_call = new getOrdersWhereVendorNotPaid_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
7465
      this.___currentMethod = method_call;
7574
      this.___currentMethod = method_call;
7466
      ___manager.call(method_call);
7575
      ___manager.call(method_call);
Line 7562... Line 7671...
7562
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7671
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7563
        return (new Client(prot)).recv_getOrderIdsForStatus();
7672
        return (new Client(prot)).recv_getOrderIdsForStatus();
7564
      }
7673
      }
7565
    }
7674
    }
7566
 
7675
 
-
 
7676
    public void updateCODAgent(String agent, long orderId, org.apache.thrift.async.AsyncMethodCallback<updateCODAgent_call> resultHandler) throws org.apache.thrift.TException {
-
 
7677
      checkReady();
-
 
7678
      updateCODAgent_call method_call = new updateCODAgent_call(agent, orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
7679
      this.___currentMethod = method_call;
-
 
7680
      ___manager.call(method_call);
-
 
7681
    }
-
 
7682
 
-
 
7683
    public static class updateCODAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7684
      private String agent;
-
 
7685
      private long orderId;
-
 
7686
      public updateCODAgent_call(String agent, long orderId, org.apache.thrift.async.AsyncMethodCallback<updateCODAgent_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 {
-
 
7687
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7688
        this.agent = agent;
-
 
7689
        this.orderId = orderId;
-
 
7690
      }
-
 
7691
 
-
 
7692
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7693
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateCODAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7694
        updateCODAgent_args args = new updateCODAgent_args();
-
 
7695
        args.setAgent(agent);
-
 
7696
        args.setOrderId(orderId);
-
 
7697
        args.write(prot);
-
 
7698
        prot.writeMessageEnd();
-
 
7699
      }
-
 
7700
 
-
 
7701
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
7702
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7703
          throw new IllegalStateException("Method call not finished!");
-
 
7704
        }
-
 
7705
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7706
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7707
        (new Client(prot)).recv_updateCODAgent();
-
 
7708
      }
-
 
7709
    }
-
 
7710
 
7567
    public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException {
7711
    public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException {
7568
      checkReady();
7712
      checkReady();
7569
      updateOrderAsPaidToVendor_call method_call = new updateOrderAsPaidToVendor_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
7713
      updateOrderAsPaidToVendor_call method_call = new updateOrderAsPaidToVendor_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
7570
      this.___currentMethod = method_call;
7714
      this.___currentMethod = method_call;
7571
      ___manager.call(method_call);
7715
      ___manager.call(method_call);
Line 7740... Line 7884...
7740
      processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());
7884
      processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());
7741
      processMap.put("markEBSSettlementUploaded", new markEBSSettlementUploaded());
7885
      processMap.put("markEBSSettlementUploaded", new markEBSSettlementUploaded());
7742
      processMap.put("getEBSSettlementDate", new getEBSSettlementDate());
7886
      processMap.put("getEBSSettlementDate", new getEBSSettlementDate());
7743
      processMap.put("getSettlementsByDate", new getSettlementsByDate());
7887
      processMap.put("getSettlementsByDate", new getSettlementsByDate());
7744
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
7888
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
-
 
7889
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
7745
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7890
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7746
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7891
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7747
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
7892
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
-
 
7893
      processMap.put("updateCODAgent", new updateCODAgent());
7748
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
7894
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
7749
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
7895
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
7750
      return processMap;
7896
      return processMap;
7751
    }
7897
    }
7752
 
7898
 
Line 9765... Line 9911...
9765
        }
9911
        }
9766
        return result;
9912
        return result;
9767
      }
9913
      }
9768
    }
9914
    }
9769
 
9915
 
-
 
9916
    private static class updateOrdersAsPORaised<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrdersAsPORaised_args> {
-
 
9917
      public updateOrdersAsPORaised() {
-
 
9918
        super("updateOrdersAsPORaised");
-
 
9919
      }
-
 
9920
 
-
 
9921
      protected updateOrdersAsPORaised_args getEmptyArgsInstance() {
-
 
9922
        return new updateOrdersAsPORaised_args();
-
 
9923
      }
-
 
9924
 
-
 
9925
      protected updateOrdersAsPORaised_result getResult(I iface, updateOrdersAsPORaised_args args) throws org.apache.thrift.TException {
-
 
9926
        updateOrdersAsPORaised_result result = new updateOrdersAsPORaised_result();
-
 
9927
        try {
-
 
9928
          iface.updateOrdersAsPORaised(args.itemIdQuantityMap, args.purchaseOrderId, args.warehouseId);
-
 
9929
        } catch (TransactionServiceException ex) {
-
 
9930
          result.ex = ex;
-
 
9931
        }
-
 
9932
        return result;
-
 
9933
      }
-
 
9934
    }
-
 
9935
 
9770
    private static class getOrdersWhereVendorNotPaid<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersWhereVendorNotPaid_args> {
9936
    private static class getOrdersWhereVendorNotPaid<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersWhereVendorNotPaid_args> {
9771
      public getOrdersWhereVendorNotPaid() {
9937
      public getOrdersWhereVendorNotPaid() {
9772
        super("getOrdersWhereVendorNotPaid");
9938
        super("getOrdersWhereVendorNotPaid");
9773
      }
9939
      }
9774
 
9940
 
Line 9825... Line 9991...
9825
        }
9991
        }
9826
        return result;
9992
        return result;
9827
      }
9993
      }
9828
    }
9994
    }
9829
 
9995
 
-
 
9996
    private static class updateCODAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateCODAgent_args> {
-
 
9997
      public updateCODAgent() {
-
 
9998
        super("updateCODAgent");
-
 
9999
      }
-
 
10000
 
-
 
10001
      protected updateCODAgent_args getEmptyArgsInstance() {
-
 
10002
        return new updateCODAgent_args();
-
 
10003
      }
-
 
10004
 
-
 
10005
      protected updateCODAgent_result getResult(I iface, updateCODAgent_args args) throws org.apache.thrift.TException {
-
 
10006
        updateCODAgent_result result = new updateCODAgent_result();
-
 
10007
        try {
-
 
10008
          iface.updateCODAgent(args.agent, args.orderId);
-
 
10009
        } catch (TransactionServiceException ex) {
-
 
10010
          result.ex = ex;
-
 
10011
        }
-
 
10012
        return result;
-
 
10013
      }
-
 
10014
    }
-
 
10015
 
9830
    private static class updateOrderAsPaidToVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrderAsPaidToVendor_args> {
10016
    private static class updateOrderAsPaidToVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrderAsPaidToVendor_args> {
9831
      public updateOrderAsPaidToVendor() {
10017
      public updateOrderAsPaidToVendor() {
9832
        super("updateOrderAsPaidToVendor");
10018
        super("updateOrderAsPaidToVendor");
9833
      }
10019
      }
9834
 
10020
 
Line 32149... Line 32335...
32149
      }
32335
      }
32150
    }
32336
    }
32151
 
32337
 
32152
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32153
      try {
32339
      try {
-
 
32340
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
32341
        __isset_bit_vector = new BitSet(1);
32154
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32342
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32155
      } catch (org.apache.thrift.TException te) {
32343
      } catch (org.apache.thrift.TException te) {
32156
        throw new java.io.IOException(te);
32344
        throw new java.io.IOException(te);
32157
      }
32345
      }
32158
    }
32346
    }
Line 35563... Line 35751...
35563
      }
35751
      }
35564
    }
35752
    }
35565
 
35753
 
35566
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35567
      try {
35755
      try {
35568
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
35569
        __isset_bit_vector = new BitSet(1);
-
 
35570
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35571
      } catch (org.apache.thrift.TException te) {
35757
      } catch (org.apache.thrift.TException te) {
35572
        throw new java.io.IOException(te);
35758
        throw new java.io.IOException(te);
35573
      }
35759
      }
35574
    }
35760
    }
Line 51111... Line 51297...
51111
      }
51297
      }
51112
    }
51298
    }
51113
 
51299
 
51114
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51115
      try {
51301
      try {
51116
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
51117
        __isset_bit_vector = new BitSet(1);
-
 
51118
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51119
      } catch (org.apache.thrift.TException te) {
51303
      } catch (org.apache.thrift.TException te) {
51120
        throw new java.io.IOException(te);
51304
        throw new java.io.IOException(te);
51121
      }
51305
      }
51122
    }
51306
    }
Line 57392... Line 57576...
57392
      }
57576
      }
57393
    }
57577
    }
57394
 
57578
 
57395
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57579
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57396
      try {
57580
      try {
57397
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57398
        __isset_bit_vector = new BitSet(1);
-
 
57399
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57581
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57400
      } catch (org.apache.thrift.TException te) {
57582
      } catch (org.apache.thrift.TException te) {
57401
        throw new java.io.IOException(te);
57583
        throw new java.io.IOException(te);
57402
      }
57584
      }
57403
    }
57585
    }
Line 86677... Line 86859...
86677
      }
86859
      }
86678
    }
86860
    }
86679
 
86861
 
86680
  }
86862
  }
86681
 
86863
 
-
 
86864
  public static class updateOrdersAsPORaised_args implements org.apache.thrift.TBase<updateOrdersAsPORaised_args, updateOrdersAsPORaised_args._Fields>, java.io.Serializable, Cloneable   {
-
 
86865
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrdersAsPORaised_args");
-
 
86866
 
-
 
86867
    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);
-
 
86868
    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);
-
 
86869
    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);
-
 
86870
 
-
 
86871
    private Map<Long,Long> itemIdQuantityMap; // required
-
 
86872
    private long purchaseOrderId; // required
-
 
86873
    private long warehouseId; // required
-
 
86874
 
-
 
86875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
86876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
86877
      ITEM_ID_QUANTITY_MAP((short)1, "itemIdQuantityMap"),
-
 
86878
      PURCHASE_ORDER_ID((short)2, "purchaseOrderId"),
-
 
86879
      WAREHOUSE_ID((short)3, "warehouseId");
-
 
86880
 
-
 
86881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
86882
 
-
 
86883
      static {
-
 
86884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
86885
          byName.put(field.getFieldName(), field);
-
 
86886
        }
-
 
86887
      }
-
 
86888
 
-
 
86889
      /**
-
 
86890
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
86891
       */
-
 
86892
      public static _Fields findByThriftId(int fieldId) {
-
 
86893
        switch(fieldId) {
-
 
86894
          case 1: // ITEM_ID_QUANTITY_MAP
-
 
86895
            return ITEM_ID_QUANTITY_MAP;
-
 
86896
          case 2: // PURCHASE_ORDER_ID
-
 
86897
            return PURCHASE_ORDER_ID;
-
 
86898
          case 3: // WAREHOUSE_ID
-
 
86899
            return WAREHOUSE_ID;
-
 
86900
          default:
-
 
86901
            return null;
-
 
86902
        }
-
 
86903
      }
-
 
86904
 
-
 
86905
      /**
-
 
86906
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
86907
       * if it is not found.
-
 
86908
       */
-
 
86909
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
86910
        _Fields fields = findByThriftId(fieldId);
-
 
86911
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
86912
        return fields;
-
 
86913
      }
-
 
86914
 
-
 
86915
      /**
-
 
86916
       * Find the _Fields constant that matches name, or null if its not found.
-
 
86917
       */
-
 
86918
      public static _Fields findByName(String name) {
-
 
86919
        return byName.get(name);
-
 
86920
      }
-
 
86921
 
-
 
86922
      private final short _thriftId;
-
 
86923
      private final String _fieldName;
-
 
86924
 
-
 
86925
      _Fields(short thriftId, String fieldName) {
-
 
86926
        _thriftId = thriftId;
-
 
86927
        _fieldName = fieldName;
-
 
86928
      }
-
 
86929
 
-
 
86930
      public short getThriftFieldId() {
-
 
86931
        return _thriftId;
-
 
86932
      }
-
 
86933
 
-
 
86934
      public String getFieldName() {
-
 
86935
        return _fieldName;
-
 
86936
      }
-
 
86937
    }
-
 
86938
 
-
 
86939
    // isset id assignments
-
 
86940
    private static final int __PURCHASEORDERID_ISSET_ID = 0;
-
 
86941
    private static final int __WAREHOUSEID_ISSET_ID = 1;
-
 
86942
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
86943
 
-
 
86944
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
86945
    static {
-
 
86946
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
86947
      tmpMap.put(_Fields.ITEM_ID_QUANTITY_MAP, new org.apache.thrift.meta_data.FieldMetaData("itemIdQuantityMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
86948
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
86949
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
86950
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
86951
      tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
86952
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
86953
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
86954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
86955
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
86956
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrdersAsPORaised_args.class, metaDataMap);
-
 
86957
    }
-
 
86958
 
-
 
86959
    public updateOrdersAsPORaised_args() {
-
 
86960
    }
-
 
86961
 
-
 
86962
    public updateOrdersAsPORaised_args(
-
 
86963
      Map<Long,Long> itemIdQuantityMap,
-
 
86964
      long purchaseOrderId,
-
 
86965
      long warehouseId)
-
 
86966
    {
-
 
86967
      this();
-
 
86968
      this.itemIdQuantityMap = itemIdQuantityMap;
-
 
86969
      this.purchaseOrderId = purchaseOrderId;
-
 
86970
      setPurchaseOrderIdIsSet(true);
-
 
86971
      this.warehouseId = warehouseId;
-
 
86972
      setWarehouseIdIsSet(true);
-
 
86973
    }
-
 
86974
 
-
 
86975
    /**
-
 
86976
     * Performs a deep copy on <i>other</i>.
-
 
86977
     */
-
 
86978
    public updateOrdersAsPORaised_args(updateOrdersAsPORaised_args other) {
-
 
86979
      __isset_bit_vector.clear();
-
 
86980
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
86981
      if (other.isSetItemIdQuantityMap()) {
-
 
86982
        Map<Long,Long> __this__itemIdQuantityMap = new HashMap<Long,Long>();
-
 
86983
        for (Map.Entry<Long, Long> other_element : other.itemIdQuantityMap.entrySet()) {
-
 
86984
 
-
 
86985
          Long other_element_key = other_element.getKey();
-
 
86986
          Long other_element_value = other_element.getValue();
-
 
86987
 
-
 
86988
          Long __this__itemIdQuantityMap_copy_key = other_element_key;
-
 
86989
 
-
 
86990
          Long __this__itemIdQuantityMap_copy_value = other_element_value;
-
 
86991
 
-
 
86992
          __this__itemIdQuantityMap.put(__this__itemIdQuantityMap_copy_key, __this__itemIdQuantityMap_copy_value);
-
 
86993
        }
-
 
86994
        this.itemIdQuantityMap = __this__itemIdQuantityMap;
-
 
86995
      }
-
 
86996
      this.purchaseOrderId = other.purchaseOrderId;
-
 
86997
      this.warehouseId = other.warehouseId;
-
 
86998
    }
-
 
86999
 
-
 
87000
    public updateOrdersAsPORaised_args deepCopy() {
-
 
87001
      return new updateOrdersAsPORaised_args(this);
-
 
87002
    }
-
 
87003
 
-
 
87004
    @Override
-
 
87005
    public void clear() {
-
 
87006
      this.itemIdQuantityMap = null;
-
 
87007
      setPurchaseOrderIdIsSet(false);
-
 
87008
      this.purchaseOrderId = 0;
-
 
87009
      setWarehouseIdIsSet(false);
-
 
87010
      this.warehouseId = 0;
-
 
87011
    }
-
 
87012
 
-
 
87013
    public int getItemIdQuantityMapSize() {
-
 
87014
      return (this.itemIdQuantityMap == null) ? 0 : this.itemIdQuantityMap.size();
-
 
87015
    }
-
 
87016
 
-
 
87017
    public void putToItemIdQuantityMap(long key, long val) {
-
 
87018
      if (this.itemIdQuantityMap == null) {
-
 
87019
        this.itemIdQuantityMap = new HashMap<Long,Long>();
-
 
87020
      }
-
 
87021
      this.itemIdQuantityMap.put(key, val);
-
 
87022
    }
-
 
87023
 
-
 
87024
    public Map<Long,Long> getItemIdQuantityMap() {
-
 
87025
      return this.itemIdQuantityMap;
-
 
87026
    }
-
 
87027
 
-
 
87028
    public void setItemIdQuantityMap(Map<Long,Long> itemIdQuantityMap) {
-
 
87029
      this.itemIdQuantityMap = itemIdQuantityMap;
-
 
87030
    }
-
 
87031
 
-
 
87032
    public void unsetItemIdQuantityMap() {
-
 
87033
      this.itemIdQuantityMap = null;
-
 
87034
    }
-
 
87035
 
-
 
87036
    /** Returns true if field itemIdQuantityMap is set (has been assigned a value) and false otherwise */
-
 
87037
    public boolean isSetItemIdQuantityMap() {
-
 
87038
      return this.itemIdQuantityMap != null;
-
 
87039
    }
-
 
87040
 
-
 
87041
    public void setItemIdQuantityMapIsSet(boolean value) {
-
 
87042
      if (!value) {
-
 
87043
        this.itemIdQuantityMap = null;
-
 
87044
      }
-
 
87045
    }
-
 
87046
 
-
 
87047
    public long getPurchaseOrderId() {
-
 
87048
      return this.purchaseOrderId;
-
 
87049
    }
-
 
87050
 
-
 
87051
    public void setPurchaseOrderId(long purchaseOrderId) {
-
 
87052
      this.purchaseOrderId = purchaseOrderId;
-
 
87053
      setPurchaseOrderIdIsSet(true);
-
 
87054
    }
-
 
87055
 
-
 
87056
    public void unsetPurchaseOrderId() {
-
 
87057
      __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
-
 
87058
    }
-
 
87059
 
-
 
87060
    /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
-
 
87061
    public boolean isSetPurchaseOrderId() {
-
 
87062
      return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
-
 
87063
    }
-
 
87064
 
-
 
87065
    public void setPurchaseOrderIdIsSet(boolean value) {
-
 
87066
      __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
-
 
87067
    }
-
 
87068
 
-
 
87069
    public long getWarehouseId() {
-
 
87070
      return this.warehouseId;
-
 
87071
    }
-
 
87072
 
-
 
87073
    public void setWarehouseId(long warehouseId) {
-
 
87074
      this.warehouseId = warehouseId;
-
 
87075
      setWarehouseIdIsSet(true);
-
 
87076
    }
-
 
87077
 
-
 
87078
    public void unsetWarehouseId() {
-
 
87079
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
87080
    }
-
 
87081
 
-
 
87082
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
87083
    public boolean isSetWarehouseId() {
-
 
87084
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
87085
    }
-
 
87086
 
-
 
87087
    public void setWarehouseIdIsSet(boolean value) {
-
 
87088
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
87089
    }
-
 
87090
 
-
 
87091
    public void setFieldValue(_Fields field, Object value) {
-
 
87092
      switch (field) {
-
 
87093
      case ITEM_ID_QUANTITY_MAP:
-
 
87094
        if (value == null) {
-
 
87095
          unsetItemIdQuantityMap();
-
 
87096
        } else {
-
 
87097
          setItemIdQuantityMap((Map<Long,Long>)value);
-
 
87098
        }
-
 
87099
        break;
-
 
87100
 
-
 
87101
      case PURCHASE_ORDER_ID:
-
 
87102
        if (value == null) {
-
 
87103
          unsetPurchaseOrderId();
-
 
87104
        } else {
-
 
87105
          setPurchaseOrderId((Long)value);
-
 
87106
        }
-
 
87107
        break;
-
 
87108
 
-
 
87109
      case WAREHOUSE_ID:
-
 
87110
        if (value == null) {
-
 
87111
          unsetWarehouseId();
-
 
87112
        } else {
-
 
87113
          setWarehouseId((Long)value);
-
 
87114
        }
-
 
87115
        break;
-
 
87116
 
-
 
87117
      }
-
 
87118
    }
-
 
87119
 
-
 
87120
    public Object getFieldValue(_Fields field) {
-
 
87121
      switch (field) {
-
 
87122
      case ITEM_ID_QUANTITY_MAP:
-
 
87123
        return getItemIdQuantityMap();
-
 
87124
 
-
 
87125
      case PURCHASE_ORDER_ID:
-
 
87126
        return Long.valueOf(getPurchaseOrderId());
-
 
87127
 
-
 
87128
      case WAREHOUSE_ID:
-
 
87129
        return Long.valueOf(getWarehouseId());
-
 
87130
 
-
 
87131
      }
-
 
87132
      throw new IllegalStateException();
-
 
87133
    }
-
 
87134
 
-
 
87135
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
87136
    public boolean isSet(_Fields field) {
-
 
87137
      if (field == null) {
-
 
87138
        throw new IllegalArgumentException();
-
 
87139
      }
-
 
87140
 
-
 
87141
      switch (field) {
-
 
87142
      case ITEM_ID_QUANTITY_MAP:
-
 
87143
        return isSetItemIdQuantityMap();
-
 
87144
      case PURCHASE_ORDER_ID:
-
 
87145
        return isSetPurchaseOrderId();
-
 
87146
      case WAREHOUSE_ID:
-
 
87147
        return isSetWarehouseId();
-
 
87148
      }
-
 
87149
      throw new IllegalStateException();
-
 
87150
    }
-
 
87151
 
-
 
87152
    @Override
-
 
87153
    public boolean equals(Object that) {
-
 
87154
      if (that == null)
-
 
87155
        return false;
-
 
87156
      if (that instanceof updateOrdersAsPORaised_args)
-
 
87157
        return this.equals((updateOrdersAsPORaised_args)that);
-
 
87158
      return false;
-
 
87159
    }
-
 
87160
 
-
 
87161
    public boolean equals(updateOrdersAsPORaised_args that) {
-
 
87162
      if (that == null)
-
 
87163
        return false;
-
 
87164
 
-
 
87165
      boolean this_present_itemIdQuantityMap = true && this.isSetItemIdQuantityMap();
-
 
87166
      boolean that_present_itemIdQuantityMap = true && that.isSetItemIdQuantityMap();
-
 
87167
      if (this_present_itemIdQuantityMap || that_present_itemIdQuantityMap) {
-
 
87168
        if (!(this_present_itemIdQuantityMap && that_present_itemIdQuantityMap))
-
 
87169
          return false;
-
 
87170
        if (!this.itemIdQuantityMap.equals(that.itemIdQuantityMap))
-
 
87171
          return false;
-
 
87172
      }
-
 
87173
 
-
 
87174
      boolean this_present_purchaseOrderId = true;
-
 
87175
      boolean that_present_purchaseOrderId = true;
-
 
87176
      if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
-
 
87177
        if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
-
 
87178
          return false;
-
 
87179
        if (this.purchaseOrderId != that.purchaseOrderId)
-
 
87180
          return false;
-
 
87181
      }
-
 
87182
 
-
 
87183
      boolean this_present_warehouseId = true;
-
 
87184
      boolean that_present_warehouseId = true;
-
 
87185
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
87186
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
87187
          return false;
-
 
87188
        if (this.warehouseId != that.warehouseId)
-
 
87189
          return false;
-
 
87190
      }
-
 
87191
 
-
 
87192
      return true;
-
 
87193
    }
-
 
87194
 
-
 
87195
    @Override
-
 
87196
    public int hashCode() {
-
 
87197
      return 0;
-
 
87198
    }
-
 
87199
 
-
 
87200
    public int compareTo(updateOrdersAsPORaised_args other) {
-
 
87201
      if (!getClass().equals(other.getClass())) {
-
 
87202
        return getClass().getName().compareTo(other.getClass().getName());
-
 
87203
      }
-
 
87204
 
-
 
87205
      int lastComparison = 0;
-
 
87206
      updateOrdersAsPORaised_args typedOther = (updateOrdersAsPORaised_args)other;
-
 
87207
 
-
 
87208
      lastComparison = Boolean.valueOf(isSetItemIdQuantityMap()).compareTo(typedOther.isSetItemIdQuantityMap());
-
 
87209
      if (lastComparison != 0) {
-
 
87210
        return lastComparison;
-
 
87211
      }
-
 
87212
      if (isSetItemIdQuantityMap()) {
-
 
87213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIdQuantityMap, typedOther.itemIdQuantityMap);
-
 
87214
        if (lastComparison != 0) {
-
 
87215
          return lastComparison;
-
 
87216
        }
-
 
87217
      }
-
 
87218
      lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
-
 
87219
      if (lastComparison != 0) {
-
 
87220
        return lastComparison;
-
 
87221
      }
-
 
87222
      if (isSetPurchaseOrderId()) {
-
 
87223
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
-
 
87224
        if (lastComparison != 0) {
-
 
87225
          return lastComparison;
-
 
87226
        }
-
 
87227
      }
-
 
87228
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
87229
      if (lastComparison != 0) {
-
 
87230
        return lastComparison;
-
 
87231
      }
-
 
87232
      if (isSetWarehouseId()) {
-
 
87233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
87234
        if (lastComparison != 0) {
-
 
87235
          return lastComparison;
-
 
87236
        }
-
 
87237
      }
-
 
87238
      return 0;
-
 
87239
    }
-
 
87240
 
-
 
87241
    public _Fields fieldForId(int fieldId) {
-
 
87242
      return _Fields.findByThriftId(fieldId);
-
 
87243
    }
-
 
87244
 
-
 
87245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
87246
      org.apache.thrift.protocol.TField field;
-
 
87247
      iprot.readStructBegin();
-
 
87248
      while (true)
-
 
87249
      {
-
 
87250
        field = iprot.readFieldBegin();
-
 
87251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
87252
          break;
-
 
87253
        }
-
 
87254
        switch (field.id) {
-
 
87255
          case 1: // ITEM_ID_QUANTITY_MAP
-
 
87256
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
87257
              {
-
 
87258
                org.apache.thrift.protocol.TMap _map279 = iprot.readMapBegin();
-
 
87259
                this.itemIdQuantityMap = new HashMap<Long,Long>(2*_map279.size);
-
 
87260
                for (int _i280 = 0; _i280 < _map279.size; ++_i280)
-
 
87261
                {
-
 
87262
                  long _key281; // required
-
 
87263
                  long _val282; // required
-
 
87264
                  _key281 = iprot.readI64();
-
 
87265
                  _val282 = iprot.readI64();
-
 
87266
                  this.itemIdQuantityMap.put(_key281, _val282);
-
 
87267
                }
-
 
87268
                iprot.readMapEnd();
-
 
87269
              }
-
 
87270
            } else { 
-
 
87271
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87272
            }
-
 
87273
            break;
-
 
87274
          case 2: // PURCHASE_ORDER_ID
-
 
87275
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
87276
              this.purchaseOrderId = iprot.readI64();
-
 
87277
              setPurchaseOrderIdIsSet(true);
-
 
87278
            } else { 
-
 
87279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87280
            }
-
 
87281
            break;
-
 
87282
          case 3: // WAREHOUSE_ID
-
 
87283
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
87284
              this.warehouseId = iprot.readI64();
-
 
87285
              setWarehouseIdIsSet(true);
-
 
87286
            } else { 
-
 
87287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87288
            }
-
 
87289
            break;
-
 
87290
          default:
-
 
87291
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87292
        }
-
 
87293
        iprot.readFieldEnd();
-
 
87294
      }
-
 
87295
      iprot.readStructEnd();
-
 
87296
      validate();
-
 
87297
    }
-
 
87298
 
-
 
87299
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
87300
      validate();
-
 
87301
 
-
 
87302
      oprot.writeStructBegin(STRUCT_DESC);
-
 
87303
      if (this.itemIdQuantityMap != null) {
-
 
87304
        oprot.writeFieldBegin(ITEM_ID_QUANTITY_MAP_FIELD_DESC);
-
 
87305
        {
-
 
87306
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.itemIdQuantityMap.size()));
-
 
87307
          for (Map.Entry<Long, Long> _iter283 : this.itemIdQuantityMap.entrySet())
-
 
87308
          {
-
 
87309
            oprot.writeI64(_iter283.getKey());
-
 
87310
            oprot.writeI64(_iter283.getValue());
-
 
87311
          }
-
 
87312
          oprot.writeMapEnd();
-
 
87313
        }
-
 
87314
        oprot.writeFieldEnd();
-
 
87315
      }
-
 
87316
      oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
-
 
87317
      oprot.writeI64(this.purchaseOrderId);
-
 
87318
      oprot.writeFieldEnd();
-
 
87319
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
87320
      oprot.writeI64(this.warehouseId);
-
 
87321
      oprot.writeFieldEnd();
-
 
87322
      oprot.writeFieldStop();
-
 
87323
      oprot.writeStructEnd();
-
 
87324
    }
-
 
87325
 
-
 
87326
    @Override
-
 
87327
    public String toString() {
-
 
87328
      StringBuilder sb = new StringBuilder("updateOrdersAsPORaised_args(");
-
 
87329
      boolean first = true;
-
 
87330
 
-
 
87331
      sb.append("itemIdQuantityMap:");
-
 
87332
      if (this.itemIdQuantityMap == null) {
-
 
87333
        sb.append("null");
-
 
87334
      } else {
-
 
87335
        sb.append(this.itemIdQuantityMap);
-
 
87336
      }
-
 
87337
      first = false;
-
 
87338
      if (!first) sb.append(", ");
-
 
87339
      sb.append("purchaseOrderId:");
-
 
87340
      sb.append(this.purchaseOrderId);
-
 
87341
      first = false;
-
 
87342
      if (!first) sb.append(", ");
-
 
87343
      sb.append("warehouseId:");
-
 
87344
      sb.append(this.warehouseId);
-
 
87345
      first = false;
-
 
87346
      sb.append(")");
-
 
87347
      return sb.toString();
-
 
87348
    }
-
 
87349
 
-
 
87350
    public void validate() throws org.apache.thrift.TException {
-
 
87351
      // check for required fields
-
 
87352
    }
-
 
87353
 
-
 
87354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
87355
      try {
-
 
87356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
87357
      } catch (org.apache.thrift.TException te) {
-
 
87358
        throw new java.io.IOException(te);
-
 
87359
      }
-
 
87360
    }
-
 
87361
 
-
 
87362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
87363
      try {
-
 
87364
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
87365
        __isset_bit_vector = new BitSet(1);
-
 
87366
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
87367
      } catch (org.apache.thrift.TException te) {
-
 
87368
        throw new java.io.IOException(te);
-
 
87369
      }
-
 
87370
    }
-
 
87371
 
-
 
87372
  }
-
 
87373
 
-
 
87374
  public static class updateOrdersAsPORaised_result implements org.apache.thrift.TBase<updateOrdersAsPORaised_result, updateOrdersAsPORaised_result._Fields>, java.io.Serializable, Cloneable   {
-
 
87375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrdersAsPORaised_result");
-
 
87376
 
-
 
87377
    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);
-
 
87378
 
-
 
87379
    private TransactionServiceException ex; // required
-
 
87380
 
-
 
87381
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
87382
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
87383
      EX((short)1, "ex");
-
 
87384
 
-
 
87385
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
87386
 
-
 
87387
      static {
-
 
87388
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
87389
          byName.put(field.getFieldName(), field);
-
 
87390
        }
-
 
87391
      }
-
 
87392
 
-
 
87393
      /**
-
 
87394
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
87395
       */
-
 
87396
      public static _Fields findByThriftId(int fieldId) {
-
 
87397
        switch(fieldId) {
-
 
87398
          case 1: // EX
-
 
87399
            return EX;
-
 
87400
          default:
-
 
87401
            return null;
-
 
87402
        }
-
 
87403
      }
-
 
87404
 
-
 
87405
      /**
-
 
87406
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
87407
       * if it is not found.
-
 
87408
       */
-
 
87409
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
87410
        _Fields fields = findByThriftId(fieldId);
-
 
87411
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
87412
        return fields;
-
 
87413
      }
-
 
87414
 
-
 
87415
      /**
-
 
87416
       * Find the _Fields constant that matches name, or null if its not found.
-
 
87417
       */
-
 
87418
      public static _Fields findByName(String name) {
-
 
87419
        return byName.get(name);
-
 
87420
      }
-
 
87421
 
-
 
87422
      private final short _thriftId;
-
 
87423
      private final String _fieldName;
-
 
87424
 
-
 
87425
      _Fields(short thriftId, String fieldName) {
-
 
87426
        _thriftId = thriftId;
-
 
87427
        _fieldName = fieldName;
-
 
87428
      }
-
 
87429
 
-
 
87430
      public short getThriftFieldId() {
-
 
87431
        return _thriftId;
-
 
87432
      }
-
 
87433
 
-
 
87434
      public String getFieldName() {
-
 
87435
        return _fieldName;
-
 
87436
      }
-
 
87437
    }
-
 
87438
 
-
 
87439
    // isset id assignments
-
 
87440
 
-
 
87441
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
87442
    static {
-
 
87443
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
87444
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
87445
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
87446
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
87447
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrdersAsPORaised_result.class, metaDataMap);
-
 
87448
    }
-
 
87449
 
-
 
87450
    public updateOrdersAsPORaised_result() {
-
 
87451
    }
-
 
87452
 
-
 
87453
    public updateOrdersAsPORaised_result(
-
 
87454
      TransactionServiceException ex)
-
 
87455
    {
-
 
87456
      this();
-
 
87457
      this.ex = ex;
-
 
87458
    }
-
 
87459
 
-
 
87460
    /**
-
 
87461
     * Performs a deep copy on <i>other</i>.
-
 
87462
     */
-
 
87463
    public updateOrdersAsPORaised_result(updateOrdersAsPORaised_result other) {
-
 
87464
      if (other.isSetEx()) {
-
 
87465
        this.ex = new TransactionServiceException(other.ex);
-
 
87466
      }
-
 
87467
    }
-
 
87468
 
-
 
87469
    public updateOrdersAsPORaised_result deepCopy() {
-
 
87470
      return new updateOrdersAsPORaised_result(this);
-
 
87471
    }
-
 
87472
 
-
 
87473
    @Override
-
 
87474
    public void clear() {
-
 
87475
      this.ex = null;
-
 
87476
    }
-
 
87477
 
-
 
87478
    public TransactionServiceException getEx() {
-
 
87479
      return this.ex;
-
 
87480
    }
-
 
87481
 
-
 
87482
    public void setEx(TransactionServiceException ex) {
-
 
87483
      this.ex = ex;
-
 
87484
    }
-
 
87485
 
-
 
87486
    public void unsetEx() {
-
 
87487
      this.ex = null;
-
 
87488
    }
-
 
87489
 
-
 
87490
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
87491
    public boolean isSetEx() {
-
 
87492
      return this.ex != null;
-
 
87493
    }
-
 
87494
 
-
 
87495
    public void setExIsSet(boolean value) {
-
 
87496
      if (!value) {
-
 
87497
        this.ex = null;
-
 
87498
      }
-
 
87499
    }
-
 
87500
 
-
 
87501
    public void setFieldValue(_Fields field, Object value) {
-
 
87502
      switch (field) {
-
 
87503
      case EX:
-
 
87504
        if (value == null) {
-
 
87505
          unsetEx();
-
 
87506
        } else {
-
 
87507
          setEx((TransactionServiceException)value);
-
 
87508
        }
-
 
87509
        break;
-
 
87510
 
-
 
87511
      }
-
 
87512
    }
-
 
87513
 
-
 
87514
    public Object getFieldValue(_Fields field) {
-
 
87515
      switch (field) {
-
 
87516
      case EX:
-
 
87517
        return getEx();
-
 
87518
 
-
 
87519
      }
-
 
87520
      throw new IllegalStateException();
-
 
87521
    }
-
 
87522
 
-
 
87523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
87524
    public boolean isSet(_Fields field) {
-
 
87525
      if (field == null) {
-
 
87526
        throw new IllegalArgumentException();
-
 
87527
      }
-
 
87528
 
-
 
87529
      switch (field) {
-
 
87530
      case EX:
-
 
87531
        return isSetEx();
-
 
87532
      }
-
 
87533
      throw new IllegalStateException();
-
 
87534
    }
-
 
87535
 
-
 
87536
    @Override
-
 
87537
    public boolean equals(Object that) {
-
 
87538
      if (that == null)
-
 
87539
        return false;
-
 
87540
      if (that instanceof updateOrdersAsPORaised_result)
-
 
87541
        return this.equals((updateOrdersAsPORaised_result)that);
-
 
87542
      return false;
-
 
87543
    }
-
 
87544
 
-
 
87545
    public boolean equals(updateOrdersAsPORaised_result that) {
-
 
87546
      if (that == null)
-
 
87547
        return false;
-
 
87548
 
-
 
87549
      boolean this_present_ex = true && this.isSetEx();
-
 
87550
      boolean that_present_ex = true && that.isSetEx();
-
 
87551
      if (this_present_ex || that_present_ex) {
-
 
87552
        if (!(this_present_ex && that_present_ex))
-
 
87553
          return false;
-
 
87554
        if (!this.ex.equals(that.ex))
-
 
87555
          return false;
-
 
87556
      }
-
 
87557
 
-
 
87558
      return true;
-
 
87559
    }
-
 
87560
 
-
 
87561
    @Override
-
 
87562
    public int hashCode() {
-
 
87563
      return 0;
-
 
87564
    }
-
 
87565
 
-
 
87566
    public int compareTo(updateOrdersAsPORaised_result other) {
-
 
87567
      if (!getClass().equals(other.getClass())) {
-
 
87568
        return getClass().getName().compareTo(other.getClass().getName());
-
 
87569
      }
-
 
87570
 
-
 
87571
      int lastComparison = 0;
-
 
87572
      updateOrdersAsPORaised_result typedOther = (updateOrdersAsPORaised_result)other;
-
 
87573
 
-
 
87574
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
87575
      if (lastComparison != 0) {
-
 
87576
        return lastComparison;
-
 
87577
      }
-
 
87578
      if (isSetEx()) {
-
 
87579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
87580
        if (lastComparison != 0) {
-
 
87581
          return lastComparison;
-
 
87582
        }
-
 
87583
      }
-
 
87584
      return 0;
-
 
87585
    }
-
 
87586
 
-
 
87587
    public _Fields fieldForId(int fieldId) {
-
 
87588
      return _Fields.findByThriftId(fieldId);
-
 
87589
    }
-
 
87590
 
-
 
87591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
87592
      org.apache.thrift.protocol.TField field;
-
 
87593
      iprot.readStructBegin();
-
 
87594
      while (true)
-
 
87595
      {
-
 
87596
        field = iprot.readFieldBegin();
-
 
87597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
87598
          break;
-
 
87599
        }
-
 
87600
        switch (field.id) {
-
 
87601
          case 1: // EX
-
 
87602
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
87603
              this.ex = new TransactionServiceException();
-
 
87604
              this.ex.read(iprot);
-
 
87605
            } else { 
-
 
87606
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87607
            }
-
 
87608
            break;
-
 
87609
          default:
-
 
87610
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87611
        }
-
 
87612
        iprot.readFieldEnd();
-
 
87613
      }
-
 
87614
      iprot.readStructEnd();
-
 
87615
      validate();
-
 
87616
    }
-
 
87617
 
-
 
87618
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
87619
      oprot.writeStructBegin(STRUCT_DESC);
-
 
87620
 
-
 
87621
      if (this.isSetEx()) {
-
 
87622
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
87623
        this.ex.write(oprot);
-
 
87624
        oprot.writeFieldEnd();
-
 
87625
      }
-
 
87626
      oprot.writeFieldStop();
-
 
87627
      oprot.writeStructEnd();
-
 
87628
    }
-
 
87629
 
-
 
87630
    @Override
-
 
87631
    public String toString() {
-
 
87632
      StringBuilder sb = new StringBuilder("updateOrdersAsPORaised_result(");
-
 
87633
      boolean first = true;
-
 
87634
 
-
 
87635
      sb.append("ex:");
-
 
87636
      if (this.ex == null) {
-
 
87637
        sb.append("null");
-
 
87638
      } else {
-
 
87639
        sb.append(this.ex);
-
 
87640
      }
-
 
87641
      first = false;
-
 
87642
      sb.append(")");
-
 
87643
      return sb.toString();
-
 
87644
    }
-
 
87645
 
-
 
87646
    public void validate() throws org.apache.thrift.TException {
-
 
87647
      // check for required fields
-
 
87648
    }
-
 
87649
 
-
 
87650
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
87651
      try {
-
 
87652
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
87653
      } catch (org.apache.thrift.TException te) {
-
 
87654
        throw new java.io.IOException(te);
-
 
87655
      }
-
 
87656
    }
-
 
87657
 
-
 
87658
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
87659
      try {
-
 
87660
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
87661
      } catch (org.apache.thrift.TException te) {
-
 
87662
        throw new java.io.IOException(te);
-
 
87663
      }
-
 
87664
    }
-
 
87665
 
-
 
87666
  }
-
 
87667
 
86682
  public static class getOrdersWhereVendorNotPaid_args implements org.apache.thrift.TBase<getOrdersWhereVendorNotPaid_args, getOrdersWhereVendorNotPaid_args._Fields>, java.io.Serializable, Cloneable   {
87668
  public static class getOrdersWhereVendorNotPaid_args implements org.apache.thrift.TBase<getOrdersWhereVendorNotPaid_args, getOrdersWhereVendorNotPaid_args._Fields>, java.io.Serializable, Cloneable   {
86683
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersWhereVendorNotPaid_args");
87669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersWhereVendorNotPaid_args");
86684
 
87670
 
86685
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);
87671
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);
86686
 
87672
 
Line 87289... Line 88275...
87289
        }
88275
        }
87290
        switch (field.id) {
88276
        switch (field.id) {
87291
          case 0: // SUCCESS
88277
          case 0: // SUCCESS
87292
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
88278
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
87293
              {
88279
              {
87294
                org.apache.thrift.protocol.TList _list279 = iprot.readListBegin();
88280
                org.apache.thrift.protocol.TList _list284 = iprot.readListBegin();
87295
                this.success = new ArrayList<Order>(_list279.size);
88281
                this.success = new ArrayList<Order>(_list284.size);
87296
                for (int _i280 = 0; _i280 < _list279.size; ++_i280)
88282
                for (int _i285 = 0; _i285 < _list284.size; ++_i285)
87297
                {
88283
                {
87298
                  Order _elem281; // required
88284
                  Order _elem286; // required
87299
                  _elem281 = new Order();
88285
                  _elem286 = new Order();
87300
                  _elem281.read(iprot);
88286
                  _elem286.read(iprot);
87301
                  this.success.add(_elem281);
88287
                  this.success.add(_elem286);
87302
                }
88288
                }
87303
                iprot.readListEnd();
88289
                iprot.readListEnd();
87304
              }
88290
              }
87305
            } else { 
88291
            } else { 
87306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
88292
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 87328... Line 88314...
87328
 
88314
 
87329
      if (this.isSetSuccess()) {
88315
      if (this.isSetSuccess()) {
87330
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
88316
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
87331
        {
88317
        {
87332
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
88318
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
87333
          for (Order _iter282 : this.success)
88319
          for (Order _iter287 : this.success)
87334
          {
88320
          {
87335
            _iter282.write(oprot);
88321
            _iter287.write(oprot);
87336
          }
88322
          }
87337
          oprot.writeListEnd();
88323
          oprot.writeListEnd();
87338
        }
88324
        }
87339
        oprot.writeFieldEnd();
88325
        oprot.writeFieldEnd();
87340
      } else if (this.isSetEx()) {
88326
      } else if (this.isSetEx()) {
Line 88090... Line 89076...
88090
        }
89076
        }
88091
        switch (field.id) {
89077
        switch (field.id) {
88092
          case 0: // SUCCESS
89078
          case 0: // SUCCESS
88093
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
89079
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
88094
              {
89080
              {
88095
                org.apache.thrift.protocol.TMap _map283 = iprot.readMapBegin();
89081
                org.apache.thrift.protocol.TMap _map288 = iprot.readMapBegin();
88096
                this.success = new HashMap<Long,Long>(2*_map283.size);
89082
                this.success = new HashMap<Long,Long>(2*_map288.size);
88097
                for (int _i284 = 0; _i284 < _map283.size; ++_i284)
89083
                for (int _i289 = 0; _i289 < _map288.size; ++_i289)
88098
                {
89084
                {
88099
                  long _key285; // required
89085
                  long _key290; // required
88100
                  long _val286; // required
89086
                  long _val291; // required
88101
                  _key285 = iprot.readI64();
89087
                  _key290 = iprot.readI64();
88102
                  _val286 = iprot.readI64();
89088
                  _val291 = iprot.readI64();
88103
                  this.success.put(_key285, _val286);
89089
                  this.success.put(_key290, _val291);
88104
                }
89090
                }
88105
                iprot.readMapEnd();
89091
                iprot.readMapEnd();
88106
              }
89092
              }
88107
            } else { 
89093
            } else { 
88108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
89094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 88130... Line 89116...
88130
 
89116
 
88131
      if (this.isSetSuccess()) {
89117
      if (this.isSetSuccess()) {
88132
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
89118
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
88133
        {
89119
        {
88134
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
89120
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
88135
          for (Map.Entry<Long, Long> _iter287 : this.success.entrySet())
89121
          for (Map.Entry<Long, Long> _iter292 : this.success.entrySet())
88136
          {
89122
          {
88137
            oprot.writeI64(_iter287.getKey());
89123
            oprot.writeI64(_iter292.getKey());
88138
            oprot.writeI64(_iter287.getValue());
89124
            oprot.writeI64(_iter292.getValue());
88139
          }
89125
          }
88140
          oprot.writeMapEnd();
89126
          oprot.writeMapEnd();
88141
        }
89127
        }
88142
        oprot.writeFieldEnd();
89128
        oprot.writeFieldEnd();
88143
      } else if (this.isSetEx()) {
89129
      } else if (this.isSetEx()) {
Line 88971... Line 89957...
88971
        }
89957
        }
88972
        switch (field.id) {
89958
        switch (field.id) {
88973
          case 0: // SUCCESS
89959
          case 0: // SUCCESS
88974
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
89960
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
88975
              {
89961
              {
88976
                org.apache.thrift.protocol.TList _list288 = iprot.readListBegin();
89962
                org.apache.thrift.protocol.TList _list293 = iprot.readListBegin();
88977
                this.success = new ArrayList<Long>(_list288.size);
89963
                this.success = new ArrayList<Long>(_list293.size);
88978
                for (int _i289 = 0; _i289 < _list288.size; ++_i289)
89964
                for (int _i294 = 0; _i294 < _list293.size; ++_i294)
88979
                {
89965
                {
88980
                  long _elem290; // required
89966
                  long _elem295; // required
88981
                  _elem290 = iprot.readI64();
89967
                  _elem295 = iprot.readI64();
88982
                  this.success.add(_elem290);
89968
                  this.success.add(_elem295);
88983
                }
89969
                }
88984
                iprot.readListEnd();
89970
                iprot.readListEnd();
88985
              }
89971
              }
88986
            } else { 
89972
            } else { 
88987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
89973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 89009... Line 89995...
89009
 
89995
 
89010
      if (this.isSetSuccess()) {
89996
      if (this.isSetSuccess()) {
89011
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
89997
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
89012
        {
89998
        {
89013
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
89999
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
89014
          for (long _iter291 : this.success)
90000
          for (long _iter296 : this.success)
89015
          {
90001
          {
89016
            oprot.writeI64(_iter291);
90002
            oprot.writeI64(_iter296);
89017
          }
90003
          }
89018
          oprot.writeListEnd();
90004
          oprot.writeListEnd();
89019
        }
90005
        }
89020
        oprot.writeFieldEnd();
90006
        oprot.writeFieldEnd();
89021
      } else if (this.isSetEx()) {
90007
      } else if (this.isSetEx()) {
Line 89071... Line 90057...
89071
      }
90057
      }
89072
    }
90058
    }
89073
 
90059
 
89074
  }
90060
  }
89075
 
90061
 
-
 
90062
  public static class updateCODAgent_args implements org.apache.thrift.TBase<updateCODAgent_args, updateCODAgent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
90063
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateCODAgent_args");
-
 
90064
 
-
 
90065
    private static final org.apache.thrift.protocol.TField AGENT_FIELD_DESC = new org.apache.thrift.protocol.TField("agent", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
90066
    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)2);
-
 
90067
 
-
 
90068
    private String agent; // required
-
 
90069
    private long orderId; // required
-
 
90070
 
-
 
90071
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
90072
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
90073
      AGENT((short)1, "agent"),
-
 
90074
      ORDER_ID((short)2, "orderId");
-
 
90075
 
-
 
90076
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
90077
 
-
 
90078
      static {
-
 
90079
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
90080
          byName.put(field.getFieldName(), field);
-
 
90081
        }
-
 
90082
      }
-
 
90083
 
-
 
90084
      /**
-
 
90085
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
90086
       */
-
 
90087
      public static _Fields findByThriftId(int fieldId) {
-
 
90088
        switch(fieldId) {
-
 
90089
          case 1: // AGENT
-
 
90090
            return AGENT;
-
 
90091
          case 2: // ORDER_ID
-
 
90092
            return ORDER_ID;
-
 
90093
          default:
-
 
90094
            return null;
-
 
90095
        }
-
 
90096
      }
-
 
90097
 
-
 
90098
      /**
-
 
90099
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
90100
       * if it is not found.
-
 
90101
       */
-
 
90102
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
90103
        _Fields fields = findByThriftId(fieldId);
-
 
90104
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
90105
        return fields;
-
 
90106
      }
-
 
90107
 
-
 
90108
      /**
-
 
90109
       * Find the _Fields constant that matches name, or null if its not found.
-
 
90110
       */
-
 
90111
      public static _Fields findByName(String name) {
-
 
90112
        return byName.get(name);
-
 
90113
      }
-
 
90114
 
-
 
90115
      private final short _thriftId;
-
 
90116
      private final String _fieldName;
-
 
90117
 
-
 
90118
      _Fields(short thriftId, String fieldName) {
-
 
90119
        _thriftId = thriftId;
-
 
90120
        _fieldName = fieldName;
-
 
90121
      }
-
 
90122
 
-
 
90123
      public short getThriftFieldId() {
-
 
90124
        return _thriftId;
-
 
90125
      }
-
 
90126
 
-
 
90127
      public String getFieldName() {
-
 
90128
        return _fieldName;
-
 
90129
      }
-
 
90130
    }
-
 
90131
 
-
 
90132
    // isset id assignments
-
 
90133
    private static final int __ORDERID_ISSET_ID = 0;
-
 
90134
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
90135
 
-
 
90136
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
90137
    static {
-
 
90138
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
90139
      tmpMap.put(_Fields.AGENT, new org.apache.thrift.meta_data.FieldMetaData("agent", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
90140
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
90141
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
90142
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
90143
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
90144
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateCODAgent_args.class, metaDataMap);
-
 
90145
    }
-
 
90146
 
-
 
90147
    public updateCODAgent_args() {
-
 
90148
    }
-
 
90149
 
-
 
90150
    public updateCODAgent_args(
-
 
90151
      String agent,
-
 
90152
      long orderId)
-
 
90153
    {
-
 
90154
      this();
-
 
90155
      this.agent = agent;
-
 
90156
      this.orderId = orderId;
-
 
90157
      setOrderIdIsSet(true);
-
 
90158
    }
-
 
90159
 
-
 
90160
    /**
-
 
90161
     * Performs a deep copy on <i>other</i>.
-
 
90162
     */
-
 
90163
    public updateCODAgent_args(updateCODAgent_args other) {
-
 
90164
      __isset_bit_vector.clear();
-
 
90165
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
90166
      if (other.isSetAgent()) {
-
 
90167
        this.agent = other.agent;
-
 
90168
      }
-
 
90169
      this.orderId = other.orderId;
-
 
90170
    }
-
 
90171
 
-
 
90172
    public updateCODAgent_args deepCopy() {
-
 
90173
      return new updateCODAgent_args(this);
-
 
90174
    }
-
 
90175
 
-
 
90176
    @Override
-
 
90177
    public void clear() {
-
 
90178
      this.agent = null;
-
 
90179
      setOrderIdIsSet(false);
-
 
90180
      this.orderId = 0;
-
 
90181
    }
-
 
90182
 
-
 
90183
    public String getAgent() {
-
 
90184
      return this.agent;
-
 
90185
    }
-
 
90186
 
-
 
90187
    public void setAgent(String agent) {
-
 
90188
      this.agent = agent;
-
 
90189
    }
-
 
90190
 
-
 
90191
    public void unsetAgent() {
-
 
90192
      this.agent = null;
-
 
90193
    }
-
 
90194
 
-
 
90195
    /** Returns true if field agent is set (has been assigned a value) and false otherwise */
-
 
90196
    public boolean isSetAgent() {
-
 
90197
      return this.agent != null;
-
 
90198
    }
-
 
90199
 
-
 
90200
    public void setAgentIsSet(boolean value) {
-
 
90201
      if (!value) {
-
 
90202
        this.agent = null;
-
 
90203
      }
-
 
90204
    }
-
 
90205
 
-
 
90206
    public long getOrderId() {
-
 
90207
      return this.orderId;
-
 
90208
    }
-
 
90209
 
-
 
90210
    public void setOrderId(long orderId) {
-
 
90211
      this.orderId = orderId;
-
 
90212
      setOrderIdIsSet(true);
-
 
90213
    }
-
 
90214
 
-
 
90215
    public void unsetOrderId() {
-
 
90216
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
90217
    }
-
 
90218
 
-
 
90219
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
90220
    public boolean isSetOrderId() {
-
 
90221
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
90222
    }
-
 
90223
 
-
 
90224
    public void setOrderIdIsSet(boolean value) {
-
 
90225
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
90226
    }
-
 
90227
 
-
 
90228
    public void setFieldValue(_Fields field, Object value) {
-
 
90229
      switch (field) {
-
 
90230
      case AGENT:
-
 
90231
        if (value == null) {
-
 
90232
          unsetAgent();
-
 
90233
        } else {
-
 
90234
          setAgent((String)value);
-
 
90235
        }
-
 
90236
        break;
-
 
90237
 
-
 
90238
      case ORDER_ID:
-
 
90239
        if (value == null) {
-
 
90240
          unsetOrderId();
-
 
90241
        } else {
-
 
90242
          setOrderId((Long)value);
-
 
90243
        }
-
 
90244
        break;
-
 
90245
 
-
 
90246
      }
-
 
90247
    }
-
 
90248
 
-
 
90249
    public Object getFieldValue(_Fields field) {
-
 
90250
      switch (field) {
-
 
90251
      case AGENT:
-
 
90252
        return getAgent();
-
 
90253
 
-
 
90254
      case ORDER_ID:
-
 
90255
        return Long.valueOf(getOrderId());
-
 
90256
 
-
 
90257
      }
-
 
90258
      throw new IllegalStateException();
-
 
90259
    }
-
 
90260
 
-
 
90261
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
90262
    public boolean isSet(_Fields field) {
-
 
90263
      if (field == null) {
-
 
90264
        throw new IllegalArgumentException();
-
 
90265
      }
-
 
90266
 
-
 
90267
      switch (field) {
-
 
90268
      case AGENT:
-
 
90269
        return isSetAgent();
-
 
90270
      case ORDER_ID:
-
 
90271
        return isSetOrderId();
-
 
90272
      }
-
 
90273
      throw new IllegalStateException();
-
 
90274
    }
-
 
90275
 
-
 
90276
    @Override
-
 
90277
    public boolean equals(Object that) {
-
 
90278
      if (that == null)
-
 
90279
        return false;
-
 
90280
      if (that instanceof updateCODAgent_args)
-
 
90281
        return this.equals((updateCODAgent_args)that);
-
 
90282
      return false;
-
 
90283
    }
-
 
90284
 
-
 
90285
    public boolean equals(updateCODAgent_args that) {
-
 
90286
      if (that == null)
-
 
90287
        return false;
-
 
90288
 
-
 
90289
      boolean this_present_agent = true && this.isSetAgent();
-
 
90290
      boolean that_present_agent = true && that.isSetAgent();
-
 
90291
      if (this_present_agent || that_present_agent) {
-
 
90292
        if (!(this_present_agent && that_present_agent))
-
 
90293
          return false;
-
 
90294
        if (!this.agent.equals(that.agent))
-
 
90295
          return false;
-
 
90296
      }
-
 
90297
 
-
 
90298
      boolean this_present_orderId = true;
-
 
90299
      boolean that_present_orderId = true;
-
 
90300
      if (this_present_orderId || that_present_orderId) {
-
 
90301
        if (!(this_present_orderId && that_present_orderId))
-
 
90302
          return false;
-
 
90303
        if (this.orderId != that.orderId)
-
 
90304
          return false;
-
 
90305
      }
-
 
90306
 
-
 
90307
      return true;
-
 
90308
    }
-
 
90309
 
-
 
90310
    @Override
-
 
90311
    public int hashCode() {
-
 
90312
      return 0;
-
 
90313
    }
-
 
90314
 
-
 
90315
    public int compareTo(updateCODAgent_args other) {
-
 
90316
      if (!getClass().equals(other.getClass())) {
-
 
90317
        return getClass().getName().compareTo(other.getClass().getName());
-
 
90318
      }
-
 
90319
 
-
 
90320
      int lastComparison = 0;
-
 
90321
      updateCODAgent_args typedOther = (updateCODAgent_args)other;
-
 
90322
 
-
 
90323
      lastComparison = Boolean.valueOf(isSetAgent()).compareTo(typedOther.isSetAgent());
-
 
90324
      if (lastComparison != 0) {
-
 
90325
        return lastComparison;
-
 
90326
      }
-
 
90327
      if (isSetAgent()) {
-
 
90328
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agent, typedOther.agent);
-
 
90329
        if (lastComparison != 0) {
-
 
90330
          return lastComparison;
-
 
90331
        }
-
 
90332
      }
-
 
90333
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
90334
      if (lastComparison != 0) {
-
 
90335
        return lastComparison;
-
 
90336
      }
-
 
90337
      if (isSetOrderId()) {
-
 
90338
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
90339
        if (lastComparison != 0) {
-
 
90340
          return lastComparison;
-
 
90341
        }
-
 
90342
      }
-
 
90343
      return 0;
-
 
90344
    }
-
 
90345
 
-
 
90346
    public _Fields fieldForId(int fieldId) {
-
 
90347
      return _Fields.findByThriftId(fieldId);
-
 
90348
    }
-
 
90349
 
-
 
90350
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
90351
      org.apache.thrift.protocol.TField field;
-
 
90352
      iprot.readStructBegin();
-
 
90353
      while (true)
-
 
90354
      {
-
 
90355
        field = iprot.readFieldBegin();
-
 
90356
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
90357
          break;
-
 
90358
        }
-
 
90359
        switch (field.id) {
-
 
90360
          case 1: // AGENT
-
 
90361
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
90362
              this.agent = iprot.readString();
-
 
90363
            } else { 
-
 
90364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90365
            }
-
 
90366
            break;
-
 
90367
          case 2: // ORDER_ID
-
 
90368
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
90369
              this.orderId = iprot.readI64();
-
 
90370
              setOrderIdIsSet(true);
-
 
90371
            } else { 
-
 
90372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90373
            }
-
 
90374
            break;
-
 
90375
          default:
-
 
90376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90377
        }
-
 
90378
        iprot.readFieldEnd();
-
 
90379
      }
-
 
90380
      iprot.readStructEnd();
-
 
90381
      validate();
-
 
90382
    }
-
 
90383
 
-
 
90384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
90385
      validate();
-
 
90386
 
-
 
90387
      oprot.writeStructBegin(STRUCT_DESC);
-
 
90388
      if (this.agent != null) {
-
 
90389
        oprot.writeFieldBegin(AGENT_FIELD_DESC);
-
 
90390
        oprot.writeString(this.agent);
-
 
90391
        oprot.writeFieldEnd();
-
 
90392
      }
-
 
90393
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
90394
      oprot.writeI64(this.orderId);
-
 
90395
      oprot.writeFieldEnd();
-
 
90396
      oprot.writeFieldStop();
-
 
90397
      oprot.writeStructEnd();
-
 
90398
    }
-
 
90399
 
-
 
90400
    @Override
-
 
90401
    public String toString() {
-
 
90402
      StringBuilder sb = new StringBuilder("updateCODAgent_args(");
-
 
90403
      boolean first = true;
-
 
90404
 
-
 
90405
      sb.append("agent:");
-
 
90406
      if (this.agent == null) {
-
 
90407
        sb.append("null");
-
 
90408
      } else {
-
 
90409
        sb.append(this.agent);
-
 
90410
      }
-
 
90411
      first = false;
-
 
90412
      if (!first) sb.append(", ");
-
 
90413
      sb.append("orderId:");
-
 
90414
      sb.append(this.orderId);
-
 
90415
      first = false;
-
 
90416
      sb.append(")");
-
 
90417
      return sb.toString();
-
 
90418
    }
-
 
90419
 
-
 
90420
    public void validate() throws org.apache.thrift.TException {
-
 
90421
      // check for required fields
-
 
90422
    }
-
 
90423
 
-
 
90424
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
90425
      try {
-
 
90426
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
90427
      } catch (org.apache.thrift.TException te) {
-
 
90428
        throw new java.io.IOException(te);
-
 
90429
      }
-
 
90430
    }
-
 
90431
 
-
 
90432
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
90433
      try {
-
 
90434
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
90435
        __isset_bit_vector = new BitSet(1);
-
 
90436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
90437
      } catch (org.apache.thrift.TException te) {
-
 
90438
        throw new java.io.IOException(te);
-
 
90439
      }
-
 
90440
    }
-
 
90441
 
-
 
90442
  }
-
 
90443
 
-
 
90444
  public static class updateCODAgent_result implements org.apache.thrift.TBase<updateCODAgent_result, updateCODAgent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
90445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateCODAgent_result");
-
 
90446
 
-
 
90447
    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);
-
 
90448
 
-
 
90449
    private TransactionServiceException ex; // required
-
 
90450
 
-
 
90451
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
90452
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
90453
      EX((short)1, "ex");
-
 
90454
 
-
 
90455
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
90456
 
-
 
90457
      static {
-
 
90458
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
90459
          byName.put(field.getFieldName(), field);
-
 
90460
        }
-
 
90461
      }
-
 
90462
 
-
 
90463
      /**
-
 
90464
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
90465
       */
-
 
90466
      public static _Fields findByThriftId(int fieldId) {
-
 
90467
        switch(fieldId) {
-
 
90468
          case 1: // EX
-
 
90469
            return EX;
-
 
90470
          default:
-
 
90471
            return null;
-
 
90472
        }
-
 
90473
      }
-
 
90474
 
-
 
90475
      /**
-
 
90476
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
90477
       * if it is not found.
-
 
90478
       */
-
 
90479
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
90480
        _Fields fields = findByThriftId(fieldId);
-
 
90481
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
90482
        return fields;
-
 
90483
      }
-
 
90484
 
-
 
90485
      /**
-
 
90486
       * Find the _Fields constant that matches name, or null if its not found.
-
 
90487
       */
-
 
90488
      public static _Fields findByName(String name) {
-
 
90489
        return byName.get(name);
-
 
90490
      }
-
 
90491
 
-
 
90492
      private final short _thriftId;
-
 
90493
      private final String _fieldName;
-
 
90494
 
-
 
90495
      _Fields(short thriftId, String fieldName) {
-
 
90496
        _thriftId = thriftId;
-
 
90497
        _fieldName = fieldName;
-
 
90498
      }
-
 
90499
 
-
 
90500
      public short getThriftFieldId() {
-
 
90501
        return _thriftId;
-
 
90502
      }
-
 
90503
 
-
 
90504
      public String getFieldName() {
-
 
90505
        return _fieldName;
-
 
90506
      }
-
 
90507
    }
-
 
90508
 
-
 
90509
    // isset id assignments
-
 
90510
 
-
 
90511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
90512
    static {
-
 
90513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
90514
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
90515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
90516
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
90517
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateCODAgent_result.class, metaDataMap);
-
 
90518
    }
-
 
90519
 
-
 
90520
    public updateCODAgent_result() {
-
 
90521
    }
-
 
90522
 
-
 
90523
    public updateCODAgent_result(
-
 
90524
      TransactionServiceException ex)
-
 
90525
    {
-
 
90526
      this();
-
 
90527
      this.ex = ex;
-
 
90528
    }
-
 
90529
 
-
 
90530
    /**
-
 
90531
     * Performs a deep copy on <i>other</i>.
-
 
90532
     */
-
 
90533
    public updateCODAgent_result(updateCODAgent_result other) {
-
 
90534
      if (other.isSetEx()) {
-
 
90535
        this.ex = new TransactionServiceException(other.ex);
-
 
90536
      }
-
 
90537
    }
-
 
90538
 
-
 
90539
    public updateCODAgent_result deepCopy() {
-
 
90540
      return new updateCODAgent_result(this);
-
 
90541
    }
-
 
90542
 
-
 
90543
    @Override
-
 
90544
    public void clear() {
-
 
90545
      this.ex = null;
-
 
90546
    }
-
 
90547
 
-
 
90548
    public TransactionServiceException getEx() {
-
 
90549
      return this.ex;
-
 
90550
    }
-
 
90551
 
-
 
90552
    public void setEx(TransactionServiceException ex) {
-
 
90553
      this.ex = ex;
-
 
90554
    }
-
 
90555
 
-
 
90556
    public void unsetEx() {
-
 
90557
      this.ex = null;
-
 
90558
    }
-
 
90559
 
-
 
90560
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
90561
    public boolean isSetEx() {
-
 
90562
      return this.ex != null;
-
 
90563
    }
-
 
90564
 
-
 
90565
    public void setExIsSet(boolean value) {
-
 
90566
      if (!value) {
-
 
90567
        this.ex = null;
-
 
90568
      }
-
 
90569
    }
-
 
90570
 
-
 
90571
    public void setFieldValue(_Fields field, Object value) {
-
 
90572
      switch (field) {
-
 
90573
      case EX:
-
 
90574
        if (value == null) {
-
 
90575
          unsetEx();
-
 
90576
        } else {
-
 
90577
          setEx((TransactionServiceException)value);
-
 
90578
        }
-
 
90579
        break;
-
 
90580
 
-
 
90581
      }
-
 
90582
    }
-
 
90583
 
-
 
90584
    public Object getFieldValue(_Fields field) {
-
 
90585
      switch (field) {
-
 
90586
      case EX:
-
 
90587
        return getEx();
-
 
90588
 
-
 
90589
      }
-
 
90590
      throw new IllegalStateException();
-
 
90591
    }
-
 
90592
 
-
 
90593
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
90594
    public boolean isSet(_Fields field) {
-
 
90595
      if (field == null) {
-
 
90596
        throw new IllegalArgumentException();
-
 
90597
      }
-
 
90598
 
-
 
90599
      switch (field) {
-
 
90600
      case EX:
-
 
90601
        return isSetEx();
-
 
90602
      }
-
 
90603
      throw new IllegalStateException();
-
 
90604
    }
-
 
90605
 
-
 
90606
    @Override
-
 
90607
    public boolean equals(Object that) {
-
 
90608
      if (that == null)
-
 
90609
        return false;
-
 
90610
      if (that instanceof updateCODAgent_result)
-
 
90611
        return this.equals((updateCODAgent_result)that);
-
 
90612
      return false;
-
 
90613
    }
-
 
90614
 
-
 
90615
    public boolean equals(updateCODAgent_result that) {
-
 
90616
      if (that == null)
-
 
90617
        return false;
-
 
90618
 
-
 
90619
      boolean this_present_ex = true && this.isSetEx();
-
 
90620
      boolean that_present_ex = true && that.isSetEx();
-
 
90621
      if (this_present_ex || that_present_ex) {
-
 
90622
        if (!(this_present_ex && that_present_ex))
-
 
90623
          return false;
-
 
90624
        if (!this.ex.equals(that.ex))
-
 
90625
          return false;
-
 
90626
      }
-
 
90627
 
-
 
90628
      return true;
-
 
90629
    }
-
 
90630
 
-
 
90631
    @Override
-
 
90632
    public int hashCode() {
-
 
90633
      return 0;
-
 
90634
    }
-
 
90635
 
-
 
90636
    public int compareTo(updateCODAgent_result other) {
-
 
90637
      if (!getClass().equals(other.getClass())) {
-
 
90638
        return getClass().getName().compareTo(other.getClass().getName());
-
 
90639
      }
-
 
90640
 
-
 
90641
      int lastComparison = 0;
-
 
90642
      updateCODAgent_result typedOther = (updateCODAgent_result)other;
-
 
90643
 
-
 
90644
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
90645
      if (lastComparison != 0) {
-
 
90646
        return lastComparison;
-
 
90647
      }
-
 
90648
      if (isSetEx()) {
-
 
90649
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
90650
        if (lastComparison != 0) {
-
 
90651
          return lastComparison;
-
 
90652
        }
-
 
90653
      }
-
 
90654
      return 0;
-
 
90655
    }
-
 
90656
 
-
 
90657
    public _Fields fieldForId(int fieldId) {
-
 
90658
      return _Fields.findByThriftId(fieldId);
-
 
90659
    }
-
 
90660
 
-
 
90661
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
90662
      org.apache.thrift.protocol.TField field;
-
 
90663
      iprot.readStructBegin();
-
 
90664
      while (true)
-
 
90665
      {
-
 
90666
        field = iprot.readFieldBegin();
-
 
90667
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
90668
          break;
-
 
90669
        }
-
 
90670
        switch (field.id) {
-
 
90671
          case 1: // EX
-
 
90672
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
90673
              this.ex = new TransactionServiceException();
-
 
90674
              this.ex.read(iprot);
-
 
90675
            } else { 
-
 
90676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90677
            }
-
 
90678
            break;
-
 
90679
          default:
-
 
90680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
90681
        }
-
 
90682
        iprot.readFieldEnd();
-
 
90683
      }
-
 
90684
      iprot.readStructEnd();
-
 
90685
      validate();
-
 
90686
    }
-
 
90687
 
-
 
90688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
90689
      oprot.writeStructBegin(STRUCT_DESC);
-
 
90690
 
-
 
90691
      if (this.isSetEx()) {
-
 
90692
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
90693
        this.ex.write(oprot);
-
 
90694
        oprot.writeFieldEnd();
-
 
90695
      }
-
 
90696
      oprot.writeFieldStop();
-
 
90697
      oprot.writeStructEnd();
-
 
90698
    }
-
 
90699
 
-
 
90700
    @Override
-
 
90701
    public String toString() {
-
 
90702
      StringBuilder sb = new StringBuilder("updateCODAgent_result(");
-
 
90703
      boolean first = true;
-
 
90704
 
-
 
90705
      sb.append("ex:");
-
 
90706
      if (this.ex == null) {
-
 
90707
        sb.append("null");
-
 
90708
      } else {
-
 
90709
        sb.append(this.ex);
-
 
90710
      }
-
 
90711
      first = false;
-
 
90712
      sb.append(")");
-
 
90713
      return sb.toString();
-
 
90714
    }
-
 
90715
 
-
 
90716
    public void validate() throws org.apache.thrift.TException {
-
 
90717
      // check for required fields
-
 
90718
    }
-
 
90719
 
-
 
90720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
90721
      try {
-
 
90722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
90723
      } catch (org.apache.thrift.TException te) {
-
 
90724
        throw new java.io.IOException(te);
-
 
90725
      }
-
 
90726
    }
-
 
90727
 
-
 
90728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
90729
      try {
-
 
90730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
90731
      } catch (org.apache.thrift.TException te) {
-
 
90732
        throw new java.io.IOException(te);
-
 
90733
      }
-
 
90734
    }
-
 
90735
 
-
 
90736
  }
-
 
90737
 
89076
  public static class updateOrderAsPaidToVendor_args implements org.apache.thrift.TBase<updateOrderAsPaidToVendor_args, updateOrderAsPaidToVendor_args._Fields>, java.io.Serializable, Cloneable   {
90738
  public static class updateOrderAsPaidToVendor_args implements org.apache.thrift.TBase<updateOrderAsPaidToVendor_args, updateOrderAsPaidToVendor_args._Fields>, java.io.Serializable, Cloneable   {
89077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderAsPaidToVendor_args");
90739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderAsPaidToVendor_args");
89078
 
90740
 
89079
    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);
90741
    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);
89080
 
90742
 
Line 90177... Line 91839...
90177
        }
91839
        }
90178
        switch (field.id) {
91840
        switch (field.id) {
90179
          case 0: // SUCCESS
91841
          case 0: // SUCCESS
90180
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
91842
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
90181
              {
91843
              {
90182
                org.apache.thrift.protocol.TList _list292 = iprot.readListBegin();
91844
                org.apache.thrift.protocol.TList _list297 = iprot.readListBegin();
90183
                this.success = new ArrayList<Order>(_list292.size);
91845
                this.success = new ArrayList<Order>(_list297.size);
90184
                for (int _i293 = 0; _i293 < _list292.size; ++_i293)
91846
                for (int _i298 = 0; _i298 < _list297.size; ++_i298)
90185
                {
91847
                {
90186
                  Order _elem294; // required
91848
                  Order _elem299; // required
90187
                  _elem294 = new Order();
91849
                  _elem299 = new Order();
90188
                  _elem294.read(iprot);
91850
                  _elem299.read(iprot);
90189
                  this.success.add(_elem294);
91851
                  this.success.add(_elem299);
90190
                }
91852
                }
90191
                iprot.readListEnd();
91853
                iprot.readListEnd();
90192
              }
91854
              }
90193
            } else { 
91855
            } else { 
90194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
91856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 90216... Line 91878...
90216
 
91878
 
90217
      if (this.isSetSuccess()) {
91879
      if (this.isSetSuccess()) {
90218
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
91880
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
90219
        {
91881
        {
90220
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
91882
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
90221
          for (Order _iter295 : this.success)
91883
          for (Order _iter300 : this.success)
90222
          {
91884
          {
90223
            _iter295.write(oprot);
91885
            _iter300.write(oprot);
90224
          }
91886
          }
90225
          oprot.writeListEnd();
91887
          oprot.writeListEnd();
90226
        }
91888
        }
90227
        oprot.writeFieldEnd();
91889
        oprot.writeFieldEnd();
90228
      } else if (this.isSetEx()) {
91890
      } else if (this.isSetEx()) {