Subversion Repositories SmartDukaan

Rev

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

Rev 14491 Rev 15045
Line 362... Line 362...
362
 
362
 
363
    public List<InventoryMovement> getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate) throws org.apache.thrift.TException;
363
    public List<InventoryMovement> getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate) throws org.apache.thrift.TException;
364
 
364
 
365
    public List<DoaOutInventoryItem> getAllDoaOutInventoryItems() throws WarehouseServiceException, org.apache.thrift.TException;
365
    public List<DoaOutInventoryItem> getAllDoaOutInventoryItems() throws WarehouseServiceException, org.apache.thrift.TException;
366
 
366
 
-
 
367
    public List<RemovalStockShipmentReference> getAllUnCompletedStockShipments(String source) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
368
 
-
 
369
    public RemovalStockShipmentReference getRemovalStockShipmentReferenceById(long id) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
370
 
-
 
371
    public long createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
372
 
-
 
373
    public void updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
374
 
367
  }
375
  }
368
 
376
 
369
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
377
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
370
 
378
 
371
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
379
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 498... Line 506...
498
 
506
 
499
    public void getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementForThirdPartyWarehouse_call> resultHandler) throws org.apache.thrift.TException;
507
    public void getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementForThirdPartyWarehouse_call> resultHandler) throws org.apache.thrift.TException;
500
 
508
 
501
    public void getAllDoaOutInventoryItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllDoaOutInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
509
    public void getAllDoaOutInventoryItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllDoaOutInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
502
 
510
 
-
 
511
    public void getAllUnCompletedStockShipments(String source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUnCompletedStockShipments_call> resultHandler) throws org.apache.thrift.TException;
-
 
512
 
-
 
513
    public void getRemovalStockShipmentReferenceById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRemovalStockShipmentReferenceById_call> resultHandler) throws org.apache.thrift.TException;
-
 
514
 
-
 
515
    public void createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRemovalStockShipmentReference_call> resultHandler) throws org.apache.thrift.TException;
-
 
516
 
-
 
517
    public void updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateShipmentReferenceTransferLot_call> resultHandler) throws org.apache.thrift.TException;
-
 
518
 
503
  }
519
  }
504
 
520
 
505
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
521
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
506
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
522
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
507
      public Factory() {}
523
      public Factory() {}
Line 2197... Line 2213...
2197
        throw result.ex;
2213
        throw result.ex;
2198
      }
2214
      }
2199
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllDoaOutInventoryItems failed: unknown result");
2215
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllDoaOutInventoryItems failed: unknown result");
2200
    }
2216
    }
2201
 
2217
 
-
 
2218
    public List<RemovalStockShipmentReference> getAllUnCompletedStockShipments(String source) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2219
    {
-
 
2220
      send_getAllUnCompletedStockShipments(source);
-
 
2221
      return recv_getAllUnCompletedStockShipments();
-
 
2222
    }
-
 
2223
 
-
 
2224
    public void send_getAllUnCompletedStockShipments(String source) throws org.apache.thrift.TException
-
 
2225
    {
-
 
2226
      getAllUnCompletedStockShipments_args args = new getAllUnCompletedStockShipments_args();
-
 
2227
      args.setSource(source);
-
 
2228
      sendBase("getAllUnCompletedStockShipments", args);
-
 
2229
    }
-
 
2230
 
-
 
2231
    public List<RemovalStockShipmentReference> recv_getAllUnCompletedStockShipments() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2232
    {
-
 
2233
      getAllUnCompletedStockShipments_result result = new getAllUnCompletedStockShipments_result();
-
 
2234
      receiveBase(result, "getAllUnCompletedStockShipments");
-
 
2235
      if (result.isSetSuccess()) {
-
 
2236
        return result.success;
-
 
2237
      }
-
 
2238
      if (result.ex != null) {
-
 
2239
        throw result.ex;
-
 
2240
      }
-
 
2241
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUnCompletedStockShipments failed: unknown result");
-
 
2242
    }
-
 
2243
 
-
 
2244
    public RemovalStockShipmentReference getRemovalStockShipmentReferenceById(long id) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2245
    {
-
 
2246
      send_getRemovalStockShipmentReferenceById(id);
-
 
2247
      return recv_getRemovalStockShipmentReferenceById();
-
 
2248
    }
-
 
2249
 
-
 
2250
    public void send_getRemovalStockShipmentReferenceById(long id) throws org.apache.thrift.TException
-
 
2251
    {
-
 
2252
      getRemovalStockShipmentReferenceById_args args = new getRemovalStockShipmentReferenceById_args();
-
 
2253
      args.setId(id);
-
 
2254
      sendBase("getRemovalStockShipmentReferenceById", args);
-
 
2255
    }
-
 
2256
 
-
 
2257
    public RemovalStockShipmentReference recv_getRemovalStockShipmentReferenceById() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2258
    {
-
 
2259
      getRemovalStockShipmentReferenceById_result result = new getRemovalStockShipmentReferenceById_result();
-
 
2260
      receiveBase(result, "getRemovalStockShipmentReferenceById");
-
 
2261
      if (result.isSetSuccess()) {
-
 
2262
        return result.success;
-
 
2263
      }
-
 
2264
      if (result.ex != null) {
-
 
2265
        throw result.ex;
-
 
2266
      }
-
 
2267
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRemovalStockShipmentReferenceById failed: unknown result");
-
 
2268
    }
-
 
2269
 
-
 
2270
    public long createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2271
    {
-
 
2272
      send_createRemovalStockShipmentReference(removalStockShipmentReference);
-
 
2273
      return recv_createRemovalStockShipmentReference();
-
 
2274
    }
-
 
2275
 
-
 
2276
    public void send_createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference) throws org.apache.thrift.TException
-
 
2277
    {
-
 
2278
      createRemovalStockShipmentReference_args args = new createRemovalStockShipmentReference_args();
-
 
2279
      args.setRemovalStockShipmentReference(removalStockShipmentReference);
-
 
2280
      sendBase("createRemovalStockShipmentReference", args);
-
 
2281
    }
-
 
2282
 
-
 
2283
    public long recv_createRemovalStockShipmentReference() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2284
    {
-
 
2285
      createRemovalStockShipmentReference_result result = new createRemovalStockShipmentReference_result();
-
 
2286
      receiveBase(result, "createRemovalStockShipmentReference");
-
 
2287
      if (result.isSetSuccess()) {
-
 
2288
        return result.success;
-
 
2289
      }
-
 
2290
      if (result.ex != null) {
-
 
2291
        throw result.ex;
-
 
2292
      }
-
 
2293
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRemovalStockShipmentReference failed: unknown result");
-
 
2294
    }
-
 
2295
 
-
 
2296
    public void updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2297
    {
-
 
2298
      send_updateShipmentReferenceTransferLot(transferLotId, shipmentReferenceId);
-
 
2299
      recv_updateShipmentReferenceTransferLot();
-
 
2300
    }
-
 
2301
 
-
 
2302
    public void send_updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId) throws org.apache.thrift.TException
-
 
2303
    {
-
 
2304
      updateShipmentReferenceTransferLot_args args = new updateShipmentReferenceTransferLot_args();
-
 
2305
      args.setTransferLotId(transferLotId);
-
 
2306
      args.setShipmentReferenceId(shipmentReferenceId);
-
 
2307
      sendBase("updateShipmentReferenceTransferLot", args);
-
 
2308
    }
-
 
2309
 
-
 
2310
    public void recv_updateShipmentReferenceTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2311
    {
-
 
2312
      updateShipmentReferenceTransferLot_result result = new updateShipmentReferenceTransferLot_result();
-
 
2313
      receiveBase(result, "updateShipmentReferenceTransferLot");
-
 
2314
      if (result.ex != null) {
-
 
2315
        throw result.ex;
-
 
2316
      }
-
 
2317
      return;
-
 
2318
    }
-
 
2319
 
2202
  }
2320
  }
2203
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2321
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2204
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2322
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2205
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2323
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2206
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2324
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4552... Line 4670...
4552
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4670
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4553
        return (new Client(prot)).recv_getAllDoaOutInventoryItems();
4671
        return (new Client(prot)).recv_getAllDoaOutInventoryItems();
4554
      }
4672
      }
4555
    }
4673
    }
4556
 
4674
 
-
 
4675
    public void getAllUnCompletedStockShipments(String source, org.apache.thrift.async.AsyncMethodCallback<getAllUnCompletedStockShipments_call> resultHandler) throws org.apache.thrift.TException {
-
 
4676
      checkReady();
-
 
4677
      getAllUnCompletedStockShipments_call method_call = new getAllUnCompletedStockShipments_call(source, resultHandler, this, ___protocolFactory, ___transport);
-
 
4678
      this.___currentMethod = method_call;
-
 
4679
      ___manager.call(method_call);
-
 
4680
    }
-
 
4681
 
-
 
4682
    public static class getAllUnCompletedStockShipments_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4683
      private String source;
-
 
4684
      public getAllUnCompletedStockShipments_call(String source, org.apache.thrift.async.AsyncMethodCallback<getAllUnCompletedStockShipments_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 {
-
 
4685
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4686
        this.source = source;
-
 
4687
      }
-
 
4688
 
-
 
4689
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4690
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUnCompletedStockShipments", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4691
        getAllUnCompletedStockShipments_args args = new getAllUnCompletedStockShipments_args();
-
 
4692
        args.setSource(source);
-
 
4693
        args.write(prot);
-
 
4694
        prot.writeMessageEnd();
-
 
4695
      }
-
 
4696
 
-
 
4697
      public List<RemovalStockShipmentReference> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4698
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4699
          throw new IllegalStateException("Method call not finished!");
-
 
4700
        }
-
 
4701
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4702
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4703
        return (new Client(prot)).recv_getAllUnCompletedStockShipments();
-
 
4704
      }
-
 
4705
    }
-
 
4706
 
-
 
4707
    public void getRemovalStockShipmentReferenceById(long id, org.apache.thrift.async.AsyncMethodCallback<getRemovalStockShipmentReferenceById_call> resultHandler) throws org.apache.thrift.TException {
-
 
4708
      checkReady();
-
 
4709
      getRemovalStockShipmentReferenceById_call method_call = new getRemovalStockShipmentReferenceById_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
4710
      this.___currentMethod = method_call;
-
 
4711
      ___manager.call(method_call);
-
 
4712
    }
-
 
4713
 
-
 
4714
    public static class getRemovalStockShipmentReferenceById_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4715
      private long id;
-
 
4716
      public getRemovalStockShipmentReferenceById_call(long id, org.apache.thrift.async.AsyncMethodCallback<getRemovalStockShipmentReferenceById_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 {
-
 
4717
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4718
        this.id = id;
-
 
4719
      }
-
 
4720
 
-
 
4721
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4722
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRemovalStockShipmentReferenceById", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4723
        getRemovalStockShipmentReferenceById_args args = new getRemovalStockShipmentReferenceById_args();
-
 
4724
        args.setId(id);
-
 
4725
        args.write(prot);
-
 
4726
        prot.writeMessageEnd();
-
 
4727
      }
-
 
4728
 
-
 
4729
      public RemovalStockShipmentReference getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4730
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4731
          throw new IllegalStateException("Method call not finished!");
-
 
4732
        }
-
 
4733
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4734
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4735
        return (new Client(prot)).recv_getRemovalStockShipmentReferenceById();
-
 
4736
      }
-
 
4737
    }
-
 
4738
 
-
 
4739
    public void createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference, org.apache.thrift.async.AsyncMethodCallback<createRemovalStockShipmentReference_call> resultHandler) throws org.apache.thrift.TException {
-
 
4740
      checkReady();
-
 
4741
      createRemovalStockShipmentReference_call method_call = new createRemovalStockShipmentReference_call(removalStockShipmentReference, resultHandler, this, ___protocolFactory, ___transport);
-
 
4742
      this.___currentMethod = method_call;
-
 
4743
      ___manager.call(method_call);
-
 
4744
    }
-
 
4745
 
-
 
4746
    public static class createRemovalStockShipmentReference_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4747
      private RemovalStockShipmentReference removalStockShipmentReference;
-
 
4748
      public createRemovalStockShipmentReference_call(RemovalStockShipmentReference removalStockShipmentReference, org.apache.thrift.async.AsyncMethodCallback<createRemovalStockShipmentReference_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 {
-
 
4749
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4750
        this.removalStockShipmentReference = removalStockShipmentReference;
-
 
4751
      }
-
 
4752
 
-
 
4753
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4754
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRemovalStockShipmentReference", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4755
        createRemovalStockShipmentReference_args args = new createRemovalStockShipmentReference_args();
-
 
4756
        args.setRemovalStockShipmentReference(removalStockShipmentReference);
-
 
4757
        args.write(prot);
-
 
4758
        prot.writeMessageEnd();
-
 
4759
      }
-
 
4760
 
-
 
4761
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4762
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4763
          throw new IllegalStateException("Method call not finished!");
-
 
4764
        }
-
 
4765
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4766
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4767
        return (new Client(prot)).recv_createRemovalStockShipmentReference();
-
 
4768
      }
-
 
4769
    }
-
 
4770
 
-
 
4771
    public void updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId, org.apache.thrift.async.AsyncMethodCallback<updateShipmentReferenceTransferLot_call> resultHandler) throws org.apache.thrift.TException {
-
 
4772
      checkReady();
-
 
4773
      updateShipmentReferenceTransferLot_call method_call = new updateShipmentReferenceTransferLot_call(transferLotId, shipmentReferenceId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4774
      this.___currentMethod = method_call;
-
 
4775
      ___manager.call(method_call);
-
 
4776
    }
-
 
4777
 
-
 
4778
    public static class updateShipmentReferenceTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4779
      private long transferLotId;
-
 
4780
      private long shipmentReferenceId;
-
 
4781
      public updateShipmentReferenceTransferLot_call(long transferLotId, long shipmentReferenceId, org.apache.thrift.async.AsyncMethodCallback<updateShipmentReferenceTransferLot_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 {
-
 
4782
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4783
        this.transferLotId = transferLotId;
-
 
4784
        this.shipmentReferenceId = shipmentReferenceId;
-
 
4785
      }
-
 
4786
 
-
 
4787
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4788
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateShipmentReferenceTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4789
        updateShipmentReferenceTransferLot_args args = new updateShipmentReferenceTransferLot_args();
-
 
4790
        args.setTransferLotId(transferLotId);
-
 
4791
        args.setShipmentReferenceId(shipmentReferenceId);
-
 
4792
        args.write(prot);
-
 
4793
        prot.writeMessageEnd();
-
 
4794
      }
-
 
4795
 
-
 
4796
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4797
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4798
          throw new IllegalStateException("Method call not finished!");
-
 
4799
        }
-
 
4800
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4801
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4802
        (new Client(prot)).recv_updateShipmentReferenceTransferLot();
-
 
4803
      }
-
 
4804
    }
-
 
4805
 
4557
  }
4806
  }
4558
 
4807
 
4559
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4808
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4560
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4809
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4561
    public Processor(I iface) {
4810
    public Processor(I iface) {
Line 4631... Line 4880...
4631
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4880
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4632
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
4881
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
4633
      processMap.put("getInventoryAgeConsideredItems", new getInventoryAgeConsideredItems());
4882
      processMap.put("getInventoryAgeConsideredItems", new getInventoryAgeConsideredItems());
4634
      processMap.put("getCompleteMovementForThirdPartyWarehouse", new getCompleteMovementForThirdPartyWarehouse());
4883
      processMap.put("getCompleteMovementForThirdPartyWarehouse", new getCompleteMovementForThirdPartyWarehouse());
4635
      processMap.put("getAllDoaOutInventoryItems", new getAllDoaOutInventoryItems());
4884
      processMap.put("getAllDoaOutInventoryItems", new getAllDoaOutInventoryItems());
-
 
4885
      processMap.put("getAllUnCompletedStockShipments", new getAllUnCompletedStockShipments());
-
 
4886
      processMap.put("getRemovalStockShipmentReferenceById", new getRemovalStockShipmentReferenceById());
-
 
4887
      processMap.put("createRemovalStockShipmentReference", new createRemovalStockShipmentReference());
-
 
4888
      processMap.put("updateShipmentReferenceTransferLot", new updateShipmentReferenceTransferLot());
4636
      return processMap;
4889
      return processMap;
4637
    }
4890
    }
4638
 
4891
 
4639
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4892
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4640
      public getInventoryItem() {
4893
      public getInventoryItem() {
Line 5861... Line 6114...
5861
        }
6114
        }
5862
        return result;
6115
        return result;
5863
      }
6116
      }
5864
    }
6117
    }
5865
 
6118
 
-
 
6119
    private static class getAllUnCompletedStockShipments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUnCompletedStockShipments_args> {
-
 
6120
      public getAllUnCompletedStockShipments() {
-
 
6121
        super("getAllUnCompletedStockShipments");
-
 
6122
      }
-
 
6123
 
-
 
6124
      protected getAllUnCompletedStockShipments_args getEmptyArgsInstance() {
-
 
6125
        return new getAllUnCompletedStockShipments_args();
-
 
6126
      }
-
 
6127
 
-
 
6128
      protected getAllUnCompletedStockShipments_result getResult(I iface, getAllUnCompletedStockShipments_args args) throws org.apache.thrift.TException {
-
 
6129
        getAllUnCompletedStockShipments_result result = new getAllUnCompletedStockShipments_result();
-
 
6130
        try {
-
 
6131
          result.success = iface.getAllUnCompletedStockShipments(args.source);
-
 
6132
        } catch (WarehouseServiceException ex) {
-
 
6133
          result.ex = ex;
-
 
6134
        }
-
 
6135
        return result;
-
 
6136
      }
-
 
6137
    }
-
 
6138
 
-
 
6139
    private static class getRemovalStockShipmentReferenceById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRemovalStockShipmentReferenceById_args> {
-
 
6140
      public getRemovalStockShipmentReferenceById() {
-
 
6141
        super("getRemovalStockShipmentReferenceById");
-
 
6142
      }
-
 
6143
 
-
 
6144
      protected getRemovalStockShipmentReferenceById_args getEmptyArgsInstance() {
-
 
6145
        return new getRemovalStockShipmentReferenceById_args();
-
 
6146
      }
-
 
6147
 
-
 
6148
      protected getRemovalStockShipmentReferenceById_result getResult(I iface, getRemovalStockShipmentReferenceById_args args) throws org.apache.thrift.TException {
-
 
6149
        getRemovalStockShipmentReferenceById_result result = new getRemovalStockShipmentReferenceById_result();
-
 
6150
        try {
-
 
6151
          result.success = iface.getRemovalStockShipmentReferenceById(args.id);
-
 
6152
        } catch (WarehouseServiceException ex) {
-
 
6153
          result.ex = ex;
-
 
6154
        }
-
 
6155
        return result;
-
 
6156
      }
-
 
6157
    }
-
 
6158
 
-
 
6159
    private static class createRemovalStockShipmentReference<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRemovalStockShipmentReference_args> {
-
 
6160
      public createRemovalStockShipmentReference() {
-
 
6161
        super("createRemovalStockShipmentReference");
-
 
6162
      }
-
 
6163
 
-
 
6164
      protected createRemovalStockShipmentReference_args getEmptyArgsInstance() {
-
 
6165
        return new createRemovalStockShipmentReference_args();
-
 
6166
      }
-
 
6167
 
-
 
6168
      protected createRemovalStockShipmentReference_result getResult(I iface, createRemovalStockShipmentReference_args args) throws org.apache.thrift.TException {
-
 
6169
        createRemovalStockShipmentReference_result result = new createRemovalStockShipmentReference_result();
-
 
6170
        try {
-
 
6171
          result.success = iface.createRemovalStockShipmentReference(args.removalStockShipmentReference);
-
 
6172
          result.setSuccessIsSet(true);
-
 
6173
        } catch (WarehouseServiceException ex) {
-
 
6174
          result.ex = ex;
-
 
6175
        }
-
 
6176
        return result;
-
 
6177
      }
-
 
6178
    }
-
 
6179
 
-
 
6180
    private static class updateShipmentReferenceTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateShipmentReferenceTransferLot_args> {
-
 
6181
      public updateShipmentReferenceTransferLot() {
-
 
6182
        super("updateShipmentReferenceTransferLot");
-
 
6183
      }
-
 
6184
 
-
 
6185
      protected updateShipmentReferenceTransferLot_args getEmptyArgsInstance() {
-
 
6186
        return new updateShipmentReferenceTransferLot_args();
-
 
6187
      }
-
 
6188
 
-
 
6189
      protected updateShipmentReferenceTransferLot_result getResult(I iface, updateShipmentReferenceTransferLot_args args) throws org.apache.thrift.TException {
-
 
6190
        updateShipmentReferenceTransferLot_result result = new updateShipmentReferenceTransferLot_result();
-
 
6191
        try {
-
 
6192
          iface.updateShipmentReferenceTransferLot(args.transferLotId, args.shipmentReferenceId);
-
 
6193
        } catch (WarehouseServiceException ex) {
-
 
6194
          result.ex = ex;
-
 
6195
        }
-
 
6196
        return result;
-
 
6197
      }
-
 
6198
    }
-
 
6199
 
5866
  }
6200
  }
5867
 
6201
 
5868
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
6202
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5869
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
6203
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5870
 
6204
 
Line 55284... Line 55618...
55284
      sb.append("ex:");
55618
      sb.append("ex:");
55285
      if (this.ex == null) {
55619
      if (this.ex == null) {
55286
        sb.append("null");
55620
        sb.append("null");
55287
      } else {
55621
      } else {
55288
        sb.append(this.ex);
55622
        sb.append(this.ex);
-
 
55623
      }
-
 
55624
      first = false;
-
 
55625
      sb.append(")");
-
 
55626
      return sb.toString();
-
 
55627
    }
-
 
55628
 
-
 
55629
    public void validate() throws org.apache.thrift.TException {
-
 
55630
      // check for required fields
-
 
55631
    }
-
 
55632
 
-
 
55633
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
55634
      try {
-
 
55635
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
55636
      } catch (org.apache.thrift.TException te) {
-
 
55637
        throw new java.io.IOException(te);
-
 
55638
      }
-
 
55639
    }
-
 
55640
 
-
 
55641
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
55642
      try {
-
 
55643
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
55644
      } catch (org.apache.thrift.TException te) {
-
 
55645
        throw new java.io.IOException(te);
-
 
55646
      }
-
 
55647
    }
-
 
55648
 
-
 
55649
  }
-
 
55650
 
-
 
55651
  public static class getAllUnCompletedStockShipments_args implements org.apache.thrift.TBase<getAllUnCompletedStockShipments_args, getAllUnCompletedStockShipments_args._Fields>, java.io.Serializable, Cloneable   {
-
 
55652
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUnCompletedStockShipments_args");
-
 
55653
 
-
 
55654
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
55655
 
-
 
55656
    private String source; // required
-
 
55657
 
-
 
55658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
55659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
55660
      SOURCE((short)1, "source");
-
 
55661
 
-
 
55662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
55663
 
-
 
55664
      static {
-
 
55665
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
55666
          byName.put(field.getFieldName(), field);
-
 
55667
        }
-
 
55668
      }
-
 
55669
 
-
 
55670
      /**
-
 
55671
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
55672
       */
-
 
55673
      public static _Fields findByThriftId(int fieldId) {
-
 
55674
        switch(fieldId) {
-
 
55675
          case 1: // SOURCE
-
 
55676
            return SOURCE;
-
 
55677
          default:
-
 
55678
            return null;
-
 
55679
        }
-
 
55680
      }
-
 
55681
 
-
 
55682
      /**
-
 
55683
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
55684
       * if it is not found.
-
 
55685
       */
-
 
55686
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
55687
        _Fields fields = findByThriftId(fieldId);
-
 
55688
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
55689
        return fields;
-
 
55690
      }
-
 
55691
 
-
 
55692
      /**
-
 
55693
       * Find the _Fields constant that matches name, or null if its not found.
-
 
55694
       */
-
 
55695
      public static _Fields findByName(String name) {
-
 
55696
        return byName.get(name);
-
 
55697
      }
-
 
55698
 
-
 
55699
      private final short _thriftId;
-
 
55700
      private final String _fieldName;
-
 
55701
 
-
 
55702
      _Fields(short thriftId, String fieldName) {
-
 
55703
        _thriftId = thriftId;
-
 
55704
        _fieldName = fieldName;
-
 
55705
      }
-
 
55706
 
-
 
55707
      public short getThriftFieldId() {
-
 
55708
        return _thriftId;
-
 
55709
      }
-
 
55710
 
-
 
55711
      public String getFieldName() {
-
 
55712
        return _fieldName;
-
 
55713
      }
-
 
55714
    }
-
 
55715
 
-
 
55716
    // isset id assignments
-
 
55717
 
-
 
55718
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
55719
    static {
-
 
55720
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
55721
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55722
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
55723
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
55724
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUnCompletedStockShipments_args.class, metaDataMap);
-
 
55725
    }
-
 
55726
 
-
 
55727
    public getAllUnCompletedStockShipments_args() {
-
 
55728
    }
-
 
55729
 
-
 
55730
    public getAllUnCompletedStockShipments_args(
-
 
55731
      String source)
-
 
55732
    {
-
 
55733
      this();
-
 
55734
      this.source = source;
-
 
55735
    }
-
 
55736
 
-
 
55737
    /**
-
 
55738
     * Performs a deep copy on <i>other</i>.
-
 
55739
     */
-
 
55740
    public getAllUnCompletedStockShipments_args(getAllUnCompletedStockShipments_args other) {
-
 
55741
      if (other.isSetSource()) {
-
 
55742
        this.source = other.source;
-
 
55743
      }
-
 
55744
    }
-
 
55745
 
-
 
55746
    public getAllUnCompletedStockShipments_args deepCopy() {
-
 
55747
      return new getAllUnCompletedStockShipments_args(this);
-
 
55748
    }
-
 
55749
 
-
 
55750
    @Override
-
 
55751
    public void clear() {
-
 
55752
      this.source = null;
-
 
55753
    }
-
 
55754
 
-
 
55755
    public String getSource() {
-
 
55756
      return this.source;
-
 
55757
    }
-
 
55758
 
-
 
55759
    public void setSource(String source) {
-
 
55760
      this.source = source;
-
 
55761
    }
-
 
55762
 
-
 
55763
    public void unsetSource() {
-
 
55764
      this.source = null;
-
 
55765
    }
-
 
55766
 
-
 
55767
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
55768
    public boolean isSetSource() {
-
 
55769
      return this.source != null;
-
 
55770
    }
-
 
55771
 
-
 
55772
    public void setSourceIsSet(boolean value) {
-
 
55773
      if (!value) {
-
 
55774
        this.source = null;
-
 
55775
      }
-
 
55776
    }
-
 
55777
 
-
 
55778
    public void setFieldValue(_Fields field, Object value) {
-
 
55779
      switch (field) {
-
 
55780
      case SOURCE:
-
 
55781
        if (value == null) {
-
 
55782
          unsetSource();
-
 
55783
        } else {
-
 
55784
          setSource((String)value);
-
 
55785
        }
-
 
55786
        break;
-
 
55787
 
-
 
55788
      }
-
 
55789
    }
-
 
55790
 
-
 
55791
    public Object getFieldValue(_Fields field) {
-
 
55792
      switch (field) {
-
 
55793
      case SOURCE:
-
 
55794
        return getSource();
-
 
55795
 
-
 
55796
      }
-
 
55797
      throw new IllegalStateException();
-
 
55798
    }
-
 
55799
 
-
 
55800
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
55801
    public boolean isSet(_Fields field) {
-
 
55802
      if (field == null) {
-
 
55803
        throw new IllegalArgumentException();
-
 
55804
      }
-
 
55805
 
-
 
55806
      switch (field) {
-
 
55807
      case SOURCE:
-
 
55808
        return isSetSource();
-
 
55809
      }
-
 
55810
      throw new IllegalStateException();
-
 
55811
    }
-
 
55812
 
-
 
55813
    @Override
-
 
55814
    public boolean equals(Object that) {
-
 
55815
      if (that == null)
-
 
55816
        return false;
-
 
55817
      if (that instanceof getAllUnCompletedStockShipments_args)
-
 
55818
        return this.equals((getAllUnCompletedStockShipments_args)that);
-
 
55819
      return false;
-
 
55820
    }
-
 
55821
 
-
 
55822
    public boolean equals(getAllUnCompletedStockShipments_args that) {
-
 
55823
      if (that == null)
-
 
55824
        return false;
-
 
55825
 
-
 
55826
      boolean this_present_source = true && this.isSetSource();
-
 
55827
      boolean that_present_source = true && that.isSetSource();
-
 
55828
      if (this_present_source || that_present_source) {
-
 
55829
        if (!(this_present_source && that_present_source))
-
 
55830
          return false;
-
 
55831
        if (!this.source.equals(that.source))
-
 
55832
          return false;
-
 
55833
      }
-
 
55834
 
-
 
55835
      return true;
-
 
55836
    }
-
 
55837
 
-
 
55838
    @Override
-
 
55839
    public int hashCode() {
-
 
55840
      return 0;
-
 
55841
    }
-
 
55842
 
-
 
55843
    public int compareTo(getAllUnCompletedStockShipments_args other) {
-
 
55844
      if (!getClass().equals(other.getClass())) {
-
 
55845
        return getClass().getName().compareTo(other.getClass().getName());
-
 
55846
      }
-
 
55847
 
-
 
55848
      int lastComparison = 0;
-
 
55849
      getAllUnCompletedStockShipments_args typedOther = (getAllUnCompletedStockShipments_args)other;
-
 
55850
 
-
 
55851
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
55852
      if (lastComparison != 0) {
-
 
55853
        return lastComparison;
-
 
55854
      }
-
 
55855
      if (isSetSource()) {
-
 
55856
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
55857
        if (lastComparison != 0) {
-
 
55858
          return lastComparison;
-
 
55859
        }
-
 
55860
      }
-
 
55861
      return 0;
-
 
55862
    }
-
 
55863
 
-
 
55864
    public _Fields fieldForId(int fieldId) {
-
 
55865
      return _Fields.findByThriftId(fieldId);
-
 
55866
    }
-
 
55867
 
-
 
55868
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
55869
      org.apache.thrift.protocol.TField field;
-
 
55870
      iprot.readStructBegin();
-
 
55871
      while (true)
-
 
55872
      {
-
 
55873
        field = iprot.readFieldBegin();
-
 
55874
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
55875
          break;
-
 
55876
        }
-
 
55877
        switch (field.id) {
-
 
55878
          case 1: // SOURCE
-
 
55879
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
55880
              this.source = iprot.readString();
-
 
55881
            } else { 
-
 
55882
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55883
            }
-
 
55884
            break;
-
 
55885
          default:
-
 
55886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55887
        }
-
 
55888
        iprot.readFieldEnd();
-
 
55889
      }
-
 
55890
      iprot.readStructEnd();
-
 
55891
      validate();
-
 
55892
    }
-
 
55893
 
-
 
55894
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
55895
      validate();
-
 
55896
 
-
 
55897
      oprot.writeStructBegin(STRUCT_DESC);
-
 
55898
      if (this.source != null) {
-
 
55899
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
55900
        oprot.writeString(this.source);
-
 
55901
        oprot.writeFieldEnd();
-
 
55902
      }
-
 
55903
      oprot.writeFieldStop();
-
 
55904
      oprot.writeStructEnd();
-
 
55905
    }
-
 
55906
 
-
 
55907
    @Override
-
 
55908
    public String toString() {
-
 
55909
      StringBuilder sb = new StringBuilder("getAllUnCompletedStockShipments_args(");
-
 
55910
      boolean first = true;
-
 
55911
 
-
 
55912
      sb.append("source:");
-
 
55913
      if (this.source == null) {
-
 
55914
        sb.append("null");
-
 
55915
      } else {
-
 
55916
        sb.append(this.source);
-
 
55917
      }
-
 
55918
      first = false;
-
 
55919
      sb.append(")");
-
 
55920
      return sb.toString();
-
 
55921
    }
-
 
55922
 
-
 
55923
    public void validate() throws org.apache.thrift.TException {
-
 
55924
      // check for required fields
-
 
55925
    }
-
 
55926
 
-
 
55927
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
55928
      try {
-
 
55929
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
55930
      } catch (org.apache.thrift.TException te) {
-
 
55931
        throw new java.io.IOException(te);
-
 
55932
      }
-
 
55933
    }
-
 
55934
 
-
 
55935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
55936
      try {
-
 
55937
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
55938
      } catch (org.apache.thrift.TException te) {
-
 
55939
        throw new java.io.IOException(te);
-
 
55940
      }
-
 
55941
    }
-
 
55942
 
-
 
55943
  }
-
 
55944
 
-
 
55945
  public static class getAllUnCompletedStockShipments_result implements org.apache.thrift.TBase<getAllUnCompletedStockShipments_result, getAllUnCompletedStockShipments_result._Fields>, java.io.Serializable, Cloneable   {
-
 
55946
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUnCompletedStockShipments_result");
-
 
55947
 
-
 
55948
    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);
-
 
55949
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
55950
 
-
 
55951
    private List<RemovalStockShipmentReference> success; // required
-
 
55952
    private WarehouseServiceException ex; // required
-
 
55953
 
-
 
55954
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
55955
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
55956
      SUCCESS((short)0, "success"),
-
 
55957
      EX((short)1, "ex");
-
 
55958
 
-
 
55959
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
55960
 
-
 
55961
      static {
-
 
55962
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
55963
          byName.put(field.getFieldName(), field);
-
 
55964
        }
-
 
55965
      }
-
 
55966
 
-
 
55967
      /**
-
 
55968
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
55969
       */
-
 
55970
      public static _Fields findByThriftId(int fieldId) {
-
 
55971
        switch(fieldId) {
-
 
55972
          case 0: // SUCCESS
-
 
55973
            return SUCCESS;
-
 
55974
          case 1: // EX
-
 
55975
            return EX;
-
 
55976
          default:
-
 
55977
            return null;
-
 
55978
        }
-
 
55979
      }
-
 
55980
 
-
 
55981
      /**
-
 
55982
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
55983
       * if it is not found.
-
 
55984
       */
-
 
55985
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
55986
        _Fields fields = findByThriftId(fieldId);
-
 
55987
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
55988
        return fields;
-
 
55989
      }
-
 
55990
 
-
 
55991
      /**
-
 
55992
       * Find the _Fields constant that matches name, or null if its not found.
-
 
55993
       */
-
 
55994
      public static _Fields findByName(String name) {
-
 
55995
        return byName.get(name);
-
 
55996
      }
-
 
55997
 
-
 
55998
      private final short _thriftId;
-
 
55999
      private final String _fieldName;
-
 
56000
 
-
 
56001
      _Fields(short thriftId, String fieldName) {
-
 
56002
        _thriftId = thriftId;
-
 
56003
        _fieldName = fieldName;
-
 
56004
      }
-
 
56005
 
-
 
56006
      public short getThriftFieldId() {
-
 
56007
        return _thriftId;
-
 
56008
      }
-
 
56009
 
-
 
56010
      public String getFieldName() {
-
 
56011
        return _fieldName;
-
 
56012
      }
-
 
56013
    }
-
 
56014
 
-
 
56015
    // isset id assignments
-
 
56016
 
-
 
56017
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56018
    static {
-
 
56019
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56020
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56021
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
56022
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RemovalStockShipmentReference.class))));
-
 
56023
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56024
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
56025
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56026
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUnCompletedStockShipments_result.class, metaDataMap);
-
 
56027
    }
-
 
56028
 
-
 
56029
    public getAllUnCompletedStockShipments_result() {
-
 
56030
    }
-
 
56031
 
-
 
56032
    public getAllUnCompletedStockShipments_result(
-
 
56033
      List<RemovalStockShipmentReference> success,
-
 
56034
      WarehouseServiceException ex)
-
 
56035
    {
-
 
56036
      this();
-
 
56037
      this.success = success;
-
 
56038
      this.ex = ex;
-
 
56039
    }
-
 
56040
 
-
 
56041
    /**
-
 
56042
     * Performs a deep copy on <i>other</i>.
-
 
56043
     */
-
 
56044
    public getAllUnCompletedStockShipments_result(getAllUnCompletedStockShipments_result other) {
-
 
56045
      if (other.isSetSuccess()) {
-
 
56046
        List<RemovalStockShipmentReference> __this__success = new ArrayList<RemovalStockShipmentReference>();
-
 
56047
        for (RemovalStockShipmentReference other_element : other.success) {
-
 
56048
          __this__success.add(new RemovalStockShipmentReference(other_element));
-
 
56049
        }
-
 
56050
        this.success = __this__success;
-
 
56051
      }
-
 
56052
      if (other.isSetEx()) {
-
 
56053
        this.ex = new WarehouseServiceException(other.ex);
-
 
56054
      }
-
 
56055
    }
-
 
56056
 
-
 
56057
    public getAllUnCompletedStockShipments_result deepCopy() {
-
 
56058
      return new getAllUnCompletedStockShipments_result(this);
-
 
56059
    }
-
 
56060
 
-
 
56061
    @Override
-
 
56062
    public void clear() {
-
 
56063
      this.success = null;
-
 
56064
      this.ex = null;
-
 
56065
    }
-
 
56066
 
-
 
56067
    public int getSuccessSize() {
-
 
56068
      return (this.success == null) ? 0 : this.success.size();
-
 
56069
    }
-
 
56070
 
-
 
56071
    public java.util.Iterator<RemovalStockShipmentReference> getSuccessIterator() {
-
 
56072
      return (this.success == null) ? null : this.success.iterator();
-
 
56073
    }
-
 
56074
 
-
 
56075
    public void addToSuccess(RemovalStockShipmentReference elem) {
-
 
56076
      if (this.success == null) {
-
 
56077
        this.success = new ArrayList<RemovalStockShipmentReference>();
-
 
56078
      }
-
 
56079
      this.success.add(elem);
-
 
56080
    }
-
 
56081
 
-
 
56082
    public List<RemovalStockShipmentReference> getSuccess() {
-
 
56083
      return this.success;
-
 
56084
    }
-
 
56085
 
-
 
56086
    public void setSuccess(List<RemovalStockShipmentReference> success) {
-
 
56087
      this.success = success;
-
 
56088
    }
-
 
56089
 
-
 
56090
    public void unsetSuccess() {
-
 
56091
      this.success = null;
-
 
56092
    }
-
 
56093
 
-
 
56094
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
56095
    public boolean isSetSuccess() {
-
 
56096
      return this.success != null;
-
 
56097
    }
-
 
56098
 
-
 
56099
    public void setSuccessIsSet(boolean value) {
-
 
56100
      if (!value) {
-
 
56101
        this.success = null;
-
 
56102
      }
-
 
56103
    }
-
 
56104
 
-
 
56105
    public WarehouseServiceException getEx() {
-
 
56106
      return this.ex;
-
 
56107
    }
-
 
56108
 
-
 
56109
    public void setEx(WarehouseServiceException ex) {
-
 
56110
      this.ex = ex;
-
 
56111
    }
-
 
56112
 
-
 
56113
    public void unsetEx() {
-
 
56114
      this.ex = null;
-
 
56115
    }
-
 
56116
 
-
 
56117
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
56118
    public boolean isSetEx() {
-
 
56119
      return this.ex != null;
-
 
56120
    }
-
 
56121
 
-
 
56122
    public void setExIsSet(boolean value) {
-
 
56123
      if (!value) {
-
 
56124
        this.ex = null;
-
 
56125
      }
-
 
56126
    }
-
 
56127
 
-
 
56128
    public void setFieldValue(_Fields field, Object value) {
-
 
56129
      switch (field) {
-
 
56130
      case SUCCESS:
-
 
56131
        if (value == null) {
-
 
56132
          unsetSuccess();
-
 
56133
        } else {
-
 
56134
          setSuccess((List<RemovalStockShipmentReference>)value);
-
 
56135
        }
-
 
56136
        break;
-
 
56137
 
-
 
56138
      case EX:
-
 
56139
        if (value == null) {
-
 
56140
          unsetEx();
-
 
56141
        } else {
-
 
56142
          setEx((WarehouseServiceException)value);
-
 
56143
        }
-
 
56144
        break;
-
 
56145
 
-
 
56146
      }
-
 
56147
    }
-
 
56148
 
-
 
56149
    public Object getFieldValue(_Fields field) {
-
 
56150
      switch (field) {
-
 
56151
      case SUCCESS:
-
 
56152
        return getSuccess();
-
 
56153
 
-
 
56154
      case EX:
-
 
56155
        return getEx();
-
 
56156
 
-
 
56157
      }
-
 
56158
      throw new IllegalStateException();
-
 
56159
    }
-
 
56160
 
-
 
56161
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56162
    public boolean isSet(_Fields field) {
-
 
56163
      if (field == null) {
-
 
56164
        throw new IllegalArgumentException();
-
 
56165
      }
-
 
56166
 
-
 
56167
      switch (field) {
-
 
56168
      case SUCCESS:
-
 
56169
        return isSetSuccess();
-
 
56170
      case EX:
-
 
56171
        return isSetEx();
-
 
56172
      }
-
 
56173
      throw new IllegalStateException();
-
 
56174
    }
-
 
56175
 
-
 
56176
    @Override
-
 
56177
    public boolean equals(Object that) {
-
 
56178
      if (that == null)
-
 
56179
        return false;
-
 
56180
      if (that instanceof getAllUnCompletedStockShipments_result)
-
 
56181
        return this.equals((getAllUnCompletedStockShipments_result)that);
-
 
56182
      return false;
-
 
56183
    }
-
 
56184
 
-
 
56185
    public boolean equals(getAllUnCompletedStockShipments_result that) {
-
 
56186
      if (that == null)
-
 
56187
        return false;
-
 
56188
 
-
 
56189
      boolean this_present_success = true && this.isSetSuccess();
-
 
56190
      boolean that_present_success = true && that.isSetSuccess();
-
 
56191
      if (this_present_success || that_present_success) {
-
 
56192
        if (!(this_present_success && that_present_success))
-
 
56193
          return false;
-
 
56194
        if (!this.success.equals(that.success))
-
 
56195
          return false;
-
 
56196
      }
-
 
56197
 
-
 
56198
      boolean this_present_ex = true && this.isSetEx();
-
 
56199
      boolean that_present_ex = true && that.isSetEx();
-
 
56200
      if (this_present_ex || that_present_ex) {
-
 
56201
        if (!(this_present_ex && that_present_ex))
-
 
56202
          return false;
-
 
56203
        if (!this.ex.equals(that.ex))
-
 
56204
          return false;
-
 
56205
      }
-
 
56206
 
-
 
56207
      return true;
-
 
56208
    }
-
 
56209
 
-
 
56210
    @Override
-
 
56211
    public int hashCode() {
-
 
56212
      return 0;
-
 
56213
    }
-
 
56214
 
-
 
56215
    public int compareTo(getAllUnCompletedStockShipments_result other) {
-
 
56216
      if (!getClass().equals(other.getClass())) {
-
 
56217
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56218
      }
-
 
56219
 
-
 
56220
      int lastComparison = 0;
-
 
56221
      getAllUnCompletedStockShipments_result typedOther = (getAllUnCompletedStockShipments_result)other;
-
 
56222
 
-
 
56223
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
56224
      if (lastComparison != 0) {
-
 
56225
        return lastComparison;
-
 
56226
      }
-
 
56227
      if (isSetSuccess()) {
-
 
56228
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
56229
        if (lastComparison != 0) {
-
 
56230
          return lastComparison;
-
 
56231
        }
-
 
56232
      }
-
 
56233
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
56234
      if (lastComparison != 0) {
-
 
56235
        return lastComparison;
-
 
56236
      }
-
 
56237
      if (isSetEx()) {
-
 
56238
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
56239
        if (lastComparison != 0) {
-
 
56240
          return lastComparison;
-
 
56241
        }
-
 
56242
      }
-
 
56243
      return 0;
-
 
56244
    }
-
 
56245
 
-
 
56246
    public _Fields fieldForId(int fieldId) {
-
 
56247
      return _Fields.findByThriftId(fieldId);
-
 
56248
    }
-
 
56249
 
-
 
56250
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56251
      org.apache.thrift.protocol.TField field;
-
 
56252
      iprot.readStructBegin();
-
 
56253
      while (true)
-
 
56254
      {
-
 
56255
        field = iprot.readFieldBegin();
-
 
56256
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56257
          break;
-
 
56258
        }
-
 
56259
        switch (field.id) {
-
 
56260
          case 0: // SUCCESS
-
 
56261
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
56262
              {
-
 
56263
                org.apache.thrift.protocol.TList _list182 = iprot.readListBegin();
-
 
56264
                this.success = new ArrayList<RemovalStockShipmentReference>(_list182.size);
-
 
56265
                for (int _i183 = 0; _i183 < _list182.size; ++_i183)
-
 
56266
                {
-
 
56267
                  RemovalStockShipmentReference _elem184; // required
-
 
56268
                  _elem184 = new RemovalStockShipmentReference();
-
 
56269
                  _elem184.read(iprot);
-
 
56270
                  this.success.add(_elem184);
-
 
56271
                }
-
 
56272
                iprot.readListEnd();
-
 
56273
              }
-
 
56274
            } else { 
-
 
56275
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56276
            }
-
 
56277
            break;
-
 
56278
          case 1: // EX
-
 
56279
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
56280
              this.ex = new WarehouseServiceException();
-
 
56281
              this.ex.read(iprot);
-
 
56282
            } else { 
-
 
56283
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56284
            }
-
 
56285
            break;
-
 
56286
          default:
-
 
56287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56288
        }
-
 
56289
        iprot.readFieldEnd();
-
 
56290
      }
-
 
56291
      iprot.readStructEnd();
-
 
56292
      validate();
-
 
56293
    }
-
 
56294
 
-
 
56295
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56296
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56297
 
-
 
56298
      if (this.isSetSuccess()) {
-
 
56299
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
56300
        {
-
 
56301
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
56302
          for (RemovalStockShipmentReference _iter185 : this.success)
-
 
56303
          {
-
 
56304
            _iter185.write(oprot);
-
 
56305
          }
-
 
56306
          oprot.writeListEnd();
-
 
56307
        }
-
 
56308
        oprot.writeFieldEnd();
-
 
56309
      } else if (this.isSetEx()) {
-
 
56310
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
56311
        this.ex.write(oprot);
-
 
56312
        oprot.writeFieldEnd();
-
 
56313
      }
-
 
56314
      oprot.writeFieldStop();
-
 
56315
      oprot.writeStructEnd();
-
 
56316
    }
-
 
56317
 
-
 
56318
    @Override
-
 
56319
    public String toString() {
-
 
56320
      StringBuilder sb = new StringBuilder("getAllUnCompletedStockShipments_result(");
-
 
56321
      boolean first = true;
-
 
56322
 
-
 
56323
      sb.append("success:");
-
 
56324
      if (this.success == null) {
-
 
56325
        sb.append("null");
-
 
56326
      } else {
-
 
56327
        sb.append(this.success);
-
 
56328
      }
-
 
56329
      first = false;
-
 
56330
      if (!first) sb.append(", ");
-
 
56331
      sb.append("ex:");
-
 
56332
      if (this.ex == null) {
-
 
56333
        sb.append("null");
-
 
56334
      } else {
-
 
56335
        sb.append(this.ex);
-
 
56336
      }
-
 
56337
      first = false;
-
 
56338
      sb.append(")");
-
 
56339
      return sb.toString();
-
 
56340
    }
-
 
56341
 
-
 
56342
    public void validate() throws org.apache.thrift.TException {
-
 
56343
      // check for required fields
-
 
56344
    }
-
 
56345
 
-
 
56346
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56347
      try {
-
 
56348
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56349
      } catch (org.apache.thrift.TException te) {
-
 
56350
        throw new java.io.IOException(te);
-
 
56351
      }
-
 
56352
    }
-
 
56353
 
-
 
56354
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56355
      try {
-
 
56356
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56357
      } catch (org.apache.thrift.TException te) {
-
 
56358
        throw new java.io.IOException(te);
-
 
56359
      }
-
 
56360
    }
-
 
56361
 
-
 
56362
  }
-
 
56363
 
-
 
56364
  public static class getRemovalStockShipmentReferenceById_args implements org.apache.thrift.TBase<getRemovalStockShipmentReferenceById_args, getRemovalStockShipmentReferenceById_args._Fields>, java.io.Serializable, Cloneable   {
-
 
56365
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRemovalStockShipmentReferenceById_args");
-
 
56366
 
-
 
56367
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
56368
 
-
 
56369
    private long id; // required
-
 
56370
 
-
 
56371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56373
      ID((short)1, "id");
-
 
56374
 
-
 
56375
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56376
 
-
 
56377
      static {
-
 
56378
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56379
          byName.put(field.getFieldName(), field);
-
 
56380
        }
-
 
56381
      }
-
 
56382
 
-
 
56383
      /**
-
 
56384
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56385
       */
-
 
56386
      public static _Fields findByThriftId(int fieldId) {
-
 
56387
        switch(fieldId) {
-
 
56388
          case 1: // ID
-
 
56389
            return ID;
-
 
56390
          default:
-
 
56391
            return null;
-
 
56392
        }
-
 
56393
      }
-
 
56394
 
-
 
56395
      /**
-
 
56396
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56397
       * if it is not found.
-
 
56398
       */
-
 
56399
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56400
        _Fields fields = findByThriftId(fieldId);
-
 
56401
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56402
        return fields;
-
 
56403
      }
-
 
56404
 
-
 
56405
      /**
-
 
56406
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56407
       */
-
 
56408
      public static _Fields findByName(String name) {
-
 
56409
        return byName.get(name);
-
 
56410
      }
-
 
56411
 
-
 
56412
      private final short _thriftId;
-
 
56413
      private final String _fieldName;
-
 
56414
 
-
 
56415
      _Fields(short thriftId, String fieldName) {
-
 
56416
        _thriftId = thriftId;
-
 
56417
        _fieldName = fieldName;
-
 
56418
      }
-
 
56419
 
-
 
56420
      public short getThriftFieldId() {
-
 
56421
        return _thriftId;
-
 
56422
      }
-
 
56423
 
-
 
56424
      public String getFieldName() {
-
 
56425
        return _fieldName;
-
 
56426
      }
-
 
56427
    }
-
 
56428
 
-
 
56429
    // isset id assignments
-
 
56430
    private static final int __ID_ISSET_ID = 0;
-
 
56431
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
56432
 
-
 
56433
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56434
    static {
-
 
56435
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56436
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
56438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRemovalStockShipmentReferenceById_args.class, metaDataMap);
-
 
56440
    }
-
 
56441
 
-
 
56442
    public getRemovalStockShipmentReferenceById_args() {
-
 
56443
    }
-
 
56444
 
-
 
56445
    public getRemovalStockShipmentReferenceById_args(
-
 
56446
      long id)
-
 
56447
    {
-
 
56448
      this();
-
 
56449
      this.id = id;
-
 
56450
      setIdIsSet(true);
-
 
56451
    }
-
 
56452
 
-
 
56453
    /**
-
 
56454
     * Performs a deep copy on <i>other</i>.
-
 
56455
     */
-
 
56456
    public getRemovalStockShipmentReferenceById_args(getRemovalStockShipmentReferenceById_args other) {
-
 
56457
      __isset_bit_vector.clear();
-
 
56458
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
56459
      this.id = other.id;
-
 
56460
    }
-
 
56461
 
-
 
56462
    public getRemovalStockShipmentReferenceById_args deepCopy() {
-
 
56463
      return new getRemovalStockShipmentReferenceById_args(this);
-
 
56464
    }
-
 
56465
 
-
 
56466
    @Override
-
 
56467
    public void clear() {
-
 
56468
      setIdIsSet(false);
-
 
56469
      this.id = 0;
-
 
56470
    }
-
 
56471
 
-
 
56472
    public long getId() {
-
 
56473
      return this.id;
-
 
56474
    }
-
 
56475
 
-
 
56476
    public void setId(long id) {
-
 
56477
      this.id = id;
-
 
56478
      setIdIsSet(true);
-
 
56479
    }
-
 
56480
 
-
 
56481
    public void unsetId() {
-
 
56482
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
56483
    }
-
 
56484
 
-
 
56485
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
56486
    public boolean isSetId() {
-
 
56487
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
56488
    }
-
 
56489
 
-
 
56490
    public void setIdIsSet(boolean value) {
-
 
56491
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
56492
    }
-
 
56493
 
-
 
56494
    public void setFieldValue(_Fields field, Object value) {
-
 
56495
      switch (field) {
-
 
56496
      case ID:
-
 
56497
        if (value == null) {
-
 
56498
          unsetId();
-
 
56499
        } else {
-
 
56500
          setId((Long)value);
-
 
56501
        }
-
 
56502
        break;
-
 
56503
 
-
 
56504
      }
-
 
56505
    }
-
 
56506
 
-
 
56507
    public Object getFieldValue(_Fields field) {
-
 
56508
      switch (field) {
-
 
56509
      case ID:
-
 
56510
        return Long.valueOf(getId());
-
 
56511
 
-
 
56512
      }
-
 
56513
      throw new IllegalStateException();
-
 
56514
    }
-
 
56515
 
-
 
56516
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56517
    public boolean isSet(_Fields field) {
-
 
56518
      if (field == null) {
-
 
56519
        throw new IllegalArgumentException();
-
 
56520
      }
-
 
56521
 
-
 
56522
      switch (field) {
-
 
56523
      case ID:
-
 
56524
        return isSetId();
-
 
56525
      }
-
 
56526
      throw new IllegalStateException();
-
 
56527
    }
-
 
56528
 
-
 
56529
    @Override
-
 
56530
    public boolean equals(Object that) {
-
 
56531
      if (that == null)
-
 
56532
        return false;
-
 
56533
      if (that instanceof getRemovalStockShipmentReferenceById_args)
-
 
56534
        return this.equals((getRemovalStockShipmentReferenceById_args)that);
-
 
56535
      return false;
-
 
56536
    }
-
 
56537
 
-
 
56538
    public boolean equals(getRemovalStockShipmentReferenceById_args that) {
-
 
56539
      if (that == null)
-
 
56540
        return false;
-
 
56541
 
-
 
56542
      boolean this_present_id = true;
-
 
56543
      boolean that_present_id = true;
-
 
56544
      if (this_present_id || that_present_id) {
-
 
56545
        if (!(this_present_id && that_present_id))
-
 
56546
          return false;
-
 
56547
        if (this.id != that.id)
-
 
56548
          return false;
-
 
56549
      }
-
 
56550
 
-
 
56551
      return true;
-
 
56552
    }
-
 
56553
 
-
 
56554
    @Override
-
 
56555
    public int hashCode() {
-
 
56556
      return 0;
-
 
56557
    }
-
 
56558
 
-
 
56559
    public int compareTo(getRemovalStockShipmentReferenceById_args other) {
-
 
56560
      if (!getClass().equals(other.getClass())) {
-
 
56561
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56562
      }
-
 
56563
 
-
 
56564
      int lastComparison = 0;
-
 
56565
      getRemovalStockShipmentReferenceById_args typedOther = (getRemovalStockShipmentReferenceById_args)other;
-
 
56566
 
-
 
56567
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
56568
      if (lastComparison != 0) {
-
 
56569
        return lastComparison;
-
 
56570
      }
-
 
56571
      if (isSetId()) {
-
 
56572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
56573
        if (lastComparison != 0) {
-
 
56574
          return lastComparison;
-
 
56575
        }
-
 
56576
      }
-
 
56577
      return 0;
-
 
56578
    }
-
 
56579
 
-
 
56580
    public _Fields fieldForId(int fieldId) {
-
 
56581
      return _Fields.findByThriftId(fieldId);
-
 
56582
    }
-
 
56583
 
-
 
56584
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56585
      org.apache.thrift.protocol.TField field;
-
 
56586
      iprot.readStructBegin();
-
 
56587
      while (true)
-
 
56588
      {
-
 
56589
        field = iprot.readFieldBegin();
-
 
56590
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56591
          break;
-
 
56592
        }
-
 
56593
        switch (field.id) {
-
 
56594
          case 1: // ID
-
 
56595
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
56596
              this.id = iprot.readI64();
-
 
56597
              setIdIsSet(true);
-
 
56598
            } else { 
-
 
56599
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56600
            }
-
 
56601
            break;
-
 
56602
          default:
-
 
56603
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56604
        }
-
 
56605
        iprot.readFieldEnd();
-
 
56606
      }
-
 
56607
      iprot.readStructEnd();
-
 
56608
      validate();
-
 
56609
    }
-
 
56610
 
-
 
56611
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56612
      validate();
-
 
56613
 
-
 
56614
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56615
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
56616
      oprot.writeI64(this.id);
-
 
56617
      oprot.writeFieldEnd();
-
 
56618
      oprot.writeFieldStop();
-
 
56619
      oprot.writeStructEnd();
-
 
56620
    }
-
 
56621
 
-
 
56622
    @Override
-
 
56623
    public String toString() {
-
 
56624
      StringBuilder sb = new StringBuilder("getRemovalStockShipmentReferenceById_args(");
-
 
56625
      boolean first = true;
-
 
56626
 
-
 
56627
      sb.append("id:");
-
 
56628
      sb.append(this.id);
-
 
56629
      first = false;
-
 
56630
      sb.append(")");
-
 
56631
      return sb.toString();
-
 
56632
    }
-
 
56633
 
-
 
56634
    public void validate() throws org.apache.thrift.TException {
-
 
56635
      // check for required fields
-
 
56636
    }
-
 
56637
 
-
 
56638
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56639
      try {
-
 
56640
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56641
      } catch (org.apache.thrift.TException te) {
-
 
56642
        throw new java.io.IOException(te);
-
 
56643
      }
-
 
56644
    }
-
 
56645
 
-
 
56646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56647
      try {
-
 
56648
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
56649
        __isset_bit_vector = new BitSet(1);
-
 
56650
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56651
      } catch (org.apache.thrift.TException te) {
-
 
56652
        throw new java.io.IOException(te);
-
 
56653
      }
-
 
56654
    }
-
 
56655
 
-
 
56656
  }
-
 
56657
 
-
 
56658
  public static class getRemovalStockShipmentReferenceById_result implements org.apache.thrift.TBase<getRemovalStockShipmentReferenceById_result, getRemovalStockShipmentReferenceById_result._Fields>, java.io.Serializable, Cloneable   {
-
 
56659
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRemovalStockShipmentReferenceById_result");
-
 
56660
 
-
 
56661
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
56662
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
56663
 
-
 
56664
    private RemovalStockShipmentReference success; // required
-
 
56665
    private WarehouseServiceException ex; // required
-
 
56666
 
-
 
56667
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56668
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56669
      SUCCESS((short)0, "success"),
-
 
56670
      EX((short)1, "ex");
-
 
56671
 
-
 
56672
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56673
 
-
 
56674
      static {
-
 
56675
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56676
          byName.put(field.getFieldName(), field);
-
 
56677
        }
-
 
56678
      }
-
 
56679
 
-
 
56680
      /**
-
 
56681
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56682
       */
-
 
56683
      public static _Fields findByThriftId(int fieldId) {
-
 
56684
        switch(fieldId) {
-
 
56685
          case 0: // SUCCESS
-
 
56686
            return SUCCESS;
-
 
56687
          case 1: // EX
-
 
56688
            return EX;
-
 
56689
          default:
-
 
56690
            return null;
-
 
56691
        }
-
 
56692
      }
-
 
56693
 
-
 
56694
      /**
-
 
56695
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56696
       * if it is not found.
-
 
56697
       */
-
 
56698
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56699
        _Fields fields = findByThriftId(fieldId);
-
 
56700
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56701
        return fields;
-
 
56702
      }
-
 
56703
 
-
 
56704
      /**
-
 
56705
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56706
       */
-
 
56707
      public static _Fields findByName(String name) {
-
 
56708
        return byName.get(name);
-
 
56709
      }
-
 
56710
 
-
 
56711
      private final short _thriftId;
-
 
56712
      private final String _fieldName;
-
 
56713
 
-
 
56714
      _Fields(short thriftId, String fieldName) {
-
 
56715
        _thriftId = thriftId;
-
 
56716
        _fieldName = fieldName;
-
 
56717
      }
-
 
56718
 
-
 
56719
      public short getThriftFieldId() {
-
 
56720
        return _thriftId;
-
 
56721
      }
-
 
56722
 
-
 
56723
      public String getFieldName() {
-
 
56724
        return _fieldName;
-
 
56725
      }
-
 
56726
    }
-
 
56727
 
-
 
56728
    // isset id assignments
-
 
56729
 
-
 
56730
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56731
    static {
-
 
56732
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56733
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56734
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RemovalStockShipmentReference.class)));
-
 
56735
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56736
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
56737
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56738
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRemovalStockShipmentReferenceById_result.class, metaDataMap);
-
 
56739
    }
-
 
56740
 
-
 
56741
    public getRemovalStockShipmentReferenceById_result() {
-
 
56742
    }
-
 
56743
 
-
 
56744
    public getRemovalStockShipmentReferenceById_result(
-
 
56745
      RemovalStockShipmentReference success,
-
 
56746
      WarehouseServiceException ex)
-
 
56747
    {
-
 
56748
      this();
-
 
56749
      this.success = success;
-
 
56750
      this.ex = ex;
-
 
56751
    }
-
 
56752
 
-
 
56753
    /**
-
 
56754
     * Performs a deep copy on <i>other</i>.
-
 
56755
     */
-
 
56756
    public getRemovalStockShipmentReferenceById_result(getRemovalStockShipmentReferenceById_result other) {
-
 
56757
      if (other.isSetSuccess()) {
-
 
56758
        this.success = new RemovalStockShipmentReference(other.success);
-
 
56759
      }
-
 
56760
      if (other.isSetEx()) {
-
 
56761
        this.ex = new WarehouseServiceException(other.ex);
-
 
56762
      }
-
 
56763
    }
-
 
56764
 
-
 
56765
    public getRemovalStockShipmentReferenceById_result deepCopy() {
-
 
56766
      return new getRemovalStockShipmentReferenceById_result(this);
-
 
56767
    }
-
 
56768
 
-
 
56769
    @Override
-
 
56770
    public void clear() {
-
 
56771
      this.success = null;
-
 
56772
      this.ex = null;
-
 
56773
    }
-
 
56774
 
-
 
56775
    public RemovalStockShipmentReference getSuccess() {
-
 
56776
      return this.success;
-
 
56777
    }
-
 
56778
 
-
 
56779
    public void setSuccess(RemovalStockShipmentReference success) {
-
 
56780
      this.success = success;
-
 
56781
    }
-
 
56782
 
-
 
56783
    public void unsetSuccess() {
-
 
56784
      this.success = null;
-
 
56785
    }
-
 
56786
 
-
 
56787
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
56788
    public boolean isSetSuccess() {
-
 
56789
      return this.success != null;
-
 
56790
    }
-
 
56791
 
-
 
56792
    public void setSuccessIsSet(boolean value) {
-
 
56793
      if (!value) {
-
 
56794
        this.success = null;
-
 
56795
      }
-
 
56796
    }
-
 
56797
 
-
 
56798
    public WarehouseServiceException getEx() {
-
 
56799
      return this.ex;
-
 
56800
    }
-
 
56801
 
-
 
56802
    public void setEx(WarehouseServiceException ex) {
-
 
56803
      this.ex = ex;
-
 
56804
    }
-
 
56805
 
-
 
56806
    public void unsetEx() {
-
 
56807
      this.ex = null;
-
 
56808
    }
-
 
56809
 
-
 
56810
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
56811
    public boolean isSetEx() {
-
 
56812
      return this.ex != null;
-
 
56813
    }
-
 
56814
 
-
 
56815
    public void setExIsSet(boolean value) {
-
 
56816
      if (!value) {
-
 
56817
        this.ex = null;
-
 
56818
      }
-
 
56819
    }
-
 
56820
 
-
 
56821
    public void setFieldValue(_Fields field, Object value) {
-
 
56822
      switch (field) {
-
 
56823
      case SUCCESS:
-
 
56824
        if (value == null) {
-
 
56825
          unsetSuccess();
-
 
56826
        } else {
-
 
56827
          setSuccess((RemovalStockShipmentReference)value);
-
 
56828
        }
-
 
56829
        break;
-
 
56830
 
-
 
56831
      case EX:
-
 
56832
        if (value == null) {
-
 
56833
          unsetEx();
-
 
56834
        } else {
-
 
56835
          setEx((WarehouseServiceException)value);
-
 
56836
        }
-
 
56837
        break;
-
 
56838
 
-
 
56839
      }
-
 
56840
    }
-
 
56841
 
-
 
56842
    public Object getFieldValue(_Fields field) {
-
 
56843
      switch (field) {
-
 
56844
      case SUCCESS:
-
 
56845
        return getSuccess();
-
 
56846
 
-
 
56847
      case EX:
-
 
56848
        return getEx();
-
 
56849
 
-
 
56850
      }
-
 
56851
      throw new IllegalStateException();
-
 
56852
    }
-
 
56853
 
-
 
56854
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56855
    public boolean isSet(_Fields field) {
-
 
56856
      if (field == null) {
-
 
56857
        throw new IllegalArgumentException();
-
 
56858
      }
-
 
56859
 
-
 
56860
      switch (field) {
-
 
56861
      case SUCCESS:
-
 
56862
        return isSetSuccess();
-
 
56863
      case EX:
-
 
56864
        return isSetEx();
-
 
56865
      }
-
 
56866
      throw new IllegalStateException();
-
 
56867
    }
-
 
56868
 
-
 
56869
    @Override
-
 
56870
    public boolean equals(Object that) {
-
 
56871
      if (that == null)
-
 
56872
        return false;
-
 
56873
      if (that instanceof getRemovalStockShipmentReferenceById_result)
-
 
56874
        return this.equals((getRemovalStockShipmentReferenceById_result)that);
-
 
56875
      return false;
-
 
56876
    }
-
 
56877
 
-
 
56878
    public boolean equals(getRemovalStockShipmentReferenceById_result that) {
-
 
56879
      if (that == null)
-
 
56880
        return false;
-
 
56881
 
-
 
56882
      boolean this_present_success = true && this.isSetSuccess();
-
 
56883
      boolean that_present_success = true && that.isSetSuccess();
-
 
56884
      if (this_present_success || that_present_success) {
-
 
56885
        if (!(this_present_success && that_present_success))
-
 
56886
          return false;
-
 
56887
        if (!this.success.equals(that.success))
-
 
56888
          return false;
-
 
56889
      }
-
 
56890
 
-
 
56891
      boolean this_present_ex = true && this.isSetEx();
-
 
56892
      boolean that_present_ex = true && that.isSetEx();
-
 
56893
      if (this_present_ex || that_present_ex) {
-
 
56894
        if (!(this_present_ex && that_present_ex))
-
 
56895
          return false;
-
 
56896
        if (!this.ex.equals(that.ex))
-
 
56897
          return false;
-
 
56898
      }
-
 
56899
 
-
 
56900
      return true;
-
 
56901
    }
-
 
56902
 
-
 
56903
    @Override
-
 
56904
    public int hashCode() {
-
 
56905
      return 0;
-
 
56906
    }
-
 
56907
 
-
 
56908
    public int compareTo(getRemovalStockShipmentReferenceById_result other) {
-
 
56909
      if (!getClass().equals(other.getClass())) {
-
 
56910
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56911
      }
-
 
56912
 
-
 
56913
      int lastComparison = 0;
-
 
56914
      getRemovalStockShipmentReferenceById_result typedOther = (getRemovalStockShipmentReferenceById_result)other;
-
 
56915
 
-
 
56916
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
56917
      if (lastComparison != 0) {
-
 
56918
        return lastComparison;
-
 
56919
      }
-
 
56920
      if (isSetSuccess()) {
-
 
56921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
56922
        if (lastComparison != 0) {
-
 
56923
          return lastComparison;
-
 
56924
        }
-
 
56925
      }
-
 
56926
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
56927
      if (lastComparison != 0) {
-
 
56928
        return lastComparison;
-
 
56929
      }
-
 
56930
      if (isSetEx()) {
-
 
56931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
56932
        if (lastComparison != 0) {
-
 
56933
          return lastComparison;
-
 
56934
        }
-
 
56935
      }
-
 
56936
      return 0;
-
 
56937
    }
-
 
56938
 
-
 
56939
    public _Fields fieldForId(int fieldId) {
-
 
56940
      return _Fields.findByThriftId(fieldId);
-
 
56941
    }
-
 
56942
 
-
 
56943
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56944
      org.apache.thrift.protocol.TField field;
-
 
56945
      iprot.readStructBegin();
-
 
56946
      while (true)
-
 
56947
      {
-
 
56948
        field = iprot.readFieldBegin();
-
 
56949
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56950
          break;
-
 
56951
        }
-
 
56952
        switch (field.id) {
-
 
56953
          case 0: // SUCCESS
-
 
56954
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
56955
              this.success = new RemovalStockShipmentReference();
-
 
56956
              this.success.read(iprot);
-
 
56957
            } else { 
-
 
56958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56959
            }
-
 
56960
            break;
-
 
56961
          case 1: // EX
-
 
56962
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
56963
              this.ex = new WarehouseServiceException();
-
 
56964
              this.ex.read(iprot);
-
 
56965
            } else { 
-
 
56966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56967
            }
-
 
56968
            break;
-
 
56969
          default:
-
 
56970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56971
        }
-
 
56972
        iprot.readFieldEnd();
-
 
56973
      }
-
 
56974
      iprot.readStructEnd();
-
 
56975
      validate();
-
 
56976
    }
-
 
56977
 
-
 
56978
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56979
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56980
 
-
 
56981
      if (this.isSetSuccess()) {
-
 
56982
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
56983
        this.success.write(oprot);
-
 
56984
        oprot.writeFieldEnd();
-
 
56985
      } else if (this.isSetEx()) {
-
 
56986
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
56987
        this.ex.write(oprot);
-
 
56988
        oprot.writeFieldEnd();
-
 
56989
      }
-
 
56990
      oprot.writeFieldStop();
-
 
56991
      oprot.writeStructEnd();
-
 
56992
    }
-
 
56993
 
-
 
56994
    @Override
-
 
56995
    public String toString() {
-
 
56996
      StringBuilder sb = new StringBuilder("getRemovalStockShipmentReferenceById_result(");
-
 
56997
      boolean first = true;
-
 
56998
 
-
 
56999
      sb.append("success:");
-
 
57000
      if (this.success == null) {
-
 
57001
        sb.append("null");
-
 
57002
      } else {
-
 
57003
        sb.append(this.success);
-
 
57004
      }
-
 
57005
      first = false;
-
 
57006
      if (!first) sb.append(", ");
-
 
57007
      sb.append("ex:");
-
 
57008
      if (this.ex == null) {
-
 
57009
        sb.append("null");
-
 
57010
      } else {
-
 
57011
        sb.append(this.ex);
-
 
57012
      }
-
 
57013
      first = false;
-
 
57014
      sb.append(")");
-
 
57015
      return sb.toString();
-
 
57016
    }
-
 
57017
 
-
 
57018
    public void validate() throws org.apache.thrift.TException {
-
 
57019
      // check for required fields
-
 
57020
    }
-
 
57021
 
-
 
57022
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57023
      try {
-
 
57024
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57025
      } catch (org.apache.thrift.TException te) {
-
 
57026
        throw new java.io.IOException(te);
-
 
57027
      }
-
 
57028
    }
-
 
57029
 
-
 
57030
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57031
      try {
-
 
57032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57033
      } catch (org.apache.thrift.TException te) {
-
 
57034
        throw new java.io.IOException(te);
-
 
57035
      }
-
 
57036
    }
-
 
57037
 
-
 
57038
  }
-
 
57039
 
-
 
57040
  public static class createRemovalStockShipmentReference_args implements org.apache.thrift.TBase<createRemovalStockShipmentReference_args, createRemovalStockShipmentReference_args._Fields>, java.io.Serializable, Cloneable   {
-
 
57041
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRemovalStockShipmentReference_args");
-
 
57042
 
-
 
57043
    private static final org.apache.thrift.protocol.TField REMOVAL_STOCK_SHIPMENT_REFERENCE_FIELD_DESC = new org.apache.thrift.protocol.TField("removalStockShipmentReference", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
57044
 
-
 
57045
    private RemovalStockShipmentReference removalStockShipmentReference; // required
-
 
57046
 
-
 
57047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57049
      REMOVAL_STOCK_SHIPMENT_REFERENCE((short)1, "removalStockShipmentReference");
-
 
57050
 
-
 
57051
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57052
 
-
 
57053
      static {
-
 
57054
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57055
          byName.put(field.getFieldName(), field);
-
 
57056
        }
-
 
57057
      }
-
 
57058
 
-
 
57059
      /**
-
 
57060
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57061
       */
-
 
57062
      public static _Fields findByThriftId(int fieldId) {
-
 
57063
        switch(fieldId) {
-
 
57064
          case 1: // REMOVAL_STOCK_SHIPMENT_REFERENCE
-
 
57065
            return REMOVAL_STOCK_SHIPMENT_REFERENCE;
-
 
57066
          default:
-
 
57067
            return null;
-
 
57068
        }
-
 
57069
      }
-
 
57070
 
-
 
57071
      /**
-
 
57072
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57073
       * if it is not found.
-
 
57074
       */
-
 
57075
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57076
        _Fields fields = findByThriftId(fieldId);
-
 
57077
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57078
        return fields;
-
 
57079
      }
-
 
57080
 
-
 
57081
      /**
-
 
57082
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57083
       */
-
 
57084
      public static _Fields findByName(String name) {
-
 
57085
        return byName.get(name);
-
 
57086
      }
-
 
57087
 
-
 
57088
      private final short _thriftId;
-
 
57089
      private final String _fieldName;
-
 
57090
 
-
 
57091
      _Fields(short thriftId, String fieldName) {
-
 
57092
        _thriftId = thriftId;
-
 
57093
        _fieldName = fieldName;
-
 
57094
      }
-
 
57095
 
-
 
57096
      public short getThriftFieldId() {
-
 
57097
        return _thriftId;
-
 
57098
      }
-
 
57099
 
-
 
57100
      public String getFieldName() {
-
 
57101
        return _fieldName;
-
 
57102
      }
-
 
57103
    }
-
 
57104
 
-
 
57105
    // isset id assignments
-
 
57106
 
-
 
57107
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57108
    static {
-
 
57109
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57110
      tmpMap.put(_Fields.REMOVAL_STOCK_SHIPMENT_REFERENCE, new org.apache.thrift.meta_data.FieldMetaData("removalStockShipmentReference", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57111
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RemovalStockShipmentReference.class)));
-
 
57112
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57113
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRemovalStockShipmentReference_args.class, metaDataMap);
-
 
57114
    }
-
 
57115
 
-
 
57116
    public createRemovalStockShipmentReference_args() {
-
 
57117
    }
-
 
57118
 
-
 
57119
    public createRemovalStockShipmentReference_args(
-
 
57120
      RemovalStockShipmentReference removalStockShipmentReference)
-
 
57121
    {
-
 
57122
      this();
-
 
57123
      this.removalStockShipmentReference = removalStockShipmentReference;
-
 
57124
    }
-
 
57125
 
-
 
57126
    /**
-
 
57127
     * Performs a deep copy on <i>other</i>.
-
 
57128
     */
-
 
57129
    public createRemovalStockShipmentReference_args(createRemovalStockShipmentReference_args other) {
-
 
57130
      if (other.isSetRemovalStockShipmentReference()) {
-
 
57131
        this.removalStockShipmentReference = new RemovalStockShipmentReference(other.removalStockShipmentReference);
-
 
57132
      }
-
 
57133
    }
-
 
57134
 
-
 
57135
    public createRemovalStockShipmentReference_args deepCopy() {
-
 
57136
      return new createRemovalStockShipmentReference_args(this);
-
 
57137
    }
-
 
57138
 
-
 
57139
    @Override
-
 
57140
    public void clear() {
-
 
57141
      this.removalStockShipmentReference = null;
-
 
57142
    }
-
 
57143
 
-
 
57144
    public RemovalStockShipmentReference getRemovalStockShipmentReference() {
-
 
57145
      return this.removalStockShipmentReference;
-
 
57146
    }
-
 
57147
 
-
 
57148
    public void setRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference) {
-
 
57149
      this.removalStockShipmentReference = removalStockShipmentReference;
-
 
57150
    }
-
 
57151
 
-
 
57152
    public void unsetRemovalStockShipmentReference() {
-
 
57153
      this.removalStockShipmentReference = null;
-
 
57154
    }
-
 
57155
 
-
 
57156
    /** Returns true if field removalStockShipmentReference is set (has been assigned a value) and false otherwise */
-
 
57157
    public boolean isSetRemovalStockShipmentReference() {
-
 
57158
      return this.removalStockShipmentReference != null;
-
 
57159
    }
-
 
57160
 
-
 
57161
    public void setRemovalStockShipmentReferenceIsSet(boolean value) {
-
 
57162
      if (!value) {
-
 
57163
        this.removalStockShipmentReference = null;
-
 
57164
      }
-
 
57165
    }
-
 
57166
 
-
 
57167
    public void setFieldValue(_Fields field, Object value) {
-
 
57168
      switch (field) {
-
 
57169
      case REMOVAL_STOCK_SHIPMENT_REFERENCE:
-
 
57170
        if (value == null) {
-
 
57171
          unsetRemovalStockShipmentReference();
-
 
57172
        } else {
-
 
57173
          setRemovalStockShipmentReference((RemovalStockShipmentReference)value);
-
 
57174
        }
-
 
57175
        break;
-
 
57176
 
-
 
57177
      }
-
 
57178
    }
-
 
57179
 
-
 
57180
    public Object getFieldValue(_Fields field) {
-
 
57181
      switch (field) {
-
 
57182
      case REMOVAL_STOCK_SHIPMENT_REFERENCE:
-
 
57183
        return getRemovalStockShipmentReference();
-
 
57184
 
-
 
57185
      }
-
 
57186
      throw new IllegalStateException();
-
 
57187
    }
-
 
57188
 
-
 
57189
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57190
    public boolean isSet(_Fields field) {
-
 
57191
      if (field == null) {
-
 
57192
        throw new IllegalArgumentException();
-
 
57193
      }
-
 
57194
 
-
 
57195
      switch (field) {
-
 
57196
      case REMOVAL_STOCK_SHIPMENT_REFERENCE:
-
 
57197
        return isSetRemovalStockShipmentReference();
-
 
57198
      }
-
 
57199
      throw new IllegalStateException();
-
 
57200
    }
-
 
57201
 
-
 
57202
    @Override
-
 
57203
    public boolean equals(Object that) {
-
 
57204
      if (that == null)
-
 
57205
        return false;
-
 
57206
      if (that instanceof createRemovalStockShipmentReference_args)
-
 
57207
        return this.equals((createRemovalStockShipmentReference_args)that);
-
 
57208
      return false;
-
 
57209
    }
-
 
57210
 
-
 
57211
    public boolean equals(createRemovalStockShipmentReference_args that) {
-
 
57212
      if (that == null)
-
 
57213
        return false;
-
 
57214
 
-
 
57215
      boolean this_present_removalStockShipmentReference = true && this.isSetRemovalStockShipmentReference();
-
 
57216
      boolean that_present_removalStockShipmentReference = true && that.isSetRemovalStockShipmentReference();
-
 
57217
      if (this_present_removalStockShipmentReference || that_present_removalStockShipmentReference) {
-
 
57218
        if (!(this_present_removalStockShipmentReference && that_present_removalStockShipmentReference))
-
 
57219
          return false;
-
 
57220
        if (!this.removalStockShipmentReference.equals(that.removalStockShipmentReference))
-
 
57221
          return false;
-
 
57222
      }
-
 
57223
 
-
 
57224
      return true;
-
 
57225
    }
-
 
57226
 
-
 
57227
    @Override
-
 
57228
    public int hashCode() {
-
 
57229
      return 0;
-
 
57230
    }
-
 
57231
 
-
 
57232
    public int compareTo(createRemovalStockShipmentReference_args other) {
-
 
57233
      if (!getClass().equals(other.getClass())) {
-
 
57234
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57235
      }
-
 
57236
 
-
 
57237
      int lastComparison = 0;
-
 
57238
      createRemovalStockShipmentReference_args typedOther = (createRemovalStockShipmentReference_args)other;
-
 
57239
 
-
 
57240
      lastComparison = Boolean.valueOf(isSetRemovalStockShipmentReference()).compareTo(typedOther.isSetRemovalStockShipmentReference());
-
 
57241
      if (lastComparison != 0) {
-
 
57242
        return lastComparison;
-
 
57243
      }
-
 
57244
      if (isSetRemovalStockShipmentReference()) {
-
 
57245
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.removalStockShipmentReference, typedOther.removalStockShipmentReference);
-
 
57246
        if (lastComparison != 0) {
-
 
57247
          return lastComparison;
-
 
57248
        }
-
 
57249
      }
-
 
57250
      return 0;
-
 
57251
    }
-
 
57252
 
-
 
57253
    public _Fields fieldForId(int fieldId) {
-
 
57254
      return _Fields.findByThriftId(fieldId);
-
 
57255
    }
-
 
57256
 
-
 
57257
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57258
      org.apache.thrift.protocol.TField field;
-
 
57259
      iprot.readStructBegin();
-
 
57260
      while (true)
-
 
57261
      {
-
 
57262
        field = iprot.readFieldBegin();
-
 
57263
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57264
          break;
-
 
57265
        }
-
 
57266
        switch (field.id) {
-
 
57267
          case 1: // REMOVAL_STOCK_SHIPMENT_REFERENCE
-
 
57268
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
57269
              this.removalStockShipmentReference = new RemovalStockShipmentReference();
-
 
57270
              this.removalStockShipmentReference.read(iprot);
-
 
57271
            } else { 
-
 
57272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57273
            }
-
 
57274
            break;
-
 
57275
          default:
-
 
57276
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57277
        }
-
 
57278
        iprot.readFieldEnd();
-
 
57279
      }
-
 
57280
      iprot.readStructEnd();
-
 
57281
      validate();
-
 
57282
    }
-
 
57283
 
-
 
57284
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57285
      validate();
-
 
57286
 
-
 
57287
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57288
      if (this.removalStockShipmentReference != null) {
-
 
57289
        oprot.writeFieldBegin(REMOVAL_STOCK_SHIPMENT_REFERENCE_FIELD_DESC);
-
 
57290
        this.removalStockShipmentReference.write(oprot);
-
 
57291
        oprot.writeFieldEnd();
-
 
57292
      }
-
 
57293
      oprot.writeFieldStop();
-
 
57294
      oprot.writeStructEnd();
-
 
57295
    }
-
 
57296
 
-
 
57297
    @Override
-
 
57298
    public String toString() {
-
 
57299
      StringBuilder sb = new StringBuilder("createRemovalStockShipmentReference_args(");
-
 
57300
      boolean first = true;
-
 
57301
 
-
 
57302
      sb.append("removalStockShipmentReference:");
-
 
57303
      if (this.removalStockShipmentReference == null) {
-
 
57304
        sb.append("null");
-
 
57305
      } else {
-
 
57306
        sb.append(this.removalStockShipmentReference);
-
 
57307
      }
-
 
57308
      first = false;
-
 
57309
      sb.append(")");
-
 
57310
      return sb.toString();
-
 
57311
    }
-
 
57312
 
-
 
57313
    public void validate() throws org.apache.thrift.TException {
-
 
57314
      // check for required fields
-
 
57315
    }
-
 
57316
 
-
 
57317
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57318
      try {
-
 
57319
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57320
      } catch (org.apache.thrift.TException te) {
-
 
57321
        throw new java.io.IOException(te);
-
 
57322
      }
-
 
57323
    }
-
 
57324
 
-
 
57325
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57326
      try {
-
 
57327
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57328
      } catch (org.apache.thrift.TException te) {
-
 
57329
        throw new java.io.IOException(te);
-
 
57330
      }
-
 
57331
    }
-
 
57332
 
-
 
57333
  }
-
 
57334
 
-
 
57335
  public static class createRemovalStockShipmentReference_result implements org.apache.thrift.TBase<createRemovalStockShipmentReference_result, createRemovalStockShipmentReference_result._Fields>, java.io.Serializable, Cloneable   {
-
 
57336
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRemovalStockShipmentReference_result");
-
 
57337
 
-
 
57338
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
57339
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
57340
 
-
 
57341
    private long success; // required
-
 
57342
    private WarehouseServiceException ex; // required
-
 
57343
 
-
 
57344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57345
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57346
      SUCCESS((short)0, "success"),
-
 
57347
      EX((short)1, "ex");
-
 
57348
 
-
 
57349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57350
 
-
 
57351
      static {
-
 
57352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57353
          byName.put(field.getFieldName(), field);
-
 
57354
        }
-
 
57355
      }
-
 
57356
 
-
 
57357
      /**
-
 
57358
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57359
       */
-
 
57360
      public static _Fields findByThriftId(int fieldId) {
-
 
57361
        switch(fieldId) {
-
 
57362
          case 0: // SUCCESS
-
 
57363
            return SUCCESS;
-
 
57364
          case 1: // EX
-
 
57365
            return EX;
-
 
57366
          default:
-
 
57367
            return null;
-
 
57368
        }
-
 
57369
      }
-
 
57370
 
-
 
57371
      /**
-
 
57372
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57373
       * if it is not found.
-
 
57374
       */
-
 
57375
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57376
        _Fields fields = findByThriftId(fieldId);
-
 
57377
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57378
        return fields;
-
 
57379
      }
-
 
57380
 
-
 
57381
      /**
-
 
57382
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57383
       */
-
 
57384
      public static _Fields findByName(String name) {
-
 
57385
        return byName.get(name);
-
 
57386
      }
-
 
57387
 
-
 
57388
      private final short _thriftId;
-
 
57389
      private final String _fieldName;
-
 
57390
 
-
 
57391
      _Fields(short thriftId, String fieldName) {
-
 
57392
        _thriftId = thriftId;
-
 
57393
        _fieldName = fieldName;
-
 
57394
      }
-
 
57395
 
-
 
57396
      public short getThriftFieldId() {
-
 
57397
        return _thriftId;
-
 
57398
      }
-
 
57399
 
-
 
57400
      public String getFieldName() {
-
 
57401
        return _fieldName;
-
 
57402
      }
-
 
57403
    }
-
 
57404
 
-
 
57405
    // isset id assignments
-
 
57406
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
57407
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
57408
 
-
 
57409
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57410
    static {
-
 
57411
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57412
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57413
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
57414
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57415
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
57416
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57417
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRemovalStockShipmentReference_result.class, metaDataMap);
-
 
57418
    }
-
 
57419
 
-
 
57420
    public createRemovalStockShipmentReference_result() {
-
 
57421
    }
-
 
57422
 
-
 
57423
    public createRemovalStockShipmentReference_result(
-
 
57424
      long success,
-
 
57425
      WarehouseServiceException ex)
-
 
57426
    {
-
 
57427
      this();
-
 
57428
      this.success = success;
-
 
57429
      setSuccessIsSet(true);
-
 
57430
      this.ex = ex;
-
 
57431
    }
-
 
57432
 
-
 
57433
    /**
-
 
57434
     * Performs a deep copy on <i>other</i>.
-
 
57435
     */
-
 
57436
    public createRemovalStockShipmentReference_result(createRemovalStockShipmentReference_result other) {
-
 
57437
      __isset_bit_vector.clear();
-
 
57438
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
57439
      this.success = other.success;
-
 
57440
      if (other.isSetEx()) {
-
 
57441
        this.ex = new WarehouseServiceException(other.ex);
-
 
57442
      }
-
 
57443
    }
-
 
57444
 
-
 
57445
    public createRemovalStockShipmentReference_result deepCopy() {
-
 
57446
      return new createRemovalStockShipmentReference_result(this);
-
 
57447
    }
-
 
57448
 
-
 
57449
    @Override
-
 
57450
    public void clear() {
-
 
57451
      setSuccessIsSet(false);
-
 
57452
      this.success = 0;
-
 
57453
      this.ex = null;
-
 
57454
    }
-
 
57455
 
-
 
57456
    public long getSuccess() {
-
 
57457
      return this.success;
-
 
57458
    }
-
 
57459
 
-
 
57460
    public void setSuccess(long success) {
-
 
57461
      this.success = success;
-
 
57462
      setSuccessIsSet(true);
-
 
57463
    }
-
 
57464
 
-
 
57465
    public void unsetSuccess() {
-
 
57466
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
57467
    }
-
 
57468
 
-
 
57469
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
57470
    public boolean isSetSuccess() {
-
 
57471
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
57472
    }
-
 
57473
 
-
 
57474
    public void setSuccessIsSet(boolean value) {
-
 
57475
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
57476
    }
-
 
57477
 
-
 
57478
    public WarehouseServiceException getEx() {
-
 
57479
      return this.ex;
-
 
57480
    }
-
 
57481
 
-
 
57482
    public void setEx(WarehouseServiceException ex) {
-
 
57483
      this.ex = ex;
-
 
57484
    }
-
 
57485
 
-
 
57486
    public void unsetEx() {
-
 
57487
      this.ex = null;
-
 
57488
    }
-
 
57489
 
-
 
57490
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
57491
    public boolean isSetEx() {
-
 
57492
      return this.ex != null;
-
 
57493
    }
-
 
57494
 
-
 
57495
    public void setExIsSet(boolean value) {
-
 
57496
      if (!value) {
-
 
57497
        this.ex = null;
-
 
57498
      }
-
 
57499
    }
-
 
57500
 
-
 
57501
    public void setFieldValue(_Fields field, Object value) {
-
 
57502
      switch (field) {
-
 
57503
      case SUCCESS:
-
 
57504
        if (value == null) {
-
 
57505
          unsetSuccess();
-
 
57506
        } else {
-
 
57507
          setSuccess((Long)value);
-
 
57508
        }
-
 
57509
        break;
-
 
57510
 
-
 
57511
      case EX:
-
 
57512
        if (value == null) {
-
 
57513
          unsetEx();
-
 
57514
        } else {
-
 
57515
          setEx((WarehouseServiceException)value);
-
 
57516
        }
-
 
57517
        break;
-
 
57518
 
-
 
57519
      }
-
 
57520
    }
-
 
57521
 
-
 
57522
    public Object getFieldValue(_Fields field) {
-
 
57523
      switch (field) {
-
 
57524
      case SUCCESS:
-
 
57525
        return Long.valueOf(getSuccess());
-
 
57526
 
-
 
57527
      case EX:
-
 
57528
        return getEx();
-
 
57529
 
-
 
57530
      }
-
 
57531
      throw new IllegalStateException();
-
 
57532
    }
-
 
57533
 
-
 
57534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57535
    public boolean isSet(_Fields field) {
-
 
57536
      if (field == null) {
-
 
57537
        throw new IllegalArgumentException();
-
 
57538
      }
-
 
57539
 
-
 
57540
      switch (field) {
-
 
57541
      case SUCCESS:
-
 
57542
        return isSetSuccess();
-
 
57543
      case EX:
-
 
57544
        return isSetEx();
-
 
57545
      }
-
 
57546
      throw new IllegalStateException();
-
 
57547
    }
-
 
57548
 
-
 
57549
    @Override
-
 
57550
    public boolean equals(Object that) {
-
 
57551
      if (that == null)
-
 
57552
        return false;
-
 
57553
      if (that instanceof createRemovalStockShipmentReference_result)
-
 
57554
        return this.equals((createRemovalStockShipmentReference_result)that);
-
 
57555
      return false;
-
 
57556
    }
-
 
57557
 
-
 
57558
    public boolean equals(createRemovalStockShipmentReference_result that) {
-
 
57559
      if (that == null)
-
 
57560
        return false;
-
 
57561
 
-
 
57562
      boolean this_present_success = true;
-
 
57563
      boolean that_present_success = true;
-
 
57564
      if (this_present_success || that_present_success) {
-
 
57565
        if (!(this_present_success && that_present_success))
-
 
57566
          return false;
-
 
57567
        if (this.success != that.success)
-
 
57568
          return false;
-
 
57569
      }
-
 
57570
 
-
 
57571
      boolean this_present_ex = true && this.isSetEx();
-
 
57572
      boolean that_present_ex = true && that.isSetEx();
-
 
57573
      if (this_present_ex || that_present_ex) {
-
 
57574
        if (!(this_present_ex && that_present_ex))
-
 
57575
          return false;
-
 
57576
        if (!this.ex.equals(that.ex))
-
 
57577
          return false;
-
 
57578
      }
-
 
57579
 
-
 
57580
      return true;
-
 
57581
    }
-
 
57582
 
-
 
57583
    @Override
-
 
57584
    public int hashCode() {
-
 
57585
      return 0;
-
 
57586
    }
-
 
57587
 
-
 
57588
    public int compareTo(createRemovalStockShipmentReference_result other) {
-
 
57589
      if (!getClass().equals(other.getClass())) {
-
 
57590
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57591
      }
-
 
57592
 
-
 
57593
      int lastComparison = 0;
-
 
57594
      createRemovalStockShipmentReference_result typedOther = (createRemovalStockShipmentReference_result)other;
-
 
57595
 
-
 
57596
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
57597
      if (lastComparison != 0) {
-
 
57598
        return lastComparison;
-
 
57599
      }
-
 
57600
      if (isSetSuccess()) {
-
 
57601
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
57602
        if (lastComparison != 0) {
-
 
57603
          return lastComparison;
-
 
57604
        }
-
 
57605
      }
-
 
57606
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
57607
      if (lastComparison != 0) {
-
 
57608
        return lastComparison;
-
 
57609
      }
-
 
57610
      if (isSetEx()) {
-
 
57611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
57612
        if (lastComparison != 0) {
-
 
57613
          return lastComparison;
-
 
57614
        }
-
 
57615
      }
-
 
57616
      return 0;
-
 
57617
    }
-
 
57618
 
-
 
57619
    public _Fields fieldForId(int fieldId) {
-
 
57620
      return _Fields.findByThriftId(fieldId);
-
 
57621
    }
-
 
57622
 
-
 
57623
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57624
      org.apache.thrift.protocol.TField field;
-
 
57625
      iprot.readStructBegin();
-
 
57626
      while (true)
-
 
57627
      {
-
 
57628
        field = iprot.readFieldBegin();
-
 
57629
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57630
          break;
-
 
57631
        }
-
 
57632
        switch (field.id) {
-
 
57633
          case 0: // SUCCESS
-
 
57634
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
57635
              this.success = iprot.readI64();
-
 
57636
              setSuccessIsSet(true);
-
 
57637
            } else { 
-
 
57638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57639
            }
-
 
57640
            break;
-
 
57641
          case 1: // EX
-
 
57642
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
57643
              this.ex = new WarehouseServiceException();
-
 
57644
              this.ex.read(iprot);
-
 
57645
            } else { 
-
 
57646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57647
            }
-
 
57648
            break;
-
 
57649
          default:
-
 
57650
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57651
        }
-
 
57652
        iprot.readFieldEnd();
-
 
57653
      }
-
 
57654
      iprot.readStructEnd();
-
 
57655
      validate();
-
 
57656
    }
-
 
57657
 
-
 
57658
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57659
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57660
 
-
 
57661
      if (this.isSetSuccess()) {
-
 
57662
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
57663
        oprot.writeI64(this.success);
-
 
57664
        oprot.writeFieldEnd();
-
 
57665
      } else if (this.isSetEx()) {
-
 
57666
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
57667
        this.ex.write(oprot);
-
 
57668
        oprot.writeFieldEnd();
-
 
57669
      }
-
 
57670
      oprot.writeFieldStop();
-
 
57671
      oprot.writeStructEnd();
-
 
57672
    }
-
 
57673
 
-
 
57674
    @Override
-
 
57675
    public String toString() {
-
 
57676
      StringBuilder sb = new StringBuilder("createRemovalStockShipmentReference_result(");
-
 
57677
      boolean first = true;
-
 
57678
 
-
 
57679
      sb.append("success:");
-
 
57680
      sb.append(this.success);
-
 
57681
      first = false;
-
 
57682
      if (!first) sb.append(", ");
-
 
57683
      sb.append("ex:");
-
 
57684
      if (this.ex == null) {
-
 
57685
        sb.append("null");
-
 
57686
      } else {
-
 
57687
        sb.append(this.ex);
-
 
57688
      }
-
 
57689
      first = false;
-
 
57690
      sb.append(")");
-
 
57691
      return sb.toString();
-
 
57692
    }
-
 
57693
 
-
 
57694
    public void validate() throws org.apache.thrift.TException {
-
 
57695
      // check for required fields
-
 
57696
    }
-
 
57697
 
-
 
57698
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57699
      try {
-
 
57700
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57701
      } catch (org.apache.thrift.TException te) {
-
 
57702
        throw new java.io.IOException(te);
-
 
57703
      }
-
 
57704
    }
-
 
57705
 
-
 
57706
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57707
      try {
-
 
57708
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57709
      } catch (org.apache.thrift.TException te) {
-
 
57710
        throw new java.io.IOException(te);
-
 
57711
      }
-
 
57712
    }
-
 
57713
 
-
 
57714
  }
-
 
57715
 
-
 
57716
  public static class updateShipmentReferenceTransferLot_args implements org.apache.thrift.TBase<updateShipmentReferenceTransferLot_args, updateShipmentReferenceTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
-
 
57717
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateShipmentReferenceTransferLot_args");
-
 
57718
 
-
 
57719
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
57720
    private static final org.apache.thrift.protocol.TField SHIPMENT_REFERENCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shipmentReferenceId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
57721
 
-
 
57722
    private long transferLotId; // required
-
 
57723
    private long shipmentReferenceId; // required
-
 
57724
 
-
 
57725
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57726
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57727
      TRANSFER_LOT_ID((short)1, "transferLotId"),
-
 
57728
      SHIPMENT_REFERENCE_ID((short)2, "shipmentReferenceId");
-
 
57729
 
-
 
57730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57731
 
-
 
57732
      static {
-
 
57733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57734
          byName.put(field.getFieldName(), field);
-
 
57735
        }
-
 
57736
      }
-
 
57737
 
-
 
57738
      /**
-
 
57739
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57740
       */
-
 
57741
      public static _Fields findByThriftId(int fieldId) {
-
 
57742
        switch(fieldId) {
-
 
57743
          case 1: // TRANSFER_LOT_ID
-
 
57744
            return TRANSFER_LOT_ID;
-
 
57745
          case 2: // SHIPMENT_REFERENCE_ID
-
 
57746
            return SHIPMENT_REFERENCE_ID;
-
 
57747
          default:
-
 
57748
            return null;
-
 
57749
        }
-
 
57750
      }
-
 
57751
 
-
 
57752
      /**
-
 
57753
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57754
       * if it is not found.
-
 
57755
       */
-
 
57756
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57757
        _Fields fields = findByThriftId(fieldId);
-
 
57758
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57759
        return fields;
-
 
57760
      }
-
 
57761
 
-
 
57762
      /**
-
 
57763
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57764
       */
-
 
57765
      public static _Fields findByName(String name) {
-
 
57766
        return byName.get(name);
-
 
57767
      }
-
 
57768
 
-
 
57769
      private final short _thriftId;
-
 
57770
      private final String _fieldName;
-
 
57771
 
-
 
57772
      _Fields(short thriftId, String fieldName) {
-
 
57773
        _thriftId = thriftId;
-
 
57774
        _fieldName = fieldName;
-
 
57775
      }
-
 
57776
 
-
 
57777
      public short getThriftFieldId() {
-
 
57778
        return _thriftId;
-
 
57779
      }
-
 
57780
 
-
 
57781
      public String getFieldName() {
-
 
57782
        return _fieldName;
-
 
57783
      }
-
 
57784
    }
-
 
57785
 
-
 
57786
    // isset id assignments
-
 
57787
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
-
 
57788
    private static final int __SHIPMENTREFERENCEID_ISSET_ID = 1;
-
 
57789
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
57790
 
-
 
57791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57792
    static {
-
 
57793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57794
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57795
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
57796
      tmpMap.put(_Fields.SHIPMENT_REFERENCE_ID, new org.apache.thrift.meta_data.FieldMetaData("shipmentReferenceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
57798
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57799
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateShipmentReferenceTransferLot_args.class, metaDataMap);
-
 
57800
    }
-
 
57801
 
-
 
57802
    public updateShipmentReferenceTransferLot_args() {
-
 
57803
    }
-
 
57804
 
-
 
57805
    public updateShipmentReferenceTransferLot_args(
-
 
57806
      long transferLotId,
-
 
57807
      long shipmentReferenceId)
-
 
57808
    {
-
 
57809
      this();
-
 
57810
      this.transferLotId = transferLotId;
-
 
57811
      setTransferLotIdIsSet(true);
-
 
57812
      this.shipmentReferenceId = shipmentReferenceId;
-
 
57813
      setShipmentReferenceIdIsSet(true);
-
 
57814
    }
-
 
57815
 
-
 
57816
    /**
-
 
57817
     * Performs a deep copy on <i>other</i>.
-
 
57818
     */
-
 
57819
    public updateShipmentReferenceTransferLot_args(updateShipmentReferenceTransferLot_args other) {
-
 
57820
      __isset_bit_vector.clear();
-
 
57821
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
57822
      this.transferLotId = other.transferLotId;
-
 
57823
      this.shipmentReferenceId = other.shipmentReferenceId;
-
 
57824
    }
-
 
57825
 
-
 
57826
    public updateShipmentReferenceTransferLot_args deepCopy() {
-
 
57827
      return new updateShipmentReferenceTransferLot_args(this);
-
 
57828
    }
-
 
57829
 
-
 
57830
    @Override
-
 
57831
    public void clear() {
-
 
57832
      setTransferLotIdIsSet(false);
-
 
57833
      this.transferLotId = 0;
-
 
57834
      setShipmentReferenceIdIsSet(false);
-
 
57835
      this.shipmentReferenceId = 0;
-
 
57836
    }
-
 
57837
 
-
 
57838
    public long getTransferLotId() {
-
 
57839
      return this.transferLotId;
-
 
57840
    }
-
 
57841
 
-
 
57842
    public void setTransferLotId(long transferLotId) {
-
 
57843
      this.transferLotId = transferLotId;
-
 
57844
      setTransferLotIdIsSet(true);
-
 
57845
    }
-
 
57846
 
-
 
57847
    public void unsetTransferLotId() {
-
 
57848
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
-
 
57849
    }
-
 
57850
 
-
 
57851
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
-
 
57852
    public boolean isSetTransferLotId() {
-
 
57853
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
-
 
57854
    }
-
 
57855
 
-
 
57856
    public void setTransferLotIdIsSet(boolean value) {
-
 
57857
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
-
 
57858
    }
-
 
57859
 
-
 
57860
    public long getShipmentReferenceId() {
-
 
57861
      return this.shipmentReferenceId;
-
 
57862
    }
-
 
57863
 
-
 
57864
    public void setShipmentReferenceId(long shipmentReferenceId) {
-
 
57865
      this.shipmentReferenceId = shipmentReferenceId;
-
 
57866
      setShipmentReferenceIdIsSet(true);
-
 
57867
    }
-
 
57868
 
-
 
57869
    public void unsetShipmentReferenceId() {
-
 
57870
      __isset_bit_vector.clear(__SHIPMENTREFERENCEID_ISSET_ID);
-
 
57871
    }
-
 
57872
 
-
 
57873
    /** Returns true if field shipmentReferenceId is set (has been assigned a value) and false otherwise */
-
 
57874
    public boolean isSetShipmentReferenceId() {
-
 
57875
      return __isset_bit_vector.get(__SHIPMENTREFERENCEID_ISSET_ID);
-
 
57876
    }
-
 
57877
 
-
 
57878
    public void setShipmentReferenceIdIsSet(boolean value) {
-
 
57879
      __isset_bit_vector.set(__SHIPMENTREFERENCEID_ISSET_ID, value);
-
 
57880
    }
-
 
57881
 
-
 
57882
    public void setFieldValue(_Fields field, Object value) {
-
 
57883
      switch (field) {
-
 
57884
      case TRANSFER_LOT_ID:
-
 
57885
        if (value == null) {
-
 
57886
          unsetTransferLotId();
-
 
57887
        } else {
-
 
57888
          setTransferLotId((Long)value);
-
 
57889
        }
-
 
57890
        break;
-
 
57891
 
-
 
57892
      case SHIPMENT_REFERENCE_ID:
-
 
57893
        if (value == null) {
-
 
57894
          unsetShipmentReferenceId();
-
 
57895
        } else {
-
 
57896
          setShipmentReferenceId((Long)value);
-
 
57897
        }
-
 
57898
        break;
-
 
57899
 
-
 
57900
      }
-
 
57901
    }
-
 
57902
 
-
 
57903
    public Object getFieldValue(_Fields field) {
-
 
57904
      switch (field) {
-
 
57905
      case TRANSFER_LOT_ID:
-
 
57906
        return Long.valueOf(getTransferLotId());
-
 
57907
 
-
 
57908
      case SHIPMENT_REFERENCE_ID:
-
 
57909
        return Long.valueOf(getShipmentReferenceId());
-
 
57910
 
-
 
57911
      }
-
 
57912
      throw new IllegalStateException();
-
 
57913
    }
-
 
57914
 
-
 
57915
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57916
    public boolean isSet(_Fields field) {
-
 
57917
      if (field == null) {
-
 
57918
        throw new IllegalArgumentException();
-
 
57919
      }
-
 
57920
 
-
 
57921
      switch (field) {
-
 
57922
      case TRANSFER_LOT_ID:
-
 
57923
        return isSetTransferLotId();
-
 
57924
      case SHIPMENT_REFERENCE_ID:
-
 
57925
        return isSetShipmentReferenceId();
-
 
57926
      }
-
 
57927
      throw new IllegalStateException();
-
 
57928
    }
-
 
57929
 
-
 
57930
    @Override
-
 
57931
    public boolean equals(Object that) {
-
 
57932
      if (that == null)
-
 
57933
        return false;
-
 
57934
      if (that instanceof updateShipmentReferenceTransferLot_args)
-
 
57935
        return this.equals((updateShipmentReferenceTransferLot_args)that);
-
 
57936
      return false;
-
 
57937
    }
-
 
57938
 
-
 
57939
    public boolean equals(updateShipmentReferenceTransferLot_args that) {
-
 
57940
      if (that == null)
-
 
57941
        return false;
-
 
57942
 
-
 
57943
      boolean this_present_transferLotId = true;
-
 
57944
      boolean that_present_transferLotId = true;
-
 
57945
      if (this_present_transferLotId || that_present_transferLotId) {
-
 
57946
        if (!(this_present_transferLotId && that_present_transferLotId))
-
 
57947
          return false;
-
 
57948
        if (this.transferLotId != that.transferLotId)
-
 
57949
          return false;
-
 
57950
      }
-
 
57951
 
-
 
57952
      boolean this_present_shipmentReferenceId = true;
-
 
57953
      boolean that_present_shipmentReferenceId = true;
-
 
57954
      if (this_present_shipmentReferenceId || that_present_shipmentReferenceId) {
-
 
57955
        if (!(this_present_shipmentReferenceId && that_present_shipmentReferenceId))
-
 
57956
          return false;
-
 
57957
        if (this.shipmentReferenceId != that.shipmentReferenceId)
-
 
57958
          return false;
-
 
57959
      }
-
 
57960
 
-
 
57961
      return true;
-
 
57962
    }
-
 
57963
 
-
 
57964
    @Override
-
 
57965
    public int hashCode() {
-
 
57966
      return 0;
-
 
57967
    }
-
 
57968
 
-
 
57969
    public int compareTo(updateShipmentReferenceTransferLot_args other) {
-
 
57970
      if (!getClass().equals(other.getClass())) {
-
 
57971
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57972
      }
-
 
57973
 
-
 
57974
      int lastComparison = 0;
-
 
57975
      updateShipmentReferenceTransferLot_args typedOther = (updateShipmentReferenceTransferLot_args)other;
-
 
57976
 
-
 
57977
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
-
 
57978
      if (lastComparison != 0) {
-
 
57979
        return lastComparison;
-
 
57980
      }
-
 
57981
      if (isSetTransferLotId()) {
-
 
57982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
-
 
57983
        if (lastComparison != 0) {
-
 
57984
          return lastComparison;
-
 
57985
        }
-
 
57986
      }
-
 
57987
      lastComparison = Boolean.valueOf(isSetShipmentReferenceId()).compareTo(typedOther.isSetShipmentReferenceId());
-
 
57988
      if (lastComparison != 0) {
-
 
57989
        return lastComparison;
-
 
57990
      }
-
 
57991
      if (isSetShipmentReferenceId()) {
-
 
57992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipmentReferenceId, typedOther.shipmentReferenceId);
-
 
57993
        if (lastComparison != 0) {
-
 
57994
          return lastComparison;
-
 
57995
        }
-
 
57996
      }
-
 
57997
      return 0;
-
 
57998
    }
-
 
57999
 
-
 
58000
    public _Fields fieldForId(int fieldId) {
-
 
58001
      return _Fields.findByThriftId(fieldId);
-
 
58002
    }
-
 
58003
 
-
 
58004
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
58005
      org.apache.thrift.protocol.TField field;
-
 
58006
      iprot.readStructBegin();
-
 
58007
      while (true)
-
 
58008
      {
-
 
58009
        field = iprot.readFieldBegin();
-
 
58010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
58011
          break;
-
 
58012
        }
-
 
58013
        switch (field.id) {
-
 
58014
          case 1: // TRANSFER_LOT_ID
-
 
58015
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
58016
              this.transferLotId = iprot.readI64();
-
 
58017
              setTransferLotIdIsSet(true);
-
 
58018
            } else { 
-
 
58019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58020
            }
-
 
58021
            break;
-
 
58022
          case 2: // SHIPMENT_REFERENCE_ID
-
 
58023
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
58024
              this.shipmentReferenceId = iprot.readI64();
-
 
58025
              setShipmentReferenceIdIsSet(true);
-
 
58026
            } else { 
-
 
58027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58028
            }
-
 
58029
            break;
-
 
58030
          default:
-
 
58031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58032
        }
-
 
58033
        iprot.readFieldEnd();
-
 
58034
      }
-
 
58035
      iprot.readStructEnd();
-
 
58036
      validate();
-
 
58037
    }
-
 
58038
 
-
 
58039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
58040
      validate();
-
 
58041
 
-
 
58042
      oprot.writeStructBegin(STRUCT_DESC);
-
 
58043
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
-
 
58044
      oprot.writeI64(this.transferLotId);
-
 
58045
      oprot.writeFieldEnd();
-
 
58046
      oprot.writeFieldBegin(SHIPMENT_REFERENCE_ID_FIELD_DESC);
-
 
58047
      oprot.writeI64(this.shipmentReferenceId);
-
 
58048
      oprot.writeFieldEnd();
-
 
58049
      oprot.writeFieldStop();
-
 
58050
      oprot.writeStructEnd();
-
 
58051
    }
-
 
58052
 
-
 
58053
    @Override
-
 
58054
    public String toString() {
-
 
58055
      StringBuilder sb = new StringBuilder("updateShipmentReferenceTransferLot_args(");
-
 
58056
      boolean first = true;
-
 
58057
 
-
 
58058
      sb.append("transferLotId:");
-
 
58059
      sb.append(this.transferLotId);
-
 
58060
      first = false;
-
 
58061
      if (!first) sb.append(", ");
-
 
58062
      sb.append("shipmentReferenceId:");
-
 
58063
      sb.append(this.shipmentReferenceId);
-
 
58064
      first = false;
-
 
58065
      sb.append(")");
-
 
58066
      return sb.toString();
-
 
58067
    }
-
 
58068
 
-
 
58069
    public void validate() throws org.apache.thrift.TException {
-
 
58070
      // check for required fields
-
 
58071
    }
-
 
58072
 
-
 
58073
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58074
      try {
-
 
58075
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58076
      } catch (org.apache.thrift.TException te) {
-
 
58077
        throw new java.io.IOException(te);
-
 
58078
      }
-
 
58079
    }
-
 
58080
 
-
 
58081
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58082
      try {
-
 
58083
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
58084
        __isset_bit_vector = new BitSet(1);
-
 
58085
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58086
      } catch (org.apache.thrift.TException te) {
-
 
58087
        throw new java.io.IOException(te);
-
 
58088
      }
-
 
58089
    }
-
 
58090
 
-
 
58091
  }
-
 
58092
 
-
 
58093
  public static class updateShipmentReferenceTransferLot_result implements org.apache.thrift.TBase<updateShipmentReferenceTransferLot_result, updateShipmentReferenceTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
-
 
58094
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateShipmentReferenceTransferLot_result");
-
 
58095
 
-
 
58096
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
58097
 
-
 
58098
    private WarehouseServiceException ex; // required
-
 
58099
 
-
 
58100
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58101
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58102
      EX((short)1, "ex");
-
 
58103
 
-
 
58104
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58105
 
-
 
58106
      static {
-
 
58107
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58108
          byName.put(field.getFieldName(), field);
-
 
58109
        }
-
 
58110
      }
-
 
58111
 
-
 
58112
      /**
-
 
58113
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58114
       */
-
 
58115
      public static _Fields findByThriftId(int fieldId) {
-
 
58116
        switch(fieldId) {
-
 
58117
          case 1: // EX
-
 
58118
            return EX;
-
 
58119
          default:
-
 
58120
            return null;
-
 
58121
        }
-
 
58122
      }
-
 
58123
 
-
 
58124
      /**
-
 
58125
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58126
       * if it is not found.
-
 
58127
       */
-
 
58128
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58129
        _Fields fields = findByThriftId(fieldId);
-
 
58130
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58131
        return fields;
-
 
58132
      }
-
 
58133
 
-
 
58134
      /**
-
 
58135
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58136
       */
-
 
58137
      public static _Fields findByName(String name) {
-
 
58138
        return byName.get(name);
-
 
58139
      }
-
 
58140
 
-
 
58141
      private final short _thriftId;
-
 
58142
      private final String _fieldName;
-
 
58143
 
-
 
58144
      _Fields(short thriftId, String fieldName) {
-
 
58145
        _thriftId = thriftId;
-
 
58146
        _fieldName = fieldName;
-
 
58147
      }
-
 
58148
 
-
 
58149
      public short getThriftFieldId() {
-
 
58150
        return _thriftId;
-
 
58151
      }
-
 
58152
 
-
 
58153
      public String getFieldName() {
-
 
58154
        return _fieldName;
-
 
58155
      }
-
 
58156
    }
-
 
58157
 
-
 
58158
    // isset id assignments
-
 
58159
 
-
 
58160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58161
    static {
-
 
58162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58163
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
58165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateShipmentReferenceTransferLot_result.class, metaDataMap);
-
 
58167
    }
-
 
58168
 
-
 
58169
    public updateShipmentReferenceTransferLot_result() {
-
 
58170
    }
-
 
58171
 
-
 
58172
    public updateShipmentReferenceTransferLot_result(
-
 
58173
      WarehouseServiceException ex)
-
 
58174
    {
-
 
58175
      this();
-
 
58176
      this.ex = ex;
-
 
58177
    }
-
 
58178
 
-
 
58179
    /**
-
 
58180
     * Performs a deep copy on <i>other</i>.
-
 
58181
     */
-
 
58182
    public updateShipmentReferenceTransferLot_result(updateShipmentReferenceTransferLot_result other) {
-
 
58183
      if (other.isSetEx()) {
-
 
58184
        this.ex = new WarehouseServiceException(other.ex);
-
 
58185
      }
-
 
58186
    }
-
 
58187
 
-
 
58188
    public updateShipmentReferenceTransferLot_result deepCopy() {
-
 
58189
      return new updateShipmentReferenceTransferLot_result(this);
-
 
58190
    }
-
 
58191
 
-
 
58192
    @Override
-
 
58193
    public void clear() {
-
 
58194
      this.ex = null;
-
 
58195
    }
-
 
58196
 
-
 
58197
    public WarehouseServiceException getEx() {
-
 
58198
      return this.ex;
-
 
58199
    }
-
 
58200
 
-
 
58201
    public void setEx(WarehouseServiceException ex) {
-
 
58202
      this.ex = ex;
-
 
58203
    }
-
 
58204
 
-
 
58205
    public void unsetEx() {
-
 
58206
      this.ex = null;
-
 
58207
    }
-
 
58208
 
-
 
58209
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
58210
    public boolean isSetEx() {
-
 
58211
      return this.ex != null;
-
 
58212
    }
-
 
58213
 
-
 
58214
    public void setExIsSet(boolean value) {
-
 
58215
      if (!value) {
-
 
58216
        this.ex = null;
-
 
58217
      }
-
 
58218
    }
-
 
58219
 
-
 
58220
    public void setFieldValue(_Fields field, Object value) {
-
 
58221
      switch (field) {
-
 
58222
      case EX:
-
 
58223
        if (value == null) {
-
 
58224
          unsetEx();
-
 
58225
        } else {
-
 
58226
          setEx((WarehouseServiceException)value);
-
 
58227
        }
-
 
58228
        break;
-
 
58229
 
-
 
58230
      }
-
 
58231
    }
-
 
58232
 
-
 
58233
    public Object getFieldValue(_Fields field) {
-
 
58234
      switch (field) {
-
 
58235
      case EX:
-
 
58236
        return getEx();
-
 
58237
 
-
 
58238
      }
-
 
58239
      throw new IllegalStateException();
-
 
58240
    }
-
 
58241
 
-
 
58242
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
58243
    public boolean isSet(_Fields field) {
-
 
58244
      if (field == null) {
-
 
58245
        throw new IllegalArgumentException();
-
 
58246
      }
-
 
58247
 
-
 
58248
      switch (field) {
-
 
58249
      case EX:
-
 
58250
        return isSetEx();
-
 
58251
      }
-
 
58252
      throw new IllegalStateException();
-
 
58253
    }
-
 
58254
 
-
 
58255
    @Override
-
 
58256
    public boolean equals(Object that) {
-
 
58257
      if (that == null)
-
 
58258
        return false;
-
 
58259
      if (that instanceof updateShipmentReferenceTransferLot_result)
-
 
58260
        return this.equals((updateShipmentReferenceTransferLot_result)that);
-
 
58261
      return false;
-
 
58262
    }
-
 
58263
 
-
 
58264
    public boolean equals(updateShipmentReferenceTransferLot_result that) {
-
 
58265
      if (that == null)
-
 
58266
        return false;
-
 
58267
 
-
 
58268
      boolean this_present_ex = true && this.isSetEx();
-
 
58269
      boolean that_present_ex = true && that.isSetEx();
-
 
58270
      if (this_present_ex || that_present_ex) {
-
 
58271
        if (!(this_present_ex && that_present_ex))
-
 
58272
          return false;
-
 
58273
        if (!this.ex.equals(that.ex))
-
 
58274
          return false;
-
 
58275
      }
-
 
58276
 
-
 
58277
      return true;
-
 
58278
    }
-
 
58279
 
-
 
58280
    @Override
-
 
58281
    public int hashCode() {
-
 
58282
      return 0;
-
 
58283
    }
-
 
58284
 
-
 
58285
    public int compareTo(updateShipmentReferenceTransferLot_result other) {
-
 
58286
      if (!getClass().equals(other.getClass())) {
-
 
58287
        return getClass().getName().compareTo(other.getClass().getName());
-
 
58288
      }
-
 
58289
 
-
 
58290
      int lastComparison = 0;
-
 
58291
      updateShipmentReferenceTransferLot_result typedOther = (updateShipmentReferenceTransferLot_result)other;
-
 
58292
 
-
 
58293
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
58294
      if (lastComparison != 0) {
-
 
58295
        return lastComparison;
-
 
58296
      }
-
 
58297
      if (isSetEx()) {
-
 
58298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
58299
        if (lastComparison != 0) {
-
 
58300
          return lastComparison;
-
 
58301
        }
-
 
58302
      }
-
 
58303
      return 0;
-
 
58304
    }
-
 
58305
 
-
 
58306
    public _Fields fieldForId(int fieldId) {
-
 
58307
      return _Fields.findByThriftId(fieldId);
-
 
58308
    }
-
 
58309
 
-
 
58310
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
58311
      org.apache.thrift.protocol.TField field;
-
 
58312
      iprot.readStructBegin();
-
 
58313
      while (true)
-
 
58314
      {
-
 
58315
        field = iprot.readFieldBegin();
-
 
58316
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
58317
          break;
-
 
58318
        }
-
 
58319
        switch (field.id) {
-
 
58320
          case 1: // EX
-
 
58321
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
58322
              this.ex = new WarehouseServiceException();
-
 
58323
              this.ex.read(iprot);
-
 
58324
            } else { 
-
 
58325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58326
            }
-
 
58327
            break;
-
 
58328
          default:
-
 
58329
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58330
        }
-
 
58331
        iprot.readFieldEnd();
-
 
58332
      }
-
 
58333
      iprot.readStructEnd();
-
 
58334
      validate();
-
 
58335
    }
-
 
58336
 
-
 
58337
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
58338
      oprot.writeStructBegin(STRUCT_DESC);
-
 
58339
 
-
 
58340
      if (this.isSetEx()) {
-
 
58341
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
58342
        this.ex.write(oprot);
-
 
58343
        oprot.writeFieldEnd();
-
 
58344
      }
-
 
58345
      oprot.writeFieldStop();
-
 
58346
      oprot.writeStructEnd();
-
 
58347
    }
-
 
58348
 
-
 
58349
    @Override
-
 
58350
    public String toString() {
-
 
58351
      StringBuilder sb = new StringBuilder("updateShipmentReferenceTransferLot_result(");
-
 
58352
      boolean first = true;
-
 
58353
 
-
 
58354
      sb.append("ex:");
-
 
58355
      if (this.ex == null) {
-
 
58356
        sb.append("null");
-
 
58357
      } else {
-
 
58358
        sb.append(this.ex);
55289
      }
58359
      }
55290
      first = false;
58360
      first = false;
55291
      sb.append(")");
58361
      sb.append(")");
55292
      return sb.toString();
58362
      return sb.toString();
55293
    }
58363
    }