Subversion Repositories SmartDukaan

Rev

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

Rev 21844 Rev 21847
Line 100... Line 100...
100
     * @param warehouseId
100
     * @param warehouseId
101
     */
101
     */
102
    public List<PurchaseOrder> getPendingPurchaseOrders(long warehouseId) throws PurchaseServiceException, org.apache.thrift.TException;
102
    public List<PurchaseOrder> getPendingPurchaseOrders(long warehouseId) throws PurchaseServiceException, org.apache.thrift.TException;
103
 
103
 
104
    /**
104
    /**
105
     * Returns all the valid suppliers
105
     * Returns all the valid suppliers with GST Codes
106
     */
106
     */
107
    public List<Supplier> getSuppliers() throws PurchaseServiceException, org.apache.thrift.TException;
107
    public List<Supplier> getSuppliers() throws PurchaseServiceException, org.apache.thrift.TException;
108
 
108
 
109
    /**
109
    /**
-
 
110
     * Returns all the valid suppliers
-
 
111
     */
-
 
112
    public List<Supplier> getAllSuppliers() throws PurchaseServiceException, org.apache.thrift.TException;
-
 
113
 
-
 
114
    /**
110
     * Fulfills a given purchase order with an item.
115
     * Fulfills a given purchase order with an item.
111
     * 
116
     * 
112
     * @param purchaseOrderId
117
     * @param purchaseOrderId
113
     * @param itemId
118
     * @param itemId
114
     * @param quantity
119
     * @param quantity
Line 276... Line 281...
276
 
281
 
277
    public void getPendingPurchaseOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingPurchaseOrders_call> resultHandler) throws org.apache.thrift.TException;
282
    public void getPendingPurchaseOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingPurchaseOrders_call> resultHandler) throws org.apache.thrift.TException;
278
 
283
 
279
    public void getSuppliers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuppliers_call> resultHandler) throws org.apache.thrift.TException;
284
    public void getSuppliers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuppliers_call> resultHandler) throws org.apache.thrift.TException;
280
 
285
 
-
 
286
    public void getAllSuppliers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSuppliers_call> resultHandler) throws org.apache.thrift.TException;
-
 
287
 
281
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fulfillPO_call> resultHandler) throws org.apache.thrift.TException;
288
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fulfillPO_call> resultHandler) throws org.apache.thrift.TException;
282
 
289
 
283
    public void updatePurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
290
    public void updatePurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
284
 
291
 
285
    public void unFulfillPO(long purchaseId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unFulfillPO_call> resultHandler) throws org.apache.thrift.TException;
292
    public void unFulfillPO(long purchaseId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unFulfillPO_call> resultHandler) throws org.apache.thrift.TException;
Line 628... Line 635...
628
        throw result.e;
635
        throw result.e;
629
      }
636
      }
630
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuppliers failed: unknown result");
637
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuppliers failed: unknown result");
631
    }
638
    }
632
 
639
 
-
 
640
    public List<Supplier> getAllSuppliers() throws PurchaseServiceException, org.apache.thrift.TException
-
 
641
    {
-
 
642
      send_getAllSuppliers();
-
 
643
      return recv_getAllSuppliers();
-
 
644
    }
-
 
645
 
-
 
646
    public void send_getAllSuppliers() throws org.apache.thrift.TException
-
 
647
    {
-
 
648
      getAllSuppliers_args args = new getAllSuppliers_args();
-
 
649
      sendBase("getAllSuppliers", args);
-
 
650
    }
-
 
651
 
-
 
652
    public List<Supplier> recv_getAllSuppliers() throws PurchaseServiceException, org.apache.thrift.TException
-
 
653
    {
-
 
654
      getAllSuppliers_result result = new getAllSuppliers_result();
-
 
655
      receiveBase(result, "getAllSuppliers");
-
 
656
      if (result.isSetSuccess()) {
-
 
657
        return result.success;
-
 
658
      }
-
 
659
      if (result.e != null) {
-
 
660
        throw result.e;
-
 
661
      }
-
 
662
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSuppliers failed: unknown result");
-
 
663
    }
-
 
664
 
633
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity) throws PurchaseServiceException, org.apache.thrift.TException
665
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity) throws PurchaseServiceException, org.apache.thrift.TException
634
    {
666
    {
635
      send_fulfillPO(purchaseOrderId, itemId, quantity);
667
      send_fulfillPO(purchaseOrderId, itemId, quantity);
636
      recv_fulfillPO();
668
      recv_fulfillPO();
637
    }
669
    }
Line 1530... Line 1562...
1530
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1562
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1531
        return (new Client(prot)).recv_getSuppliers();
1563
        return (new Client(prot)).recv_getSuppliers();
1532
      }
1564
      }
1533
    }
1565
    }
1534
 
1566
 
-
 
1567
    public void getAllSuppliers(org.apache.thrift.async.AsyncMethodCallback<getAllSuppliers_call> resultHandler) throws org.apache.thrift.TException {
-
 
1568
      checkReady();
-
 
1569
      getAllSuppliers_call method_call = new getAllSuppliers_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
1570
      this.___currentMethod = method_call;
-
 
1571
      ___manager.call(method_call);
-
 
1572
    }
-
 
1573
 
-
 
1574
    public static class getAllSuppliers_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1575
      public getAllSuppliers_call(org.apache.thrift.async.AsyncMethodCallback<getAllSuppliers_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 {
-
 
1576
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1577
      }
-
 
1578
 
-
 
1579
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1580
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSuppliers", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1581
        getAllSuppliers_args args = new getAllSuppliers_args();
-
 
1582
        args.write(prot);
-
 
1583
        prot.writeMessageEnd();
-
 
1584
      }
-
 
1585
 
-
 
1586
      public List<Supplier> getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
1587
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1588
          throw new IllegalStateException("Method call not finished!");
-
 
1589
        }
-
 
1590
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1591
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1592
        return (new Client(prot)).recv_getAllSuppliers();
-
 
1593
      }
-
 
1594
    }
-
 
1595
 
1535
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<fulfillPO_call> resultHandler) throws org.apache.thrift.TException {
1596
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<fulfillPO_call> resultHandler) throws org.apache.thrift.TException {
1536
      checkReady();
1597
      checkReady();
1537
      fulfillPO_call method_call = new fulfillPO_call(purchaseOrderId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
1598
      fulfillPO_call method_call = new fulfillPO_call(purchaseOrderId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
1538
      this.___currentMethod = method_call;
1599
      this.___currentMethod = method_call;
1539
      ___manager.call(method_call);
1600
      ___manager.call(method_call);
Line 2309... Line 2370...
2309
      processMap.put("getAllPurchases", new getAllPurchases());
2370
      processMap.put("getAllPurchases", new getAllPurchases());
2310
      processMap.put("getPurchasesForPO", new getPurchasesForPO());
2371
      processMap.put("getPurchasesForPO", new getPurchasesForPO());
2311
      processMap.put("getPurchaseOrderForPurchase", new getPurchaseOrderForPurchase());
2372
      processMap.put("getPurchaseOrderForPurchase", new getPurchaseOrderForPurchase());
2312
      processMap.put("getPendingPurchaseOrders", new getPendingPurchaseOrders());
2373
      processMap.put("getPendingPurchaseOrders", new getPendingPurchaseOrders());
2313
      processMap.put("getSuppliers", new getSuppliers());
2374
      processMap.put("getSuppliers", new getSuppliers());
-
 
2375
      processMap.put("getAllSuppliers", new getAllSuppliers());
2314
      processMap.put("fulfillPO", new fulfillPO());
2376
      processMap.put("fulfillPO", new fulfillPO());
2315
      processMap.put("updatePurchaseOrder", new updatePurchaseOrder());
2377
      processMap.put("updatePurchaseOrder", new updatePurchaseOrder());
2316
      processMap.put("unFulfillPO", new unFulfillPO());
2378
      processMap.put("unFulfillPO", new unFulfillPO());
2317
      processMap.put("getInvoices", new getInvoices());
2379
      processMap.put("getInvoices", new getInvoices());
2318
      processMap.put("getInvoicesForWarehouse", new getInvoicesForWarehouse());
2380
      processMap.put("getInvoicesForWarehouse", new getInvoicesForWarehouse());
Line 2553... Line 2615...
2553
        }
2615
        }
2554
        return result;
2616
        return result;
2555
      }
2617
      }
2556
    }
2618
    }
2557
 
2619
 
-
 
2620
    private static class getAllSuppliers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSuppliers_args> {
-
 
2621
      public getAllSuppliers() {
-
 
2622
        super("getAllSuppliers");
-
 
2623
      }
-
 
2624
 
-
 
2625
      protected getAllSuppliers_args getEmptyArgsInstance() {
-
 
2626
        return new getAllSuppliers_args();
-
 
2627
      }
-
 
2628
 
-
 
2629
      protected getAllSuppliers_result getResult(I iface, getAllSuppliers_args args) throws org.apache.thrift.TException {
-
 
2630
        getAllSuppliers_result result = new getAllSuppliers_result();
-
 
2631
        try {
-
 
2632
          result.success = iface.getAllSuppliers();
-
 
2633
        } catch (PurchaseServiceException e) {
-
 
2634
          result.e = e;
-
 
2635
        }
-
 
2636
        return result;
-
 
2637
      }
-
 
2638
    }
-
 
2639
 
2558
    private static class fulfillPO<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fulfillPO_args> {
2640
    private static class fulfillPO<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fulfillPO_args> {
2559
      public fulfillPO() {
2641
      public fulfillPO() {
2560
        super("fulfillPO");
2642
        super("fulfillPO");
2561
      }
2643
      }
2562
 
2644
 
Line 10738... Line 10820...
10738
      }
10820
      }
10739
    }
10821
    }
10740
 
10822
 
10741
  }
10823
  }
10742
 
10824
 
-
 
10825
  public static class getAllSuppliers_args implements org.apache.thrift.TBase<getAllSuppliers_args, getAllSuppliers_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10826
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSuppliers_args");
-
 
10827
 
-
 
10828
 
-
 
10829
 
-
 
10830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10832
;
-
 
10833
 
-
 
10834
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10835
 
-
 
10836
      static {
-
 
10837
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10838
          byName.put(field.getFieldName(), field);
-
 
10839
        }
-
 
10840
      }
-
 
10841
 
-
 
10842
      /**
-
 
10843
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10844
       */
-
 
10845
      public static _Fields findByThriftId(int fieldId) {
-
 
10846
        switch(fieldId) {
-
 
10847
          default:
-
 
10848
            return null;
-
 
10849
        }
-
 
10850
      }
-
 
10851
 
-
 
10852
      /**
-
 
10853
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10854
       * if it is not found.
-
 
10855
       */
-
 
10856
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10857
        _Fields fields = findByThriftId(fieldId);
-
 
10858
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10859
        return fields;
-
 
10860
      }
-
 
10861
 
-
 
10862
      /**
-
 
10863
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10864
       */
-
 
10865
      public static _Fields findByName(String name) {
-
 
10866
        return byName.get(name);
-
 
10867
      }
-
 
10868
 
-
 
10869
      private final short _thriftId;
-
 
10870
      private final String _fieldName;
-
 
10871
 
-
 
10872
      _Fields(short thriftId, String fieldName) {
-
 
10873
        _thriftId = thriftId;
-
 
10874
        _fieldName = fieldName;
-
 
10875
      }
-
 
10876
 
-
 
10877
      public short getThriftFieldId() {
-
 
10878
        return _thriftId;
-
 
10879
      }
-
 
10880
 
-
 
10881
      public String getFieldName() {
-
 
10882
        return _fieldName;
-
 
10883
      }
-
 
10884
    }
-
 
10885
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10886
    static {
-
 
10887
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSuppliers_args.class, metaDataMap);
-
 
10890
    }
-
 
10891
 
-
 
10892
    public getAllSuppliers_args() {
-
 
10893
    }
-
 
10894
 
-
 
10895
    /**
-
 
10896
     * Performs a deep copy on <i>other</i>.
-
 
10897
     */
-
 
10898
    public getAllSuppliers_args(getAllSuppliers_args other) {
-
 
10899
    }
-
 
10900
 
-
 
10901
    public getAllSuppliers_args deepCopy() {
-
 
10902
      return new getAllSuppliers_args(this);
-
 
10903
    }
-
 
10904
 
-
 
10905
    @Override
-
 
10906
    public void clear() {
-
 
10907
    }
-
 
10908
 
-
 
10909
    public void setFieldValue(_Fields field, Object value) {
-
 
10910
      switch (field) {
-
 
10911
      }
-
 
10912
    }
-
 
10913
 
-
 
10914
    public Object getFieldValue(_Fields field) {
-
 
10915
      switch (field) {
-
 
10916
      }
-
 
10917
      throw new IllegalStateException();
-
 
10918
    }
-
 
10919
 
-
 
10920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10921
    public boolean isSet(_Fields field) {
-
 
10922
      if (field == null) {
-
 
10923
        throw new IllegalArgumentException();
-
 
10924
      }
-
 
10925
 
-
 
10926
      switch (field) {
-
 
10927
      }
-
 
10928
      throw new IllegalStateException();
-
 
10929
    }
-
 
10930
 
-
 
10931
    @Override
-
 
10932
    public boolean equals(Object that) {
-
 
10933
      if (that == null)
-
 
10934
        return false;
-
 
10935
      if (that instanceof getAllSuppliers_args)
-
 
10936
        return this.equals((getAllSuppliers_args)that);
-
 
10937
      return false;
-
 
10938
    }
-
 
10939
 
-
 
10940
    public boolean equals(getAllSuppliers_args that) {
-
 
10941
      if (that == null)
-
 
10942
        return false;
-
 
10943
 
-
 
10944
      return true;
-
 
10945
    }
-
 
10946
 
-
 
10947
    @Override
-
 
10948
    public int hashCode() {
-
 
10949
      return 0;
-
 
10950
    }
-
 
10951
 
-
 
10952
    public int compareTo(getAllSuppliers_args other) {
-
 
10953
      if (!getClass().equals(other.getClass())) {
-
 
10954
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10955
      }
-
 
10956
 
-
 
10957
      int lastComparison = 0;
-
 
10958
      getAllSuppliers_args typedOther = (getAllSuppliers_args)other;
-
 
10959
 
-
 
10960
      return 0;
-
 
10961
    }
-
 
10962
 
-
 
10963
    public _Fields fieldForId(int fieldId) {
-
 
10964
      return _Fields.findByThriftId(fieldId);
-
 
10965
    }
-
 
10966
 
-
 
10967
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10968
      org.apache.thrift.protocol.TField field;
-
 
10969
      iprot.readStructBegin();
-
 
10970
      while (true)
-
 
10971
      {
-
 
10972
        field = iprot.readFieldBegin();
-
 
10973
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10974
          break;
-
 
10975
        }
-
 
10976
        switch (field.id) {
-
 
10977
          default:
-
 
10978
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10979
        }
-
 
10980
        iprot.readFieldEnd();
-
 
10981
      }
-
 
10982
      iprot.readStructEnd();
-
 
10983
      validate();
-
 
10984
    }
-
 
10985
 
-
 
10986
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10987
      validate();
-
 
10988
 
-
 
10989
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10990
      oprot.writeFieldStop();
-
 
10991
      oprot.writeStructEnd();
-
 
10992
    }
-
 
10993
 
-
 
10994
    @Override
-
 
10995
    public String toString() {
-
 
10996
      StringBuilder sb = new StringBuilder("getAllSuppliers_args(");
-
 
10997
      boolean first = true;
-
 
10998
 
-
 
10999
      sb.append(")");
-
 
11000
      return sb.toString();
-
 
11001
    }
-
 
11002
 
-
 
11003
    public void validate() throws org.apache.thrift.TException {
-
 
11004
      // check for required fields
-
 
11005
    }
-
 
11006
 
-
 
11007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11008
      try {
-
 
11009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11010
      } catch (org.apache.thrift.TException te) {
-
 
11011
        throw new java.io.IOException(te);
-
 
11012
      }
-
 
11013
    }
-
 
11014
 
-
 
11015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11016
      try {
-
 
11017
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11018
      } catch (org.apache.thrift.TException te) {
-
 
11019
        throw new java.io.IOException(te);
-
 
11020
      }
-
 
11021
    }
-
 
11022
 
-
 
11023
  }
-
 
11024
 
-
 
11025
  public static class getAllSuppliers_result implements org.apache.thrift.TBase<getAllSuppliers_result, getAllSuppliers_result._Fields>, java.io.Serializable, Cloneable   {
-
 
11026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSuppliers_result");
-
 
11027
 
-
 
11028
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
11029
    private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
11030
 
-
 
11031
    private List<Supplier> success; // required
-
 
11032
    private PurchaseServiceException e; // required
-
 
11033
 
-
 
11034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11036
      SUCCESS((short)0, "success"),
-
 
11037
      E((short)1, "e");
-
 
11038
 
-
 
11039
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11040
 
-
 
11041
      static {
-
 
11042
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11043
          byName.put(field.getFieldName(), field);
-
 
11044
        }
-
 
11045
      }
-
 
11046
 
-
 
11047
      /**
-
 
11048
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11049
       */
-
 
11050
      public static _Fields findByThriftId(int fieldId) {
-
 
11051
        switch(fieldId) {
-
 
11052
          case 0: // SUCCESS
-
 
11053
            return SUCCESS;
-
 
11054
          case 1: // E
-
 
11055
            return E;
-
 
11056
          default:
-
 
11057
            return null;
-
 
11058
        }
-
 
11059
      }
-
 
11060
 
-
 
11061
      /**
-
 
11062
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11063
       * if it is not found.
-
 
11064
       */
-
 
11065
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11066
        _Fields fields = findByThriftId(fieldId);
-
 
11067
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11068
        return fields;
-
 
11069
      }
-
 
11070
 
-
 
11071
      /**
-
 
11072
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11073
       */
-
 
11074
      public static _Fields findByName(String name) {
-
 
11075
        return byName.get(name);
-
 
11076
      }
-
 
11077
 
-
 
11078
      private final short _thriftId;
-
 
11079
      private final String _fieldName;
-
 
11080
 
-
 
11081
      _Fields(short thriftId, String fieldName) {
-
 
11082
        _thriftId = thriftId;
-
 
11083
        _fieldName = fieldName;
-
 
11084
      }
-
 
11085
 
-
 
11086
      public short getThriftFieldId() {
-
 
11087
        return _thriftId;
-
 
11088
      }
-
 
11089
 
-
 
11090
      public String getFieldName() {
-
 
11091
        return _fieldName;
-
 
11092
      }
-
 
11093
    }
-
 
11094
 
-
 
11095
    // isset id assignments
-
 
11096
 
-
 
11097
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11098
    static {
-
 
11099
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11100
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11101
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
11102
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Supplier.class))));
-
 
11103
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11104
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
11105
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11106
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSuppliers_result.class, metaDataMap);
-
 
11107
    }
-
 
11108
 
-
 
11109
    public getAllSuppliers_result() {
-
 
11110
    }
-
 
11111
 
-
 
11112
    public getAllSuppliers_result(
-
 
11113
      List<Supplier> success,
-
 
11114
      PurchaseServiceException e)
-
 
11115
    {
-
 
11116
      this();
-
 
11117
      this.success = success;
-
 
11118
      this.e = e;
-
 
11119
    }
-
 
11120
 
-
 
11121
    /**
-
 
11122
     * Performs a deep copy on <i>other</i>.
-
 
11123
     */
-
 
11124
    public getAllSuppliers_result(getAllSuppliers_result other) {
-
 
11125
      if (other.isSetSuccess()) {
-
 
11126
        List<Supplier> __this__success = new ArrayList<Supplier>();
-
 
11127
        for (Supplier other_element : other.success) {
-
 
11128
          __this__success.add(new Supplier(other_element));
-
 
11129
        }
-
 
11130
        this.success = __this__success;
-
 
11131
      }
-
 
11132
      if (other.isSetE()) {
-
 
11133
        this.e = new PurchaseServiceException(other.e);
-
 
11134
      }
-
 
11135
    }
-
 
11136
 
-
 
11137
    public getAllSuppliers_result deepCopy() {
-
 
11138
      return new getAllSuppliers_result(this);
-
 
11139
    }
-
 
11140
 
-
 
11141
    @Override
-
 
11142
    public void clear() {
-
 
11143
      this.success = null;
-
 
11144
      this.e = null;
-
 
11145
    }
-
 
11146
 
-
 
11147
    public int getSuccessSize() {
-
 
11148
      return (this.success == null) ? 0 : this.success.size();
-
 
11149
    }
-
 
11150
 
-
 
11151
    public java.util.Iterator<Supplier> getSuccessIterator() {
-
 
11152
      return (this.success == null) ? null : this.success.iterator();
-
 
11153
    }
-
 
11154
 
-
 
11155
    public void addToSuccess(Supplier elem) {
-
 
11156
      if (this.success == null) {
-
 
11157
        this.success = new ArrayList<Supplier>();
-
 
11158
      }
-
 
11159
      this.success.add(elem);
-
 
11160
    }
-
 
11161
 
-
 
11162
    public List<Supplier> getSuccess() {
-
 
11163
      return this.success;
-
 
11164
    }
-
 
11165
 
-
 
11166
    public void setSuccess(List<Supplier> success) {
-
 
11167
      this.success = success;
-
 
11168
    }
-
 
11169
 
-
 
11170
    public void unsetSuccess() {
-
 
11171
      this.success = null;
-
 
11172
    }
-
 
11173
 
-
 
11174
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
11175
    public boolean isSetSuccess() {
-
 
11176
      return this.success != null;
-
 
11177
    }
-
 
11178
 
-
 
11179
    public void setSuccessIsSet(boolean value) {
-
 
11180
      if (!value) {
-
 
11181
        this.success = null;
-
 
11182
      }
-
 
11183
    }
-
 
11184
 
-
 
11185
    public PurchaseServiceException getE() {
-
 
11186
      return this.e;
-
 
11187
    }
-
 
11188
 
-
 
11189
    public void setE(PurchaseServiceException e) {
-
 
11190
      this.e = e;
-
 
11191
    }
-
 
11192
 
-
 
11193
    public void unsetE() {
-
 
11194
      this.e = null;
-
 
11195
    }
-
 
11196
 
-
 
11197
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
11198
    public boolean isSetE() {
-
 
11199
      return this.e != null;
-
 
11200
    }
-
 
11201
 
-
 
11202
    public void setEIsSet(boolean value) {
-
 
11203
      if (!value) {
-
 
11204
        this.e = null;
-
 
11205
      }
-
 
11206
    }
-
 
11207
 
-
 
11208
    public void setFieldValue(_Fields field, Object value) {
-
 
11209
      switch (field) {
-
 
11210
      case SUCCESS:
-
 
11211
        if (value == null) {
-
 
11212
          unsetSuccess();
-
 
11213
        } else {
-
 
11214
          setSuccess((List<Supplier>)value);
-
 
11215
        }
-
 
11216
        break;
-
 
11217
 
-
 
11218
      case E:
-
 
11219
        if (value == null) {
-
 
11220
          unsetE();
-
 
11221
        } else {
-
 
11222
          setE((PurchaseServiceException)value);
-
 
11223
        }
-
 
11224
        break;
-
 
11225
 
-
 
11226
      }
-
 
11227
    }
-
 
11228
 
-
 
11229
    public Object getFieldValue(_Fields field) {
-
 
11230
      switch (field) {
-
 
11231
      case SUCCESS:
-
 
11232
        return getSuccess();
-
 
11233
 
-
 
11234
      case E:
-
 
11235
        return getE();
-
 
11236
 
-
 
11237
      }
-
 
11238
      throw new IllegalStateException();
-
 
11239
    }
-
 
11240
 
-
 
11241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11242
    public boolean isSet(_Fields field) {
-
 
11243
      if (field == null) {
-
 
11244
        throw new IllegalArgumentException();
-
 
11245
      }
-
 
11246
 
-
 
11247
      switch (field) {
-
 
11248
      case SUCCESS:
-
 
11249
        return isSetSuccess();
-
 
11250
      case E:
-
 
11251
        return isSetE();
-
 
11252
      }
-
 
11253
      throw new IllegalStateException();
-
 
11254
    }
-
 
11255
 
-
 
11256
    @Override
-
 
11257
    public boolean equals(Object that) {
-
 
11258
      if (that == null)
-
 
11259
        return false;
-
 
11260
      if (that instanceof getAllSuppliers_result)
-
 
11261
        return this.equals((getAllSuppliers_result)that);
-
 
11262
      return false;
-
 
11263
    }
-
 
11264
 
-
 
11265
    public boolean equals(getAllSuppliers_result that) {
-
 
11266
      if (that == null)
-
 
11267
        return false;
-
 
11268
 
-
 
11269
      boolean this_present_success = true && this.isSetSuccess();
-
 
11270
      boolean that_present_success = true && that.isSetSuccess();
-
 
11271
      if (this_present_success || that_present_success) {
-
 
11272
        if (!(this_present_success && that_present_success))
-
 
11273
          return false;
-
 
11274
        if (!this.success.equals(that.success))
-
 
11275
          return false;
-
 
11276
      }
-
 
11277
 
-
 
11278
      boolean this_present_e = true && this.isSetE();
-
 
11279
      boolean that_present_e = true && that.isSetE();
-
 
11280
      if (this_present_e || that_present_e) {
-
 
11281
        if (!(this_present_e && that_present_e))
-
 
11282
          return false;
-
 
11283
        if (!this.e.equals(that.e))
-
 
11284
          return false;
-
 
11285
      }
-
 
11286
 
-
 
11287
      return true;
-
 
11288
    }
-
 
11289
 
-
 
11290
    @Override
-
 
11291
    public int hashCode() {
-
 
11292
      return 0;
-
 
11293
    }
-
 
11294
 
-
 
11295
    public int compareTo(getAllSuppliers_result other) {
-
 
11296
      if (!getClass().equals(other.getClass())) {
-
 
11297
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11298
      }
-
 
11299
 
-
 
11300
      int lastComparison = 0;
-
 
11301
      getAllSuppliers_result typedOther = (getAllSuppliers_result)other;
-
 
11302
 
-
 
11303
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
11304
      if (lastComparison != 0) {
-
 
11305
        return lastComparison;
-
 
11306
      }
-
 
11307
      if (isSetSuccess()) {
-
 
11308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
11309
        if (lastComparison != 0) {
-
 
11310
          return lastComparison;
-
 
11311
        }
-
 
11312
      }
-
 
11313
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
11314
      if (lastComparison != 0) {
-
 
11315
        return lastComparison;
-
 
11316
      }
-
 
11317
      if (isSetE()) {
-
 
11318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
11319
        if (lastComparison != 0) {
-
 
11320
          return lastComparison;
-
 
11321
        }
-
 
11322
      }
-
 
11323
      return 0;
-
 
11324
    }
-
 
11325
 
-
 
11326
    public _Fields fieldForId(int fieldId) {
-
 
11327
      return _Fields.findByThriftId(fieldId);
-
 
11328
    }
-
 
11329
 
-
 
11330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11331
      org.apache.thrift.protocol.TField field;
-
 
11332
      iprot.readStructBegin();
-
 
11333
      while (true)
-
 
11334
      {
-
 
11335
        field = iprot.readFieldBegin();
-
 
11336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11337
          break;
-
 
11338
        }
-
 
11339
        switch (field.id) {
-
 
11340
          case 0: // SUCCESS
-
 
11341
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
11342
              {
-
 
11343
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
-
 
11344
                this.success = new ArrayList<Supplier>(_list24.size);
-
 
11345
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
11346
                {
-
 
11347
                  Supplier _elem26; // required
-
 
11348
                  _elem26 = new Supplier();
-
 
11349
                  _elem26.read(iprot);
-
 
11350
                  this.success.add(_elem26);
-
 
11351
                }
-
 
11352
                iprot.readListEnd();
-
 
11353
              }
-
 
11354
            } else { 
-
 
11355
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11356
            }
-
 
11357
            break;
-
 
11358
          case 1: // E
-
 
11359
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
11360
              this.e = new PurchaseServiceException();
-
 
11361
              this.e.read(iprot);
-
 
11362
            } else { 
-
 
11363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11364
            }
-
 
11365
            break;
-
 
11366
          default:
-
 
11367
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11368
        }
-
 
11369
        iprot.readFieldEnd();
-
 
11370
      }
-
 
11371
      iprot.readStructEnd();
-
 
11372
      validate();
-
 
11373
    }
-
 
11374
 
-
 
11375
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11376
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11377
 
-
 
11378
      if (this.isSetSuccess()) {
-
 
11379
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
11380
        {
-
 
11381
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
11382
          for (Supplier _iter27 : this.success)
-
 
11383
          {
-
 
11384
            _iter27.write(oprot);
-
 
11385
          }
-
 
11386
          oprot.writeListEnd();
-
 
11387
        }
-
 
11388
        oprot.writeFieldEnd();
-
 
11389
      } else if (this.isSetE()) {
-
 
11390
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
11391
        this.e.write(oprot);
-
 
11392
        oprot.writeFieldEnd();
-
 
11393
      }
-
 
11394
      oprot.writeFieldStop();
-
 
11395
      oprot.writeStructEnd();
-
 
11396
    }
-
 
11397
 
-
 
11398
    @Override
-
 
11399
    public String toString() {
-
 
11400
      StringBuilder sb = new StringBuilder("getAllSuppliers_result(");
-
 
11401
      boolean first = true;
-
 
11402
 
-
 
11403
      sb.append("success:");
-
 
11404
      if (this.success == null) {
-
 
11405
        sb.append("null");
-
 
11406
      } else {
-
 
11407
        sb.append(this.success);
-
 
11408
      }
-
 
11409
      first = false;
-
 
11410
      if (!first) sb.append(", ");
-
 
11411
      sb.append("e:");
-
 
11412
      if (this.e == null) {
-
 
11413
        sb.append("null");
-
 
11414
      } else {
-
 
11415
        sb.append(this.e);
-
 
11416
      }
-
 
11417
      first = false;
-
 
11418
      sb.append(")");
-
 
11419
      return sb.toString();
-
 
11420
    }
-
 
11421
 
-
 
11422
    public void validate() throws org.apache.thrift.TException {
-
 
11423
      // check for required fields
-
 
11424
    }
-
 
11425
 
-
 
11426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11427
      try {
-
 
11428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11429
      } catch (org.apache.thrift.TException te) {
-
 
11430
        throw new java.io.IOException(te);
-
 
11431
      }
-
 
11432
    }
-
 
11433
 
-
 
11434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11435
      try {
-
 
11436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11437
      } catch (org.apache.thrift.TException te) {
-
 
11438
        throw new java.io.IOException(te);
-
 
11439
      }
-
 
11440
    }
-
 
11441
 
-
 
11442
  }
-
 
11443
 
10743
  public static class fulfillPO_args implements org.apache.thrift.TBase<fulfillPO_args, fulfillPO_args._Fields>, java.io.Serializable, Cloneable   {
11444
  public static class fulfillPO_args implements org.apache.thrift.TBase<fulfillPO_args, fulfillPO_args._Fields>, java.io.Serializable, Cloneable   {
10744
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fulfillPO_args");
11445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fulfillPO_args");
10745
 
11446
 
10746
    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)1);
11447
    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)1);
10747
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
11448
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
Line 13379... Line 14080...
13379
        }
14080
        }
13380
        switch (field.id) {
14081
        switch (field.id) {
13381
          case 0: // SUCCESS
14082
          case 0: // SUCCESS
13382
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14083
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13383
              {
14084
              {
13384
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
14085
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
13385
                this.success = new ArrayList<Invoice>(_list24.size);
14086
                this.success = new ArrayList<Invoice>(_list28.size);
13386
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
14087
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
13387
                {
14088
                {
13388
                  Invoice _elem26; // required
14089
                  Invoice _elem30; // required
13389
                  _elem26 = new Invoice();
14090
                  _elem30 = new Invoice();
13390
                  _elem26.read(iprot);
14091
                  _elem30.read(iprot);
13391
                  this.success.add(_elem26);
14092
                  this.success.add(_elem30);
13392
                }
14093
                }
13393
                iprot.readListEnd();
14094
                iprot.readListEnd();
13394
              }
14095
              }
13395
            } else { 
14096
            } else { 
13396
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 13410... Line 14111...
13410
 
14111
 
13411
      if (this.isSetSuccess()) {
14112
      if (this.isSetSuccess()) {
13412
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14113
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13413
        {
14114
        {
13414
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14115
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13415
          for (Invoice _iter27 : this.success)
14116
          for (Invoice _iter31 : this.success)
13416
          {
14117
          {
13417
            _iter27.write(oprot);
14118
            _iter31.write(oprot);
13418
          }
14119
          }
13419
          oprot.writeListEnd();
14120
          oprot.writeListEnd();
13420
        }
14121
        }
13421
        oprot.writeFieldEnd();
14122
        oprot.writeFieldEnd();
13422
      }
14123
      }
Line 14170... Line 14871...
14170
        }
14871
        }
14171
        switch (field.id) {
14872
        switch (field.id) {
14172
          case 0: // SUCCESS
14873
          case 0: // SUCCESS
14173
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14874
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14174
              {
14875
              {
14175
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
14876
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
14176
                this.success = new ArrayList<Invoice>(_list28.size);
14877
                this.success = new ArrayList<Invoice>(_list32.size);
14177
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
14878
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
14178
                {
14879
                {
14179
                  Invoice _elem30; // required
14880
                  Invoice _elem34; // required
14180
                  _elem30 = new Invoice();
14881
                  _elem34 = new Invoice();
14181
                  _elem30.read(iprot);
14882
                  _elem34.read(iprot);
14182
                  this.success.add(_elem30);
14883
                  this.success.add(_elem34);
14183
                }
14884
                }
14184
                iprot.readListEnd();
14885
                iprot.readListEnd();
14185
              }
14886
              }
14186
            } else { 
14887
            } else { 
14187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 14201... Line 14902...
14201
 
14902
 
14202
      if (this.isSetSuccess()) {
14903
      if (this.isSetSuccess()) {
14203
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14904
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14204
        {
14905
        {
14205
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14906
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14206
          for (Invoice _iter31 : this.success)
14907
          for (Invoice _iter35 : this.success)
14207
          {
14908
          {
14208
            _iter31.write(oprot);
14909
            _iter35.write(oprot);
14209
          }
14910
          }
14210
          oprot.writeListEnd();
14911
          oprot.writeListEnd();
14211
        }
14912
        }
14212
        oprot.writeFieldEnd();
14913
        oprot.writeFieldEnd();
14213
      }
14914
      }
Line 17454... Line 18155...
17454
        }
18155
        }
17455
        switch (field.id) {
18156
        switch (field.id) {
17456
          case 0: // SUCCESS
18157
          case 0: // SUCCESS
17457
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18158
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17458
              {
18159
              {
17459
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
18160
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
17460
                this.success = new ArrayList<PurchaseReturn>(_list32.size);
18161
                this.success = new ArrayList<PurchaseReturn>(_list36.size);
17461
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
18162
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
17462
                {
18163
                {
17463
                  PurchaseReturn _elem34; // required
18164
                  PurchaseReturn _elem38; // required
17464
                  _elem34 = new PurchaseReturn();
18165
                  _elem38 = new PurchaseReturn();
17465
                  _elem34.read(iprot);
18166
                  _elem38.read(iprot);
17466
                  this.success.add(_elem34);
18167
                  this.success.add(_elem38);
17467
                }
18168
                }
17468
                iprot.readListEnd();
18169
                iprot.readListEnd();
17469
              }
18170
              }
17470
            } else { 
18171
            } else { 
17471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18172
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 17485... Line 18186...
17485
 
18186
 
17486
      if (this.isSetSuccess()) {
18187
      if (this.isSetSuccess()) {
17487
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18188
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17488
        {
18189
        {
17489
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18190
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17490
          for (PurchaseReturn _iter35 : this.success)
18191
          for (PurchaseReturn _iter39 : this.success)
17491
          {
18192
          {
17492
            _iter35.write(oprot);
18193
            _iter39.write(oprot);
17493
          }
18194
          }
17494
          oprot.writeListEnd();
18195
          oprot.writeListEnd();
17495
        }
18196
        }
17496
        oprot.writeFieldEnd();
18197
        oprot.writeFieldEnd();
17497
      }
18198
      }
Line 18165... Line 18866...
18165
        }
18866
        }
18166
        switch (field.id) {
18867
        switch (field.id) {
18167
          case 0: // SUCCESS
18868
          case 0: // SUCCESS
18168
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18869
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18169
              {
18870
              {
18170
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
18871
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
18171
                this.success = new ArrayList<PurchaseReturn>(_list36.size);
18872
                this.success = new ArrayList<PurchaseReturn>(_list40.size);
18172
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
18873
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
18173
                {
18874
                {
18174
                  PurchaseReturn _elem38; // required
18875
                  PurchaseReturn _elem42; // required
18175
                  _elem38 = new PurchaseReturn();
18876
                  _elem42 = new PurchaseReturn();
18176
                  _elem38.read(iprot);
18877
                  _elem42.read(iprot);
18177
                  this.success.add(_elem38);
18878
                  this.success.add(_elem42);
18178
                }
18879
                }
18179
                iprot.readListEnd();
18880
                iprot.readListEnd();
18180
              }
18881
              }
18181
            } else { 
18882
            } else { 
18182
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 18196... Line 18897...
18196
 
18897
 
18197
      if (this.isSetSuccess()) {
18898
      if (this.isSetSuccess()) {
18198
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18899
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18199
        {
18900
        {
18200
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18901
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18201
          for (PurchaseReturn _iter39 : this.success)
18902
          for (PurchaseReturn _iter43 : this.success)
18202
          {
18903
          {
18203
            _iter39.write(oprot);
18904
            _iter43.write(oprot);
18204
          }
18905
          }
18205
          oprot.writeListEnd();
18906
          oprot.writeListEnd();
18206
        }
18907
        }
18207
        oprot.writeFieldEnd();
18908
        oprot.writeFieldEnd();
18208
      }
18909
      }
Line 24601... Line 25302...
24601
        }
25302
        }
24602
        switch (field.id) {
25303
        switch (field.id) {
24603
          case 0: // SUCCESS
25304
          case 0: // SUCCESS
24604
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25305
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24605
              {
25306
              {
24606
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
25307
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
24607
                this.success = new ArrayList<PurchaseReturnSettlement>(_list40.size);
25308
                this.success = new ArrayList<PurchaseReturnSettlement>(_list44.size);
24608
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
25309
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
24609
                {
25310
                {
24610
                  PurchaseReturnSettlement _elem42; // required
25311
                  PurchaseReturnSettlement _elem46; // required
24611
                  _elem42 = new PurchaseReturnSettlement();
25312
                  _elem46 = new PurchaseReturnSettlement();
24612
                  _elem42.read(iprot);
25313
                  _elem46.read(iprot);
24613
                  this.success.add(_elem42);
25314
                  this.success.add(_elem46);
24614
                }
25315
                }
24615
                iprot.readListEnd();
25316
                iprot.readListEnd();
24616
              }
25317
              }
24617
            } else { 
25318
            } else { 
24618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24640... Line 25341...
24640
 
25341
 
24641
      if (this.isSetSuccess()) {
25342
      if (this.isSetSuccess()) {
24642
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25343
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24643
        {
25344
        {
24644
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25345
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24645
          for (PurchaseReturnSettlement _iter43 : this.success)
25346
          for (PurchaseReturnSettlement _iter47 : this.success)
24646
          {
25347
          {
24647
            _iter43.write(oprot);
25348
            _iter47.write(oprot);
24648
          }
25349
          }
24649
          oprot.writeListEnd();
25350
          oprot.writeListEnd();
24650
        }
25351
        }
24651
        oprot.writeFieldEnd();
25352
        oprot.writeFieldEnd();
24652
      } else if (this.isSetE()) {
25353
      } else if (this.isSetE()) {