Subversion Repositories SmartDukaan

Rev

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

Rev 5208 Rev 5238
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
 
-
 
772
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
762
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
773
 
763
 
774
    public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;
764
    public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;
775
 
765
 
776
    public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException;
766
    public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException;
Line 989... Line 979...
989
 
979
 
990
    public void getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementsByDate_call> resultHandler) throws org.apache.thrift.TException;
980
    public void getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementsByDate_call> resultHandler) throws org.apache.thrift.TException;
991
 
981
 
992
    public void getReshippedOrderIds(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReshippedOrderIds_call> resultHandler) throws org.apache.thrift.TException;
982
    public void getReshippedOrderIds(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReshippedOrderIds_call> resultHandler) throws org.apache.thrift.TException;
993
 
983
 
994
    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;
-
 
995
 
-
 
996
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException;
984
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException;
997
 
985
 
998
    public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;
986
    public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;
999
 
987
 
1000
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
988
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
Line 3679... Line 3667...
3679
        throw result.ex;
3667
        throw result.ex;
3680
      }
3668
      }
3681
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
3669
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
3682
    }
3670
    }
3683
 
3671
 
3684
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
-
 
3685
    {
-
 
3686
      send_updateOrdersAsPORaised(itemIdQuantityMap, purchaseOrderId, warehouseId);
-
 
3687
      recv_updateOrdersAsPORaised();
-
 
3688
    }
-
 
3689
 
-
 
3690
    public void send_updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId) throws org.apache.thrift.TException
-
 
3691
    {
-
 
3692
      updateOrdersAsPORaised_args args = new updateOrdersAsPORaised_args();
-
 
3693
      args.setItemIdQuantityMap(itemIdQuantityMap);
-
 
3694
      args.setPurchaseOrderId(purchaseOrderId);
-
 
3695
      args.setWarehouseId(warehouseId);
-
 
3696
      sendBase("updateOrdersAsPORaised", args);
-
 
3697
    }
-
 
3698
 
-
 
3699
    public void recv_updateOrdersAsPORaised() throws TransactionServiceException, org.apache.thrift.TException
-
 
3700
    {
-
 
3701
      updateOrdersAsPORaised_result result = new updateOrdersAsPORaised_result();
-
 
3702
      receiveBase(result, "updateOrdersAsPORaised");
-
 
3703
      if (result.ex != null) {
-
 
3704
        throw result.ex;
-
 
3705
      }
-
 
3706
      return;
-
 
3707
    }
-
 
3708
 
-
 
3709
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException
3672
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException
3710
    {
3673
    {
3711
      send_getOrdersWhereVendorNotPaid(vendorId);
3674
      send_getOrdersWhereVendorNotPaid(vendorId);
3712
      return recv_getOrdersWhereVendorNotPaid();
3675
      return recv_getOrdersWhereVendorNotPaid();
3713
    }
3676
    }
Line 7494... Line 7457...
7494
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7457
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7495
        return (new Client(prot)).recv_getReshippedOrderIds();
7458
        return (new Client(prot)).recv_getReshippedOrderIds();
7496
      }
7459
      }
7497
    }
7460
    }
7498
 
7461
 
7499
    public void updateOrdersAsPORaised(Map<Long,Long> itemIdQuantityMap, long purchaseOrderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<updateOrdersAsPORaised_call> resultHandler) throws org.apache.thrift.TException {
-
 
7500
      checkReady();
-
 
7501
      updateOrdersAsPORaised_call method_call = new updateOrdersAsPORaised_call(itemIdQuantityMap, purchaseOrderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
7502
      this.___currentMethod = method_call;
-
 
7503
      ___manager.call(method_call);
-
 
7504
    }
-
 
7505
 
-
 
7506
    public static class updateOrdersAsPORaised_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7507
      private Map<Long,Long> itemIdQuantityMap;
-
 
7508
      private long purchaseOrderId;
-
 
7509
      private long warehouseId;
-
 
7510
      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 {
-
 
7511
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7512
        this.itemIdQuantityMap = itemIdQuantityMap;
-
 
7513
        this.purchaseOrderId = purchaseOrderId;
-
 
7514
        this.warehouseId = warehouseId;
-
 
7515
      }
-
 
7516
 
-
 
7517
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7518
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOrdersAsPORaised", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7519
        updateOrdersAsPORaised_args args = new updateOrdersAsPORaised_args();
-
 
7520
        args.setItemIdQuantityMap(itemIdQuantityMap);
-
 
7521
        args.setPurchaseOrderId(purchaseOrderId);
-
 
7522
        args.setWarehouseId(warehouseId);
-
 
7523
        args.write(prot);
-
 
7524
        prot.writeMessageEnd();
-
 
7525
      }
-
 
7526
 
-
 
7527
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
7528
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7529
          throw new IllegalStateException("Method call not finished!");
-
 
7530
        }
-
 
7531
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7532
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7533
        (new Client(prot)).recv_updateOrdersAsPORaised();
-
 
7534
      }
-
 
7535
    }
-
 
7536
 
-
 
7537
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException {
7462
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException {
7538
      checkReady();
7463
      checkReady();
7539
      getOrdersWhereVendorNotPaid_call method_call = new getOrdersWhereVendorNotPaid_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
7464
      getOrdersWhereVendorNotPaid_call method_call = new getOrdersWhereVendorNotPaid_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
7540
      this.___currentMethod = method_call;
7465
      this.___currentMethod = method_call;
7541
      ___manager.call(method_call);
7466
      ___manager.call(method_call);
Line 7815... Line 7740...
7815
      processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());
7740
      processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());
7816
      processMap.put("markEBSSettlementUploaded", new markEBSSettlementUploaded());
7741
      processMap.put("markEBSSettlementUploaded", new markEBSSettlementUploaded());
7817
      processMap.put("getEBSSettlementDate", new getEBSSettlementDate());
7742
      processMap.put("getEBSSettlementDate", new getEBSSettlementDate());
7818
      processMap.put("getSettlementsByDate", new getSettlementsByDate());
7743
      processMap.put("getSettlementsByDate", new getSettlementsByDate());
7819
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
7744
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
7820
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
-
 
7821
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7745
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7822
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7746
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7823
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
7747
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
7824
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
7748
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
7825
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
7749
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
Line 9841... Line 9765...
9841
        }
9765
        }
9842
        return result;
9766
        return result;
9843
      }
9767
      }
9844
    }
9768
    }
9845
 
9769
 
9846
    private static class updateOrdersAsPORaised<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrdersAsPORaised_args> {
-
 
9847
      public updateOrdersAsPORaised() {
-
 
9848
        super("updateOrdersAsPORaised");
-
 
9849
      }
-
 
9850
 
-
 
9851
      protected updateOrdersAsPORaised_args getEmptyArgsInstance() {
-
 
9852
        return new updateOrdersAsPORaised_args();
-
 
9853
      }
-
 
9854
 
-
 
9855
      protected updateOrdersAsPORaised_result getResult(I iface, updateOrdersAsPORaised_args args) throws org.apache.thrift.TException {
-
 
9856
        updateOrdersAsPORaised_result result = new updateOrdersAsPORaised_result();
-
 
9857
        try {
-
 
9858
          iface.updateOrdersAsPORaised(args.itemIdQuantityMap, args.purchaseOrderId, args.warehouseId);
-
 
9859
        } catch (TransactionServiceException ex) {
-
 
9860
          result.ex = ex;
-
 
9861
        }
-
 
9862
        return result;
-
 
9863
      }
-
 
9864
    }
-
 
9865
 
-
 
9866
    private static class getOrdersWhereVendorNotPaid<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersWhereVendorNotPaid_args> {
9770
    private static class getOrdersWhereVendorNotPaid<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersWhereVendorNotPaid_args> {
9867
      public getOrdersWhereVendorNotPaid() {
9771
      public getOrdersWhereVendorNotPaid() {
9868
        super("getOrdersWhereVendorNotPaid");
9772
        super("getOrdersWhereVendorNotPaid");
9869
      }
9773
      }
9870
 
9774
 
Line 86773... Line 86677...
86773
      }
86677
      }
86774
    }
86678
    }
86775
 
86679
 
86776
  }
86680
  }
86777
 
86681
 
86778
  public static class updateOrdersAsPORaised_args implements org.apache.thrift.TBase<updateOrdersAsPORaised_args, updateOrdersAsPORaised_args._Fields>, java.io.Serializable, Cloneable   {
-
 
86779
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrdersAsPORaised_args");
-
 
86780
 
-
 
86781
    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);
-
 
86782
    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);
-
 
86783
    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);
-
 
86784
 
-
 
86785
    private Map<Long,Long> itemIdQuantityMap; // required
-
 
86786
    private long purchaseOrderId; // required
-
 
86787
    private long warehouseId; // required
-
 
86788
 
-
 
86789
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
86790
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
86791
      ITEM_ID_QUANTITY_MAP((short)1, "itemIdQuantityMap"),
-
 
86792
      PURCHASE_ORDER_ID((short)2, "purchaseOrderId"),
-
 
86793
      WAREHOUSE_ID((short)3, "warehouseId");
-
 
86794
 
-
 
86795
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
86796
 
-
 
86797
      static {
-
 
86798
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
86799
          byName.put(field.getFieldName(), field);
-
 
86800
        }
-
 
86801
      }
-
 
86802
 
-
 
86803
      /**
-
 
86804
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
86805
       */
-
 
86806
      public static _Fields findByThriftId(int fieldId) {
-
 
86807
        switch(fieldId) {
-
 
86808
          case 1: // ITEM_ID_QUANTITY_MAP
-
 
86809
            return ITEM_ID_QUANTITY_MAP;
-
 
86810
          case 2: // PURCHASE_ORDER_ID
-
 
86811
            return PURCHASE_ORDER_ID;
-
 
86812
          case 3: // WAREHOUSE_ID
-
 
86813
            return WAREHOUSE_ID;
-
 
86814
          default:
-
 
86815
            return null;
-
 
86816
        }
-
 
86817
      }
-
 
86818
 
-
 
86819
      /**
-
 
86820
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
86821
       * if it is not found.
-
 
86822
       */
-
 
86823
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
86824
        _Fields fields = findByThriftId(fieldId);
-
 
86825
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
86826
        return fields;
-
 
86827
      }
-
 
86828
 
-
 
86829
      /**
-
 
86830
       * Find the _Fields constant that matches name, or null if its not found.
-
 
86831
       */
-
 
86832
      public static _Fields findByName(String name) {
-
 
86833
        return byName.get(name);
-
 
86834
      }
-
 
86835
 
-
 
86836
      private final short _thriftId;
-
 
86837
      private final String _fieldName;
-
 
86838
 
-
 
86839
      _Fields(short thriftId, String fieldName) {
-
 
86840
        _thriftId = thriftId;
-
 
86841
        _fieldName = fieldName;
-
 
86842
      }
-
 
86843
 
-
 
86844
      public short getThriftFieldId() {
-
 
86845
        return _thriftId;
-
 
86846
      }
-
 
86847
 
-
 
86848
      public String getFieldName() {
-
 
86849
        return _fieldName;
-
 
86850
      }
-
 
86851
    }
-
 
86852
 
-
 
86853
    // isset id assignments
-
 
86854
    private static final int __PURCHASEORDERID_ISSET_ID = 0;
-
 
86855
    private static final int __WAREHOUSEID_ISSET_ID = 1;
-
 
86856
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
86857
 
-
 
86858
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
86859
    static {
-
 
86860
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
86861
      tmpMap.put(_Fields.ITEM_ID_QUANTITY_MAP, new org.apache.thrift.meta_data.FieldMetaData("itemIdQuantityMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
86862
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
86863
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
86864
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
86865
      tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
86866
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
86867
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
86868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
86869
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
86870
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrdersAsPORaised_args.class, metaDataMap);
-
 
86871
    }
-
 
86872
 
-
 
86873
    public updateOrdersAsPORaised_args() {
-
 
86874
    }
-
 
86875
 
-
 
86876
    public updateOrdersAsPORaised_args(
-
 
86877
      Map<Long,Long> itemIdQuantityMap,
-
 
86878
      long purchaseOrderId,
-
 
86879
      long warehouseId)
-
 
86880
    {
-
 
86881
      this();
-
 
86882
      this.itemIdQuantityMap = itemIdQuantityMap;
-
 
86883
      this.purchaseOrderId = purchaseOrderId;
-
 
86884
      setPurchaseOrderIdIsSet(true);
-
 
86885
      this.warehouseId = warehouseId;
-
 
86886
      setWarehouseIdIsSet(true);
-
 
86887
    }
-
 
86888
 
-
 
86889
    /**
-
 
86890
     * Performs a deep copy on <i>other</i>.
-
 
86891
     */
-
 
86892
    public updateOrdersAsPORaised_args(updateOrdersAsPORaised_args other) {
-
 
86893
      __isset_bit_vector.clear();
-
 
86894
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
86895
      if (other.isSetItemIdQuantityMap()) {
-
 
86896
        Map<Long,Long> __this__itemIdQuantityMap = new HashMap<Long,Long>();
-
 
86897
        for (Map.Entry<Long, Long> other_element : other.itemIdQuantityMap.entrySet()) {
-
 
86898
 
-
 
86899
          Long other_element_key = other_element.getKey();
-
 
86900
          Long other_element_value = other_element.getValue();
-
 
86901
 
-
 
86902
          Long __this__itemIdQuantityMap_copy_key = other_element_key;
-
 
86903
 
-
 
86904
          Long __this__itemIdQuantityMap_copy_value = other_element_value;
-
 
86905
 
-
 
86906
          __this__itemIdQuantityMap.put(__this__itemIdQuantityMap_copy_key, __this__itemIdQuantityMap_copy_value);
-
 
86907
        }
-
 
86908
        this.itemIdQuantityMap = __this__itemIdQuantityMap;
-
 
86909
      }
-
 
86910
      this.purchaseOrderId = other.purchaseOrderId;
-
 
86911
      this.warehouseId = other.warehouseId;
-
 
86912
    }
-
 
86913
 
-
 
86914
    public updateOrdersAsPORaised_args deepCopy() {
-
 
86915
      return new updateOrdersAsPORaised_args(this);
-
 
86916
    }
-
 
86917
 
-
 
86918
    @Override
-
 
86919
    public void clear() {
-
 
86920
      this.itemIdQuantityMap = null;
-
 
86921
      setPurchaseOrderIdIsSet(false);
-
 
86922
      this.purchaseOrderId = 0;
-
 
86923
      setWarehouseIdIsSet(false);
-
 
86924
      this.warehouseId = 0;
-
 
86925
    }
-
 
86926
 
-
 
86927
    public int getItemIdQuantityMapSize() {
-
 
86928
      return (this.itemIdQuantityMap == null) ? 0 : this.itemIdQuantityMap.size();
-
 
86929
    }
-
 
86930
 
-
 
86931
    public void putToItemIdQuantityMap(long key, long val) {
-
 
86932
      if (this.itemIdQuantityMap == null) {
-
 
86933
        this.itemIdQuantityMap = new HashMap<Long,Long>();
-
 
86934
      }
-
 
86935
      this.itemIdQuantityMap.put(key, val);
-
 
86936
    }
-
 
86937
 
-
 
86938
    public Map<Long,Long> getItemIdQuantityMap() {
-
 
86939
      return this.itemIdQuantityMap;
-
 
86940
    }
-
 
86941
 
-
 
86942
    public void setItemIdQuantityMap(Map<Long,Long> itemIdQuantityMap) {
-
 
86943
      this.itemIdQuantityMap = itemIdQuantityMap;
-
 
86944
    }
-
 
86945
 
-
 
86946
    public void unsetItemIdQuantityMap() {
-
 
86947
      this.itemIdQuantityMap = null;
-
 
86948
    }
-
 
86949
 
-
 
86950
    /** Returns true if field itemIdQuantityMap is set (has been assigned a value) and false otherwise */
-
 
86951
    public boolean isSetItemIdQuantityMap() {
-
 
86952
      return this.itemIdQuantityMap != null;
-
 
86953
    }
-
 
86954
 
-
 
86955
    public void setItemIdQuantityMapIsSet(boolean value) {
-
 
86956
      if (!value) {
-
 
86957
        this.itemIdQuantityMap = null;
-
 
86958
      }
-
 
86959
    }
-
 
86960
 
-
 
86961
    public long getPurchaseOrderId() {
-
 
86962
      return this.purchaseOrderId;
-
 
86963
    }
-
 
86964
 
-
 
86965
    public void setPurchaseOrderId(long purchaseOrderId) {
-
 
86966
      this.purchaseOrderId = purchaseOrderId;
-
 
86967
      setPurchaseOrderIdIsSet(true);
-
 
86968
    }
-
 
86969
 
-
 
86970
    public void unsetPurchaseOrderId() {
-
 
86971
      __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
-
 
86972
    }
-
 
86973
 
-
 
86974
    /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
-
 
86975
    public boolean isSetPurchaseOrderId() {
-
 
86976
      return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
-
 
86977
    }
-
 
86978
 
-
 
86979
    public void setPurchaseOrderIdIsSet(boolean value) {
-
 
86980
      __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
-
 
86981
    }
-
 
86982
 
-
 
86983
    public long getWarehouseId() {
-
 
86984
      return this.warehouseId;
-
 
86985
    }
-
 
86986
 
-
 
86987
    public void setWarehouseId(long warehouseId) {
-
 
86988
      this.warehouseId = warehouseId;
-
 
86989
      setWarehouseIdIsSet(true);
-
 
86990
    }
-
 
86991
 
-
 
86992
    public void unsetWarehouseId() {
-
 
86993
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
86994
    }
-
 
86995
 
-
 
86996
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
86997
    public boolean isSetWarehouseId() {
-
 
86998
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
86999
    }
-
 
87000
 
-
 
87001
    public void setWarehouseIdIsSet(boolean value) {
-
 
87002
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
87003
    }
-
 
87004
 
-
 
87005
    public void setFieldValue(_Fields field, Object value) {
-
 
87006
      switch (field) {
-
 
87007
      case ITEM_ID_QUANTITY_MAP:
-
 
87008
        if (value == null) {
-
 
87009
          unsetItemIdQuantityMap();
-
 
87010
        } else {
-
 
87011
          setItemIdQuantityMap((Map<Long,Long>)value);
-
 
87012
        }
-
 
87013
        break;
-
 
87014
 
-
 
87015
      case PURCHASE_ORDER_ID:
-
 
87016
        if (value == null) {
-
 
87017
          unsetPurchaseOrderId();
-
 
87018
        } else {
-
 
87019
          setPurchaseOrderId((Long)value);
-
 
87020
        }
-
 
87021
        break;
-
 
87022
 
-
 
87023
      case WAREHOUSE_ID:
-
 
87024
        if (value == null) {
-
 
87025
          unsetWarehouseId();
-
 
87026
        } else {
-
 
87027
          setWarehouseId((Long)value);
-
 
87028
        }
-
 
87029
        break;
-
 
87030
 
-
 
87031
      }
-
 
87032
    }
-
 
87033
 
-
 
87034
    public Object getFieldValue(_Fields field) {
-
 
87035
      switch (field) {
-
 
87036
      case ITEM_ID_QUANTITY_MAP:
-
 
87037
        return getItemIdQuantityMap();
-
 
87038
 
-
 
87039
      case PURCHASE_ORDER_ID:
-
 
87040
        return Long.valueOf(getPurchaseOrderId());
-
 
87041
 
-
 
87042
      case WAREHOUSE_ID:
-
 
87043
        return Long.valueOf(getWarehouseId());
-
 
87044
 
-
 
87045
      }
-
 
87046
      throw new IllegalStateException();
-
 
87047
    }
-
 
87048
 
-
 
87049
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
87050
    public boolean isSet(_Fields field) {
-
 
87051
      if (field == null) {
-
 
87052
        throw new IllegalArgumentException();
-
 
87053
      }
-
 
87054
 
-
 
87055
      switch (field) {
-
 
87056
      case ITEM_ID_QUANTITY_MAP:
-
 
87057
        return isSetItemIdQuantityMap();
-
 
87058
      case PURCHASE_ORDER_ID:
-
 
87059
        return isSetPurchaseOrderId();
-
 
87060
      case WAREHOUSE_ID:
-
 
87061
        return isSetWarehouseId();
-
 
87062
      }
-
 
87063
      throw new IllegalStateException();
-
 
87064
    }
-
 
87065
 
-
 
87066
    @Override
-
 
87067
    public boolean equals(Object that) {
-
 
87068
      if (that == null)
-
 
87069
        return false;
-
 
87070
      if (that instanceof updateOrdersAsPORaised_args)
-
 
87071
        return this.equals((updateOrdersAsPORaised_args)that);
-
 
87072
      return false;
-
 
87073
    }
-
 
87074
 
-
 
87075
    public boolean equals(updateOrdersAsPORaised_args that) {
-
 
87076
      if (that == null)
-
 
87077
        return false;
-
 
87078
 
-
 
87079
      boolean this_present_itemIdQuantityMap = true && this.isSetItemIdQuantityMap();
-
 
87080
      boolean that_present_itemIdQuantityMap = true && that.isSetItemIdQuantityMap();
-
 
87081
      if (this_present_itemIdQuantityMap || that_present_itemIdQuantityMap) {
-
 
87082
        if (!(this_present_itemIdQuantityMap && that_present_itemIdQuantityMap))
-
 
87083
          return false;
-
 
87084
        if (!this.itemIdQuantityMap.equals(that.itemIdQuantityMap))
-
 
87085
          return false;
-
 
87086
      }
-
 
87087
 
-
 
87088
      boolean this_present_purchaseOrderId = true;
-
 
87089
      boolean that_present_purchaseOrderId = true;
-
 
87090
      if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
-
 
87091
        if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
-
 
87092
          return false;
-
 
87093
        if (this.purchaseOrderId != that.purchaseOrderId)
-
 
87094
          return false;
-
 
87095
      }
-
 
87096
 
-
 
87097
      boolean this_present_warehouseId = true;
-
 
87098
      boolean that_present_warehouseId = true;
-
 
87099
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
87100
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
87101
          return false;
-
 
87102
        if (this.warehouseId != that.warehouseId)
-
 
87103
          return false;
-
 
87104
      }
-
 
87105
 
-
 
87106
      return true;
-
 
87107
    }
-
 
87108
 
-
 
87109
    @Override
-
 
87110
    public int hashCode() {
-
 
87111
      return 0;
-
 
87112
    }
-
 
87113
 
-
 
87114
    public int compareTo(updateOrdersAsPORaised_args other) {
-
 
87115
      if (!getClass().equals(other.getClass())) {
-
 
87116
        return getClass().getName().compareTo(other.getClass().getName());
-
 
87117
      }
-
 
87118
 
-
 
87119
      int lastComparison = 0;
-
 
87120
      updateOrdersAsPORaised_args typedOther = (updateOrdersAsPORaised_args)other;
-
 
87121
 
-
 
87122
      lastComparison = Boolean.valueOf(isSetItemIdQuantityMap()).compareTo(typedOther.isSetItemIdQuantityMap());
-
 
87123
      if (lastComparison != 0) {
-
 
87124
        return lastComparison;
-
 
87125
      }
-
 
87126
      if (isSetItemIdQuantityMap()) {
-
 
87127
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIdQuantityMap, typedOther.itemIdQuantityMap);
-
 
87128
        if (lastComparison != 0) {
-
 
87129
          return lastComparison;
-
 
87130
        }
-
 
87131
      }
-
 
87132
      lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
-
 
87133
      if (lastComparison != 0) {
-
 
87134
        return lastComparison;
-
 
87135
      }
-
 
87136
      if (isSetPurchaseOrderId()) {
-
 
87137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
-
 
87138
        if (lastComparison != 0) {
-
 
87139
          return lastComparison;
-
 
87140
        }
-
 
87141
      }
-
 
87142
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
87143
      if (lastComparison != 0) {
-
 
87144
        return lastComparison;
-
 
87145
      }
-
 
87146
      if (isSetWarehouseId()) {
-
 
87147
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
87148
        if (lastComparison != 0) {
-
 
87149
          return lastComparison;
-
 
87150
        }
-
 
87151
      }
-
 
87152
      return 0;
-
 
87153
    }
-
 
87154
 
-
 
87155
    public _Fields fieldForId(int fieldId) {
-
 
87156
      return _Fields.findByThriftId(fieldId);
-
 
87157
    }
-
 
87158
 
-
 
87159
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
87160
      org.apache.thrift.protocol.TField field;
-
 
87161
      iprot.readStructBegin();
-
 
87162
      while (true)
-
 
87163
      {
-
 
87164
        field = iprot.readFieldBegin();
-
 
87165
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
87166
          break;
-
 
87167
        }
-
 
87168
        switch (field.id) {
-
 
87169
          case 1: // ITEM_ID_QUANTITY_MAP
-
 
87170
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
87171
              {
-
 
87172
                org.apache.thrift.protocol.TMap _map279 = iprot.readMapBegin();
-
 
87173
                this.itemIdQuantityMap = new HashMap<Long,Long>(2*_map279.size);
-
 
87174
                for (int _i280 = 0; _i280 < _map279.size; ++_i280)
-
 
87175
                {
-
 
87176
                  long _key281; // required
-
 
87177
                  long _val282; // required
-
 
87178
                  _key281 = iprot.readI64();
-
 
87179
                  _val282 = iprot.readI64();
-
 
87180
                  this.itemIdQuantityMap.put(_key281, _val282);
-
 
87181
                }
-
 
87182
                iprot.readMapEnd();
-
 
87183
              }
-
 
87184
            } else { 
-
 
87185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87186
            }
-
 
87187
            break;
-
 
87188
          case 2: // PURCHASE_ORDER_ID
-
 
87189
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
87190
              this.purchaseOrderId = iprot.readI64();
-
 
87191
              setPurchaseOrderIdIsSet(true);
-
 
87192
            } else { 
-
 
87193
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87194
            }
-
 
87195
            break;
-
 
87196
          case 3: // WAREHOUSE_ID
-
 
87197
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
87198
              this.warehouseId = iprot.readI64();
-
 
87199
              setWarehouseIdIsSet(true);
-
 
87200
            } else { 
-
 
87201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87202
            }
-
 
87203
            break;
-
 
87204
          default:
-
 
87205
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87206
        }
-
 
87207
        iprot.readFieldEnd();
-
 
87208
      }
-
 
87209
      iprot.readStructEnd();
-
 
87210
      validate();
-
 
87211
    }
-
 
87212
 
-
 
87213
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
87214
      validate();
-
 
87215
 
-
 
87216
      oprot.writeStructBegin(STRUCT_DESC);
-
 
87217
      if (this.itemIdQuantityMap != null) {
-
 
87218
        oprot.writeFieldBegin(ITEM_ID_QUANTITY_MAP_FIELD_DESC);
-
 
87219
        {
-
 
87220
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.itemIdQuantityMap.size()));
-
 
87221
          for (Map.Entry<Long, Long> _iter283 : this.itemIdQuantityMap.entrySet())
-
 
87222
          {
-
 
87223
            oprot.writeI64(_iter283.getKey());
-
 
87224
            oprot.writeI64(_iter283.getValue());
-
 
87225
          }
-
 
87226
          oprot.writeMapEnd();
-
 
87227
        }
-
 
87228
        oprot.writeFieldEnd();
-
 
87229
      }
-
 
87230
      oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
-
 
87231
      oprot.writeI64(this.purchaseOrderId);
-
 
87232
      oprot.writeFieldEnd();
-
 
87233
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
87234
      oprot.writeI64(this.warehouseId);
-
 
87235
      oprot.writeFieldEnd();
-
 
87236
      oprot.writeFieldStop();
-
 
87237
      oprot.writeStructEnd();
-
 
87238
    }
-
 
87239
 
-
 
87240
    @Override
-
 
87241
    public String toString() {
-
 
87242
      StringBuilder sb = new StringBuilder("updateOrdersAsPORaised_args(");
-
 
87243
      boolean first = true;
-
 
87244
 
-
 
87245
      sb.append("itemIdQuantityMap:");
-
 
87246
      if (this.itemIdQuantityMap == null) {
-
 
87247
        sb.append("null");
-
 
87248
      } else {
-
 
87249
        sb.append(this.itemIdQuantityMap);
-
 
87250
      }
-
 
87251
      first = false;
-
 
87252
      if (!first) sb.append(", ");
-
 
87253
      sb.append("purchaseOrderId:");
-
 
87254
      sb.append(this.purchaseOrderId);
-
 
87255
      first = false;
-
 
87256
      if (!first) sb.append(", ");
-
 
87257
      sb.append("warehouseId:");
-
 
87258
      sb.append(this.warehouseId);
-
 
87259
      first = false;
-
 
87260
      sb.append(")");
-
 
87261
      return sb.toString();
-
 
87262
    }
-
 
87263
 
-
 
87264
    public void validate() throws org.apache.thrift.TException {
-
 
87265
      // check for required fields
-
 
87266
    }
-
 
87267
 
-
 
87268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
87269
      try {
-
 
87270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
87271
      } catch (org.apache.thrift.TException te) {
-
 
87272
        throw new java.io.IOException(te);
-
 
87273
      }
-
 
87274
    }
-
 
87275
 
-
 
87276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
87277
      try {
-
 
87278
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
87279
        __isset_bit_vector = new BitSet(1);
-
 
87280
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
87281
      } catch (org.apache.thrift.TException te) {
-
 
87282
        throw new java.io.IOException(te);
-
 
87283
      }
-
 
87284
    }
-
 
87285
 
-
 
87286
  }
-
 
87287
 
-
 
87288
  public static class updateOrdersAsPORaised_result implements org.apache.thrift.TBase<updateOrdersAsPORaised_result, updateOrdersAsPORaised_result._Fields>, java.io.Serializable, Cloneable   {
-
 
87289
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrdersAsPORaised_result");
-
 
87290
 
-
 
87291
    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);
-
 
87292
 
-
 
87293
    private TransactionServiceException ex; // required
-
 
87294
 
-
 
87295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
87296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
87297
      EX((short)1, "ex");
-
 
87298
 
-
 
87299
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
87300
 
-
 
87301
      static {
-
 
87302
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
87303
          byName.put(field.getFieldName(), field);
-
 
87304
        }
-
 
87305
      }
-
 
87306
 
-
 
87307
      /**
-
 
87308
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
87309
       */
-
 
87310
      public static _Fields findByThriftId(int fieldId) {
-
 
87311
        switch(fieldId) {
-
 
87312
          case 1: // EX
-
 
87313
            return EX;
-
 
87314
          default:
-
 
87315
            return null;
-
 
87316
        }
-
 
87317
      }
-
 
87318
 
-
 
87319
      /**
-
 
87320
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
87321
       * if it is not found.
-
 
87322
       */
-
 
87323
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
87324
        _Fields fields = findByThriftId(fieldId);
-
 
87325
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
87326
        return fields;
-
 
87327
      }
-
 
87328
 
-
 
87329
      /**
-
 
87330
       * Find the _Fields constant that matches name, or null if its not found.
-
 
87331
       */
-
 
87332
      public static _Fields findByName(String name) {
-
 
87333
        return byName.get(name);
-
 
87334
      }
-
 
87335
 
-
 
87336
      private final short _thriftId;
-
 
87337
      private final String _fieldName;
-
 
87338
 
-
 
87339
      _Fields(short thriftId, String fieldName) {
-
 
87340
        _thriftId = thriftId;
-
 
87341
        _fieldName = fieldName;
-
 
87342
      }
-
 
87343
 
-
 
87344
      public short getThriftFieldId() {
-
 
87345
        return _thriftId;
-
 
87346
      }
-
 
87347
 
-
 
87348
      public String getFieldName() {
-
 
87349
        return _fieldName;
-
 
87350
      }
-
 
87351
    }
-
 
87352
 
-
 
87353
    // isset id assignments
-
 
87354
 
-
 
87355
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
87356
    static {
-
 
87357
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
87358
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
87359
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
87360
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
87361
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrdersAsPORaised_result.class, metaDataMap);
-
 
87362
    }
-
 
87363
 
-
 
87364
    public updateOrdersAsPORaised_result() {
-
 
87365
    }
-
 
87366
 
-
 
87367
    public updateOrdersAsPORaised_result(
-
 
87368
      TransactionServiceException ex)
-
 
87369
    {
-
 
87370
      this();
-
 
87371
      this.ex = ex;
-
 
87372
    }
-
 
87373
 
-
 
87374
    /**
-
 
87375
     * Performs a deep copy on <i>other</i>.
-
 
87376
     */
-
 
87377
    public updateOrdersAsPORaised_result(updateOrdersAsPORaised_result other) {
-
 
87378
      if (other.isSetEx()) {
-
 
87379
        this.ex = new TransactionServiceException(other.ex);
-
 
87380
      }
-
 
87381
    }
-
 
87382
 
-
 
87383
    public updateOrdersAsPORaised_result deepCopy() {
-
 
87384
      return new updateOrdersAsPORaised_result(this);
-
 
87385
    }
-
 
87386
 
-
 
87387
    @Override
-
 
87388
    public void clear() {
-
 
87389
      this.ex = null;
-
 
87390
    }
-
 
87391
 
-
 
87392
    public TransactionServiceException getEx() {
-
 
87393
      return this.ex;
-
 
87394
    }
-
 
87395
 
-
 
87396
    public void setEx(TransactionServiceException ex) {
-
 
87397
      this.ex = ex;
-
 
87398
    }
-
 
87399
 
-
 
87400
    public void unsetEx() {
-
 
87401
      this.ex = null;
-
 
87402
    }
-
 
87403
 
-
 
87404
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
87405
    public boolean isSetEx() {
-
 
87406
      return this.ex != null;
-
 
87407
    }
-
 
87408
 
-
 
87409
    public void setExIsSet(boolean value) {
-
 
87410
      if (!value) {
-
 
87411
        this.ex = null;
-
 
87412
      }
-
 
87413
    }
-
 
87414
 
-
 
87415
    public void setFieldValue(_Fields field, Object value) {
-
 
87416
      switch (field) {
-
 
87417
      case EX:
-
 
87418
        if (value == null) {
-
 
87419
          unsetEx();
-
 
87420
        } else {
-
 
87421
          setEx((TransactionServiceException)value);
-
 
87422
        }
-
 
87423
        break;
-
 
87424
 
-
 
87425
      }
-
 
87426
    }
-
 
87427
 
-
 
87428
    public Object getFieldValue(_Fields field) {
-
 
87429
      switch (field) {
-
 
87430
      case EX:
-
 
87431
        return getEx();
-
 
87432
 
-
 
87433
      }
-
 
87434
      throw new IllegalStateException();
-
 
87435
    }
-
 
87436
 
-
 
87437
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
87438
    public boolean isSet(_Fields field) {
-
 
87439
      if (field == null) {
-
 
87440
        throw new IllegalArgumentException();
-
 
87441
      }
-
 
87442
 
-
 
87443
      switch (field) {
-
 
87444
      case EX:
-
 
87445
        return isSetEx();
-
 
87446
      }
-
 
87447
      throw new IllegalStateException();
-
 
87448
    }
-
 
87449
 
-
 
87450
    @Override
-
 
87451
    public boolean equals(Object that) {
-
 
87452
      if (that == null)
-
 
87453
        return false;
-
 
87454
      if (that instanceof updateOrdersAsPORaised_result)
-
 
87455
        return this.equals((updateOrdersAsPORaised_result)that);
-
 
87456
      return false;
-
 
87457
    }
-
 
87458
 
-
 
87459
    public boolean equals(updateOrdersAsPORaised_result that) {
-
 
87460
      if (that == null)
-
 
87461
        return false;
-
 
87462
 
-
 
87463
      boolean this_present_ex = true && this.isSetEx();
-
 
87464
      boolean that_present_ex = true && that.isSetEx();
-
 
87465
      if (this_present_ex || that_present_ex) {
-
 
87466
        if (!(this_present_ex && that_present_ex))
-
 
87467
          return false;
-
 
87468
        if (!this.ex.equals(that.ex))
-
 
87469
          return false;
-
 
87470
      }
-
 
87471
 
-
 
87472
      return true;
-
 
87473
    }
-
 
87474
 
-
 
87475
    @Override
-
 
87476
    public int hashCode() {
-
 
87477
      return 0;
-
 
87478
    }
-
 
87479
 
-
 
87480
    public int compareTo(updateOrdersAsPORaised_result other) {
-
 
87481
      if (!getClass().equals(other.getClass())) {
-
 
87482
        return getClass().getName().compareTo(other.getClass().getName());
-
 
87483
      }
-
 
87484
 
-
 
87485
      int lastComparison = 0;
-
 
87486
      updateOrdersAsPORaised_result typedOther = (updateOrdersAsPORaised_result)other;
-
 
87487
 
-
 
87488
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
87489
      if (lastComparison != 0) {
-
 
87490
        return lastComparison;
-
 
87491
      }
-
 
87492
      if (isSetEx()) {
-
 
87493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
87494
        if (lastComparison != 0) {
-
 
87495
          return lastComparison;
-
 
87496
        }
-
 
87497
      }
-
 
87498
      return 0;
-
 
87499
    }
-
 
87500
 
-
 
87501
    public _Fields fieldForId(int fieldId) {
-
 
87502
      return _Fields.findByThriftId(fieldId);
-
 
87503
    }
-
 
87504
 
-
 
87505
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
87506
      org.apache.thrift.protocol.TField field;
-
 
87507
      iprot.readStructBegin();
-
 
87508
      while (true)
-
 
87509
      {
-
 
87510
        field = iprot.readFieldBegin();
-
 
87511
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
87512
          break;
-
 
87513
        }
-
 
87514
        switch (field.id) {
-
 
87515
          case 1: // EX
-
 
87516
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
87517
              this.ex = new TransactionServiceException();
-
 
87518
              this.ex.read(iprot);
-
 
87519
            } else { 
-
 
87520
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87521
            }
-
 
87522
            break;
-
 
87523
          default:
-
 
87524
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87525
        }
-
 
87526
        iprot.readFieldEnd();
-
 
87527
      }
-
 
87528
      iprot.readStructEnd();
-
 
87529
      validate();
-
 
87530
    }
-
 
87531
 
-
 
87532
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
87533
      oprot.writeStructBegin(STRUCT_DESC);
-
 
87534
 
-
 
87535
      if (this.isSetEx()) {
-
 
87536
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
87537
        this.ex.write(oprot);
-
 
87538
        oprot.writeFieldEnd();
-
 
87539
      }
-
 
87540
      oprot.writeFieldStop();
-
 
87541
      oprot.writeStructEnd();
-
 
87542
    }
-
 
87543
 
-
 
87544
    @Override
-
 
87545
    public String toString() {
-
 
87546
      StringBuilder sb = new StringBuilder("updateOrdersAsPORaised_result(");
-
 
87547
      boolean first = true;
-
 
87548
 
-
 
87549
      sb.append("ex:");
-
 
87550
      if (this.ex == null) {
-
 
87551
        sb.append("null");
-
 
87552
      } else {
-
 
87553
        sb.append(this.ex);
-
 
87554
      }
-
 
87555
      first = false;
-
 
87556
      sb.append(")");
-
 
87557
      return sb.toString();
-
 
87558
    }
-
 
87559
 
-
 
87560
    public void validate() throws org.apache.thrift.TException {
-
 
87561
      // check for required fields
-
 
87562
    }
-
 
87563
 
-
 
87564
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
87565
      try {
-
 
87566
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
87567
      } catch (org.apache.thrift.TException te) {
-
 
87568
        throw new java.io.IOException(te);
-
 
87569
      }
-
 
87570
    }
-
 
87571
 
-
 
87572
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
87573
      try {
-
 
87574
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
87575
      } catch (org.apache.thrift.TException te) {
-
 
87576
        throw new java.io.IOException(te);
-
 
87577
      }
-
 
87578
    }
-
 
87579
 
-
 
87580
  }
-
 
87581
 
-
 
87582
  public static class getOrdersWhereVendorNotPaid_args implements org.apache.thrift.TBase<getOrdersWhereVendorNotPaid_args, getOrdersWhereVendorNotPaid_args._Fields>, java.io.Serializable, Cloneable   {
86682
  public static class getOrdersWhereVendorNotPaid_args implements org.apache.thrift.TBase<getOrdersWhereVendorNotPaid_args, getOrdersWhereVendorNotPaid_args._Fields>, java.io.Serializable, Cloneable   {
87583
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersWhereVendorNotPaid_args");
86683
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersWhereVendorNotPaid_args");
87584
 
86684
 
87585
    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);
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);
87586
 
86686
 
Line 88189... Line 87289...
88189
        }
87289
        }
88190
        switch (field.id) {
87290
        switch (field.id) {
88191
          case 0: // SUCCESS
87291
          case 0: // SUCCESS
88192
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
87292
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
88193
              {
87293
              {
88194
                org.apache.thrift.protocol.TList _list284 = iprot.readListBegin();
87294
                org.apache.thrift.protocol.TList _list279 = iprot.readListBegin();
88195
                this.success = new ArrayList<Order>(_list284.size);
87295
                this.success = new ArrayList<Order>(_list279.size);
88196
                for (int _i285 = 0; _i285 < _list284.size; ++_i285)
87296
                for (int _i280 = 0; _i280 < _list279.size; ++_i280)
88197
                {
87297
                {
88198
                  Order _elem286; // required
87298
                  Order _elem281; // required
88199
                  _elem286 = new Order();
87299
                  _elem281 = new Order();
88200
                  _elem286.read(iprot);
87300
                  _elem281.read(iprot);
88201
                  this.success.add(_elem286);
87301
                  this.success.add(_elem281);
88202
                }
87302
                }
88203
                iprot.readListEnd();
87303
                iprot.readListEnd();
88204
              }
87304
              }
88205
            } else { 
87305
            } else { 
88206
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
87306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 88228... Line 87328...
88228
 
87328
 
88229
      if (this.isSetSuccess()) {
87329
      if (this.isSetSuccess()) {
88230
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
87330
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
88231
        {
87331
        {
88232
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
87332
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
88233
          for (Order _iter287 : this.success)
87333
          for (Order _iter282 : this.success)
88234
          {
87334
          {
88235
            _iter287.write(oprot);
87335
            _iter282.write(oprot);
88236
          }
87336
          }
88237
          oprot.writeListEnd();
87337
          oprot.writeListEnd();
88238
        }
87338
        }
88239
        oprot.writeFieldEnd();
87339
        oprot.writeFieldEnd();
88240
      } else if (this.isSetEx()) {
87340
      } else if (this.isSetEx()) {
Line 88990... Line 88090...
88990
        }
88090
        }
88991
        switch (field.id) {
88091
        switch (field.id) {
88992
          case 0: // SUCCESS
88092
          case 0: // SUCCESS
88993
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
88093
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
88994
              {
88094
              {
88995
                org.apache.thrift.protocol.TMap _map288 = iprot.readMapBegin();
88095
                org.apache.thrift.protocol.TMap _map283 = iprot.readMapBegin();
88996
                this.success = new HashMap<Long,Long>(2*_map288.size);
88096
                this.success = new HashMap<Long,Long>(2*_map283.size);
88997
                for (int _i289 = 0; _i289 < _map288.size; ++_i289)
88097
                for (int _i284 = 0; _i284 < _map283.size; ++_i284)
88998
                {
88098
                {
88999
                  long _key290; // required
88099
                  long _key285; // required
89000
                  long _val291; // required
88100
                  long _val286; // required
89001
                  _key290 = iprot.readI64();
88101
                  _key285 = iprot.readI64();
89002
                  _val291 = iprot.readI64();
88102
                  _val286 = iprot.readI64();
89003
                  this.success.put(_key290, _val291);
88103
                  this.success.put(_key285, _val286);
89004
                }
88104
                }
89005
                iprot.readMapEnd();
88105
                iprot.readMapEnd();
89006
              }
88106
              }
89007
            } else { 
88107
            } else { 
89008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
88108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 89030... Line 88130...
89030
 
88130
 
89031
      if (this.isSetSuccess()) {
88131
      if (this.isSetSuccess()) {
89032
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
88132
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
89033
        {
88133
        {
89034
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
88134
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
89035
          for (Map.Entry<Long, Long> _iter292 : this.success.entrySet())
88135
          for (Map.Entry<Long, Long> _iter287 : this.success.entrySet())
89036
          {
88136
          {
89037
            oprot.writeI64(_iter292.getKey());
88137
            oprot.writeI64(_iter287.getKey());
89038
            oprot.writeI64(_iter292.getValue());
88138
            oprot.writeI64(_iter287.getValue());
89039
          }
88139
          }
89040
          oprot.writeMapEnd();
88140
          oprot.writeMapEnd();
89041
        }
88141
        }
89042
        oprot.writeFieldEnd();
88142
        oprot.writeFieldEnd();
89043
      } else if (this.isSetEx()) {
88143
      } else if (this.isSetEx()) {
Line 89871... Line 88971...
89871
        }
88971
        }
89872
        switch (field.id) {
88972
        switch (field.id) {
89873
          case 0: // SUCCESS
88973
          case 0: // SUCCESS
89874
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
88974
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
89875
              {
88975
              {
89876
                org.apache.thrift.protocol.TList _list293 = iprot.readListBegin();
88976
                org.apache.thrift.protocol.TList _list288 = iprot.readListBegin();
89877
                this.success = new ArrayList<Long>(_list293.size);
88977
                this.success = new ArrayList<Long>(_list288.size);
89878
                for (int _i294 = 0; _i294 < _list293.size; ++_i294)
88978
                for (int _i289 = 0; _i289 < _list288.size; ++_i289)
89879
                {
88979
                {
89880
                  long _elem295; // required
88980
                  long _elem290; // required
89881
                  _elem295 = iprot.readI64();
88981
                  _elem290 = iprot.readI64();
89882
                  this.success.add(_elem295);
88982
                  this.success.add(_elem290);
89883
                }
88983
                }
89884
                iprot.readListEnd();
88984
                iprot.readListEnd();
89885
              }
88985
              }
89886
            } else { 
88986
            } else { 
89887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
88987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 89909... Line 89009...
89909
 
89009
 
89910
      if (this.isSetSuccess()) {
89010
      if (this.isSetSuccess()) {
89911
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
89011
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
89912
        {
89012
        {
89913
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
89013
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
89914
          for (long _iter296 : this.success)
89014
          for (long _iter291 : this.success)
89915
          {
89015
          {
89916
            oprot.writeI64(_iter296);
89016
            oprot.writeI64(_iter291);
89917
          }
89017
          }
89918
          oprot.writeListEnd();
89018
          oprot.writeListEnd();
89919
        }
89019
        }
89920
        oprot.writeFieldEnd();
89020
        oprot.writeFieldEnd();
89921
      } else if (this.isSetEx()) {
89021
      } else if (this.isSetEx()) {
Line 91077... Line 90177...
91077
        }
90177
        }
91078
        switch (field.id) {
90178
        switch (field.id) {
91079
          case 0: // SUCCESS
90179
          case 0: // SUCCESS
91080
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
90180
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
91081
              {
90181
              {
91082
                org.apache.thrift.protocol.TList _list297 = iprot.readListBegin();
90182
                org.apache.thrift.protocol.TList _list292 = iprot.readListBegin();
91083
                this.success = new ArrayList<Order>(_list297.size);
90183
                this.success = new ArrayList<Order>(_list292.size);
91084
                for (int _i298 = 0; _i298 < _list297.size; ++_i298)
90184
                for (int _i293 = 0; _i293 < _list292.size; ++_i293)
91085
                {
90185
                {
91086
                  Order _elem299; // required
90186
                  Order _elem294; // required
91087
                  _elem299 = new Order();
90187
                  _elem294 = new Order();
91088
                  _elem299.read(iprot);
90188
                  _elem294.read(iprot);
91089
                  this.success.add(_elem299);
90189
                  this.success.add(_elem294);
91090
                }
90190
                }
91091
                iprot.readListEnd();
90191
                iprot.readListEnd();
91092
              }
90192
              }
91093
            } else { 
90193
            } else { 
91094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
90194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 91116... Line 90216...
91116
 
90216
 
91117
      if (this.isSetSuccess()) {
90217
      if (this.isSetSuccess()) {
91118
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
90218
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
91119
        {
90219
        {
91120
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
90220
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
91121
          for (Order _iter300 : this.success)
90221
          for (Order _iter295 : this.success)
91122
          {
90222
          {
91123
            _iter300.write(oprot);
90223
            _iter295.write(oprot);
91124
          }
90224
          }
91125
          oprot.writeListEnd();
90225
          oprot.writeListEnd();
91126
        }
90226
        }
91127
        oprot.writeFieldEnd();
90227
        oprot.writeFieldEnd();
91128
      } else if (this.isSetEx()) {
90228
      } else if (this.isSetEx()) {