Subversion Repositories SmartDukaan

Rev

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

Rev 7410 Rev 7453
Line 251... Line 251...
251
 
251
 
252
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException;
252
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException;
253
 
253
 
254
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException;
254
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException;
255
 
255
 
-
 
256
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
257
 
256
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
258
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
259
 
-
 
260
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException;
257
 
261
 
258
  }
262
  }
259
 
263
 
260
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
264
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
261
 
265
 
Line 337... Line 341...
337
 
341
 
338
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException;
342
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException;
339
 
343
 
340
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException;
344
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException;
341
 
345
 
-
 
346
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransferOut_call> resultHandler) throws org.apache.thrift.TException;
-
 
347
 
342
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransfer_call> resultHandler) throws org.apache.thrift.TException;
348
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException;
-
 
349
 
-
 
350
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException;
343
 
351
 
344
  }
352
  }
345
 
353
 
346
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
354
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
347
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
355
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 1358... Line 1366...
1358
        throw result.wex;
1366
        throw result.wex;
1359
      }
1367
      }
1360
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
1368
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
1361
    }
1369
    }
1362
 
1370
 
1363
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1371
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1364
    {
1372
    {
1365
      send_scanForTransfer(inventoryItems, type, transferLotId);
1373
      send_scanForTransferOut(inventoryItems, type, transferLotId);
1366
      recv_scanForTransfer();
1374
      recv_scanForTransferOut();
1367
    }
1375
    }
1368
 
1376
 
1369
    public void send_scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
1377
    public void send_scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
1370
    {
1378
    {
1371
      scanForTransfer_args args = new scanForTransfer_args();
1379
      scanForTransferOut_args args = new scanForTransferOut_args();
1372
      args.setInventoryItems(inventoryItems);
1380
      args.setInventoryItems(inventoryItems);
1373
      args.setType(type);
1381
      args.setType(type);
1374
      args.setTransferLotId(transferLotId);
1382
      args.setTransferLotId(transferLotId);
1375
      sendBase("scanForTransfer", args);
1383
      sendBase("scanForTransferOut", args);
1376
    }
1384
    }
1377
 
1385
 
1378
    public void recv_scanForTransfer() throws WarehouseServiceException, org.apache.thrift.TException
1386
    public void recv_scanForTransferOut() throws WarehouseServiceException, org.apache.thrift.TException
1379
    {
1387
    {
-
 
1388
      scanForTransferOut_result result = new scanForTransferOut_result();
-
 
1389
      receiveBase(result, "scanForTransferOut");
-
 
1390
      if (result.wex != null) {
-
 
1391
        throw result.wex;
-
 
1392
      }
-
 
1393
      return;
-
 
1394
    }
-
 
1395
 
-
 
1396
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1397
    {
-
 
1398
      send_scanForTransferIn(inventoryItems, type, transferLotId);
-
 
1399
      recv_scanForTransferIn();
-
 
1400
    }
-
 
1401
 
-
 
1402
    public void send_scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
-
 
1403
    {
-
 
1404
      scanForTransferIn_args args = new scanForTransferIn_args();
-
 
1405
      args.setInventoryItems(inventoryItems);
-
 
1406
      args.setType(type);
-
 
1407
      args.setTransferLotId(transferLotId);
-
 
1408
      sendBase("scanForTransferIn", args);
-
 
1409
    }
-
 
1410
 
-
 
1411
    public void recv_scanForTransferIn() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1412
    {
1380
      scanForTransfer_result result = new scanForTransfer_result();
1413
      scanForTransferIn_result result = new scanForTransferIn_result();
1381
      receiveBase(result, "scanForTransfer");
1414
      receiveBase(result, "scanForTransferIn");
-
 
1415
      if (result.wex != null) {
-
 
1416
        throw result.wex;
-
 
1417
      }
-
 
1418
      return;
-
 
1419
    }
-
 
1420
 
-
 
1421
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1422
    {
-
 
1423
      send_scanForOursThirdPartyReceive(inventoryItems, id);
-
 
1424
      recv_scanForOursThirdPartyReceive();
-
 
1425
    }
-
 
1426
 
-
 
1427
    public void send_scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws org.apache.thrift.TException
-
 
1428
    {
-
 
1429
      scanForOursThirdPartyReceive_args args = new scanForOursThirdPartyReceive_args();
-
 
1430
      args.setInventoryItems(inventoryItems);
-
 
1431
      args.setId(id);
-
 
1432
      sendBase("scanForOursThirdPartyReceive", args);
-
 
1433
    }
-
 
1434
 
-
 
1435
    public void recv_scanForOursThirdPartyReceive() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1436
    {
-
 
1437
      scanForOursThirdPartyReceive_result result = new scanForOursThirdPartyReceive_result();
-
 
1438
      receiveBase(result, "scanForOursThirdPartyReceive");
1382
      if (result.wex != null) {
1439
      if (result.wex != null) {
1383
        throw result.wex;
1440
        throw result.wex;
1384
      }
1441
      }
1385
      return;
1442
      return;
1386
    }
1443
    }
Line 2804... Line 2861...
2804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2861
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2805
        return (new Client(prot)).recv_updateTransferLotAfterItemReceive();
2862
        return (new Client(prot)).recv_updateTransferLotAfterItemReceive();
2806
      }
2863
      }
2807
    }
2864
    }
2808
 
2865
 
-
 
2866
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferOut_call> resultHandler) throws org.apache.thrift.TException {
-
 
2867
      checkReady();
-
 
2868
      scanForTransferOut_call method_call = new scanForTransferOut_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2869
      this.___currentMethod = method_call;
-
 
2870
      ___manager.call(method_call);
-
 
2871
    }
-
 
2872
 
-
 
2873
    public static class scanForTransferOut_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2874
      private List<InventoryItem> inventoryItems;
-
 
2875
      private ScanType type;
-
 
2876
      private long transferLotId;
-
 
2877
      public scanForTransferOut_call(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferOut_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 {
-
 
2878
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2879
        this.inventoryItems = inventoryItems;
-
 
2880
        this.type = type;
-
 
2881
        this.transferLotId = transferLotId;
-
 
2882
      }
-
 
2883
 
-
 
2884
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2885
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransferOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2886
        scanForTransferOut_args args = new scanForTransferOut_args();
-
 
2887
        args.setInventoryItems(inventoryItems);
-
 
2888
        args.setType(type);
-
 
2889
        args.setTransferLotId(transferLotId);
-
 
2890
        args.write(prot);
-
 
2891
        prot.writeMessageEnd();
-
 
2892
      }
-
 
2893
 
-
 
2894
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2895
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2896
          throw new IllegalStateException("Method call not finished!");
-
 
2897
        }
-
 
2898
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2899
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2900
        (new Client(prot)).recv_scanForTransferOut();
-
 
2901
      }
-
 
2902
    }
-
 
2903
 
2809
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransfer_call> resultHandler) throws org.apache.thrift.TException {
2904
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException {
2810
      checkReady();
2905
      checkReady();
2811
      scanForTransfer_call method_call = new scanForTransfer_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2906
      scanForTransferIn_call method_call = new scanForTransferIn_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2812
      this.___currentMethod = method_call;
2907
      this.___currentMethod = method_call;
2813
      ___manager.call(method_call);
2908
      ___manager.call(method_call);
2814
    }
2909
    }
2815
 
2910
 
2816
    public static class scanForTransfer_call extends org.apache.thrift.async.TAsyncMethodCall {
2911
    public static class scanForTransferIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2817
      private List<InventoryItem> inventoryItems;
2912
      private List<InventoryItem> inventoryItems;
2818
      private ScanType type;
2913
      private ScanType type;
2819
      private long transferLotId;
2914
      private long transferLotId;
2820
      public scanForTransfer_call(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransfer_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 {
2915
      public scanForTransferIn_call(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferIn_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 {
2821
        super(client, protocolFactory, transport, resultHandler, false);
2916
        super(client, protocolFactory, transport, resultHandler, false);
2822
        this.inventoryItems = inventoryItems;
2917
        this.inventoryItems = inventoryItems;
2823
        this.type = type;
2918
        this.type = type;
2824
        this.transferLotId = transferLotId;
2919
        this.transferLotId = transferLotId;
2825
      }
2920
      }
2826
 
2921
 
2827
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2922
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2828
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransfer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2923
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransferIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2829
        scanForTransfer_args args = new scanForTransfer_args();
2924
        scanForTransferIn_args args = new scanForTransferIn_args();
2830
        args.setInventoryItems(inventoryItems);
2925
        args.setInventoryItems(inventoryItems);
2831
        args.setType(type);
2926
        args.setType(type);
2832
        args.setTransferLotId(transferLotId);
2927
        args.setTransferLotId(transferLotId);
2833
        args.write(prot);
2928
        args.write(prot);
2834
        prot.writeMessageEnd();
2929
        prot.writeMessageEnd();
Line 2838... Line 2933...
2838
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2933
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2839
          throw new IllegalStateException("Method call not finished!");
2934
          throw new IllegalStateException("Method call not finished!");
2840
        }
2935
        }
2841
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2936
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2842
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2937
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2843
        (new Client(prot)).recv_scanForTransfer();
2938
        (new Client(prot)).recv_scanForTransferIn();
-
 
2939
      }
-
 
2940
    }
-
 
2941
 
-
 
2942
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException {
-
 
2943
      checkReady();
-
 
2944
      scanForOursThirdPartyReceive_call method_call = new scanForOursThirdPartyReceive_call(inventoryItems, id, resultHandler, this, ___protocolFactory, ___transport);
-
 
2945
      this.___currentMethod = method_call;
-
 
2946
      ___manager.call(method_call);
-
 
2947
    }
-
 
2948
 
-
 
2949
    public static class scanForOursThirdPartyReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2950
      private List<InventoryItem> inventoryItems;
-
 
2951
      private long id;
-
 
2952
      public scanForOursThirdPartyReceive_call(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<scanForOursThirdPartyReceive_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 {
-
 
2953
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2954
        this.inventoryItems = inventoryItems;
-
 
2955
        this.id = id;
-
 
2956
      }
-
 
2957
 
-
 
2958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursThirdPartyReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2960
        scanForOursThirdPartyReceive_args args = new scanForOursThirdPartyReceive_args();
-
 
2961
        args.setInventoryItems(inventoryItems);
-
 
2962
        args.setId(id);
-
 
2963
        args.write(prot);
-
 
2964
        prot.writeMessageEnd();
-
 
2965
      }
-
 
2966
 
-
 
2967
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2968
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2969
          throw new IllegalStateException("Method call not finished!");
-
 
2970
        }
-
 
2971
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2973
        (new Client(prot)).recv_scanForOursThirdPartyReceive();
2844
      }
2974
      }
2845
    }
2975
    }
2846
 
2976
 
2847
  }
2977
  }
2848
 
2978
 
Line 2895... Line 3025...
2895
      processMap.put("getTransferLotsByDate", new getTransferLotsByDate());
3025
      processMap.put("getTransferLotsByDate", new getTransferLotsByDate());
2896
      processMap.put("getAllowedDestinationWarehousesForTransfer", new getAllowedDestinationWarehousesForTransfer());
3026
      processMap.put("getAllowedDestinationWarehousesForTransfer", new getAllowedDestinationWarehousesForTransfer());
2897
      processMap.put("getItemsInTransferLot", new getItemsInTransferLot());
3027
      processMap.put("getItemsInTransferLot", new getItemsInTransferLot());
2898
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
3028
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
2899
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
3029
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
-
 
3030
      processMap.put("scanForTransferOut", new scanForTransferOut());
2900
      processMap.put("scanForTransfer", new scanForTransfer());
3031
      processMap.put("scanForTransferIn", new scanForTransferIn());
-
 
3032
      processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
2901
      return processMap;
3033
      return processMap;
2902
    }
3034
    }
2903
 
3035
 
2904
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3036
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
2905
      public getInventoryItem() {
3037
      public getInventoryItem() {
Line 3621... Line 3753...
3621
        }
3753
        }
3622
        return result;
3754
        return result;
3623
      }
3755
      }
3624
    }
3756
    }
3625
 
3757
 
-
 
3758
    private static class scanForTransferOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransferOut_args> {
-
 
3759
      public scanForTransferOut() {
-
 
3760
        super("scanForTransferOut");
-
 
3761
      }
-
 
3762
 
-
 
3763
      protected scanForTransferOut_args getEmptyArgsInstance() {
-
 
3764
        return new scanForTransferOut_args();
-
 
3765
      }
-
 
3766
 
-
 
3767
      protected scanForTransferOut_result getResult(I iface, scanForTransferOut_args args) throws org.apache.thrift.TException {
-
 
3768
        scanForTransferOut_result result = new scanForTransferOut_result();
-
 
3769
        try {
-
 
3770
          iface.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId);
-
 
3771
        } catch (WarehouseServiceException wex) {
-
 
3772
          result.wex = wex;
-
 
3773
        }
-
 
3774
        return result;
-
 
3775
      }
-
 
3776
    }
-
 
3777
 
3626
    private static class scanForTransfer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransfer_args> {
3778
    private static class scanForTransferIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransferIn_args> {
3627
      public scanForTransfer() {
3779
      public scanForTransferIn() {
3628
        super("scanForTransfer");
3780
        super("scanForTransferIn");
3629
      }
3781
      }
3630
 
3782
 
3631
      protected scanForTransfer_args getEmptyArgsInstance() {
3783
      protected scanForTransferIn_args getEmptyArgsInstance() {
3632
        return new scanForTransfer_args();
3784
        return new scanForTransferIn_args();
3633
      }
3785
      }
3634
 
3786
 
3635
      protected scanForTransfer_result getResult(I iface, scanForTransfer_args args) throws org.apache.thrift.TException {
3787
      protected scanForTransferIn_result getResult(I iface, scanForTransferIn_args args) throws org.apache.thrift.TException {
3636
        scanForTransfer_result result = new scanForTransfer_result();
3788
        scanForTransferIn_result result = new scanForTransferIn_result();
3637
        try {
3789
        try {
3638
          iface.scanForTransfer(args.inventoryItems, args.type, args.transferLotId);
3790
          iface.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId);
-
 
3791
        } catch (WarehouseServiceException wex) {
-
 
3792
          result.wex = wex;
-
 
3793
        }
-
 
3794
        return result;
-
 
3795
      }
-
 
3796
    }
-
 
3797
 
-
 
3798
    private static class scanForOursThirdPartyReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursThirdPartyReceive_args> {
-
 
3799
      public scanForOursThirdPartyReceive() {
-
 
3800
        super("scanForOursThirdPartyReceive");
-
 
3801
      }
-
 
3802
 
-
 
3803
      protected scanForOursThirdPartyReceive_args getEmptyArgsInstance() {
-
 
3804
        return new scanForOursThirdPartyReceive_args();
-
 
3805
      }
-
 
3806
 
-
 
3807
      protected scanForOursThirdPartyReceive_result getResult(I iface, scanForOursThirdPartyReceive_args args) throws org.apache.thrift.TException {
-
 
3808
        scanForOursThirdPartyReceive_result result = new scanForOursThirdPartyReceive_result();
-
 
3809
        try {
-
 
3810
          iface.scanForOursThirdPartyReceive(args.inventoryItems, args.id);
3639
        } catch (WarehouseServiceException wex) {
3811
        } catch (WarehouseServiceException wex) {
3640
          result.wex = wex;
3812
          result.wex = wex;
3641
        }
3813
        }
3642
        return result;
3814
        return result;
3643
      }
3815
      }
Line 32551... Line 32723...
32551
      }
32723
      }
32552
    }
32724
    }
32553
 
32725
 
32554
  }
32726
  }
32555
 
32727
 
32556
  public static class scanForTransfer_args implements org.apache.thrift.TBase<scanForTransfer_args, scanForTransfer_args._Fields>, java.io.Serializable, Cloneable   {
32728
  public static class scanForTransferOut_args implements org.apache.thrift.TBase<scanForTransferOut_args, scanForTransferOut_args._Fields>, java.io.Serializable, Cloneable   {
32557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransfer_args");
32729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferOut_args");
32558
 
32730
 
32559
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItems", org.apache.thrift.protocol.TType.LIST, (short)1);
32731
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItems", org.apache.thrift.protocol.TType.LIST, (short)1);
32560
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
32732
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
32561
    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)3);
32733
    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)3);
32562
 
32734
 
Line 32645... Line 32817...
32645
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32817
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32646
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
32818
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
32647
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32819
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32821
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransfer_args.class, metaDataMap);
32822
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferOut_args.class, metaDataMap);
32651
    }
32823
    }
32652
 
32824
 
32653
    public scanForTransfer_args() {
32825
    public scanForTransferOut_args() {
32654
    }
32826
    }
32655
 
32827
 
32656
    public scanForTransfer_args(
32828
    public scanForTransferOut_args(
32657
      List<InventoryItem> inventoryItems,
32829
      List<InventoryItem> inventoryItems,
32658
      ScanType type,
32830
      ScanType type,
32659
      long transferLotId)
32831
      long transferLotId)
32660
    {
32832
    {
32661
      this();
32833
      this();
Line 32666... Line 32838...
32666
    }
32838
    }
32667
 
32839
 
32668
    /**
32840
    /**
32669
     * Performs a deep copy on <i>other</i>.
32841
     * Performs a deep copy on <i>other</i>.
32670
     */
32842
     */
32671
    public scanForTransfer_args(scanForTransfer_args other) {
32843
    public scanForTransferOut_args(scanForTransferOut_args other) {
32672
      __isset_bit_vector.clear();
32844
      __isset_bit_vector.clear();
32673
      __isset_bit_vector.or(other.__isset_bit_vector);
32845
      __isset_bit_vector.or(other.__isset_bit_vector);
32674
      if (other.isSetInventoryItems()) {
32846
      if (other.isSetInventoryItems()) {
32675
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
32847
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
32676
        for (InventoryItem other_element : other.inventoryItems) {
32848
        for (InventoryItem other_element : other.inventoryItems) {
Line 32682... Line 32854...
32682
        this.type = other.type;
32854
        this.type = other.type;
32683
      }
32855
      }
32684
      this.transferLotId = other.transferLotId;
32856
      this.transferLotId = other.transferLotId;
32685
    }
32857
    }
32686
 
32858
 
32687
    public scanForTransfer_args deepCopy() {
32859
    public scanForTransferOut_args deepCopy() {
32688
      return new scanForTransfer_args(this);
32860
      return new scanForTransferOut_args(this);
32689
    }
32861
    }
32690
 
32862
 
32691
    @Override
32863
    @Override
32692
    public void clear() {
32864
    public void clear() {
32693
      this.inventoryItems = null;
32865
      this.inventoryItems = null;
Line 32850... Line 33022...
32850
 
33022
 
32851
    @Override
33023
    @Override
32852
    public boolean equals(Object that) {
33024
    public boolean equals(Object that) {
32853
      if (that == null)
33025
      if (that == null)
32854
        return false;
33026
        return false;
32855
      if (that instanceof scanForTransfer_args)
33027
      if (that instanceof scanForTransferOut_args)
32856
        return this.equals((scanForTransfer_args)that);
33028
        return this.equals((scanForTransferOut_args)that);
32857
      return false;
33029
      return false;
32858
    }
33030
    }
32859
 
33031
 
32860
    public boolean equals(scanForTransfer_args that) {
33032
    public boolean equals(scanForTransferOut_args that) {
32861
      if (that == null)
33033
      if (that == null)
32862
        return false;
33034
        return false;
32863
 
33035
 
32864
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
33036
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
32865
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
33037
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
Line 32894... Line 33066...
32894
    @Override
33066
    @Override
32895
    public int hashCode() {
33067
    public int hashCode() {
32896
      return 0;
33068
      return 0;
32897
    }
33069
    }
32898
 
33070
 
32899
    public int compareTo(scanForTransfer_args other) {
33071
    public int compareTo(scanForTransferOut_args other) {
32900
      if (!getClass().equals(other.getClass())) {
33072
      if (!getClass().equals(other.getClass())) {
32901
        return getClass().getName().compareTo(other.getClass().getName());
33073
        return getClass().getName().compareTo(other.getClass().getName());
32902
      }
33074
      }
32903
 
33075
 
32904
      int lastComparison = 0;
33076
      int lastComparison = 0;
32905
      scanForTransfer_args typedOther = (scanForTransfer_args)other;
33077
      scanForTransferOut_args typedOther = (scanForTransferOut_args)other;
32906
 
33078
 
32907
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
33079
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
32908
      if (lastComparison != 0) {
33080
      if (lastComparison != 0) {
32909
        return lastComparison;
33081
        return lastComparison;
32910
      }
33082
      }
Line 33021... Line 33193...
33021
      oprot.writeStructEnd();
33193
      oprot.writeStructEnd();
33022
    }
33194
    }
33023
 
33195
 
33024
    @Override
33196
    @Override
33025
    public String toString() {
33197
    public String toString() {
-
 
33198
      StringBuilder sb = new StringBuilder("scanForTransferOut_args(");
-
 
33199
      boolean first = true;
-
 
33200
 
-
 
33201
      sb.append("inventoryItems:");
-
 
33202
      if (this.inventoryItems == null) {
-
 
33203
        sb.append("null");
-
 
33204
      } else {
-
 
33205
        sb.append(this.inventoryItems);
-
 
33206
      }
-
 
33207
      first = false;
-
 
33208
      if (!first) sb.append(", ");
-
 
33209
      sb.append("type:");
-
 
33210
      if (this.type == null) {
-
 
33211
        sb.append("null");
-
 
33212
      } else {
-
 
33213
        sb.append(this.type);
-
 
33214
      }
-
 
33215
      first = false;
-
 
33216
      if (!first) sb.append(", ");
-
 
33217
      sb.append("transferLotId:");
-
 
33218
      sb.append(this.transferLotId);
-
 
33219
      first = false;
-
 
33220
      sb.append(")");
-
 
33221
      return sb.toString();
-
 
33222
    }
-
 
33223
 
-
 
33224
    public void validate() throws org.apache.thrift.TException {
-
 
33225
      // check for required fields
-
 
33226
    }
-
 
33227
 
-
 
33228
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
33229
      try {
-
 
33230
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
33231
      } catch (org.apache.thrift.TException te) {
-
 
33232
        throw new java.io.IOException(te);
-
 
33233
      }
-
 
33234
    }
-
 
33235
 
-
 
33236
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
33237
      try {
-
 
33238
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
33239
        __isset_bit_vector = new BitSet(1);
-
 
33240
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
33241
      } catch (org.apache.thrift.TException te) {
-
 
33242
        throw new java.io.IOException(te);
-
 
33243
      }
-
 
33244
    }
-
 
33245
 
-
 
33246
  }
-
 
33247
 
-
 
33248
  public static class scanForTransferOut_result implements org.apache.thrift.TBase<scanForTransferOut_result, scanForTransferOut_result._Fields>, java.io.Serializable, Cloneable   {
-
 
33249
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferOut_result");
-
 
33250
 
-
 
33251
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
33252
 
-
 
33253
    private WarehouseServiceException wex; // required
-
 
33254
 
-
 
33255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33256
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
33257
      WEX((short)1, "wex");
-
 
33258
 
-
 
33259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33260
 
-
 
33261
      static {
-
 
33262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33263
          byName.put(field.getFieldName(), field);
-
 
33264
        }
-
 
33265
      }
-
 
33266
 
-
 
33267
      /**
-
 
33268
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33269
       */
-
 
33270
      public static _Fields findByThriftId(int fieldId) {
-
 
33271
        switch(fieldId) {
-
 
33272
          case 1: // WEX
-
 
33273
            return WEX;
-
 
33274
          default:
-
 
33275
            return null;
-
 
33276
        }
-
 
33277
      }
-
 
33278
 
-
 
33279
      /**
-
 
33280
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33281
       * if it is not found.
-
 
33282
       */
-
 
33283
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33284
        _Fields fields = findByThriftId(fieldId);
-
 
33285
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33286
        return fields;
-
 
33287
      }
-
 
33288
 
-
 
33289
      /**
-
 
33290
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33291
       */
-
 
33292
      public static _Fields findByName(String name) {
-
 
33293
        return byName.get(name);
-
 
33294
      }
-
 
33295
 
-
 
33296
      private final short _thriftId;
-
 
33297
      private final String _fieldName;
-
 
33298
 
-
 
33299
      _Fields(short thriftId, String fieldName) {
-
 
33300
        _thriftId = thriftId;
-
 
33301
        _fieldName = fieldName;
-
 
33302
      }
-
 
33303
 
-
 
33304
      public short getThriftFieldId() {
-
 
33305
        return _thriftId;
-
 
33306
      }
-
 
33307
 
-
 
33308
      public String getFieldName() {
-
 
33309
        return _fieldName;
-
 
33310
      }
-
 
33311
    }
-
 
33312
 
-
 
33313
    // isset id assignments
-
 
33314
 
-
 
33315
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
33316
    static {
-
 
33317
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
33318
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
33320
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
33321
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferOut_result.class, metaDataMap);
-
 
33322
    }
-
 
33323
 
-
 
33324
    public scanForTransferOut_result() {
-
 
33325
    }
-
 
33326
 
-
 
33327
    public scanForTransferOut_result(
-
 
33328
      WarehouseServiceException wex)
-
 
33329
    {
-
 
33330
      this();
-
 
33331
      this.wex = wex;
-
 
33332
    }
-
 
33333
 
-
 
33334
    /**
-
 
33335
     * Performs a deep copy on <i>other</i>.
-
 
33336
     */
-
 
33337
    public scanForTransferOut_result(scanForTransferOut_result other) {
-
 
33338
      if (other.isSetWex()) {
-
 
33339
        this.wex = new WarehouseServiceException(other.wex);
-
 
33340
      }
-
 
33341
    }
-
 
33342
 
-
 
33343
    public scanForTransferOut_result deepCopy() {
-
 
33344
      return new scanForTransferOut_result(this);
-
 
33345
    }
-
 
33346
 
-
 
33347
    @Override
-
 
33348
    public void clear() {
-
 
33349
      this.wex = null;
-
 
33350
    }
-
 
33351
 
-
 
33352
    public WarehouseServiceException getWex() {
-
 
33353
      return this.wex;
-
 
33354
    }
-
 
33355
 
-
 
33356
    public void setWex(WarehouseServiceException wex) {
-
 
33357
      this.wex = wex;
-
 
33358
    }
-
 
33359
 
-
 
33360
    public void unsetWex() {
-
 
33361
      this.wex = null;
-
 
33362
    }
-
 
33363
 
-
 
33364
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
33365
    public boolean isSetWex() {
-
 
33366
      return this.wex != null;
-
 
33367
    }
-
 
33368
 
-
 
33369
    public void setWexIsSet(boolean value) {
-
 
33370
      if (!value) {
-
 
33371
        this.wex = null;
-
 
33372
      }
-
 
33373
    }
-
 
33374
 
-
 
33375
    public void setFieldValue(_Fields field, Object value) {
-
 
33376
      switch (field) {
-
 
33377
      case WEX:
-
 
33378
        if (value == null) {
-
 
33379
          unsetWex();
-
 
33380
        } else {
-
 
33381
          setWex((WarehouseServiceException)value);
-
 
33382
        }
-
 
33383
        break;
-
 
33384
 
-
 
33385
      }
-
 
33386
    }
-
 
33387
 
-
 
33388
    public Object getFieldValue(_Fields field) {
-
 
33389
      switch (field) {
-
 
33390
      case WEX:
-
 
33391
        return getWex();
-
 
33392
 
-
 
33393
      }
-
 
33394
      throw new IllegalStateException();
-
 
33395
    }
-
 
33396
 
-
 
33397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
33398
    public boolean isSet(_Fields field) {
-
 
33399
      if (field == null) {
-
 
33400
        throw new IllegalArgumentException();
-
 
33401
      }
-
 
33402
 
-
 
33403
      switch (field) {
-
 
33404
      case WEX:
-
 
33405
        return isSetWex();
-
 
33406
      }
-
 
33407
      throw new IllegalStateException();
-
 
33408
    }
-
 
33409
 
-
 
33410
    @Override
-
 
33411
    public boolean equals(Object that) {
-
 
33412
      if (that == null)
-
 
33413
        return false;
-
 
33414
      if (that instanceof scanForTransferOut_result)
-
 
33415
        return this.equals((scanForTransferOut_result)that);
-
 
33416
      return false;
-
 
33417
    }
-
 
33418
 
-
 
33419
    public boolean equals(scanForTransferOut_result that) {
-
 
33420
      if (that == null)
-
 
33421
        return false;
-
 
33422
 
-
 
33423
      boolean this_present_wex = true && this.isSetWex();
-
 
33424
      boolean that_present_wex = true && that.isSetWex();
-
 
33425
      if (this_present_wex || that_present_wex) {
-
 
33426
        if (!(this_present_wex && that_present_wex))
-
 
33427
          return false;
-
 
33428
        if (!this.wex.equals(that.wex))
-
 
33429
          return false;
-
 
33430
      }
-
 
33431
 
-
 
33432
      return true;
-
 
33433
    }
-
 
33434
 
-
 
33435
    @Override
-
 
33436
    public int hashCode() {
-
 
33437
      return 0;
-
 
33438
    }
-
 
33439
 
-
 
33440
    public int compareTo(scanForTransferOut_result other) {
-
 
33441
      if (!getClass().equals(other.getClass())) {
-
 
33442
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33443
      }
-
 
33444
 
-
 
33445
      int lastComparison = 0;
-
 
33446
      scanForTransferOut_result typedOther = (scanForTransferOut_result)other;
-
 
33447
 
-
 
33448
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
33449
      if (lastComparison != 0) {
-
 
33450
        return lastComparison;
-
 
33451
      }
-
 
33452
      if (isSetWex()) {
-
 
33453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
33454
        if (lastComparison != 0) {
-
 
33455
          return lastComparison;
-
 
33456
        }
-
 
33457
      }
-
 
33458
      return 0;
-
 
33459
    }
-
 
33460
 
-
 
33461
    public _Fields fieldForId(int fieldId) {
-
 
33462
      return _Fields.findByThriftId(fieldId);
-
 
33463
    }
-
 
33464
 
-
 
33465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
33466
      org.apache.thrift.protocol.TField field;
-
 
33467
      iprot.readStructBegin();
-
 
33468
      while (true)
-
 
33469
      {
-
 
33470
        field = iprot.readFieldBegin();
-
 
33471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
33472
          break;
-
 
33473
        }
-
 
33474
        switch (field.id) {
-
 
33475
          case 1: // WEX
-
 
33476
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
33477
              this.wex = new WarehouseServiceException();
-
 
33478
              this.wex.read(iprot);
-
 
33479
            } else { 
-
 
33480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33481
            }
-
 
33482
            break;
-
 
33483
          default:
-
 
33484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33485
        }
-
 
33486
        iprot.readFieldEnd();
-
 
33487
      }
-
 
33488
      iprot.readStructEnd();
-
 
33489
      validate();
-
 
33490
    }
-
 
33491
 
-
 
33492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
33493
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33494
 
-
 
33495
      if (this.isSetWex()) {
-
 
33496
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
33497
        this.wex.write(oprot);
-
 
33498
        oprot.writeFieldEnd();
-
 
33499
      }
-
 
33500
      oprot.writeFieldStop();
-
 
33501
      oprot.writeStructEnd();
-
 
33502
    }
-
 
33503
 
-
 
33504
    @Override
-
 
33505
    public String toString() {
-
 
33506
      StringBuilder sb = new StringBuilder("scanForTransferOut_result(");
-
 
33507
      boolean first = true;
-
 
33508
 
-
 
33509
      sb.append("wex:");
-
 
33510
      if (this.wex == null) {
-
 
33511
        sb.append("null");
-
 
33512
      } else {
-
 
33513
        sb.append(this.wex);
-
 
33514
      }
-
 
33515
      first = false;
-
 
33516
      sb.append(")");
-
 
33517
      return sb.toString();
-
 
33518
    }
-
 
33519
 
-
 
33520
    public void validate() throws org.apache.thrift.TException {
-
 
33521
      // check for required fields
-
 
33522
    }
-
 
33523
 
-
 
33524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
33525
      try {
-
 
33526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
33527
      } catch (org.apache.thrift.TException te) {
-
 
33528
        throw new java.io.IOException(te);
-
 
33529
      }
-
 
33530
    }
-
 
33531
 
-
 
33532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
33533
      try {
-
 
33534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
33535
      } catch (org.apache.thrift.TException te) {
-
 
33536
        throw new java.io.IOException(te);
-
 
33537
      }
-
 
33538
    }
-
 
33539
 
-
 
33540
  }
-
 
33541
 
-
 
33542
  public static class scanForTransferIn_args implements org.apache.thrift.TBase<scanForTransferIn_args, scanForTransferIn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
33543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferIn_args");
-
 
33544
 
-
 
33545
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItems", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
33546
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
33547
    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)3);
-
 
33548
 
-
 
33549
    private List<InventoryItem> inventoryItems; // required
-
 
33550
    private ScanType type; // required
-
 
33551
    private long transferLotId; // required
-
 
33552
 
-
 
33553
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33554
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
33555
      INVENTORY_ITEMS((short)1, "inventoryItems"),
-
 
33556
      /**
-
 
33557
       * 
-
 
33558
       * @see ScanType
-
 
33559
       */
-
 
33560
      TYPE((short)2, "type"),
-
 
33561
      TRANSFER_LOT_ID((short)3, "transferLotId");
-
 
33562
 
-
 
33563
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33564
 
-
 
33565
      static {
-
 
33566
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33567
          byName.put(field.getFieldName(), field);
-
 
33568
        }
-
 
33569
      }
-
 
33570
 
-
 
33571
      /**
-
 
33572
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33573
       */
-
 
33574
      public static _Fields findByThriftId(int fieldId) {
-
 
33575
        switch(fieldId) {
-
 
33576
          case 1: // INVENTORY_ITEMS
-
 
33577
            return INVENTORY_ITEMS;
-
 
33578
          case 2: // TYPE
-
 
33579
            return TYPE;
-
 
33580
          case 3: // TRANSFER_LOT_ID
-
 
33581
            return TRANSFER_LOT_ID;
-
 
33582
          default:
-
 
33583
            return null;
-
 
33584
        }
-
 
33585
      }
-
 
33586
 
-
 
33587
      /**
-
 
33588
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33589
       * if it is not found.
-
 
33590
       */
-
 
33591
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33592
        _Fields fields = findByThriftId(fieldId);
-
 
33593
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33594
        return fields;
-
 
33595
      }
-
 
33596
 
-
 
33597
      /**
-
 
33598
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33599
       */
-
 
33600
      public static _Fields findByName(String name) {
-
 
33601
        return byName.get(name);
-
 
33602
      }
-
 
33603
 
-
 
33604
      private final short _thriftId;
-
 
33605
      private final String _fieldName;
-
 
33606
 
-
 
33607
      _Fields(short thriftId, String fieldName) {
-
 
33608
        _thriftId = thriftId;
-
 
33609
        _fieldName = fieldName;
-
 
33610
      }
-
 
33611
 
-
 
33612
      public short getThriftFieldId() {
-
 
33613
        return _thriftId;
-
 
33614
      }
-
 
33615
 
-
 
33616
      public String getFieldName() {
-
 
33617
        return _fieldName;
-
 
33618
      }
-
 
33619
    }
-
 
33620
 
-
 
33621
    // isset id assignments
-
 
33622
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
-
 
33623
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
33624
 
-
 
33625
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
33626
    static {
-
 
33627
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
33628
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33629
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
33630
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
33631
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33632
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
33633
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
33635
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
33636
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferIn_args.class, metaDataMap);
-
 
33637
    }
-
 
33638
 
-
 
33639
    public scanForTransferIn_args() {
-
 
33640
    }
-
 
33641
 
-
 
33642
    public scanForTransferIn_args(
-
 
33643
      List<InventoryItem> inventoryItems,
-
 
33644
      ScanType type,
-
 
33645
      long transferLotId)
-
 
33646
    {
-
 
33647
      this();
-
 
33648
      this.inventoryItems = inventoryItems;
-
 
33649
      this.type = type;
-
 
33650
      this.transferLotId = transferLotId;
-
 
33651
      setTransferLotIdIsSet(true);
-
 
33652
    }
-
 
33653
 
-
 
33654
    /**
-
 
33655
     * Performs a deep copy on <i>other</i>.
-
 
33656
     */
-
 
33657
    public scanForTransferIn_args(scanForTransferIn_args other) {
-
 
33658
      __isset_bit_vector.clear();
-
 
33659
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
33660
      if (other.isSetInventoryItems()) {
-
 
33661
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
-
 
33662
        for (InventoryItem other_element : other.inventoryItems) {
-
 
33663
          __this__inventoryItems.add(new InventoryItem(other_element));
-
 
33664
        }
-
 
33665
        this.inventoryItems = __this__inventoryItems;
-
 
33666
      }
-
 
33667
      if (other.isSetType()) {
-
 
33668
        this.type = other.type;
-
 
33669
      }
-
 
33670
      this.transferLotId = other.transferLotId;
-
 
33671
    }
-
 
33672
 
-
 
33673
    public scanForTransferIn_args deepCopy() {
-
 
33674
      return new scanForTransferIn_args(this);
-
 
33675
    }
-
 
33676
 
-
 
33677
    @Override
-
 
33678
    public void clear() {
-
 
33679
      this.inventoryItems = null;
-
 
33680
      this.type = null;
-
 
33681
      setTransferLotIdIsSet(false);
-
 
33682
      this.transferLotId = 0;
-
 
33683
    }
-
 
33684
 
-
 
33685
    public int getInventoryItemsSize() {
-
 
33686
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
-
 
33687
    }
-
 
33688
 
-
 
33689
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
-
 
33690
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
-
 
33691
    }
-
 
33692
 
-
 
33693
    public void addToInventoryItems(InventoryItem elem) {
-
 
33694
      if (this.inventoryItems == null) {
-
 
33695
        this.inventoryItems = new ArrayList<InventoryItem>();
-
 
33696
      }
-
 
33697
      this.inventoryItems.add(elem);
-
 
33698
    }
-
 
33699
 
-
 
33700
    public List<InventoryItem> getInventoryItems() {
-
 
33701
      return this.inventoryItems;
-
 
33702
    }
-
 
33703
 
-
 
33704
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
-
 
33705
      this.inventoryItems = inventoryItems;
-
 
33706
    }
-
 
33707
 
-
 
33708
    public void unsetInventoryItems() {
-
 
33709
      this.inventoryItems = null;
-
 
33710
    }
-
 
33711
 
-
 
33712
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
-
 
33713
    public boolean isSetInventoryItems() {
-
 
33714
      return this.inventoryItems != null;
-
 
33715
    }
-
 
33716
 
-
 
33717
    public void setInventoryItemsIsSet(boolean value) {
-
 
33718
      if (!value) {
-
 
33719
        this.inventoryItems = null;
-
 
33720
      }
-
 
33721
    }
-
 
33722
 
-
 
33723
    /**
-
 
33724
     * 
-
 
33725
     * @see ScanType
-
 
33726
     */
-
 
33727
    public ScanType getType() {
-
 
33728
      return this.type;
-
 
33729
    }
-
 
33730
 
-
 
33731
    /**
-
 
33732
     * 
-
 
33733
     * @see ScanType
-
 
33734
     */
-
 
33735
    public void setType(ScanType type) {
-
 
33736
      this.type = type;
-
 
33737
    }
-
 
33738
 
-
 
33739
    public void unsetType() {
-
 
33740
      this.type = null;
-
 
33741
    }
-
 
33742
 
-
 
33743
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
33744
    public boolean isSetType() {
-
 
33745
      return this.type != null;
-
 
33746
    }
-
 
33747
 
-
 
33748
    public void setTypeIsSet(boolean value) {
-
 
33749
      if (!value) {
-
 
33750
        this.type = null;
-
 
33751
      }
-
 
33752
    }
-
 
33753
 
-
 
33754
    public long getTransferLotId() {
-
 
33755
      return this.transferLotId;
-
 
33756
    }
-
 
33757
 
-
 
33758
    public void setTransferLotId(long transferLotId) {
-
 
33759
      this.transferLotId = transferLotId;
-
 
33760
      setTransferLotIdIsSet(true);
-
 
33761
    }
-
 
33762
 
-
 
33763
    public void unsetTransferLotId() {
-
 
33764
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
-
 
33765
    }
-
 
33766
 
-
 
33767
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
-
 
33768
    public boolean isSetTransferLotId() {
-
 
33769
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
-
 
33770
    }
-
 
33771
 
-
 
33772
    public void setTransferLotIdIsSet(boolean value) {
-
 
33773
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
-
 
33774
    }
-
 
33775
 
-
 
33776
    public void setFieldValue(_Fields field, Object value) {
-
 
33777
      switch (field) {
-
 
33778
      case INVENTORY_ITEMS:
-
 
33779
        if (value == null) {
-
 
33780
          unsetInventoryItems();
-
 
33781
        } else {
-
 
33782
          setInventoryItems((List<InventoryItem>)value);
-
 
33783
        }
-
 
33784
        break;
-
 
33785
 
-
 
33786
      case TYPE:
-
 
33787
        if (value == null) {
-
 
33788
          unsetType();
-
 
33789
        } else {
-
 
33790
          setType((ScanType)value);
-
 
33791
        }
-
 
33792
        break;
-
 
33793
 
-
 
33794
      case TRANSFER_LOT_ID:
-
 
33795
        if (value == null) {
-
 
33796
          unsetTransferLotId();
-
 
33797
        } else {
-
 
33798
          setTransferLotId((Long)value);
-
 
33799
        }
-
 
33800
        break;
-
 
33801
 
-
 
33802
      }
-
 
33803
    }
-
 
33804
 
-
 
33805
    public Object getFieldValue(_Fields field) {
-
 
33806
      switch (field) {
-
 
33807
      case INVENTORY_ITEMS:
-
 
33808
        return getInventoryItems();
-
 
33809
 
-
 
33810
      case TYPE:
-
 
33811
        return getType();
-
 
33812
 
-
 
33813
      case TRANSFER_LOT_ID:
-
 
33814
        return Long.valueOf(getTransferLotId());
-
 
33815
 
-
 
33816
      }
-
 
33817
      throw new IllegalStateException();
-
 
33818
    }
-
 
33819
 
-
 
33820
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
33821
    public boolean isSet(_Fields field) {
-
 
33822
      if (field == null) {
-
 
33823
        throw new IllegalArgumentException();
-
 
33824
      }
-
 
33825
 
-
 
33826
      switch (field) {
-
 
33827
      case INVENTORY_ITEMS:
-
 
33828
        return isSetInventoryItems();
-
 
33829
      case TYPE:
-
 
33830
        return isSetType();
-
 
33831
      case TRANSFER_LOT_ID:
-
 
33832
        return isSetTransferLotId();
-
 
33833
      }
-
 
33834
      throw new IllegalStateException();
-
 
33835
    }
-
 
33836
 
-
 
33837
    @Override
-
 
33838
    public boolean equals(Object that) {
-
 
33839
      if (that == null)
-
 
33840
        return false;
-
 
33841
      if (that instanceof scanForTransferIn_args)
-
 
33842
        return this.equals((scanForTransferIn_args)that);
-
 
33843
      return false;
-
 
33844
    }
-
 
33845
 
-
 
33846
    public boolean equals(scanForTransferIn_args that) {
-
 
33847
      if (that == null)
-
 
33848
        return false;
-
 
33849
 
-
 
33850
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
-
 
33851
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
-
 
33852
      if (this_present_inventoryItems || that_present_inventoryItems) {
-
 
33853
        if (!(this_present_inventoryItems && that_present_inventoryItems))
-
 
33854
          return false;
-
 
33855
        if (!this.inventoryItems.equals(that.inventoryItems))
-
 
33856
          return false;
-
 
33857
      }
-
 
33858
 
-
 
33859
      boolean this_present_type = true && this.isSetType();
-
 
33860
      boolean that_present_type = true && that.isSetType();
-
 
33861
      if (this_present_type || that_present_type) {
-
 
33862
        if (!(this_present_type && that_present_type))
-
 
33863
          return false;
-
 
33864
        if (!this.type.equals(that.type))
-
 
33865
          return false;
-
 
33866
      }
-
 
33867
 
-
 
33868
      boolean this_present_transferLotId = true;
-
 
33869
      boolean that_present_transferLotId = true;
-
 
33870
      if (this_present_transferLotId || that_present_transferLotId) {
-
 
33871
        if (!(this_present_transferLotId && that_present_transferLotId))
-
 
33872
          return false;
-
 
33873
        if (this.transferLotId != that.transferLotId)
-
 
33874
          return false;
-
 
33875
      }
-
 
33876
 
-
 
33877
      return true;
-
 
33878
    }
-
 
33879
 
-
 
33880
    @Override
-
 
33881
    public int hashCode() {
-
 
33882
      return 0;
-
 
33883
    }
-
 
33884
 
-
 
33885
    public int compareTo(scanForTransferIn_args other) {
-
 
33886
      if (!getClass().equals(other.getClass())) {
-
 
33887
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33888
      }
-
 
33889
 
-
 
33890
      int lastComparison = 0;
-
 
33891
      scanForTransferIn_args typedOther = (scanForTransferIn_args)other;
-
 
33892
 
-
 
33893
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
-
 
33894
      if (lastComparison != 0) {
-
 
33895
        return lastComparison;
-
 
33896
      }
-
 
33897
      if (isSetInventoryItems()) {
-
 
33898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
-
 
33899
        if (lastComparison != 0) {
-
 
33900
          return lastComparison;
-
 
33901
        }
-
 
33902
      }
-
 
33903
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
33904
      if (lastComparison != 0) {
-
 
33905
        return lastComparison;
-
 
33906
      }
-
 
33907
      if (isSetType()) {
-
 
33908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
33909
        if (lastComparison != 0) {
-
 
33910
          return lastComparison;
-
 
33911
        }
-
 
33912
      }
-
 
33913
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
-
 
33914
      if (lastComparison != 0) {
-
 
33915
        return lastComparison;
-
 
33916
      }
-
 
33917
      if (isSetTransferLotId()) {
-
 
33918
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
-
 
33919
        if (lastComparison != 0) {
-
 
33920
          return lastComparison;
-
 
33921
        }
-
 
33922
      }
-
 
33923
      return 0;
-
 
33924
    }
-
 
33925
 
-
 
33926
    public _Fields fieldForId(int fieldId) {
-
 
33927
      return _Fields.findByThriftId(fieldId);
-
 
33928
    }
-
 
33929
 
-
 
33930
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
33931
      org.apache.thrift.protocol.TField field;
-
 
33932
      iprot.readStructBegin();
-
 
33933
      while (true)
-
 
33934
      {
-
 
33935
        field = iprot.readFieldBegin();
-
 
33936
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
33937
          break;
-
 
33938
        }
-
 
33939
        switch (field.id) {
-
 
33940
          case 1: // INVENTORY_ITEMS
-
 
33941
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
33942
              {
-
 
33943
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
-
 
33944
                this.inventoryItems = new ArrayList<InventoryItem>(_list93.size);
-
 
33945
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
-
 
33946
                {
-
 
33947
                  InventoryItem _elem95; // required
-
 
33948
                  _elem95 = new InventoryItem();
-
 
33949
                  _elem95.read(iprot);
-
 
33950
                  this.inventoryItems.add(_elem95);
-
 
33951
                }
-
 
33952
                iprot.readListEnd();
-
 
33953
              }
-
 
33954
            } else { 
-
 
33955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33956
            }
-
 
33957
            break;
-
 
33958
          case 2: // TYPE
-
 
33959
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
33960
              this.type = ScanType.findByValue(iprot.readI32());
-
 
33961
            } else { 
-
 
33962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33963
            }
-
 
33964
            break;
-
 
33965
          case 3: // TRANSFER_LOT_ID
-
 
33966
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
33967
              this.transferLotId = iprot.readI64();
-
 
33968
              setTransferLotIdIsSet(true);
-
 
33969
            } else { 
-
 
33970
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33971
            }
-
 
33972
            break;
-
 
33973
          default:
-
 
33974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33975
        }
-
 
33976
        iprot.readFieldEnd();
-
 
33977
      }
-
 
33978
      iprot.readStructEnd();
-
 
33979
      validate();
-
 
33980
    }
-
 
33981
 
-
 
33982
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
33983
      validate();
-
 
33984
 
-
 
33985
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33986
      if (this.inventoryItems != null) {
-
 
33987
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
-
 
33988
        {
-
 
33989
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
-
 
33990
          for (InventoryItem _iter96 : this.inventoryItems)
-
 
33991
          {
-
 
33992
            _iter96.write(oprot);
-
 
33993
          }
-
 
33994
          oprot.writeListEnd();
-
 
33995
        }
-
 
33996
        oprot.writeFieldEnd();
-
 
33997
      }
-
 
33998
      if (this.type != null) {
-
 
33999
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
34000
        oprot.writeI32(this.type.getValue());
-
 
34001
        oprot.writeFieldEnd();
-
 
34002
      }
-
 
34003
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
-
 
34004
      oprot.writeI64(this.transferLotId);
-
 
34005
      oprot.writeFieldEnd();
-
 
34006
      oprot.writeFieldStop();
-
 
34007
      oprot.writeStructEnd();
-
 
34008
    }
-
 
34009
 
-
 
34010
    @Override
-
 
34011
    public String toString() {
33026
      StringBuilder sb = new StringBuilder("scanForTransfer_args(");
34012
      StringBuilder sb = new StringBuilder("scanForTransferIn_args(");
33027
      boolean first = true;
34013
      boolean first = true;
33028
 
34014
 
33029
      sb.append("inventoryItems:");
34015
      sb.append("inventoryItems:");
33030
      if (this.inventoryItems == null) {
34016
      if (this.inventoryItems == null) {
33031
        sb.append("null");
34017
        sb.append("null");
Line 33071... Line 34057...
33071
      }
34057
      }
33072
    }
34058
    }
33073
 
34059
 
33074
  }
34060
  }
33075
 
34061
 
33076
  public static class scanForTransfer_result implements org.apache.thrift.TBase<scanForTransfer_result, scanForTransfer_result._Fields>, java.io.Serializable, Cloneable   {
34062
  public static class scanForTransferIn_result implements org.apache.thrift.TBase<scanForTransferIn_result, scanForTransferIn_result._Fields>, java.io.Serializable, Cloneable   {
33077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransfer_result");
34063
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferIn_result");
-
 
34064
 
-
 
34065
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
34066
 
-
 
34067
    private WarehouseServiceException wex; // required
-
 
34068
 
-
 
34069
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34070
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
34071
      WEX((short)1, "wex");
-
 
34072
 
-
 
34073
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34074
 
-
 
34075
      static {
-
 
34076
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34077
          byName.put(field.getFieldName(), field);
-
 
34078
        }
-
 
34079
      }
-
 
34080
 
-
 
34081
      /**
-
 
34082
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34083
       */
-
 
34084
      public static _Fields findByThriftId(int fieldId) {
-
 
34085
        switch(fieldId) {
-
 
34086
          case 1: // WEX
-
 
34087
            return WEX;
-
 
34088
          default:
-
 
34089
            return null;
-
 
34090
        }
-
 
34091
      }
-
 
34092
 
-
 
34093
      /**
-
 
34094
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34095
       * if it is not found.
-
 
34096
       */
-
 
34097
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34098
        _Fields fields = findByThriftId(fieldId);
-
 
34099
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34100
        return fields;
-
 
34101
      }
-
 
34102
 
-
 
34103
      /**
-
 
34104
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34105
       */
-
 
34106
      public static _Fields findByName(String name) {
-
 
34107
        return byName.get(name);
-
 
34108
      }
-
 
34109
 
-
 
34110
      private final short _thriftId;
-
 
34111
      private final String _fieldName;
-
 
34112
 
-
 
34113
      _Fields(short thriftId, String fieldName) {
-
 
34114
        _thriftId = thriftId;
-
 
34115
        _fieldName = fieldName;
-
 
34116
      }
-
 
34117
 
-
 
34118
      public short getThriftFieldId() {
-
 
34119
        return _thriftId;
-
 
34120
      }
-
 
34121
 
-
 
34122
      public String getFieldName() {
-
 
34123
        return _fieldName;
-
 
34124
      }
-
 
34125
    }
-
 
34126
 
-
 
34127
    // isset id assignments
-
 
34128
 
-
 
34129
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
34130
    static {
-
 
34131
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
34132
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
34133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
34134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
34135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferIn_result.class, metaDataMap);
-
 
34136
    }
-
 
34137
 
-
 
34138
    public scanForTransferIn_result() {
-
 
34139
    }
-
 
34140
 
-
 
34141
    public scanForTransferIn_result(
-
 
34142
      WarehouseServiceException wex)
-
 
34143
    {
-
 
34144
      this();
-
 
34145
      this.wex = wex;
-
 
34146
    }
-
 
34147
 
-
 
34148
    /**
-
 
34149
     * Performs a deep copy on <i>other</i>.
-
 
34150
     */
-
 
34151
    public scanForTransferIn_result(scanForTransferIn_result other) {
-
 
34152
      if (other.isSetWex()) {
-
 
34153
        this.wex = new WarehouseServiceException(other.wex);
-
 
34154
      }
-
 
34155
    }
-
 
34156
 
-
 
34157
    public scanForTransferIn_result deepCopy() {
-
 
34158
      return new scanForTransferIn_result(this);
-
 
34159
    }
-
 
34160
 
-
 
34161
    @Override
-
 
34162
    public void clear() {
-
 
34163
      this.wex = null;
-
 
34164
    }
-
 
34165
 
-
 
34166
    public WarehouseServiceException getWex() {
-
 
34167
      return this.wex;
-
 
34168
    }
-
 
34169
 
-
 
34170
    public void setWex(WarehouseServiceException wex) {
-
 
34171
      this.wex = wex;
-
 
34172
    }
-
 
34173
 
-
 
34174
    public void unsetWex() {
-
 
34175
      this.wex = null;
-
 
34176
    }
-
 
34177
 
-
 
34178
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
34179
    public boolean isSetWex() {
-
 
34180
      return this.wex != null;
-
 
34181
    }
-
 
34182
 
-
 
34183
    public void setWexIsSet(boolean value) {
-
 
34184
      if (!value) {
-
 
34185
        this.wex = null;
-
 
34186
      }
-
 
34187
    }
-
 
34188
 
-
 
34189
    public void setFieldValue(_Fields field, Object value) {
-
 
34190
      switch (field) {
-
 
34191
      case WEX:
-
 
34192
        if (value == null) {
-
 
34193
          unsetWex();
-
 
34194
        } else {
-
 
34195
          setWex((WarehouseServiceException)value);
-
 
34196
        }
-
 
34197
        break;
-
 
34198
 
-
 
34199
      }
-
 
34200
    }
-
 
34201
 
-
 
34202
    public Object getFieldValue(_Fields field) {
-
 
34203
      switch (field) {
-
 
34204
      case WEX:
-
 
34205
        return getWex();
-
 
34206
 
-
 
34207
      }
-
 
34208
      throw new IllegalStateException();
-
 
34209
    }
-
 
34210
 
-
 
34211
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
34212
    public boolean isSet(_Fields field) {
-
 
34213
      if (field == null) {
-
 
34214
        throw new IllegalArgumentException();
-
 
34215
      }
-
 
34216
 
-
 
34217
      switch (field) {
-
 
34218
      case WEX:
-
 
34219
        return isSetWex();
-
 
34220
      }
-
 
34221
      throw new IllegalStateException();
-
 
34222
    }
-
 
34223
 
-
 
34224
    @Override
-
 
34225
    public boolean equals(Object that) {
-
 
34226
      if (that == null)
-
 
34227
        return false;
-
 
34228
      if (that instanceof scanForTransferIn_result)
-
 
34229
        return this.equals((scanForTransferIn_result)that);
-
 
34230
      return false;
-
 
34231
    }
-
 
34232
 
-
 
34233
    public boolean equals(scanForTransferIn_result that) {
-
 
34234
      if (that == null)
-
 
34235
        return false;
-
 
34236
 
-
 
34237
      boolean this_present_wex = true && this.isSetWex();
-
 
34238
      boolean that_present_wex = true && that.isSetWex();
-
 
34239
      if (this_present_wex || that_present_wex) {
-
 
34240
        if (!(this_present_wex && that_present_wex))
-
 
34241
          return false;
-
 
34242
        if (!this.wex.equals(that.wex))
-
 
34243
          return false;
-
 
34244
      }
-
 
34245
 
-
 
34246
      return true;
-
 
34247
    }
-
 
34248
 
-
 
34249
    @Override
-
 
34250
    public int hashCode() {
-
 
34251
      return 0;
-
 
34252
    }
-
 
34253
 
-
 
34254
    public int compareTo(scanForTransferIn_result other) {
-
 
34255
      if (!getClass().equals(other.getClass())) {
-
 
34256
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34257
      }
-
 
34258
 
-
 
34259
      int lastComparison = 0;
-
 
34260
      scanForTransferIn_result typedOther = (scanForTransferIn_result)other;
-
 
34261
 
-
 
34262
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
34263
      if (lastComparison != 0) {
-
 
34264
        return lastComparison;
-
 
34265
      }
-
 
34266
      if (isSetWex()) {
-
 
34267
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
34268
        if (lastComparison != 0) {
-
 
34269
          return lastComparison;
-
 
34270
        }
-
 
34271
      }
-
 
34272
      return 0;
-
 
34273
    }
-
 
34274
 
-
 
34275
    public _Fields fieldForId(int fieldId) {
-
 
34276
      return _Fields.findByThriftId(fieldId);
-
 
34277
    }
-
 
34278
 
-
 
34279
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
34280
      org.apache.thrift.protocol.TField field;
-
 
34281
      iprot.readStructBegin();
-
 
34282
      while (true)
-
 
34283
      {
-
 
34284
        field = iprot.readFieldBegin();
-
 
34285
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
34286
          break;
-
 
34287
        }
-
 
34288
        switch (field.id) {
-
 
34289
          case 1: // WEX
-
 
34290
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
34291
              this.wex = new WarehouseServiceException();
-
 
34292
              this.wex.read(iprot);
-
 
34293
            } else { 
-
 
34294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34295
            }
-
 
34296
            break;
-
 
34297
          default:
-
 
34298
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34299
        }
-
 
34300
        iprot.readFieldEnd();
-
 
34301
      }
-
 
34302
      iprot.readStructEnd();
-
 
34303
      validate();
-
 
34304
    }
-
 
34305
 
-
 
34306
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
34307
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34308
 
-
 
34309
      if (this.isSetWex()) {
-
 
34310
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
34311
        this.wex.write(oprot);
-
 
34312
        oprot.writeFieldEnd();
-
 
34313
      }
-
 
34314
      oprot.writeFieldStop();
-
 
34315
      oprot.writeStructEnd();
-
 
34316
    }
-
 
34317
 
-
 
34318
    @Override
-
 
34319
    public String toString() {
-
 
34320
      StringBuilder sb = new StringBuilder("scanForTransferIn_result(");
-
 
34321
      boolean first = true;
-
 
34322
 
-
 
34323
      sb.append("wex:");
-
 
34324
      if (this.wex == null) {
-
 
34325
        sb.append("null");
-
 
34326
      } else {
-
 
34327
        sb.append(this.wex);
-
 
34328
      }
-
 
34329
      first = false;
-
 
34330
      sb.append(")");
-
 
34331
      return sb.toString();
-
 
34332
    }
-
 
34333
 
-
 
34334
    public void validate() throws org.apache.thrift.TException {
-
 
34335
      // check for required fields
-
 
34336
    }
-
 
34337
 
-
 
34338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
34339
      try {
-
 
34340
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
34341
      } catch (org.apache.thrift.TException te) {
-
 
34342
        throw new java.io.IOException(te);
-
 
34343
      }
-
 
34344
    }
-
 
34345
 
-
 
34346
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
34347
      try {
-
 
34348
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
34349
      } catch (org.apache.thrift.TException te) {
-
 
34350
        throw new java.io.IOException(te);
-
 
34351
      }
-
 
34352
    }
-
 
34353
 
-
 
34354
  }
-
 
34355
 
-
 
34356
  public static class scanForOursThirdPartyReceive_args implements org.apache.thrift.TBase<scanForOursThirdPartyReceive_args, scanForOursThirdPartyReceive_args._Fields>, java.io.Serializable, Cloneable   {
-
 
34357
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursThirdPartyReceive_args");
-
 
34358
 
-
 
34359
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItems", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
34360
    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)2);
-
 
34361
 
-
 
34362
    private List<InventoryItem> inventoryItems; // required
-
 
34363
    private long id; // required
-
 
34364
 
-
 
34365
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34366
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
34367
      INVENTORY_ITEMS((short)1, "inventoryItems"),
-
 
34368
      ID((short)2, "id");
-
 
34369
 
-
 
34370
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34371
 
-
 
34372
      static {
-
 
34373
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34374
          byName.put(field.getFieldName(), field);
-
 
34375
        }
-
 
34376
      }
-
 
34377
 
-
 
34378
      /**
-
 
34379
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34380
       */
-
 
34381
      public static _Fields findByThriftId(int fieldId) {
-
 
34382
        switch(fieldId) {
-
 
34383
          case 1: // INVENTORY_ITEMS
-
 
34384
            return INVENTORY_ITEMS;
-
 
34385
          case 2: // ID
-
 
34386
            return ID;
-
 
34387
          default:
-
 
34388
            return null;
-
 
34389
        }
-
 
34390
      }
-
 
34391
 
-
 
34392
      /**
-
 
34393
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34394
       * if it is not found.
-
 
34395
       */
-
 
34396
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34397
        _Fields fields = findByThriftId(fieldId);
-
 
34398
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34399
        return fields;
-
 
34400
      }
-
 
34401
 
-
 
34402
      /**
-
 
34403
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34404
       */
-
 
34405
      public static _Fields findByName(String name) {
-
 
34406
        return byName.get(name);
-
 
34407
      }
-
 
34408
 
-
 
34409
      private final short _thriftId;
-
 
34410
      private final String _fieldName;
-
 
34411
 
-
 
34412
      _Fields(short thriftId, String fieldName) {
-
 
34413
        _thriftId = thriftId;
-
 
34414
        _fieldName = fieldName;
-
 
34415
      }
-
 
34416
 
-
 
34417
      public short getThriftFieldId() {
-
 
34418
        return _thriftId;
-
 
34419
      }
-
 
34420
 
-
 
34421
      public String getFieldName() {
-
 
34422
        return _fieldName;
-
 
34423
      }
-
 
34424
    }
-
 
34425
 
-
 
34426
    // isset id assignments
-
 
34427
    private static final int __ID_ISSET_ID = 0;
-
 
34428
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
34429
 
-
 
34430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
34431
    static {
-
 
34432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
34433
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
34434
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
34435
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
34436
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
34437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
34438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
34439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursThirdPartyReceive_args.class, metaDataMap);
-
 
34440
    }
-
 
34441
 
-
 
34442
    public scanForOursThirdPartyReceive_args() {
-
 
34443
    }
-
 
34444
 
-
 
34445
    public scanForOursThirdPartyReceive_args(
-
 
34446
      List<InventoryItem> inventoryItems,
-
 
34447
      long id)
-
 
34448
    {
-
 
34449
      this();
-
 
34450
      this.inventoryItems = inventoryItems;
-
 
34451
      this.id = id;
-
 
34452
      setIdIsSet(true);
-
 
34453
    }
-
 
34454
 
-
 
34455
    /**
-
 
34456
     * Performs a deep copy on <i>other</i>.
-
 
34457
     */
-
 
34458
    public scanForOursThirdPartyReceive_args(scanForOursThirdPartyReceive_args other) {
-
 
34459
      __isset_bit_vector.clear();
-
 
34460
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
34461
      if (other.isSetInventoryItems()) {
-
 
34462
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
-
 
34463
        for (InventoryItem other_element : other.inventoryItems) {
-
 
34464
          __this__inventoryItems.add(new InventoryItem(other_element));
-
 
34465
        }
-
 
34466
        this.inventoryItems = __this__inventoryItems;
-
 
34467
      }
-
 
34468
      this.id = other.id;
-
 
34469
    }
-
 
34470
 
-
 
34471
    public scanForOursThirdPartyReceive_args deepCopy() {
-
 
34472
      return new scanForOursThirdPartyReceive_args(this);
-
 
34473
    }
-
 
34474
 
-
 
34475
    @Override
-
 
34476
    public void clear() {
-
 
34477
      this.inventoryItems = null;
-
 
34478
      setIdIsSet(false);
-
 
34479
      this.id = 0;
-
 
34480
    }
-
 
34481
 
-
 
34482
    public int getInventoryItemsSize() {
-
 
34483
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
-
 
34484
    }
-
 
34485
 
-
 
34486
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
-
 
34487
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
-
 
34488
    }
-
 
34489
 
-
 
34490
    public void addToInventoryItems(InventoryItem elem) {
-
 
34491
      if (this.inventoryItems == null) {
-
 
34492
        this.inventoryItems = new ArrayList<InventoryItem>();
-
 
34493
      }
-
 
34494
      this.inventoryItems.add(elem);
-
 
34495
    }
-
 
34496
 
-
 
34497
    public List<InventoryItem> getInventoryItems() {
-
 
34498
      return this.inventoryItems;
-
 
34499
    }
-
 
34500
 
-
 
34501
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
-
 
34502
      this.inventoryItems = inventoryItems;
-
 
34503
    }
-
 
34504
 
-
 
34505
    public void unsetInventoryItems() {
-
 
34506
      this.inventoryItems = null;
-
 
34507
    }
-
 
34508
 
-
 
34509
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
-
 
34510
    public boolean isSetInventoryItems() {
-
 
34511
      return this.inventoryItems != null;
-
 
34512
    }
-
 
34513
 
-
 
34514
    public void setInventoryItemsIsSet(boolean value) {
-
 
34515
      if (!value) {
-
 
34516
        this.inventoryItems = null;
-
 
34517
      }
-
 
34518
    }
-
 
34519
 
-
 
34520
    public long getId() {
-
 
34521
      return this.id;
-
 
34522
    }
-
 
34523
 
-
 
34524
    public void setId(long id) {
-
 
34525
      this.id = id;
-
 
34526
      setIdIsSet(true);
-
 
34527
    }
-
 
34528
 
-
 
34529
    public void unsetId() {
-
 
34530
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
34531
    }
-
 
34532
 
-
 
34533
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
34534
    public boolean isSetId() {
-
 
34535
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
34536
    }
-
 
34537
 
-
 
34538
    public void setIdIsSet(boolean value) {
-
 
34539
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
34540
    }
-
 
34541
 
-
 
34542
    public void setFieldValue(_Fields field, Object value) {
-
 
34543
      switch (field) {
-
 
34544
      case INVENTORY_ITEMS:
-
 
34545
        if (value == null) {
-
 
34546
          unsetInventoryItems();
-
 
34547
        } else {
-
 
34548
          setInventoryItems((List<InventoryItem>)value);
-
 
34549
        }
-
 
34550
        break;
-
 
34551
 
-
 
34552
      case ID:
-
 
34553
        if (value == null) {
-
 
34554
          unsetId();
-
 
34555
        } else {
-
 
34556
          setId((Long)value);
-
 
34557
        }
-
 
34558
        break;
-
 
34559
 
-
 
34560
      }
-
 
34561
    }
-
 
34562
 
-
 
34563
    public Object getFieldValue(_Fields field) {
-
 
34564
      switch (field) {
-
 
34565
      case INVENTORY_ITEMS:
-
 
34566
        return getInventoryItems();
-
 
34567
 
-
 
34568
      case ID:
-
 
34569
        return Long.valueOf(getId());
-
 
34570
 
-
 
34571
      }
-
 
34572
      throw new IllegalStateException();
-
 
34573
    }
-
 
34574
 
-
 
34575
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
34576
    public boolean isSet(_Fields field) {
-
 
34577
      if (field == null) {
-
 
34578
        throw new IllegalArgumentException();
-
 
34579
      }
-
 
34580
 
-
 
34581
      switch (field) {
-
 
34582
      case INVENTORY_ITEMS:
-
 
34583
        return isSetInventoryItems();
-
 
34584
      case ID:
-
 
34585
        return isSetId();
-
 
34586
      }
-
 
34587
      throw new IllegalStateException();
-
 
34588
    }
-
 
34589
 
-
 
34590
    @Override
-
 
34591
    public boolean equals(Object that) {
-
 
34592
      if (that == null)
-
 
34593
        return false;
-
 
34594
      if (that instanceof scanForOursThirdPartyReceive_args)
-
 
34595
        return this.equals((scanForOursThirdPartyReceive_args)that);
-
 
34596
      return false;
-
 
34597
    }
-
 
34598
 
-
 
34599
    public boolean equals(scanForOursThirdPartyReceive_args that) {
-
 
34600
      if (that == null)
-
 
34601
        return false;
-
 
34602
 
-
 
34603
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
-
 
34604
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
-
 
34605
      if (this_present_inventoryItems || that_present_inventoryItems) {
-
 
34606
        if (!(this_present_inventoryItems && that_present_inventoryItems))
-
 
34607
          return false;
-
 
34608
        if (!this.inventoryItems.equals(that.inventoryItems))
-
 
34609
          return false;
-
 
34610
      }
-
 
34611
 
-
 
34612
      boolean this_present_id = true;
-
 
34613
      boolean that_present_id = true;
-
 
34614
      if (this_present_id || that_present_id) {
-
 
34615
        if (!(this_present_id && that_present_id))
-
 
34616
          return false;
-
 
34617
        if (this.id != that.id)
-
 
34618
          return false;
-
 
34619
      }
-
 
34620
 
-
 
34621
      return true;
-
 
34622
    }
-
 
34623
 
-
 
34624
    @Override
-
 
34625
    public int hashCode() {
-
 
34626
      return 0;
-
 
34627
    }
-
 
34628
 
-
 
34629
    public int compareTo(scanForOursThirdPartyReceive_args other) {
-
 
34630
      if (!getClass().equals(other.getClass())) {
-
 
34631
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34632
      }
-
 
34633
 
-
 
34634
      int lastComparison = 0;
-
 
34635
      scanForOursThirdPartyReceive_args typedOther = (scanForOursThirdPartyReceive_args)other;
-
 
34636
 
-
 
34637
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
-
 
34638
      if (lastComparison != 0) {
-
 
34639
        return lastComparison;
-
 
34640
      }
-
 
34641
      if (isSetInventoryItems()) {
-
 
34642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
-
 
34643
        if (lastComparison != 0) {
-
 
34644
          return lastComparison;
-
 
34645
        }
-
 
34646
      }
-
 
34647
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
34648
      if (lastComparison != 0) {
-
 
34649
        return lastComparison;
-
 
34650
      }
-
 
34651
      if (isSetId()) {
-
 
34652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
34653
        if (lastComparison != 0) {
-
 
34654
          return lastComparison;
-
 
34655
        }
-
 
34656
      }
-
 
34657
      return 0;
-
 
34658
    }
-
 
34659
 
-
 
34660
    public _Fields fieldForId(int fieldId) {
-
 
34661
      return _Fields.findByThriftId(fieldId);
-
 
34662
    }
-
 
34663
 
-
 
34664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
34665
      org.apache.thrift.protocol.TField field;
-
 
34666
      iprot.readStructBegin();
-
 
34667
      while (true)
-
 
34668
      {
-
 
34669
        field = iprot.readFieldBegin();
-
 
34670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
34671
          break;
-
 
34672
        }
-
 
34673
        switch (field.id) {
-
 
34674
          case 1: // INVENTORY_ITEMS
-
 
34675
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
34676
              {
-
 
34677
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
-
 
34678
                this.inventoryItems = new ArrayList<InventoryItem>(_list97.size);
-
 
34679
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
-
 
34680
                {
-
 
34681
                  InventoryItem _elem99; // required
-
 
34682
                  _elem99 = new InventoryItem();
-
 
34683
                  _elem99.read(iprot);
-
 
34684
                  this.inventoryItems.add(_elem99);
-
 
34685
                }
-
 
34686
                iprot.readListEnd();
-
 
34687
              }
-
 
34688
            } else { 
-
 
34689
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34690
            }
-
 
34691
            break;
-
 
34692
          case 2: // ID
-
 
34693
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
34694
              this.id = iprot.readI64();
-
 
34695
              setIdIsSet(true);
-
 
34696
            } else { 
-
 
34697
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34698
            }
-
 
34699
            break;
-
 
34700
          default:
-
 
34701
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34702
        }
-
 
34703
        iprot.readFieldEnd();
-
 
34704
      }
-
 
34705
      iprot.readStructEnd();
-
 
34706
      validate();
-
 
34707
    }
-
 
34708
 
-
 
34709
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
34710
      validate();
-
 
34711
 
-
 
34712
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34713
      if (this.inventoryItems != null) {
-
 
34714
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
-
 
34715
        {
-
 
34716
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
-
 
34717
          for (InventoryItem _iter100 : this.inventoryItems)
-
 
34718
          {
-
 
34719
            _iter100.write(oprot);
-
 
34720
          }
-
 
34721
          oprot.writeListEnd();
-
 
34722
        }
-
 
34723
        oprot.writeFieldEnd();
-
 
34724
      }
-
 
34725
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
34726
      oprot.writeI64(this.id);
-
 
34727
      oprot.writeFieldEnd();
-
 
34728
      oprot.writeFieldStop();
-
 
34729
      oprot.writeStructEnd();
-
 
34730
    }
-
 
34731
 
-
 
34732
    @Override
-
 
34733
    public String toString() {
-
 
34734
      StringBuilder sb = new StringBuilder("scanForOursThirdPartyReceive_args(");
-
 
34735
      boolean first = true;
-
 
34736
 
-
 
34737
      sb.append("inventoryItems:");
-
 
34738
      if (this.inventoryItems == null) {
-
 
34739
        sb.append("null");
-
 
34740
      } else {
-
 
34741
        sb.append(this.inventoryItems);
-
 
34742
      }
-
 
34743
      first = false;
-
 
34744
      if (!first) sb.append(", ");
-
 
34745
      sb.append("id:");
-
 
34746
      sb.append(this.id);
-
 
34747
      first = false;
-
 
34748
      sb.append(")");
-
 
34749
      return sb.toString();
-
 
34750
    }
-
 
34751
 
-
 
34752
    public void validate() throws org.apache.thrift.TException {
-
 
34753
      // check for required fields
-
 
34754
    }
-
 
34755
 
-
 
34756
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
34757
      try {
-
 
34758
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
34759
      } catch (org.apache.thrift.TException te) {
-
 
34760
        throw new java.io.IOException(te);
-
 
34761
      }
-
 
34762
    }
-
 
34763
 
-
 
34764
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
34765
      try {
-
 
34766
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
34767
        __isset_bit_vector = new BitSet(1);
-
 
34768
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
34769
      } catch (org.apache.thrift.TException te) {
-
 
34770
        throw new java.io.IOException(te);
-
 
34771
      }
-
 
34772
    }
-
 
34773
 
-
 
34774
  }
-
 
34775
 
-
 
34776
  public static class scanForOursThirdPartyReceive_result implements org.apache.thrift.TBase<scanForOursThirdPartyReceive_result, scanForOursThirdPartyReceive_result._Fields>, java.io.Serializable, Cloneable   {
-
 
34777
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursThirdPartyReceive_result");
33078
 
34778
 
33079
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
34779
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
33080
 
34780
 
33081
    private WarehouseServiceException wex; // required
34781
    private WarehouseServiceException wex; // required
33082
 
34782
 
Line 33144... Line 34844...
33144
    static {
34844
    static {
33145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34845
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33146
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34846
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34847
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34848
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransfer_result.class, metaDataMap);
34849
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursThirdPartyReceive_result.class, metaDataMap);
33150
    }
34850
    }
33151
 
34851
 
33152
    public scanForTransfer_result() {
34852
    public scanForOursThirdPartyReceive_result() {
33153
    }
34853
    }
33154
 
34854
 
33155
    public scanForTransfer_result(
34855
    public scanForOursThirdPartyReceive_result(
33156
      WarehouseServiceException wex)
34856
      WarehouseServiceException wex)
33157
    {
34857
    {
33158
      this();
34858
      this();
33159
      this.wex = wex;
34859
      this.wex = wex;
33160
    }
34860
    }
33161
 
34861
 
33162
    /**
34862
    /**
33163
     * Performs a deep copy on <i>other</i>.
34863
     * Performs a deep copy on <i>other</i>.
33164
     */
34864
     */
33165
    public scanForTransfer_result(scanForTransfer_result other) {
34865
    public scanForOursThirdPartyReceive_result(scanForOursThirdPartyReceive_result other) {
33166
      if (other.isSetWex()) {
34866
      if (other.isSetWex()) {
33167
        this.wex = new WarehouseServiceException(other.wex);
34867
        this.wex = new WarehouseServiceException(other.wex);
33168
      }
34868
      }
33169
    }
34869
    }
33170
 
34870
 
33171
    public scanForTransfer_result deepCopy() {
34871
    public scanForOursThirdPartyReceive_result deepCopy() {
33172
      return new scanForTransfer_result(this);
34872
      return new scanForOursThirdPartyReceive_result(this);
33173
    }
34873
    }
33174
 
34874
 
33175
    @Override
34875
    @Override
33176
    public void clear() {
34876
    public void clear() {
33177
      this.wex = null;
34877
      this.wex = null;
Line 33237... Line 34937...
33237
 
34937
 
33238
    @Override
34938
    @Override
33239
    public boolean equals(Object that) {
34939
    public boolean equals(Object that) {
33240
      if (that == null)
34940
      if (that == null)
33241
        return false;
34941
        return false;
33242
      if (that instanceof scanForTransfer_result)
34942
      if (that instanceof scanForOursThirdPartyReceive_result)
33243
        return this.equals((scanForTransfer_result)that);
34943
        return this.equals((scanForOursThirdPartyReceive_result)that);
33244
      return false;
34944
      return false;
33245
    }
34945
    }
33246
 
34946
 
33247
    public boolean equals(scanForTransfer_result that) {
34947
    public boolean equals(scanForOursThirdPartyReceive_result that) {
33248
      if (that == null)
34948
      if (that == null)
33249
        return false;
34949
        return false;
33250
 
34950
 
33251
      boolean this_present_wex = true && this.isSetWex();
34951
      boolean this_present_wex = true && this.isSetWex();
33252
      boolean that_present_wex = true && that.isSetWex();
34952
      boolean that_present_wex = true && that.isSetWex();
Line 33263... Line 34963...
33263
    @Override
34963
    @Override
33264
    public int hashCode() {
34964
    public int hashCode() {
33265
      return 0;
34965
      return 0;
33266
    }
34966
    }
33267
 
34967
 
33268
    public int compareTo(scanForTransfer_result other) {
34968
    public int compareTo(scanForOursThirdPartyReceive_result other) {
33269
      if (!getClass().equals(other.getClass())) {
34969
      if (!getClass().equals(other.getClass())) {
33270
        return getClass().getName().compareTo(other.getClass().getName());
34970
        return getClass().getName().compareTo(other.getClass().getName());
33271
      }
34971
      }
33272
 
34972
 
33273
      int lastComparison = 0;
34973
      int lastComparison = 0;
33274
      scanForTransfer_result typedOther = (scanForTransfer_result)other;
34974
      scanForOursThirdPartyReceive_result typedOther = (scanForOursThirdPartyReceive_result)other;
33275
 
34975
 
33276
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
34976
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
33277
      if (lastComparison != 0) {
34977
      if (lastComparison != 0) {
33278
        return lastComparison;
34978
        return lastComparison;
33279
      }
34979
      }
Line 33329... Line 35029...
33329
      oprot.writeStructEnd();
35029
      oprot.writeStructEnd();
33330
    }
35030
    }
33331
 
35031
 
33332
    @Override
35032
    @Override
33333
    public String toString() {
35033
    public String toString() {
33334
      StringBuilder sb = new StringBuilder("scanForTransfer_result(");
35034
      StringBuilder sb = new StringBuilder("scanForOursThirdPartyReceive_result(");
33335
      boolean first = true;
35035
      boolean first = true;
33336
 
35036
 
33337
      sb.append("wex:");
35037
      sb.append("wex:");
33338
      if (this.wex == null) {
35038
      if (this.wex == null) {
33339
        sb.append("null");
35039
        sb.append("null");