Subversion Repositories SmartDukaan

Rev

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

Rev 8717 Rev 10120
Line 280... Line 280...
280
     */
280
     */
281
    public List<InventoryAvailability> getHistoricBadInventoryByScans(long date) throws WarehouseServiceException, org.apache.thrift.TException;
281
    public List<InventoryAvailability> getHistoricBadInventoryByScans(long date) throws WarehouseServiceException, org.apache.thrift.TException;
282
 
282
 
283
    public InventoryItem scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
283
    public InventoryItem scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
284
 
284
 
-
 
285
    public List<InventoryItem> getTransferLotItemsForMarkReceive(long transferLotId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
286
 
-
 
287
    public void markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
288
 
-
 
289
    public void markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
290
 
285
  }
291
  }
286
 
292
 
287
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
293
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
288
 
294
 
289
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
295
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 380... Line 386...
380
 
386
 
381
    public void getHistoricBadInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricBadInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
387
    public void getHistoricBadInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricBadInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
382
 
388
 
383
    public void scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadSale_call> resultHandler) throws org.apache.thrift.TException;
389
    public void scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadSale_call> resultHandler) throws org.apache.thrift.TException;
384
 
390
 
-
 
391
    public void getTransferLotItemsForMarkReceive(long transferLotId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLotItemsForMarkReceive_call> resultHandler) throws org.apache.thrift.TException;
-
 
392
 
-
 
393
    public void markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLotPartial_call> resultHandler) throws org.apache.thrift.TException;
-
 
394
 
-
 
395
    public void markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransferLotAsReceivedPartial_call> resultHandler) throws org.apache.thrift.TException;
-
 
396
 
385
  }
397
  }
386
 
398
 
387
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
399
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
388
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
400
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
389
      public Factory() {}
401
      public Factory() {}
Line 1615... Line 1627...
1615
        throw result.wex;
1627
        throw result.wex;
1616
      }
1628
      }
1617
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
1629
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
1618
    }
1630
    }
1619
 
1631
 
-
 
1632
    public List<InventoryItem> getTransferLotItemsForMarkReceive(long transferLotId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1633
    {
-
 
1634
      send_getTransferLotItemsForMarkReceive(transferLotId, scanType);
-
 
1635
      return recv_getTransferLotItemsForMarkReceive();
-
 
1636
    }
-
 
1637
 
-
 
1638
    public void send_getTransferLotItemsForMarkReceive(long transferLotId, ScanType scanType) throws org.apache.thrift.TException
-
 
1639
    {
-
 
1640
      getTransferLotItemsForMarkReceive_args args = new getTransferLotItemsForMarkReceive_args();
-
 
1641
      args.setTransferLotId(transferLotId);
-
 
1642
      args.setScanType(scanType);
-
 
1643
      sendBase("getTransferLotItemsForMarkReceive", args);
-
 
1644
    }
-
 
1645
 
-
 
1646
    public List<InventoryItem> recv_getTransferLotItemsForMarkReceive() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1647
    {
-
 
1648
      getTransferLotItemsForMarkReceive_result result = new getTransferLotItemsForMarkReceive_result();
-
 
1649
      receiveBase(result, "getTransferLotItemsForMarkReceive");
-
 
1650
      if (result.isSetSuccess()) {
-
 
1651
        return result.success;
-
 
1652
      }
-
 
1653
      if (result.wex != null) {
-
 
1654
        throw result.wex;
-
 
1655
      }
-
 
1656
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
-
 
1657
    }
-
 
1658
 
-
 
1659
    public void markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1660
    {
-
 
1661
      send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId);
-
 
1662
      recv_markItemsAsReceivedForTransferLotPartial();
-
 
1663
    }
-
 
1664
 
-
 
1665
    public void send_markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId) throws org.apache.thrift.TException
-
 
1666
    {
-
 
1667
      markItemsAsReceivedForTransferLotPartial_args args = new markItemsAsReceivedForTransferLotPartial_args();
-
 
1668
      args.setInventoryItems(inventoryItems);
-
 
1669
      args.setTransferLotId(transferLotId);
-
 
1670
      sendBase("markItemsAsReceivedForTransferLotPartial", args);
-
 
1671
    }
-
 
1672
 
-
 
1673
    public void recv_markItemsAsReceivedForTransferLotPartial() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1674
    {
-
 
1675
      markItemsAsReceivedForTransferLotPartial_result result = new markItemsAsReceivedForTransferLotPartial_result();
-
 
1676
      receiveBase(result, "markItemsAsReceivedForTransferLotPartial");
-
 
1677
      if (result.wex != null) {
-
 
1678
        throw result.wex;
-
 
1679
      }
-
 
1680
      return;
-
 
1681
    }
-
 
1682
 
-
 
1683
    public void markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1684
    {
-
 
1685
      send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber);
-
 
1686
      recv_markTransferLotAsReceivedPartial();
-
 
1687
    }
-
 
1688
 
-
 
1689
    public void send_markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber) throws org.apache.thrift.TException
-
 
1690
    {
-
 
1691
      markTransferLotAsReceivedPartial_args args = new markTransferLotAsReceivedPartial_args();
-
 
1692
      args.setId(id);
-
 
1693
      args.setRemoteTransferRefNumber(remoteTransferRefNumber);
-
 
1694
      sendBase("markTransferLotAsReceivedPartial", args);
-
 
1695
    }
-
 
1696
 
-
 
1697
    public void recv_markTransferLotAsReceivedPartial() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1698
    {
-
 
1699
      markTransferLotAsReceivedPartial_result result = new markTransferLotAsReceivedPartial_result();
-
 
1700
      receiveBase(result, "markTransferLotAsReceivedPartial");
-
 
1701
      if (result.wex != null) {
-
 
1702
        throw result.wex;
-
 
1703
      }
-
 
1704
      return;
-
 
1705
    }
-
 
1706
 
1620
  }
1707
  }
1621
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1708
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1622
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1709
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1623
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1710
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1624
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1711
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3352... Line 3439...
3352
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3439
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3353
        return (new Client(prot)).recv_scanForBadSale();
3440
        return (new Client(prot)).recv_scanForBadSale();
3354
      }
3441
      }
3355
    }
3442
    }
3356
 
3443
 
-
 
3444
    public void getTransferLotItemsForMarkReceive(long transferLotId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<getTransferLotItemsForMarkReceive_call> resultHandler) throws org.apache.thrift.TException {
-
 
3445
      checkReady();
-
 
3446
      getTransferLotItemsForMarkReceive_call method_call = new getTransferLotItemsForMarkReceive_call(transferLotId, scanType, resultHandler, this, ___protocolFactory, ___transport);
-
 
3447
      this.___currentMethod = method_call;
-
 
3448
      ___manager.call(method_call);
-
 
3449
    }
-
 
3450
 
-
 
3451
    public static class getTransferLotItemsForMarkReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3452
      private long transferLotId;
-
 
3453
      private ScanType scanType;
-
 
3454
      public getTransferLotItemsForMarkReceive_call(long transferLotId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<getTransferLotItemsForMarkReceive_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 {
-
 
3455
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3456
        this.transferLotId = transferLotId;
-
 
3457
        this.scanType = scanType;
-
 
3458
      }
-
 
3459
 
-
 
3460
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3461
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLotItemsForMarkReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3462
        getTransferLotItemsForMarkReceive_args args = new getTransferLotItemsForMarkReceive_args();
-
 
3463
        args.setTransferLotId(transferLotId);
-
 
3464
        args.setScanType(scanType);
-
 
3465
        args.write(prot);
-
 
3466
        prot.writeMessageEnd();
-
 
3467
      }
-
 
3468
 
-
 
3469
      public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
3470
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3471
          throw new IllegalStateException("Method call not finished!");
-
 
3472
        }
-
 
3473
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3474
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3475
        return (new Client(prot)).recv_getTransferLotItemsForMarkReceive();
-
 
3476
      }
-
 
3477
    }
-
 
3478
 
-
 
3479
    public void markItemsAsReceivedForTransferLotPartial(List<InventoryItem> inventoryItems, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLotPartial_call> resultHandler) throws org.apache.thrift.TException {
-
 
3480
      checkReady();
-
 
3481
      markItemsAsReceivedForTransferLotPartial_call method_call = new markItemsAsReceivedForTransferLotPartial_call(inventoryItems, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3482
      this.___currentMethod = method_call;
-
 
3483
      ___manager.call(method_call);
-
 
3484
    }
-
 
3485
 
-
 
3486
    public static class markItemsAsReceivedForTransferLotPartial_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3487
      private List<InventoryItem> inventoryItems;
-
 
3488
      private long transferLotId;
-
 
3489
      public markItemsAsReceivedForTransferLotPartial_call(List<InventoryItem> inventoryItems, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLotPartial_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 {
-
 
3490
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3491
        this.inventoryItems = inventoryItems;
-
 
3492
        this.transferLotId = transferLotId;
-
 
3493
      }
-
 
3494
 
-
 
3495
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3496
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemsAsReceivedForTransferLotPartial", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3497
        markItemsAsReceivedForTransferLotPartial_args args = new markItemsAsReceivedForTransferLotPartial_args();
-
 
3498
        args.setInventoryItems(inventoryItems);
-
 
3499
        args.setTransferLotId(transferLotId);
-
 
3500
        args.write(prot);
-
 
3501
        prot.writeMessageEnd();
-
 
3502
      }
-
 
3503
 
-
 
3504
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
3505
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3506
          throw new IllegalStateException("Method call not finished!");
-
 
3507
        }
-
 
3508
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3509
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3510
        (new Client(prot)).recv_markItemsAsReceivedForTransferLotPartial();
-
 
3511
      }
-
 
3512
    }
-
 
3513
 
-
 
3514
    public void markTransferLotAsReceivedPartial(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceivedPartial_call> resultHandler) throws org.apache.thrift.TException {
-
 
3515
      checkReady();
-
 
3516
      markTransferLotAsReceivedPartial_call method_call = new markTransferLotAsReceivedPartial_call(id, remoteTransferRefNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
3517
      this.___currentMethod = method_call;
-
 
3518
      ___manager.call(method_call);
-
 
3519
    }
-
 
3520
 
-
 
3521
    public static class markTransferLotAsReceivedPartial_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3522
      private long id;
-
 
3523
      private String remoteTransferRefNumber;
-
 
3524
      public markTransferLotAsReceivedPartial_call(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceivedPartial_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 {
-
 
3525
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3526
        this.id = id;
-
 
3527
        this.remoteTransferRefNumber = remoteTransferRefNumber;
-
 
3528
      }
-
 
3529
 
-
 
3530
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3531
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransferLotAsReceivedPartial", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3532
        markTransferLotAsReceivedPartial_args args = new markTransferLotAsReceivedPartial_args();
-
 
3533
        args.setId(id);
-
 
3534
        args.setRemoteTransferRefNumber(remoteTransferRefNumber);
-
 
3535
        args.write(prot);
-
 
3536
        prot.writeMessageEnd();
-
 
3537
      }
-
 
3538
 
-
 
3539
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
3540
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3541
          throw new IllegalStateException("Method call not finished!");
-
 
3542
        }
-
 
3543
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3544
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3545
        (new Client(prot)).recv_markTransferLotAsReceivedPartial();
-
 
3546
      }
-
 
3547
    }
-
 
3548
 
3357
  }
3549
  }
3358
 
3550
 
3359
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3551
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3360
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3552
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3361
    public Processor(I iface) {
3553
    public Processor(I iface) {
Line 3413... Line 3605...
3413
      processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
3605
      processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
3414
      processMap.put("getInTransitInventory", new getInTransitInventory());
3606
      processMap.put("getInTransitInventory", new getInTransitInventory());
3415
      processMap.put("isItemAvailableForSale", new isItemAvailableForSale());
3607
      processMap.put("isItemAvailableForSale", new isItemAvailableForSale());
3416
      processMap.put("getHistoricBadInventoryByScans", new getHistoricBadInventoryByScans());
3608
      processMap.put("getHistoricBadInventoryByScans", new getHistoricBadInventoryByScans());
3417
      processMap.put("scanForBadSale", new scanForBadSale());
3609
      processMap.put("scanForBadSale", new scanForBadSale());
-
 
3610
      processMap.put("getTransferLotItemsForMarkReceive", new getTransferLotItemsForMarkReceive());
-
 
3611
      processMap.put("markItemsAsReceivedForTransferLotPartial", new markItemsAsReceivedForTransferLotPartial());
-
 
3612
      processMap.put("markTransferLotAsReceivedPartial", new markTransferLotAsReceivedPartial());
3418
      return processMap;
3613
      return processMap;
3419
    }
3614
    }
3420
 
3615
 
3421
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3616
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3422
      public getInventoryItem() {
3617
      public getInventoryItem() {
Line 4296... Line 4491...
4296
        }
4491
        }
4297
        return result;
4492
        return result;
4298
      }
4493
      }
4299
    }
4494
    }
4300
 
4495
 
-
 
4496
    private static class getTransferLotItemsForMarkReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLotItemsForMarkReceive_args> {
-
 
4497
      public getTransferLotItemsForMarkReceive() {
-
 
4498
        super("getTransferLotItemsForMarkReceive");
-
 
4499
      }
-
 
4500
 
-
 
4501
      protected getTransferLotItemsForMarkReceive_args getEmptyArgsInstance() {
-
 
4502
        return new getTransferLotItemsForMarkReceive_args();
-
 
4503
      }
-
 
4504
 
-
 
4505
      protected getTransferLotItemsForMarkReceive_result getResult(I iface, getTransferLotItemsForMarkReceive_args args) throws org.apache.thrift.TException {
-
 
4506
        getTransferLotItemsForMarkReceive_result result = new getTransferLotItemsForMarkReceive_result();
-
 
4507
        try {
-
 
4508
          result.success = iface.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType);
-
 
4509
        } catch (WarehouseServiceException wex) {
-
 
4510
          result.wex = wex;
-
 
4511
        }
-
 
4512
        return result;
-
 
4513
      }
-
 
4514
    }
-
 
4515
 
-
 
4516
    private static class markItemsAsReceivedForTransferLotPartial<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemsAsReceivedForTransferLotPartial_args> {
-
 
4517
      public markItemsAsReceivedForTransferLotPartial() {
-
 
4518
        super("markItemsAsReceivedForTransferLotPartial");
-
 
4519
      }
-
 
4520
 
-
 
4521
      protected markItemsAsReceivedForTransferLotPartial_args getEmptyArgsInstance() {
-
 
4522
        return new markItemsAsReceivedForTransferLotPartial_args();
-
 
4523
      }
-
 
4524
 
-
 
4525
      protected markItemsAsReceivedForTransferLotPartial_result getResult(I iface, markItemsAsReceivedForTransferLotPartial_args args) throws org.apache.thrift.TException {
-
 
4526
        markItemsAsReceivedForTransferLotPartial_result result = new markItemsAsReceivedForTransferLotPartial_result();
-
 
4527
        try {
-
 
4528
          iface.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId);
-
 
4529
        } catch (WarehouseServiceException wex) {
-
 
4530
          result.wex = wex;
-
 
4531
        }
-
 
4532
        return result;
-
 
4533
      }
-
 
4534
    }
-
 
4535
 
-
 
4536
    private static class markTransferLotAsReceivedPartial<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransferLotAsReceivedPartial_args> {
-
 
4537
      public markTransferLotAsReceivedPartial() {
-
 
4538
        super("markTransferLotAsReceivedPartial");
-
 
4539
      }
-
 
4540
 
-
 
4541
      protected markTransferLotAsReceivedPartial_args getEmptyArgsInstance() {
-
 
4542
        return new markTransferLotAsReceivedPartial_args();
-
 
4543
      }
-
 
4544
 
-
 
4545
      protected markTransferLotAsReceivedPartial_result getResult(I iface, markTransferLotAsReceivedPartial_args args) throws org.apache.thrift.TException {
-
 
4546
        markTransferLotAsReceivedPartial_result result = new markTransferLotAsReceivedPartial_result();
-
 
4547
        try {
-
 
4548
          iface.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber);
-
 
4549
        } catch (WarehouseServiceException wex) {
-
 
4550
          result.wex = wex;
-
 
4551
        }
-
 
4552
        return result;
-
 
4553
      }
-
 
4554
    }
-
 
4555
 
4301
  }
4556
  }
4302
 
4557
 
4303
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4558
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4304
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
4559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
4305
 
4560
 
Line 40166... Line 40421...
40166
      sb.append("wex:");
40421
      sb.append("wex:");
40167
      if (this.wex == null) {
40422
      if (this.wex == null) {
40168
        sb.append("null");
40423
        sb.append("null");
40169
      } else {
40424
      } else {
40170
        sb.append(this.wex);
40425
        sb.append(this.wex);
-
 
40426
      }
-
 
40427
      first = false;
-
 
40428
      sb.append(")");
-
 
40429
      return sb.toString();
-
 
40430
    }
-
 
40431
 
-
 
40432
    public void validate() throws org.apache.thrift.TException {
-
 
40433
      // check for required fields
-
 
40434
    }
-
 
40435
 
-
 
40436
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40437
      try {
-
 
40438
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40439
      } catch (org.apache.thrift.TException te) {
-
 
40440
        throw new java.io.IOException(te);
-
 
40441
      }
-
 
40442
    }
-
 
40443
 
-
 
40444
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40445
      try {
-
 
40446
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40447
      } catch (org.apache.thrift.TException te) {
-
 
40448
        throw new java.io.IOException(te);
-
 
40449
      }
-
 
40450
    }
-
 
40451
 
-
 
40452
  }
-
 
40453
 
-
 
40454
  public static class getTransferLotItemsForMarkReceive_args implements org.apache.thrift.TBase<getTransferLotItemsForMarkReceive_args, getTransferLotItemsForMarkReceive_args._Fields>, java.io.Serializable, Cloneable   {
-
 
40455
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotItemsForMarkReceive_args");
-
 
40456
 
-
 
40457
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
40458
    private static final org.apache.thrift.protocol.TField SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("scanType", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
40459
 
-
 
40460
    private long transferLotId; // required
-
 
40461
    private ScanType scanType; // required
-
 
40462
 
-
 
40463
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40464
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40465
      TRANSFER_LOT_ID((short)1, "transferLotId"),
-
 
40466
      /**
-
 
40467
       * 
-
 
40468
       * @see ScanType
-
 
40469
       */
-
 
40470
      SCAN_TYPE((short)2, "scanType");
-
 
40471
 
-
 
40472
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40473
 
-
 
40474
      static {
-
 
40475
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40476
          byName.put(field.getFieldName(), field);
-
 
40477
        }
-
 
40478
      }
-
 
40479
 
-
 
40480
      /**
-
 
40481
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
40482
       */
-
 
40483
      public static _Fields findByThriftId(int fieldId) {
-
 
40484
        switch(fieldId) {
-
 
40485
          case 1: // TRANSFER_LOT_ID
-
 
40486
            return TRANSFER_LOT_ID;
-
 
40487
          case 2: // SCAN_TYPE
-
 
40488
            return SCAN_TYPE;
-
 
40489
          default:
-
 
40490
            return null;
-
 
40491
        }
-
 
40492
      }
-
 
40493
 
-
 
40494
      /**
-
 
40495
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
40496
       * if it is not found.
-
 
40497
       */
-
 
40498
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
40499
        _Fields fields = findByThriftId(fieldId);
-
 
40500
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
40501
        return fields;
-
 
40502
      }
-
 
40503
 
-
 
40504
      /**
-
 
40505
       * Find the _Fields constant that matches name, or null if its not found.
-
 
40506
       */
-
 
40507
      public static _Fields findByName(String name) {
-
 
40508
        return byName.get(name);
-
 
40509
      }
-
 
40510
 
-
 
40511
      private final short _thriftId;
-
 
40512
      private final String _fieldName;
-
 
40513
 
-
 
40514
      _Fields(short thriftId, String fieldName) {
-
 
40515
        _thriftId = thriftId;
-
 
40516
        _fieldName = fieldName;
-
 
40517
      }
-
 
40518
 
-
 
40519
      public short getThriftFieldId() {
-
 
40520
        return _thriftId;
-
 
40521
      }
-
 
40522
 
-
 
40523
      public String getFieldName() {
-
 
40524
        return _fieldName;
-
 
40525
      }
-
 
40526
    }
-
 
40527
 
-
 
40528
    // isset id assignments
-
 
40529
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
-
 
40530
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
40531
 
-
 
40532
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40533
    static {
-
 
40534
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40535
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40536
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
40537
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40538
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
40539
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40540
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotItemsForMarkReceive_args.class, metaDataMap);
-
 
40541
    }
-
 
40542
 
-
 
40543
    public getTransferLotItemsForMarkReceive_args() {
-
 
40544
    }
-
 
40545
 
-
 
40546
    public getTransferLotItemsForMarkReceive_args(
-
 
40547
      long transferLotId,
-
 
40548
      ScanType scanType)
-
 
40549
    {
-
 
40550
      this();
-
 
40551
      this.transferLotId = transferLotId;
-
 
40552
      setTransferLotIdIsSet(true);
-
 
40553
      this.scanType = scanType;
-
 
40554
    }
-
 
40555
 
-
 
40556
    /**
-
 
40557
     * Performs a deep copy on <i>other</i>.
-
 
40558
     */
-
 
40559
    public getTransferLotItemsForMarkReceive_args(getTransferLotItemsForMarkReceive_args other) {
-
 
40560
      __isset_bit_vector.clear();
-
 
40561
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
40562
      this.transferLotId = other.transferLotId;
-
 
40563
      if (other.isSetScanType()) {
-
 
40564
        this.scanType = other.scanType;
-
 
40565
      }
-
 
40566
    }
-
 
40567
 
-
 
40568
    public getTransferLotItemsForMarkReceive_args deepCopy() {
-
 
40569
      return new getTransferLotItemsForMarkReceive_args(this);
-
 
40570
    }
-
 
40571
 
-
 
40572
    @Override
-
 
40573
    public void clear() {
-
 
40574
      setTransferLotIdIsSet(false);
-
 
40575
      this.transferLotId = 0;
-
 
40576
      this.scanType = null;
-
 
40577
    }
-
 
40578
 
-
 
40579
    public long getTransferLotId() {
-
 
40580
      return this.transferLotId;
-
 
40581
    }
-
 
40582
 
-
 
40583
    public void setTransferLotId(long transferLotId) {
-
 
40584
      this.transferLotId = transferLotId;
-
 
40585
      setTransferLotIdIsSet(true);
-
 
40586
    }
-
 
40587
 
-
 
40588
    public void unsetTransferLotId() {
-
 
40589
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
-
 
40590
    }
-
 
40591
 
-
 
40592
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
-
 
40593
    public boolean isSetTransferLotId() {
-
 
40594
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
-
 
40595
    }
-
 
40596
 
-
 
40597
    public void setTransferLotIdIsSet(boolean value) {
-
 
40598
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
-
 
40599
    }
-
 
40600
 
-
 
40601
    /**
-
 
40602
     * 
-
 
40603
     * @see ScanType
-
 
40604
     */
-
 
40605
    public ScanType getScanType() {
-
 
40606
      return this.scanType;
-
 
40607
    }
-
 
40608
 
-
 
40609
    /**
-
 
40610
     * 
-
 
40611
     * @see ScanType
-
 
40612
     */
-
 
40613
    public void setScanType(ScanType scanType) {
-
 
40614
      this.scanType = scanType;
-
 
40615
    }
-
 
40616
 
-
 
40617
    public void unsetScanType() {
-
 
40618
      this.scanType = null;
-
 
40619
    }
-
 
40620
 
-
 
40621
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
-
 
40622
    public boolean isSetScanType() {
-
 
40623
      return this.scanType != null;
-
 
40624
    }
-
 
40625
 
-
 
40626
    public void setScanTypeIsSet(boolean value) {
-
 
40627
      if (!value) {
-
 
40628
        this.scanType = null;
-
 
40629
      }
-
 
40630
    }
-
 
40631
 
-
 
40632
    public void setFieldValue(_Fields field, Object value) {
-
 
40633
      switch (field) {
-
 
40634
      case TRANSFER_LOT_ID:
-
 
40635
        if (value == null) {
-
 
40636
          unsetTransferLotId();
-
 
40637
        } else {
-
 
40638
          setTransferLotId((Long)value);
-
 
40639
        }
-
 
40640
        break;
-
 
40641
 
-
 
40642
      case SCAN_TYPE:
-
 
40643
        if (value == null) {
-
 
40644
          unsetScanType();
-
 
40645
        } else {
-
 
40646
          setScanType((ScanType)value);
-
 
40647
        }
-
 
40648
        break;
-
 
40649
 
-
 
40650
      }
-
 
40651
    }
-
 
40652
 
-
 
40653
    public Object getFieldValue(_Fields field) {
-
 
40654
      switch (field) {
-
 
40655
      case TRANSFER_LOT_ID:
-
 
40656
        return Long.valueOf(getTransferLotId());
-
 
40657
 
-
 
40658
      case SCAN_TYPE:
-
 
40659
        return getScanType();
-
 
40660
 
-
 
40661
      }
-
 
40662
      throw new IllegalStateException();
-
 
40663
    }
-
 
40664
 
-
 
40665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40666
    public boolean isSet(_Fields field) {
-
 
40667
      if (field == null) {
-
 
40668
        throw new IllegalArgumentException();
-
 
40669
      }
-
 
40670
 
-
 
40671
      switch (field) {
-
 
40672
      case TRANSFER_LOT_ID:
-
 
40673
        return isSetTransferLotId();
-
 
40674
      case SCAN_TYPE:
-
 
40675
        return isSetScanType();
-
 
40676
      }
-
 
40677
      throw new IllegalStateException();
-
 
40678
    }
-
 
40679
 
-
 
40680
    @Override
-
 
40681
    public boolean equals(Object that) {
-
 
40682
      if (that == null)
-
 
40683
        return false;
-
 
40684
      if (that instanceof getTransferLotItemsForMarkReceive_args)
-
 
40685
        return this.equals((getTransferLotItemsForMarkReceive_args)that);
-
 
40686
      return false;
-
 
40687
    }
-
 
40688
 
-
 
40689
    public boolean equals(getTransferLotItemsForMarkReceive_args that) {
-
 
40690
      if (that == null)
-
 
40691
        return false;
-
 
40692
 
-
 
40693
      boolean this_present_transferLotId = true;
-
 
40694
      boolean that_present_transferLotId = true;
-
 
40695
      if (this_present_transferLotId || that_present_transferLotId) {
-
 
40696
        if (!(this_present_transferLotId && that_present_transferLotId))
-
 
40697
          return false;
-
 
40698
        if (this.transferLotId != that.transferLotId)
-
 
40699
          return false;
-
 
40700
      }
-
 
40701
 
-
 
40702
      boolean this_present_scanType = true && this.isSetScanType();
-
 
40703
      boolean that_present_scanType = true && that.isSetScanType();
-
 
40704
      if (this_present_scanType || that_present_scanType) {
-
 
40705
        if (!(this_present_scanType && that_present_scanType))
-
 
40706
          return false;
-
 
40707
        if (!this.scanType.equals(that.scanType))
-
 
40708
          return false;
-
 
40709
      }
-
 
40710
 
-
 
40711
      return true;
-
 
40712
    }
-
 
40713
 
-
 
40714
    @Override
-
 
40715
    public int hashCode() {
-
 
40716
      return 0;
-
 
40717
    }
-
 
40718
 
-
 
40719
    public int compareTo(getTransferLotItemsForMarkReceive_args other) {
-
 
40720
      if (!getClass().equals(other.getClass())) {
-
 
40721
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40722
      }
-
 
40723
 
-
 
40724
      int lastComparison = 0;
-
 
40725
      getTransferLotItemsForMarkReceive_args typedOther = (getTransferLotItemsForMarkReceive_args)other;
-
 
40726
 
-
 
40727
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
-
 
40728
      if (lastComparison != 0) {
-
 
40729
        return lastComparison;
-
 
40730
      }
-
 
40731
      if (isSetTransferLotId()) {
-
 
40732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
-
 
40733
        if (lastComparison != 0) {
-
 
40734
          return lastComparison;
-
 
40735
        }
-
 
40736
      }
-
 
40737
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
-
 
40738
      if (lastComparison != 0) {
-
 
40739
        return lastComparison;
-
 
40740
      }
-
 
40741
      if (isSetScanType()) {
-
 
40742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
-
 
40743
        if (lastComparison != 0) {
-
 
40744
          return lastComparison;
-
 
40745
        }
-
 
40746
      }
-
 
40747
      return 0;
-
 
40748
    }
-
 
40749
 
-
 
40750
    public _Fields fieldForId(int fieldId) {
-
 
40751
      return _Fields.findByThriftId(fieldId);
-
 
40752
    }
-
 
40753
 
-
 
40754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40755
      org.apache.thrift.protocol.TField field;
-
 
40756
      iprot.readStructBegin();
-
 
40757
      while (true)
-
 
40758
      {
-
 
40759
        field = iprot.readFieldBegin();
-
 
40760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40761
          break;
-
 
40762
        }
-
 
40763
        switch (field.id) {
-
 
40764
          case 1: // TRANSFER_LOT_ID
-
 
40765
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
40766
              this.transferLotId = iprot.readI64();
-
 
40767
              setTransferLotIdIsSet(true);
-
 
40768
            } else { 
-
 
40769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40770
            }
-
 
40771
            break;
-
 
40772
          case 2: // SCAN_TYPE
-
 
40773
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
40774
              this.scanType = ScanType.findByValue(iprot.readI32());
-
 
40775
            } else { 
-
 
40776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40777
            }
-
 
40778
            break;
-
 
40779
          default:
-
 
40780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40781
        }
-
 
40782
        iprot.readFieldEnd();
-
 
40783
      }
-
 
40784
      iprot.readStructEnd();
-
 
40785
      validate();
-
 
40786
    }
-
 
40787
 
-
 
40788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40789
      validate();
-
 
40790
 
-
 
40791
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40792
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
-
 
40793
      oprot.writeI64(this.transferLotId);
-
 
40794
      oprot.writeFieldEnd();
-
 
40795
      if (this.scanType != null) {
-
 
40796
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
-
 
40797
        oprot.writeI32(this.scanType.getValue());
-
 
40798
        oprot.writeFieldEnd();
-
 
40799
      }
-
 
40800
      oprot.writeFieldStop();
-
 
40801
      oprot.writeStructEnd();
-
 
40802
    }
-
 
40803
 
-
 
40804
    @Override
-
 
40805
    public String toString() {
-
 
40806
      StringBuilder sb = new StringBuilder("getTransferLotItemsForMarkReceive_args(");
-
 
40807
      boolean first = true;
-
 
40808
 
-
 
40809
      sb.append("transferLotId:");
-
 
40810
      sb.append(this.transferLotId);
-
 
40811
      first = false;
-
 
40812
      if (!first) sb.append(", ");
-
 
40813
      sb.append("scanType:");
-
 
40814
      if (this.scanType == null) {
-
 
40815
        sb.append("null");
-
 
40816
      } else {
-
 
40817
        sb.append(this.scanType);
-
 
40818
      }
-
 
40819
      first = false;
-
 
40820
      sb.append(")");
-
 
40821
      return sb.toString();
-
 
40822
    }
-
 
40823
 
-
 
40824
    public void validate() throws org.apache.thrift.TException {
-
 
40825
      // check for required fields
-
 
40826
    }
-
 
40827
 
-
 
40828
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40829
      try {
-
 
40830
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40831
      } catch (org.apache.thrift.TException te) {
-
 
40832
        throw new java.io.IOException(te);
-
 
40833
      }
-
 
40834
    }
-
 
40835
 
-
 
40836
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40837
      try {
-
 
40838
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
40839
        __isset_bit_vector = new BitSet(1);
-
 
40840
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40841
      } catch (org.apache.thrift.TException te) {
-
 
40842
        throw new java.io.IOException(te);
-
 
40843
      }
-
 
40844
    }
-
 
40845
 
-
 
40846
  }
-
 
40847
 
-
 
40848
  public static class getTransferLotItemsForMarkReceive_result implements org.apache.thrift.TBase<getTransferLotItemsForMarkReceive_result, getTransferLotItemsForMarkReceive_result._Fields>, java.io.Serializable, Cloneable   {
-
 
40849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotItemsForMarkReceive_result");
-
 
40850
 
-
 
40851
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
40852
    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);
-
 
40853
 
-
 
40854
    private List<InventoryItem> success; // required
-
 
40855
    private WarehouseServiceException wex; // required
-
 
40856
 
-
 
40857
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40858
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40859
      SUCCESS((short)0, "success"),
-
 
40860
      WEX((short)1, "wex");
-
 
40861
 
-
 
40862
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40863
 
-
 
40864
      static {
-
 
40865
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40866
          byName.put(field.getFieldName(), field);
-
 
40867
        }
-
 
40868
      }
-
 
40869
 
-
 
40870
      /**
-
 
40871
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
40872
       */
-
 
40873
      public static _Fields findByThriftId(int fieldId) {
-
 
40874
        switch(fieldId) {
-
 
40875
          case 0: // SUCCESS
-
 
40876
            return SUCCESS;
-
 
40877
          case 1: // WEX
-
 
40878
            return WEX;
-
 
40879
          default:
-
 
40880
            return null;
-
 
40881
        }
-
 
40882
      }
-
 
40883
 
-
 
40884
      /**
-
 
40885
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
40886
       * if it is not found.
-
 
40887
       */
-
 
40888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
40889
        _Fields fields = findByThriftId(fieldId);
-
 
40890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
40891
        return fields;
-
 
40892
      }
-
 
40893
 
-
 
40894
      /**
-
 
40895
       * Find the _Fields constant that matches name, or null if its not found.
-
 
40896
       */
-
 
40897
      public static _Fields findByName(String name) {
-
 
40898
        return byName.get(name);
-
 
40899
      }
-
 
40900
 
-
 
40901
      private final short _thriftId;
-
 
40902
      private final String _fieldName;
-
 
40903
 
-
 
40904
      _Fields(short thriftId, String fieldName) {
-
 
40905
        _thriftId = thriftId;
-
 
40906
        _fieldName = fieldName;
-
 
40907
      }
-
 
40908
 
-
 
40909
      public short getThriftFieldId() {
-
 
40910
        return _thriftId;
-
 
40911
      }
-
 
40912
 
-
 
40913
      public String getFieldName() {
-
 
40914
        return _fieldName;
-
 
40915
      }
-
 
40916
    }
-
 
40917
 
-
 
40918
    // isset id assignments
-
 
40919
 
-
 
40920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40921
    static {
-
 
40922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40923
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40924
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
40925
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
40926
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40927
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
40928
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40929
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotItemsForMarkReceive_result.class, metaDataMap);
-
 
40930
    }
-
 
40931
 
-
 
40932
    public getTransferLotItemsForMarkReceive_result() {
-
 
40933
    }
-
 
40934
 
-
 
40935
    public getTransferLotItemsForMarkReceive_result(
-
 
40936
      List<InventoryItem> success,
-
 
40937
      WarehouseServiceException wex)
-
 
40938
    {
-
 
40939
      this();
-
 
40940
      this.success = success;
-
 
40941
      this.wex = wex;
-
 
40942
    }
-
 
40943
 
-
 
40944
    /**
-
 
40945
     * Performs a deep copy on <i>other</i>.
-
 
40946
     */
-
 
40947
    public getTransferLotItemsForMarkReceive_result(getTransferLotItemsForMarkReceive_result other) {
-
 
40948
      if (other.isSetSuccess()) {
-
 
40949
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
-
 
40950
        for (InventoryItem other_element : other.success) {
-
 
40951
          __this__success.add(new InventoryItem(other_element));
-
 
40952
        }
-
 
40953
        this.success = __this__success;
-
 
40954
      }
-
 
40955
      if (other.isSetWex()) {
-
 
40956
        this.wex = new WarehouseServiceException(other.wex);
-
 
40957
      }
-
 
40958
    }
-
 
40959
 
-
 
40960
    public getTransferLotItemsForMarkReceive_result deepCopy() {
-
 
40961
      return new getTransferLotItemsForMarkReceive_result(this);
-
 
40962
    }
-
 
40963
 
-
 
40964
    @Override
-
 
40965
    public void clear() {
-
 
40966
      this.success = null;
-
 
40967
      this.wex = null;
-
 
40968
    }
-
 
40969
 
-
 
40970
    public int getSuccessSize() {
-
 
40971
      return (this.success == null) ? 0 : this.success.size();
-
 
40972
    }
-
 
40973
 
-
 
40974
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
-
 
40975
      return (this.success == null) ? null : this.success.iterator();
-
 
40976
    }
-
 
40977
 
-
 
40978
    public void addToSuccess(InventoryItem elem) {
-
 
40979
      if (this.success == null) {
-
 
40980
        this.success = new ArrayList<InventoryItem>();
-
 
40981
      }
-
 
40982
      this.success.add(elem);
-
 
40983
    }
-
 
40984
 
-
 
40985
    public List<InventoryItem> getSuccess() {
-
 
40986
      return this.success;
-
 
40987
    }
-
 
40988
 
-
 
40989
    public void setSuccess(List<InventoryItem> success) {
-
 
40990
      this.success = success;
-
 
40991
    }
-
 
40992
 
-
 
40993
    public void unsetSuccess() {
-
 
40994
      this.success = null;
-
 
40995
    }
-
 
40996
 
-
 
40997
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
40998
    public boolean isSetSuccess() {
-
 
40999
      return this.success != null;
-
 
41000
    }
-
 
41001
 
-
 
41002
    public void setSuccessIsSet(boolean value) {
-
 
41003
      if (!value) {
-
 
41004
        this.success = null;
-
 
41005
      }
-
 
41006
    }
-
 
41007
 
-
 
41008
    public WarehouseServiceException getWex() {
-
 
41009
      return this.wex;
-
 
41010
    }
-
 
41011
 
-
 
41012
    public void setWex(WarehouseServiceException wex) {
-
 
41013
      this.wex = wex;
-
 
41014
    }
-
 
41015
 
-
 
41016
    public void unsetWex() {
-
 
41017
      this.wex = null;
-
 
41018
    }
-
 
41019
 
-
 
41020
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
41021
    public boolean isSetWex() {
-
 
41022
      return this.wex != null;
-
 
41023
    }
-
 
41024
 
-
 
41025
    public void setWexIsSet(boolean value) {
-
 
41026
      if (!value) {
-
 
41027
        this.wex = null;
-
 
41028
      }
-
 
41029
    }
-
 
41030
 
-
 
41031
    public void setFieldValue(_Fields field, Object value) {
-
 
41032
      switch (field) {
-
 
41033
      case SUCCESS:
-
 
41034
        if (value == null) {
-
 
41035
          unsetSuccess();
-
 
41036
        } else {
-
 
41037
          setSuccess((List<InventoryItem>)value);
-
 
41038
        }
-
 
41039
        break;
-
 
41040
 
-
 
41041
      case WEX:
-
 
41042
        if (value == null) {
-
 
41043
          unsetWex();
-
 
41044
        } else {
-
 
41045
          setWex((WarehouseServiceException)value);
-
 
41046
        }
-
 
41047
        break;
-
 
41048
 
-
 
41049
      }
-
 
41050
    }
-
 
41051
 
-
 
41052
    public Object getFieldValue(_Fields field) {
-
 
41053
      switch (field) {
-
 
41054
      case SUCCESS:
-
 
41055
        return getSuccess();
-
 
41056
 
-
 
41057
      case WEX:
-
 
41058
        return getWex();
-
 
41059
 
-
 
41060
      }
-
 
41061
      throw new IllegalStateException();
-
 
41062
    }
-
 
41063
 
-
 
41064
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
41065
    public boolean isSet(_Fields field) {
-
 
41066
      if (field == null) {
-
 
41067
        throw new IllegalArgumentException();
-
 
41068
      }
-
 
41069
 
-
 
41070
      switch (field) {
-
 
41071
      case SUCCESS:
-
 
41072
        return isSetSuccess();
-
 
41073
      case WEX:
-
 
41074
        return isSetWex();
-
 
41075
      }
-
 
41076
      throw new IllegalStateException();
-
 
41077
    }
-
 
41078
 
-
 
41079
    @Override
-
 
41080
    public boolean equals(Object that) {
-
 
41081
      if (that == null)
-
 
41082
        return false;
-
 
41083
      if (that instanceof getTransferLotItemsForMarkReceive_result)
-
 
41084
        return this.equals((getTransferLotItemsForMarkReceive_result)that);
-
 
41085
      return false;
-
 
41086
    }
-
 
41087
 
-
 
41088
    public boolean equals(getTransferLotItemsForMarkReceive_result that) {
-
 
41089
      if (that == null)
-
 
41090
        return false;
-
 
41091
 
-
 
41092
      boolean this_present_success = true && this.isSetSuccess();
-
 
41093
      boolean that_present_success = true && that.isSetSuccess();
-
 
41094
      if (this_present_success || that_present_success) {
-
 
41095
        if (!(this_present_success && that_present_success))
-
 
41096
          return false;
-
 
41097
        if (!this.success.equals(that.success))
-
 
41098
          return false;
-
 
41099
      }
-
 
41100
 
-
 
41101
      boolean this_present_wex = true && this.isSetWex();
-
 
41102
      boolean that_present_wex = true && that.isSetWex();
-
 
41103
      if (this_present_wex || that_present_wex) {
-
 
41104
        if (!(this_present_wex && that_present_wex))
-
 
41105
          return false;
-
 
41106
        if (!this.wex.equals(that.wex))
-
 
41107
          return false;
-
 
41108
      }
-
 
41109
 
-
 
41110
      return true;
-
 
41111
    }
-
 
41112
 
-
 
41113
    @Override
-
 
41114
    public int hashCode() {
-
 
41115
      return 0;
-
 
41116
    }
-
 
41117
 
-
 
41118
    public int compareTo(getTransferLotItemsForMarkReceive_result other) {
-
 
41119
      if (!getClass().equals(other.getClass())) {
-
 
41120
        return getClass().getName().compareTo(other.getClass().getName());
-
 
41121
      }
-
 
41122
 
-
 
41123
      int lastComparison = 0;
-
 
41124
      getTransferLotItemsForMarkReceive_result typedOther = (getTransferLotItemsForMarkReceive_result)other;
-
 
41125
 
-
 
41126
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
41127
      if (lastComparison != 0) {
-
 
41128
        return lastComparison;
-
 
41129
      }
-
 
41130
      if (isSetSuccess()) {
-
 
41131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
41132
        if (lastComparison != 0) {
-
 
41133
          return lastComparison;
-
 
41134
        }
-
 
41135
      }
-
 
41136
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
41137
      if (lastComparison != 0) {
-
 
41138
        return lastComparison;
-
 
41139
      }
-
 
41140
      if (isSetWex()) {
-
 
41141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
41142
        if (lastComparison != 0) {
-
 
41143
          return lastComparison;
-
 
41144
        }
-
 
41145
      }
-
 
41146
      return 0;
-
 
41147
    }
-
 
41148
 
-
 
41149
    public _Fields fieldForId(int fieldId) {
-
 
41150
      return _Fields.findByThriftId(fieldId);
-
 
41151
    }
-
 
41152
 
-
 
41153
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
41154
      org.apache.thrift.protocol.TField field;
-
 
41155
      iprot.readStructBegin();
-
 
41156
      while (true)
-
 
41157
      {
-
 
41158
        field = iprot.readFieldBegin();
-
 
41159
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
41160
          break;
-
 
41161
        }
-
 
41162
        switch (field.id) {
-
 
41163
          case 0: // SUCCESS
-
 
41164
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
41165
              {
-
 
41166
                org.apache.thrift.protocol.TList _list109 = iprot.readListBegin();
-
 
41167
                this.success = new ArrayList<InventoryItem>(_list109.size);
-
 
41168
                for (int _i110 = 0; _i110 < _list109.size; ++_i110)
-
 
41169
                {
-
 
41170
                  InventoryItem _elem111; // required
-
 
41171
                  _elem111 = new InventoryItem();
-
 
41172
                  _elem111.read(iprot);
-
 
41173
                  this.success.add(_elem111);
-
 
41174
                }
-
 
41175
                iprot.readListEnd();
-
 
41176
              }
-
 
41177
            } else { 
-
 
41178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41179
            }
-
 
41180
            break;
-
 
41181
          case 1: // WEX
-
 
41182
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
41183
              this.wex = new WarehouseServiceException();
-
 
41184
              this.wex.read(iprot);
-
 
41185
            } else { 
-
 
41186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41187
            }
-
 
41188
            break;
-
 
41189
          default:
-
 
41190
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41191
        }
-
 
41192
        iprot.readFieldEnd();
-
 
41193
      }
-
 
41194
      iprot.readStructEnd();
-
 
41195
      validate();
-
 
41196
    }
-
 
41197
 
-
 
41198
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
41199
      oprot.writeStructBegin(STRUCT_DESC);
-
 
41200
 
-
 
41201
      if (this.isSetSuccess()) {
-
 
41202
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
41203
        {
-
 
41204
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
41205
          for (InventoryItem _iter112 : this.success)
-
 
41206
          {
-
 
41207
            _iter112.write(oprot);
-
 
41208
          }
-
 
41209
          oprot.writeListEnd();
-
 
41210
        }
-
 
41211
        oprot.writeFieldEnd();
-
 
41212
      } else if (this.isSetWex()) {
-
 
41213
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
41214
        this.wex.write(oprot);
-
 
41215
        oprot.writeFieldEnd();
-
 
41216
      }
-
 
41217
      oprot.writeFieldStop();
-
 
41218
      oprot.writeStructEnd();
-
 
41219
    }
-
 
41220
 
-
 
41221
    @Override
-
 
41222
    public String toString() {
-
 
41223
      StringBuilder sb = new StringBuilder("getTransferLotItemsForMarkReceive_result(");
-
 
41224
      boolean first = true;
-
 
41225
 
-
 
41226
      sb.append("success:");
-
 
41227
      if (this.success == null) {
-
 
41228
        sb.append("null");
-
 
41229
      } else {
-
 
41230
        sb.append(this.success);
-
 
41231
      }
-
 
41232
      first = false;
-
 
41233
      if (!first) sb.append(", ");
-
 
41234
      sb.append("wex:");
-
 
41235
      if (this.wex == null) {
-
 
41236
        sb.append("null");
-
 
41237
      } else {
-
 
41238
        sb.append(this.wex);
-
 
41239
      }
-
 
41240
      first = false;
-
 
41241
      sb.append(")");
-
 
41242
      return sb.toString();
-
 
41243
    }
-
 
41244
 
-
 
41245
    public void validate() throws org.apache.thrift.TException {
-
 
41246
      // check for required fields
-
 
41247
    }
-
 
41248
 
-
 
41249
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
41250
      try {
-
 
41251
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
41252
      } catch (org.apache.thrift.TException te) {
-
 
41253
        throw new java.io.IOException(te);
-
 
41254
      }
-
 
41255
    }
-
 
41256
 
-
 
41257
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
41258
      try {
-
 
41259
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
41260
      } catch (org.apache.thrift.TException te) {
-
 
41261
        throw new java.io.IOException(te);
-
 
41262
      }
-
 
41263
    }
-
 
41264
 
-
 
41265
  }
-
 
41266
 
-
 
41267
  public static class markItemsAsReceivedForTransferLotPartial_args implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLotPartial_args, markItemsAsReceivedForTransferLotPartial_args._Fields>, java.io.Serializable, Cloneable   {
-
 
41268
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLotPartial_args");
-
 
41269
 
-
 
41270
    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);
-
 
41271
    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)2);
-
 
41272
 
-
 
41273
    private List<InventoryItem> inventoryItems; // required
-
 
41274
    private long transferLotId; // required
-
 
41275
 
-
 
41276
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
41277
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
41278
      INVENTORY_ITEMS((short)1, "inventoryItems"),
-
 
41279
      TRANSFER_LOT_ID((short)2, "transferLotId");
-
 
41280
 
-
 
41281
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
41282
 
-
 
41283
      static {
-
 
41284
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
41285
          byName.put(field.getFieldName(), field);
-
 
41286
        }
-
 
41287
      }
-
 
41288
 
-
 
41289
      /**
-
 
41290
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
41291
       */
-
 
41292
      public static _Fields findByThriftId(int fieldId) {
-
 
41293
        switch(fieldId) {
-
 
41294
          case 1: // INVENTORY_ITEMS
-
 
41295
            return INVENTORY_ITEMS;
-
 
41296
          case 2: // TRANSFER_LOT_ID
-
 
41297
            return TRANSFER_LOT_ID;
-
 
41298
          default:
-
 
41299
            return null;
-
 
41300
        }
-
 
41301
      }
-
 
41302
 
-
 
41303
      /**
-
 
41304
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
41305
       * if it is not found.
-
 
41306
       */
-
 
41307
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
41308
        _Fields fields = findByThriftId(fieldId);
-
 
41309
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
41310
        return fields;
-
 
41311
      }
-
 
41312
 
-
 
41313
      /**
-
 
41314
       * Find the _Fields constant that matches name, or null if its not found.
-
 
41315
       */
-
 
41316
      public static _Fields findByName(String name) {
-
 
41317
        return byName.get(name);
-
 
41318
      }
-
 
41319
 
-
 
41320
      private final short _thriftId;
-
 
41321
      private final String _fieldName;
-
 
41322
 
-
 
41323
      _Fields(short thriftId, String fieldName) {
-
 
41324
        _thriftId = thriftId;
-
 
41325
        _fieldName = fieldName;
-
 
41326
      }
-
 
41327
 
-
 
41328
      public short getThriftFieldId() {
-
 
41329
        return _thriftId;
-
 
41330
      }
-
 
41331
 
-
 
41332
      public String getFieldName() {
-
 
41333
        return _fieldName;
-
 
41334
      }
-
 
41335
    }
-
 
41336
 
-
 
41337
    // isset id assignments
-
 
41338
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
-
 
41339
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
41340
 
-
 
41341
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
41342
    static {
-
 
41343
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
41344
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
41345
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
41346
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
41347
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
41348
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
41349
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
41350
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLotPartial_args.class, metaDataMap);
-
 
41351
    }
-
 
41352
 
-
 
41353
    public markItemsAsReceivedForTransferLotPartial_args() {
-
 
41354
    }
-
 
41355
 
-
 
41356
    public markItemsAsReceivedForTransferLotPartial_args(
-
 
41357
      List<InventoryItem> inventoryItems,
-
 
41358
      long transferLotId)
-
 
41359
    {
-
 
41360
      this();
-
 
41361
      this.inventoryItems = inventoryItems;
-
 
41362
      this.transferLotId = transferLotId;
-
 
41363
      setTransferLotIdIsSet(true);
-
 
41364
    }
-
 
41365
 
-
 
41366
    /**
-
 
41367
     * Performs a deep copy on <i>other</i>.
-
 
41368
     */
-
 
41369
    public markItemsAsReceivedForTransferLotPartial_args(markItemsAsReceivedForTransferLotPartial_args other) {
-
 
41370
      __isset_bit_vector.clear();
-
 
41371
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
41372
      if (other.isSetInventoryItems()) {
-
 
41373
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
-
 
41374
        for (InventoryItem other_element : other.inventoryItems) {
-
 
41375
          __this__inventoryItems.add(new InventoryItem(other_element));
-
 
41376
        }
-
 
41377
        this.inventoryItems = __this__inventoryItems;
-
 
41378
      }
-
 
41379
      this.transferLotId = other.transferLotId;
-
 
41380
    }
-
 
41381
 
-
 
41382
    public markItemsAsReceivedForTransferLotPartial_args deepCopy() {
-
 
41383
      return new markItemsAsReceivedForTransferLotPartial_args(this);
-
 
41384
    }
-
 
41385
 
-
 
41386
    @Override
-
 
41387
    public void clear() {
-
 
41388
      this.inventoryItems = null;
-
 
41389
      setTransferLotIdIsSet(false);
-
 
41390
      this.transferLotId = 0;
-
 
41391
    }
-
 
41392
 
-
 
41393
    public int getInventoryItemsSize() {
-
 
41394
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
-
 
41395
    }
-
 
41396
 
-
 
41397
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
-
 
41398
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
-
 
41399
    }
-
 
41400
 
-
 
41401
    public void addToInventoryItems(InventoryItem elem) {
-
 
41402
      if (this.inventoryItems == null) {
-
 
41403
        this.inventoryItems = new ArrayList<InventoryItem>();
-
 
41404
      }
-
 
41405
      this.inventoryItems.add(elem);
-
 
41406
    }
-
 
41407
 
-
 
41408
    public List<InventoryItem> getInventoryItems() {
-
 
41409
      return this.inventoryItems;
-
 
41410
    }
-
 
41411
 
-
 
41412
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
-
 
41413
      this.inventoryItems = inventoryItems;
-
 
41414
    }
-
 
41415
 
-
 
41416
    public void unsetInventoryItems() {
-
 
41417
      this.inventoryItems = null;
-
 
41418
    }
-
 
41419
 
-
 
41420
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
-
 
41421
    public boolean isSetInventoryItems() {
-
 
41422
      return this.inventoryItems != null;
-
 
41423
    }
-
 
41424
 
-
 
41425
    public void setInventoryItemsIsSet(boolean value) {
-
 
41426
      if (!value) {
-
 
41427
        this.inventoryItems = null;
-
 
41428
      }
-
 
41429
    }
-
 
41430
 
-
 
41431
    public long getTransferLotId() {
-
 
41432
      return this.transferLotId;
-
 
41433
    }
-
 
41434
 
-
 
41435
    public void setTransferLotId(long transferLotId) {
-
 
41436
      this.transferLotId = transferLotId;
-
 
41437
      setTransferLotIdIsSet(true);
-
 
41438
    }
-
 
41439
 
-
 
41440
    public void unsetTransferLotId() {
-
 
41441
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
-
 
41442
    }
-
 
41443
 
-
 
41444
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
-
 
41445
    public boolean isSetTransferLotId() {
-
 
41446
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
-
 
41447
    }
-
 
41448
 
-
 
41449
    public void setTransferLotIdIsSet(boolean value) {
-
 
41450
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
-
 
41451
    }
-
 
41452
 
-
 
41453
    public void setFieldValue(_Fields field, Object value) {
-
 
41454
      switch (field) {
-
 
41455
      case INVENTORY_ITEMS:
-
 
41456
        if (value == null) {
-
 
41457
          unsetInventoryItems();
-
 
41458
        } else {
-
 
41459
          setInventoryItems((List<InventoryItem>)value);
-
 
41460
        }
-
 
41461
        break;
-
 
41462
 
-
 
41463
      case TRANSFER_LOT_ID:
-
 
41464
        if (value == null) {
-
 
41465
          unsetTransferLotId();
-
 
41466
        } else {
-
 
41467
          setTransferLotId((Long)value);
-
 
41468
        }
-
 
41469
        break;
-
 
41470
 
-
 
41471
      }
-
 
41472
    }
-
 
41473
 
-
 
41474
    public Object getFieldValue(_Fields field) {
-
 
41475
      switch (field) {
-
 
41476
      case INVENTORY_ITEMS:
-
 
41477
        return getInventoryItems();
-
 
41478
 
-
 
41479
      case TRANSFER_LOT_ID:
-
 
41480
        return Long.valueOf(getTransferLotId());
-
 
41481
 
-
 
41482
      }
-
 
41483
      throw new IllegalStateException();
-
 
41484
    }
-
 
41485
 
-
 
41486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
41487
    public boolean isSet(_Fields field) {
-
 
41488
      if (field == null) {
-
 
41489
        throw new IllegalArgumentException();
-
 
41490
      }
-
 
41491
 
-
 
41492
      switch (field) {
-
 
41493
      case INVENTORY_ITEMS:
-
 
41494
        return isSetInventoryItems();
-
 
41495
      case TRANSFER_LOT_ID:
-
 
41496
        return isSetTransferLotId();
-
 
41497
      }
-
 
41498
      throw new IllegalStateException();
-
 
41499
    }
-
 
41500
 
-
 
41501
    @Override
-
 
41502
    public boolean equals(Object that) {
-
 
41503
      if (that == null)
-
 
41504
        return false;
-
 
41505
      if (that instanceof markItemsAsReceivedForTransferLotPartial_args)
-
 
41506
        return this.equals((markItemsAsReceivedForTransferLotPartial_args)that);
-
 
41507
      return false;
-
 
41508
    }
-
 
41509
 
-
 
41510
    public boolean equals(markItemsAsReceivedForTransferLotPartial_args that) {
-
 
41511
      if (that == null)
-
 
41512
        return false;
-
 
41513
 
-
 
41514
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
-
 
41515
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
-
 
41516
      if (this_present_inventoryItems || that_present_inventoryItems) {
-
 
41517
        if (!(this_present_inventoryItems && that_present_inventoryItems))
-
 
41518
          return false;
-
 
41519
        if (!this.inventoryItems.equals(that.inventoryItems))
-
 
41520
          return false;
-
 
41521
      }
-
 
41522
 
-
 
41523
      boolean this_present_transferLotId = true;
-
 
41524
      boolean that_present_transferLotId = true;
-
 
41525
      if (this_present_transferLotId || that_present_transferLotId) {
-
 
41526
        if (!(this_present_transferLotId && that_present_transferLotId))
-
 
41527
          return false;
-
 
41528
        if (this.transferLotId != that.transferLotId)
-
 
41529
          return false;
-
 
41530
      }
-
 
41531
 
-
 
41532
      return true;
-
 
41533
    }
-
 
41534
 
-
 
41535
    @Override
-
 
41536
    public int hashCode() {
-
 
41537
      return 0;
-
 
41538
    }
-
 
41539
 
-
 
41540
    public int compareTo(markItemsAsReceivedForTransferLotPartial_args other) {
-
 
41541
      if (!getClass().equals(other.getClass())) {
-
 
41542
        return getClass().getName().compareTo(other.getClass().getName());
-
 
41543
      }
-
 
41544
 
-
 
41545
      int lastComparison = 0;
-
 
41546
      markItemsAsReceivedForTransferLotPartial_args typedOther = (markItemsAsReceivedForTransferLotPartial_args)other;
-
 
41547
 
-
 
41548
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
-
 
41549
      if (lastComparison != 0) {
-
 
41550
        return lastComparison;
-
 
41551
      }
-
 
41552
      if (isSetInventoryItems()) {
-
 
41553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
-
 
41554
        if (lastComparison != 0) {
-
 
41555
          return lastComparison;
-
 
41556
        }
-
 
41557
      }
-
 
41558
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
-
 
41559
      if (lastComparison != 0) {
-
 
41560
        return lastComparison;
-
 
41561
      }
-
 
41562
      if (isSetTransferLotId()) {
-
 
41563
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
-
 
41564
        if (lastComparison != 0) {
-
 
41565
          return lastComparison;
-
 
41566
        }
-
 
41567
      }
-
 
41568
      return 0;
-
 
41569
    }
-
 
41570
 
-
 
41571
    public _Fields fieldForId(int fieldId) {
-
 
41572
      return _Fields.findByThriftId(fieldId);
-
 
41573
    }
-
 
41574
 
-
 
41575
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
41576
      org.apache.thrift.protocol.TField field;
-
 
41577
      iprot.readStructBegin();
-
 
41578
      while (true)
-
 
41579
      {
-
 
41580
        field = iprot.readFieldBegin();
-
 
41581
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
41582
          break;
-
 
41583
        }
-
 
41584
        switch (field.id) {
-
 
41585
          case 1: // INVENTORY_ITEMS
-
 
41586
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
41587
              {
-
 
41588
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
-
 
41589
                this.inventoryItems = new ArrayList<InventoryItem>(_list113.size);
-
 
41590
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
-
 
41591
                {
-
 
41592
                  InventoryItem _elem115; // required
-
 
41593
                  _elem115 = new InventoryItem();
-
 
41594
                  _elem115.read(iprot);
-
 
41595
                  this.inventoryItems.add(_elem115);
-
 
41596
                }
-
 
41597
                iprot.readListEnd();
-
 
41598
              }
-
 
41599
            } else { 
-
 
41600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41601
            }
-
 
41602
            break;
-
 
41603
          case 2: // TRANSFER_LOT_ID
-
 
41604
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
41605
              this.transferLotId = iprot.readI64();
-
 
41606
              setTransferLotIdIsSet(true);
-
 
41607
            } else { 
-
 
41608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41609
            }
-
 
41610
            break;
-
 
41611
          default:
-
 
41612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41613
        }
-
 
41614
        iprot.readFieldEnd();
-
 
41615
      }
-
 
41616
      iprot.readStructEnd();
-
 
41617
      validate();
-
 
41618
    }
-
 
41619
 
-
 
41620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
41621
      validate();
-
 
41622
 
-
 
41623
      oprot.writeStructBegin(STRUCT_DESC);
-
 
41624
      if (this.inventoryItems != null) {
-
 
41625
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
-
 
41626
        {
-
 
41627
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
-
 
41628
          for (InventoryItem _iter116 : this.inventoryItems)
-
 
41629
          {
-
 
41630
            _iter116.write(oprot);
-
 
41631
          }
-
 
41632
          oprot.writeListEnd();
-
 
41633
        }
-
 
41634
        oprot.writeFieldEnd();
-
 
41635
      }
-
 
41636
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
-
 
41637
      oprot.writeI64(this.transferLotId);
-
 
41638
      oprot.writeFieldEnd();
-
 
41639
      oprot.writeFieldStop();
-
 
41640
      oprot.writeStructEnd();
-
 
41641
    }
-
 
41642
 
-
 
41643
    @Override
-
 
41644
    public String toString() {
-
 
41645
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLotPartial_args(");
-
 
41646
      boolean first = true;
-
 
41647
 
-
 
41648
      sb.append("inventoryItems:");
-
 
41649
      if (this.inventoryItems == null) {
-
 
41650
        sb.append("null");
-
 
41651
      } else {
-
 
41652
        sb.append(this.inventoryItems);
-
 
41653
      }
-
 
41654
      first = false;
-
 
41655
      if (!first) sb.append(", ");
-
 
41656
      sb.append("transferLotId:");
-
 
41657
      sb.append(this.transferLotId);
-
 
41658
      first = false;
-
 
41659
      sb.append(")");
-
 
41660
      return sb.toString();
-
 
41661
    }
-
 
41662
 
-
 
41663
    public void validate() throws org.apache.thrift.TException {
-
 
41664
      // check for required fields
-
 
41665
    }
-
 
41666
 
-
 
41667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
41668
      try {
-
 
41669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
41670
      } catch (org.apache.thrift.TException te) {
-
 
41671
        throw new java.io.IOException(te);
-
 
41672
      }
-
 
41673
    }
-
 
41674
 
-
 
41675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
41676
      try {
-
 
41677
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
41678
        __isset_bit_vector = new BitSet(1);
-
 
41679
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
41680
      } catch (org.apache.thrift.TException te) {
-
 
41681
        throw new java.io.IOException(te);
-
 
41682
      }
-
 
41683
    }
-
 
41684
 
-
 
41685
  }
-
 
41686
 
-
 
41687
  public static class markItemsAsReceivedForTransferLotPartial_result implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLotPartial_result, markItemsAsReceivedForTransferLotPartial_result._Fields>, java.io.Serializable, Cloneable   {
-
 
41688
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLotPartial_result");
-
 
41689
 
-
 
41690
    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);
-
 
41691
 
-
 
41692
    private WarehouseServiceException wex; // required
-
 
41693
 
-
 
41694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
41695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
41696
      WEX((short)1, "wex");
-
 
41697
 
-
 
41698
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
41699
 
-
 
41700
      static {
-
 
41701
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
41702
          byName.put(field.getFieldName(), field);
-
 
41703
        }
-
 
41704
      }
-
 
41705
 
-
 
41706
      /**
-
 
41707
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
41708
       */
-
 
41709
      public static _Fields findByThriftId(int fieldId) {
-
 
41710
        switch(fieldId) {
-
 
41711
          case 1: // WEX
-
 
41712
            return WEX;
-
 
41713
          default:
-
 
41714
            return null;
-
 
41715
        }
-
 
41716
      }
-
 
41717
 
-
 
41718
      /**
-
 
41719
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
41720
       * if it is not found.
-
 
41721
       */
-
 
41722
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
41723
        _Fields fields = findByThriftId(fieldId);
-
 
41724
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
41725
        return fields;
-
 
41726
      }
-
 
41727
 
-
 
41728
      /**
-
 
41729
       * Find the _Fields constant that matches name, or null if its not found.
-
 
41730
       */
-
 
41731
      public static _Fields findByName(String name) {
-
 
41732
        return byName.get(name);
-
 
41733
      }
-
 
41734
 
-
 
41735
      private final short _thriftId;
-
 
41736
      private final String _fieldName;
-
 
41737
 
-
 
41738
      _Fields(short thriftId, String fieldName) {
-
 
41739
        _thriftId = thriftId;
-
 
41740
        _fieldName = fieldName;
-
 
41741
      }
-
 
41742
 
-
 
41743
      public short getThriftFieldId() {
-
 
41744
        return _thriftId;
-
 
41745
      }
-
 
41746
 
-
 
41747
      public String getFieldName() {
-
 
41748
        return _fieldName;
-
 
41749
      }
-
 
41750
    }
-
 
41751
 
-
 
41752
    // isset id assignments
-
 
41753
 
-
 
41754
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
41755
    static {
-
 
41756
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
41757
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
41758
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
41759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
41760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLotPartial_result.class, metaDataMap);
-
 
41761
    }
-
 
41762
 
-
 
41763
    public markItemsAsReceivedForTransferLotPartial_result() {
-
 
41764
    }
-
 
41765
 
-
 
41766
    public markItemsAsReceivedForTransferLotPartial_result(
-
 
41767
      WarehouseServiceException wex)
-
 
41768
    {
-
 
41769
      this();
-
 
41770
      this.wex = wex;
-
 
41771
    }
-
 
41772
 
-
 
41773
    /**
-
 
41774
     * Performs a deep copy on <i>other</i>.
-
 
41775
     */
-
 
41776
    public markItemsAsReceivedForTransferLotPartial_result(markItemsAsReceivedForTransferLotPartial_result other) {
-
 
41777
      if (other.isSetWex()) {
-
 
41778
        this.wex = new WarehouseServiceException(other.wex);
-
 
41779
      }
-
 
41780
    }
-
 
41781
 
-
 
41782
    public markItemsAsReceivedForTransferLotPartial_result deepCopy() {
-
 
41783
      return new markItemsAsReceivedForTransferLotPartial_result(this);
-
 
41784
    }
-
 
41785
 
-
 
41786
    @Override
-
 
41787
    public void clear() {
-
 
41788
      this.wex = null;
-
 
41789
    }
-
 
41790
 
-
 
41791
    public WarehouseServiceException getWex() {
-
 
41792
      return this.wex;
-
 
41793
    }
-
 
41794
 
-
 
41795
    public void setWex(WarehouseServiceException wex) {
-
 
41796
      this.wex = wex;
-
 
41797
    }
-
 
41798
 
-
 
41799
    public void unsetWex() {
-
 
41800
      this.wex = null;
-
 
41801
    }
-
 
41802
 
-
 
41803
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
41804
    public boolean isSetWex() {
-
 
41805
      return this.wex != null;
-
 
41806
    }
-
 
41807
 
-
 
41808
    public void setWexIsSet(boolean value) {
-
 
41809
      if (!value) {
-
 
41810
        this.wex = null;
-
 
41811
      }
-
 
41812
    }
-
 
41813
 
-
 
41814
    public void setFieldValue(_Fields field, Object value) {
-
 
41815
      switch (field) {
-
 
41816
      case WEX:
-
 
41817
        if (value == null) {
-
 
41818
          unsetWex();
-
 
41819
        } else {
-
 
41820
          setWex((WarehouseServiceException)value);
-
 
41821
        }
-
 
41822
        break;
-
 
41823
 
-
 
41824
      }
-
 
41825
    }
-
 
41826
 
-
 
41827
    public Object getFieldValue(_Fields field) {
-
 
41828
      switch (field) {
-
 
41829
      case WEX:
-
 
41830
        return getWex();
-
 
41831
 
-
 
41832
      }
-
 
41833
      throw new IllegalStateException();
-
 
41834
    }
-
 
41835
 
-
 
41836
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
41837
    public boolean isSet(_Fields field) {
-
 
41838
      if (field == null) {
-
 
41839
        throw new IllegalArgumentException();
-
 
41840
      }
-
 
41841
 
-
 
41842
      switch (field) {
-
 
41843
      case WEX:
-
 
41844
        return isSetWex();
-
 
41845
      }
-
 
41846
      throw new IllegalStateException();
-
 
41847
    }
-
 
41848
 
-
 
41849
    @Override
-
 
41850
    public boolean equals(Object that) {
-
 
41851
      if (that == null)
-
 
41852
        return false;
-
 
41853
      if (that instanceof markItemsAsReceivedForTransferLotPartial_result)
-
 
41854
        return this.equals((markItemsAsReceivedForTransferLotPartial_result)that);
-
 
41855
      return false;
-
 
41856
    }
-
 
41857
 
-
 
41858
    public boolean equals(markItemsAsReceivedForTransferLotPartial_result that) {
-
 
41859
      if (that == null)
-
 
41860
        return false;
-
 
41861
 
-
 
41862
      boolean this_present_wex = true && this.isSetWex();
-
 
41863
      boolean that_present_wex = true && that.isSetWex();
-
 
41864
      if (this_present_wex || that_present_wex) {
-
 
41865
        if (!(this_present_wex && that_present_wex))
-
 
41866
          return false;
-
 
41867
        if (!this.wex.equals(that.wex))
-
 
41868
          return false;
-
 
41869
      }
-
 
41870
 
-
 
41871
      return true;
-
 
41872
    }
-
 
41873
 
-
 
41874
    @Override
-
 
41875
    public int hashCode() {
-
 
41876
      return 0;
-
 
41877
    }
-
 
41878
 
-
 
41879
    public int compareTo(markItemsAsReceivedForTransferLotPartial_result other) {
-
 
41880
      if (!getClass().equals(other.getClass())) {
-
 
41881
        return getClass().getName().compareTo(other.getClass().getName());
-
 
41882
      }
-
 
41883
 
-
 
41884
      int lastComparison = 0;
-
 
41885
      markItemsAsReceivedForTransferLotPartial_result typedOther = (markItemsAsReceivedForTransferLotPartial_result)other;
-
 
41886
 
-
 
41887
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
41888
      if (lastComparison != 0) {
-
 
41889
        return lastComparison;
-
 
41890
      }
-
 
41891
      if (isSetWex()) {
-
 
41892
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
41893
        if (lastComparison != 0) {
-
 
41894
          return lastComparison;
-
 
41895
        }
-
 
41896
      }
-
 
41897
      return 0;
-
 
41898
    }
-
 
41899
 
-
 
41900
    public _Fields fieldForId(int fieldId) {
-
 
41901
      return _Fields.findByThriftId(fieldId);
-
 
41902
    }
-
 
41903
 
-
 
41904
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
41905
      org.apache.thrift.protocol.TField field;
-
 
41906
      iprot.readStructBegin();
-
 
41907
      while (true)
-
 
41908
      {
-
 
41909
        field = iprot.readFieldBegin();
-
 
41910
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
41911
          break;
-
 
41912
        }
-
 
41913
        switch (field.id) {
-
 
41914
          case 1: // WEX
-
 
41915
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
41916
              this.wex = new WarehouseServiceException();
-
 
41917
              this.wex.read(iprot);
-
 
41918
            } else { 
-
 
41919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41920
            }
-
 
41921
            break;
-
 
41922
          default:
-
 
41923
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41924
        }
-
 
41925
        iprot.readFieldEnd();
-
 
41926
      }
-
 
41927
      iprot.readStructEnd();
-
 
41928
      validate();
-
 
41929
    }
-
 
41930
 
-
 
41931
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
41932
      oprot.writeStructBegin(STRUCT_DESC);
-
 
41933
 
-
 
41934
      if (this.isSetWex()) {
-
 
41935
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
41936
        this.wex.write(oprot);
-
 
41937
        oprot.writeFieldEnd();
-
 
41938
      }
-
 
41939
      oprot.writeFieldStop();
-
 
41940
      oprot.writeStructEnd();
-
 
41941
    }
-
 
41942
 
-
 
41943
    @Override
-
 
41944
    public String toString() {
-
 
41945
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLotPartial_result(");
-
 
41946
      boolean first = true;
-
 
41947
 
-
 
41948
      sb.append("wex:");
-
 
41949
      if (this.wex == null) {
-
 
41950
        sb.append("null");
-
 
41951
      } else {
-
 
41952
        sb.append(this.wex);
-
 
41953
      }
-
 
41954
      first = false;
-
 
41955
      sb.append(")");
-
 
41956
      return sb.toString();
-
 
41957
    }
-
 
41958
 
-
 
41959
    public void validate() throws org.apache.thrift.TException {
-
 
41960
      // check for required fields
-
 
41961
    }
-
 
41962
 
-
 
41963
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
41964
      try {
-
 
41965
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
41966
      } catch (org.apache.thrift.TException te) {
-
 
41967
        throw new java.io.IOException(te);
-
 
41968
      }
-
 
41969
    }
-
 
41970
 
-
 
41971
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
41972
      try {
-
 
41973
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
41974
      } catch (org.apache.thrift.TException te) {
-
 
41975
        throw new java.io.IOException(te);
-
 
41976
      }
-
 
41977
    }
-
 
41978
 
-
 
41979
  }
-
 
41980
 
-
 
41981
  public static class markTransferLotAsReceivedPartial_args implements org.apache.thrift.TBase<markTransferLotAsReceivedPartial_args, markTransferLotAsReceivedPartial_args._Fields>, java.io.Serializable, Cloneable   {
-
 
41982
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceivedPartial_args");
-
 
41983
 
-
 
41984
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
41985
    private static final org.apache.thrift.protocol.TField REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("remoteTransferRefNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
41986
 
-
 
41987
    private long id; // required
-
 
41988
    private String remoteTransferRefNumber; // required
-
 
41989
 
-
 
41990
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
41991
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
41992
      ID((short)1, "id"),
-
 
41993
      REMOTE_TRANSFER_REF_NUMBER((short)2, "remoteTransferRefNumber");
-
 
41994
 
-
 
41995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
41996
 
-
 
41997
      static {
-
 
41998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
41999
          byName.put(field.getFieldName(), field);
-
 
42000
        }
-
 
42001
      }
-
 
42002
 
-
 
42003
      /**
-
 
42004
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
42005
       */
-
 
42006
      public static _Fields findByThriftId(int fieldId) {
-
 
42007
        switch(fieldId) {
-
 
42008
          case 1: // ID
-
 
42009
            return ID;
-
 
42010
          case 2: // REMOTE_TRANSFER_REF_NUMBER
-
 
42011
            return REMOTE_TRANSFER_REF_NUMBER;
-
 
42012
          default:
-
 
42013
            return null;
-
 
42014
        }
-
 
42015
      }
-
 
42016
 
-
 
42017
      /**
-
 
42018
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
42019
       * if it is not found.
-
 
42020
       */
-
 
42021
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
42022
        _Fields fields = findByThriftId(fieldId);
-
 
42023
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
42024
        return fields;
-
 
42025
      }
-
 
42026
 
-
 
42027
      /**
-
 
42028
       * Find the _Fields constant that matches name, or null if its not found.
-
 
42029
       */
-
 
42030
      public static _Fields findByName(String name) {
-
 
42031
        return byName.get(name);
-
 
42032
      }
-
 
42033
 
-
 
42034
      private final short _thriftId;
-
 
42035
      private final String _fieldName;
-
 
42036
 
-
 
42037
      _Fields(short thriftId, String fieldName) {
-
 
42038
        _thriftId = thriftId;
-
 
42039
        _fieldName = fieldName;
-
 
42040
      }
-
 
42041
 
-
 
42042
      public short getThriftFieldId() {
-
 
42043
        return _thriftId;
-
 
42044
      }
-
 
42045
 
-
 
42046
      public String getFieldName() {
-
 
42047
        return _fieldName;
-
 
42048
      }
-
 
42049
    }
-
 
42050
 
-
 
42051
    // isset id assignments
-
 
42052
    private static final int __ID_ISSET_ID = 0;
-
 
42053
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
42054
 
-
 
42055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
42056
    static {
-
 
42057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
42058
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
42060
      tmpMap.put(_Fields.REMOTE_TRANSFER_REF_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("remoteTransferRefNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42061
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
42062
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
42063
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceivedPartial_args.class, metaDataMap);
-
 
42064
    }
-
 
42065
 
-
 
42066
    public markTransferLotAsReceivedPartial_args() {
-
 
42067
    }
-
 
42068
 
-
 
42069
    public markTransferLotAsReceivedPartial_args(
-
 
42070
      long id,
-
 
42071
      String remoteTransferRefNumber)
-
 
42072
    {
-
 
42073
      this();
-
 
42074
      this.id = id;
-
 
42075
      setIdIsSet(true);
-
 
42076
      this.remoteTransferRefNumber = remoteTransferRefNumber;
-
 
42077
    }
-
 
42078
 
-
 
42079
    /**
-
 
42080
     * Performs a deep copy on <i>other</i>.
-
 
42081
     */
-
 
42082
    public markTransferLotAsReceivedPartial_args(markTransferLotAsReceivedPartial_args other) {
-
 
42083
      __isset_bit_vector.clear();
-
 
42084
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
42085
      this.id = other.id;
-
 
42086
      if (other.isSetRemoteTransferRefNumber()) {
-
 
42087
        this.remoteTransferRefNumber = other.remoteTransferRefNumber;
-
 
42088
      }
-
 
42089
    }
-
 
42090
 
-
 
42091
    public markTransferLotAsReceivedPartial_args deepCopy() {
-
 
42092
      return new markTransferLotAsReceivedPartial_args(this);
-
 
42093
    }
-
 
42094
 
-
 
42095
    @Override
-
 
42096
    public void clear() {
-
 
42097
      setIdIsSet(false);
-
 
42098
      this.id = 0;
-
 
42099
      this.remoteTransferRefNumber = null;
-
 
42100
    }
-
 
42101
 
-
 
42102
    public long getId() {
-
 
42103
      return this.id;
-
 
42104
    }
-
 
42105
 
-
 
42106
    public void setId(long id) {
-
 
42107
      this.id = id;
-
 
42108
      setIdIsSet(true);
-
 
42109
    }
-
 
42110
 
-
 
42111
    public void unsetId() {
-
 
42112
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
42113
    }
-
 
42114
 
-
 
42115
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
42116
    public boolean isSetId() {
-
 
42117
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
42118
    }
-
 
42119
 
-
 
42120
    public void setIdIsSet(boolean value) {
-
 
42121
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
42122
    }
-
 
42123
 
-
 
42124
    public String getRemoteTransferRefNumber() {
-
 
42125
      return this.remoteTransferRefNumber;
-
 
42126
    }
-
 
42127
 
-
 
42128
    public void setRemoteTransferRefNumber(String remoteTransferRefNumber) {
-
 
42129
      this.remoteTransferRefNumber = remoteTransferRefNumber;
-
 
42130
    }
-
 
42131
 
-
 
42132
    public void unsetRemoteTransferRefNumber() {
-
 
42133
      this.remoteTransferRefNumber = null;
-
 
42134
    }
-
 
42135
 
-
 
42136
    /** Returns true if field remoteTransferRefNumber is set (has been assigned a value) and false otherwise */
-
 
42137
    public boolean isSetRemoteTransferRefNumber() {
-
 
42138
      return this.remoteTransferRefNumber != null;
-
 
42139
    }
-
 
42140
 
-
 
42141
    public void setRemoteTransferRefNumberIsSet(boolean value) {
-
 
42142
      if (!value) {
-
 
42143
        this.remoteTransferRefNumber = null;
-
 
42144
      }
-
 
42145
    }
-
 
42146
 
-
 
42147
    public void setFieldValue(_Fields field, Object value) {
-
 
42148
      switch (field) {
-
 
42149
      case ID:
-
 
42150
        if (value == null) {
-
 
42151
          unsetId();
-
 
42152
        } else {
-
 
42153
          setId((Long)value);
-
 
42154
        }
-
 
42155
        break;
-
 
42156
 
-
 
42157
      case REMOTE_TRANSFER_REF_NUMBER:
-
 
42158
        if (value == null) {
-
 
42159
          unsetRemoteTransferRefNumber();
-
 
42160
        } else {
-
 
42161
          setRemoteTransferRefNumber((String)value);
-
 
42162
        }
-
 
42163
        break;
-
 
42164
 
-
 
42165
      }
-
 
42166
    }
-
 
42167
 
-
 
42168
    public Object getFieldValue(_Fields field) {
-
 
42169
      switch (field) {
-
 
42170
      case ID:
-
 
42171
        return Long.valueOf(getId());
-
 
42172
 
-
 
42173
      case REMOTE_TRANSFER_REF_NUMBER:
-
 
42174
        return getRemoteTransferRefNumber();
-
 
42175
 
-
 
42176
      }
-
 
42177
      throw new IllegalStateException();
-
 
42178
    }
-
 
42179
 
-
 
42180
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
42181
    public boolean isSet(_Fields field) {
-
 
42182
      if (field == null) {
-
 
42183
        throw new IllegalArgumentException();
-
 
42184
      }
-
 
42185
 
-
 
42186
      switch (field) {
-
 
42187
      case ID:
-
 
42188
        return isSetId();
-
 
42189
      case REMOTE_TRANSFER_REF_NUMBER:
-
 
42190
        return isSetRemoteTransferRefNumber();
-
 
42191
      }
-
 
42192
      throw new IllegalStateException();
-
 
42193
    }
-
 
42194
 
-
 
42195
    @Override
-
 
42196
    public boolean equals(Object that) {
-
 
42197
      if (that == null)
-
 
42198
        return false;
-
 
42199
      if (that instanceof markTransferLotAsReceivedPartial_args)
-
 
42200
        return this.equals((markTransferLotAsReceivedPartial_args)that);
-
 
42201
      return false;
-
 
42202
    }
-
 
42203
 
-
 
42204
    public boolean equals(markTransferLotAsReceivedPartial_args that) {
-
 
42205
      if (that == null)
-
 
42206
        return false;
-
 
42207
 
-
 
42208
      boolean this_present_id = true;
-
 
42209
      boolean that_present_id = true;
-
 
42210
      if (this_present_id || that_present_id) {
-
 
42211
        if (!(this_present_id && that_present_id))
-
 
42212
          return false;
-
 
42213
        if (this.id != that.id)
-
 
42214
          return false;
-
 
42215
      }
-
 
42216
 
-
 
42217
      boolean this_present_remoteTransferRefNumber = true && this.isSetRemoteTransferRefNumber();
-
 
42218
      boolean that_present_remoteTransferRefNumber = true && that.isSetRemoteTransferRefNumber();
-
 
42219
      if (this_present_remoteTransferRefNumber || that_present_remoteTransferRefNumber) {
-
 
42220
        if (!(this_present_remoteTransferRefNumber && that_present_remoteTransferRefNumber))
-
 
42221
          return false;
-
 
42222
        if (!this.remoteTransferRefNumber.equals(that.remoteTransferRefNumber))
-
 
42223
          return false;
-
 
42224
      }
-
 
42225
 
-
 
42226
      return true;
-
 
42227
    }
-
 
42228
 
-
 
42229
    @Override
-
 
42230
    public int hashCode() {
-
 
42231
      return 0;
-
 
42232
    }
-
 
42233
 
-
 
42234
    public int compareTo(markTransferLotAsReceivedPartial_args other) {
-
 
42235
      if (!getClass().equals(other.getClass())) {
-
 
42236
        return getClass().getName().compareTo(other.getClass().getName());
-
 
42237
      }
-
 
42238
 
-
 
42239
      int lastComparison = 0;
-
 
42240
      markTransferLotAsReceivedPartial_args typedOther = (markTransferLotAsReceivedPartial_args)other;
-
 
42241
 
-
 
42242
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
42243
      if (lastComparison != 0) {
-
 
42244
        return lastComparison;
-
 
42245
      }
-
 
42246
      if (isSetId()) {
-
 
42247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
42248
        if (lastComparison != 0) {
-
 
42249
          return lastComparison;
-
 
42250
        }
-
 
42251
      }
-
 
42252
      lastComparison = Boolean.valueOf(isSetRemoteTransferRefNumber()).compareTo(typedOther.isSetRemoteTransferRefNumber());
-
 
42253
      if (lastComparison != 0) {
-
 
42254
        return lastComparison;
-
 
42255
      }
-
 
42256
      if (isSetRemoteTransferRefNumber()) {
-
 
42257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remoteTransferRefNumber, typedOther.remoteTransferRefNumber);
-
 
42258
        if (lastComparison != 0) {
-
 
42259
          return lastComparison;
-
 
42260
        }
-
 
42261
      }
-
 
42262
      return 0;
-
 
42263
    }
-
 
42264
 
-
 
42265
    public _Fields fieldForId(int fieldId) {
-
 
42266
      return _Fields.findByThriftId(fieldId);
-
 
42267
    }
-
 
42268
 
-
 
42269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
42270
      org.apache.thrift.protocol.TField field;
-
 
42271
      iprot.readStructBegin();
-
 
42272
      while (true)
-
 
42273
      {
-
 
42274
        field = iprot.readFieldBegin();
-
 
42275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
42276
          break;
-
 
42277
        }
-
 
42278
        switch (field.id) {
-
 
42279
          case 1: // ID
-
 
42280
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
42281
              this.id = iprot.readI64();
-
 
42282
              setIdIsSet(true);
-
 
42283
            } else { 
-
 
42284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42285
            }
-
 
42286
            break;
-
 
42287
          case 2: // REMOTE_TRANSFER_REF_NUMBER
-
 
42288
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
42289
              this.remoteTransferRefNumber = iprot.readString();
-
 
42290
            } else { 
-
 
42291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42292
            }
-
 
42293
            break;
-
 
42294
          default:
-
 
42295
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42296
        }
-
 
42297
        iprot.readFieldEnd();
-
 
42298
      }
-
 
42299
      iprot.readStructEnd();
-
 
42300
      validate();
-
 
42301
    }
-
 
42302
 
-
 
42303
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
42304
      validate();
-
 
42305
 
-
 
42306
      oprot.writeStructBegin(STRUCT_DESC);
-
 
42307
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
42308
      oprot.writeI64(this.id);
-
 
42309
      oprot.writeFieldEnd();
-
 
42310
      if (this.remoteTransferRefNumber != null) {
-
 
42311
        oprot.writeFieldBegin(REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC);
-
 
42312
        oprot.writeString(this.remoteTransferRefNumber);
-
 
42313
        oprot.writeFieldEnd();
-
 
42314
      }
-
 
42315
      oprot.writeFieldStop();
-
 
42316
      oprot.writeStructEnd();
-
 
42317
    }
-
 
42318
 
-
 
42319
    @Override
-
 
42320
    public String toString() {
-
 
42321
      StringBuilder sb = new StringBuilder("markTransferLotAsReceivedPartial_args(");
-
 
42322
      boolean first = true;
-
 
42323
 
-
 
42324
      sb.append("id:");
-
 
42325
      sb.append(this.id);
-
 
42326
      first = false;
-
 
42327
      if (!first) sb.append(", ");
-
 
42328
      sb.append("remoteTransferRefNumber:");
-
 
42329
      if (this.remoteTransferRefNumber == null) {
-
 
42330
        sb.append("null");
-
 
42331
      } else {
-
 
42332
        sb.append(this.remoteTransferRefNumber);
-
 
42333
      }
-
 
42334
      first = false;
-
 
42335
      sb.append(")");
-
 
42336
      return sb.toString();
-
 
42337
    }
-
 
42338
 
-
 
42339
    public void validate() throws org.apache.thrift.TException {
-
 
42340
      // check for required fields
-
 
42341
    }
-
 
42342
 
-
 
42343
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
42344
      try {
-
 
42345
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
42346
      } catch (org.apache.thrift.TException te) {
-
 
42347
        throw new java.io.IOException(te);
-
 
42348
      }
-
 
42349
    }
-
 
42350
 
-
 
42351
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
42352
      try {
-
 
42353
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
42354
        __isset_bit_vector = new BitSet(1);
-
 
42355
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
42356
      } catch (org.apache.thrift.TException te) {
-
 
42357
        throw new java.io.IOException(te);
-
 
42358
      }
-
 
42359
    }
-
 
42360
 
-
 
42361
  }
-
 
42362
 
-
 
42363
  public static class markTransferLotAsReceivedPartial_result implements org.apache.thrift.TBase<markTransferLotAsReceivedPartial_result, markTransferLotAsReceivedPartial_result._Fields>, java.io.Serializable, Cloneable   {
-
 
42364
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceivedPartial_result");
-
 
42365
 
-
 
42366
    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);
-
 
42367
 
-
 
42368
    private WarehouseServiceException wex; // required
-
 
42369
 
-
 
42370
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
42371
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
42372
      WEX((short)1, "wex");
-
 
42373
 
-
 
42374
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
42375
 
-
 
42376
      static {
-
 
42377
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
42378
          byName.put(field.getFieldName(), field);
-
 
42379
        }
-
 
42380
      }
-
 
42381
 
-
 
42382
      /**
-
 
42383
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
42384
       */
-
 
42385
      public static _Fields findByThriftId(int fieldId) {
-
 
42386
        switch(fieldId) {
-
 
42387
          case 1: // WEX
-
 
42388
            return WEX;
-
 
42389
          default:
-
 
42390
            return null;
-
 
42391
        }
-
 
42392
      }
-
 
42393
 
-
 
42394
      /**
-
 
42395
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
42396
       * if it is not found.
-
 
42397
       */
-
 
42398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
42399
        _Fields fields = findByThriftId(fieldId);
-
 
42400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
42401
        return fields;
-
 
42402
      }
-
 
42403
 
-
 
42404
      /**
-
 
42405
       * Find the _Fields constant that matches name, or null if its not found.
-
 
42406
       */
-
 
42407
      public static _Fields findByName(String name) {
-
 
42408
        return byName.get(name);
-
 
42409
      }
-
 
42410
 
-
 
42411
      private final short _thriftId;
-
 
42412
      private final String _fieldName;
-
 
42413
 
-
 
42414
      _Fields(short thriftId, String fieldName) {
-
 
42415
        _thriftId = thriftId;
-
 
42416
        _fieldName = fieldName;
-
 
42417
      }
-
 
42418
 
-
 
42419
      public short getThriftFieldId() {
-
 
42420
        return _thriftId;
-
 
42421
      }
-
 
42422
 
-
 
42423
      public String getFieldName() {
-
 
42424
        return _fieldName;
-
 
42425
      }
-
 
42426
    }
-
 
42427
 
-
 
42428
    // isset id assignments
-
 
42429
 
-
 
42430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
42431
    static {
-
 
42432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
42433
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42434
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
42435
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
42436
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceivedPartial_result.class, metaDataMap);
-
 
42437
    }
-
 
42438
 
-
 
42439
    public markTransferLotAsReceivedPartial_result() {
-
 
42440
    }
-
 
42441
 
-
 
42442
    public markTransferLotAsReceivedPartial_result(
-
 
42443
      WarehouseServiceException wex)
-
 
42444
    {
-
 
42445
      this();
-
 
42446
      this.wex = wex;
-
 
42447
    }
-
 
42448
 
-
 
42449
    /**
-
 
42450
     * Performs a deep copy on <i>other</i>.
-
 
42451
     */
-
 
42452
    public markTransferLotAsReceivedPartial_result(markTransferLotAsReceivedPartial_result other) {
-
 
42453
      if (other.isSetWex()) {
-
 
42454
        this.wex = new WarehouseServiceException(other.wex);
-
 
42455
      }
-
 
42456
    }
-
 
42457
 
-
 
42458
    public markTransferLotAsReceivedPartial_result deepCopy() {
-
 
42459
      return new markTransferLotAsReceivedPartial_result(this);
-
 
42460
    }
-
 
42461
 
-
 
42462
    @Override
-
 
42463
    public void clear() {
-
 
42464
      this.wex = null;
-
 
42465
    }
-
 
42466
 
-
 
42467
    public WarehouseServiceException getWex() {
-
 
42468
      return this.wex;
-
 
42469
    }
-
 
42470
 
-
 
42471
    public void setWex(WarehouseServiceException wex) {
-
 
42472
      this.wex = wex;
-
 
42473
    }
-
 
42474
 
-
 
42475
    public void unsetWex() {
-
 
42476
      this.wex = null;
-
 
42477
    }
-
 
42478
 
-
 
42479
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
42480
    public boolean isSetWex() {
-
 
42481
      return this.wex != null;
-
 
42482
    }
-
 
42483
 
-
 
42484
    public void setWexIsSet(boolean value) {
-
 
42485
      if (!value) {
-
 
42486
        this.wex = null;
-
 
42487
      }
-
 
42488
    }
-
 
42489
 
-
 
42490
    public void setFieldValue(_Fields field, Object value) {
-
 
42491
      switch (field) {
-
 
42492
      case WEX:
-
 
42493
        if (value == null) {
-
 
42494
          unsetWex();
-
 
42495
        } else {
-
 
42496
          setWex((WarehouseServiceException)value);
-
 
42497
        }
-
 
42498
        break;
-
 
42499
 
-
 
42500
      }
-
 
42501
    }
-
 
42502
 
-
 
42503
    public Object getFieldValue(_Fields field) {
-
 
42504
      switch (field) {
-
 
42505
      case WEX:
-
 
42506
        return getWex();
-
 
42507
 
-
 
42508
      }
-
 
42509
      throw new IllegalStateException();
-
 
42510
    }
-
 
42511
 
-
 
42512
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
42513
    public boolean isSet(_Fields field) {
-
 
42514
      if (field == null) {
-
 
42515
        throw new IllegalArgumentException();
-
 
42516
      }
-
 
42517
 
-
 
42518
      switch (field) {
-
 
42519
      case WEX:
-
 
42520
        return isSetWex();
-
 
42521
      }
-
 
42522
      throw new IllegalStateException();
-
 
42523
    }
-
 
42524
 
-
 
42525
    @Override
-
 
42526
    public boolean equals(Object that) {
-
 
42527
      if (that == null)
-
 
42528
        return false;
-
 
42529
      if (that instanceof markTransferLotAsReceivedPartial_result)
-
 
42530
        return this.equals((markTransferLotAsReceivedPartial_result)that);
-
 
42531
      return false;
-
 
42532
    }
-
 
42533
 
-
 
42534
    public boolean equals(markTransferLotAsReceivedPartial_result that) {
-
 
42535
      if (that == null)
-
 
42536
        return false;
-
 
42537
 
-
 
42538
      boolean this_present_wex = true && this.isSetWex();
-
 
42539
      boolean that_present_wex = true && that.isSetWex();
-
 
42540
      if (this_present_wex || that_present_wex) {
-
 
42541
        if (!(this_present_wex && that_present_wex))
-
 
42542
          return false;
-
 
42543
        if (!this.wex.equals(that.wex))
-
 
42544
          return false;
-
 
42545
      }
-
 
42546
 
-
 
42547
      return true;
-
 
42548
    }
-
 
42549
 
-
 
42550
    @Override
-
 
42551
    public int hashCode() {
-
 
42552
      return 0;
-
 
42553
    }
-
 
42554
 
-
 
42555
    public int compareTo(markTransferLotAsReceivedPartial_result other) {
-
 
42556
      if (!getClass().equals(other.getClass())) {
-
 
42557
        return getClass().getName().compareTo(other.getClass().getName());
-
 
42558
      }
-
 
42559
 
-
 
42560
      int lastComparison = 0;
-
 
42561
      markTransferLotAsReceivedPartial_result typedOther = (markTransferLotAsReceivedPartial_result)other;
-
 
42562
 
-
 
42563
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
42564
      if (lastComparison != 0) {
-
 
42565
        return lastComparison;
-
 
42566
      }
-
 
42567
      if (isSetWex()) {
-
 
42568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
42569
        if (lastComparison != 0) {
-
 
42570
          return lastComparison;
-
 
42571
        }
-
 
42572
      }
-
 
42573
      return 0;
-
 
42574
    }
-
 
42575
 
-
 
42576
    public _Fields fieldForId(int fieldId) {
-
 
42577
      return _Fields.findByThriftId(fieldId);
-
 
42578
    }
-
 
42579
 
-
 
42580
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
42581
      org.apache.thrift.protocol.TField field;
-
 
42582
      iprot.readStructBegin();
-
 
42583
      while (true)
-
 
42584
      {
-
 
42585
        field = iprot.readFieldBegin();
-
 
42586
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
42587
          break;
-
 
42588
        }
-
 
42589
        switch (field.id) {
-
 
42590
          case 1: // WEX
-
 
42591
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
42592
              this.wex = new WarehouseServiceException();
-
 
42593
              this.wex.read(iprot);
-
 
42594
            } else { 
-
 
42595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42596
            }
-
 
42597
            break;
-
 
42598
          default:
-
 
42599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42600
        }
-
 
42601
        iprot.readFieldEnd();
-
 
42602
      }
-
 
42603
      iprot.readStructEnd();
-
 
42604
      validate();
-
 
42605
    }
-
 
42606
 
-
 
42607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
42608
      oprot.writeStructBegin(STRUCT_DESC);
-
 
42609
 
-
 
42610
      if (this.isSetWex()) {
-
 
42611
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
42612
        this.wex.write(oprot);
-
 
42613
        oprot.writeFieldEnd();
-
 
42614
      }
-
 
42615
      oprot.writeFieldStop();
-
 
42616
      oprot.writeStructEnd();
-
 
42617
    }
-
 
42618
 
-
 
42619
    @Override
-
 
42620
    public String toString() {
-
 
42621
      StringBuilder sb = new StringBuilder("markTransferLotAsReceivedPartial_result(");
-
 
42622
      boolean first = true;
-
 
42623
 
-
 
42624
      sb.append("wex:");
-
 
42625
      if (this.wex == null) {
-
 
42626
        sb.append("null");
-
 
42627
      } else {
-
 
42628
        sb.append(this.wex);
40171
      }
42629
      }
40172
      first = false;
42630
      first = false;
40173
      sb.append(")");
42631
      sb.append(")");
40174
      return sb.toString();
42632
      return sb.toString();
40175
    }
42633
    }