Subversion Repositories SmartDukaan

Rev

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

Rev 6762 Rev 7410
Line 136... Line 136...
136
     * @param date
136
     * @param date
137
     */
137
     */
138
    public List<Invoice> getInvoices(long date) throws org.apache.thrift.TException;
138
    public List<Invoice> getInvoices(long date) throws org.apache.thrift.TException;
139
 
139
 
140
    /**
140
    /**
-
 
141
     * Fetches all invoices after a given date
-
 
142
     * 
-
 
143
     * @param warehouseId
-
 
144
     * @param supplierId
-
 
145
     * @param date
-
 
146
     */
-
 
147
    public List<Invoice> getInvoicesForWarehouse(long warehouseId, long supplierId, long date) throws org.apache.thrift.TException;
-
 
148
 
-
 
149
    /**
141
     * Creates an invoice object
150
     * Creates an invoice object
142
     * 
151
     * 
143
     * @param invoice
152
     * @param invoice
144
     */
153
     */
145
    public void createInvoice(Invoice invoice) throws PurchaseServiceException, org.apache.thrift.TException;
154
    public void createInvoice(Invoice invoice) throws PurchaseServiceException, org.apache.thrift.TException;
Line 195... Line 204...
195
     */
204
     */
196
    public long createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId) throws org.apache.thrift.TException;
205
    public long createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId) throws org.apache.thrift.TException;
197
 
206
 
198
    public void fulfillPOForExtBilling(long itemId, long quantity) throws org.apache.thrift.TException;
207
    public void fulfillPOForExtBilling(long itemId, long quantity) throws org.apache.thrift.TException;
199
 
208
 
-
 
209
    /**
-
 
210
     * Marks a purchase order as closedcomplete and updates the receivedOn time.
-
 
211
     * 
-
 
212
     * @param poId
-
 
213
     */
-
 
214
    public void closePO(long poId) throws PurchaseServiceException, org.apache.thrift.TException;
-
 
215
 
-
 
216
    /**
-
 
217
     * Check if invoice is already received with given supplierId and invoiceNumber
-
 
218
     * 
-
 
219
     * @param invoiceNumber
-
 
220
     * @param supplierId
-
 
221
     */
-
 
222
    public boolean isInvoiceReceived(String invoiceNumber, long supplierId) throws org.apache.thrift.TException;
-
 
223
 
200
  }
224
  }
201
 
225
 
202
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
226
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
203
 
227
 
204
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
228
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
Line 229... Line 253...
229
 
253
 
230
    public void unFulfillPO(long purchaseId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unFulfillPO_call> resultHandler) throws org.apache.thrift.TException;
254
    public void unFulfillPO(long purchaseId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unFulfillPO_call> resultHandler) throws org.apache.thrift.TException;
231
 
255
 
232
    public void getInvoices(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoices_call> resultHandler) throws org.apache.thrift.TException;
256
    public void getInvoices(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoices_call> resultHandler) throws org.apache.thrift.TException;
233
 
257
 
-
 
258
    public void getInvoicesForWarehouse(long warehouseId, long supplierId, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoicesForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
-
 
259
 
234
    public void createInvoice(Invoice invoice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createInvoice_call> resultHandler) throws org.apache.thrift.TException;
260
    public void createInvoice(Invoice invoice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createInvoice_call> resultHandler) throws org.apache.thrift.TException;
235
 
261
 
236
    public void addSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSupplier_call> resultHandler) throws org.apache.thrift.TException;
262
    public void addSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSupplier_call> resultHandler) throws org.apache.thrift.TException;
237
 
263
 
238
    public void updateSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSupplier_call> resultHandler) throws org.apache.thrift.TException;
264
    public void updateSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSupplier_call> resultHandler) throws org.apache.thrift.TException;
Line 247... Line 273...
247
 
273
 
248
    public void createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseForOurExtBilling_call> resultHandler) throws org.apache.thrift.TException;
274
    public void createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseForOurExtBilling_call> resultHandler) throws org.apache.thrift.TException;
249
 
275
 
250
    public void fulfillPOForExtBilling(long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fulfillPOForExtBilling_call> resultHandler) throws org.apache.thrift.TException;
276
    public void fulfillPOForExtBilling(long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fulfillPOForExtBilling_call> resultHandler) throws org.apache.thrift.TException;
251
 
277
 
-
 
278
    public void closePO(long poId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closePO_call> resultHandler) throws org.apache.thrift.TException;
-
 
279
 
-
 
280
    public void isInvoiceReceived(String invoiceNumber, long supplierId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isInvoiceReceived_call> resultHandler) throws org.apache.thrift.TException;
-
 
281
 
252
  }
282
  }
253
 
283
 
254
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
284
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
255
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
285
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
256
      public Factory() {}
286
      public Factory() {}
Line 650... Line 680...
650
        return result.success;
680
        return result.success;
651
      }
681
      }
652
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInvoices failed: unknown result");
682
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInvoices failed: unknown result");
653
    }
683
    }
654
 
684
 
-
 
685
    public List<Invoice> getInvoicesForWarehouse(long warehouseId, long supplierId, long date) throws org.apache.thrift.TException
-
 
686
    {
-
 
687
      send_getInvoicesForWarehouse(warehouseId, supplierId, date);
-
 
688
      return recv_getInvoicesForWarehouse();
-
 
689
    }
-
 
690
 
-
 
691
    public void send_getInvoicesForWarehouse(long warehouseId, long supplierId, long date) throws org.apache.thrift.TException
-
 
692
    {
-
 
693
      getInvoicesForWarehouse_args args = new getInvoicesForWarehouse_args();
-
 
694
      args.setWarehouseId(warehouseId);
-
 
695
      args.setSupplierId(supplierId);
-
 
696
      args.setDate(date);
-
 
697
      sendBase("getInvoicesForWarehouse", args);
-
 
698
    }
-
 
699
 
-
 
700
    public List<Invoice> recv_getInvoicesForWarehouse() throws org.apache.thrift.TException
-
 
701
    {
-
 
702
      getInvoicesForWarehouse_result result = new getInvoicesForWarehouse_result();
-
 
703
      receiveBase(result, "getInvoicesForWarehouse");
-
 
704
      if (result.isSetSuccess()) {
-
 
705
        return result.success;
-
 
706
      }
-
 
707
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInvoicesForWarehouse failed: unknown result");
-
 
708
    }
-
 
709
 
655
    public void createInvoice(Invoice invoice) throws PurchaseServiceException, org.apache.thrift.TException
710
    public void createInvoice(Invoice invoice) throws PurchaseServiceException, org.apache.thrift.TException
656
    {
711
    {
657
      send_createInvoice(invoice);
712
      send_createInvoice(invoice);
658
      recv_createInvoice();
713
      recv_createInvoice();
659
    }
714
    }
Line 851... Line 906...
851
      fulfillPOForExtBilling_result result = new fulfillPOForExtBilling_result();
906
      fulfillPOForExtBilling_result result = new fulfillPOForExtBilling_result();
852
      receiveBase(result, "fulfillPOForExtBilling");
907
      receiveBase(result, "fulfillPOForExtBilling");
853
      return;
908
      return;
854
    }
909
    }
855
 
910
 
-
 
911
    public void closePO(long poId) throws PurchaseServiceException, org.apache.thrift.TException
-
 
912
    {
-
 
913
      send_closePO(poId);
-
 
914
      recv_closePO();
-
 
915
    }
-
 
916
 
-
 
917
    public void send_closePO(long poId) throws org.apache.thrift.TException
-
 
918
    {
-
 
919
      closePO_args args = new closePO_args();
-
 
920
      args.setPoId(poId);
-
 
921
      sendBase("closePO", args);
-
 
922
    }
-
 
923
 
-
 
924
    public void recv_closePO() throws PurchaseServiceException, org.apache.thrift.TException
-
 
925
    {
-
 
926
      closePO_result result = new closePO_result();
-
 
927
      receiveBase(result, "closePO");
-
 
928
      if (result.e != null) {
-
 
929
        throw result.e;
-
 
930
      }
-
 
931
      return;
-
 
932
    }
-
 
933
 
-
 
934
    public boolean isInvoiceReceived(String invoiceNumber, long supplierId) throws org.apache.thrift.TException
-
 
935
    {
-
 
936
      send_isInvoiceReceived(invoiceNumber, supplierId);
-
 
937
      return recv_isInvoiceReceived();
-
 
938
    }
-
 
939
 
-
 
940
    public void send_isInvoiceReceived(String invoiceNumber, long supplierId) throws org.apache.thrift.TException
-
 
941
    {
-
 
942
      isInvoiceReceived_args args = new isInvoiceReceived_args();
-
 
943
      args.setInvoiceNumber(invoiceNumber);
-
 
944
      args.setSupplierId(supplierId);
-
 
945
      sendBase("isInvoiceReceived", args);
-
 
946
    }
-
 
947
 
-
 
948
    public boolean recv_isInvoiceReceived() throws org.apache.thrift.TException
-
 
949
    {
-
 
950
      isInvoiceReceived_result result = new isInvoiceReceived_result();
-
 
951
      receiveBase(result, "isInvoiceReceived");
-
 
952
      if (result.isSetSuccess()) {
-
 
953
        return result.success;
-
 
954
      }
-
 
955
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isInvoiceReceived failed: unknown result");
-
 
956
    }
-
 
957
 
856
  }
958
  }
857
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
959
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
858
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
960
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
859
      private org.apache.thrift.async.TAsyncClientManager clientManager;
961
      private org.apache.thrift.async.TAsyncClientManager clientManager;
860
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
962
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1367... Line 1469...
1367
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1469
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1368
        return (new Client(prot)).recv_getInvoices();
1470
        return (new Client(prot)).recv_getInvoices();
1369
      }
1471
      }
1370
    }
1472
    }
1371
 
1473
 
-
 
1474
    public void getInvoicesForWarehouse(long warehouseId, long supplierId, long date, org.apache.thrift.async.AsyncMethodCallback<getInvoicesForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
-
 
1475
      checkReady();
-
 
1476
      getInvoicesForWarehouse_call method_call = new getInvoicesForWarehouse_call(warehouseId, supplierId, date, resultHandler, this, ___protocolFactory, ___transport);
-
 
1477
      this.___currentMethod = method_call;
-
 
1478
      ___manager.call(method_call);
-
 
1479
    }
-
 
1480
 
-
 
1481
    public static class getInvoicesForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1482
      private long warehouseId;
-
 
1483
      private long supplierId;
-
 
1484
      private long date;
-
 
1485
      public getInvoicesForWarehouse_call(long warehouseId, long supplierId, long date, org.apache.thrift.async.AsyncMethodCallback<getInvoicesForWarehouse_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 {
-
 
1486
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1487
        this.warehouseId = warehouseId;
-
 
1488
        this.supplierId = supplierId;
-
 
1489
        this.date = date;
-
 
1490
      }
-
 
1491
 
-
 
1492
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1493
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInvoicesForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1494
        getInvoicesForWarehouse_args args = new getInvoicesForWarehouse_args();
-
 
1495
        args.setWarehouseId(warehouseId);
-
 
1496
        args.setSupplierId(supplierId);
-
 
1497
        args.setDate(date);
-
 
1498
        args.write(prot);
-
 
1499
        prot.writeMessageEnd();
-
 
1500
      }
-
 
1501
 
-
 
1502
      public List<Invoice> getResult() throws org.apache.thrift.TException {
-
 
1503
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1504
          throw new IllegalStateException("Method call not finished!");
-
 
1505
        }
-
 
1506
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1507
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1508
        return (new Client(prot)).recv_getInvoicesForWarehouse();
-
 
1509
      }
-
 
1510
    }
-
 
1511
 
1372
    public void createInvoice(Invoice invoice, org.apache.thrift.async.AsyncMethodCallback<createInvoice_call> resultHandler) throws org.apache.thrift.TException {
1512
    public void createInvoice(Invoice invoice, org.apache.thrift.async.AsyncMethodCallback<createInvoice_call> resultHandler) throws org.apache.thrift.TException {
1373
      checkReady();
1513
      checkReady();
1374
      createInvoice_call method_call = new createInvoice_call(invoice, resultHandler, this, ___protocolFactory, ___transport);
1514
      createInvoice_call method_call = new createInvoice_call(invoice, resultHandler, this, ___protocolFactory, ___transport);
1375
      this.___currentMethod = method_call;
1515
      this.___currentMethod = method_call;
1376
      ___manager.call(method_call);
1516
      ___manager.call(method_call);
Line 1664... Line 1804...
1664
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1665
        (new Client(prot)).recv_fulfillPOForExtBilling();
1805
        (new Client(prot)).recv_fulfillPOForExtBilling();
1666
      }
1806
      }
1667
    }
1807
    }
1668
 
1808
 
-
 
1809
    public void closePO(long poId, org.apache.thrift.async.AsyncMethodCallback<closePO_call> resultHandler) throws org.apache.thrift.TException {
-
 
1810
      checkReady();
-
 
1811
      closePO_call method_call = new closePO_call(poId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1812
      this.___currentMethod = method_call;
-
 
1813
      ___manager.call(method_call);
-
 
1814
    }
-
 
1815
 
-
 
1816
    public static class closePO_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1817
      private long poId;
-
 
1818
      public closePO_call(long poId, org.apache.thrift.async.AsyncMethodCallback<closePO_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 {
-
 
1819
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1820
        this.poId = poId;
-
 
1821
      }
-
 
1822
 
-
 
1823
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1824
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closePO", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1825
        closePO_args args = new closePO_args();
-
 
1826
        args.setPoId(poId);
-
 
1827
        args.write(prot);
-
 
1828
        prot.writeMessageEnd();
-
 
1829
      }
-
 
1830
 
-
 
1831
      public void getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
1832
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1833
          throw new IllegalStateException("Method call not finished!");
-
 
1834
        }
-
 
1835
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1836
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1837
        (new Client(prot)).recv_closePO();
-
 
1838
      }
-
 
1839
    }
-
 
1840
 
-
 
1841
    public void isInvoiceReceived(String invoiceNumber, long supplierId, org.apache.thrift.async.AsyncMethodCallback<isInvoiceReceived_call> resultHandler) throws org.apache.thrift.TException {
-
 
1842
      checkReady();
-
 
1843
      isInvoiceReceived_call method_call = new isInvoiceReceived_call(invoiceNumber, supplierId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1844
      this.___currentMethod = method_call;
-
 
1845
      ___manager.call(method_call);
-
 
1846
    }
-
 
1847
 
-
 
1848
    public static class isInvoiceReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1849
      private String invoiceNumber;
-
 
1850
      private long supplierId;
-
 
1851
      public isInvoiceReceived_call(String invoiceNumber, long supplierId, org.apache.thrift.async.AsyncMethodCallback<isInvoiceReceived_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 {
-
 
1852
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1853
        this.invoiceNumber = invoiceNumber;
-
 
1854
        this.supplierId = supplierId;
-
 
1855
      }
-
 
1856
 
-
 
1857
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1858
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isInvoiceReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1859
        isInvoiceReceived_args args = new isInvoiceReceived_args();
-
 
1860
        args.setInvoiceNumber(invoiceNumber);
-
 
1861
        args.setSupplierId(supplierId);
-
 
1862
        args.write(prot);
-
 
1863
        prot.writeMessageEnd();
-
 
1864
      }
-
 
1865
 
-
 
1866
      public boolean getResult() throws org.apache.thrift.TException {
-
 
1867
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1868
          throw new IllegalStateException("Method call not finished!");
-
 
1869
        }
-
 
1870
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1871
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1872
        return (new Client(prot)).recv_isInvoiceReceived();
-
 
1873
      }
-
 
1874
    }
-
 
1875
 
1669
  }
1876
  }
1670
 
1877
 
1671
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1878
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1672
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1879
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1673
    public Processor(I iface) {
1880
    public Processor(I iface) {
Line 1692... Line 1899...
1692
      processMap.put("getSuppliers", new getSuppliers());
1899
      processMap.put("getSuppliers", new getSuppliers());
1693
      processMap.put("fulfillPO", new fulfillPO());
1900
      processMap.put("fulfillPO", new fulfillPO());
1694
      processMap.put("updatePurchaseOrder", new updatePurchaseOrder());
1901
      processMap.put("updatePurchaseOrder", new updatePurchaseOrder());
1695
      processMap.put("unFulfillPO", new unFulfillPO());
1902
      processMap.put("unFulfillPO", new unFulfillPO());
1696
      processMap.put("getInvoices", new getInvoices());
1903
      processMap.put("getInvoices", new getInvoices());
-
 
1904
      processMap.put("getInvoicesForWarehouse", new getInvoicesForWarehouse());
1697
      processMap.put("createInvoice", new createInvoice());
1905
      processMap.put("createInvoice", new createInvoice());
1698
      processMap.put("addSupplier", new addSupplier());
1906
      processMap.put("addSupplier", new addSupplier());
1699
      processMap.put("updateSupplier", new updateSupplier());
1907
      processMap.put("updateSupplier", new updateSupplier());
1700
      processMap.put("createPurchaseReturn", new createPurchaseReturn());
1908
      processMap.put("createPurchaseReturn", new createPurchaseReturn());
1701
      processMap.put("settlePurchaseReturn", new settlePurchaseReturn());
1909
      processMap.put("settlePurchaseReturn", new settlePurchaseReturn());
1702
      processMap.put("getUnsettledPurchaseReturns", new getUnsettledPurchaseReturns());
1910
      processMap.put("getUnsettledPurchaseReturns", new getUnsettledPurchaseReturns());
1703
      processMap.put("getInvoice", new getInvoice());
1911
      processMap.put("getInvoice", new getInvoice());
1704
      processMap.put("createPurchaseForOurExtBilling", new createPurchaseForOurExtBilling());
1912
      processMap.put("createPurchaseForOurExtBilling", new createPurchaseForOurExtBilling());
1705
      processMap.put("fulfillPOForExtBilling", new fulfillPOForExtBilling());
1913
      processMap.put("fulfillPOForExtBilling", new fulfillPOForExtBilling());
-
 
1914
      processMap.put("closePO", new closePO());
-
 
1915
      processMap.put("isInvoiceReceived", new isInvoiceReceived());
1706
      return processMap;
1916
      return processMap;
1707
    }
1917
    }
1708
 
1918
 
1709
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1919
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1710
      public createPurchaseOrder() {
1920
      public createPurchaseOrder() {
Line 1999... Line 2209...
1999
        result.success = iface.getInvoices(args.date);
2209
        result.success = iface.getInvoices(args.date);
2000
        return result;
2210
        return result;
2001
      }
2211
      }
2002
    }
2212
    }
2003
 
2213
 
-
 
2214
    private static class getInvoicesForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInvoicesForWarehouse_args> {
-
 
2215
      public getInvoicesForWarehouse() {
-
 
2216
        super("getInvoicesForWarehouse");
-
 
2217
      }
-
 
2218
 
-
 
2219
      protected getInvoicesForWarehouse_args getEmptyArgsInstance() {
-
 
2220
        return new getInvoicesForWarehouse_args();
-
 
2221
      }
-
 
2222
 
-
 
2223
      protected getInvoicesForWarehouse_result getResult(I iface, getInvoicesForWarehouse_args args) throws org.apache.thrift.TException {
-
 
2224
        getInvoicesForWarehouse_result result = new getInvoicesForWarehouse_result();
-
 
2225
        result.success = iface.getInvoicesForWarehouse(args.warehouseId, args.supplierId, args.date);
-
 
2226
        return result;
-
 
2227
      }
-
 
2228
    }
-
 
2229
 
2004
    private static class createInvoice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createInvoice_args> {
2230
    private static class createInvoice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createInvoice_args> {
2005
      public createInvoice() {
2231
      public createInvoice() {
2006
        super("createInvoice");
2232
        super("createInvoice");
2007
      }
2233
      }
2008
 
2234
 
Line 2149... Line 2375...
2149
        iface.fulfillPOForExtBilling(args.itemId, args.quantity);
2375
        iface.fulfillPOForExtBilling(args.itemId, args.quantity);
2150
        return result;
2376
        return result;
2151
      }
2377
      }
2152
    }
2378
    }
2153
 
2379
 
-
 
2380
    private static class closePO<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closePO_args> {
-
 
2381
      public closePO() {
-
 
2382
        super("closePO");
-
 
2383
      }
-
 
2384
 
-
 
2385
      protected closePO_args getEmptyArgsInstance() {
-
 
2386
        return new closePO_args();
-
 
2387
      }
-
 
2388
 
-
 
2389
      protected closePO_result getResult(I iface, closePO_args args) throws org.apache.thrift.TException {
-
 
2390
        closePO_result result = new closePO_result();
-
 
2391
        try {
-
 
2392
          iface.closePO(args.poId);
-
 
2393
        } catch (PurchaseServiceException e) {
-
 
2394
          result.e = e;
-
 
2395
        }
-
 
2396
        return result;
-
 
2397
      }
-
 
2398
    }
-
 
2399
 
-
 
2400
    private static class isInvoiceReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isInvoiceReceived_args> {
-
 
2401
      public isInvoiceReceived() {
-
 
2402
        super("isInvoiceReceived");
-
 
2403
      }
-
 
2404
 
-
 
2405
      protected isInvoiceReceived_args getEmptyArgsInstance() {
-
 
2406
        return new isInvoiceReceived_args();
-
 
2407
      }
-
 
2408
 
-
 
2409
      protected isInvoiceReceived_result getResult(I iface, isInvoiceReceived_args args) throws org.apache.thrift.TException {
-
 
2410
        isInvoiceReceived_result result = new isInvoiceReceived_result();
-
 
2411
        result.success = iface.isInvoiceReceived(args.invoiceNumber, args.supplierId);
-
 
2412
        result.setSuccessIsSet(true);
-
 
2413
        return result;
-
 
2414
      }
-
 
2415
    }
-
 
2416
 
2154
  }
2417
  }
2155
 
2418
 
2156
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
2419
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
2157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
2420
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
2158
 
2421
 
Line 12568... Line 12831...
12568
      }
12831
      }
12569
    }
12832
    }
12570
 
12833
 
12571
  }
12834
  }
12572
 
12835
 
-
 
12836
  public static class getInvoicesForWarehouse_args implements org.apache.thrift.TBase<getInvoicesForWarehouse_args, getInvoicesForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
-
 
12837
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInvoicesForWarehouse_args");
-
 
12838
 
-
 
12839
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
12840
    private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
12841
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
12842
 
-
 
12843
    private long warehouseId; // required
-
 
12844
    private long supplierId; // required
-
 
12845
    private long date; // required
-
 
12846
 
-
 
12847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12849
      WAREHOUSE_ID((short)1, "warehouseId"),
-
 
12850
      SUPPLIER_ID((short)2, "supplierId"),
-
 
12851
      DATE((short)3, "date");
-
 
12852
 
-
 
12853
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12854
 
-
 
12855
      static {
-
 
12856
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12857
          byName.put(field.getFieldName(), field);
-
 
12858
        }
-
 
12859
      }
-
 
12860
 
-
 
12861
      /**
-
 
12862
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12863
       */
-
 
12864
      public static _Fields findByThriftId(int fieldId) {
-
 
12865
        switch(fieldId) {
-
 
12866
          case 1: // WAREHOUSE_ID
-
 
12867
            return WAREHOUSE_ID;
-
 
12868
          case 2: // SUPPLIER_ID
-
 
12869
            return SUPPLIER_ID;
-
 
12870
          case 3: // DATE
-
 
12871
            return DATE;
-
 
12872
          default:
-
 
12873
            return null;
-
 
12874
        }
-
 
12875
      }
-
 
12876
 
-
 
12877
      /**
-
 
12878
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12879
       * if it is not found.
-
 
12880
       */
-
 
12881
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12882
        _Fields fields = findByThriftId(fieldId);
-
 
12883
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12884
        return fields;
-
 
12885
      }
-
 
12886
 
-
 
12887
      /**
-
 
12888
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12889
       */
-
 
12890
      public static _Fields findByName(String name) {
-
 
12891
        return byName.get(name);
-
 
12892
      }
-
 
12893
 
-
 
12894
      private final short _thriftId;
-
 
12895
      private final String _fieldName;
-
 
12896
 
-
 
12897
      _Fields(short thriftId, String fieldName) {
-
 
12898
        _thriftId = thriftId;
-
 
12899
        _fieldName = fieldName;
-
 
12900
      }
-
 
12901
 
-
 
12902
      public short getThriftFieldId() {
-
 
12903
        return _thriftId;
-
 
12904
      }
-
 
12905
 
-
 
12906
      public String getFieldName() {
-
 
12907
        return _fieldName;
-
 
12908
      }
-
 
12909
    }
-
 
12910
 
-
 
12911
    // isset id assignments
-
 
12912
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
12913
    private static final int __SUPPLIERID_ISSET_ID = 1;
-
 
12914
    private static final int __DATE_ISSET_ID = 2;
-
 
12915
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
12916
 
-
 
12917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12918
    static {
-
 
12919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12920
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12922
      tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12924
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12925
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12926
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12927
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInvoicesForWarehouse_args.class, metaDataMap);
-
 
12928
    }
-
 
12929
 
-
 
12930
    public getInvoicesForWarehouse_args() {
-
 
12931
    }
-
 
12932
 
-
 
12933
    public getInvoicesForWarehouse_args(
-
 
12934
      long warehouseId,
-
 
12935
      long supplierId,
-
 
12936
      long date)
-
 
12937
    {
-
 
12938
      this();
-
 
12939
      this.warehouseId = warehouseId;
-
 
12940
      setWarehouseIdIsSet(true);
-
 
12941
      this.supplierId = supplierId;
-
 
12942
      setSupplierIdIsSet(true);
-
 
12943
      this.date = date;
-
 
12944
      setDateIsSet(true);
-
 
12945
    }
-
 
12946
 
-
 
12947
    /**
-
 
12948
     * Performs a deep copy on <i>other</i>.
-
 
12949
     */
-
 
12950
    public getInvoicesForWarehouse_args(getInvoicesForWarehouse_args other) {
-
 
12951
      __isset_bit_vector.clear();
-
 
12952
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
12953
      this.warehouseId = other.warehouseId;
-
 
12954
      this.supplierId = other.supplierId;
-
 
12955
      this.date = other.date;
-
 
12956
    }
-
 
12957
 
-
 
12958
    public getInvoicesForWarehouse_args deepCopy() {
-
 
12959
      return new getInvoicesForWarehouse_args(this);
-
 
12960
    }
-
 
12961
 
-
 
12962
    @Override
-
 
12963
    public void clear() {
-
 
12964
      setWarehouseIdIsSet(false);
-
 
12965
      this.warehouseId = 0;
-
 
12966
      setSupplierIdIsSet(false);
-
 
12967
      this.supplierId = 0;
-
 
12968
      setDateIsSet(false);
-
 
12969
      this.date = 0;
-
 
12970
    }
-
 
12971
 
-
 
12972
    public long getWarehouseId() {
-
 
12973
      return this.warehouseId;
-
 
12974
    }
-
 
12975
 
-
 
12976
    public void setWarehouseId(long warehouseId) {
-
 
12977
      this.warehouseId = warehouseId;
-
 
12978
      setWarehouseIdIsSet(true);
-
 
12979
    }
-
 
12980
 
-
 
12981
    public void unsetWarehouseId() {
-
 
12982
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
12983
    }
-
 
12984
 
-
 
12985
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
12986
    public boolean isSetWarehouseId() {
-
 
12987
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
12988
    }
-
 
12989
 
-
 
12990
    public void setWarehouseIdIsSet(boolean value) {
-
 
12991
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
12992
    }
-
 
12993
 
-
 
12994
    public long getSupplierId() {
-
 
12995
      return this.supplierId;
-
 
12996
    }
-
 
12997
 
-
 
12998
    public void setSupplierId(long supplierId) {
-
 
12999
      this.supplierId = supplierId;
-
 
13000
      setSupplierIdIsSet(true);
-
 
13001
    }
-
 
13002
 
-
 
13003
    public void unsetSupplierId() {
-
 
13004
      __isset_bit_vector.clear(__SUPPLIERID_ISSET_ID);
-
 
13005
    }
-
 
13006
 
-
 
13007
    /** Returns true if field supplierId is set (has been assigned a value) and false otherwise */
-
 
13008
    public boolean isSetSupplierId() {
-
 
13009
      return __isset_bit_vector.get(__SUPPLIERID_ISSET_ID);
-
 
13010
    }
-
 
13011
 
-
 
13012
    public void setSupplierIdIsSet(boolean value) {
-
 
13013
      __isset_bit_vector.set(__SUPPLIERID_ISSET_ID, value);
-
 
13014
    }
-
 
13015
 
-
 
13016
    public long getDate() {
-
 
13017
      return this.date;
-
 
13018
    }
-
 
13019
 
-
 
13020
    public void setDate(long date) {
-
 
13021
      this.date = date;
-
 
13022
      setDateIsSet(true);
-
 
13023
    }
-
 
13024
 
-
 
13025
    public void unsetDate() {
-
 
13026
      __isset_bit_vector.clear(__DATE_ISSET_ID);
-
 
13027
    }
-
 
13028
 
-
 
13029
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
-
 
13030
    public boolean isSetDate() {
-
 
13031
      return __isset_bit_vector.get(__DATE_ISSET_ID);
-
 
13032
    }
-
 
13033
 
-
 
13034
    public void setDateIsSet(boolean value) {
-
 
13035
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
-
 
13036
    }
-
 
13037
 
-
 
13038
    public void setFieldValue(_Fields field, Object value) {
-
 
13039
      switch (field) {
-
 
13040
      case WAREHOUSE_ID:
-
 
13041
        if (value == null) {
-
 
13042
          unsetWarehouseId();
-
 
13043
        } else {
-
 
13044
          setWarehouseId((Long)value);
-
 
13045
        }
-
 
13046
        break;
-
 
13047
 
-
 
13048
      case SUPPLIER_ID:
-
 
13049
        if (value == null) {
-
 
13050
          unsetSupplierId();
-
 
13051
        } else {
-
 
13052
          setSupplierId((Long)value);
-
 
13053
        }
-
 
13054
        break;
-
 
13055
 
-
 
13056
      case DATE:
-
 
13057
        if (value == null) {
-
 
13058
          unsetDate();
-
 
13059
        } else {
-
 
13060
          setDate((Long)value);
-
 
13061
        }
-
 
13062
        break;
-
 
13063
 
-
 
13064
      }
-
 
13065
    }
-
 
13066
 
-
 
13067
    public Object getFieldValue(_Fields field) {
-
 
13068
      switch (field) {
-
 
13069
      case WAREHOUSE_ID:
-
 
13070
        return Long.valueOf(getWarehouseId());
-
 
13071
 
-
 
13072
      case SUPPLIER_ID:
-
 
13073
        return Long.valueOf(getSupplierId());
-
 
13074
 
-
 
13075
      case DATE:
-
 
13076
        return Long.valueOf(getDate());
-
 
13077
 
-
 
13078
      }
-
 
13079
      throw new IllegalStateException();
-
 
13080
    }
-
 
13081
 
-
 
13082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13083
    public boolean isSet(_Fields field) {
-
 
13084
      if (field == null) {
-
 
13085
        throw new IllegalArgumentException();
-
 
13086
      }
-
 
13087
 
-
 
13088
      switch (field) {
-
 
13089
      case WAREHOUSE_ID:
-
 
13090
        return isSetWarehouseId();
-
 
13091
      case SUPPLIER_ID:
-
 
13092
        return isSetSupplierId();
-
 
13093
      case DATE:
-
 
13094
        return isSetDate();
-
 
13095
      }
-
 
13096
      throw new IllegalStateException();
-
 
13097
    }
-
 
13098
 
-
 
13099
    @Override
-
 
13100
    public boolean equals(Object that) {
-
 
13101
      if (that == null)
-
 
13102
        return false;
-
 
13103
      if (that instanceof getInvoicesForWarehouse_args)
-
 
13104
        return this.equals((getInvoicesForWarehouse_args)that);
-
 
13105
      return false;
-
 
13106
    }
-
 
13107
 
-
 
13108
    public boolean equals(getInvoicesForWarehouse_args that) {
-
 
13109
      if (that == null)
-
 
13110
        return false;
-
 
13111
 
-
 
13112
      boolean this_present_warehouseId = true;
-
 
13113
      boolean that_present_warehouseId = true;
-
 
13114
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
13115
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
13116
          return false;
-
 
13117
        if (this.warehouseId != that.warehouseId)
-
 
13118
          return false;
-
 
13119
      }
-
 
13120
 
-
 
13121
      boolean this_present_supplierId = true;
-
 
13122
      boolean that_present_supplierId = true;
-
 
13123
      if (this_present_supplierId || that_present_supplierId) {
-
 
13124
        if (!(this_present_supplierId && that_present_supplierId))
-
 
13125
          return false;
-
 
13126
        if (this.supplierId != that.supplierId)
-
 
13127
          return false;
-
 
13128
      }
-
 
13129
 
-
 
13130
      boolean this_present_date = true;
-
 
13131
      boolean that_present_date = true;
-
 
13132
      if (this_present_date || that_present_date) {
-
 
13133
        if (!(this_present_date && that_present_date))
-
 
13134
          return false;
-
 
13135
        if (this.date != that.date)
-
 
13136
          return false;
-
 
13137
      }
-
 
13138
 
-
 
13139
      return true;
-
 
13140
    }
-
 
13141
 
-
 
13142
    @Override
-
 
13143
    public int hashCode() {
-
 
13144
      return 0;
-
 
13145
    }
-
 
13146
 
-
 
13147
    public int compareTo(getInvoicesForWarehouse_args other) {
-
 
13148
      if (!getClass().equals(other.getClass())) {
-
 
13149
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13150
      }
-
 
13151
 
-
 
13152
      int lastComparison = 0;
-
 
13153
      getInvoicesForWarehouse_args typedOther = (getInvoicesForWarehouse_args)other;
-
 
13154
 
-
 
13155
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
13156
      if (lastComparison != 0) {
-
 
13157
        return lastComparison;
-
 
13158
      }
-
 
13159
      if (isSetWarehouseId()) {
-
 
13160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
13161
        if (lastComparison != 0) {
-
 
13162
          return lastComparison;
-
 
13163
        }
-
 
13164
      }
-
 
13165
      lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
-
 
13166
      if (lastComparison != 0) {
-
 
13167
        return lastComparison;
-
 
13168
      }
-
 
13169
      if (isSetSupplierId()) {
-
 
13170
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierId, typedOther.supplierId);
-
 
13171
        if (lastComparison != 0) {
-
 
13172
          return lastComparison;
-
 
13173
        }
-
 
13174
      }
-
 
13175
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
-
 
13176
      if (lastComparison != 0) {
-
 
13177
        return lastComparison;
-
 
13178
      }
-
 
13179
      if (isSetDate()) {
-
 
13180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
-
 
13181
        if (lastComparison != 0) {
-
 
13182
          return lastComparison;
-
 
13183
        }
-
 
13184
      }
-
 
13185
      return 0;
-
 
13186
    }
-
 
13187
 
-
 
13188
    public _Fields fieldForId(int fieldId) {
-
 
13189
      return _Fields.findByThriftId(fieldId);
-
 
13190
    }
-
 
13191
 
-
 
13192
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13193
      org.apache.thrift.protocol.TField field;
-
 
13194
      iprot.readStructBegin();
-
 
13195
      while (true)
-
 
13196
      {
-
 
13197
        field = iprot.readFieldBegin();
-
 
13198
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13199
          break;
-
 
13200
        }
-
 
13201
        switch (field.id) {
-
 
13202
          case 1: // WAREHOUSE_ID
-
 
13203
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
13204
              this.warehouseId = iprot.readI64();
-
 
13205
              setWarehouseIdIsSet(true);
-
 
13206
            } else { 
-
 
13207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13208
            }
-
 
13209
            break;
-
 
13210
          case 2: // SUPPLIER_ID
-
 
13211
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
13212
              this.supplierId = iprot.readI64();
-
 
13213
              setSupplierIdIsSet(true);
-
 
13214
            } else { 
-
 
13215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13216
            }
-
 
13217
            break;
-
 
13218
          case 3: // DATE
-
 
13219
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
13220
              this.date = iprot.readI64();
-
 
13221
              setDateIsSet(true);
-
 
13222
            } else { 
-
 
13223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13224
            }
-
 
13225
            break;
-
 
13226
          default:
-
 
13227
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13228
        }
-
 
13229
        iprot.readFieldEnd();
-
 
13230
      }
-
 
13231
      iprot.readStructEnd();
-
 
13232
      validate();
-
 
13233
    }
-
 
13234
 
-
 
13235
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13236
      validate();
-
 
13237
 
-
 
13238
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13239
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
13240
      oprot.writeI64(this.warehouseId);
-
 
13241
      oprot.writeFieldEnd();
-
 
13242
      oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
-
 
13243
      oprot.writeI64(this.supplierId);
-
 
13244
      oprot.writeFieldEnd();
-
 
13245
      oprot.writeFieldBegin(DATE_FIELD_DESC);
-
 
13246
      oprot.writeI64(this.date);
-
 
13247
      oprot.writeFieldEnd();
-
 
13248
      oprot.writeFieldStop();
-
 
13249
      oprot.writeStructEnd();
-
 
13250
    }
-
 
13251
 
-
 
13252
    @Override
-
 
13253
    public String toString() {
-
 
13254
      StringBuilder sb = new StringBuilder("getInvoicesForWarehouse_args(");
-
 
13255
      boolean first = true;
-
 
13256
 
-
 
13257
      sb.append("warehouseId:");
-
 
13258
      sb.append(this.warehouseId);
-
 
13259
      first = false;
-
 
13260
      if (!first) sb.append(", ");
-
 
13261
      sb.append("supplierId:");
-
 
13262
      sb.append(this.supplierId);
-
 
13263
      first = false;
-
 
13264
      if (!first) sb.append(", ");
-
 
13265
      sb.append("date:");
-
 
13266
      sb.append(this.date);
-
 
13267
      first = false;
-
 
13268
      sb.append(")");
-
 
13269
      return sb.toString();
-
 
13270
    }
-
 
13271
 
-
 
13272
    public void validate() throws org.apache.thrift.TException {
-
 
13273
      // check for required fields
-
 
13274
    }
-
 
13275
 
-
 
13276
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13277
      try {
-
 
13278
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13279
      } catch (org.apache.thrift.TException te) {
-
 
13280
        throw new java.io.IOException(te);
-
 
13281
      }
-
 
13282
    }
-
 
13283
 
-
 
13284
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13285
      try {
-
 
13286
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
13287
        __isset_bit_vector = new BitSet(1);
-
 
13288
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13289
      } catch (org.apache.thrift.TException te) {
-
 
13290
        throw new java.io.IOException(te);
-
 
13291
      }
-
 
13292
    }
-
 
13293
 
-
 
13294
  }
-
 
13295
 
-
 
13296
  public static class getInvoicesForWarehouse_result implements org.apache.thrift.TBase<getInvoicesForWarehouse_result, getInvoicesForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
-
 
13297
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInvoicesForWarehouse_result");
-
 
13298
 
-
 
13299
    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);
-
 
13300
 
-
 
13301
    private List<Invoice> success; // required
-
 
13302
 
-
 
13303
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
13304
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
13305
      SUCCESS((short)0, "success");
-
 
13306
 
-
 
13307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
13308
 
-
 
13309
      static {
-
 
13310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13311
          byName.put(field.getFieldName(), field);
-
 
13312
        }
-
 
13313
      }
-
 
13314
 
-
 
13315
      /**
-
 
13316
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13317
       */
-
 
13318
      public static _Fields findByThriftId(int fieldId) {
-
 
13319
        switch(fieldId) {
-
 
13320
          case 0: // SUCCESS
-
 
13321
            return SUCCESS;
-
 
13322
          default:
-
 
13323
            return null;
-
 
13324
        }
-
 
13325
      }
-
 
13326
 
-
 
13327
      /**
-
 
13328
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13329
       * if it is not found.
-
 
13330
       */
-
 
13331
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13332
        _Fields fields = findByThriftId(fieldId);
-
 
13333
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13334
        return fields;
-
 
13335
      }
-
 
13336
 
-
 
13337
      /**
-
 
13338
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13339
       */
-
 
13340
      public static _Fields findByName(String name) {
-
 
13341
        return byName.get(name);
-
 
13342
      }
-
 
13343
 
-
 
13344
      private final short _thriftId;
-
 
13345
      private final String _fieldName;
-
 
13346
 
-
 
13347
      _Fields(short thriftId, String fieldName) {
-
 
13348
        _thriftId = thriftId;
-
 
13349
        _fieldName = fieldName;
-
 
13350
      }
-
 
13351
 
-
 
13352
      public short getThriftFieldId() {
-
 
13353
        return _thriftId;
-
 
13354
      }
-
 
13355
 
-
 
13356
      public String getFieldName() {
-
 
13357
        return _fieldName;
-
 
13358
      }
-
 
13359
    }
-
 
13360
 
-
 
13361
    // isset id assignments
-
 
13362
 
-
 
13363
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
13364
    static {
-
 
13365
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13366
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13367
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
13368
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Invoice.class))));
-
 
13369
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
13370
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInvoicesForWarehouse_result.class, metaDataMap);
-
 
13371
    }
-
 
13372
 
-
 
13373
    public getInvoicesForWarehouse_result() {
-
 
13374
    }
-
 
13375
 
-
 
13376
    public getInvoicesForWarehouse_result(
-
 
13377
      List<Invoice> success)
-
 
13378
    {
-
 
13379
      this();
-
 
13380
      this.success = success;
-
 
13381
    }
-
 
13382
 
-
 
13383
    /**
-
 
13384
     * Performs a deep copy on <i>other</i>.
-
 
13385
     */
-
 
13386
    public getInvoicesForWarehouse_result(getInvoicesForWarehouse_result other) {
-
 
13387
      if (other.isSetSuccess()) {
-
 
13388
        List<Invoice> __this__success = new ArrayList<Invoice>();
-
 
13389
        for (Invoice other_element : other.success) {
-
 
13390
          __this__success.add(new Invoice(other_element));
-
 
13391
        }
-
 
13392
        this.success = __this__success;
-
 
13393
      }
-
 
13394
    }
-
 
13395
 
-
 
13396
    public getInvoicesForWarehouse_result deepCopy() {
-
 
13397
      return new getInvoicesForWarehouse_result(this);
-
 
13398
    }
-
 
13399
 
-
 
13400
    @Override
-
 
13401
    public void clear() {
-
 
13402
      this.success = null;
-
 
13403
    }
-
 
13404
 
-
 
13405
    public int getSuccessSize() {
-
 
13406
      return (this.success == null) ? 0 : this.success.size();
-
 
13407
    }
-
 
13408
 
-
 
13409
    public java.util.Iterator<Invoice> getSuccessIterator() {
-
 
13410
      return (this.success == null) ? null : this.success.iterator();
-
 
13411
    }
-
 
13412
 
-
 
13413
    public void addToSuccess(Invoice elem) {
-
 
13414
      if (this.success == null) {
-
 
13415
        this.success = new ArrayList<Invoice>();
-
 
13416
      }
-
 
13417
      this.success.add(elem);
-
 
13418
    }
-
 
13419
 
-
 
13420
    public List<Invoice> getSuccess() {
-
 
13421
      return this.success;
-
 
13422
    }
-
 
13423
 
-
 
13424
    public void setSuccess(List<Invoice> success) {
-
 
13425
      this.success = success;
-
 
13426
    }
-
 
13427
 
-
 
13428
    public void unsetSuccess() {
-
 
13429
      this.success = null;
-
 
13430
    }
-
 
13431
 
-
 
13432
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
13433
    public boolean isSetSuccess() {
-
 
13434
      return this.success != null;
-
 
13435
    }
-
 
13436
 
-
 
13437
    public void setSuccessIsSet(boolean value) {
-
 
13438
      if (!value) {
-
 
13439
        this.success = null;
-
 
13440
      }
-
 
13441
    }
-
 
13442
 
-
 
13443
    public void setFieldValue(_Fields field, Object value) {
-
 
13444
      switch (field) {
-
 
13445
      case SUCCESS:
-
 
13446
        if (value == null) {
-
 
13447
          unsetSuccess();
-
 
13448
        } else {
-
 
13449
          setSuccess((List<Invoice>)value);
-
 
13450
        }
-
 
13451
        break;
-
 
13452
 
-
 
13453
      }
-
 
13454
    }
-
 
13455
 
-
 
13456
    public Object getFieldValue(_Fields field) {
-
 
13457
      switch (field) {
-
 
13458
      case SUCCESS:
-
 
13459
        return getSuccess();
-
 
13460
 
-
 
13461
      }
-
 
13462
      throw new IllegalStateException();
-
 
13463
    }
-
 
13464
 
-
 
13465
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13466
    public boolean isSet(_Fields field) {
-
 
13467
      if (field == null) {
-
 
13468
        throw new IllegalArgumentException();
-
 
13469
      }
-
 
13470
 
-
 
13471
      switch (field) {
-
 
13472
      case SUCCESS:
-
 
13473
        return isSetSuccess();
-
 
13474
      }
-
 
13475
      throw new IllegalStateException();
-
 
13476
    }
-
 
13477
 
-
 
13478
    @Override
-
 
13479
    public boolean equals(Object that) {
-
 
13480
      if (that == null)
-
 
13481
        return false;
-
 
13482
      if (that instanceof getInvoicesForWarehouse_result)
-
 
13483
        return this.equals((getInvoicesForWarehouse_result)that);
-
 
13484
      return false;
-
 
13485
    }
-
 
13486
 
-
 
13487
    public boolean equals(getInvoicesForWarehouse_result that) {
-
 
13488
      if (that == null)
-
 
13489
        return false;
-
 
13490
 
-
 
13491
      boolean this_present_success = true && this.isSetSuccess();
-
 
13492
      boolean that_present_success = true && that.isSetSuccess();
-
 
13493
      if (this_present_success || that_present_success) {
-
 
13494
        if (!(this_present_success && that_present_success))
-
 
13495
          return false;
-
 
13496
        if (!this.success.equals(that.success))
-
 
13497
          return false;
-
 
13498
      }
-
 
13499
 
-
 
13500
      return true;
-
 
13501
    }
-
 
13502
 
-
 
13503
    @Override
-
 
13504
    public int hashCode() {
-
 
13505
      return 0;
-
 
13506
    }
-
 
13507
 
-
 
13508
    public int compareTo(getInvoicesForWarehouse_result other) {
-
 
13509
      if (!getClass().equals(other.getClass())) {
-
 
13510
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13511
      }
-
 
13512
 
-
 
13513
      int lastComparison = 0;
-
 
13514
      getInvoicesForWarehouse_result typedOther = (getInvoicesForWarehouse_result)other;
-
 
13515
 
-
 
13516
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
13517
      if (lastComparison != 0) {
-
 
13518
        return lastComparison;
-
 
13519
      }
-
 
13520
      if (isSetSuccess()) {
-
 
13521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
13522
        if (lastComparison != 0) {
-
 
13523
          return lastComparison;
-
 
13524
        }
-
 
13525
      }
-
 
13526
      return 0;
-
 
13527
    }
-
 
13528
 
-
 
13529
    public _Fields fieldForId(int fieldId) {
-
 
13530
      return _Fields.findByThriftId(fieldId);
-
 
13531
    }
-
 
13532
 
-
 
13533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13534
      org.apache.thrift.protocol.TField field;
-
 
13535
      iprot.readStructBegin();
-
 
13536
      while (true)
-
 
13537
      {
-
 
13538
        field = iprot.readFieldBegin();
-
 
13539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13540
          break;
-
 
13541
        }
-
 
13542
        switch (field.id) {
-
 
13543
          case 0: // SUCCESS
-
 
13544
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
13545
              {
-
 
13546
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
-
 
13547
                this.success = new ArrayList<Invoice>(_list28.size);
-
 
13548
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
13549
                {
-
 
13550
                  Invoice _elem30; // required
-
 
13551
                  _elem30 = new Invoice();
-
 
13552
                  _elem30.read(iprot);
-
 
13553
                  this.success.add(_elem30);
-
 
13554
                }
-
 
13555
                iprot.readListEnd();
-
 
13556
              }
-
 
13557
            } else { 
-
 
13558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13559
            }
-
 
13560
            break;
-
 
13561
          default:
-
 
13562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13563
        }
-
 
13564
        iprot.readFieldEnd();
-
 
13565
      }
-
 
13566
      iprot.readStructEnd();
-
 
13567
      validate();
-
 
13568
    }
-
 
13569
 
-
 
13570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13571
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13572
 
-
 
13573
      if (this.isSetSuccess()) {
-
 
13574
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
13575
        {
-
 
13576
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
13577
          for (Invoice _iter31 : this.success)
-
 
13578
          {
-
 
13579
            _iter31.write(oprot);
-
 
13580
          }
-
 
13581
          oprot.writeListEnd();
-
 
13582
        }
-
 
13583
        oprot.writeFieldEnd();
-
 
13584
      }
-
 
13585
      oprot.writeFieldStop();
-
 
13586
      oprot.writeStructEnd();
-
 
13587
    }
-
 
13588
 
-
 
13589
    @Override
-
 
13590
    public String toString() {
-
 
13591
      StringBuilder sb = new StringBuilder("getInvoicesForWarehouse_result(");
-
 
13592
      boolean first = true;
-
 
13593
 
-
 
13594
      sb.append("success:");
-
 
13595
      if (this.success == null) {
-
 
13596
        sb.append("null");
-
 
13597
      } else {
-
 
13598
        sb.append(this.success);
-
 
13599
      }
-
 
13600
      first = false;
-
 
13601
      sb.append(")");
-
 
13602
      return sb.toString();
-
 
13603
    }
-
 
13604
 
-
 
13605
    public void validate() throws org.apache.thrift.TException {
-
 
13606
      // check for required fields
-
 
13607
    }
-
 
13608
 
-
 
13609
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13610
      try {
-
 
13611
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13612
      } catch (org.apache.thrift.TException te) {
-
 
13613
        throw new java.io.IOException(te);
-
 
13614
      }
-
 
13615
    }
-
 
13616
 
-
 
13617
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13618
      try {
-
 
13619
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13620
      } catch (org.apache.thrift.TException te) {
-
 
13621
        throw new java.io.IOException(te);
-
 
13622
      }
-
 
13623
    }
-
 
13624
 
-
 
13625
  }
-
 
13626
 
12573
  public static class createInvoice_args implements org.apache.thrift.TBase<createInvoice_args, createInvoice_args._Fields>, java.io.Serializable, Cloneable   {
13627
  public static class createInvoice_args implements org.apache.thrift.TBase<createInvoice_args, createInvoice_args._Fields>, java.io.Serializable, Cloneable   {
12574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInvoice_args");
13628
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInvoice_args");
12575
 
13629
 
12576
    private static final org.apache.thrift.protocol.TField INVOICE_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice", org.apache.thrift.protocol.TType.STRUCT, (short)1);
13630
    private static final org.apache.thrift.protocol.TField INVOICE_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice", org.apache.thrift.protocol.TType.STRUCT, (short)1);
12577
 
13631
 
Line 15771... Line 16825...
15771
        }
16825
        }
15772
        switch (field.id) {
16826
        switch (field.id) {
15773
          case 0: // SUCCESS
16827
          case 0: // SUCCESS
15774
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16828
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15775
              {
16829
              {
15776
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16830
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
15777
                this.success = new ArrayList<PurchaseReturn>(_list28.size);
16831
                this.success = new ArrayList<PurchaseReturn>(_list32.size);
15778
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
16832
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
15779
                {
16833
                {
15780
                  PurchaseReturn _elem30; // required
16834
                  PurchaseReturn _elem34; // required
15781
                  _elem30 = new PurchaseReturn();
16835
                  _elem34 = new PurchaseReturn();
15782
                  _elem30.read(iprot);
16836
                  _elem34.read(iprot);
15783
                  this.success.add(_elem30);
16837
                  this.success.add(_elem34);
15784
                }
16838
                }
15785
                iprot.readListEnd();
16839
                iprot.readListEnd();
15786
              }
16840
              }
15787
            } else { 
16841
            } else { 
15788
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16842
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 15802... Line 16856...
15802
 
16856
 
15803
      if (this.isSetSuccess()) {
16857
      if (this.isSetSuccess()) {
15804
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16858
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15805
        {
16859
        {
15806
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16860
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
15807
          for (PurchaseReturn _iter31 : this.success)
16861
          for (PurchaseReturn _iter35 : this.success)
15808
          {
16862
          {
15809
            _iter31.write(oprot);
16863
            _iter35.write(oprot);
15810
          }
16864
          }
15811
          oprot.writeListEnd();
16865
          oprot.writeListEnd();
15812
        }
16866
        }
15813
        oprot.writeFieldEnd();
16867
        oprot.writeFieldEnd();
15814
      }
16868
      }
Line 16482... Line 17536...
16482
        }
17536
        }
16483
        switch (field.id) {
17537
        switch (field.id) {
16484
          case 0: // SUCCESS
17538
          case 0: // SUCCESS
16485
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17539
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16486
              {
17540
              {
16487
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
17541
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
16488
                this.success = new ArrayList<PurchaseReturn>(_list32.size);
17542
                this.success = new ArrayList<PurchaseReturn>(_list36.size);
16489
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
17543
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
16490
                {
17544
                {
16491
                  PurchaseReturn _elem34; // required
17545
                  PurchaseReturn _elem38; // required
16492
                  _elem34 = new PurchaseReturn();
17546
                  _elem38 = new PurchaseReturn();
16493
                  _elem34.read(iprot);
17547
                  _elem38.read(iprot);
16494
                  this.success.add(_elem34);
17548
                  this.success.add(_elem38);
16495
                }
17549
                }
16496
                iprot.readListEnd();
17550
                iprot.readListEnd();
16497
              }
17551
              }
16498
            } else { 
17552
            } else { 
16499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 16513... Line 17567...
16513
 
17567
 
16514
      if (this.isSetSuccess()) {
17568
      if (this.isSetSuccess()) {
16515
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17569
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16516
        {
17570
        {
16517
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17571
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16518
          for (PurchaseReturn _iter35 : this.success)
17572
          for (PurchaseReturn _iter39 : this.success)
16519
          {
17573
          {
16520
            _iter35.write(oprot);
17574
            _iter39.write(oprot);
16521
          }
17575
          }
16522
          oprot.writeListEnd();
17576
          oprot.writeListEnd();
16523
        }
17577
        }
16524
        oprot.writeFieldEnd();
17578
        oprot.writeFieldEnd();
16525
      }
17579
      }
Line 17876... Line 18930...
17876
      sb.append(")");
18930
      sb.append(")");
17877
      return sb.toString();
18931
      return sb.toString();
17878
    }
18932
    }
17879
 
18933
 
17880
    public void validate() throws org.apache.thrift.TException {
18934
    public void validate() throws org.apache.thrift.TException {
-
 
18935
      // check for required fields
-
 
18936
    }
-
 
18937
 
-
 
18938
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
18939
      try {
-
 
18940
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
18941
      } catch (org.apache.thrift.TException te) {
-
 
18942
        throw new java.io.IOException(te);
-
 
18943
      }
-
 
18944
    }
-
 
18945
 
-
 
18946
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
18947
      try {
-
 
18948
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
18949
      } catch (org.apache.thrift.TException te) {
-
 
18950
        throw new java.io.IOException(te);
-
 
18951
      }
-
 
18952
    }
-
 
18953
 
-
 
18954
  }
-
 
18955
 
-
 
18956
  public static class closePO_args implements org.apache.thrift.TBase<closePO_args, closePO_args._Fields>, java.io.Serializable, Cloneable   {
-
 
18957
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closePO_args");
-
 
18958
 
-
 
18959
    private static final org.apache.thrift.protocol.TField PO_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("poId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
18960
 
-
 
18961
    private long poId; // required
-
 
18962
 
-
 
18963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18964
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
18965
      PO_ID((short)1, "poId");
-
 
18966
 
-
 
18967
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18968
 
-
 
18969
      static {
-
 
18970
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18971
          byName.put(field.getFieldName(), field);
-
 
18972
        }
-
 
18973
      }
-
 
18974
 
-
 
18975
      /**
-
 
18976
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18977
       */
-
 
18978
      public static _Fields findByThriftId(int fieldId) {
-
 
18979
        switch(fieldId) {
-
 
18980
          case 1: // PO_ID
-
 
18981
            return PO_ID;
-
 
18982
          default:
-
 
18983
            return null;
-
 
18984
        }
-
 
18985
      }
-
 
18986
 
-
 
18987
      /**
-
 
18988
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18989
       * if it is not found.
-
 
18990
       */
-
 
18991
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18992
        _Fields fields = findByThriftId(fieldId);
-
 
18993
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18994
        return fields;
-
 
18995
      }
-
 
18996
 
-
 
18997
      /**
-
 
18998
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18999
       */
-
 
19000
      public static _Fields findByName(String name) {
-
 
19001
        return byName.get(name);
-
 
19002
      }
-
 
19003
 
-
 
19004
      private final short _thriftId;
-
 
19005
      private final String _fieldName;
-
 
19006
 
-
 
19007
      _Fields(short thriftId, String fieldName) {
-
 
19008
        _thriftId = thriftId;
-
 
19009
        _fieldName = fieldName;
-
 
19010
      }
-
 
19011
 
-
 
19012
      public short getThriftFieldId() {
-
 
19013
        return _thriftId;
-
 
19014
      }
-
 
19015
 
-
 
19016
      public String getFieldName() {
-
 
19017
        return _fieldName;
-
 
19018
      }
-
 
19019
    }
-
 
19020
 
-
 
19021
    // isset id assignments
-
 
19022
    private static final int __POID_ISSET_ID = 0;
-
 
19023
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
19024
 
-
 
19025
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19026
    static {
-
 
19027
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19028
      tmpMap.put(_Fields.PO_ID, new org.apache.thrift.meta_data.FieldMetaData("poId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
19030
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19031
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closePO_args.class, metaDataMap);
-
 
19032
    }
-
 
19033
 
-
 
19034
    public closePO_args() {
-
 
19035
    }
-
 
19036
 
-
 
19037
    public closePO_args(
-
 
19038
      long poId)
-
 
19039
    {
-
 
19040
      this();
-
 
19041
      this.poId = poId;
-
 
19042
      setPoIdIsSet(true);
-
 
19043
    }
-
 
19044
 
-
 
19045
    /**
-
 
19046
     * Performs a deep copy on <i>other</i>.
-
 
19047
     */
-
 
19048
    public closePO_args(closePO_args other) {
-
 
19049
      __isset_bit_vector.clear();
-
 
19050
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
19051
      this.poId = other.poId;
-
 
19052
    }
-
 
19053
 
-
 
19054
    public closePO_args deepCopy() {
-
 
19055
      return new closePO_args(this);
-
 
19056
    }
-
 
19057
 
-
 
19058
    @Override
-
 
19059
    public void clear() {
-
 
19060
      setPoIdIsSet(false);
-
 
19061
      this.poId = 0;
-
 
19062
    }
-
 
19063
 
-
 
19064
    public long getPoId() {
-
 
19065
      return this.poId;
-
 
19066
    }
-
 
19067
 
-
 
19068
    public void setPoId(long poId) {
-
 
19069
      this.poId = poId;
-
 
19070
      setPoIdIsSet(true);
-
 
19071
    }
-
 
19072
 
-
 
19073
    public void unsetPoId() {
-
 
19074
      __isset_bit_vector.clear(__POID_ISSET_ID);
-
 
19075
    }
-
 
19076
 
-
 
19077
    /** Returns true if field poId is set (has been assigned a value) and false otherwise */
-
 
19078
    public boolean isSetPoId() {
-
 
19079
      return __isset_bit_vector.get(__POID_ISSET_ID);
-
 
19080
    }
-
 
19081
 
-
 
19082
    public void setPoIdIsSet(boolean value) {
-
 
19083
      __isset_bit_vector.set(__POID_ISSET_ID, value);
-
 
19084
    }
-
 
19085
 
-
 
19086
    public void setFieldValue(_Fields field, Object value) {
-
 
19087
      switch (field) {
-
 
19088
      case PO_ID:
-
 
19089
        if (value == null) {
-
 
19090
          unsetPoId();
-
 
19091
        } else {
-
 
19092
          setPoId((Long)value);
-
 
19093
        }
-
 
19094
        break;
-
 
19095
 
-
 
19096
      }
-
 
19097
    }
-
 
19098
 
-
 
19099
    public Object getFieldValue(_Fields field) {
-
 
19100
      switch (field) {
-
 
19101
      case PO_ID:
-
 
19102
        return Long.valueOf(getPoId());
-
 
19103
 
-
 
19104
      }
-
 
19105
      throw new IllegalStateException();
-
 
19106
    }
-
 
19107
 
-
 
19108
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19109
    public boolean isSet(_Fields field) {
-
 
19110
      if (field == null) {
-
 
19111
        throw new IllegalArgumentException();
-
 
19112
      }
-
 
19113
 
-
 
19114
      switch (field) {
-
 
19115
      case PO_ID:
-
 
19116
        return isSetPoId();
-
 
19117
      }
-
 
19118
      throw new IllegalStateException();
-
 
19119
    }
-
 
19120
 
-
 
19121
    @Override
-
 
19122
    public boolean equals(Object that) {
-
 
19123
      if (that == null)
-
 
19124
        return false;
-
 
19125
      if (that instanceof closePO_args)
-
 
19126
        return this.equals((closePO_args)that);
-
 
19127
      return false;
-
 
19128
    }
-
 
19129
 
-
 
19130
    public boolean equals(closePO_args that) {
-
 
19131
      if (that == null)
-
 
19132
        return false;
-
 
19133
 
-
 
19134
      boolean this_present_poId = true;
-
 
19135
      boolean that_present_poId = true;
-
 
19136
      if (this_present_poId || that_present_poId) {
-
 
19137
        if (!(this_present_poId && that_present_poId))
-
 
19138
          return false;
-
 
19139
        if (this.poId != that.poId)
-
 
19140
          return false;
-
 
19141
      }
-
 
19142
 
-
 
19143
      return true;
-
 
19144
    }
-
 
19145
 
-
 
19146
    @Override
-
 
19147
    public int hashCode() {
-
 
19148
      return 0;
-
 
19149
    }
-
 
19150
 
-
 
19151
    public int compareTo(closePO_args other) {
-
 
19152
      if (!getClass().equals(other.getClass())) {
-
 
19153
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19154
      }
-
 
19155
 
-
 
19156
      int lastComparison = 0;
-
 
19157
      closePO_args typedOther = (closePO_args)other;
-
 
19158
 
-
 
19159
      lastComparison = Boolean.valueOf(isSetPoId()).compareTo(typedOther.isSetPoId());
-
 
19160
      if (lastComparison != 0) {
-
 
19161
        return lastComparison;
-
 
19162
      }
-
 
19163
      if (isSetPoId()) {
-
 
19164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poId, typedOther.poId);
-
 
19165
        if (lastComparison != 0) {
-
 
19166
          return lastComparison;
-
 
19167
        }
-
 
19168
      }
-
 
19169
      return 0;
-
 
19170
    }
-
 
19171
 
-
 
19172
    public _Fields fieldForId(int fieldId) {
-
 
19173
      return _Fields.findByThriftId(fieldId);
-
 
19174
    }
-
 
19175
 
-
 
19176
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19177
      org.apache.thrift.protocol.TField field;
-
 
19178
      iprot.readStructBegin();
-
 
19179
      while (true)
-
 
19180
      {
-
 
19181
        field = iprot.readFieldBegin();
-
 
19182
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19183
          break;
-
 
19184
        }
-
 
19185
        switch (field.id) {
-
 
19186
          case 1: // PO_ID
-
 
19187
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
19188
              this.poId = iprot.readI64();
-
 
19189
              setPoIdIsSet(true);
-
 
19190
            } else { 
-
 
19191
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19192
            }
-
 
19193
            break;
-
 
19194
          default:
-
 
19195
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19196
        }
-
 
19197
        iprot.readFieldEnd();
-
 
19198
      }
-
 
19199
      iprot.readStructEnd();
-
 
19200
      validate();
-
 
19201
    }
-
 
19202
 
-
 
19203
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19204
      validate();
-
 
19205
 
-
 
19206
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19207
      oprot.writeFieldBegin(PO_ID_FIELD_DESC);
-
 
19208
      oprot.writeI64(this.poId);
-
 
19209
      oprot.writeFieldEnd();
-
 
19210
      oprot.writeFieldStop();
-
 
19211
      oprot.writeStructEnd();
-
 
19212
    }
-
 
19213
 
-
 
19214
    @Override
-
 
19215
    public String toString() {
-
 
19216
      StringBuilder sb = new StringBuilder("closePO_args(");
-
 
19217
      boolean first = true;
-
 
19218
 
-
 
19219
      sb.append("poId:");
-
 
19220
      sb.append(this.poId);
-
 
19221
      first = false;
-
 
19222
      sb.append(")");
-
 
19223
      return sb.toString();
-
 
19224
    }
-
 
19225
 
-
 
19226
    public void validate() throws org.apache.thrift.TException {
-
 
19227
      // check for required fields
-
 
19228
    }
-
 
19229
 
-
 
19230
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19231
      try {
-
 
19232
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19233
      } catch (org.apache.thrift.TException te) {
-
 
19234
        throw new java.io.IOException(te);
-
 
19235
      }
-
 
19236
    }
-
 
19237
 
-
 
19238
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19239
      try {
-
 
19240
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19241
      } catch (org.apache.thrift.TException te) {
-
 
19242
        throw new java.io.IOException(te);
-
 
19243
      }
-
 
19244
    }
-
 
19245
 
-
 
19246
  }
-
 
19247
 
-
 
19248
  public static class closePO_result implements org.apache.thrift.TBase<closePO_result, closePO_result._Fields>, java.io.Serializable, Cloneable   {
-
 
19249
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closePO_result");
-
 
19250
 
-
 
19251
    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);
-
 
19252
 
-
 
19253
    private PurchaseServiceException e; // required
-
 
19254
 
-
 
19255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19256
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19257
      E((short)1, "e");
-
 
19258
 
-
 
19259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19260
 
-
 
19261
      static {
-
 
19262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19263
          byName.put(field.getFieldName(), field);
-
 
19264
        }
-
 
19265
      }
-
 
19266
 
-
 
19267
      /**
-
 
19268
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19269
       */
-
 
19270
      public static _Fields findByThriftId(int fieldId) {
-
 
19271
        switch(fieldId) {
-
 
19272
          case 1: // E
-
 
19273
            return E;
-
 
19274
          default:
-
 
19275
            return null;
-
 
19276
        }
-
 
19277
      }
-
 
19278
 
-
 
19279
      /**
-
 
19280
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19281
       * if it is not found.
-
 
19282
       */
-
 
19283
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19284
        _Fields fields = findByThriftId(fieldId);
-
 
19285
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19286
        return fields;
-
 
19287
      }
-
 
19288
 
-
 
19289
      /**
-
 
19290
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19291
       */
-
 
19292
      public static _Fields findByName(String name) {
-
 
19293
        return byName.get(name);
-
 
19294
      }
-
 
19295
 
-
 
19296
      private final short _thriftId;
-
 
19297
      private final String _fieldName;
-
 
19298
 
-
 
19299
      _Fields(short thriftId, String fieldName) {
-
 
19300
        _thriftId = thriftId;
-
 
19301
        _fieldName = fieldName;
-
 
19302
      }
-
 
19303
 
-
 
19304
      public short getThriftFieldId() {
-
 
19305
        return _thriftId;
-
 
19306
      }
-
 
19307
 
-
 
19308
      public String getFieldName() {
-
 
19309
        return _fieldName;
-
 
19310
      }
-
 
19311
    }
-
 
19312
 
-
 
19313
    // isset id assignments
-
 
19314
 
-
 
19315
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19316
    static {
-
 
19317
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19318
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
19320
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19321
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closePO_result.class, metaDataMap);
-
 
19322
    }
-
 
19323
 
-
 
19324
    public closePO_result() {
-
 
19325
    }
-
 
19326
 
-
 
19327
    public closePO_result(
-
 
19328
      PurchaseServiceException e)
-
 
19329
    {
-
 
19330
      this();
-
 
19331
      this.e = e;
-
 
19332
    }
-
 
19333
 
-
 
19334
    /**
-
 
19335
     * Performs a deep copy on <i>other</i>.
-
 
19336
     */
-
 
19337
    public closePO_result(closePO_result other) {
-
 
19338
      if (other.isSetE()) {
-
 
19339
        this.e = new PurchaseServiceException(other.e);
-
 
19340
      }
-
 
19341
    }
-
 
19342
 
-
 
19343
    public closePO_result deepCopy() {
-
 
19344
      return new closePO_result(this);
-
 
19345
    }
-
 
19346
 
-
 
19347
    @Override
-
 
19348
    public void clear() {
-
 
19349
      this.e = null;
-
 
19350
    }
-
 
19351
 
-
 
19352
    public PurchaseServiceException getE() {
-
 
19353
      return this.e;
-
 
19354
    }
-
 
19355
 
-
 
19356
    public void setE(PurchaseServiceException e) {
-
 
19357
      this.e = e;
-
 
19358
    }
-
 
19359
 
-
 
19360
    public void unsetE() {
-
 
19361
      this.e = null;
-
 
19362
    }
-
 
19363
 
-
 
19364
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
19365
    public boolean isSetE() {
-
 
19366
      return this.e != null;
-
 
19367
    }
-
 
19368
 
-
 
19369
    public void setEIsSet(boolean value) {
-
 
19370
      if (!value) {
-
 
19371
        this.e = null;
-
 
19372
      }
-
 
19373
    }
-
 
19374
 
-
 
19375
    public void setFieldValue(_Fields field, Object value) {
-
 
19376
      switch (field) {
-
 
19377
      case E:
-
 
19378
        if (value == null) {
-
 
19379
          unsetE();
-
 
19380
        } else {
-
 
19381
          setE((PurchaseServiceException)value);
-
 
19382
        }
-
 
19383
        break;
-
 
19384
 
-
 
19385
      }
-
 
19386
    }
-
 
19387
 
-
 
19388
    public Object getFieldValue(_Fields field) {
-
 
19389
      switch (field) {
-
 
19390
      case E:
-
 
19391
        return getE();
-
 
19392
 
-
 
19393
      }
-
 
19394
      throw new IllegalStateException();
-
 
19395
    }
-
 
19396
 
-
 
19397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19398
    public boolean isSet(_Fields field) {
-
 
19399
      if (field == null) {
-
 
19400
        throw new IllegalArgumentException();
-
 
19401
      }
-
 
19402
 
-
 
19403
      switch (field) {
-
 
19404
      case E:
-
 
19405
        return isSetE();
-
 
19406
      }
-
 
19407
      throw new IllegalStateException();
-
 
19408
    }
-
 
19409
 
-
 
19410
    @Override
-
 
19411
    public boolean equals(Object that) {
-
 
19412
      if (that == null)
-
 
19413
        return false;
-
 
19414
      if (that instanceof closePO_result)
-
 
19415
        return this.equals((closePO_result)that);
-
 
19416
      return false;
-
 
19417
    }
-
 
19418
 
-
 
19419
    public boolean equals(closePO_result that) {
-
 
19420
      if (that == null)
-
 
19421
        return false;
-
 
19422
 
-
 
19423
      boolean this_present_e = true && this.isSetE();
-
 
19424
      boolean that_present_e = true && that.isSetE();
-
 
19425
      if (this_present_e || that_present_e) {
-
 
19426
        if (!(this_present_e && that_present_e))
-
 
19427
          return false;
-
 
19428
        if (!this.e.equals(that.e))
-
 
19429
          return false;
-
 
19430
      }
-
 
19431
 
-
 
19432
      return true;
-
 
19433
    }
-
 
19434
 
-
 
19435
    @Override
-
 
19436
    public int hashCode() {
-
 
19437
      return 0;
-
 
19438
    }
-
 
19439
 
-
 
19440
    public int compareTo(closePO_result other) {
-
 
19441
      if (!getClass().equals(other.getClass())) {
-
 
19442
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19443
      }
-
 
19444
 
-
 
19445
      int lastComparison = 0;
-
 
19446
      closePO_result typedOther = (closePO_result)other;
-
 
19447
 
-
 
19448
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
19449
      if (lastComparison != 0) {
-
 
19450
        return lastComparison;
-
 
19451
      }
-
 
19452
      if (isSetE()) {
-
 
19453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
19454
        if (lastComparison != 0) {
-
 
19455
          return lastComparison;
-
 
19456
        }
-
 
19457
      }
-
 
19458
      return 0;
-
 
19459
    }
-
 
19460
 
-
 
19461
    public _Fields fieldForId(int fieldId) {
-
 
19462
      return _Fields.findByThriftId(fieldId);
-
 
19463
    }
-
 
19464
 
-
 
19465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19466
      org.apache.thrift.protocol.TField field;
-
 
19467
      iprot.readStructBegin();
-
 
19468
      while (true)
-
 
19469
      {
-
 
19470
        field = iprot.readFieldBegin();
-
 
19471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19472
          break;
-
 
19473
        }
-
 
19474
        switch (field.id) {
-
 
19475
          case 1: // E
-
 
19476
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
19477
              this.e = new PurchaseServiceException();
-
 
19478
              this.e.read(iprot);
-
 
19479
            } else { 
-
 
19480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19481
            }
-
 
19482
            break;
-
 
19483
          default:
-
 
19484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19485
        }
-
 
19486
        iprot.readFieldEnd();
-
 
19487
      }
-
 
19488
      iprot.readStructEnd();
-
 
19489
      validate();
-
 
19490
    }
-
 
19491
 
-
 
19492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19493
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19494
 
-
 
19495
      if (this.isSetE()) {
-
 
19496
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
19497
        this.e.write(oprot);
-
 
19498
        oprot.writeFieldEnd();
-
 
19499
      }
-
 
19500
      oprot.writeFieldStop();
-
 
19501
      oprot.writeStructEnd();
-
 
19502
    }
-
 
19503
 
-
 
19504
    @Override
-
 
19505
    public String toString() {
-
 
19506
      StringBuilder sb = new StringBuilder("closePO_result(");
-
 
19507
      boolean first = true;
-
 
19508
 
-
 
19509
      sb.append("e:");
-
 
19510
      if (this.e == null) {
-
 
19511
        sb.append("null");
-
 
19512
      } else {
-
 
19513
        sb.append(this.e);
-
 
19514
      }
-
 
19515
      first = false;
-
 
19516
      sb.append(")");
-
 
19517
      return sb.toString();
-
 
19518
    }
-
 
19519
 
-
 
19520
    public void validate() throws org.apache.thrift.TException {
-
 
19521
      // check for required fields
-
 
19522
    }
-
 
19523
 
-
 
19524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19525
      try {
-
 
19526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19527
      } catch (org.apache.thrift.TException te) {
-
 
19528
        throw new java.io.IOException(te);
-
 
19529
      }
-
 
19530
    }
-
 
19531
 
-
 
19532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19533
      try {
-
 
19534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19535
      } catch (org.apache.thrift.TException te) {
-
 
19536
        throw new java.io.IOException(te);
-
 
19537
      }
-
 
19538
    }
-
 
19539
 
-
 
19540
  }
-
 
19541
 
-
 
19542
  public static class isInvoiceReceived_args implements org.apache.thrift.TBase<isInvoiceReceived_args, isInvoiceReceived_args._Fields>, java.io.Serializable, Cloneable   {
-
 
19543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isInvoiceReceived_args");
-
 
19544
 
-
 
19545
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
19546
    private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
19547
 
-
 
19548
    private String invoiceNumber; // required
-
 
19549
    private long supplierId; // required
-
 
19550
 
-
 
19551
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19552
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19553
      INVOICE_NUMBER((short)1, "invoiceNumber"),
-
 
19554
      SUPPLIER_ID((short)2, "supplierId");
-
 
19555
 
-
 
19556
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19557
 
-
 
19558
      static {
-
 
19559
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19560
          byName.put(field.getFieldName(), field);
-
 
19561
        }
-
 
19562
      }
-
 
19563
 
-
 
19564
      /**
-
 
19565
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19566
       */
-
 
19567
      public static _Fields findByThriftId(int fieldId) {
-
 
19568
        switch(fieldId) {
-
 
19569
          case 1: // INVOICE_NUMBER
-
 
19570
            return INVOICE_NUMBER;
-
 
19571
          case 2: // SUPPLIER_ID
-
 
19572
            return SUPPLIER_ID;
-
 
19573
          default:
-
 
19574
            return null;
-
 
19575
        }
-
 
19576
      }
-
 
19577
 
-
 
19578
      /**
-
 
19579
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19580
       * if it is not found.
-
 
19581
       */
-
 
19582
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19583
        _Fields fields = findByThriftId(fieldId);
-
 
19584
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19585
        return fields;
-
 
19586
      }
-
 
19587
 
-
 
19588
      /**
-
 
19589
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19590
       */
-
 
19591
      public static _Fields findByName(String name) {
-
 
19592
        return byName.get(name);
-
 
19593
      }
-
 
19594
 
-
 
19595
      private final short _thriftId;
-
 
19596
      private final String _fieldName;
-
 
19597
 
-
 
19598
      _Fields(short thriftId, String fieldName) {
-
 
19599
        _thriftId = thriftId;
-
 
19600
        _fieldName = fieldName;
-
 
19601
      }
-
 
19602
 
-
 
19603
      public short getThriftFieldId() {
-
 
19604
        return _thriftId;
-
 
19605
      }
-
 
19606
 
-
 
19607
      public String getFieldName() {
-
 
19608
        return _fieldName;
-
 
19609
      }
-
 
19610
    }
-
 
19611
 
-
 
19612
    // isset id assignments
-
 
19613
    private static final int __SUPPLIERID_ISSET_ID = 0;
-
 
19614
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
19615
 
-
 
19616
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19617
    static {
-
 
19618
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19619
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19620
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
19621
      tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19622
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
19623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isInvoiceReceived_args.class, metaDataMap);
-
 
19625
    }
-
 
19626
 
-
 
19627
    public isInvoiceReceived_args() {
-
 
19628
    }
-
 
19629
 
-
 
19630
    public isInvoiceReceived_args(
-
 
19631
      String invoiceNumber,
-
 
19632
      long supplierId)
-
 
19633
    {
-
 
19634
      this();
-
 
19635
      this.invoiceNumber = invoiceNumber;
-
 
19636
      this.supplierId = supplierId;
-
 
19637
      setSupplierIdIsSet(true);
-
 
19638
    }
-
 
19639
 
-
 
19640
    /**
-
 
19641
     * Performs a deep copy on <i>other</i>.
-
 
19642
     */
-
 
19643
    public isInvoiceReceived_args(isInvoiceReceived_args other) {
-
 
19644
      __isset_bit_vector.clear();
-
 
19645
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
19646
      if (other.isSetInvoiceNumber()) {
-
 
19647
        this.invoiceNumber = other.invoiceNumber;
-
 
19648
      }
-
 
19649
      this.supplierId = other.supplierId;
-
 
19650
    }
-
 
19651
 
-
 
19652
    public isInvoiceReceived_args deepCopy() {
-
 
19653
      return new isInvoiceReceived_args(this);
-
 
19654
    }
-
 
19655
 
-
 
19656
    @Override
-
 
19657
    public void clear() {
-
 
19658
      this.invoiceNumber = null;
-
 
19659
      setSupplierIdIsSet(false);
-
 
19660
      this.supplierId = 0;
-
 
19661
    }
-
 
19662
 
-
 
19663
    public String getInvoiceNumber() {
-
 
19664
      return this.invoiceNumber;
-
 
19665
    }
-
 
19666
 
-
 
19667
    public void setInvoiceNumber(String invoiceNumber) {
-
 
19668
      this.invoiceNumber = invoiceNumber;
-
 
19669
    }
-
 
19670
 
-
 
19671
    public void unsetInvoiceNumber() {
-
 
19672
      this.invoiceNumber = null;
-
 
19673
    }
-
 
19674
 
-
 
19675
    /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
-
 
19676
    public boolean isSetInvoiceNumber() {
-
 
19677
      return this.invoiceNumber != null;
-
 
19678
    }
-
 
19679
 
-
 
19680
    public void setInvoiceNumberIsSet(boolean value) {
-
 
19681
      if (!value) {
-
 
19682
        this.invoiceNumber = null;
-
 
19683
      }
-
 
19684
    }
-
 
19685
 
-
 
19686
    public long getSupplierId() {
-
 
19687
      return this.supplierId;
-
 
19688
    }
-
 
19689
 
-
 
19690
    public void setSupplierId(long supplierId) {
-
 
19691
      this.supplierId = supplierId;
-
 
19692
      setSupplierIdIsSet(true);
-
 
19693
    }
-
 
19694
 
-
 
19695
    public void unsetSupplierId() {
-
 
19696
      __isset_bit_vector.clear(__SUPPLIERID_ISSET_ID);
-
 
19697
    }
-
 
19698
 
-
 
19699
    /** Returns true if field supplierId is set (has been assigned a value) and false otherwise */
-
 
19700
    public boolean isSetSupplierId() {
-
 
19701
      return __isset_bit_vector.get(__SUPPLIERID_ISSET_ID);
-
 
19702
    }
-
 
19703
 
-
 
19704
    public void setSupplierIdIsSet(boolean value) {
-
 
19705
      __isset_bit_vector.set(__SUPPLIERID_ISSET_ID, value);
-
 
19706
    }
-
 
19707
 
-
 
19708
    public void setFieldValue(_Fields field, Object value) {
-
 
19709
      switch (field) {
-
 
19710
      case INVOICE_NUMBER:
-
 
19711
        if (value == null) {
-
 
19712
          unsetInvoiceNumber();
-
 
19713
        } else {
-
 
19714
          setInvoiceNumber((String)value);
-
 
19715
        }
-
 
19716
        break;
-
 
19717
 
-
 
19718
      case SUPPLIER_ID:
-
 
19719
        if (value == null) {
-
 
19720
          unsetSupplierId();
-
 
19721
        } else {
-
 
19722
          setSupplierId((Long)value);
-
 
19723
        }
-
 
19724
        break;
-
 
19725
 
-
 
19726
      }
-
 
19727
    }
-
 
19728
 
-
 
19729
    public Object getFieldValue(_Fields field) {
-
 
19730
      switch (field) {
-
 
19731
      case INVOICE_NUMBER:
-
 
19732
        return getInvoiceNumber();
-
 
19733
 
-
 
19734
      case SUPPLIER_ID:
-
 
19735
        return Long.valueOf(getSupplierId());
-
 
19736
 
-
 
19737
      }
-
 
19738
      throw new IllegalStateException();
-
 
19739
    }
-
 
19740
 
-
 
19741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19742
    public boolean isSet(_Fields field) {
-
 
19743
      if (field == null) {
-
 
19744
        throw new IllegalArgumentException();
-
 
19745
      }
-
 
19746
 
-
 
19747
      switch (field) {
-
 
19748
      case INVOICE_NUMBER:
-
 
19749
        return isSetInvoiceNumber();
-
 
19750
      case SUPPLIER_ID:
-
 
19751
        return isSetSupplierId();
-
 
19752
      }
-
 
19753
      throw new IllegalStateException();
-
 
19754
    }
-
 
19755
 
-
 
19756
    @Override
-
 
19757
    public boolean equals(Object that) {
-
 
19758
      if (that == null)
-
 
19759
        return false;
-
 
19760
      if (that instanceof isInvoiceReceived_args)
-
 
19761
        return this.equals((isInvoiceReceived_args)that);
-
 
19762
      return false;
-
 
19763
    }
-
 
19764
 
-
 
19765
    public boolean equals(isInvoiceReceived_args that) {
-
 
19766
      if (that == null)
-
 
19767
        return false;
-
 
19768
 
-
 
19769
      boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
-
 
19770
      boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
-
 
19771
      if (this_present_invoiceNumber || that_present_invoiceNumber) {
-
 
19772
        if (!(this_present_invoiceNumber && that_present_invoiceNumber))
-
 
19773
          return false;
-
 
19774
        if (!this.invoiceNumber.equals(that.invoiceNumber))
-
 
19775
          return false;
-
 
19776
      }
-
 
19777
 
-
 
19778
      boolean this_present_supplierId = true;
-
 
19779
      boolean that_present_supplierId = true;
-
 
19780
      if (this_present_supplierId || that_present_supplierId) {
-
 
19781
        if (!(this_present_supplierId && that_present_supplierId))
-
 
19782
          return false;
-
 
19783
        if (this.supplierId != that.supplierId)
-
 
19784
          return false;
-
 
19785
      }
-
 
19786
 
-
 
19787
      return true;
-
 
19788
    }
-
 
19789
 
-
 
19790
    @Override
-
 
19791
    public int hashCode() {
-
 
19792
      return 0;
-
 
19793
    }
-
 
19794
 
-
 
19795
    public int compareTo(isInvoiceReceived_args other) {
-
 
19796
      if (!getClass().equals(other.getClass())) {
-
 
19797
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19798
      }
-
 
19799
 
-
 
19800
      int lastComparison = 0;
-
 
19801
      isInvoiceReceived_args typedOther = (isInvoiceReceived_args)other;
-
 
19802
 
-
 
19803
      lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
-
 
19804
      if (lastComparison != 0) {
-
 
19805
        return lastComparison;
-
 
19806
      }
-
 
19807
      if (isSetInvoiceNumber()) {
-
 
19808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
-
 
19809
        if (lastComparison != 0) {
-
 
19810
          return lastComparison;
-
 
19811
        }
-
 
19812
      }
-
 
19813
      lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
-
 
19814
      if (lastComparison != 0) {
-
 
19815
        return lastComparison;
-
 
19816
      }
-
 
19817
      if (isSetSupplierId()) {
-
 
19818
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierId, typedOther.supplierId);
-
 
19819
        if (lastComparison != 0) {
-
 
19820
          return lastComparison;
-
 
19821
        }
-
 
19822
      }
-
 
19823
      return 0;
-
 
19824
    }
-
 
19825
 
-
 
19826
    public _Fields fieldForId(int fieldId) {
-
 
19827
      return _Fields.findByThriftId(fieldId);
-
 
19828
    }
-
 
19829
 
-
 
19830
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19831
      org.apache.thrift.protocol.TField field;
-
 
19832
      iprot.readStructBegin();
-
 
19833
      while (true)
-
 
19834
      {
-
 
19835
        field = iprot.readFieldBegin();
-
 
19836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19837
          break;
-
 
19838
        }
-
 
19839
        switch (field.id) {
-
 
19840
          case 1: // INVOICE_NUMBER
-
 
19841
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
19842
              this.invoiceNumber = iprot.readString();
-
 
19843
            } else { 
-
 
19844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19845
            }
-
 
19846
            break;
-
 
19847
          case 2: // SUPPLIER_ID
-
 
19848
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
19849
              this.supplierId = iprot.readI64();
-
 
19850
              setSupplierIdIsSet(true);
-
 
19851
            } else { 
-
 
19852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19853
            }
-
 
19854
            break;
-
 
19855
          default:
-
 
19856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19857
        }
-
 
19858
        iprot.readFieldEnd();
-
 
19859
      }
-
 
19860
      iprot.readStructEnd();
-
 
19861
      validate();
-
 
19862
    }
-
 
19863
 
-
 
19864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19865
      validate();
-
 
19866
 
-
 
19867
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19868
      if (this.invoiceNumber != null) {
-
 
19869
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
-
 
19870
        oprot.writeString(this.invoiceNumber);
-
 
19871
        oprot.writeFieldEnd();
-
 
19872
      }
-
 
19873
      oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
-
 
19874
      oprot.writeI64(this.supplierId);
-
 
19875
      oprot.writeFieldEnd();
-
 
19876
      oprot.writeFieldStop();
-
 
19877
      oprot.writeStructEnd();
-
 
19878
    }
-
 
19879
 
-
 
19880
    @Override
-
 
19881
    public String toString() {
-
 
19882
      StringBuilder sb = new StringBuilder("isInvoiceReceived_args(");
-
 
19883
      boolean first = true;
-
 
19884
 
-
 
19885
      sb.append("invoiceNumber:");
-
 
19886
      if (this.invoiceNumber == null) {
-
 
19887
        sb.append("null");
-
 
19888
      } else {
-
 
19889
        sb.append(this.invoiceNumber);
-
 
19890
      }
-
 
19891
      first = false;
-
 
19892
      if (!first) sb.append(", ");
-
 
19893
      sb.append("supplierId:");
-
 
19894
      sb.append(this.supplierId);
-
 
19895
      first = false;
-
 
19896
      sb.append(")");
-
 
19897
      return sb.toString();
-
 
19898
    }
-
 
19899
 
-
 
19900
    public void validate() throws org.apache.thrift.TException {
-
 
19901
      // check for required fields
-
 
19902
    }
-
 
19903
 
-
 
19904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19905
      try {
-
 
19906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19907
      } catch (org.apache.thrift.TException te) {
-
 
19908
        throw new java.io.IOException(te);
-
 
19909
      }
-
 
19910
    }
-
 
19911
 
-
 
19912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19913
      try {
-
 
19914
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19915
      } catch (org.apache.thrift.TException te) {
-
 
19916
        throw new java.io.IOException(te);
-
 
19917
      }
-
 
19918
    }
-
 
19919
 
-
 
19920
  }
-
 
19921
 
-
 
19922
  public static class isInvoiceReceived_result implements org.apache.thrift.TBase<isInvoiceReceived_result, isInvoiceReceived_result._Fields>, java.io.Serializable, Cloneable   {
-
 
19923
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isInvoiceReceived_result");
-
 
19924
 
-
 
19925
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
19926
 
-
 
19927
    private boolean success; // required
-
 
19928
 
-
 
19929
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19930
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19931
      SUCCESS((short)0, "success");
-
 
19932
 
-
 
19933
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19934
 
-
 
19935
      static {
-
 
19936
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19937
          byName.put(field.getFieldName(), field);
-
 
19938
        }
-
 
19939
      }
-
 
19940
 
-
 
19941
      /**
-
 
19942
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19943
       */
-
 
19944
      public static _Fields findByThriftId(int fieldId) {
-
 
19945
        switch(fieldId) {
-
 
19946
          case 0: // SUCCESS
-
 
19947
            return SUCCESS;
-
 
19948
          default:
-
 
19949
            return null;
-
 
19950
        }
-
 
19951
      }
-
 
19952
 
-
 
19953
      /**
-
 
19954
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19955
       * if it is not found.
-
 
19956
       */
-
 
19957
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19958
        _Fields fields = findByThriftId(fieldId);
-
 
19959
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19960
        return fields;
-
 
19961
      }
-
 
19962
 
-
 
19963
      /**
-
 
19964
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19965
       */
-
 
19966
      public static _Fields findByName(String name) {
-
 
19967
        return byName.get(name);
-
 
19968
      }
-
 
19969
 
-
 
19970
      private final short _thriftId;
-
 
19971
      private final String _fieldName;
-
 
19972
 
-
 
19973
      _Fields(short thriftId, String fieldName) {
-
 
19974
        _thriftId = thriftId;
-
 
19975
        _fieldName = fieldName;
-
 
19976
      }
-
 
19977
 
-
 
19978
      public short getThriftFieldId() {
-
 
19979
        return _thriftId;
-
 
19980
      }
-
 
19981
 
-
 
19982
      public String getFieldName() {
-
 
19983
        return _fieldName;
-
 
19984
      }
-
 
19985
    }
-
 
19986
 
-
 
19987
    // isset id assignments
-
 
19988
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
19989
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
19990
 
-
 
19991
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19992
    static {
-
 
19993
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19994
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19995
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
19996
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19997
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isInvoiceReceived_result.class, metaDataMap);
-
 
19998
    }
-
 
19999
 
-
 
20000
    public isInvoiceReceived_result() {
-
 
20001
    }
-
 
20002
 
-
 
20003
    public isInvoiceReceived_result(
-
 
20004
      boolean success)
-
 
20005
    {
-
 
20006
      this();
-
 
20007
      this.success = success;
-
 
20008
      setSuccessIsSet(true);
-
 
20009
    }
-
 
20010
 
-
 
20011
    /**
-
 
20012
     * Performs a deep copy on <i>other</i>.
-
 
20013
     */
-
 
20014
    public isInvoiceReceived_result(isInvoiceReceived_result other) {
-
 
20015
      __isset_bit_vector.clear();
-
 
20016
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
20017
      this.success = other.success;
-
 
20018
    }
-
 
20019
 
-
 
20020
    public isInvoiceReceived_result deepCopy() {
-
 
20021
      return new isInvoiceReceived_result(this);
-
 
20022
    }
-
 
20023
 
-
 
20024
    @Override
-
 
20025
    public void clear() {
-
 
20026
      setSuccessIsSet(false);
-
 
20027
      this.success = false;
-
 
20028
    }
-
 
20029
 
-
 
20030
    public boolean isSuccess() {
-
 
20031
      return this.success;
-
 
20032
    }
-
 
20033
 
-
 
20034
    public void setSuccess(boolean success) {
-
 
20035
      this.success = success;
-
 
20036
      setSuccessIsSet(true);
-
 
20037
    }
-
 
20038
 
-
 
20039
    public void unsetSuccess() {
-
 
20040
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
20041
    }
-
 
20042
 
-
 
20043
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
20044
    public boolean isSetSuccess() {
-
 
20045
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
20046
    }
-
 
20047
 
-
 
20048
    public void setSuccessIsSet(boolean value) {
-
 
20049
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
20050
    }
-
 
20051
 
-
 
20052
    public void setFieldValue(_Fields field, Object value) {
-
 
20053
      switch (field) {
-
 
20054
      case SUCCESS:
-
 
20055
        if (value == null) {
-
 
20056
          unsetSuccess();
-
 
20057
        } else {
-
 
20058
          setSuccess((Boolean)value);
-
 
20059
        }
-
 
20060
        break;
-
 
20061
 
-
 
20062
      }
-
 
20063
    }
-
 
20064
 
-
 
20065
    public Object getFieldValue(_Fields field) {
-
 
20066
      switch (field) {
-
 
20067
      case SUCCESS:
-
 
20068
        return Boolean.valueOf(isSuccess());
-
 
20069
 
-
 
20070
      }
-
 
20071
      throw new IllegalStateException();
-
 
20072
    }
-
 
20073
 
-
 
20074
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20075
    public boolean isSet(_Fields field) {
-
 
20076
      if (field == null) {
-
 
20077
        throw new IllegalArgumentException();
-
 
20078
      }
-
 
20079
 
-
 
20080
      switch (field) {
-
 
20081
      case SUCCESS:
-
 
20082
        return isSetSuccess();
-
 
20083
      }
-
 
20084
      throw new IllegalStateException();
-
 
20085
    }
-
 
20086
 
-
 
20087
    @Override
-
 
20088
    public boolean equals(Object that) {
-
 
20089
      if (that == null)
-
 
20090
        return false;
-
 
20091
      if (that instanceof isInvoiceReceived_result)
-
 
20092
        return this.equals((isInvoiceReceived_result)that);
-
 
20093
      return false;
-
 
20094
    }
-
 
20095
 
-
 
20096
    public boolean equals(isInvoiceReceived_result that) {
-
 
20097
      if (that == null)
-
 
20098
        return false;
-
 
20099
 
-
 
20100
      boolean this_present_success = true;
-
 
20101
      boolean that_present_success = true;
-
 
20102
      if (this_present_success || that_present_success) {
-
 
20103
        if (!(this_present_success && that_present_success))
-
 
20104
          return false;
-
 
20105
        if (this.success != that.success)
-
 
20106
          return false;
-
 
20107
      }
-
 
20108
 
-
 
20109
      return true;
-
 
20110
    }
-
 
20111
 
-
 
20112
    @Override
-
 
20113
    public int hashCode() {
-
 
20114
      return 0;
-
 
20115
    }
-
 
20116
 
-
 
20117
    public int compareTo(isInvoiceReceived_result other) {
-
 
20118
      if (!getClass().equals(other.getClass())) {
-
 
20119
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20120
      }
-
 
20121
 
-
 
20122
      int lastComparison = 0;
-
 
20123
      isInvoiceReceived_result typedOther = (isInvoiceReceived_result)other;
-
 
20124
 
-
 
20125
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
20126
      if (lastComparison != 0) {
-
 
20127
        return lastComparison;
-
 
20128
      }
-
 
20129
      if (isSetSuccess()) {
-
 
20130
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
20131
        if (lastComparison != 0) {
-
 
20132
          return lastComparison;
-
 
20133
        }
-
 
20134
      }
-
 
20135
      return 0;
-
 
20136
    }
-
 
20137
 
-
 
20138
    public _Fields fieldForId(int fieldId) {
-
 
20139
      return _Fields.findByThriftId(fieldId);
-
 
20140
    }
-
 
20141
 
-
 
20142
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20143
      org.apache.thrift.protocol.TField field;
-
 
20144
      iprot.readStructBegin();
-
 
20145
      while (true)
-
 
20146
      {
-
 
20147
        field = iprot.readFieldBegin();
-
 
20148
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20149
          break;
-
 
20150
        }
-
 
20151
        switch (field.id) {
-
 
20152
          case 0: // SUCCESS
-
 
20153
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
20154
              this.success = iprot.readBool();
-
 
20155
              setSuccessIsSet(true);
-
 
20156
            } else { 
-
 
20157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20158
            }
-
 
20159
            break;
-
 
20160
          default:
-
 
20161
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20162
        }
-
 
20163
        iprot.readFieldEnd();
-
 
20164
      }
-
 
20165
      iprot.readStructEnd();
-
 
20166
      validate();
-
 
20167
    }
-
 
20168
 
-
 
20169
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20170
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20171
 
-
 
20172
      if (this.isSetSuccess()) {
-
 
20173
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
20174
        oprot.writeBool(this.success);
-
 
20175
        oprot.writeFieldEnd();
-
 
20176
      }
-
 
20177
      oprot.writeFieldStop();
-
 
20178
      oprot.writeStructEnd();
-
 
20179
    }
-
 
20180
 
-
 
20181
    @Override
-
 
20182
    public String toString() {
-
 
20183
      StringBuilder sb = new StringBuilder("isInvoiceReceived_result(");
-
 
20184
      boolean first = true;
-
 
20185
 
-
 
20186
      sb.append("success:");
-
 
20187
      sb.append(this.success);
-
 
20188
      first = false;
-
 
20189
      sb.append(")");
-
 
20190
      return sb.toString();
-
 
20191
    }
-
 
20192
 
-
 
20193
    public void validate() throws org.apache.thrift.TException {
17881
      // check for required fields
20194
      // check for required fields
17882
    }
20195
    }
17883
 
20196
 
17884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20197
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17885
      try {
20198
      try {