Subversion Repositories SmartDukaan

Rev

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

Rev 4555 Rev 4754
Line 84... Line 84...
84
     * 
84
     * 
85
     * @param purchaseId
85
     * @param purchaseId
86
     */
86
     */
87
    public PurchaseOrder getPurchaseOrderForPurchase(long purchaseId) throws org.apache.thrift.TException;
87
    public PurchaseOrder getPurchaseOrderForPurchase(long purchaseId) throws org.apache.thrift.TException;
88
 
88
 
-
 
89
    /**
-
 
90
     * Creates purchase order objects from pending orders
-
 
91
     * 
-
 
92
     * @param warehouseId
-
 
93
     */
-
 
94
    public List<PurchaseOrder> getPendingPurchaseOrders(long warehouseId) throws PurchaseServiceException, org.apache.thrift.TException;
-
 
95
 
-
 
96
    /**
-
 
97
     * Returns all the valid suppliers
-
 
98
     */
-
 
99
    public List<Supplier> getSuppliers() throws PurchaseServiceException, org.apache.thrift.TException;
-
 
100
 
-
 
101
    /**
-
 
102
     * Fulfills a given purchase order with an item.
-
 
103
     * 
-
 
104
     * @param purchaseOrderId
-
 
105
     * @param itemId
-
 
106
     * @param quantity
-
 
107
     */
-
 
108
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity) throws PurchaseServiceException, org.apache.thrift.TException;
-
 
109
 
-
 
110
    /**
-
 
111
     * Amends a PO as per the new lineitems passed
-
 
112
     * 
-
 
113
     * @param purchaseOrder
-
 
114
     */
-
 
115
    public void updatePurchaseOrder(PurchaseOrder purchaseOrder) throws PurchaseServiceException, org.apache.thrift.TException;
-
 
116
 
89
  }
117
  }
90
 
118
 
91
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
119
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
92
 
120
 
93
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
121
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
Line 104... Line 132...
104
 
132
 
105
    public void getAllPurchases(long purchaseOrderId, boolean open, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPurchases_call> resultHandler) throws org.apache.thrift.TException;
133
    public void getAllPurchases(long purchaseOrderId, boolean open, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPurchases_call> resultHandler) throws org.apache.thrift.TException;
106
 
134
 
107
    public void getPurchaseOrderForPurchase(long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseOrderForPurchase_call> resultHandler) throws org.apache.thrift.TException;
135
    public void getPurchaseOrderForPurchase(long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseOrderForPurchase_call> resultHandler) throws org.apache.thrift.TException;
108
 
136
 
-
 
137
    public void getPendingPurchaseOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingPurchaseOrders_call> resultHandler) throws org.apache.thrift.TException;
-
 
138
 
-
 
139
    public void getSuppliers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuppliers_call> resultHandler) throws org.apache.thrift.TException;
-
 
140
 
-
 
141
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fulfillPO_call> resultHandler) throws org.apache.thrift.TException;
-
 
142
 
-
 
143
    public void updatePurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
144
 
109
  }
145
  }
110
 
146
 
111
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
147
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
112
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
148
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
113
      public Factory() {}
149
      public Factory() {}
Line 334... Line 370...
334
        return result.success;
370
        return result.success;
335
      }
371
      }
336
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseOrderForPurchase failed: unknown result");
372
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseOrderForPurchase failed: unknown result");
337
    }
373
    }
338
 
374
 
-
 
375
    public List<PurchaseOrder> getPendingPurchaseOrders(long warehouseId) throws PurchaseServiceException, org.apache.thrift.TException
-
 
376
    {
-
 
377
      send_getPendingPurchaseOrders(warehouseId);
-
 
378
      return recv_getPendingPurchaseOrders();
-
 
379
    }
-
 
380
 
-
 
381
    public void send_getPendingPurchaseOrders(long warehouseId) throws org.apache.thrift.TException
-
 
382
    {
-
 
383
      getPendingPurchaseOrders_args args = new getPendingPurchaseOrders_args();
-
 
384
      args.setWarehouseId(warehouseId);
-
 
385
      sendBase("getPendingPurchaseOrders", args);
-
 
386
    }
-
 
387
 
-
 
388
    public List<PurchaseOrder> recv_getPendingPurchaseOrders() throws PurchaseServiceException, org.apache.thrift.TException
-
 
389
    {
-
 
390
      getPendingPurchaseOrders_result result = new getPendingPurchaseOrders_result();
-
 
391
      receiveBase(result, "getPendingPurchaseOrders");
-
 
392
      if (result.isSetSuccess()) {
-
 
393
        return result.success;
-
 
394
      }
-
 
395
      if (result.e != null) {
-
 
396
        throw result.e;
-
 
397
      }
-
 
398
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingPurchaseOrders failed: unknown result");
-
 
399
    }
-
 
400
 
-
 
401
    public List<Supplier> getSuppliers() throws PurchaseServiceException, org.apache.thrift.TException
-
 
402
    {
-
 
403
      send_getSuppliers();
-
 
404
      return recv_getSuppliers();
-
 
405
    }
-
 
406
 
-
 
407
    public void send_getSuppliers() throws org.apache.thrift.TException
-
 
408
    {
-
 
409
      getSuppliers_args args = new getSuppliers_args();
-
 
410
      sendBase("getSuppliers", args);
-
 
411
    }
-
 
412
 
-
 
413
    public List<Supplier> recv_getSuppliers() throws PurchaseServiceException, org.apache.thrift.TException
-
 
414
    {
-
 
415
      getSuppliers_result result = new getSuppliers_result();
-
 
416
      receiveBase(result, "getSuppliers");
-
 
417
      if (result.isSetSuccess()) {
-
 
418
        return result.success;
-
 
419
      }
-
 
420
      if (result.e != null) {
-
 
421
        throw result.e;
-
 
422
      }
-
 
423
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuppliers failed: unknown result");
-
 
424
    }
-
 
425
 
-
 
426
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity) throws PurchaseServiceException, org.apache.thrift.TException
-
 
427
    {
-
 
428
      send_fulfillPO(purchaseOrderId, itemId, quantity);
-
 
429
      recv_fulfillPO();
-
 
430
    }
-
 
431
 
-
 
432
    public void send_fulfillPO(long purchaseOrderId, long itemId, long quantity) throws org.apache.thrift.TException
-
 
433
    {
-
 
434
      fulfillPO_args args = new fulfillPO_args();
-
 
435
      args.setPurchaseOrderId(purchaseOrderId);
-
 
436
      args.setItemId(itemId);
-
 
437
      args.setQuantity(quantity);
-
 
438
      sendBase("fulfillPO", args);
-
 
439
    }
-
 
440
 
-
 
441
    public void recv_fulfillPO() throws PurchaseServiceException, org.apache.thrift.TException
-
 
442
    {
-
 
443
      fulfillPO_result result = new fulfillPO_result();
-
 
444
      receiveBase(result, "fulfillPO");
-
 
445
      if (result.e != null) {
-
 
446
        throw result.e;
-
 
447
      }
-
 
448
      return;
-
 
449
    }
-
 
450
 
-
 
451
    public void updatePurchaseOrder(PurchaseOrder purchaseOrder) throws PurchaseServiceException, org.apache.thrift.TException
-
 
452
    {
-
 
453
      send_updatePurchaseOrder(purchaseOrder);
-
 
454
      recv_updatePurchaseOrder();
-
 
455
    }
-
 
456
 
-
 
457
    public void send_updatePurchaseOrder(PurchaseOrder purchaseOrder) throws org.apache.thrift.TException
-
 
458
    {
-
 
459
      updatePurchaseOrder_args args = new updatePurchaseOrder_args();
-
 
460
      args.setPurchaseOrder(purchaseOrder);
-
 
461
      sendBase("updatePurchaseOrder", args);
-
 
462
    }
-
 
463
 
-
 
464
    public void recv_updatePurchaseOrder() throws PurchaseServiceException, org.apache.thrift.TException
-
 
465
    {
-
 
466
      updatePurchaseOrder_result result = new updatePurchaseOrder_result();
-
 
467
      receiveBase(result, "updatePurchaseOrder");
-
 
468
      if (result.e != null) {
-
 
469
        throw result.e;
-
 
470
      }
-
 
471
      return;
-
 
472
    }
-
 
473
 
339
  }
474
  }
340
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
475
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
341
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
476
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
342
      private org.apache.thrift.async.TAsyncClientManager clientManager;
477
      private org.apache.thrift.async.TAsyncClientManager clientManager;
343
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
478
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 617... Line 752...
617
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
752
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
618
        return (new Client(prot)).recv_getPurchaseOrderForPurchase();
753
        return (new Client(prot)).recv_getPurchaseOrderForPurchase();
619
      }
754
      }
620
    }
755
    }
621
 
756
 
-
 
757
    public void getPendingPurchaseOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getPendingPurchaseOrders_call> resultHandler) throws org.apache.thrift.TException {
-
 
758
      checkReady();
-
 
759
      getPendingPurchaseOrders_call method_call = new getPendingPurchaseOrders_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
760
      this.___currentMethod = method_call;
-
 
761
      ___manager.call(method_call);
-
 
762
    }
-
 
763
 
-
 
764
    public static class getPendingPurchaseOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
765
      private long warehouseId;
-
 
766
      public getPendingPurchaseOrders_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getPendingPurchaseOrders_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 {
-
 
767
        super(client, protocolFactory, transport, resultHandler, false);
-
 
768
        this.warehouseId = warehouseId;
-
 
769
      }
-
 
770
 
-
 
771
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
772
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingPurchaseOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
773
        getPendingPurchaseOrders_args args = new getPendingPurchaseOrders_args();
-
 
774
        args.setWarehouseId(warehouseId);
-
 
775
        args.write(prot);
-
 
776
        prot.writeMessageEnd();
-
 
777
      }
-
 
778
 
-
 
779
      public List<PurchaseOrder> getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
780
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
781
          throw new IllegalStateException("Method call not finished!");
-
 
782
        }
-
 
783
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
784
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
785
        return (new Client(prot)).recv_getPendingPurchaseOrders();
-
 
786
      }
-
 
787
    }
-
 
788
 
-
 
789
    public void getSuppliers(org.apache.thrift.async.AsyncMethodCallback<getSuppliers_call> resultHandler) throws org.apache.thrift.TException {
-
 
790
      checkReady();
-
 
791
      getSuppliers_call method_call = new getSuppliers_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
792
      this.___currentMethod = method_call;
-
 
793
      ___manager.call(method_call);
-
 
794
    }
-
 
795
 
-
 
796
    public static class getSuppliers_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
797
      public getSuppliers_call(org.apache.thrift.async.AsyncMethodCallback<getSuppliers_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 {
-
 
798
        super(client, protocolFactory, transport, resultHandler, false);
-
 
799
      }
-
 
800
 
-
 
801
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
802
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuppliers", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
803
        getSuppliers_args args = new getSuppliers_args();
-
 
804
        args.write(prot);
-
 
805
        prot.writeMessageEnd();
-
 
806
      }
-
 
807
 
-
 
808
      public List<Supplier> getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
809
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
810
          throw new IllegalStateException("Method call not finished!");
-
 
811
        }
-
 
812
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
813
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
814
        return (new Client(prot)).recv_getSuppliers();
-
 
815
      }
-
 
816
    }
-
 
817
 
-
 
818
    public void fulfillPO(long purchaseOrderId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<fulfillPO_call> resultHandler) throws org.apache.thrift.TException {
-
 
819
      checkReady();
-
 
820
      fulfillPO_call method_call = new fulfillPO_call(purchaseOrderId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
-
 
821
      this.___currentMethod = method_call;
-
 
822
      ___manager.call(method_call);
-
 
823
    }
-
 
824
 
-
 
825
    public static class fulfillPO_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
826
      private long purchaseOrderId;
-
 
827
      private long itemId;
-
 
828
      private long quantity;
-
 
829
      public fulfillPO_call(long purchaseOrderId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<fulfillPO_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 {
-
 
830
        super(client, protocolFactory, transport, resultHandler, false);
-
 
831
        this.purchaseOrderId = purchaseOrderId;
-
 
832
        this.itemId = itemId;
-
 
833
        this.quantity = quantity;
-
 
834
      }
-
 
835
 
-
 
836
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
837
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fulfillPO", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
838
        fulfillPO_args args = new fulfillPO_args();
-
 
839
        args.setPurchaseOrderId(purchaseOrderId);
-
 
840
        args.setItemId(itemId);
-
 
841
        args.setQuantity(quantity);
-
 
842
        args.write(prot);
-
 
843
        prot.writeMessageEnd();
-
 
844
      }
-
 
845
 
-
 
846
      public void getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
847
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
848
          throw new IllegalStateException("Method call not finished!");
-
 
849
        }
-
 
850
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
851
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
852
        (new Client(prot)).recv_fulfillPO();
-
 
853
      }
-
 
854
    }
-
 
855
 
-
 
856
    public void updatePurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<updatePurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
857
      checkReady();
-
 
858
      updatePurchaseOrder_call method_call = new updatePurchaseOrder_call(purchaseOrder, resultHandler, this, ___protocolFactory, ___transport);
-
 
859
      this.___currentMethod = method_call;
-
 
860
      ___manager.call(method_call);
-
 
861
    }
-
 
862
 
-
 
863
    public static class updatePurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
864
      private PurchaseOrder purchaseOrder;
-
 
865
      public updatePurchaseOrder_call(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<updatePurchaseOrder_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 {
-
 
866
        super(client, protocolFactory, transport, resultHandler, false);
-
 
867
        this.purchaseOrder = purchaseOrder;
-
 
868
      }
-
 
869
 
-
 
870
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
871
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
872
        updatePurchaseOrder_args args = new updatePurchaseOrder_args();
-
 
873
        args.setPurchaseOrder(purchaseOrder);
-
 
874
        args.write(prot);
-
 
875
        prot.writeMessageEnd();
-
 
876
      }
-
 
877
 
-
 
878
      public void getResult() throws PurchaseServiceException, org.apache.thrift.TException {
-
 
879
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
880
          throw new IllegalStateException("Method call not finished!");
-
 
881
        }
-
 
882
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
883
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
884
        (new Client(prot)).recv_updatePurchaseOrder();
-
 
885
      }
-
 
886
    }
-
 
887
 
622
  }
888
  }
623
 
889
 
624
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
890
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
625
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
891
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
626
    public Processor(I iface) {
892
    public Processor(I iface) {
Line 638... Line 904...
638
      processMap.put("getSupplier", new getSupplier());
904
      processMap.put("getSupplier", new getSupplier());
639
      processMap.put("startPurchase", new startPurchase());
905
      processMap.put("startPurchase", new startPurchase());
640
      processMap.put("closePurchase", new closePurchase());
906
      processMap.put("closePurchase", new closePurchase());
641
      processMap.put("getAllPurchases", new getAllPurchases());
907
      processMap.put("getAllPurchases", new getAllPurchases());
642
      processMap.put("getPurchaseOrderForPurchase", new getPurchaseOrderForPurchase());
908
      processMap.put("getPurchaseOrderForPurchase", new getPurchaseOrderForPurchase());
-
 
909
      processMap.put("getPendingPurchaseOrders", new getPendingPurchaseOrders());
-
 
910
      processMap.put("getSuppliers", new getSuppliers());
-
 
911
      processMap.put("fulfillPO", new fulfillPO());
-
 
912
      processMap.put("updatePurchaseOrder", new updatePurchaseOrder());
643
      return processMap;
913
      return processMap;
644
    }
914
    }
645
 
915
 
646
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
916
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
647
      public createPurchaseOrder() {
917
      public createPurchaseOrder() {
Line 800... Line 1070...
800
        result.success = iface.getPurchaseOrderForPurchase(args.purchaseId);
1070
        result.success = iface.getPurchaseOrderForPurchase(args.purchaseId);
801
        return result;
1071
        return result;
802
      }
1072
      }
803
    }
1073
    }
804
 
1074
 
-
 
1075
    private static class getPendingPurchaseOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingPurchaseOrders_args> {
-
 
1076
      public getPendingPurchaseOrders() {
-
 
1077
        super("getPendingPurchaseOrders");
-
 
1078
      }
-
 
1079
 
-
 
1080
      protected getPendingPurchaseOrders_args getEmptyArgsInstance() {
-
 
1081
        return new getPendingPurchaseOrders_args();
-
 
1082
      }
-
 
1083
 
-
 
1084
      protected getPendingPurchaseOrders_result getResult(I iface, getPendingPurchaseOrders_args args) throws org.apache.thrift.TException {
-
 
1085
        getPendingPurchaseOrders_result result = new getPendingPurchaseOrders_result();
-
 
1086
        try {
-
 
1087
          result.success = iface.getPendingPurchaseOrders(args.warehouseId);
-
 
1088
        } catch (PurchaseServiceException e) {
-
 
1089
          result.e = e;
-
 
1090
        }
-
 
1091
        return result;
-
 
1092
      }
-
 
1093
    }
-
 
1094
 
-
 
1095
    private static class getSuppliers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuppliers_args> {
-
 
1096
      public getSuppliers() {
-
 
1097
        super("getSuppliers");
-
 
1098
      }
-
 
1099
 
-
 
1100
      protected getSuppliers_args getEmptyArgsInstance() {
-
 
1101
        return new getSuppliers_args();
-
 
1102
      }
-
 
1103
 
-
 
1104
      protected getSuppliers_result getResult(I iface, getSuppliers_args args) throws org.apache.thrift.TException {
-
 
1105
        getSuppliers_result result = new getSuppliers_result();
-
 
1106
        try {
-
 
1107
          result.success = iface.getSuppliers();
-
 
1108
        } catch (PurchaseServiceException e) {
-
 
1109
          result.e = e;
-
 
1110
        }
-
 
1111
        return result;
-
 
1112
      }
-
 
1113
    }
-
 
1114
 
-
 
1115
    private static class fulfillPO<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fulfillPO_args> {
-
 
1116
      public fulfillPO() {
-
 
1117
        super("fulfillPO");
-
 
1118
      }
-
 
1119
 
-
 
1120
      protected fulfillPO_args getEmptyArgsInstance() {
-
 
1121
        return new fulfillPO_args();
-
 
1122
      }
-
 
1123
 
-
 
1124
      protected fulfillPO_result getResult(I iface, fulfillPO_args args) throws org.apache.thrift.TException {
-
 
1125
        fulfillPO_result result = new fulfillPO_result();
-
 
1126
        try {
-
 
1127
          iface.fulfillPO(args.purchaseOrderId, args.itemId, args.quantity);
-
 
1128
        } catch (PurchaseServiceException e) {
-
 
1129
          result.e = e;
-
 
1130
        }
-
 
1131
        return result;
-
 
1132
      }
-
 
1133
    }
-
 
1134
 
-
 
1135
    private static class updatePurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePurchaseOrder_args> {
-
 
1136
      public updatePurchaseOrder() {
-
 
1137
        super("updatePurchaseOrder");
-
 
1138
      }
-
 
1139
 
-
 
1140
      protected updatePurchaseOrder_args getEmptyArgsInstance() {
-
 
1141
        return new updatePurchaseOrder_args();
-
 
1142
      }
-
 
1143
 
-
 
1144
      protected updatePurchaseOrder_result getResult(I iface, updatePurchaseOrder_args args) throws org.apache.thrift.TException {
-
 
1145
        updatePurchaseOrder_result result = new updatePurchaseOrder_result();
-
 
1146
        try {
-
 
1147
          iface.updatePurchaseOrder(args.purchaseOrder);
-
 
1148
        } catch (PurchaseServiceException e) {
-
 
1149
          result.e = e;
-
 
1150
        }
-
 
1151
        return result;
-
 
1152
      }
-
 
1153
    }
-
 
1154
 
805
  }
1155
  }
806
 
1156
 
807
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
1157
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
1158
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
809
 
1159
 
Line 6429... Line 6779...
6429
      }
6779
      }
6430
      first = false;
6780
      first = false;
6431
      sb.append(")");
6781
      sb.append(")");
6432
      return sb.toString();
6782
      return sb.toString();
6433
    }
6783
    }
-
 
6784
 
-
 
6785
    public void validate() throws org.apache.thrift.TException {
-
 
6786
      // check for required fields
-
 
6787
    }
-
 
6788
 
-
 
6789
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6790
      try {
-
 
6791
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6792
      } catch (org.apache.thrift.TException te) {
-
 
6793
        throw new java.io.IOException(te);
-
 
6794
      }
-
 
6795
    }
-
 
6796
 
-
 
6797
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6798
      try {
-
 
6799
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6800
      } catch (org.apache.thrift.TException te) {
-
 
6801
        throw new java.io.IOException(te);
-
 
6802
      }
-
 
6803
    }
-
 
6804
 
-
 
6805
  }
-
 
6806
 
-
 
6807
  public static class getPendingPurchaseOrders_args implements org.apache.thrift.TBase<getPendingPurchaseOrders_args, getPendingPurchaseOrders_args._Fields>, java.io.Serializable, Cloneable   {
-
 
6808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingPurchaseOrders_args");
-
 
6809
 
-
 
6810
    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);
-
 
6811
 
-
 
6812
    private long warehouseId; // required
-
 
6813
 
-
 
6814
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6815
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6816
      WAREHOUSE_ID((short)1, "warehouseId");
-
 
6817
 
-
 
6818
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6819
 
-
 
6820
      static {
-
 
6821
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6822
          byName.put(field.getFieldName(), field);
-
 
6823
        }
-
 
6824
      }
-
 
6825
 
-
 
6826
      /**
-
 
6827
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6828
       */
-
 
6829
      public static _Fields findByThriftId(int fieldId) {
-
 
6830
        switch(fieldId) {
-
 
6831
          case 1: // WAREHOUSE_ID
-
 
6832
            return WAREHOUSE_ID;
-
 
6833
          default:
-
 
6834
            return null;
-
 
6835
        }
-
 
6836
      }
-
 
6837
 
-
 
6838
      /**
-
 
6839
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6840
       * if it is not found.
-
 
6841
       */
-
 
6842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6843
        _Fields fields = findByThriftId(fieldId);
-
 
6844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6845
        return fields;
-
 
6846
      }
-
 
6847
 
-
 
6848
      /**
-
 
6849
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6850
       */
-
 
6851
      public static _Fields findByName(String name) {
-
 
6852
        return byName.get(name);
-
 
6853
      }
-
 
6854
 
-
 
6855
      private final short _thriftId;
-
 
6856
      private final String _fieldName;
-
 
6857
 
-
 
6858
      _Fields(short thriftId, String fieldName) {
-
 
6859
        _thriftId = thriftId;
-
 
6860
        _fieldName = fieldName;
-
 
6861
      }
-
 
6862
 
-
 
6863
      public short getThriftFieldId() {
-
 
6864
        return _thriftId;
-
 
6865
      }
-
 
6866
 
-
 
6867
      public String getFieldName() {
-
 
6868
        return _fieldName;
-
 
6869
      }
-
 
6870
    }
-
 
6871
 
-
 
6872
    // isset id assignments
-
 
6873
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
6874
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
6875
 
-
 
6876
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6877
    static {
-
 
6878
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6879
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
6881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingPurchaseOrders_args.class, metaDataMap);
-
 
6883
    }
-
 
6884
 
-
 
6885
    public getPendingPurchaseOrders_args() {
-
 
6886
    }
-
 
6887
 
-
 
6888
    public getPendingPurchaseOrders_args(
-
 
6889
      long warehouseId)
-
 
6890
    {
-
 
6891
      this();
-
 
6892
      this.warehouseId = warehouseId;
-
 
6893
      setWarehouseIdIsSet(true);
-
 
6894
    }
-
 
6895
 
-
 
6896
    /**
-
 
6897
     * Performs a deep copy on <i>other</i>.
-
 
6898
     */
-
 
6899
    public getPendingPurchaseOrders_args(getPendingPurchaseOrders_args other) {
-
 
6900
      __isset_bit_vector.clear();
-
 
6901
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6902
      this.warehouseId = other.warehouseId;
-
 
6903
    }
-
 
6904
 
-
 
6905
    public getPendingPurchaseOrders_args deepCopy() {
-
 
6906
      return new getPendingPurchaseOrders_args(this);
-
 
6907
    }
-
 
6908
 
-
 
6909
    @Override
-
 
6910
    public void clear() {
-
 
6911
      setWarehouseIdIsSet(false);
-
 
6912
      this.warehouseId = 0;
-
 
6913
    }
-
 
6914
 
-
 
6915
    public long getWarehouseId() {
-
 
6916
      return this.warehouseId;
-
 
6917
    }
-
 
6918
 
-
 
6919
    public void setWarehouseId(long warehouseId) {
-
 
6920
      this.warehouseId = warehouseId;
-
 
6921
      setWarehouseIdIsSet(true);
-
 
6922
    }
-
 
6923
 
-
 
6924
    public void unsetWarehouseId() {
-
 
6925
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
6926
    }
-
 
6927
 
-
 
6928
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
6929
    public boolean isSetWarehouseId() {
-
 
6930
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
6931
    }
-
 
6932
 
-
 
6933
    public void setWarehouseIdIsSet(boolean value) {
-
 
6934
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
6935
    }
-
 
6936
 
-
 
6937
    public void setFieldValue(_Fields field, Object value) {
-
 
6938
      switch (field) {
-
 
6939
      case WAREHOUSE_ID:
-
 
6940
        if (value == null) {
-
 
6941
          unsetWarehouseId();
-
 
6942
        } else {
-
 
6943
          setWarehouseId((Long)value);
-
 
6944
        }
-
 
6945
        break;
-
 
6946
 
-
 
6947
      }
-
 
6948
    }
-
 
6949
 
-
 
6950
    public Object getFieldValue(_Fields field) {
-
 
6951
      switch (field) {
-
 
6952
      case WAREHOUSE_ID:
-
 
6953
        return Long.valueOf(getWarehouseId());
-
 
6954
 
-
 
6955
      }
-
 
6956
      throw new IllegalStateException();
-
 
6957
    }
-
 
6958
 
-
 
6959
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6960
    public boolean isSet(_Fields field) {
-
 
6961
      if (field == null) {
-
 
6962
        throw new IllegalArgumentException();
-
 
6963
      }
-
 
6964
 
-
 
6965
      switch (field) {
-
 
6966
      case WAREHOUSE_ID:
-
 
6967
        return isSetWarehouseId();
-
 
6968
      }
-
 
6969
      throw new IllegalStateException();
-
 
6970
    }
-
 
6971
 
-
 
6972
    @Override
-
 
6973
    public boolean equals(Object that) {
-
 
6974
      if (that == null)
-
 
6975
        return false;
-
 
6976
      if (that instanceof getPendingPurchaseOrders_args)
-
 
6977
        return this.equals((getPendingPurchaseOrders_args)that);
-
 
6978
      return false;
-
 
6979
    }
-
 
6980
 
-
 
6981
    public boolean equals(getPendingPurchaseOrders_args that) {
-
 
6982
      if (that == null)
-
 
6983
        return false;
-
 
6984
 
-
 
6985
      boolean this_present_warehouseId = true;
-
 
6986
      boolean that_present_warehouseId = true;
-
 
6987
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
6988
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
6989
          return false;
-
 
6990
        if (this.warehouseId != that.warehouseId)
-
 
6991
          return false;
-
 
6992
      }
-
 
6993
 
-
 
6994
      return true;
-
 
6995
    }
-
 
6996
 
-
 
6997
    @Override
-
 
6998
    public int hashCode() {
-
 
6999
      return 0;
-
 
7000
    }
-
 
7001
 
-
 
7002
    public int compareTo(getPendingPurchaseOrders_args other) {
-
 
7003
      if (!getClass().equals(other.getClass())) {
-
 
7004
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7005
      }
-
 
7006
 
-
 
7007
      int lastComparison = 0;
-
 
7008
      getPendingPurchaseOrders_args typedOther = (getPendingPurchaseOrders_args)other;
-
 
7009
 
-
 
7010
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
7011
      if (lastComparison != 0) {
-
 
7012
        return lastComparison;
-
 
7013
      }
-
 
7014
      if (isSetWarehouseId()) {
-
 
7015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
7016
        if (lastComparison != 0) {
-
 
7017
          return lastComparison;
-
 
7018
        }
-
 
7019
      }
-
 
7020
      return 0;
-
 
7021
    }
-
 
7022
 
-
 
7023
    public _Fields fieldForId(int fieldId) {
-
 
7024
      return _Fields.findByThriftId(fieldId);
-
 
7025
    }
-
 
7026
 
-
 
7027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7028
      org.apache.thrift.protocol.TField field;
-
 
7029
      iprot.readStructBegin();
-
 
7030
      while (true)
-
 
7031
      {
-
 
7032
        field = iprot.readFieldBegin();
-
 
7033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
7034
          break;
-
 
7035
        }
-
 
7036
        switch (field.id) {
-
 
7037
          case 1: // WAREHOUSE_ID
-
 
7038
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
7039
              this.warehouseId = iprot.readI64();
-
 
7040
              setWarehouseIdIsSet(true);
-
 
7041
            } else { 
-
 
7042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7043
            }
-
 
7044
            break;
-
 
7045
          default:
-
 
7046
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7047
        }
-
 
7048
        iprot.readFieldEnd();
-
 
7049
      }
-
 
7050
      iprot.readStructEnd();
-
 
7051
      validate();
-
 
7052
    }
-
 
7053
 
-
 
7054
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7055
      validate();
-
 
7056
 
-
 
7057
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7058
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
7059
      oprot.writeI64(this.warehouseId);
-
 
7060
      oprot.writeFieldEnd();
-
 
7061
      oprot.writeFieldStop();
-
 
7062
      oprot.writeStructEnd();
-
 
7063
    }
-
 
7064
 
-
 
7065
    @Override
-
 
7066
    public String toString() {
-
 
7067
      StringBuilder sb = new StringBuilder("getPendingPurchaseOrders_args(");
-
 
7068
      boolean first = true;
-
 
7069
 
-
 
7070
      sb.append("warehouseId:");
-
 
7071
      sb.append(this.warehouseId);
-
 
7072
      first = false;
-
 
7073
      sb.append(")");
-
 
7074
      return sb.toString();
-
 
7075
    }
-
 
7076
 
-
 
7077
    public void validate() throws org.apache.thrift.TException {
-
 
7078
      // check for required fields
-
 
7079
    }
-
 
7080
 
-
 
7081
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7082
      try {
-
 
7083
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7084
      } catch (org.apache.thrift.TException te) {
-
 
7085
        throw new java.io.IOException(te);
-
 
7086
      }
-
 
7087
    }
-
 
7088
 
-
 
7089
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7090
      try {
-
 
7091
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
7092
        __isset_bit_vector = new BitSet(1);
-
 
7093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7094
      } catch (org.apache.thrift.TException te) {
-
 
7095
        throw new java.io.IOException(te);
-
 
7096
      }
-
 
7097
    }
-
 
7098
 
-
 
7099
  }
-
 
7100
 
-
 
7101
  public static class getPendingPurchaseOrders_result implements org.apache.thrift.TBase<getPendingPurchaseOrders_result, getPendingPurchaseOrders_result._Fields>, java.io.Serializable, Cloneable   {
-
 
7102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingPurchaseOrders_result");
-
 
7103
 
-
 
7104
    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);
-
 
7105
    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);
-
 
7106
 
-
 
7107
    private List<PurchaseOrder> success; // required
-
 
7108
    private PurchaseServiceException e; // required
-
 
7109
 
-
 
7110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7112
      SUCCESS((short)0, "success"),
-
 
7113
      E((short)1, "e");
-
 
7114
 
-
 
7115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7116
 
-
 
7117
      static {
-
 
7118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7119
          byName.put(field.getFieldName(), field);
-
 
7120
        }
-
 
7121
      }
-
 
7122
 
-
 
7123
      /**
-
 
7124
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7125
       */
-
 
7126
      public static _Fields findByThriftId(int fieldId) {
-
 
7127
        switch(fieldId) {
-
 
7128
          case 0: // SUCCESS
-
 
7129
            return SUCCESS;
-
 
7130
          case 1: // E
-
 
7131
            return E;
-
 
7132
          default:
-
 
7133
            return null;
-
 
7134
        }
-
 
7135
      }
-
 
7136
 
-
 
7137
      /**
-
 
7138
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7139
       * if it is not found.
-
 
7140
       */
-
 
7141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7142
        _Fields fields = findByThriftId(fieldId);
-
 
7143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7144
        return fields;
-
 
7145
      }
-
 
7146
 
-
 
7147
      /**
-
 
7148
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7149
       */
-
 
7150
      public static _Fields findByName(String name) {
-
 
7151
        return byName.get(name);
-
 
7152
      }
-
 
7153
 
-
 
7154
      private final short _thriftId;
-
 
7155
      private final String _fieldName;
-
 
7156
 
-
 
7157
      _Fields(short thriftId, String fieldName) {
-
 
7158
        _thriftId = thriftId;
-
 
7159
        _fieldName = fieldName;
-
 
7160
      }
-
 
7161
 
-
 
7162
      public short getThriftFieldId() {
-
 
7163
        return _thriftId;
-
 
7164
      }
-
 
7165
 
-
 
7166
      public String getFieldName() {
-
 
7167
        return _fieldName;
-
 
7168
      }
-
 
7169
    }
-
 
7170
 
-
 
7171
    // isset id assignments
-
 
7172
 
-
 
7173
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7174
    static {
-
 
7175
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7176
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7177
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
7178
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseOrder.class))));
-
 
7179
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
7181
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7182
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingPurchaseOrders_result.class, metaDataMap);
-
 
7183
    }
-
 
7184
 
-
 
7185
    public getPendingPurchaseOrders_result() {
-
 
7186
    }
-
 
7187
 
-
 
7188
    public getPendingPurchaseOrders_result(
-
 
7189
      List<PurchaseOrder> success,
-
 
7190
      PurchaseServiceException e)
-
 
7191
    {
-
 
7192
      this();
-
 
7193
      this.success = success;
-
 
7194
      this.e = e;
-
 
7195
    }
-
 
7196
 
-
 
7197
    /**
-
 
7198
     * Performs a deep copy on <i>other</i>.
-
 
7199
     */
-
 
7200
    public getPendingPurchaseOrders_result(getPendingPurchaseOrders_result other) {
-
 
7201
      if (other.isSetSuccess()) {
-
 
7202
        List<PurchaseOrder> __this__success = new ArrayList<PurchaseOrder>();
-
 
7203
        for (PurchaseOrder other_element : other.success) {
-
 
7204
          __this__success.add(new PurchaseOrder(other_element));
-
 
7205
        }
-
 
7206
        this.success = __this__success;
-
 
7207
      }
-
 
7208
      if (other.isSetE()) {
-
 
7209
        this.e = new PurchaseServiceException(other.e);
-
 
7210
      }
-
 
7211
    }
-
 
7212
 
-
 
7213
    public getPendingPurchaseOrders_result deepCopy() {
-
 
7214
      return new getPendingPurchaseOrders_result(this);
-
 
7215
    }
-
 
7216
 
-
 
7217
    @Override
-
 
7218
    public void clear() {
-
 
7219
      this.success = null;
-
 
7220
      this.e = null;
-
 
7221
    }
-
 
7222
 
-
 
7223
    public int getSuccessSize() {
-
 
7224
      return (this.success == null) ? 0 : this.success.size();
-
 
7225
    }
-
 
7226
 
-
 
7227
    public java.util.Iterator<PurchaseOrder> getSuccessIterator() {
-
 
7228
      return (this.success == null) ? null : this.success.iterator();
-
 
7229
    }
-
 
7230
 
-
 
7231
    public void addToSuccess(PurchaseOrder elem) {
-
 
7232
      if (this.success == null) {
-
 
7233
        this.success = new ArrayList<PurchaseOrder>();
-
 
7234
      }
-
 
7235
      this.success.add(elem);
-
 
7236
    }
-
 
7237
 
-
 
7238
    public List<PurchaseOrder> getSuccess() {
-
 
7239
      return this.success;
-
 
7240
    }
-
 
7241
 
-
 
7242
    public void setSuccess(List<PurchaseOrder> success) {
-
 
7243
      this.success = success;
-
 
7244
    }
-
 
7245
 
-
 
7246
    public void unsetSuccess() {
-
 
7247
      this.success = null;
-
 
7248
    }
-
 
7249
 
-
 
7250
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
7251
    public boolean isSetSuccess() {
-
 
7252
      return this.success != null;
-
 
7253
    }
-
 
7254
 
-
 
7255
    public void setSuccessIsSet(boolean value) {
-
 
7256
      if (!value) {
-
 
7257
        this.success = null;
-
 
7258
      }
-
 
7259
    }
-
 
7260
 
-
 
7261
    public PurchaseServiceException getE() {
-
 
7262
      return this.e;
-
 
7263
    }
-
 
7264
 
-
 
7265
    public void setE(PurchaseServiceException e) {
-
 
7266
      this.e = e;
-
 
7267
    }
-
 
7268
 
-
 
7269
    public void unsetE() {
-
 
7270
      this.e = null;
-
 
7271
    }
-
 
7272
 
-
 
7273
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
7274
    public boolean isSetE() {
-
 
7275
      return this.e != null;
-
 
7276
    }
-
 
7277
 
-
 
7278
    public void setEIsSet(boolean value) {
-
 
7279
      if (!value) {
-
 
7280
        this.e = null;
-
 
7281
      }
-
 
7282
    }
-
 
7283
 
-
 
7284
    public void setFieldValue(_Fields field, Object value) {
-
 
7285
      switch (field) {
-
 
7286
      case SUCCESS:
-
 
7287
        if (value == null) {
-
 
7288
          unsetSuccess();
-
 
7289
        } else {
-
 
7290
          setSuccess((List<PurchaseOrder>)value);
-
 
7291
        }
-
 
7292
        break;
-
 
7293
 
-
 
7294
      case E:
-
 
7295
        if (value == null) {
-
 
7296
          unsetE();
-
 
7297
        } else {
-
 
7298
          setE((PurchaseServiceException)value);
-
 
7299
        }
-
 
7300
        break;
-
 
7301
 
-
 
7302
      }
-
 
7303
    }
-
 
7304
 
-
 
7305
    public Object getFieldValue(_Fields field) {
-
 
7306
      switch (field) {
-
 
7307
      case SUCCESS:
-
 
7308
        return getSuccess();
-
 
7309
 
-
 
7310
      case E:
-
 
7311
        return getE();
-
 
7312
 
-
 
7313
      }
-
 
7314
      throw new IllegalStateException();
-
 
7315
    }
-
 
7316
 
-
 
7317
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7318
    public boolean isSet(_Fields field) {
-
 
7319
      if (field == null) {
-
 
7320
        throw new IllegalArgumentException();
-
 
7321
      }
-
 
7322
 
-
 
7323
      switch (field) {
-
 
7324
      case SUCCESS:
-
 
7325
        return isSetSuccess();
-
 
7326
      case E:
-
 
7327
        return isSetE();
-
 
7328
      }
-
 
7329
      throw new IllegalStateException();
-
 
7330
    }
-
 
7331
 
-
 
7332
    @Override
-
 
7333
    public boolean equals(Object that) {
-
 
7334
      if (that == null)
-
 
7335
        return false;
-
 
7336
      if (that instanceof getPendingPurchaseOrders_result)
-
 
7337
        return this.equals((getPendingPurchaseOrders_result)that);
-
 
7338
      return false;
-
 
7339
    }
-
 
7340
 
-
 
7341
    public boolean equals(getPendingPurchaseOrders_result that) {
-
 
7342
      if (that == null)
-
 
7343
        return false;
-
 
7344
 
-
 
7345
      boolean this_present_success = true && this.isSetSuccess();
-
 
7346
      boolean that_present_success = true && that.isSetSuccess();
-
 
7347
      if (this_present_success || that_present_success) {
-
 
7348
        if (!(this_present_success && that_present_success))
-
 
7349
          return false;
-
 
7350
        if (!this.success.equals(that.success))
-
 
7351
          return false;
-
 
7352
      }
-
 
7353
 
-
 
7354
      boolean this_present_e = true && this.isSetE();
-
 
7355
      boolean that_present_e = true && that.isSetE();
-
 
7356
      if (this_present_e || that_present_e) {
-
 
7357
        if (!(this_present_e && that_present_e))
-
 
7358
          return false;
-
 
7359
        if (!this.e.equals(that.e))
-
 
7360
          return false;
-
 
7361
      }
-
 
7362
 
-
 
7363
      return true;
-
 
7364
    }
-
 
7365
 
-
 
7366
    @Override
-
 
7367
    public int hashCode() {
-
 
7368
      return 0;
-
 
7369
    }
-
 
7370
 
-
 
7371
    public int compareTo(getPendingPurchaseOrders_result other) {
-
 
7372
      if (!getClass().equals(other.getClass())) {
-
 
7373
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7374
      }
-
 
7375
 
-
 
7376
      int lastComparison = 0;
-
 
7377
      getPendingPurchaseOrders_result typedOther = (getPendingPurchaseOrders_result)other;
-
 
7378
 
-
 
7379
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
7380
      if (lastComparison != 0) {
-
 
7381
        return lastComparison;
-
 
7382
      }
-
 
7383
      if (isSetSuccess()) {
-
 
7384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
7385
        if (lastComparison != 0) {
-
 
7386
          return lastComparison;
-
 
7387
        }
-
 
7388
      }
-
 
7389
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
7390
      if (lastComparison != 0) {
-
 
7391
        return lastComparison;
-
 
7392
      }
-
 
7393
      if (isSetE()) {
-
 
7394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
7395
        if (lastComparison != 0) {
-
 
7396
          return lastComparison;
-
 
7397
        }
-
 
7398
      }
-
 
7399
      return 0;
-
 
7400
    }
-
 
7401
 
-
 
7402
    public _Fields fieldForId(int fieldId) {
-
 
7403
      return _Fields.findByThriftId(fieldId);
-
 
7404
    }
-
 
7405
 
-
 
7406
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7407
      org.apache.thrift.protocol.TField field;
-
 
7408
      iprot.readStructBegin();
-
 
7409
      while (true)
-
 
7410
      {
-
 
7411
        field = iprot.readFieldBegin();
-
 
7412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
7413
          break;
-
 
7414
        }
-
 
7415
        switch (field.id) {
-
 
7416
          case 0: // SUCCESS
-
 
7417
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
7418
              {
-
 
7419
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
-
 
7420
                this.success = new ArrayList<PurchaseOrder>(_list12.size);
-
 
7421
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
-
 
7422
                {
-
 
7423
                  PurchaseOrder _elem14; // required
-
 
7424
                  _elem14 = new PurchaseOrder();
-
 
7425
                  _elem14.read(iprot);
-
 
7426
                  this.success.add(_elem14);
-
 
7427
                }
-
 
7428
                iprot.readListEnd();
-
 
7429
              }
-
 
7430
            } else { 
-
 
7431
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7432
            }
-
 
7433
            break;
-
 
7434
          case 1: // E
-
 
7435
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
7436
              this.e = new PurchaseServiceException();
-
 
7437
              this.e.read(iprot);
-
 
7438
            } else { 
-
 
7439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7440
            }
-
 
7441
            break;
-
 
7442
          default:
-
 
7443
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7444
        }
-
 
7445
        iprot.readFieldEnd();
-
 
7446
      }
-
 
7447
      iprot.readStructEnd();
-
 
7448
      validate();
-
 
7449
    }
-
 
7450
 
-
 
7451
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7452
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7453
 
-
 
7454
      if (this.isSetSuccess()) {
-
 
7455
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7456
        {
-
 
7457
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
7458
          for (PurchaseOrder _iter15 : this.success)
-
 
7459
          {
-
 
7460
            _iter15.write(oprot);
-
 
7461
          }
-
 
7462
          oprot.writeListEnd();
-
 
7463
        }
-
 
7464
        oprot.writeFieldEnd();
-
 
7465
      } else if (this.isSetE()) {
-
 
7466
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
7467
        this.e.write(oprot);
-
 
7468
        oprot.writeFieldEnd();
-
 
7469
      }
-
 
7470
      oprot.writeFieldStop();
-
 
7471
      oprot.writeStructEnd();
-
 
7472
    }
-
 
7473
 
-
 
7474
    @Override
-
 
7475
    public String toString() {
-
 
7476
      StringBuilder sb = new StringBuilder("getPendingPurchaseOrders_result(");
-
 
7477
      boolean first = true;
-
 
7478
 
-
 
7479
      sb.append("success:");
-
 
7480
      if (this.success == null) {
-
 
7481
        sb.append("null");
-
 
7482
      } else {
-
 
7483
        sb.append(this.success);
-
 
7484
      }
-
 
7485
      first = false;
-
 
7486
      if (!first) sb.append(", ");
-
 
7487
      sb.append("e:");
-
 
7488
      if (this.e == null) {
-
 
7489
        sb.append("null");
-
 
7490
      } else {
-
 
7491
        sb.append(this.e);
-
 
7492
      }
-
 
7493
      first = false;
-
 
7494
      sb.append(")");
-
 
7495
      return sb.toString();
-
 
7496
    }
-
 
7497
 
-
 
7498
    public void validate() throws org.apache.thrift.TException {
-
 
7499
      // check for required fields
-
 
7500
    }
-
 
7501
 
-
 
7502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7503
      try {
-
 
7504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7505
      } catch (org.apache.thrift.TException te) {
-
 
7506
        throw new java.io.IOException(te);
-
 
7507
      }
-
 
7508
    }
-
 
7509
 
-
 
7510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7511
      try {
-
 
7512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7513
      } catch (org.apache.thrift.TException te) {
-
 
7514
        throw new java.io.IOException(te);
-
 
7515
      }
-
 
7516
    }
-
 
7517
 
-
 
7518
  }
-
 
7519
 
-
 
7520
  public static class getSuppliers_args implements org.apache.thrift.TBase<getSuppliers_args, getSuppliers_args._Fields>, java.io.Serializable, Cloneable   {
-
 
7521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuppliers_args");
-
 
7522
 
-
 
7523
 
-
 
7524
 
-
 
7525
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7526
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7527
;
-
 
7528
 
-
 
7529
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7530
 
-
 
7531
      static {
-
 
7532
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7533
          byName.put(field.getFieldName(), field);
-
 
7534
        }
-
 
7535
      }
-
 
7536
 
-
 
7537
      /**
-
 
7538
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7539
       */
-
 
7540
      public static _Fields findByThriftId(int fieldId) {
-
 
7541
        switch(fieldId) {
-
 
7542
          default:
-
 
7543
            return null;
-
 
7544
        }
-
 
7545
      }
-
 
7546
 
-
 
7547
      /**
-
 
7548
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7549
       * if it is not found.
-
 
7550
       */
-
 
7551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7552
        _Fields fields = findByThriftId(fieldId);
-
 
7553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7554
        return fields;
-
 
7555
      }
-
 
7556
 
-
 
7557
      /**
-
 
7558
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7559
       */
-
 
7560
      public static _Fields findByName(String name) {
-
 
7561
        return byName.get(name);
-
 
7562
      }
-
 
7563
 
-
 
7564
      private final short _thriftId;
-
 
7565
      private final String _fieldName;
-
 
7566
 
-
 
7567
      _Fields(short thriftId, String fieldName) {
-
 
7568
        _thriftId = thriftId;
-
 
7569
        _fieldName = fieldName;
-
 
7570
      }
-
 
7571
 
-
 
7572
      public short getThriftFieldId() {
-
 
7573
        return _thriftId;
-
 
7574
      }
-
 
7575
 
-
 
7576
      public String getFieldName() {
-
 
7577
        return _fieldName;
-
 
7578
      }
-
 
7579
    }
-
 
7580
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7581
    static {
-
 
7582
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7583
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7584
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuppliers_args.class, metaDataMap);
-
 
7585
    }
-
 
7586
 
-
 
7587
    public getSuppliers_args() {
-
 
7588
    }
-
 
7589
 
-
 
7590
    /**
-
 
7591
     * Performs a deep copy on <i>other</i>.
-
 
7592
     */
-
 
7593
    public getSuppliers_args(getSuppliers_args other) {
-
 
7594
    }
-
 
7595
 
-
 
7596
    public getSuppliers_args deepCopy() {
-
 
7597
      return new getSuppliers_args(this);
-
 
7598
    }
-
 
7599
 
-
 
7600
    @Override
-
 
7601
    public void clear() {
-
 
7602
    }
-
 
7603
 
-
 
7604
    public void setFieldValue(_Fields field, Object value) {
-
 
7605
      switch (field) {
-
 
7606
      }
-
 
7607
    }
-
 
7608
 
-
 
7609
    public Object getFieldValue(_Fields field) {
-
 
7610
      switch (field) {
-
 
7611
      }
-
 
7612
      throw new IllegalStateException();
-
 
7613
    }
-
 
7614
 
-
 
7615
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7616
    public boolean isSet(_Fields field) {
-
 
7617
      if (field == null) {
-
 
7618
        throw new IllegalArgumentException();
-
 
7619
      }
-
 
7620
 
-
 
7621
      switch (field) {
-
 
7622
      }
-
 
7623
      throw new IllegalStateException();
-
 
7624
    }
-
 
7625
 
-
 
7626
    @Override
-
 
7627
    public boolean equals(Object that) {
-
 
7628
      if (that == null)
-
 
7629
        return false;
-
 
7630
      if (that instanceof getSuppliers_args)
-
 
7631
        return this.equals((getSuppliers_args)that);
-
 
7632
      return false;
-
 
7633
    }
-
 
7634
 
-
 
7635
    public boolean equals(getSuppliers_args that) {
-
 
7636
      if (that == null)
-
 
7637
        return false;
-
 
7638
 
-
 
7639
      return true;
-
 
7640
    }
-
 
7641
 
-
 
7642
    @Override
-
 
7643
    public int hashCode() {
-
 
7644
      return 0;
-
 
7645
    }
-
 
7646
 
-
 
7647
    public int compareTo(getSuppliers_args other) {
-
 
7648
      if (!getClass().equals(other.getClass())) {
-
 
7649
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7650
      }
-
 
7651
 
-
 
7652
      int lastComparison = 0;
-
 
7653
      getSuppliers_args typedOther = (getSuppliers_args)other;
-
 
7654
 
-
 
7655
      return 0;
-
 
7656
    }
-
 
7657
 
-
 
7658
    public _Fields fieldForId(int fieldId) {
-
 
7659
      return _Fields.findByThriftId(fieldId);
-
 
7660
    }
-
 
7661
 
-
 
7662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7663
      org.apache.thrift.protocol.TField field;
-
 
7664
      iprot.readStructBegin();
-
 
7665
      while (true)
-
 
7666
      {
-
 
7667
        field = iprot.readFieldBegin();
-
 
7668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
7669
          break;
-
 
7670
        }
-
 
7671
        switch (field.id) {
-
 
7672
          default:
-
 
7673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7674
        }
-
 
7675
        iprot.readFieldEnd();
-
 
7676
      }
-
 
7677
      iprot.readStructEnd();
-
 
7678
      validate();
-
 
7679
    }
-
 
7680
 
-
 
7681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7682
      validate();
-
 
7683
 
-
 
7684
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7685
      oprot.writeFieldStop();
-
 
7686
      oprot.writeStructEnd();
-
 
7687
    }
-
 
7688
 
-
 
7689
    @Override
-
 
7690
    public String toString() {
-
 
7691
      StringBuilder sb = new StringBuilder("getSuppliers_args(");
-
 
7692
      boolean first = true;
-
 
7693
 
-
 
7694
      sb.append(")");
-
 
7695
      return sb.toString();
-
 
7696
    }
-
 
7697
 
-
 
7698
    public void validate() throws org.apache.thrift.TException {
-
 
7699
      // check for required fields
-
 
7700
    }
-
 
7701
 
-
 
7702
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7703
      try {
-
 
7704
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7705
      } catch (org.apache.thrift.TException te) {
-
 
7706
        throw new java.io.IOException(te);
-
 
7707
      }
-
 
7708
    }
-
 
7709
 
-
 
7710
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7711
      try {
-
 
7712
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7713
      } catch (org.apache.thrift.TException te) {
-
 
7714
        throw new java.io.IOException(te);
-
 
7715
      }
-
 
7716
    }
-
 
7717
 
-
 
7718
  }
-
 
7719
 
-
 
7720
  public static class getSuppliers_result implements org.apache.thrift.TBase<getSuppliers_result, getSuppliers_result._Fields>, java.io.Serializable, Cloneable   {
-
 
7721
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuppliers_result");
-
 
7722
 
-
 
7723
    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);
-
 
7724
    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);
-
 
7725
 
-
 
7726
    private List<Supplier> success; // required
-
 
7727
    private PurchaseServiceException e; // required
-
 
7728
 
-
 
7729
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7730
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7731
      SUCCESS((short)0, "success"),
-
 
7732
      E((short)1, "e");
-
 
7733
 
-
 
7734
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7735
 
-
 
7736
      static {
-
 
7737
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7738
          byName.put(field.getFieldName(), field);
-
 
7739
        }
-
 
7740
      }
-
 
7741
 
-
 
7742
      /**
-
 
7743
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7744
       */
-
 
7745
      public static _Fields findByThriftId(int fieldId) {
-
 
7746
        switch(fieldId) {
-
 
7747
          case 0: // SUCCESS
-
 
7748
            return SUCCESS;
-
 
7749
          case 1: // E
-
 
7750
            return E;
-
 
7751
          default:
-
 
7752
            return null;
-
 
7753
        }
-
 
7754
      }
-
 
7755
 
-
 
7756
      /**
-
 
7757
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7758
       * if it is not found.
-
 
7759
       */
-
 
7760
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7761
        _Fields fields = findByThriftId(fieldId);
-
 
7762
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7763
        return fields;
-
 
7764
      }
-
 
7765
 
-
 
7766
      /**
-
 
7767
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7768
       */
-
 
7769
      public static _Fields findByName(String name) {
-
 
7770
        return byName.get(name);
-
 
7771
      }
-
 
7772
 
-
 
7773
      private final short _thriftId;
-
 
7774
      private final String _fieldName;
-
 
7775
 
-
 
7776
      _Fields(short thriftId, String fieldName) {
-
 
7777
        _thriftId = thriftId;
-
 
7778
        _fieldName = fieldName;
-
 
7779
      }
-
 
7780
 
-
 
7781
      public short getThriftFieldId() {
-
 
7782
        return _thriftId;
-
 
7783
      }
-
 
7784
 
-
 
7785
      public String getFieldName() {
-
 
7786
        return _fieldName;
-
 
7787
      }
-
 
7788
    }
-
 
7789
 
-
 
7790
    // isset id assignments
-
 
7791
 
-
 
7792
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7793
    static {
-
 
7794
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7795
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7796
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
7797
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Supplier.class))));
-
 
7798
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
7800
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7801
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuppliers_result.class, metaDataMap);
-
 
7802
    }
-
 
7803
 
-
 
7804
    public getSuppliers_result() {
-
 
7805
    }
-
 
7806
 
-
 
7807
    public getSuppliers_result(
-
 
7808
      List<Supplier> success,
-
 
7809
      PurchaseServiceException e)
-
 
7810
    {
-
 
7811
      this();
-
 
7812
      this.success = success;
-
 
7813
      this.e = e;
-
 
7814
    }
-
 
7815
 
-
 
7816
    /**
-
 
7817
     * Performs a deep copy on <i>other</i>.
-
 
7818
     */
-
 
7819
    public getSuppliers_result(getSuppliers_result other) {
-
 
7820
      if (other.isSetSuccess()) {
-
 
7821
        List<Supplier> __this__success = new ArrayList<Supplier>();
-
 
7822
        for (Supplier other_element : other.success) {
-
 
7823
          __this__success.add(new Supplier(other_element));
-
 
7824
        }
-
 
7825
        this.success = __this__success;
-
 
7826
      }
-
 
7827
      if (other.isSetE()) {
-
 
7828
        this.e = new PurchaseServiceException(other.e);
-
 
7829
      }
-
 
7830
    }
-
 
7831
 
-
 
7832
    public getSuppliers_result deepCopy() {
-
 
7833
      return new getSuppliers_result(this);
-
 
7834
    }
-
 
7835
 
-
 
7836
    @Override
-
 
7837
    public void clear() {
-
 
7838
      this.success = null;
-
 
7839
      this.e = null;
-
 
7840
    }
-
 
7841
 
-
 
7842
    public int getSuccessSize() {
-
 
7843
      return (this.success == null) ? 0 : this.success.size();
-
 
7844
    }
-
 
7845
 
-
 
7846
    public java.util.Iterator<Supplier> getSuccessIterator() {
-
 
7847
      return (this.success == null) ? null : this.success.iterator();
-
 
7848
    }
-
 
7849
 
-
 
7850
    public void addToSuccess(Supplier elem) {
-
 
7851
      if (this.success == null) {
-
 
7852
        this.success = new ArrayList<Supplier>();
-
 
7853
      }
-
 
7854
      this.success.add(elem);
-
 
7855
    }
-
 
7856
 
-
 
7857
    public List<Supplier> getSuccess() {
-
 
7858
      return this.success;
-
 
7859
    }
-
 
7860
 
-
 
7861
    public void setSuccess(List<Supplier> success) {
-
 
7862
      this.success = success;
-
 
7863
    }
-
 
7864
 
-
 
7865
    public void unsetSuccess() {
-
 
7866
      this.success = null;
-
 
7867
    }
-
 
7868
 
-
 
7869
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
7870
    public boolean isSetSuccess() {
-
 
7871
      return this.success != null;
-
 
7872
    }
-
 
7873
 
-
 
7874
    public void setSuccessIsSet(boolean value) {
-
 
7875
      if (!value) {
-
 
7876
        this.success = null;
-
 
7877
      }
-
 
7878
    }
-
 
7879
 
-
 
7880
    public PurchaseServiceException getE() {
-
 
7881
      return this.e;
-
 
7882
    }
-
 
7883
 
-
 
7884
    public void setE(PurchaseServiceException e) {
-
 
7885
      this.e = e;
-
 
7886
    }
-
 
7887
 
-
 
7888
    public void unsetE() {
-
 
7889
      this.e = null;
-
 
7890
    }
-
 
7891
 
-
 
7892
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
7893
    public boolean isSetE() {
-
 
7894
      return this.e != null;
-
 
7895
    }
-
 
7896
 
-
 
7897
    public void setEIsSet(boolean value) {
-
 
7898
      if (!value) {
-
 
7899
        this.e = null;
-
 
7900
      }
-
 
7901
    }
-
 
7902
 
-
 
7903
    public void setFieldValue(_Fields field, Object value) {
-
 
7904
      switch (field) {
-
 
7905
      case SUCCESS:
-
 
7906
        if (value == null) {
-
 
7907
          unsetSuccess();
-
 
7908
        } else {
-
 
7909
          setSuccess((List<Supplier>)value);
-
 
7910
        }
-
 
7911
        break;
-
 
7912
 
-
 
7913
      case E:
-
 
7914
        if (value == null) {
-
 
7915
          unsetE();
-
 
7916
        } else {
-
 
7917
          setE((PurchaseServiceException)value);
-
 
7918
        }
-
 
7919
        break;
-
 
7920
 
-
 
7921
      }
-
 
7922
    }
-
 
7923
 
-
 
7924
    public Object getFieldValue(_Fields field) {
-
 
7925
      switch (field) {
-
 
7926
      case SUCCESS:
-
 
7927
        return getSuccess();
-
 
7928
 
-
 
7929
      case E:
-
 
7930
        return getE();
-
 
7931
 
-
 
7932
      }
-
 
7933
      throw new IllegalStateException();
-
 
7934
    }
-
 
7935
 
-
 
7936
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7937
    public boolean isSet(_Fields field) {
-
 
7938
      if (field == null) {
-
 
7939
        throw new IllegalArgumentException();
-
 
7940
      }
-
 
7941
 
-
 
7942
      switch (field) {
-
 
7943
      case SUCCESS:
-
 
7944
        return isSetSuccess();
-
 
7945
      case E:
-
 
7946
        return isSetE();
-
 
7947
      }
-
 
7948
      throw new IllegalStateException();
-
 
7949
    }
-
 
7950
 
-
 
7951
    @Override
-
 
7952
    public boolean equals(Object that) {
-
 
7953
      if (that == null)
-
 
7954
        return false;
-
 
7955
      if (that instanceof getSuppliers_result)
-
 
7956
        return this.equals((getSuppliers_result)that);
-
 
7957
      return false;
-
 
7958
    }
-
 
7959
 
-
 
7960
    public boolean equals(getSuppliers_result that) {
-
 
7961
      if (that == null)
-
 
7962
        return false;
-
 
7963
 
-
 
7964
      boolean this_present_success = true && this.isSetSuccess();
-
 
7965
      boolean that_present_success = true && that.isSetSuccess();
-
 
7966
      if (this_present_success || that_present_success) {
-
 
7967
        if (!(this_present_success && that_present_success))
-
 
7968
          return false;
-
 
7969
        if (!this.success.equals(that.success))
-
 
7970
          return false;
-
 
7971
      }
-
 
7972
 
-
 
7973
      boolean this_present_e = true && this.isSetE();
-
 
7974
      boolean that_present_e = true && that.isSetE();
-
 
7975
      if (this_present_e || that_present_e) {
-
 
7976
        if (!(this_present_e && that_present_e))
-
 
7977
          return false;
-
 
7978
        if (!this.e.equals(that.e))
-
 
7979
          return false;
-
 
7980
      }
-
 
7981
 
-
 
7982
      return true;
-
 
7983
    }
-
 
7984
 
-
 
7985
    @Override
-
 
7986
    public int hashCode() {
-
 
7987
      return 0;
-
 
7988
    }
-
 
7989
 
-
 
7990
    public int compareTo(getSuppliers_result other) {
-
 
7991
      if (!getClass().equals(other.getClass())) {
-
 
7992
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7993
      }
-
 
7994
 
-
 
7995
      int lastComparison = 0;
-
 
7996
      getSuppliers_result typedOther = (getSuppliers_result)other;
-
 
7997
 
-
 
7998
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
7999
      if (lastComparison != 0) {
-
 
8000
        return lastComparison;
-
 
8001
      }
-
 
8002
      if (isSetSuccess()) {
-
 
8003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
8004
        if (lastComparison != 0) {
-
 
8005
          return lastComparison;
-
 
8006
        }
-
 
8007
      }
-
 
8008
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
8009
      if (lastComparison != 0) {
-
 
8010
        return lastComparison;
-
 
8011
      }
-
 
8012
      if (isSetE()) {
-
 
8013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
8014
        if (lastComparison != 0) {
-
 
8015
          return lastComparison;
-
 
8016
        }
-
 
8017
      }
-
 
8018
      return 0;
-
 
8019
    }
-
 
8020
 
-
 
8021
    public _Fields fieldForId(int fieldId) {
-
 
8022
      return _Fields.findByThriftId(fieldId);
-
 
8023
    }
-
 
8024
 
-
 
8025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8026
      org.apache.thrift.protocol.TField field;
-
 
8027
      iprot.readStructBegin();
-
 
8028
      while (true)
-
 
8029
      {
-
 
8030
        field = iprot.readFieldBegin();
-
 
8031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8032
          break;
-
 
8033
        }
-
 
8034
        switch (field.id) {
-
 
8035
          case 0: // SUCCESS
-
 
8036
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
8037
              {
-
 
8038
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
-
 
8039
                this.success = new ArrayList<Supplier>(_list16.size);
-
 
8040
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
-
 
8041
                {
-
 
8042
                  Supplier _elem18; // required
-
 
8043
                  _elem18 = new Supplier();
-
 
8044
                  _elem18.read(iprot);
-
 
8045
                  this.success.add(_elem18);
-
 
8046
                }
-
 
8047
                iprot.readListEnd();
-
 
8048
              }
-
 
8049
            } else { 
-
 
8050
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8051
            }
-
 
8052
            break;
-
 
8053
          case 1: // E
-
 
8054
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
8055
              this.e = new PurchaseServiceException();
-
 
8056
              this.e.read(iprot);
-
 
8057
            } else { 
-
 
8058
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8059
            }
-
 
8060
            break;
-
 
8061
          default:
-
 
8062
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8063
        }
-
 
8064
        iprot.readFieldEnd();
-
 
8065
      }
-
 
8066
      iprot.readStructEnd();
-
 
8067
      validate();
-
 
8068
    }
-
 
8069
 
-
 
8070
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8071
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8072
 
-
 
8073
      if (this.isSetSuccess()) {
-
 
8074
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8075
        {
-
 
8076
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
8077
          for (Supplier _iter19 : this.success)
-
 
8078
          {
-
 
8079
            _iter19.write(oprot);
-
 
8080
          }
-
 
8081
          oprot.writeListEnd();
-
 
8082
        }
-
 
8083
        oprot.writeFieldEnd();
-
 
8084
      } else if (this.isSetE()) {
-
 
8085
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
8086
        this.e.write(oprot);
-
 
8087
        oprot.writeFieldEnd();
-
 
8088
      }
-
 
8089
      oprot.writeFieldStop();
-
 
8090
      oprot.writeStructEnd();
-
 
8091
    }
-
 
8092
 
-
 
8093
    @Override
-
 
8094
    public String toString() {
-
 
8095
      StringBuilder sb = new StringBuilder("getSuppliers_result(");
-
 
8096
      boolean first = true;
-
 
8097
 
-
 
8098
      sb.append("success:");
-
 
8099
      if (this.success == null) {
-
 
8100
        sb.append("null");
-
 
8101
      } else {
-
 
8102
        sb.append(this.success);
-
 
8103
      }
-
 
8104
      first = false;
-
 
8105
      if (!first) sb.append(", ");
-
 
8106
      sb.append("e:");
-
 
8107
      if (this.e == null) {
-
 
8108
        sb.append("null");
-
 
8109
      } else {
-
 
8110
        sb.append(this.e);
-
 
8111
      }
-
 
8112
      first = false;
-
 
8113
      sb.append(")");
-
 
8114
      return sb.toString();
-
 
8115
    }
-
 
8116
 
-
 
8117
    public void validate() throws org.apache.thrift.TException {
-
 
8118
      // check for required fields
-
 
8119
    }
-
 
8120
 
-
 
8121
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8122
      try {
-
 
8123
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8124
      } catch (org.apache.thrift.TException te) {
-
 
8125
        throw new java.io.IOException(te);
-
 
8126
      }
-
 
8127
    }
-
 
8128
 
-
 
8129
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8130
      try {
-
 
8131
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8132
      } catch (org.apache.thrift.TException te) {
-
 
8133
        throw new java.io.IOException(te);
-
 
8134
      }
-
 
8135
    }
-
 
8136
 
-
 
8137
  }
-
 
8138
 
-
 
8139
  public static class fulfillPO_args implements org.apache.thrift.TBase<fulfillPO_args, fulfillPO_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8140
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fulfillPO_args");
-
 
8141
 
-
 
8142
    private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
8143
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
8144
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
8145
 
-
 
8146
    private long purchaseOrderId; // required
-
 
8147
    private long itemId; // required
-
 
8148
    private long quantity; // required
-
 
8149
 
-
 
8150
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8151
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8152
      PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
-
 
8153
      ITEM_ID((short)2, "itemId"),
-
 
8154
      QUANTITY((short)3, "quantity");
-
 
8155
 
-
 
8156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8157
 
-
 
8158
      static {
-
 
8159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8160
          byName.put(field.getFieldName(), field);
-
 
8161
        }
-
 
8162
      }
-
 
8163
 
-
 
8164
      /**
-
 
8165
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8166
       */
-
 
8167
      public static _Fields findByThriftId(int fieldId) {
-
 
8168
        switch(fieldId) {
-
 
8169
          case 1: // PURCHASE_ORDER_ID
-
 
8170
            return PURCHASE_ORDER_ID;
-
 
8171
          case 2: // ITEM_ID
-
 
8172
            return ITEM_ID;
-
 
8173
          case 3: // QUANTITY
-
 
8174
            return QUANTITY;
-
 
8175
          default:
-
 
8176
            return null;
-
 
8177
        }
-
 
8178
      }
-
 
8179
 
-
 
8180
      /**
-
 
8181
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8182
       * if it is not found.
-
 
8183
       */
-
 
8184
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8185
        _Fields fields = findByThriftId(fieldId);
-
 
8186
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8187
        return fields;
-
 
8188
      }
-
 
8189
 
-
 
8190
      /**
-
 
8191
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8192
       */
-
 
8193
      public static _Fields findByName(String name) {
-
 
8194
        return byName.get(name);
-
 
8195
      }
-
 
8196
 
-
 
8197
      private final short _thriftId;
-
 
8198
      private final String _fieldName;
-
 
8199
 
-
 
8200
      _Fields(short thriftId, String fieldName) {
-
 
8201
        _thriftId = thriftId;
-
 
8202
        _fieldName = fieldName;
-
 
8203
      }
-
 
8204
 
-
 
8205
      public short getThriftFieldId() {
-
 
8206
        return _thriftId;
-
 
8207
      }
-
 
8208
 
-
 
8209
      public String getFieldName() {
-
 
8210
        return _fieldName;
-
 
8211
      }
-
 
8212
    }
-
 
8213
 
-
 
8214
    // isset id assignments
-
 
8215
    private static final int __PURCHASEORDERID_ISSET_ID = 0;
-
 
8216
    private static final int __ITEMID_ISSET_ID = 1;
-
 
8217
    private static final int __QUANTITY_ISSET_ID = 2;
-
 
8218
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
8219
 
-
 
8220
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8221
    static {
-
 
8222
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8223
      tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8224
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8225
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8227
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fulfillPO_args.class, metaDataMap);
-
 
8231
    }
-
 
8232
 
-
 
8233
    public fulfillPO_args() {
-
 
8234
    }
-
 
8235
 
-
 
8236
    public fulfillPO_args(
-
 
8237
      long purchaseOrderId,
-
 
8238
      long itemId,
-
 
8239
      long quantity)
-
 
8240
    {
-
 
8241
      this();
-
 
8242
      this.purchaseOrderId = purchaseOrderId;
-
 
8243
      setPurchaseOrderIdIsSet(true);
-
 
8244
      this.itemId = itemId;
-
 
8245
      setItemIdIsSet(true);
-
 
8246
      this.quantity = quantity;
-
 
8247
      setQuantityIsSet(true);
-
 
8248
    }
-
 
8249
 
-
 
8250
    /**
-
 
8251
     * Performs a deep copy on <i>other</i>.
-
 
8252
     */
-
 
8253
    public fulfillPO_args(fulfillPO_args other) {
-
 
8254
      __isset_bit_vector.clear();
-
 
8255
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8256
      this.purchaseOrderId = other.purchaseOrderId;
-
 
8257
      this.itemId = other.itemId;
-
 
8258
      this.quantity = other.quantity;
-
 
8259
    }
-
 
8260
 
-
 
8261
    public fulfillPO_args deepCopy() {
-
 
8262
      return new fulfillPO_args(this);
-
 
8263
    }
-
 
8264
 
-
 
8265
    @Override
-
 
8266
    public void clear() {
-
 
8267
      setPurchaseOrderIdIsSet(false);
-
 
8268
      this.purchaseOrderId = 0;
-
 
8269
      setItemIdIsSet(false);
-
 
8270
      this.itemId = 0;
-
 
8271
      setQuantityIsSet(false);
-
 
8272
      this.quantity = 0;
-
 
8273
    }
-
 
8274
 
-
 
8275
    public long getPurchaseOrderId() {
-
 
8276
      return this.purchaseOrderId;
-
 
8277
    }
-
 
8278
 
-
 
8279
    public void setPurchaseOrderId(long purchaseOrderId) {
-
 
8280
      this.purchaseOrderId = purchaseOrderId;
-
 
8281
      setPurchaseOrderIdIsSet(true);
-
 
8282
    }
-
 
8283
 
-
 
8284
    public void unsetPurchaseOrderId() {
-
 
8285
      __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
-
 
8286
    }
-
 
8287
 
-
 
8288
    /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
-
 
8289
    public boolean isSetPurchaseOrderId() {
-
 
8290
      return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
-
 
8291
    }
-
 
8292
 
-
 
8293
    public void setPurchaseOrderIdIsSet(boolean value) {
-
 
8294
      __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
-
 
8295
    }
-
 
8296
 
-
 
8297
    public long getItemId() {
-
 
8298
      return this.itemId;
-
 
8299
    }
-
 
8300
 
-
 
8301
    public void setItemId(long itemId) {
-
 
8302
      this.itemId = itemId;
-
 
8303
      setItemIdIsSet(true);
-
 
8304
    }
-
 
8305
 
-
 
8306
    public void unsetItemId() {
-
 
8307
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
8308
    }
-
 
8309
 
-
 
8310
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
8311
    public boolean isSetItemId() {
-
 
8312
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
8313
    }
-
 
8314
 
-
 
8315
    public void setItemIdIsSet(boolean value) {
-
 
8316
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
8317
    }
-
 
8318
 
-
 
8319
    public long getQuantity() {
-
 
8320
      return this.quantity;
-
 
8321
    }
-
 
8322
 
-
 
8323
    public void setQuantity(long quantity) {
-
 
8324
      this.quantity = quantity;
-
 
8325
      setQuantityIsSet(true);
-
 
8326
    }
-
 
8327
 
-
 
8328
    public void unsetQuantity() {
-
 
8329
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
8330
    }
-
 
8331
 
-
 
8332
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
8333
    public boolean isSetQuantity() {
-
 
8334
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
8335
    }
-
 
8336
 
-
 
8337
    public void setQuantityIsSet(boolean value) {
-
 
8338
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
8339
    }
-
 
8340
 
-
 
8341
    public void setFieldValue(_Fields field, Object value) {
-
 
8342
      switch (field) {
-
 
8343
      case PURCHASE_ORDER_ID:
-
 
8344
        if (value == null) {
-
 
8345
          unsetPurchaseOrderId();
-
 
8346
        } else {
-
 
8347
          setPurchaseOrderId((Long)value);
-
 
8348
        }
-
 
8349
        break;
-
 
8350
 
-
 
8351
      case ITEM_ID:
-
 
8352
        if (value == null) {
-
 
8353
          unsetItemId();
-
 
8354
        } else {
-
 
8355
          setItemId((Long)value);
-
 
8356
        }
-
 
8357
        break;
-
 
8358
 
-
 
8359
      case QUANTITY:
-
 
8360
        if (value == null) {
-
 
8361
          unsetQuantity();
-
 
8362
        } else {
-
 
8363
          setQuantity((Long)value);
-
 
8364
        }
-
 
8365
        break;
-
 
8366
 
-
 
8367
      }
-
 
8368
    }
-
 
8369
 
-
 
8370
    public Object getFieldValue(_Fields field) {
-
 
8371
      switch (field) {
-
 
8372
      case PURCHASE_ORDER_ID:
-
 
8373
        return Long.valueOf(getPurchaseOrderId());
-
 
8374
 
-
 
8375
      case ITEM_ID:
-
 
8376
        return Long.valueOf(getItemId());
-
 
8377
 
-
 
8378
      case QUANTITY:
-
 
8379
        return Long.valueOf(getQuantity());
-
 
8380
 
-
 
8381
      }
-
 
8382
      throw new IllegalStateException();
-
 
8383
    }
-
 
8384
 
-
 
8385
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8386
    public boolean isSet(_Fields field) {
-
 
8387
      if (field == null) {
-
 
8388
        throw new IllegalArgumentException();
-
 
8389
      }
-
 
8390
 
-
 
8391
      switch (field) {
-
 
8392
      case PURCHASE_ORDER_ID:
-
 
8393
        return isSetPurchaseOrderId();
-
 
8394
      case ITEM_ID:
-
 
8395
        return isSetItemId();
-
 
8396
      case QUANTITY:
-
 
8397
        return isSetQuantity();
-
 
8398
      }
-
 
8399
      throw new IllegalStateException();
-
 
8400
    }
-
 
8401
 
-
 
8402
    @Override
-
 
8403
    public boolean equals(Object that) {
-
 
8404
      if (that == null)
-
 
8405
        return false;
-
 
8406
      if (that instanceof fulfillPO_args)
-
 
8407
        return this.equals((fulfillPO_args)that);
-
 
8408
      return false;
-
 
8409
    }
-
 
8410
 
-
 
8411
    public boolean equals(fulfillPO_args that) {
-
 
8412
      if (that == null)
-
 
8413
        return false;
-
 
8414
 
-
 
8415
      boolean this_present_purchaseOrderId = true;
-
 
8416
      boolean that_present_purchaseOrderId = true;
-
 
8417
      if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
-
 
8418
        if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
-
 
8419
          return false;
-
 
8420
        if (this.purchaseOrderId != that.purchaseOrderId)
-
 
8421
          return false;
-
 
8422
      }
-
 
8423
 
-
 
8424
      boolean this_present_itemId = true;
-
 
8425
      boolean that_present_itemId = true;
-
 
8426
      if (this_present_itemId || that_present_itemId) {
-
 
8427
        if (!(this_present_itemId && that_present_itemId))
-
 
8428
          return false;
-
 
8429
        if (this.itemId != that.itemId)
-
 
8430
          return false;
-
 
8431
      }
-
 
8432
 
-
 
8433
      boolean this_present_quantity = true;
-
 
8434
      boolean that_present_quantity = true;
-
 
8435
      if (this_present_quantity || that_present_quantity) {
-
 
8436
        if (!(this_present_quantity && that_present_quantity))
-
 
8437
          return false;
-
 
8438
        if (this.quantity != that.quantity)
-
 
8439
          return false;
-
 
8440
      }
-
 
8441
 
-
 
8442
      return true;
-
 
8443
    }
-
 
8444
 
-
 
8445
    @Override
-
 
8446
    public int hashCode() {
-
 
8447
      return 0;
-
 
8448
    }
-
 
8449
 
-
 
8450
    public int compareTo(fulfillPO_args other) {
-
 
8451
      if (!getClass().equals(other.getClass())) {
-
 
8452
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8453
      }
-
 
8454
 
-
 
8455
      int lastComparison = 0;
-
 
8456
      fulfillPO_args typedOther = (fulfillPO_args)other;
-
 
8457
 
-
 
8458
      lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
-
 
8459
      if (lastComparison != 0) {
-
 
8460
        return lastComparison;
-
 
8461
      }
-
 
8462
      if (isSetPurchaseOrderId()) {
-
 
8463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
-
 
8464
        if (lastComparison != 0) {
-
 
8465
          return lastComparison;
-
 
8466
        }
-
 
8467
      }
-
 
8468
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
8469
      if (lastComparison != 0) {
-
 
8470
        return lastComparison;
-
 
8471
      }
-
 
8472
      if (isSetItemId()) {
-
 
8473
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
8474
        if (lastComparison != 0) {
-
 
8475
          return lastComparison;
-
 
8476
        }
-
 
8477
      }
-
 
8478
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
8479
      if (lastComparison != 0) {
-
 
8480
        return lastComparison;
-
 
8481
      }
-
 
8482
      if (isSetQuantity()) {
-
 
8483
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
8484
        if (lastComparison != 0) {
-
 
8485
          return lastComparison;
-
 
8486
        }
-
 
8487
      }
-
 
8488
      return 0;
-
 
8489
    }
-
 
8490
 
-
 
8491
    public _Fields fieldForId(int fieldId) {
-
 
8492
      return _Fields.findByThriftId(fieldId);
-
 
8493
    }
-
 
8494
 
-
 
8495
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8496
      org.apache.thrift.protocol.TField field;
-
 
8497
      iprot.readStructBegin();
-
 
8498
      while (true)
-
 
8499
      {
-
 
8500
        field = iprot.readFieldBegin();
-
 
8501
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8502
          break;
-
 
8503
        }
-
 
8504
        switch (field.id) {
-
 
8505
          case 1: // PURCHASE_ORDER_ID
-
 
8506
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8507
              this.purchaseOrderId = iprot.readI64();
-
 
8508
              setPurchaseOrderIdIsSet(true);
-
 
8509
            } else { 
-
 
8510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8511
            }
-
 
8512
            break;
-
 
8513
          case 2: // ITEM_ID
-
 
8514
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8515
              this.itemId = iprot.readI64();
-
 
8516
              setItemIdIsSet(true);
-
 
8517
            } else { 
-
 
8518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8519
            }
-
 
8520
            break;
-
 
8521
          case 3: // QUANTITY
-
 
8522
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8523
              this.quantity = iprot.readI64();
-
 
8524
              setQuantityIsSet(true);
-
 
8525
            } else { 
-
 
8526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8527
            }
-
 
8528
            break;
-
 
8529
          default:
-
 
8530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8531
        }
-
 
8532
        iprot.readFieldEnd();
-
 
8533
      }
-
 
8534
      iprot.readStructEnd();
-
 
8535
      validate();
-
 
8536
    }
-
 
8537
 
-
 
8538
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8539
      validate();
-
 
8540
 
-
 
8541
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8542
      oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
-
 
8543
      oprot.writeI64(this.purchaseOrderId);
-
 
8544
      oprot.writeFieldEnd();
-
 
8545
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
8546
      oprot.writeI64(this.itemId);
-
 
8547
      oprot.writeFieldEnd();
-
 
8548
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
8549
      oprot.writeI64(this.quantity);
-
 
8550
      oprot.writeFieldEnd();
-
 
8551
      oprot.writeFieldStop();
-
 
8552
      oprot.writeStructEnd();
-
 
8553
    }
-
 
8554
 
-
 
8555
    @Override
-
 
8556
    public String toString() {
-
 
8557
      StringBuilder sb = new StringBuilder("fulfillPO_args(");
-
 
8558
      boolean first = true;
-
 
8559
 
-
 
8560
      sb.append("purchaseOrderId:");
-
 
8561
      sb.append(this.purchaseOrderId);
-
 
8562
      first = false;
-
 
8563
      if (!first) sb.append(", ");
-
 
8564
      sb.append("itemId:");
-
 
8565
      sb.append(this.itemId);
-
 
8566
      first = false;
-
 
8567
      if (!first) sb.append(", ");
-
 
8568
      sb.append("quantity:");
-
 
8569
      sb.append(this.quantity);
-
 
8570
      first = false;
-
 
8571
      sb.append(")");
-
 
8572
      return sb.toString();
-
 
8573
    }
-
 
8574
 
-
 
8575
    public void validate() throws org.apache.thrift.TException {
-
 
8576
      // check for required fields
-
 
8577
    }
-
 
8578
 
-
 
8579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8580
      try {
-
 
8581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8582
      } catch (org.apache.thrift.TException te) {
-
 
8583
        throw new java.io.IOException(te);
-
 
8584
      }
-
 
8585
    }
-
 
8586
 
-
 
8587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8588
      try {
-
 
8589
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8590
        __isset_bit_vector = new BitSet(1);
-
 
8591
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8592
      } catch (org.apache.thrift.TException te) {
-
 
8593
        throw new java.io.IOException(te);
-
 
8594
      }
-
 
8595
    }
-
 
8596
 
-
 
8597
  }
-
 
8598
 
-
 
8599
  public static class fulfillPO_result implements org.apache.thrift.TBase<fulfillPO_result, fulfillPO_result._Fields>, java.io.Serializable, Cloneable   {
-
 
8600
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fulfillPO_result");
-
 
8601
 
-
 
8602
    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);
-
 
8603
 
-
 
8604
    private PurchaseServiceException e; // required
-
 
8605
 
-
 
8606
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8607
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8608
      E((short)1, "e");
-
 
8609
 
-
 
8610
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8611
 
-
 
8612
      static {
-
 
8613
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8614
          byName.put(field.getFieldName(), field);
-
 
8615
        }
-
 
8616
      }
-
 
8617
 
-
 
8618
      /**
-
 
8619
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8620
       */
-
 
8621
      public static _Fields findByThriftId(int fieldId) {
-
 
8622
        switch(fieldId) {
-
 
8623
          case 1: // E
-
 
8624
            return E;
-
 
8625
          default:
-
 
8626
            return null;
-
 
8627
        }
-
 
8628
      }
-
 
8629
 
-
 
8630
      /**
-
 
8631
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8632
       * if it is not found.
-
 
8633
       */
-
 
8634
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8635
        _Fields fields = findByThriftId(fieldId);
-
 
8636
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8637
        return fields;
-
 
8638
      }
-
 
8639
 
-
 
8640
      /**
-
 
8641
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8642
       */
-
 
8643
      public static _Fields findByName(String name) {
-
 
8644
        return byName.get(name);
-
 
8645
      }
-
 
8646
 
-
 
8647
      private final short _thriftId;
-
 
8648
      private final String _fieldName;
-
 
8649
 
-
 
8650
      _Fields(short thriftId, String fieldName) {
-
 
8651
        _thriftId = thriftId;
-
 
8652
        _fieldName = fieldName;
-
 
8653
      }
-
 
8654
 
-
 
8655
      public short getThriftFieldId() {
-
 
8656
        return _thriftId;
-
 
8657
      }
-
 
8658
 
-
 
8659
      public String getFieldName() {
-
 
8660
        return _fieldName;
-
 
8661
      }
-
 
8662
    }
-
 
8663
 
-
 
8664
    // isset id assignments
-
 
8665
 
-
 
8666
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8667
    static {
-
 
8668
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8669
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8670
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
8671
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8672
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fulfillPO_result.class, metaDataMap);
-
 
8673
    }
-
 
8674
 
-
 
8675
    public fulfillPO_result() {
-
 
8676
    }
-
 
8677
 
-
 
8678
    public fulfillPO_result(
-
 
8679
      PurchaseServiceException e)
-
 
8680
    {
-
 
8681
      this();
-
 
8682
      this.e = e;
-
 
8683
    }
-
 
8684
 
-
 
8685
    /**
-
 
8686
     * Performs a deep copy on <i>other</i>.
-
 
8687
     */
-
 
8688
    public fulfillPO_result(fulfillPO_result other) {
-
 
8689
      if (other.isSetE()) {
-
 
8690
        this.e = new PurchaseServiceException(other.e);
-
 
8691
      }
-
 
8692
    }
-
 
8693
 
-
 
8694
    public fulfillPO_result deepCopy() {
-
 
8695
      return new fulfillPO_result(this);
-
 
8696
    }
-
 
8697
 
-
 
8698
    @Override
-
 
8699
    public void clear() {
-
 
8700
      this.e = null;
-
 
8701
    }
-
 
8702
 
-
 
8703
    public PurchaseServiceException getE() {
-
 
8704
      return this.e;
-
 
8705
    }
-
 
8706
 
-
 
8707
    public void setE(PurchaseServiceException e) {
-
 
8708
      this.e = e;
-
 
8709
    }
-
 
8710
 
-
 
8711
    public void unsetE() {
-
 
8712
      this.e = null;
-
 
8713
    }
-
 
8714
 
-
 
8715
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
8716
    public boolean isSetE() {
-
 
8717
      return this.e != null;
-
 
8718
    }
-
 
8719
 
-
 
8720
    public void setEIsSet(boolean value) {
-
 
8721
      if (!value) {
-
 
8722
        this.e = null;
-
 
8723
      }
-
 
8724
    }
-
 
8725
 
-
 
8726
    public void setFieldValue(_Fields field, Object value) {
-
 
8727
      switch (field) {
-
 
8728
      case E:
-
 
8729
        if (value == null) {
-
 
8730
          unsetE();
-
 
8731
        } else {
-
 
8732
          setE((PurchaseServiceException)value);
-
 
8733
        }
-
 
8734
        break;
-
 
8735
 
-
 
8736
      }
-
 
8737
    }
-
 
8738
 
-
 
8739
    public Object getFieldValue(_Fields field) {
-
 
8740
      switch (field) {
-
 
8741
      case E:
-
 
8742
        return getE();
-
 
8743
 
-
 
8744
      }
-
 
8745
      throw new IllegalStateException();
-
 
8746
    }
-
 
8747
 
-
 
8748
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8749
    public boolean isSet(_Fields field) {
-
 
8750
      if (field == null) {
-
 
8751
        throw new IllegalArgumentException();
-
 
8752
      }
-
 
8753
 
-
 
8754
      switch (field) {
-
 
8755
      case E:
-
 
8756
        return isSetE();
-
 
8757
      }
-
 
8758
      throw new IllegalStateException();
-
 
8759
    }
-
 
8760
 
-
 
8761
    @Override
-
 
8762
    public boolean equals(Object that) {
-
 
8763
      if (that == null)
-
 
8764
        return false;
-
 
8765
      if (that instanceof fulfillPO_result)
-
 
8766
        return this.equals((fulfillPO_result)that);
-
 
8767
      return false;
-
 
8768
    }
-
 
8769
 
-
 
8770
    public boolean equals(fulfillPO_result that) {
-
 
8771
      if (that == null)
-
 
8772
        return false;
-
 
8773
 
-
 
8774
      boolean this_present_e = true && this.isSetE();
-
 
8775
      boolean that_present_e = true && that.isSetE();
-
 
8776
      if (this_present_e || that_present_e) {
-
 
8777
        if (!(this_present_e && that_present_e))
-
 
8778
          return false;
-
 
8779
        if (!this.e.equals(that.e))
-
 
8780
          return false;
-
 
8781
      }
-
 
8782
 
-
 
8783
      return true;
-
 
8784
    }
-
 
8785
 
-
 
8786
    @Override
-
 
8787
    public int hashCode() {
-
 
8788
      return 0;
-
 
8789
    }
-
 
8790
 
-
 
8791
    public int compareTo(fulfillPO_result other) {
-
 
8792
      if (!getClass().equals(other.getClass())) {
-
 
8793
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8794
      }
-
 
8795
 
-
 
8796
      int lastComparison = 0;
-
 
8797
      fulfillPO_result typedOther = (fulfillPO_result)other;
-
 
8798
 
-
 
8799
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
8800
      if (lastComparison != 0) {
-
 
8801
        return lastComparison;
-
 
8802
      }
-
 
8803
      if (isSetE()) {
-
 
8804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
8805
        if (lastComparison != 0) {
-
 
8806
          return lastComparison;
-
 
8807
        }
-
 
8808
      }
-
 
8809
      return 0;
-
 
8810
    }
-
 
8811
 
-
 
8812
    public _Fields fieldForId(int fieldId) {
-
 
8813
      return _Fields.findByThriftId(fieldId);
-
 
8814
    }
-
 
8815
 
-
 
8816
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8817
      org.apache.thrift.protocol.TField field;
-
 
8818
      iprot.readStructBegin();
-
 
8819
      while (true)
-
 
8820
      {
-
 
8821
        field = iprot.readFieldBegin();
-
 
8822
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8823
          break;
-
 
8824
        }
-
 
8825
        switch (field.id) {
-
 
8826
          case 1: // E
-
 
8827
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
8828
              this.e = new PurchaseServiceException();
-
 
8829
              this.e.read(iprot);
-
 
8830
            } else { 
-
 
8831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8832
            }
-
 
8833
            break;
-
 
8834
          default:
-
 
8835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8836
        }
-
 
8837
        iprot.readFieldEnd();
-
 
8838
      }
-
 
8839
      iprot.readStructEnd();
-
 
8840
      validate();
-
 
8841
    }
-
 
8842
 
-
 
8843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8844
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8845
 
-
 
8846
      if (this.isSetE()) {
-
 
8847
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
8848
        this.e.write(oprot);
-
 
8849
        oprot.writeFieldEnd();
-
 
8850
      }
-
 
8851
      oprot.writeFieldStop();
-
 
8852
      oprot.writeStructEnd();
-
 
8853
    }
-
 
8854
 
-
 
8855
    @Override
-
 
8856
    public String toString() {
-
 
8857
      StringBuilder sb = new StringBuilder("fulfillPO_result(");
-
 
8858
      boolean first = true;
-
 
8859
 
-
 
8860
      sb.append("e:");
-
 
8861
      if (this.e == null) {
-
 
8862
        sb.append("null");
-
 
8863
      } else {
-
 
8864
        sb.append(this.e);
-
 
8865
      }
-
 
8866
      first = false;
-
 
8867
      sb.append(")");
-
 
8868
      return sb.toString();
-
 
8869
    }
-
 
8870
 
-
 
8871
    public void validate() throws org.apache.thrift.TException {
-
 
8872
      // check for required fields
-
 
8873
    }
-
 
8874
 
-
 
8875
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8876
      try {
-
 
8877
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8878
      } catch (org.apache.thrift.TException te) {
-
 
8879
        throw new java.io.IOException(te);
-
 
8880
      }
-
 
8881
    }
-
 
8882
 
-
 
8883
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8884
      try {
-
 
8885
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8886
      } catch (org.apache.thrift.TException te) {
-
 
8887
        throw new java.io.IOException(te);
-
 
8888
      }
-
 
8889
    }
-
 
8890
 
-
 
8891
  }
-
 
8892
 
-
 
8893
  public static class updatePurchaseOrder_args implements org.apache.thrift.TBase<updatePurchaseOrder_args, updatePurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8894
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePurchaseOrder_args");
-
 
8895
 
-
 
8896
    private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrder", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
8897
 
-
 
8898
    private PurchaseOrder purchaseOrder; // required
-
 
8899
 
-
 
8900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8902
      PURCHASE_ORDER((short)1, "purchaseOrder");
-
 
8903
 
-
 
8904
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8905
 
-
 
8906
      static {
-
 
8907
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8908
          byName.put(field.getFieldName(), field);
-
 
8909
        }
-
 
8910
      }
-
 
8911
 
-
 
8912
      /**
-
 
8913
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8914
       */
-
 
8915
      public static _Fields findByThriftId(int fieldId) {
-
 
8916
        switch(fieldId) {
-
 
8917
          case 1: // PURCHASE_ORDER
-
 
8918
            return PURCHASE_ORDER;
-
 
8919
          default:
-
 
8920
            return null;
-
 
8921
        }
-
 
8922
      }
-
 
8923
 
-
 
8924
      /**
-
 
8925
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8926
       * if it is not found.
-
 
8927
       */
-
 
8928
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8929
        _Fields fields = findByThriftId(fieldId);
-
 
8930
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8931
        return fields;
-
 
8932
      }
-
 
8933
 
-
 
8934
      /**
-
 
8935
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8936
       */
-
 
8937
      public static _Fields findByName(String name) {
-
 
8938
        return byName.get(name);
-
 
8939
      }
-
 
8940
 
-
 
8941
      private final short _thriftId;
-
 
8942
      private final String _fieldName;
-
 
8943
 
-
 
8944
      _Fields(short thriftId, String fieldName) {
-
 
8945
        _thriftId = thriftId;
-
 
8946
        _fieldName = fieldName;
-
 
8947
      }
-
 
8948
 
-
 
8949
      public short getThriftFieldId() {
-
 
8950
        return _thriftId;
-
 
8951
      }
-
 
8952
 
-
 
8953
      public String getFieldName() {
-
 
8954
        return _fieldName;
-
 
8955
      }
-
 
8956
    }
-
 
8957
 
-
 
8958
    // isset id assignments
-
 
8959
 
-
 
8960
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8961
    static {
-
 
8962
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8963
      tmpMap.put(_Fields.PURCHASE_ORDER, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrder", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8964
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseOrder.class)));
-
 
8965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePurchaseOrder_args.class, metaDataMap);
-
 
8967
    }
-
 
8968
 
-
 
8969
    public updatePurchaseOrder_args() {
-
 
8970
    }
-
 
8971
 
-
 
8972
    public updatePurchaseOrder_args(
-
 
8973
      PurchaseOrder purchaseOrder)
-
 
8974
    {
-
 
8975
      this();
-
 
8976
      this.purchaseOrder = purchaseOrder;
-
 
8977
    }
-
 
8978
 
-
 
8979
    /**
-
 
8980
     * Performs a deep copy on <i>other</i>.
-
 
8981
     */
-
 
8982
    public updatePurchaseOrder_args(updatePurchaseOrder_args other) {
-
 
8983
      if (other.isSetPurchaseOrder()) {
-
 
8984
        this.purchaseOrder = new PurchaseOrder(other.purchaseOrder);
-
 
8985
      }
-
 
8986
    }
-
 
8987
 
-
 
8988
    public updatePurchaseOrder_args deepCopy() {
-
 
8989
      return new updatePurchaseOrder_args(this);
-
 
8990
    }
-
 
8991
 
-
 
8992
    @Override
-
 
8993
    public void clear() {
-
 
8994
      this.purchaseOrder = null;
-
 
8995
    }
-
 
8996
 
-
 
8997
    public PurchaseOrder getPurchaseOrder() {
-
 
8998
      return this.purchaseOrder;
-
 
8999
    }
-
 
9000
 
-
 
9001
    public void setPurchaseOrder(PurchaseOrder purchaseOrder) {
-
 
9002
      this.purchaseOrder = purchaseOrder;
-
 
9003
    }
-
 
9004
 
-
 
9005
    public void unsetPurchaseOrder() {
-
 
9006
      this.purchaseOrder = null;
-
 
9007
    }
-
 
9008
 
-
 
9009
    /** Returns true if field purchaseOrder is set (has been assigned a value) and false otherwise */
-
 
9010
    public boolean isSetPurchaseOrder() {
-
 
9011
      return this.purchaseOrder != null;
-
 
9012
    }
-
 
9013
 
-
 
9014
    public void setPurchaseOrderIsSet(boolean value) {
-
 
9015
      if (!value) {
-
 
9016
        this.purchaseOrder = null;
-
 
9017
      }
-
 
9018
    }
-
 
9019
 
-
 
9020
    public void setFieldValue(_Fields field, Object value) {
-
 
9021
      switch (field) {
-
 
9022
      case PURCHASE_ORDER:
-
 
9023
        if (value == null) {
-
 
9024
          unsetPurchaseOrder();
-
 
9025
        } else {
-
 
9026
          setPurchaseOrder((PurchaseOrder)value);
-
 
9027
        }
-
 
9028
        break;
-
 
9029
 
-
 
9030
      }
-
 
9031
    }
-
 
9032
 
-
 
9033
    public Object getFieldValue(_Fields field) {
-
 
9034
      switch (field) {
-
 
9035
      case PURCHASE_ORDER:
-
 
9036
        return getPurchaseOrder();
-
 
9037
 
-
 
9038
      }
-
 
9039
      throw new IllegalStateException();
-
 
9040
    }
-
 
9041
 
-
 
9042
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9043
    public boolean isSet(_Fields field) {
-
 
9044
      if (field == null) {
-
 
9045
        throw new IllegalArgumentException();
-
 
9046
      }
-
 
9047
 
-
 
9048
      switch (field) {
-
 
9049
      case PURCHASE_ORDER:
-
 
9050
        return isSetPurchaseOrder();
-
 
9051
      }
-
 
9052
      throw new IllegalStateException();
-
 
9053
    }
-
 
9054
 
-
 
9055
    @Override
-
 
9056
    public boolean equals(Object that) {
-
 
9057
      if (that == null)
-
 
9058
        return false;
-
 
9059
      if (that instanceof updatePurchaseOrder_args)
-
 
9060
        return this.equals((updatePurchaseOrder_args)that);
-
 
9061
      return false;
-
 
9062
    }
-
 
9063
 
-
 
9064
    public boolean equals(updatePurchaseOrder_args that) {
-
 
9065
      if (that == null)
-
 
9066
        return false;
-
 
9067
 
-
 
9068
      boolean this_present_purchaseOrder = true && this.isSetPurchaseOrder();
-
 
9069
      boolean that_present_purchaseOrder = true && that.isSetPurchaseOrder();
-
 
9070
      if (this_present_purchaseOrder || that_present_purchaseOrder) {
-
 
9071
        if (!(this_present_purchaseOrder && that_present_purchaseOrder))
-
 
9072
          return false;
-
 
9073
        if (!this.purchaseOrder.equals(that.purchaseOrder))
-
 
9074
          return false;
-
 
9075
      }
-
 
9076
 
-
 
9077
      return true;
-
 
9078
    }
-
 
9079
 
-
 
9080
    @Override
-
 
9081
    public int hashCode() {
-
 
9082
      return 0;
-
 
9083
    }
-
 
9084
 
-
 
9085
    public int compareTo(updatePurchaseOrder_args other) {
-
 
9086
      if (!getClass().equals(other.getClass())) {
-
 
9087
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9088
      }
-
 
9089
 
-
 
9090
      int lastComparison = 0;
-
 
9091
      updatePurchaseOrder_args typedOther = (updatePurchaseOrder_args)other;
-
 
9092
 
-
 
9093
      lastComparison = Boolean.valueOf(isSetPurchaseOrder()).compareTo(typedOther.isSetPurchaseOrder());
-
 
9094
      if (lastComparison != 0) {
-
 
9095
        return lastComparison;
-
 
9096
      }
-
 
9097
      if (isSetPurchaseOrder()) {
-
 
9098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrder, typedOther.purchaseOrder);
-
 
9099
        if (lastComparison != 0) {
-
 
9100
          return lastComparison;
-
 
9101
        }
-
 
9102
      }
-
 
9103
      return 0;
-
 
9104
    }
-
 
9105
 
-
 
9106
    public _Fields fieldForId(int fieldId) {
-
 
9107
      return _Fields.findByThriftId(fieldId);
-
 
9108
    }
-
 
9109
 
-
 
9110
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9111
      org.apache.thrift.protocol.TField field;
-
 
9112
      iprot.readStructBegin();
-
 
9113
      while (true)
-
 
9114
      {
-
 
9115
        field = iprot.readFieldBegin();
-
 
9116
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9117
          break;
-
 
9118
        }
-
 
9119
        switch (field.id) {
-
 
9120
          case 1: // PURCHASE_ORDER
-
 
9121
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
9122
              this.purchaseOrder = new PurchaseOrder();
-
 
9123
              this.purchaseOrder.read(iprot);
-
 
9124
            } else { 
-
 
9125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9126
            }
-
 
9127
            break;
-
 
9128
          default:
-
 
9129
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9130
        }
-
 
9131
        iprot.readFieldEnd();
-
 
9132
      }
-
 
9133
      iprot.readStructEnd();
-
 
9134
      validate();
-
 
9135
    }
-
 
9136
 
-
 
9137
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9138
      validate();
-
 
9139
 
-
 
9140
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9141
      if (this.purchaseOrder != null) {
-
 
9142
        oprot.writeFieldBegin(PURCHASE_ORDER_FIELD_DESC);
-
 
9143
        this.purchaseOrder.write(oprot);
-
 
9144
        oprot.writeFieldEnd();
-
 
9145
      }
-
 
9146
      oprot.writeFieldStop();
-
 
9147
      oprot.writeStructEnd();
-
 
9148
    }
-
 
9149
 
-
 
9150
    @Override
-
 
9151
    public String toString() {
-
 
9152
      StringBuilder sb = new StringBuilder("updatePurchaseOrder_args(");
-
 
9153
      boolean first = true;
-
 
9154
 
-
 
9155
      sb.append("purchaseOrder:");
-
 
9156
      if (this.purchaseOrder == null) {
-
 
9157
        sb.append("null");
-
 
9158
      } else {
-
 
9159
        sb.append(this.purchaseOrder);
-
 
9160
      }
-
 
9161
      first = false;
-
 
9162
      sb.append(")");
-
 
9163
      return sb.toString();
-
 
9164
    }
-
 
9165
 
-
 
9166
    public void validate() throws org.apache.thrift.TException {
-
 
9167
      // check for required fields
-
 
9168
    }
-
 
9169
 
-
 
9170
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9171
      try {
-
 
9172
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9173
      } catch (org.apache.thrift.TException te) {
-
 
9174
        throw new java.io.IOException(te);
-
 
9175
      }
-
 
9176
    }
-
 
9177
 
-
 
9178
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9179
      try {
-
 
9180
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9181
      } catch (org.apache.thrift.TException te) {
-
 
9182
        throw new java.io.IOException(te);
-
 
9183
      }
-
 
9184
    }
-
 
9185
 
-
 
9186
  }
-
 
9187
 
-
 
9188
  public static class updatePurchaseOrder_result implements org.apache.thrift.TBase<updatePurchaseOrder_result, updatePurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
9189
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePurchaseOrder_result");
-
 
9190
 
-
 
9191
    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);
-
 
9192
 
-
 
9193
    private PurchaseServiceException e; // required
-
 
9194
 
-
 
9195
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9196
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9197
      E((short)1, "e");
-
 
9198
 
-
 
9199
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9200
 
-
 
9201
      static {
-
 
9202
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9203
          byName.put(field.getFieldName(), field);
-
 
9204
        }
-
 
9205
      }
-
 
9206
 
-
 
9207
      /**
-
 
9208
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9209
       */
-
 
9210
      public static _Fields findByThriftId(int fieldId) {
-
 
9211
        switch(fieldId) {
-
 
9212
          case 1: // E
-
 
9213
            return E;
-
 
9214
          default:
-
 
9215
            return null;
-
 
9216
        }
-
 
9217
      }
-
 
9218
 
-
 
9219
      /**
-
 
9220
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9221
       * if it is not found.
-
 
9222
       */
-
 
9223
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9224
        _Fields fields = findByThriftId(fieldId);
-
 
9225
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9226
        return fields;
-
 
9227
      }
-
 
9228
 
-
 
9229
      /**
-
 
9230
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9231
       */
-
 
9232
      public static _Fields findByName(String name) {
-
 
9233
        return byName.get(name);
-
 
9234
      }
-
 
9235
 
-
 
9236
      private final short _thriftId;
-
 
9237
      private final String _fieldName;
-
 
9238
 
-
 
9239
      _Fields(short thriftId, String fieldName) {
-
 
9240
        _thriftId = thriftId;
-
 
9241
        _fieldName = fieldName;
-
 
9242
      }
-
 
9243
 
-
 
9244
      public short getThriftFieldId() {
-
 
9245
        return _thriftId;
-
 
9246
      }
-
 
9247
 
-
 
9248
      public String getFieldName() {
-
 
9249
        return _fieldName;
-
 
9250
      }
-
 
9251
    }
-
 
9252
 
-
 
9253
    // isset id assignments
-
 
9254
 
-
 
9255
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9256
    static {
-
 
9257
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9258
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9259
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
9260
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9261
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePurchaseOrder_result.class, metaDataMap);
-
 
9262
    }
-
 
9263
 
-
 
9264
    public updatePurchaseOrder_result() {
-
 
9265
    }
-
 
9266
 
-
 
9267
    public updatePurchaseOrder_result(
-
 
9268
      PurchaseServiceException e)
-
 
9269
    {
-
 
9270
      this();
-
 
9271
      this.e = e;
-
 
9272
    }
-
 
9273
 
-
 
9274
    /**
-
 
9275
     * Performs a deep copy on <i>other</i>.
-
 
9276
     */
-
 
9277
    public updatePurchaseOrder_result(updatePurchaseOrder_result other) {
-
 
9278
      if (other.isSetE()) {
-
 
9279
        this.e = new PurchaseServiceException(other.e);
-
 
9280
      }
-
 
9281
    }
-
 
9282
 
-
 
9283
    public updatePurchaseOrder_result deepCopy() {
-
 
9284
      return new updatePurchaseOrder_result(this);
-
 
9285
    }
-
 
9286
 
-
 
9287
    @Override
-
 
9288
    public void clear() {
-
 
9289
      this.e = null;
-
 
9290
    }
-
 
9291
 
-
 
9292
    public PurchaseServiceException getE() {
-
 
9293
      return this.e;
-
 
9294
    }
-
 
9295
 
-
 
9296
    public void setE(PurchaseServiceException e) {
-
 
9297
      this.e = e;
-
 
9298
    }
-
 
9299
 
-
 
9300
    public void unsetE() {
-
 
9301
      this.e = null;
-
 
9302
    }
-
 
9303
 
-
 
9304
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
-
 
9305
    public boolean isSetE() {
-
 
9306
      return this.e != null;
-
 
9307
    }
-
 
9308
 
-
 
9309
    public void setEIsSet(boolean value) {
-
 
9310
      if (!value) {
-
 
9311
        this.e = null;
-
 
9312
      }
-
 
9313
    }
-
 
9314
 
-
 
9315
    public void setFieldValue(_Fields field, Object value) {
-
 
9316
      switch (field) {
-
 
9317
      case E:
-
 
9318
        if (value == null) {
-
 
9319
          unsetE();
-
 
9320
        } else {
-
 
9321
          setE((PurchaseServiceException)value);
-
 
9322
        }
-
 
9323
        break;
-
 
9324
 
-
 
9325
      }
-
 
9326
    }
-
 
9327
 
-
 
9328
    public Object getFieldValue(_Fields field) {
-
 
9329
      switch (field) {
-
 
9330
      case E:
-
 
9331
        return getE();
-
 
9332
 
-
 
9333
      }
-
 
9334
      throw new IllegalStateException();
-
 
9335
    }
-
 
9336
 
-
 
9337
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9338
    public boolean isSet(_Fields field) {
-
 
9339
      if (field == null) {
-
 
9340
        throw new IllegalArgumentException();
-
 
9341
      }
-
 
9342
 
-
 
9343
      switch (field) {
-
 
9344
      case E:
-
 
9345
        return isSetE();
-
 
9346
      }
-
 
9347
      throw new IllegalStateException();
-
 
9348
    }
-
 
9349
 
-
 
9350
    @Override
-
 
9351
    public boolean equals(Object that) {
-
 
9352
      if (that == null)
-
 
9353
        return false;
-
 
9354
      if (that instanceof updatePurchaseOrder_result)
-
 
9355
        return this.equals((updatePurchaseOrder_result)that);
-
 
9356
      return false;
-
 
9357
    }
-
 
9358
 
-
 
9359
    public boolean equals(updatePurchaseOrder_result that) {
-
 
9360
      if (that == null)
-
 
9361
        return false;
-
 
9362
 
-
 
9363
      boolean this_present_e = true && this.isSetE();
-
 
9364
      boolean that_present_e = true && that.isSetE();
-
 
9365
      if (this_present_e || that_present_e) {
-
 
9366
        if (!(this_present_e && that_present_e))
-
 
9367
          return false;
-
 
9368
        if (!this.e.equals(that.e))
-
 
9369
          return false;
-
 
9370
      }
-
 
9371
 
-
 
9372
      return true;
-
 
9373
    }
-
 
9374
 
-
 
9375
    @Override
-
 
9376
    public int hashCode() {
-
 
9377
      return 0;
-
 
9378
    }
-
 
9379
 
-
 
9380
    public int compareTo(updatePurchaseOrder_result other) {
-
 
9381
      if (!getClass().equals(other.getClass())) {
-
 
9382
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9383
      }
-
 
9384
 
-
 
9385
      int lastComparison = 0;
-
 
9386
      updatePurchaseOrder_result typedOther = (updatePurchaseOrder_result)other;
-
 
9387
 
-
 
9388
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
-
 
9389
      if (lastComparison != 0) {
-
 
9390
        return lastComparison;
-
 
9391
      }
-
 
9392
      if (isSetE()) {
-
 
9393
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
-
 
9394
        if (lastComparison != 0) {
-
 
9395
          return lastComparison;
-
 
9396
        }
-
 
9397
      }
-
 
9398
      return 0;
-
 
9399
    }
-
 
9400
 
-
 
9401
    public _Fields fieldForId(int fieldId) {
-
 
9402
      return _Fields.findByThriftId(fieldId);
-
 
9403
    }
-
 
9404
 
-
 
9405
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9406
      org.apache.thrift.protocol.TField field;
-
 
9407
      iprot.readStructBegin();
-
 
9408
      while (true)
-
 
9409
      {
-
 
9410
        field = iprot.readFieldBegin();
-
 
9411
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9412
          break;
-
 
9413
        }
-
 
9414
        switch (field.id) {
-
 
9415
          case 1: // E
-
 
9416
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
9417
              this.e = new PurchaseServiceException();
-
 
9418
              this.e.read(iprot);
-
 
9419
            } else { 
-
 
9420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9421
            }
-
 
9422
            break;
-
 
9423
          default:
-
 
9424
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9425
        }
-
 
9426
        iprot.readFieldEnd();
-
 
9427
      }
-
 
9428
      iprot.readStructEnd();
-
 
9429
      validate();
-
 
9430
    }
-
 
9431
 
-
 
9432
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9433
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9434
 
-
 
9435
      if (this.isSetE()) {
-
 
9436
        oprot.writeFieldBegin(E_FIELD_DESC);
-
 
9437
        this.e.write(oprot);
-
 
9438
        oprot.writeFieldEnd();
-
 
9439
      }
-
 
9440
      oprot.writeFieldStop();
-
 
9441
      oprot.writeStructEnd();
-
 
9442
    }
-
 
9443
 
-
 
9444
    @Override
-
 
9445
    public String toString() {
-
 
9446
      StringBuilder sb = new StringBuilder("updatePurchaseOrder_result(");
-
 
9447
      boolean first = true;
-
 
9448
 
-
 
9449
      sb.append("e:");
-
 
9450
      if (this.e == null) {
-
 
9451
        sb.append("null");
-
 
9452
      } else {
-
 
9453
        sb.append(this.e);
-
 
9454
      }
-
 
9455
      first = false;
-
 
9456
      sb.append(")");
-
 
9457
      return sb.toString();
-
 
9458
    }
6434
 
9459
 
6435
    public void validate() throws org.apache.thrift.TException {
9460
    public void validate() throws org.apache.thrift.TException {
6436
      // check for required fields
9461
      // check for required fields
6437
    }
9462
    }
6438
 
9463