Subversion Repositories SmartDukaan

Rev

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

Rev 10689 Rev 10864
Line 184... Line 184...
184
     * 
184
     * 
185
     * @param saleReturnItems
185
     * @param saleReturnItems
186
     * @param vendorId
186
     * @param vendorId
187
     * @param billingWarehouseId
187
     * @param billingWarehouseId
188
     */
188
     */
189
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
189
    public long scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
190
 
190
 
191
    /**
191
    /**
192
     * Inserts scans for lost Items and updates lastScanType in InventoryItems
192
     * Inserts scans for lost Items and updates lastScanType in InventoryItems
193
     * 
193
     * 
194
     * @param lostItems
194
     * @param lostItems
Line 346... Line 346...
346
 
346
 
347
    public List<AmazonTransferredSkuDetail> getAmazonTransferredSkuDetails(List<Long> itemIds) throws WarehouseServiceException, org.apache.thrift.TException;
347
    public List<AmazonTransferredSkuDetail> getAmazonTransferredSkuDetails(List<Long> itemIds) throws WarehouseServiceException, org.apache.thrift.TException;
348
 
348
 
349
    public List<Scan> getScansforPurchase(long purchaseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
349
    public List<Scan> getScansforPurchase(long purchaseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
350
 
350
 
-
 
351
    public long getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
352
 
-
 
353
    public long scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
354
 
-
 
355
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
356
 
351
  }
357
  }
352
 
358
 
353
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
359
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
354
 
360
 
355
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
361
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 466... Line 472...
466
 
472
 
467
    public void getAmazonTransferredSkuDetails(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonTransferredSkuDetails_call> resultHandler) throws org.apache.thrift.TException;
473
    public void getAmazonTransferredSkuDetails(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonTransferredSkuDetails_call> resultHandler) throws org.apache.thrift.TException;
468
 
474
 
469
    public void getScansforPurchase(long purchaseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansforPurchase_call> resultHandler) throws org.apache.thrift.TException;
475
    public void getScansforPurchase(long purchaseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansforPurchase_call> resultHandler) throws org.apache.thrift.TException;
470
 
476
 
-
 
477
    public void getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentBadQuantityForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
478
 
-
 
479
    public void scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
-
 
480
 
-
 
481
    public void getItemsInPurchaseReturn(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
-
 
482
 
471
  }
483
  }
472
 
484
 
473
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
485
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
474
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
486
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
475
      public Factory() {}
487
      public Factory() {}
Line 966... Line 978...
966
        return result.success;
978
        return result.success;
967
      }
979
      }
968
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
980
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
969
    }
981
    }
970
 
982
 
971
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
983
    public long scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
972
    {
984
    {
973
      send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId);
985
      send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId);
974
      recv_scanForPurchaseReturn();
986
      return recv_scanForPurchaseReturn();
975
    }
987
    }
976
 
988
 
977
    public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
989
    public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
978
    {
990
    {
979
      scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
991
      scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
Line 981... Line 993...
981
      args.setVendorId(vendorId);
993
      args.setVendorId(vendorId);
982
      args.setBillingWarehouseId(billingWarehouseId);
994
      args.setBillingWarehouseId(billingWarehouseId);
983
      sendBase("scanForPurchaseReturn", args);
995
      sendBase("scanForPurchaseReturn", args);
984
    }
996
    }
985
 
997
 
986
    public void recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
998
    public long recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
987
    {
999
    {
988
      scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
1000
      scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
989
      receiveBase(result, "scanForPurchaseReturn");
1001
      receiveBase(result, "scanForPurchaseReturn");
-
 
1002
      if (result.isSetSuccess()) {
-
 
1003
        return result.success;
-
 
1004
      }
990
      if (result.ex != null) {
1005
      if (result.ex != null) {
991
        throw result.ex;
1006
        throw result.ex;
992
      }
1007
      }
993
      return;
-
 
-
 
1008
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForPurchaseReturn failed: unknown result");
994
    }
1009
    }
995
 
1010
 
996
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
1011
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
997
    {
1012
    {
998
      send_scanForLostItem(lostItems, vendorId, billingWarehouseId);
1013
      send_scanForLostItem(lostItems, vendorId, billingWarehouseId);
Line 1950... Line 1965...
1950
        throw result.wex;
1965
        throw result.wex;
1951
      }
1966
      }
1952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
1967
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
1953
    }
1968
    }
1954
 
1969
 
-
 
1970
    public long getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1971
    {
-
 
1972
      send_getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId);
-
 
1973
      return recv_getCurrentBadQuantityForItem();
-
 
1974
    }
-
 
1975
 
-
 
1976
    public void send_getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId) throws org.apache.thrift.TException
-
 
1977
    {
-
 
1978
      getCurrentBadQuantityForItem_args args = new getCurrentBadQuantityForItem_args();
-
 
1979
      args.setItemId(itemId);
-
 
1980
      args.setCurrentWarehouseId(currentWarehouseId);
-
 
1981
      args.setPhysicalWarehouseId(physicalWarehouseId);
-
 
1982
      sendBase("getCurrentBadQuantityForItem", args);
-
 
1983
    }
-
 
1984
 
-
 
1985
    public long recv_getCurrentBadQuantityForItem() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1986
    {
-
 
1987
      getCurrentBadQuantityForItem_result result = new getCurrentBadQuantityForItem_result();
-
 
1988
      receiveBase(result, "getCurrentBadQuantityForItem");
-
 
1989
      if (result.isSetSuccess()) {
-
 
1990
        return result.success;
-
 
1991
      }
-
 
1992
      if (result.wex != null) {
-
 
1993
        throw result.wex;
-
 
1994
      }
-
 
1995
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentBadQuantityForItem failed: unknown result");
-
 
1996
    }
-
 
1997
 
-
 
1998
    public long scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1999
    {
-
 
2000
      send_scanForBadPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId);
-
 
2001
      return recv_scanForBadPurchaseReturn();
-
 
2002
    }
-
 
2003
 
-
 
2004
    public void send_scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
-
 
2005
    {
-
 
2006
      scanForBadPurchaseReturn_args args = new scanForBadPurchaseReturn_args();
-
 
2007
      args.setSaleReturnItems(saleReturnItems);
-
 
2008
      args.setVendorId(vendorId);
-
 
2009
      args.setBillingWarehouseId(billingWarehouseId);
-
 
2010
      sendBase("scanForBadPurchaseReturn", args);
-
 
2011
    }
-
 
2012
 
-
 
2013
    public long recv_scanForBadPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2014
    {
-
 
2015
      scanForBadPurchaseReturn_result result = new scanForBadPurchaseReturn_result();
-
 
2016
      receiveBase(result, "scanForBadPurchaseReturn");
-
 
2017
      if (result.isSetSuccess()) {
-
 
2018
        return result.success;
-
 
2019
      }
-
 
2020
      if (result.ex != null) {
-
 
2021
        throw result.ex;
-
 
2022
      }
-
 
2023
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
-
 
2024
    }
-
 
2025
 
-
 
2026
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2027
    {
-
 
2028
      send_getItemsInPurchaseReturn(purchaseReturnId);
-
 
2029
      return recv_getItemsInPurchaseReturn();
-
 
2030
    }
-
 
2031
 
-
 
2032
    public void send_getItemsInPurchaseReturn(long purchaseReturnId) throws org.apache.thrift.TException
-
 
2033
    {
-
 
2034
      getItemsInPurchaseReturn_args args = new getItemsInPurchaseReturn_args();
-
 
2035
      args.setPurchaseReturnId(purchaseReturnId);
-
 
2036
      sendBase("getItemsInPurchaseReturn", args);
-
 
2037
    }
-
 
2038
 
-
 
2039
    public Map<Long,Long> recv_getItemsInPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2040
    {
-
 
2041
      getItemsInPurchaseReturn_result result = new getItemsInPurchaseReturn_result();
-
 
2042
      receiveBase(result, "getItemsInPurchaseReturn");
-
 
2043
      if (result.isSetSuccess()) {
-
 
2044
        return result.success;
-
 
2045
      }
-
 
2046
      if (result.ex != null) {
-
 
2047
        throw result.ex;
-
 
2048
      }
-
 
2049
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
-
 
2050
    }
-
 
2051
 
1955
  }
2052
  }
1956
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2053
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1957
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2054
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1958
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2055
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1959
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2056
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2673... Line 2770...
2673
        args.setBillingWarehouseId(billingWarehouseId);
2770
        args.setBillingWarehouseId(billingWarehouseId);
2674
        args.write(prot);
2771
        args.write(prot);
2675
        prot.writeMessageEnd();
2772
        prot.writeMessageEnd();
2676
      }
2773
      }
2677
 
2774
 
2678
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2775
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2679
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2776
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2680
          throw new IllegalStateException("Method call not finished!");
2777
          throw new IllegalStateException("Method call not finished!");
2681
        }
2778
        }
2682
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2779
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2683
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2780
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2684
        (new Client(prot)).recv_scanForPurchaseReturn();
2781
        return (new Client(prot)).recv_scanForPurchaseReturn();
2685
      }
2782
      }
2686
    }
2783
    }
2687
 
2784
 
2688
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
2785
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
2689
      checkReady();
2786
      checkReady();
Line 4028... Line 4125...
4028
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4125
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4029
        return (new Client(prot)).recv_getScansforPurchase();
4126
        return (new Client(prot)).recv_getScansforPurchase();
4030
      }
4127
      }
4031
    }
4128
    }
4032
 
4129
 
-
 
4130
    public void getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCurrentBadQuantityForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4131
      checkReady();
-
 
4132
      getCurrentBadQuantityForItem_call method_call = new getCurrentBadQuantityForItem_call(itemId, currentWarehouseId, physicalWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4133
      this.___currentMethod = method_call;
-
 
4134
      ___manager.call(method_call);
-
 
4135
    }
-
 
4136
 
-
 
4137
    public static class getCurrentBadQuantityForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4138
      private long itemId;
-
 
4139
      private long currentWarehouseId;
-
 
4140
      private long physicalWarehouseId;
-
 
4141
      public getCurrentBadQuantityForItem_call(long itemId, long currentWarehouseId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCurrentBadQuantityForItem_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 {
-
 
4142
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4143
        this.itemId = itemId;
-
 
4144
        this.currentWarehouseId = currentWarehouseId;
-
 
4145
        this.physicalWarehouseId = physicalWarehouseId;
-
 
4146
      }
-
 
4147
 
-
 
4148
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4149
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentBadQuantityForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4150
        getCurrentBadQuantityForItem_args args = new getCurrentBadQuantityForItem_args();
-
 
4151
        args.setItemId(itemId);
-
 
4152
        args.setCurrentWarehouseId(currentWarehouseId);
-
 
4153
        args.setPhysicalWarehouseId(physicalWarehouseId);
-
 
4154
        args.write(prot);
-
 
4155
        prot.writeMessageEnd();
-
 
4156
      }
-
 
4157
 
-
 
4158
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4159
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4160
          throw new IllegalStateException("Method call not finished!");
-
 
4161
        }
-
 
4162
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4163
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4164
        return (new Client(prot)).recv_getCurrentBadQuantityForItem();
-
 
4165
      }
-
 
4166
    }
-
 
4167
 
-
 
4168
    public void scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForBadPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
-
 
4169
      checkReady();
-
 
4170
      scanForBadPurchaseReturn_call method_call = new scanForBadPurchaseReturn_call(saleReturnItems, vendorId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4171
      this.___currentMethod = method_call;
-
 
4172
      ___manager.call(method_call);
-
 
4173
    }
-
 
4174
 
-
 
4175
    public static class scanForBadPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4176
      private List<InventoryItem> saleReturnItems;
-
 
4177
      private long vendorId;
-
 
4178
      private long billingWarehouseId;
-
 
4179
      public scanForBadPurchaseReturn_call(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForBadPurchaseReturn_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 {
-
 
4180
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4181
        this.saleReturnItems = saleReturnItems;
-
 
4182
        this.vendorId = vendorId;
-
 
4183
        this.billingWarehouseId = billingWarehouseId;
-
 
4184
      }
-
 
4185
 
-
 
4186
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4187
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForBadPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4188
        scanForBadPurchaseReturn_args args = new scanForBadPurchaseReturn_args();
-
 
4189
        args.setSaleReturnItems(saleReturnItems);
-
 
4190
        args.setVendorId(vendorId);
-
 
4191
        args.setBillingWarehouseId(billingWarehouseId);
-
 
4192
        args.write(prot);
-
 
4193
        prot.writeMessageEnd();
-
 
4194
      }
-
 
4195
 
-
 
4196
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4197
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4198
          throw new IllegalStateException("Method call not finished!");
-
 
4199
        }
-
 
4200
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4201
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4202
        return (new Client(prot)).recv_scanForBadPurchaseReturn();
-
 
4203
      }
-
 
4204
    }
-
 
4205
 
-
 
4206
    public void getItemsInPurchaseReturn(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
-
 
4207
      checkReady();
-
 
4208
      getItemsInPurchaseReturn_call method_call = new getItemsInPurchaseReturn_call(purchaseReturnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4209
      this.___currentMethod = method_call;
-
 
4210
      ___manager.call(method_call);
-
 
4211
    }
-
 
4212
 
-
 
4213
    public static class getItemsInPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4214
      private long purchaseReturnId;
-
 
4215
      public getItemsInPurchaseReturn_call(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<getItemsInPurchaseReturn_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 {
-
 
4216
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4217
        this.purchaseReturnId = purchaseReturnId;
-
 
4218
      }
-
 
4219
 
-
 
4220
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4221
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsInPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4222
        getItemsInPurchaseReturn_args args = new getItemsInPurchaseReturn_args();
-
 
4223
        args.setPurchaseReturnId(purchaseReturnId);
-
 
4224
        args.write(prot);
-
 
4225
        prot.writeMessageEnd();
-
 
4226
      }
-
 
4227
 
-
 
4228
      public Map<Long,Long> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4229
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4230
          throw new IllegalStateException("Method call not finished!");
-
 
4231
        }
-
 
4232
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4233
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4234
        return (new Client(prot)).recv_getItemsInPurchaseReturn();
-
 
4235
      }
-
 
4236
    }
-
 
4237
 
4033
  }
4238
  }
4034
 
4239
 
4035
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4240
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4036
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4241
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4037
    public Processor(I iface) {
4242
    public Processor(I iface) {
Line 4099... Line 4304...
4099
      processMap.put("markItemsAsReceivedForTransferLotPartial", new markItemsAsReceivedForTransferLotPartial());
4304
      processMap.put("markItemsAsReceivedForTransferLotPartial", new markItemsAsReceivedForTransferLotPartial());
4100
      processMap.put("markTransferLotAsReceivedPartial", new markTransferLotAsReceivedPartial());
4305
      processMap.put("markTransferLotAsReceivedPartial", new markTransferLotAsReceivedPartial());
4101
      processMap.put("getInventoryItemScannedInForPO", new getInventoryItemScannedInForPO());
4306
      processMap.put("getInventoryItemScannedInForPO", new getInventoryItemScannedInForPO());
4102
      processMap.put("getAmazonTransferredSkuDetails", new getAmazonTransferredSkuDetails());
4307
      processMap.put("getAmazonTransferredSkuDetails", new getAmazonTransferredSkuDetails());
4103
      processMap.put("getScansforPurchase", new getScansforPurchase());
4308
      processMap.put("getScansforPurchase", new getScansforPurchase());
-
 
4309
      processMap.put("getCurrentBadQuantityForItem", new getCurrentBadQuantityForItem());
-
 
4310
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
-
 
4311
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4104
      return processMap;
4312
      return processMap;
4105
    }
4313
    }
4106
 
4314
 
4107
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4315
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4108
      public getInventoryItem() {
4316
      public getInventoryItem() {
Line 4454... Line 4662...
4454
      }
4662
      }
4455
 
4663
 
4456
      protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
4664
      protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
4457
        scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
4665
        scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
4458
        try {
4666
        try {
4459
          iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId);
4667
          result.success = iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId);
-
 
4668
          result.setSuccessIsSet(true);
4460
        } catch (WarehouseServiceException ex) {
4669
        } catch (WarehouseServiceException ex) {
4461
          result.ex = ex;
4670
          result.ex = ex;
4462
        }
4671
        }
4463
        return result;
4672
        return result;
4464
      }
4673
      }
Line 5170... Line 5379...
5170
        }
5379
        }
5171
        return result;
5380
        return result;
5172
      }
5381
      }
5173
    }
5382
    }
5174
 
5383
 
-
 
5384
    private static class getCurrentBadQuantityForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentBadQuantityForItem_args> {
-
 
5385
      public getCurrentBadQuantityForItem() {
-
 
5386
        super("getCurrentBadQuantityForItem");
-
 
5387
      }
-
 
5388
 
-
 
5389
      protected getCurrentBadQuantityForItem_args getEmptyArgsInstance() {
-
 
5390
        return new getCurrentBadQuantityForItem_args();
-
 
5391
      }
-
 
5392
 
-
 
5393
      protected getCurrentBadQuantityForItem_result getResult(I iface, getCurrentBadQuantityForItem_args args) throws org.apache.thrift.TException {
-
 
5394
        getCurrentBadQuantityForItem_result result = new getCurrentBadQuantityForItem_result();
-
 
5395
        try {
-
 
5396
          result.success = iface.getCurrentBadQuantityForItem(args.itemId, args.currentWarehouseId, args.physicalWarehouseId);
-
 
5397
          result.setSuccessIsSet(true);
-
 
5398
        } catch (WarehouseServiceException wex) {
-
 
5399
          result.wex = wex;
-
 
5400
        }
-
 
5401
        return result;
-
 
5402
      }
-
 
5403
    }
-
 
5404
 
-
 
5405
    private static class scanForBadPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForBadPurchaseReturn_args> {
-
 
5406
      public scanForBadPurchaseReturn() {
-
 
5407
        super("scanForBadPurchaseReturn");
-
 
5408
      }
-
 
5409
 
-
 
5410
      protected scanForBadPurchaseReturn_args getEmptyArgsInstance() {
-
 
5411
        return new scanForBadPurchaseReturn_args();
-
 
5412
      }
-
 
5413
 
-
 
5414
      protected scanForBadPurchaseReturn_result getResult(I iface, scanForBadPurchaseReturn_args args) throws org.apache.thrift.TException {
-
 
5415
        scanForBadPurchaseReturn_result result = new scanForBadPurchaseReturn_result();
-
 
5416
        try {
-
 
5417
          result.success = iface.scanForBadPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId);
-
 
5418
          result.setSuccessIsSet(true);
-
 
5419
        } catch (WarehouseServiceException ex) {
-
 
5420
          result.ex = ex;
-
 
5421
        }
-
 
5422
        return result;
-
 
5423
      }
-
 
5424
    }
-
 
5425
 
-
 
5426
    private static class getItemsInPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsInPurchaseReturn_args> {
-
 
5427
      public getItemsInPurchaseReturn() {
-
 
5428
        super("getItemsInPurchaseReturn");
-
 
5429
      }
-
 
5430
 
-
 
5431
      protected getItemsInPurchaseReturn_args getEmptyArgsInstance() {
-
 
5432
        return new getItemsInPurchaseReturn_args();
-
 
5433
      }
-
 
5434
 
-
 
5435
      protected getItemsInPurchaseReturn_result getResult(I iface, getItemsInPurchaseReturn_args args) throws org.apache.thrift.TException {
-
 
5436
        getItemsInPurchaseReturn_result result = new getItemsInPurchaseReturn_result();
-
 
5437
        try {
-
 
5438
          result.success = iface.getItemsInPurchaseReturn(args.purchaseReturnId);
-
 
5439
        } catch (WarehouseServiceException ex) {
-
 
5440
          result.ex = ex;
-
 
5441
        }
-
 
5442
        return result;
-
 
5443
      }
-
 
5444
    }
-
 
5445
 
5175
  }
5446
  }
5176
 
5447
 
5177
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5448
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5178
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5449
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5179
 
5450
 
Line 19727... Line 19998...
19727
  }
19998
  }
19728
 
19999
 
19729
  public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
20000
  public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
19730
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
20001
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
19731
 
20002
 
-
 
20003
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
19732
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
20004
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
19733
 
20005
 
-
 
20006
    private long success; // required
19734
    private WarehouseServiceException ex; // required
20007
    private WarehouseServiceException ex; // required
19735
 
20008
 
19736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20009
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19737
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20010
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20011
      SUCCESS((short)0, "success"),
19738
      EX((short)1, "ex");
20012
      EX((short)1, "ex");
19739
 
20013
 
19740
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20014
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19741
 
20015
 
19742
      static {
20016
      static {
Line 19748... Line 20022...
19748
      /**
20022
      /**
19749
       * Find the _Fields constant that matches fieldId, or null if its not found.
20023
       * Find the _Fields constant that matches fieldId, or null if its not found.
19750
       */
20024
       */
19751
      public static _Fields findByThriftId(int fieldId) {
20025
      public static _Fields findByThriftId(int fieldId) {
19752
        switch(fieldId) {
20026
        switch(fieldId) {
-
 
20027
          case 0: // SUCCESS
-
 
20028
            return SUCCESS;
19753
          case 1: // EX
20029
          case 1: // EX
19754
            return EX;
20030
            return EX;
19755
          default:
20031
          default:
19756
            return null;
20032
            return null;
19757
        }
20033
        }
Line 19790... Line 20066...
19790
        return _fieldName;
20066
        return _fieldName;
19791
      }
20067
      }
19792
    }
20068
    }
19793
 
20069
 
19794
    // isset id assignments
20070
    // isset id assignments
-
 
20071
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
20072
    private BitSet __isset_bit_vector = new BitSet(1);
19795
 
20073
 
19796
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19797
    static {
20075
    static {
19798
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20077
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19799
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20079
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19800
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20080
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20081
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
20082
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
19803
    }
20083
    }
19804
 
20084
 
19805
    public scanForPurchaseReturn_result() {
20085
    public scanForPurchaseReturn_result() {
19806
    }
20086
    }
19807
 
20087
 
19808
    public scanForPurchaseReturn_result(
20088
    public scanForPurchaseReturn_result(
-
 
20089
      long success,
19809
      WarehouseServiceException ex)
20090
      WarehouseServiceException ex)
19810
    {
20091
    {
19811
      this();
20092
      this();
-
 
20093
      this.success = success;
-
 
20094
      setSuccessIsSet(true);
19812
      this.ex = ex;
20095
      this.ex = ex;
19813
    }
20096
    }
19814
 
20097
 
19815
    /**
20098
    /**
19816
     * Performs a deep copy on <i>other</i>.
20099
     * Performs a deep copy on <i>other</i>.
19817
     */
20100
     */
19818
    public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
20101
    public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
-
 
20102
      __isset_bit_vector.clear();
-
 
20103
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
20104
      this.success = other.success;
19819
      if (other.isSetEx()) {
20105
      if (other.isSetEx()) {
19820
        this.ex = new WarehouseServiceException(other.ex);
20106
        this.ex = new WarehouseServiceException(other.ex);
19821
      }
20107
      }
19822
    }
20108
    }
19823
 
20109
 
Line 19825... Line 20111...
19825
      return new scanForPurchaseReturn_result(this);
20111
      return new scanForPurchaseReturn_result(this);
19826
    }
20112
    }
19827
 
20113
 
19828
    @Override
20114
    @Override
19829
    public void clear() {
20115
    public void clear() {
-
 
20116
      setSuccessIsSet(false);
-
 
20117
      this.success = 0;
19830
      this.ex = null;
20118
      this.ex = null;
19831
    }
20119
    }
19832
 
20120
 
-
 
20121
    public long getSuccess() {
-
 
20122
      return this.success;
-
 
20123
    }
-
 
20124
 
-
 
20125
    public void setSuccess(long success) {
-
 
20126
      this.success = success;
-
 
20127
      setSuccessIsSet(true);
-
 
20128
    }
-
 
20129
 
-
 
20130
    public void unsetSuccess() {
-
 
20131
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
20132
    }
-
 
20133
 
-
 
20134
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
20135
    public boolean isSetSuccess() {
-
 
20136
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
20137
    }
-
 
20138
 
-
 
20139
    public void setSuccessIsSet(boolean value) {
-
 
20140
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
20141
    }
-
 
20142
 
19833
    public WarehouseServiceException getEx() {
20143
    public WarehouseServiceException getEx() {
19834
      return this.ex;
20144
      return this.ex;
19835
    }
20145
    }
19836
 
20146
 
19837
    public void setEx(WarehouseServiceException ex) {
20147
    public void setEx(WarehouseServiceException ex) {
Line 19853... Line 20163...
19853
      }
20163
      }
19854
    }
20164
    }
19855
 
20165
 
19856
    public void setFieldValue(_Fields field, Object value) {
20166
    public void setFieldValue(_Fields field, Object value) {
19857
      switch (field) {
20167
      switch (field) {
-
 
20168
      case SUCCESS:
-
 
20169
        if (value == null) {
-
 
20170
          unsetSuccess();
-
 
20171
        } else {
-
 
20172
          setSuccess((Long)value);
-
 
20173
        }
-
 
20174
        break;
-
 
20175
 
19858
      case EX:
20176
      case EX:
19859
        if (value == null) {
20177
        if (value == null) {
19860
          unsetEx();
20178
          unsetEx();
19861
        } else {
20179
        } else {
19862
          setEx((WarehouseServiceException)value);
20180
          setEx((WarehouseServiceException)value);
Line 19866... Line 20184...
19866
      }
20184
      }
19867
    }
20185
    }
19868
 
20186
 
19869
    public Object getFieldValue(_Fields field) {
20187
    public Object getFieldValue(_Fields field) {
19870
      switch (field) {
20188
      switch (field) {
-
 
20189
      case SUCCESS:
-
 
20190
        return Long.valueOf(getSuccess());
-
 
20191
 
19871
      case EX:
20192
      case EX:
19872
        return getEx();
20193
        return getEx();
19873
 
20194
 
19874
      }
20195
      }
19875
      throw new IllegalStateException();
20196
      throw new IllegalStateException();
Line 19880... Line 20201...
19880
      if (field == null) {
20201
      if (field == null) {
19881
        throw new IllegalArgumentException();
20202
        throw new IllegalArgumentException();
19882
      }
20203
      }
19883
 
20204
 
19884
      switch (field) {
20205
      switch (field) {
-
 
20206
      case SUCCESS:
-
 
20207
        return isSetSuccess();
19885
      case EX:
20208
      case EX:
19886
        return isSetEx();
20209
        return isSetEx();
19887
      }
20210
      }
19888
      throw new IllegalStateException();
20211
      throw new IllegalStateException();
19889
    }
20212
    }
Line 19899... Line 20222...
19899
 
20222
 
19900
    public boolean equals(scanForPurchaseReturn_result that) {
20223
    public boolean equals(scanForPurchaseReturn_result that) {
19901
      if (that == null)
20224
      if (that == null)
19902
        return false;
20225
        return false;
19903
 
20226
 
-
 
20227
      boolean this_present_success = true;
-
 
20228
      boolean that_present_success = true;
-
 
20229
      if (this_present_success || that_present_success) {
-
 
20230
        if (!(this_present_success && that_present_success))
-
 
20231
          return false;
-
 
20232
        if (this.success != that.success)
-
 
20233
          return false;
-
 
20234
      }
-
 
20235
 
19904
      boolean this_present_ex = true && this.isSetEx();
20236
      boolean this_present_ex = true && this.isSetEx();
19905
      boolean that_present_ex = true && that.isSetEx();
20237
      boolean that_present_ex = true && that.isSetEx();
19906
      if (this_present_ex || that_present_ex) {
20238
      if (this_present_ex || that_present_ex) {
19907
        if (!(this_present_ex && that_present_ex))
20239
        if (!(this_present_ex && that_present_ex))
19908
          return false;
20240
          return false;
Line 19924... Line 20256...
19924
      }
20256
      }
19925
 
20257
 
19926
      int lastComparison = 0;
20258
      int lastComparison = 0;
19927
      scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
20259
      scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
19928
 
20260
 
-
 
20261
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
20262
      if (lastComparison != 0) {
-
 
20263
        return lastComparison;
-
 
20264
      }
-
 
20265
      if (isSetSuccess()) {
-
 
20266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
20267
        if (lastComparison != 0) {
-
 
20268
          return lastComparison;
-
 
20269
        }
-
 
20270
      }
19929
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
20271
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
19930
      if (lastComparison != 0) {
20272
      if (lastComparison != 0) {
19931
        return lastComparison;
20273
        return lastComparison;
19932
      }
20274
      }
19933
      if (isSetEx()) {
20275
      if (isSetEx()) {
Line 19951... Line 20293...
19951
        field = iprot.readFieldBegin();
20293
        field = iprot.readFieldBegin();
19952
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20294
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19953
          break;
20295
          break;
19954
        }
20296
        }
19955
        switch (field.id) {
20297
        switch (field.id) {
-
 
20298
          case 0: // SUCCESS
-
 
20299
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
20300
              this.success = iprot.readI64();
-
 
20301
              setSuccessIsSet(true);
-
 
20302
            } else { 
-
 
20303
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20304
            }
-
 
20305
            break;
19956
          case 1: // EX
20306
          case 1: // EX
19957
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20307
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19958
              this.ex = new WarehouseServiceException();
20308
              this.ex = new WarehouseServiceException();
19959
              this.ex.read(iprot);
20309
              this.ex.read(iprot);
19960
            } else { 
20310
            } else { 
Line 19971... Line 20321...
19971
    }
20321
    }
19972
 
20322
 
19973
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20323
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19974
      oprot.writeStructBegin(STRUCT_DESC);
20324
      oprot.writeStructBegin(STRUCT_DESC);
19975
 
20325
 
-
 
20326
      if (this.isSetSuccess()) {
-
 
20327
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
20328
        oprot.writeI64(this.success);
-
 
20329
        oprot.writeFieldEnd();
19976
      if (this.isSetEx()) {
20330
      } else if (this.isSetEx()) {
19977
        oprot.writeFieldBegin(EX_FIELD_DESC);
20331
        oprot.writeFieldBegin(EX_FIELD_DESC);
19978
        this.ex.write(oprot);
20332
        this.ex.write(oprot);
19979
        oprot.writeFieldEnd();
20333
        oprot.writeFieldEnd();
19980
      }
20334
      }
19981
      oprot.writeFieldStop();
20335
      oprot.writeFieldStop();
Line 19985... Line 20339...
19985
    @Override
20339
    @Override
19986
    public String toString() {
20340
    public String toString() {
19987
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
20341
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
19988
      boolean first = true;
20342
      boolean first = true;
19989
 
20343
 
-
 
20344
      sb.append("success:");
-
 
20345
      sb.append(this.success);
-
 
20346
      first = false;
-
 
20347
      if (!first) sb.append(", ");
19990
      sb.append("ex:");
20348
      sb.append("ex:");
19991
      if (this.ex == null) {
20349
      if (this.ex == null) {
19992
        sb.append("null");
20350
        sb.append("null");
19993
      } else {
20351
      } else {
19994
        sb.append(this.ex);
20352
        sb.append(this.ex);
Line 48276... Line 48634...
48276
      }
48634
      }
48277
      first = false;
48635
      first = false;
48278
      sb.append(")");
48636
      sb.append(")");
48279
      return sb.toString();
48637
      return sb.toString();
48280
    }
48638
    }
-
 
48639
 
-
 
48640
    public void validate() throws org.apache.thrift.TException {
-
 
48641
      // check for required fields
-
 
48642
    }
-
 
48643
 
-
 
48644
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
48645
      try {
-
 
48646
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
48647
      } catch (org.apache.thrift.TException te) {
-
 
48648
        throw new java.io.IOException(te);
-
 
48649
      }
-
 
48650
    }
-
 
48651
 
-
 
48652
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
48653
      try {
-
 
48654
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
48655
      } catch (org.apache.thrift.TException te) {
-
 
48656
        throw new java.io.IOException(te);
-
 
48657
      }
-
 
48658
    }
-
 
48659
 
-
 
48660
  }
-
 
48661
 
-
 
48662
  public static class getCurrentBadQuantityForItem_args implements org.apache.thrift.TBase<getCurrentBadQuantityForItem_args, getCurrentBadQuantityForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
48663
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentBadQuantityForItem_args");
-
 
48664
 
-
 
48665
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
48666
    private static final org.apache.thrift.protocol.TField CURRENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("currentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
48667
    private static final org.apache.thrift.protocol.TField PHYSICAL_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("physicalWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
48668
 
-
 
48669
    private long itemId; // required
-
 
48670
    private long currentWarehouseId; // required
-
 
48671
    private long physicalWarehouseId; // required
-
 
48672
 
-
 
48673
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
48674
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
48675
      ITEM_ID((short)1, "itemId"),
-
 
48676
      CURRENT_WAREHOUSE_ID((short)2, "currentWarehouseId"),
-
 
48677
      PHYSICAL_WAREHOUSE_ID((short)3, "physicalWarehouseId");
-
 
48678
 
-
 
48679
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
48680
 
-
 
48681
      static {
-
 
48682
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
48683
          byName.put(field.getFieldName(), field);
-
 
48684
        }
-
 
48685
      }
-
 
48686
 
-
 
48687
      /**
-
 
48688
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
48689
       */
-
 
48690
      public static _Fields findByThriftId(int fieldId) {
-
 
48691
        switch(fieldId) {
-
 
48692
          case 1: // ITEM_ID
-
 
48693
            return ITEM_ID;
-
 
48694
          case 2: // CURRENT_WAREHOUSE_ID
-
 
48695
            return CURRENT_WAREHOUSE_ID;
-
 
48696
          case 3: // PHYSICAL_WAREHOUSE_ID
-
 
48697
            return PHYSICAL_WAREHOUSE_ID;
-
 
48698
          default:
-
 
48699
            return null;
-
 
48700
        }
-
 
48701
      }
-
 
48702
 
-
 
48703
      /**
-
 
48704
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
48705
       * if it is not found.
-
 
48706
       */
-
 
48707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
48708
        _Fields fields = findByThriftId(fieldId);
-
 
48709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
48710
        return fields;
-
 
48711
      }
-
 
48712
 
-
 
48713
      /**
-
 
48714
       * Find the _Fields constant that matches name, or null if its not found.
-
 
48715
       */
-
 
48716
      public static _Fields findByName(String name) {
-
 
48717
        return byName.get(name);
-
 
48718
      }
-
 
48719
 
-
 
48720
      private final short _thriftId;
-
 
48721
      private final String _fieldName;
-
 
48722
 
-
 
48723
      _Fields(short thriftId, String fieldName) {
-
 
48724
        _thriftId = thriftId;
-
 
48725
        _fieldName = fieldName;
-
 
48726
      }
-
 
48727
 
-
 
48728
      public short getThriftFieldId() {
-
 
48729
        return _thriftId;
-
 
48730
      }
-
 
48731
 
-
 
48732
      public String getFieldName() {
-
 
48733
        return _fieldName;
-
 
48734
      }
-
 
48735
    }
-
 
48736
 
-
 
48737
    // isset id assignments
-
 
48738
    private static final int __ITEMID_ISSET_ID = 0;
-
 
48739
    private static final int __CURRENTWAREHOUSEID_ISSET_ID = 1;
-
 
48740
    private static final int __PHYSICALWAREHOUSEID_ISSET_ID = 2;
-
 
48741
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
48742
 
-
 
48743
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
48744
    static {
-
 
48745
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
48746
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
48748
      tmpMap.put(_Fields.CURRENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("currentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48749
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
48750
      tmpMap.put(_Fields.PHYSICAL_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("physicalWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
48752
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
48753
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentBadQuantityForItem_args.class, metaDataMap);
-
 
48754
    }
-
 
48755
 
-
 
48756
    public getCurrentBadQuantityForItem_args() {
-
 
48757
    }
-
 
48758
 
-
 
48759
    public getCurrentBadQuantityForItem_args(
-
 
48760
      long itemId,
-
 
48761
      long currentWarehouseId,
-
 
48762
      long physicalWarehouseId)
-
 
48763
    {
-
 
48764
      this();
-
 
48765
      this.itemId = itemId;
-
 
48766
      setItemIdIsSet(true);
-
 
48767
      this.currentWarehouseId = currentWarehouseId;
-
 
48768
      setCurrentWarehouseIdIsSet(true);
-
 
48769
      this.physicalWarehouseId = physicalWarehouseId;
-
 
48770
      setPhysicalWarehouseIdIsSet(true);
-
 
48771
    }
-
 
48772
 
-
 
48773
    /**
-
 
48774
     * Performs a deep copy on <i>other</i>.
-
 
48775
     */
-
 
48776
    public getCurrentBadQuantityForItem_args(getCurrentBadQuantityForItem_args other) {
-
 
48777
      __isset_bit_vector.clear();
-
 
48778
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
48779
      this.itemId = other.itemId;
-
 
48780
      this.currentWarehouseId = other.currentWarehouseId;
-
 
48781
      this.physicalWarehouseId = other.physicalWarehouseId;
-
 
48782
    }
-
 
48783
 
-
 
48784
    public getCurrentBadQuantityForItem_args deepCopy() {
-
 
48785
      return new getCurrentBadQuantityForItem_args(this);
-
 
48786
    }
-
 
48787
 
-
 
48788
    @Override
-
 
48789
    public void clear() {
-
 
48790
      setItemIdIsSet(false);
-
 
48791
      this.itemId = 0;
-
 
48792
      setCurrentWarehouseIdIsSet(false);
-
 
48793
      this.currentWarehouseId = 0;
-
 
48794
      setPhysicalWarehouseIdIsSet(false);
-
 
48795
      this.physicalWarehouseId = 0;
-
 
48796
    }
-
 
48797
 
-
 
48798
    public long getItemId() {
-
 
48799
      return this.itemId;
-
 
48800
    }
-
 
48801
 
-
 
48802
    public void setItemId(long itemId) {
-
 
48803
      this.itemId = itemId;
-
 
48804
      setItemIdIsSet(true);
-
 
48805
    }
-
 
48806
 
-
 
48807
    public void unsetItemId() {
-
 
48808
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
48809
    }
-
 
48810
 
-
 
48811
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
48812
    public boolean isSetItemId() {
-
 
48813
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
48814
    }
-
 
48815
 
-
 
48816
    public void setItemIdIsSet(boolean value) {
-
 
48817
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
48818
    }
-
 
48819
 
-
 
48820
    public long getCurrentWarehouseId() {
-
 
48821
      return this.currentWarehouseId;
-
 
48822
    }
-
 
48823
 
-
 
48824
    public void setCurrentWarehouseId(long currentWarehouseId) {
-
 
48825
      this.currentWarehouseId = currentWarehouseId;
-
 
48826
      setCurrentWarehouseIdIsSet(true);
-
 
48827
    }
-
 
48828
 
-
 
48829
    public void unsetCurrentWarehouseId() {
-
 
48830
      __isset_bit_vector.clear(__CURRENTWAREHOUSEID_ISSET_ID);
-
 
48831
    }
-
 
48832
 
-
 
48833
    /** Returns true if field currentWarehouseId is set (has been assigned a value) and false otherwise */
-
 
48834
    public boolean isSetCurrentWarehouseId() {
-
 
48835
      return __isset_bit_vector.get(__CURRENTWAREHOUSEID_ISSET_ID);
-
 
48836
    }
-
 
48837
 
-
 
48838
    public void setCurrentWarehouseIdIsSet(boolean value) {
-
 
48839
      __isset_bit_vector.set(__CURRENTWAREHOUSEID_ISSET_ID, value);
-
 
48840
    }
-
 
48841
 
-
 
48842
    public long getPhysicalWarehouseId() {
-
 
48843
      return this.physicalWarehouseId;
-
 
48844
    }
-
 
48845
 
-
 
48846
    public void setPhysicalWarehouseId(long physicalWarehouseId) {
-
 
48847
      this.physicalWarehouseId = physicalWarehouseId;
-
 
48848
      setPhysicalWarehouseIdIsSet(true);
-
 
48849
    }
-
 
48850
 
-
 
48851
    public void unsetPhysicalWarehouseId() {
-
 
48852
      __isset_bit_vector.clear(__PHYSICALWAREHOUSEID_ISSET_ID);
-
 
48853
    }
-
 
48854
 
-
 
48855
    /** Returns true if field physicalWarehouseId is set (has been assigned a value) and false otherwise */
-
 
48856
    public boolean isSetPhysicalWarehouseId() {
-
 
48857
      return __isset_bit_vector.get(__PHYSICALWAREHOUSEID_ISSET_ID);
-
 
48858
    }
-
 
48859
 
-
 
48860
    public void setPhysicalWarehouseIdIsSet(boolean value) {
-
 
48861
      __isset_bit_vector.set(__PHYSICALWAREHOUSEID_ISSET_ID, value);
-
 
48862
    }
-
 
48863
 
-
 
48864
    public void setFieldValue(_Fields field, Object value) {
-
 
48865
      switch (field) {
-
 
48866
      case ITEM_ID:
-
 
48867
        if (value == null) {
-
 
48868
          unsetItemId();
-
 
48869
        } else {
-
 
48870
          setItemId((Long)value);
-
 
48871
        }
-
 
48872
        break;
-
 
48873
 
-
 
48874
      case CURRENT_WAREHOUSE_ID:
-
 
48875
        if (value == null) {
-
 
48876
          unsetCurrentWarehouseId();
-
 
48877
        } else {
-
 
48878
          setCurrentWarehouseId((Long)value);
-
 
48879
        }
-
 
48880
        break;
-
 
48881
 
-
 
48882
      case PHYSICAL_WAREHOUSE_ID:
-
 
48883
        if (value == null) {
-
 
48884
          unsetPhysicalWarehouseId();
-
 
48885
        } else {
-
 
48886
          setPhysicalWarehouseId((Long)value);
-
 
48887
        }
-
 
48888
        break;
-
 
48889
 
-
 
48890
      }
-
 
48891
    }
-
 
48892
 
-
 
48893
    public Object getFieldValue(_Fields field) {
-
 
48894
      switch (field) {
-
 
48895
      case ITEM_ID:
-
 
48896
        return Long.valueOf(getItemId());
-
 
48897
 
-
 
48898
      case CURRENT_WAREHOUSE_ID:
-
 
48899
        return Long.valueOf(getCurrentWarehouseId());
-
 
48900
 
-
 
48901
      case PHYSICAL_WAREHOUSE_ID:
-
 
48902
        return Long.valueOf(getPhysicalWarehouseId());
-
 
48903
 
-
 
48904
      }
-
 
48905
      throw new IllegalStateException();
-
 
48906
    }
-
 
48907
 
-
 
48908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48909
    public boolean isSet(_Fields field) {
-
 
48910
      if (field == null) {
-
 
48911
        throw new IllegalArgumentException();
-
 
48912
      }
-
 
48913
 
-
 
48914
      switch (field) {
-
 
48915
      case ITEM_ID:
-
 
48916
        return isSetItemId();
-
 
48917
      case CURRENT_WAREHOUSE_ID:
-
 
48918
        return isSetCurrentWarehouseId();
-
 
48919
      case PHYSICAL_WAREHOUSE_ID:
-
 
48920
        return isSetPhysicalWarehouseId();
-
 
48921
      }
-
 
48922
      throw new IllegalStateException();
-
 
48923
    }
-
 
48924
 
-
 
48925
    @Override
-
 
48926
    public boolean equals(Object that) {
-
 
48927
      if (that == null)
-
 
48928
        return false;
-
 
48929
      if (that instanceof getCurrentBadQuantityForItem_args)
-
 
48930
        return this.equals((getCurrentBadQuantityForItem_args)that);
-
 
48931
      return false;
-
 
48932
    }
-
 
48933
 
-
 
48934
    public boolean equals(getCurrentBadQuantityForItem_args that) {
-
 
48935
      if (that == null)
-
 
48936
        return false;
-
 
48937
 
-
 
48938
      boolean this_present_itemId = true;
-
 
48939
      boolean that_present_itemId = true;
-
 
48940
      if (this_present_itemId || that_present_itemId) {
-
 
48941
        if (!(this_present_itemId && that_present_itemId))
-
 
48942
          return false;
-
 
48943
        if (this.itemId != that.itemId)
-
 
48944
          return false;
-
 
48945
      }
-
 
48946
 
-
 
48947
      boolean this_present_currentWarehouseId = true;
-
 
48948
      boolean that_present_currentWarehouseId = true;
-
 
48949
      if (this_present_currentWarehouseId || that_present_currentWarehouseId) {
-
 
48950
        if (!(this_present_currentWarehouseId && that_present_currentWarehouseId))
-
 
48951
          return false;
-
 
48952
        if (this.currentWarehouseId != that.currentWarehouseId)
-
 
48953
          return false;
-
 
48954
      }
-
 
48955
 
-
 
48956
      boolean this_present_physicalWarehouseId = true;
-
 
48957
      boolean that_present_physicalWarehouseId = true;
-
 
48958
      if (this_present_physicalWarehouseId || that_present_physicalWarehouseId) {
-
 
48959
        if (!(this_present_physicalWarehouseId && that_present_physicalWarehouseId))
-
 
48960
          return false;
-
 
48961
        if (this.physicalWarehouseId != that.physicalWarehouseId)
-
 
48962
          return false;
-
 
48963
      }
-
 
48964
 
-
 
48965
      return true;
-
 
48966
    }
-
 
48967
 
-
 
48968
    @Override
-
 
48969
    public int hashCode() {
-
 
48970
      return 0;
-
 
48971
    }
-
 
48972
 
-
 
48973
    public int compareTo(getCurrentBadQuantityForItem_args other) {
-
 
48974
      if (!getClass().equals(other.getClass())) {
-
 
48975
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48976
      }
-
 
48977
 
-
 
48978
      int lastComparison = 0;
-
 
48979
      getCurrentBadQuantityForItem_args typedOther = (getCurrentBadQuantityForItem_args)other;
-
 
48980
 
-
 
48981
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
48982
      if (lastComparison != 0) {
-
 
48983
        return lastComparison;
-
 
48984
      }
-
 
48985
      if (isSetItemId()) {
-
 
48986
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
48987
        if (lastComparison != 0) {
-
 
48988
          return lastComparison;
-
 
48989
        }
-
 
48990
      }
-
 
48991
      lastComparison = Boolean.valueOf(isSetCurrentWarehouseId()).compareTo(typedOther.isSetCurrentWarehouseId());
-
 
48992
      if (lastComparison != 0) {
-
 
48993
        return lastComparison;
-
 
48994
      }
-
 
48995
      if (isSetCurrentWarehouseId()) {
-
 
48996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.currentWarehouseId, typedOther.currentWarehouseId);
-
 
48997
        if (lastComparison != 0) {
-
 
48998
          return lastComparison;
-
 
48999
        }
-
 
49000
      }
-
 
49001
      lastComparison = Boolean.valueOf(isSetPhysicalWarehouseId()).compareTo(typedOther.isSetPhysicalWarehouseId());
-
 
49002
      if (lastComparison != 0) {
-
 
49003
        return lastComparison;
-
 
49004
      }
-
 
49005
      if (isSetPhysicalWarehouseId()) {
-
 
49006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.physicalWarehouseId, typedOther.physicalWarehouseId);
-
 
49007
        if (lastComparison != 0) {
-
 
49008
          return lastComparison;
-
 
49009
        }
-
 
49010
      }
-
 
49011
      return 0;
-
 
49012
    }
-
 
49013
 
-
 
49014
    public _Fields fieldForId(int fieldId) {
-
 
49015
      return _Fields.findByThriftId(fieldId);
-
 
49016
    }
-
 
49017
 
-
 
49018
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
49019
      org.apache.thrift.protocol.TField field;
-
 
49020
      iprot.readStructBegin();
-
 
49021
      while (true)
-
 
49022
      {
-
 
49023
        field = iprot.readFieldBegin();
-
 
49024
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
49025
          break;
-
 
49026
        }
-
 
49027
        switch (field.id) {
-
 
49028
          case 1: // ITEM_ID
-
 
49029
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
49030
              this.itemId = iprot.readI64();
-
 
49031
              setItemIdIsSet(true);
-
 
49032
            } else { 
-
 
49033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49034
            }
-
 
49035
            break;
-
 
49036
          case 2: // CURRENT_WAREHOUSE_ID
-
 
49037
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
49038
              this.currentWarehouseId = iprot.readI64();
-
 
49039
              setCurrentWarehouseIdIsSet(true);
-
 
49040
            } else { 
-
 
49041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49042
            }
-
 
49043
            break;
-
 
49044
          case 3: // PHYSICAL_WAREHOUSE_ID
-
 
49045
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
49046
              this.physicalWarehouseId = iprot.readI64();
-
 
49047
              setPhysicalWarehouseIdIsSet(true);
-
 
49048
            } else { 
-
 
49049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49050
            }
-
 
49051
            break;
-
 
49052
          default:
-
 
49053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49054
        }
-
 
49055
        iprot.readFieldEnd();
-
 
49056
      }
-
 
49057
      iprot.readStructEnd();
-
 
49058
      validate();
-
 
49059
    }
-
 
49060
 
-
 
49061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
49062
      validate();
-
 
49063
 
-
 
49064
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49065
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
49066
      oprot.writeI64(this.itemId);
-
 
49067
      oprot.writeFieldEnd();
-
 
49068
      oprot.writeFieldBegin(CURRENT_WAREHOUSE_ID_FIELD_DESC);
-
 
49069
      oprot.writeI64(this.currentWarehouseId);
-
 
49070
      oprot.writeFieldEnd();
-
 
49071
      oprot.writeFieldBegin(PHYSICAL_WAREHOUSE_ID_FIELD_DESC);
-
 
49072
      oprot.writeI64(this.physicalWarehouseId);
-
 
49073
      oprot.writeFieldEnd();
-
 
49074
      oprot.writeFieldStop();
-
 
49075
      oprot.writeStructEnd();
-
 
49076
    }
-
 
49077
 
-
 
49078
    @Override
-
 
49079
    public String toString() {
-
 
49080
      StringBuilder sb = new StringBuilder("getCurrentBadQuantityForItem_args(");
-
 
49081
      boolean first = true;
-
 
49082
 
-
 
49083
      sb.append("itemId:");
-
 
49084
      sb.append(this.itemId);
-
 
49085
      first = false;
-
 
49086
      if (!first) sb.append(", ");
-
 
49087
      sb.append("currentWarehouseId:");
-
 
49088
      sb.append(this.currentWarehouseId);
-
 
49089
      first = false;
-
 
49090
      if (!first) sb.append(", ");
-
 
49091
      sb.append("physicalWarehouseId:");
-
 
49092
      sb.append(this.physicalWarehouseId);
-
 
49093
      first = false;
-
 
49094
      sb.append(")");
-
 
49095
      return sb.toString();
-
 
49096
    }
-
 
49097
 
-
 
49098
    public void validate() throws org.apache.thrift.TException {
-
 
49099
      // check for required fields
-
 
49100
    }
-
 
49101
 
-
 
49102
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
49103
      try {
-
 
49104
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
49105
      } catch (org.apache.thrift.TException te) {
-
 
49106
        throw new java.io.IOException(te);
-
 
49107
      }
-
 
49108
    }
-
 
49109
 
-
 
49110
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
49111
      try {
-
 
49112
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
49113
        __isset_bit_vector = new BitSet(1);
-
 
49114
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
49115
      } catch (org.apache.thrift.TException te) {
-
 
49116
        throw new java.io.IOException(te);
-
 
49117
      }
-
 
49118
    }
-
 
49119
 
-
 
49120
  }
-
 
49121
 
-
 
49122
  public static class getCurrentBadQuantityForItem_result implements org.apache.thrift.TBase<getCurrentBadQuantityForItem_result, getCurrentBadQuantityForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
49123
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentBadQuantityForItem_result");
-
 
49124
 
-
 
49125
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
49126
    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);
-
 
49127
 
-
 
49128
    private long success; // required
-
 
49129
    private WarehouseServiceException wex; // required
-
 
49130
 
-
 
49131
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49132
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
49133
      SUCCESS((short)0, "success"),
-
 
49134
      WEX((short)1, "wex");
-
 
49135
 
-
 
49136
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
49137
 
-
 
49138
      static {
-
 
49139
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
49140
          byName.put(field.getFieldName(), field);
-
 
49141
        }
-
 
49142
      }
-
 
49143
 
-
 
49144
      /**
-
 
49145
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
49146
       */
-
 
49147
      public static _Fields findByThriftId(int fieldId) {
-
 
49148
        switch(fieldId) {
-
 
49149
          case 0: // SUCCESS
-
 
49150
            return SUCCESS;
-
 
49151
          case 1: // WEX
-
 
49152
            return WEX;
-
 
49153
          default:
-
 
49154
            return null;
-
 
49155
        }
-
 
49156
      }
-
 
49157
 
-
 
49158
      /**
-
 
49159
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
49160
       * if it is not found.
-
 
49161
       */
-
 
49162
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
49163
        _Fields fields = findByThriftId(fieldId);
-
 
49164
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
49165
        return fields;
-
 
49166
      }
-
 
49167
 
-
 
49168
      /**
-
 
49169
       * Find the _Fields constant that matches name, or null if its not found.
-
 
49170
       */
-
 
49171
      public static _Fields findByName(String name) {
-
 
49172
        return byName.get(name);
-
 
49173
      }
-
 
49174
 
-
 
49175
      private final short _thriftId;
-
 
49176
      private final String _fieldName;
-
 
49177
 
-
 
49178
      _Fields(short thriftId, String fieldName) {
-
 
49179
        _thriftId = thriftId;
-
 
49180
        _fieldName = fieldName;
-
 
49181
      }
-
 
49182
 
-
 
49183
      public short getThriftFieldId() {
-
 
49184
        return _thriftId;
-
 
49185
      }
-
 
49186
 
-
 
49187
      public String getFieldName() {
-
 
49188
        return _fieldName;
-
 
49189
      }
-
 
49190
    }
-
 
49191
 
-
 
49192
    // isset id assignments
-
 
49193
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
49194
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
49195
 
-
 
49196
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
49197
    static {
-
 
49198
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
49199
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49200
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
49201
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49202
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
49203
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
49204
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentBadQuantityForItem_result.class, metaDataMap);
-
 
49205
    }
-
 
49206
 
-
 
49207
    public getCurrentBadQuantityForItem_result() {
-
 
49208
    }
-
 
49209
 
-
 
49210
    public getCurrentBadQuantityForItem_result(
-
 
49211
      long success,
-
 
49212
      WarehouseServiceException wex)
-
 
49213
    {
-
 
49214
      this();
-
 
49215
      this.success = success;
-
 
49216
      setSuccessIsSet(true);
-
 
49217
      this.wex = wex;
-
 
49218
    }
-
 
49219
 
-
 
49220
    /**
-
 
49221
     * Performs a deep copy on <i>other</i>.
-
 
49222
     */
-
 
49223
    public getCurrentBadQuantityForItem_result(getCurrentBadQuantityForItem_result other) {
-
 
49224
      __isset_bit_vector.clear();
-
 
49225
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
49226
      this.success = other.success;
-
 
49227
      if (other.isSetWex()) {
-
 
49228
        this.wex = new WarehouseServiceException(other.wex);
-
 
49229
      }
-
 
49230
    }
-
 
49231
 
-
 
49232
    public getCurrentBadQuantityForItem_result deepCopy() {
-
 
49233
      return new getCurrentBadQuantityForItem_result(this);
-
 
49234
    }
-
 
49235
 
-
 
49236
    @Override
-
 
49237
    public void clear() {
-
 
49238
      setSuccessIsSet(false);
-
 
49239
      this.success = 0;
-
 
49240
      this.wex = null;
-
 
49241
    }
-
 
49242
 
-
 
49243
    public long getSuccess() {
-
 
49244
      return this.success;
-
 
49245
    }
-
 
49246
 
-
 
49247
    public void setSuccess(long success) {
-
 
49248
      this.success = success;
-
 
49249
      setSuccessIsSet(true);
-
 
49250
    }
-
 
49251
 
-
 
49252
    public void unsetSuccess() {
-
 
49253
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
49254
    }
-
 
49255
 
-
 
49256
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
49257
    public boolean isSetSuccess() {
-
 
49258
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
49259
    }
-
 
49260
 
-
 
49261
    public void setSuccessIsSet(boolean value) {
-
 
49262
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
49263
    }
-
 
49264
 
-
 
49265
    public WarehouseServiceException getWex() {
-
 
49266
      return this.wex;
-
 
49267
    }
-
 
49268
 
-
 
49269
    public void setWex(WarehouseServiceException wex) {
-
 
49270
      this.wex = wex;
-
 
49271
    }
-
 
49272
 
-
 
49273
    public void unsetWex() {
-
 
49274
      this.wex = null;
-
 
49275
    }
-
 
49276
 
-
 
49277
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
49278
    public boolean isSetWex() {
-
 
49279
      return this.wex != null;
-
 
49280
    }
-
 
49281
 
-
 
49282
    public void setWexIsSet(boolean value) {
-
 
49283
      if (!value) {
-
 
49284
        this.wex = null;
-
 
49285
      }
-
 
49286
    }
-
 
49287
 
-
 
49288
    public void setFieldValue(_Fields field, Object value) {
-
 
49289
      switch (field) {
-
 
49290
      case SUCCESS:
-
 
49291
        if (value == null) {
-
 
49292
          unsetSuccess();
-
 
49293
        } else {
-
 
49294
          setSuccess((Long)value);
-
 
49295
        }
-
 
49296
        break;
-
 
49297
 
-
 
49298
      case WEX:
-
 
49299
        if (value == null) {
-
 
49300
          unsetWex();
-
 
49301
        } else {
-
 
49302
          setWex((WarehouseServiceException)value);
-
 
49303
        }
-
 
49304
        break;
-
 
49305
 
-
 
49306
      }
-
 
49307
    }
-
 
49308
 
-
 
49309
    public Object getFieldValue(_Fields field) {
-
 
49310
      switch (field) {
-
 
49311
      case SUCCESS:
-
 
49312
        return Long.valueOf(getSuccess());
-
 
49313
 
-
 
49314
      case WEX:
-
 
49315
        return getWex();
-
 
49316
 
-
 
49317
      }
-
 
49318
      throw new IllegalStateException();
-
 
49319
    }
-
 
49320
 
-
 
49321
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
49322
    public boolean isSet(_Fields field) {
-
 
49323
      if (field == null) {
-
 
49324
        throw new IllegalArgumentException();
-
 
49325
      }
-
 
49326
 
-
 
49327
      switch (field) {
-
 
49328
      case SUCCESS:
-
 
49329
        return isSetSuccess();
-
 
49330
      case WEX:
-
 
49331
        return isSetWex();
-
 
49332
      }
-
 
49333
      throw new IllegalStateException();
-
 
49334
    }
-
 
49335
 
-
 
49336
    @Override
-
 
49337
    public boolean equals(Object that) {
-
 
49338
      if (that == null)
-
 
49339
        return false;
-
 
49340
      if (that instanceof getCurrentBadQuantityForItem_result)
-
 
49341
        return this.equals((getCurrentBadQuantityForItem_result)that);
-
 
49342
      return false;
-
 
49343
    }
-
 
49344
 
-
 
49345
    public boolean equals(getCurrentBadQuantityForItem_result that) {
-
 
49346
      if (that == null)
-
 
49347
        return false;
-
 
49348
 
-
 
49349
      boolean this_present_success = true;
-
 
49350
      boolean that_present_success = true;
-
 
49351
      if (this_present_success || that_present_success) {
-
 
49352
        if (!(this_present_success && that_present_success))
-
 
49353
          return false;
-
 
49354
        if (this.success != that.success)
-
 
49355
          return false;
-
 
49356
      }
-
 
49357
 
-
 
49358
      boolean this_present_wex = true && this.isSetWex();
-
 
49359
      boolean that_present_wex = true && that.isSetWex();
-
 
49360
      if (this_present_wex || that_present_wex) {
-
 
49361
        if (!(this_present_wex && that_present_wex))
-
 
49362
          return false;
-
 
49363
        if (!this.wex.equals(that.wex))
-
 
49364
          return false;
-
 
49365
      }
-
 
49366
 
-
 
49367
      return true;
-
 
49368
    }
-
 
49369
 
-
 
49370
    @Override
-
 
49371
    public int hashCode() {
-
 
49372
      return 0;
-
 
49373
    }
-
 
49374
 
-
 
49375
    public int compareTo(getCurrentBadQuantityForItem_result other) {
-
 
49376
      if (!getClass().equals(other.getClass())) {
-
 
49377
        return getClass().getName().compareTo(other.getClass().getName());
-
 
49378
      }
-
 
49379
 
-
 
49380
      int lastComparison = 0;
-
 
49381
      getCurrentBadQuantityForItem_result typedOther = (getCurrentBadQuantityForItem_result)other;
-
 
49382
 
-
 
49383
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
49384
      if (lastComparison != 0) {
-
 
49385
        return lastComparison;
-
 
49386
      }
-
 
49387
      if (isSetSuccess()) {
-
 
49388
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
49389
        if (lastComparison != 0) {
-
 
49390
          return lastComparison;
-
 
49391
        }
-
 
49392
      }
-
 
49393
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
49394
      if (lastComparison != 0) {
-
 
49395
        return lastComparison;
-
 
49396
      }
-
 
49397
      if (isSetWex()) {
-
 
49398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
49399
        if (lastComparison != 0) {
-
 
49400
          return lastComparison;
-
 
49401
        }
-
 
49402
      }
-
 
49403
      return 0;
-
 
49404
    }
-
 
49405
 
-
 
49406
    public _Fields fieldForId(int fieldId) {
-
 
49407
      return _Fields.findByThriftId(fieldId);
-
 
49408
    }
-
 
49409
 
-
 
49410
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
49411
      org.apache.thrift.protocol.TField field;
-
 
49412
      iprot.readStructBegin();
-
 
49413
      while (true)
-
 
49414
      {
-
 
49415
        field = iprot.readFieldBegin();
-
 
49416
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
49417
          break;
-
 
49418
        }
-
 
49419
        switch (field.id) {
-
 
49420
          case 0: // SUCCESS
-
 
49421
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
49422
              this.success = iprot.readI64();
-
 
49423
              setSuccessIsSet(true);
-
 
49424
            } else { 
-
 
49425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49426
            }
-
 
49427
            break;
-
 
49428
          case 1: // WEX
-
 
49429
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
49430
              this.wex = new WarehouseServiceException();
-
 
49431
              this.wex.read(iprot);
-
 
49432
            } else { 
-
 
49433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49434
            }
-
 
49435
            break;
-
 
49436
          default:
-
 
49437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49438
        }
-
 
49439
        iprot.readFieldEnd();
-
 
49440
      }
-
 
49441
      iprot.readStructEnd();
-
 
49442
      validate();
-
 
49443
    }
-
 
49444
 
-
 
49445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
49446
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49447
 
-
 
49448
      if (this.isSetSuccess()) {
-
 
49449
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
49450
        oprot.writeI64(this.success);
-
 
49451
        oprot.writeFieldEnd();
-
 
49452
      } else if (this.isSetWex()) {
-
 
49453
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
49454
        this.wex.write(oprot);
-
 
49455
        oprot.writeFieldEnd();
-
 
49456
      }
-
 
49457
      oprot.writeFieldStop();
-
 
49458
      oprot.writeStructEnd();
-
 
49459
    }
-
 
49460
 
-
 
49461
    @Override
-
 
49462
    public String toString() {
-
 
49463
      StringBuilder sb = new StringBuilder("getCurrentBadQuantityForItem_result(");
-
 
49464
      boolean first = true;
-
 
49465
 
-
 
49466
      sb.append("success:");
-
 
49467
      sb.append(this.success);
-
 
49468
      first = false;
-
 
49469
      if (!first) sb.append(", ");
-
 
49470
      sb.append("wex:");
-
 
49471
      if (this.wex == null) {
-
 
49472
        sb.append("null");
-
 
49473
      } else {
-
 
49474
        sb.append(this.wex);
-
 
49475
      }
-
 
49476
      first = false;
-
 
49477
      sb.append(")");
-
 
49478
      return sb.toString();
-
 
49479
    }
-
 
49480
 
-
 
49481
    public void validate() throws org.apache.thrift.TException {
-
 
49482
      // check for required fields
-
 
49483
    }
-
 
49484
 
-
 
49485
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
49486
      try {
-
 
49487
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
49488
      } catch (org.apache.thrift.TException te) {
-
 
49489
        throw new java.io.IOException(te);
-
 
49490
      }
-
 
49491
    }
-
 
49492
 
-
 
49493
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
49494
      try {
-
 
49495
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
49496
      } catch (org.apache.thrift.TException te) {
-
 
49497
        throw new java.io.IOException(te);
-
 
49498
      }
-
 
49499
    }
-
 
49500
 
-
 
49501
  }
-
 
49502
 
-
 
49503
  public static class scanForBadPurchaseReturn_args implements org.apache.thrift.TBase<scanForBadPurchaseReturn_args, scanForBadPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
49504
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForBadPurchaseReturn_args");
-
 
49505
 
-
 
49506
    private static final org.apache.thrift.protocol.TField SALE_RETURN_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("saleReturnItems", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
49507
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
49508
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
49509
 
-
 
49510
    private List<InventoryItem> saleReturnItems; // required
-
 
49511
    private long vendorId; // required
-
 
49512
    private long billingWarehouseId; // required
-
 
49513
 
-
 
49514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
49516
      SALE_RETURN_ITEMS((short)1, "saleReturnItems"),
-
 
49517
      VENDOR_ID((short)2, "vendorId"),
-
 
49518
      BILLING_WAREHOUSE_ID((short)3, "billingWarehouseId");
-
 
49519
 
-
 
49520
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
49521
 
-
 
49522
      static {
-
 
49523
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
49524
          byName.put(field.getFieldName(), field);
-
 
49525
        }
-
 
49526
      }
-
 
49527
 
-
 
49528
      /**
-
 
49529
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
49530
       */
-
 
49531
      public static _Fields findByThriftId(int fieldId) {
-
 
49532
        switch(fieldId) {
-
 
49533
          case 1: // SALE_RETURN_ITEMS
-
 
49534
            return SALE_RETURN_ITEMS;
-
 
49535
          case 2: // VENDOR_ID
-
 
49536
            return VENDOR_ID;
-
 
49537
          case 3: // BILLING_WAREHOUSE_ID
-
 
49538
            return BILLING_WAREHOUSE_ID;
-
 
49539
          default:
-
 
49540
            return null;
-
 
49541
        }
-
 
49542
      }
-
 
49543
 
-
 
49544
      /**
-
 
49545
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
49546
       * if it is not found.
-
 
49547
       */
-
 
49548
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
49549
        _Fields fields = findByThriftId(fieldId);
-
 
49550
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
49551
        return fields;
-
 
49552
      }
-
 
49553
 
-
 
49554
      /**
-
 
49555
       * Find the _Fields constant that matches name, or null if its not found.
-
 
49556
       */
-
 
49557
      public static _Fields findByName(String name) {
-
 
49558
        return byName.get(name);
-
 
49559
      }
-
 
49560
 
-
 
49561
      private final short _thriftId;
-
 
49562
      private final String _fieldName;
-
 
49563
 
-
 
49564
      _Fields(short thriftId, String fieldName) {
-
 
49565
        _thriftId = thriftId;
-
 
49566
        _fieldName = fieldName;
-
 
49567
      }
-
 
49568
 
-
 
49569
      public short getThriftFieldId() {
-
 
49570
        return _thriftId;
-
 
49571
      }
-
 
49572
 
-
 
49573
      public String getFieldName() {
-
 
49574
        return _fieldName;
-
 
49575
      }
-
 
49576
    }
-
 
49577
 
-
 
49578
    // isset id assignments
-
 
49579
    private static final int __VENDORID_ISSET_ID = 0;
-
 
49580
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
-
 
49581
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
49582
 
-
 
49583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
49584
    static {
-
 
49585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
49586
      tmpMap.put(_Fields.SALE_RETURN_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("saleReturnItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49587
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
49588
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
49589
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
49591
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
49593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
49594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForBadPurchaseReturn_args.class, metaDataMap);
-
 
49595
    }
-
 
49596
 
-
 
49597
    public scanForBadPurchaseReturn_args() {
-
 
49598
    }
-
 
49599
 
-
 
49600
    public scanForBadPurchaseReturn_args(
-
 
49601
      List<InventoryItem> saleReturnItems,
-
 
49602
      long vendorId,
-
 
49603
      long billingWarehouseId)
-
 
49604
    {
-
 
49605
      this();
-
 
49606
      this.saleReturnItems = saleReturnItems;
-
 
49607
      this.vendorId = vendorId;
-
 
49608
      setVendorIdIsSet(true);
-
 
49609
      this.billingWarehouseId = billingWarehouseId;
-
 
49610
      setBillingWarehouseIdIsSet(true);
-
 
49611
    }
-
 
49612
 
-
 
49613
    /**
-
 
49614
     * Performs a deep copy on <i>other</i>.
-
 
49615
     */
-
 
49616
    public scanForBadPurchaseReturn_args(scanForBadPurchaseReturn_args other) {
-
 
49617
      __isset_bit_vector.clear();
-
 
49618
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
49619
      if (other.isSetSaleReturnItems()) {
-
 
49620
        List<InventoryItem> __this__saleReturnItems = new ArrayList<InventoryItem>();
-
 
49621
        for (InventoryItem other_element : other.saleReturnItems) {
-
 
49622
          __this__saleReturnItems.add(new InventoryItem(other_element));
-
 
49623
        }
-
 
49624
        this.saleReturnItems = __this__saleReturnItems;
-
 
49625
      }
-
 
49626
      this.vendorId = other.vendorId;
-
 
49627
      this.billingWarehouseId = other.billingWarehouseId;
-
 
49628
    }
-
 
49629
 
-
 
49630
    public scanForBadPurchaseReturn_args deepCopy() {
-
 
49631
      return new scanForBadPurchaseReturn_args(this);
-
 
49632
    }
-
 
49633
 
-
 
49634
    @Override
-
 
49635
    public void clear() {
-
 
49636
      this.saleReturnItems = null;
-
 
49637
      setVendorIdIsSet(false);
-
 
49638
      this.vendorId = 0;
-
 
49639
      setBillingWarehouseIdIsSet(false);
-
 
49640
      this.billingWarehouseId = 0;
-
 
49641
    }
-
 
49642
 
-
 
49643
    public int getSaleReturnItemsSize() {
-
 
49644
      return (this.saleReturnItems == null) ? 0 : this.saleReturnItems.size();
-
 
49645
    }
-
 
49646
 
-
 
49647
    public java.util.Iterator<InventoryItem> getSaleReturnItemsIterator() {
-
 
49648
      return (this.saleReturnItems == null) ? null : this.saleReturnItems.iterator();
-
 
49649
    }
-
 
49650
 
-
 
49651
    public void addToSaleReturnItems(InventoryItem elem) {
-
 
49652
      if (this.saleReturnItems == null) {
-
 
49653
        this.saleReturnItems = new ArrayList<InventoryItem>();
-
 
49654
      }
-
 
49655
      this.saleReturnItems.add(elem);
-
 
49656
    }
-
 
49657
 
-
 
49658
    public List<InventoryItem> getSaleReturnItems() {
-
 
49659
      return this.saleReturnItems;
-
 
49660
    }
-
 
49661
 
-
 
49662
    public void setSaleReturnItems(List<InventoryItem> saleReturnItems) {
-
 
49663
      this.saleReturnItems = saleReturnItems;
-
 
49664
    }
-
 
49665
 
-
 
49666
    public void unsetSaleReturnItems() {
-
 
49667
      this.saleReturnItems = null;
-
 
49668
    }
-
 
49669
 
-
 
49670
    /** Returns true if field saleReturnItems is set (has been assigned a value) and false otherwise */
-
 
49671
    public boolean isSetSaleReturnItems() {
-
 
49672
      return this.saleReturnItems != null;
-
 
49673
    }
-
 
49674
 
-
 
49675
    public void setSaleReturnItemsIsSet(boolean value) {
-
 
49676
      if (!value) {
-
 
49677
        this.saleReturnItems = null;
-
 
49678
      }
-
 
49679
    }
-
 
49680
 
-
 
49681
    public long getVendorId() {
-
 
49682
      return this.vendorId;
-
 
49683
    }
-
 
49684
 
-
 
49685
    public void setVendorId(long vendorId) {
-
 
49686
      this.vendorId = vendorId;
-
 
49687
      setVendorIdIsSet(true);
-
 
49688
    }
-
 
49689
 
-
 
49690
    public void unsetVendorId() {
-
 
49691
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
-
 
49692
    }
-
 
49693
 
-
 
49694
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
-
 
49695
    public boolean isSetVendorId() {
-
 
49696
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
-
 
49697
    }
-
 
49698
 
-
 
49699
    public void setVendorIdIsSet(boolean value) {
-
 
49700
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
-
 
49701
    }
-
 
49702
 
-
 
49703
    public long getBillingWarehouseId() {
-
 
49704
      return this.billingWarehouseId;
-
 
49705
    }
-
 
49706
 
-
 
49707
    public void setBillingWarehouseId(long billingWarehouseId) {
-
 
49708
      this.billingWarehouseId = billingWarehouseId;
-
 
49709
      setBillingWarehouseIdIsSet(true);
-
 
49710
    }
-
 
49711
 
-
 
49712
    public void unsetBillingWarehouseId() {
-
 
49713
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
49714
    }
-
 
49715
 
-
 
49716
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
-
 
49717
    public boolean isSetBillingWarehouseId() {
-
 
49718
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
49719
    }
-
 
49720
 
-
 
49721
    public void setBillingWarehouseIdIsSet(boolean value) {
-
 
49722
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
-
 
49723
    }
-
 
49724
 
-
 
49725
    public void setFieldValue(_Fields field, Object value) {
-
 
49726
      switch (field) {
-
 
49727
      case SALE_RETURN_ITEMS:
-
 
49728
        if (value == null) {
-
 
49729
          unsetSaleReturnItems();
-
 
49730
        } else {
-
 
49731
          setSaleReturnItems((List<InventoryItem>)value);
-
 
49732
        }
-
 
49733
        break;
-
 
49734
 
-
 
49735
      case VENDOR_ID:
-
 
49736
        if (value == null) {
-
 
49737
          unsetVendorId();
-
 
49738
        } else {
-
 
49739
          setVendorId((Long)value);
-
 
49740
        }
-
 
49741
        break;
-
 
49742
 
-
 
49743
      case BILLING_WAREHOUSE_ID:
-
 
49744
        if (value == null) {
-
 
49745
          unsetBillingWarehouseId();
-
 
49746
        } else {
-
 
49747
          setBillingWarehouseId((Long)value);
-
 
49748
        }
-
 
49749
        break;
-
 
49750
 
-
 
49751
      }
-
 
49752
    }
-
 
49753
 
-
 
49754
    public Object getFieldValue(_Fields field) {
-
 
49755
      switch (field) {
-
 
49756
      case SALE_RETURN_ITEMS:
-
 
49757
        return getSaleReturnItems();
-
 
49758
 
-
 
49759
      case VENDOR_ID:
-
 
49760
        return Long.valueOf(getVendorId());
-
 
49761
 
-
 
49762
      case BILLING_WAREHOUSE_ID:
-
 
49763
        return Long.valueOf(getBillingWarehouseId());
-
 
49764
 
-
 
49765
      }
-
 
49766
      throw new IllegalStateException();
-
 
49767
    }
-
 
49768
 
-
 
49769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
49770
    public boolean isSet(_Fields field) {
-
 
49771
      if (field == null) {
-
 
49772
        throw new IllegalArgumentException();
-
 
49773
      }
-
 
49774
 
-
 
49775
      switch (field) {
-
 
49776
      case SALE_RETURN_ITEMS:
-
 
49777
        return isSetSaleReturnItems();
-
 
49778
      case VENDOR_ID:
-
 
49779
        return isSetVendorId();
-
 
49780
      case BILLING_WAREHOUSE_ID:
-
 
49781
        return isSetBillingWarehouseId();
-
 
49782
      }
-
 
49783
      throw new IllegalStateException();
-
 
49784
    }
-
 
49785
 
-
 
49786
    @Override
-
 
49787
    public boolean equals(Object that) {
-
 
49788
      if (that == null)
-
 
49789
        return false;
-
 
49790
      if (that instanceof scanForBadPurchaseReturn_args)
-
 
49791
        return this.equals((scanForBadPurchaseReturn_args)that);
-
 
49792
      return false;
-
 
49793
    }
-
 
49794
 
-
 
49795
    public boolean equals(scanForBadPurchaseReturn_args that) {
-
 
49796
      if (that == null)
-
 
49797
        return false;
-
 
49798
 
-
 
49799
      boolean this_present_saleReturnItems = true && this.isSetSaleReturnItems();
-
 
49800
      boolean that_present_saleReturnItems = true && that.isSetSaleReturnItems();
-
 
49801
      if (this_present_saleReturnItems || that_present_saleReturnItems) {
-
 
49802
        if (!(this_present_saleReturnItems && that_present_saleReturnItems))
-
 
49803
          return false;
-
 
49804
        if (!this.saleReturnItems.equals(that.saleReturnItems))
-
 
49805
          return false;
-
 
49806
      }
-
 
49807
 
-
 
49808
      boolean this_present_vendorId = true;
-
 
49809
      boolean that_present_vendorId = true;
-
 
49810
      if (this_present_vendorId || that_present_vendorId) {
-
 
49811
        if (!(this_present_vendorId && that_present_vendorId))
-
 
49812
          return false;
-
 
49813
        if (this.vendorId != that.vendorId)
-
 
49814
          return false;
-
 
49815
      }
-
 
49816
 
-
 
49817
      boolean this_present_billingWarehouseId = true;
-
 
49818
      boolean that_present_billingWarehouseId = true;
-
 
49819
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
-
 
49820
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
-
 
49821
          return false;
-
 
49822
        if (this.billingWarehouseId != that.billingWarehouseId)
-
 
49823
          return false;
-
 
49824
      }
-
 
49825
 
-
 
49826
      return true;
-
 
49827
    }
-
 
49828
 
-
 
49829
    @Override
-
 
49830
    public int hashCode() {
-
 
49831
      return 0;
-
 
49832
    }
-
 
49833
 
-
 
49834
    public int compareTo(scanForBadPurchaseReturn_args other) {
-
 
49835
      if (!getClass().equals(other.getClass())) {
-
 
49836
        return getClass().getName().compareTo(other.getClass().getName());
-
 
49837
      }
-
 
49838
 
-
 
49839
      int lastComparison = 0;
-
 
49840
      scanForBadPurchaseReturn_args typedOther = (scanForBadPurchaseReturn_args)other;
-
 
49841
 
-
 
49842
      lastComparison = Boolean.valueOf(isSetSaleReturnItems()).compareTo(typedOther.isSetSaleReturnItems());
-
 
49843
      if (lastComparison != 0) {
-
 
49844
        return lastComparison;
-
 
49845
      }
-
 
49846
      if (isSetSaleReturnItems()) {
-
 
49847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saleReturnItems, typedOther.saleReturnItems);
-
 
49848
        if (lastComparison != 0) {
-
 
49849
          return lastComparison;
-
 
49850
        }
-
 
49851
      }
-
 
49852
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
-
 
49853
      if (lastComparison != 0) {
-
 
49854
        return lastComparison;
-
 
49855
      }
-
 
49856
      if (isSetVendorId()) {
-
 
49857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
-
 
49858
        if (lastComparison != 0) {
-
 
49859
          return lastComparison;
-
 
49860
        }
-
 
49861
      }
-
 
49862
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
-
 
49863
      if (lastComparison != 0) {
-
 
49864
        return lastComparison;
-
 
49865
      }
-
 
49866
      if (isSetBillingWarehouseId()) {
-
 
49867
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
-
 
49868
        if (lastComparison != 0) {
-
 
49869
          return lastComparison;
-
 
49870
        }
-
 
49871
      }
-
 
49872
      return 0;
-
 
49873
    }
-
 
49874
 
-
 
49875
    public _Fields fieldForId(int fieldId) {
-
 
49876
      return _Fields.findByThriftId(fieldId);
-
 
49877
    }
-
 
49878
 
-
 
49879
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
49880
      org.apache.thrift.protocol.TField field;
-
 
49881
      iprot.readStructBegin();
-
 
49882
      while (true)
-
 
49883
      {
-
 
49884
        field = iprot.readFieldBegin();
-
 
49885
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
49886
          break;
-
 
49887
        }
-
 
49888
        switch (field.id) {
-
 
49889
          case 1: // SALE_RETURN_ITEMS
-
 
49890
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
49891
              {
-
 
49892
                org.apache.thrift.protocol.TList _list149 = iprot.readListBegin();
-
 
49893
                this.saleReturnItems = new ArrayList<InventoryItem>(_list149.size);
-
 
49894
                for (int _i150 = 0; _i150 < _list149.size; ++_i150)
-
 
49895
                {
-
 
49896
                  InventoryItem _elem151; // required
-
 
49897
                  _elem151 = new InventoryItem();
-
 
49898
                  _elem151.read(iprot);
-
 
49899
                  this.saleReturnItems.add(_elem151);
-
 
49900
                }
-
 
49901
                iprot.readListEnd();
-
 
49902
              }
-
 
49903
            } else { 
-
 
49904
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49905
            }
-
 
49906
            break;
-
 
49907
          case 2: // VENDOR_ID
-
 
49908
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
49909
              this.vendorId = iprot.readI64();
-
 
49910
              setVendorIdIsSet(true);
-
 
49911
            } else { 
-
 
49912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49913
            }
-
 
49914
            break;
-
 
49915
          case 3: // BILLING_WAREHOUSE_ID
-
 
49916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
49917
              this.billingWarehouseId = iprot.readI64();
-
 
49918
              setBillingWarehouseIdIsSet(true);
-
 
49919
            } else { 
-
 
49920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49921
            }
-
 
49922
            break;
-
 
49923
          default:
-
 
49924
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49925
        }
-
 
49926
        iprot.readFieldEnd();
-
 
49927
      }
-
 
49928
      iprot.readStructEnd();
-
 
49929
      validate();
-
 
49930
    }
-
 
49931
 
-
 
49932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
49933
      validate();
-
 
49934
 
-
 
49935
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49936
      if (this.saleReturnItems != null) {
-
 
49937
        oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
-
 
49938
        {
-
 
49939
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
-
 
49940
          for (InventoryItem _iter152 : this.saleReturnItems)
-
 
49941
          {
-
 
49942
            _iter152.write(oprot);
-
 
49943
          }
-
 
49944
          oprot.writeListEnd();
-
 
49945
        }
-
 
49946
        oprot.writeFieldEnd();
-
 
49947
      }
-
 
49948
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
49949
      oprot.writeI64(this.vendorId);
-
 
49950
      oprot.writeFieldEnd();
-
 
49951
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
-
 
49952
      oprot.writeI64(this.billingWarehouseId);
-
 
49953
      oprot.writeFieldEnd();
-
 
49954
      oprot.writeFieldStop();
-
 
49955
      oprot.writeStructEnd();
-
 
49956
    }
-
 
49957
 
-
 
49958
    @Override
-
 
49959
    public String toString() {
-
 
49960
      StringBuilder sb = new StringBuilder("scanForBadPurchaseReturn_args(");
-
 
49961
      boolean first = true;
-
 
49962
 
-
 
49963
      sb.append("saleReturnItems:");
-
 
49964
      if (this.saleReturnItems == null) {
-
 
49965
        sb.append("null");
-
 
49966
      } else {
-
 
49967
        sb.append(this.saleReturnItems);
-
 
49968
      }
-
 
49969
      first = false;
-
 
49970
      if (!first) sb.append(", ");
-
 
49971
      sb.append("vendorId:");
-
 
49972
      sb.append(this.vendorId);
-
 
49973
      first = false;
-
 
49974
      if (!first) sb.append(", ");
-
 
49975
      sb.append("billingWarehouseId:");
-
 
49976
      sb.append(this.billingWarehouseId);
-
 
49977
      first = false;
-
 
49978
      sb.append(")");
-
 
49979
      return sb.toString();
-
 
49980
    }
-
 
49981
 
-
 
49982
    public void validate() throws org.apache.thrift.TException {
-
 
49983
      // check for required fields
-
 
49984
    }
-
 
49985
 
-
 
49986
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
49987
      try {
-
 
49988
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
49989
      } catch (org.apache.thrift.TException te) {
-
 
49990
        throw new java.io.IOException(te);
-
 
49991
      }
-
 
49992
    }
-
 
49993
 
-
 
49994
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
49995
      try {
-
 
49996
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
49997
        __isset_bit_vector = new BitSet(1);
-
 
49998
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
49999
      } catch (org.apache.thrift.TException te) {
-
 
50000
        throw new java.io.IOException(te);
-
 
50001
      }
-
 
50002
    }
-
 
50003
 
-
 
50004
  }
-
 
50005
 
-
 
50006
  public static class scanForBadPurchaseReturn_result implements org.apache.thrift.TBase<scanForBadPurchaseReturn_result, scanForBadPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
50007
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForBadPurchaseReturn_result");
-
 
50008
 
-
 
50009
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
50010
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
50011
 
-
 
50012
    private long success; // required
-
 
50013
    private WarehouseServiceException ex; // required
-
 
50014
 
-
 
50015
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50016
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
50017
      SUCCESS((short)0, "success"),
-
 
50018
      EX((short)1, "ex");
-
 
50019
 
-
 
50020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50021
 
-
 
50022
      static {
-
 
50023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50024
          byName.put(field.getFieldName(), field);
-
 
50025
        }
-
 
50026
      }
-
 
50027
 
-
 
50028
      /**
-
 
50029
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50030
       */
-
 
50031
      public static _Fields findByThriftId(int fieldId) {
-
 
50032
        switch(fieldId) {
-
 
50033
          case 0: // SUCCESS
-
 
50034
            return SUCCESS;
-
 
50035
          case 1: // EX
-
 
50036
            return EX;
-
 
50037
          default:
-
 
50038
            return null;
-
 
50039
        }
-
 
50040
      }
-
 
50041
 
-
 
50042
      /**
-
 
50043
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50044
       * if it is not found.
-
 
50045
       */
-
 
50046
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50047
        _Fields fields = findByThriftId(fieldId);
-
 
50048
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50049
        return fields;
-
 
50050
      }
-
 
50051
 
-
 
50052
      /**
-
 
50053
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50054
       */
-
 
50055
      public static _Fields findByName(String name) {
-
 
50056
        return byName.get(name);
-
 
50057
      }
-
 
50058
 
-
 
50059
      private final short _thriftId;
-
 
50060
      private final String _fieldName;
-
 
50061
 
-
 
50062
      _Fields(short thriftId, String fieldName) {
-
 
50063
        _thriftId = thriftId;
-
 
50064
        _fieldName = fieldName;
-
 
50065
      }
-
 
50066
 
-
 
50067
      public short getThriftFieldId() {
-
 
50068
        return _thriftId;
-
 
50069
      }
-
 
50070
 
-
 
50071
      public String getFieldName() {
-
 
50072
        return _fieldName;
-
 
50073
      }
-
 
50074
    }
-
 
50075
 
-
 
50076
    // isset id assignments
-
 
50077
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
50078
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
50079
 
-
 
50080
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
50081
    static {
-
 
50082
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
50083
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50084
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
50085
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
50087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
50088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForBadPurchaseReturn_result.class, metaDataMap);
-
 
50089
    }
-
 
50090
 
-
 
50091
    public scanForBadPurchaseReturn_result() {
-
 
50092
    }
-
 
50093
 
-
 
50094
    public scanForBadPurchaseReturn_result(
-
 
50095
      long success,
-
 
50096
      WarehouseServiceException ex)
-
 
50097
    {
-
 
50098
      this();
-
 
50099
      this.success = success;
-
 
50100
      setSuccessIsSet(true);
-
 
50101
      this.ex = ex;
-
 
50102
    }
-
 
50103
 
-
 
50104
    /**
-
 
50105
     * Performs a deep copy on <i>other</i>.
-
 
50106
     */
-
 
50107
    public scanForBadPurchaseReturn_result(scanForBadPurchaseReturn_result other) {
-
 
50108
      __isset_bit_vector.clear();
-
 
50109
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
50110
      this.success = other.success;
-
 
50111
      if (other.isSetEx()) {
-
 
50112
        this.ex = new WarehouseServiceException(other.ex);
-
 
50113
      }
-
 
50114
    }
-
 
50115
 
-
 
50116
    public scanForBadPurchaseReturn_result deepCopy() {
-
 
50117
      return new scanForBadPurchaseReturn_result(this);
-
 
50118
    }
-
 
50119
 
-
 
50120
    @Override
-
 
50121
    public void clear() {
-
 
50122
      setSuccessIsSet(false);
-
 
50123
      this.success = 0;
-
 
50124
      this.ex = null;
-
 
50125
    }
-
 
50126
 
-
 
50127
    public long getSuccess() {
-
 
50128
      return this.success;
-
 
50129
    }
-
 
50130
 
-
 
50131
    public void setSuccess(long success) {
-
 
50132
      this.success = success;
-
 
50133
      setSuccessIsSet(true);
-
 
50134
    }
-
 
50135
 
-
 
50136
    public void unsetSuccess() {
-
 
50137
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
50138
    }
-
 
50139
 
-
 
50140
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
50141
    public boolean isSetSuccess() {
-
 
50142
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
50143
    }
-
 
50144
 
-
 
50145
    public void setSuccessIsSet(boolean value) {
-
 
50146
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
50147
    }
-
 
50148
 
-
 
50149
    public WarehouseServiceException getEx() {
-
 
50150
      return this.ex;
-
 
50151
    }
-
 
50152
 
-
 
50153
    public void setEx(WarehouseServiceException ex) {
-
 
50154
      this.ex = ex;
-
 
50155
    }
-
 
50156
 
-
 
50157
    public void unsetEx() {
-
 
50158
      this.ex = null;
-
 
50159
    }
-
 
50160
 
-
 
50161
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
50162
    public boolean isSetEx() {
-
 
50163
      return this.ex != null;
-
 
50164
    }
-
 
50165
 
-
 
50166
    public void setExIsSet(boolean value) {
-
 
50167
      if (!value) {
-
 
50168
        this.ex = null;
-
 
50169
      }
-
 
50170
    }
-
 
50171
 
-
 
50172
    public void setFieldValue(_Fields field, Object value) {
-
 
50173
      switch (field) {
-
 
50174
      case SUCCESS:
-
 
50175
        if (value == null) {
-
 
50176
          unsetSuccess();
-
 
50177
        } else {
-
 
50178
          setSuccess((Long)value);
-
 
50179
        }
-
 
50180
        break;
-
 
50181
 
-
 
50182
      case EX:
-
 
50183
        if (value == null) {
-
 
50184
          unsetEx();
-
 
50185
        } else {
-
 
50186
          setEx((WarehouseServiceException)value);
-
 
50187
        }
-
 
50188
        break;
-
 
50189
 
-
 
50190
      }
-
 
50191
    }
-
 
50192
 
-
 
50193
    public Object getFieldValue(_Fields field) {
-
 
50194
      switch (field) {
-
 
50195
      case SUCCESS:
-
 
50196
        return Long.valueOf(getSuccess());
-
 
50197
 
-
 
50198
      case EX:
-
 
50199
        return getEx();
-
 
50200
 
-
 
50201
      }
-
 
50202
      throw new IllegalStateException();
-
 
50203
    }
-
 
50204
 
-
 
50205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
50206
    public boolean isSet(_Fields field) {
-
 
50207
      if (field == null) {
-
 
50208
        throw new IllegalArgumentException();
-
 
50209
      }
-
 
50210
 
-
 
50211
      switch (field) {
-
 
50212
      case SUCCESS:
-
 
50213
        return isSetSuccess();
-
 
50214
      case EX:
-
 
50215
        return isSetEx();
-
 
50216
      }
-
 
50217
      throw new IllegalStateException();
-
 
50218
    }
-
 
50219
 
-
 
50220
    @Override
-
 
50221
    public boolean equals(Object that) {
-
 
50222
      if (that == null)
-
 
50223
        return false;
-
 
50224
      if (that instanceof scanForBadPurchaseReturn_result)
-
 
50225
        return this.equals((scanForBadPurchaseReturn_result)that);
-
 
50226
      return false;
-
 
50227
    }
-
 
50228
 
-
 
50229
    public boolean equals(scanForBadPurchaseReturn_result that) {
-
 
50230
      if (that == null)
-
 
50231
        return false;
-
 
50232
 
-
 
50233
      boolean this_present_success = true;
-
 
50234
      boolean that_present_success = true;
-
 
50235
      if (this_present_success || that_present_success) {
-
 
50236
        if (!(this_present_success && that_present_success))
-
 
50237
          return false;
-
 
50238
        if (this.success != that.success)
-
 
50239
          return false;
-
 
50240
      }
-
 
50241
 
-
 
50242
      boolean this_present_ex = true && this.isSetEx();
-
 
50243
      boolean that_present_ex = true && that.isSetEx();
-
 
50244
      if (this_present_ex || that_present_ex) {
-
 
50245
        if (!(this_present_ex && that_present_ex))
-
 
50246
          return false;
-
 
50247
        if (!this.ex.equals(that.ex))
-
 
50248
          return false;
-
 
50249
      }
-
 
50250
 
-
 
50251
      return true;
-
 
50252
    }
-
 
50253
 
-
 
50254
    @Override
-
 
50255
    public int hashCode() {
-
 
50256
      return 0;
-
 
50257
    }
-
 
50258
 
-
 
50259
    public int compareTo(scanForBadPurchaseReturn_result other) {
-
 
50260
      if (!getClass().equals(other.getClass())) {
-
 
50261
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50262
      }
-
 
50263
 
-
 
50264
      int lastComparison = 0;
-
 
50265
      scanForBadPurchaseReturn_result typedOther = (scanForBadPurchaseReturn_result)other;
-
 
50266
 
-
 
50267
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
50268
      if (lastComparison != 0) {
-
 
50269
        return lastComparison;
-
 
50270
      }
-
 
50271
      if (isSetSuccess()) {
-
 
50272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
50273
        if (lastComparison != 0) {
-
 
50274
          return lastComparison;
-
 
50275
        }
-
 
50276
      }
-
 
50277
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
50278
      if (lastComparison != 0) {
-
 
50279
        return lastComparison;
-
 
50280
      }
-
 
50281
      if (isSetEx()) {
-
 
50282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
50283
        if (lastComparison != 0) {
-
 
50284
          return lastComparison;
-
 
50285
        }
-
 
50286
      }
-
 
50287
      return 0;
-
 
50288
    }
-
 
50289
 
-
 
50290
    public _Fields fieldForId(int fieldId) {
-
 
50291
      return _Fields.findByThriftId(fieldId);
-
 
50292
    }
-
 
50293
 
-
 
50294
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
50295
      org.apache.thrift.protocol.TField field;
-
 
50296
      iprot.readStructBegin();
-
 
50297
      while (true)
-
 
50298
      {
-
 
50299
        field = iprot.readFieldBegin();
-
 
50300
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
50301
          break;
-
 
50302
        }
-
 
50303
        switch (field.id) {
-
 
50304
          case 0: // SUCCESS
-
 
50305
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
50306
              this.success = iprot.readI64();
-
 
50307
              setSuccessIsSet(true);
-
 
50308
            } else { 
-
 
50309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50310
            }
-
 
50311
            break;
-
 
50312
          case 1: // EX
-
 
50313
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
50314
              this.ex = new WarehouseServiceException();
-
 
50315
              this.ex.read(iprot);
-
 
50316
            } else { 
-
 
50317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50318
            }
-
 
50319
            break;
-
 
50320
          default:
-
 
50321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50322
        }
-
 
50323
        iprot.readFieldEnd();
-
 
50324
      }
-
 
50325
      iprot.readStructEnd();
-
 
50326
      validate();
-
 
50327
    }
-
 
50328
 
-
 
50329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
50330
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50331
 
-
 
50332
      if (this.isSetSuccess()) {
-
 
50333
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
50334
        oprot.writeI64(this.success);
-
 
50335
        oprot.writeFieldEnd();
-
 
50336
      } else if (this.isSetEx()) {
-
 
50337
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
50338
        this.ex.write(oprot);
-
 
50339
        oprot.writeFieldEnd();
-
 
50340
      }
-
 
50341
      oprot.writeFieldStop();
-
 
50342
      oprot.writeStructEnd();
-
 
50343
    }
-
 
50344
 
-
 
50345
    @Override
-
 
50346
    public String toString() {
-
 
50347
      StringBuilder sb = new StringBuilder("scanForBadPurchaseReturn_result(");
-
 
50348
      boolean first = true;
-
 
50349
 
-
 
50350
      sb.append("success:");
-
 
50351
      sb.append(this.success);
-
 
50352
      first = false;
-
 
50353
      if (!first) sb.append(", ");
-
 
50354
      sb.append("ex:");
-
 
50355
      if (this.ex == null) {
-
 
50356
        sb.append("null");
-
 
50357
      } else {
-
 
50358
        sb.append(this.ex);
-
 
50359
      }
-
 
50360
      first = false;
-
 
50361
      sb.append(")");
-
 
50362
      return sb.toString();
-
 
50363
    }
-
 
50364
 
-
 
50365
    public void validate() throws org.apache.thrift.TException {
-
 
50366
      // check for required fields
-
 
50367
    }
-
 
50368
 
-
 
50369
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
50370
      try {
-
 
50371
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
50372
      } catch (org.apache.thrift.TException te) {
-
 
50373
        throw new java.io.IOException(te);
-
 
50374
      }
-
 
50375
    }
-
 
50376
 
-
 
50377
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
50378
      try {
-
 
50379
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
50380
      } catch (org.apache.thrift.TException te) {
-
 
50381
        throw new java.io.IOException(te);
-
 
50382
      }
-
 
50383
    }
-
 
50384
 
-
 
50385
  }
-
 
50386
 
-
 
50387
  public static class getItemsInPurchaseReturn_args implements org.apache.thrift.TBase<getItemsInPurchaseReturn_args, getItemsInPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
50388
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInPurchaseReturn_args");
-
 
50389
 
-
 
50390
    private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturnId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
50391
 
-
 
50392
    private long purchaseReturnId; // required
-
 
50393
 
-
 
50394
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50395
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
50396
      PURCHASE_RETURN_ID((short)1, "purchaseReturnId");
-
 
50397
 
-
 
50398
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50399
 
-
 
50400
      static {
-
 
50401
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50402
          byName.put(field.getFieldName(), field);
-
 
50403
        }
-
 
50404
      }
-
 
50405
 
-
 
50406
      /**
-
 
50407
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50408
       */
-
 
50409
      public static _Fields findByThriftId(int fieldId) {
-
 
50410
        switch(fieldId) {
-
 
50411
          case 1: // PURCHASE_RETURN_ID
-
 
50412
            return PURCHASE_RETURN_ID;
-
 
50413
          default:
-
 
50414
            return null;
-
 
50415
        }
-
 
50416
      }
-
 
50417
 
-
 
50418
      /**
-
 
50419
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50420
       * if it is not found.
-
 
50421
       */
-
 
50422
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50423
        _Fields fields = findByThriftId(fieldId);
-
 
50424
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50425
        return fields;
-
 
50426
      }
-
 
50427
 
-
 
50428
      /**
-
 
50429
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50430
       */
-
 
50431
      public static _Fields findByName(String name) {
-
 
50432
        return byName.get(name);
-
 
50433
      }
-
 
50434
 
-
 
50435
      private final short _thriftId;
-
 
50436
      private final String _fieldName;
-
 
50437
 
-
 
50438
      _Fields(short thriftId, String fieldName) {
-
 
50439
        _thriftId = thriftId;
-
 
50440
        _fieldName = fieldName;
-
 
50441
      }
-
 
50442
 
-
 
50443
      public short getThriftFieldId() {
-
 
50444
        return _thriftId;
-
 
50445
      }
-
 
50446
 
-
 
50447
      public String getFieldName() {
-
 
50448
        return _fieldName;
-
 
50449
      }
-
 
50450
    }
-
 
50451
 
-
 
50452
    // isset id assignments
-
 
50453
    private static final int __PURCHASERETURNID_ISSET_ID = 0;
-
 
50454
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
50455
 
-
 
50456
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
50457
    static {
-
 
50458
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
50459
      tmpMap.put(_Fields.PURCHASE_RETURN_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50460
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
50461
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
50462
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInPurchaseReturn_args.class, metaDataMap);
-
 
50463
    }
-
 
50464
 
-
 
50465
    public getItemsInPurchaseReturn_args() {
-
 
50466
    }
-
 
50467
 
-
 
50468
    public getItemsInPurchaseReturn_args(
-
 
50469
      long purchaseReturnId)
-
 
50470
    {
-
 
50471
      this();
-
 
50472
      this.purchaseReturnId = purchaseReturnId;
-
 
50473
      setPurchaseReturnIdIsSet(true);
-
 
50474
    }
-
 
50475
 
-
 
50476
    /**
-
 
50477
     * Performs a deep copy on <i>other</i>.
-
 
50478
     */
-
 
50479
    public getItemsInPurchaseReturn_args(getItemsInPurchaseReturn_args other) {
-
 
50480
      __isset_bit_vector.clear();
-
 
50481
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
50482
      this.purchaseReturnId = other.purchaseReturnId;
-
 
50483
    }
-
 
50484
 
-
 
50485
    public getItemsInPurchaseReturn_args deepCopy() {
-
 
50486
      return new getItemsInPurchaseReturn_args(this);
-
 
50487
    }
-
 
50488
 
-
 
50489
    @Override
-
 
50490
    public void clear() {
-
 
50491
      setPurchaseReturnIdIsSet(false);
-
 
50492
      this.purchaseReturnId = 0;
-
 
50493
    }
-
 
50494
 
-
 
50495
    public long getPurchaseReturnId() {
-
 
50496
      return this.purchaseReturnId;
-
 
50497
    }
-
 
50498
 
-
 
50499
    public void setPurchaseReturnId(long purchaseReturnId) {
-
 
50500
      this.purchaseReturnId = purchaseReturnId;
-
 
50501
      setPurchaseReturnIdIsSet(true);
-
 
50502
    }
-
 
50503
 
-
 
50504
    public void unsetPurchaseReturnId() {
-
 
50505
      __isset_bit_vector.clear(__PURCHASERETURNID_ISSET_ID);
-
 
50506
    }
-
 
50507
 
-
 
50508
    /** Returns true if field purchaseReturnId is set (has been assigned a value) and false otherwise */
-
 
50509
    public boolean isSetPurchaseReturnId() {
-
 
50510
      return __isset_bit_vector.get(__PURCHASERETURNID_ISSET_ID);
-
 
50511
    }
-
 
50512
 
-
 
50513
    public void setPurchaseReturnIdIsSet(boolean value) {
-
 
50514
      __isset_bit_vector.set(__PURCHASERETURNID_ISSET_ID, value);
-
 
50515
    }
-
 
50516
 
-
 
50517
    public void setFieldValue(_Fields field, Object value) {
-
 
50518
      switch (field) {
-
 
50519
      case PURCHASE_RETURN_ID:
-
 
50520
        if (value == null) {
-
 
50521
          unsetPurchaseReturnId();
-
 
50522
        } else {
-
 
50523
          setPurchaseReturnId((Long)value);
-
 
50524
        }
-
 
50525
        break;
-
 
50526
 
-
 
50527
      }
-
 
50528
    }
-
 
50529
 
-
 
50530
    public Object getFieldValue(_Fields field) {
-
 
50531
      switch (field) {
-
 
50532
      case PURCHASE_RETURN_ID:
-
 
50533
        return Long.valueOf(getPurchaseReturnId());
-
 
50534
 
-
 
50535
      }
-
 
50536
      throw new IllegalStateException();
-
 
50537
    }
-
 
50538
 
-
 
50539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
50540
    public boolean isSet(_Fields field) {
-
 
50541
      if (field == null) {
-
 
50542
        throw new IllegalArgumentException();
-
 
50543
      }
-
 
50544
 
-
 
50545
      switch (field) {
-
 
50546
      case PURCHASE_RETURN_ID:
-
 
50547
        return isSetPurchaseReturnId();
-
 
50548
      }
-
 
50549
      throw new IllegalStateException();
-
 
50550
    }
-
 
50551
 
-
 
50552
    @Override
-
 
50553
    public boolean equals(Object that) {
-
 
50554
      if (that == null)
-
 
50555
        return false;
-
 
50556
      if (that instanceof getItemsInPurchaseReturn_args)
-
 
50557
        return this.equals((getItemsInPurchaseReturn_args)that);
-
 
50558
      return false;
-
 
50559
    }
-
 
50560
 
-
 
50561
    public boolean equals(getItemsInPurchaseReturn_args that) {
-
 
50562
      if (that == null)
-
 
50563
        return false;
-
 
50564
 
-
 
50565
      boolean this_present_purchaseReturnId = true;
-
 
50566
      boolean that_present_purchaseReturnId = true;
-
 
50567
      if (this_present_purchaseReturnId || that_present_purchaseReturnId) {
-
 
50568
        if (!(this_present_purchaseReturnId && that_present_purchaseReturnId))
-
 
50569
          return false;
-
 
50570
        if (this.purchaseReturnId != that.purchaseReturnId)
-
 
50571
          return false;
-
 
50572
      }
-
 
50573
 
-
 
50574
      return true;
-
 
50575
    }
-
 
50576
 
-
 
50577
    @Override
-
 
50578
    public int hashCode() {
-
 
50579
      return 0;
-
 
50580
    }
-
 
50581
 
-
 
50582
    public int compareTo(getItemsInPurchaseReturn_args other) {
-
 
50583
      if (!getClass().equals(other.getClass())) {
-
 
50584
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50585
      }
-
 
50586
 
-
 
50587
      int lastComparison = 0;
-
 
50588
      getItemsInPurchaseReturn_args typedOther = (getItemsInPurchaseReturn_args)other;
-
 
50589
 
-
 
50590
      lastComparison = Boolean.valueOf(isSetPurchaseReturnId()).compareTo(typedOther.isSetPurchaseReturnId());
-
 
50591
      if (lastComparison != 0) {
-
 
50592
        return lastComparison;
-
 
50593
      }
-
 
50594
      if (isSetPurchaseReturnId()) {
-
 
50595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturnId, typedOther.purchaseReturnId);
-
 
50596
        if (lastComparison != 0) {
-
 
50597
          return lastComparison;
-
 
50598
        }
-
 
50599
      }
-
 
50600
      return 0;
-
 
50601
    }
-
 
50602
 
-
 
50603
    public _Fields fieldForId(int fieldId) {
-
 
50604
      return _Fields.findByThriftId(fieldId);
-
 
50605
    }
-
 
50606
 
-
 
50607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
50608
      org.apache.thrift.protocol.TField field;
-
 
50609
      iprot.readStructBegin();
-
 
50610
      while (true)
-
 
50611
      {
-
 
50612
        field = iprot.readFieldBegin();
-
 
50613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
50614
          break;
-
 
50615
        }
-
 
50616
        switch (field.id) {
-
 
50617
          case 1: // PURCHASE_RETURN_ID
-
 
50618
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
50619
              this.purchaseReturnId = iprot.readI64();
-
 
50620
              setPurchaseReturnIdIsSet(true);
-
 
50621
            } else { 
-
 
50622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50623
            }
-
 
50624
            break;
-
 
50625
          default:
-
 
50626
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50627
        }
-
 
50628
        iprot.readFieldEnd();
-
 
50629
      }
-
 
50630
      iprot.readStructEnd();
-
 
50631
      validate();
-
 
50632
    }
-
 
50633
 
-
 
50634
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
50635
      validate();
-
 
50636
 
-
 
50637
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50638
      oprot.writeFieldBegin(PURCHASE_RETURN_ID_FIELD_DESC);
-
 
50639
      oprot.writeI64(this.purchaseReturnId);
-
 
50640
      oprot.writeFieldEnd();
-
 
50641
      oprot.writeFieldStop();
-
 
50642
      oprot.writeStructEnd();
-
 
50643
    }
-
 
50644
 
-
 
50645
    @Override
-
 
50646
    public String toString() {
-
 
50647
      StringBuilder sb = new StringBuilder("getItemsInPurchaseReturn_args(");
-
 
50648
      boolean first = true;
-
 
50649
 
-
 
50650
      sb.append("purchaseReturnId:");
-
 
50651
      sb.append(this.purchaseReturnId);
-
 
50652
      first = false;
-
 
50653
      sb.append(")");
-
 
50654
      return sb.toString();
-
 
50655
    }
-
 
50656
 
-
 
50657
    public void validate() throws org.apache.thrift.TException {
-
 
50658
      // check for required fields
-
 
50659
    }
-
 
50660
 
-
 
50661
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
50662
      try {
-
 
50663
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
50664
      } catch (org.apache.thrift.TException te) {
-
 
50665
        throw new java.io.IOException(te);
-
 
50666
      }
-
 
50667
    }
-
 
50668
 
-
 
50669
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
50670
      try {
-
 
50671
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
50672
        __isset_bit_vector = new BitSet(1);
-
 
50673
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
50674
      } catch (org.apache.thrift.TException te) {
-
 
50675
        throw new java.io.IOException(te);
-
 
50676
      }
-
 
50677
    }
-
 
50678
 
-
 
50679
  }
-
 
50680
 
-
 
50681
  public static class getItemsInPurchaseReturn_result implements org.apache.thrift.TBase<getItemsInPurchaseReturn_result, getItemsInPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
50682
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInPurchaseReturn_result");
-
 
50683
 
-
 
50684
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
50685
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
50686
 
-
 
50687
    private Map<Long,Long> success; // required
-
 
50688
    private WarehouseServiceException ex; // required
-
 
50689
 
-
 
50690
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50691
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
50692
      SUCCESS((short)0, "success"),
-
 
50693
      EX((short)1, "ex");
-
 
50694
 
-
 
50695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50696
 
-
 
50697
      static {
-
 
50698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50699
          byName.put(field.getFieldName(), field);
-
 
50700
        }
-
 
50701
      }
-
 
50702
 
-
 
50703
      /**
-
 
50704
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50705
       */
-
 
50706
      public static _Fields findByThriftId(int fieldId) {
-
 
50707
        switch(fieldId) {
-
 
50708
          case 0: // SUCCESS
-
 
50709
            return SUCCESS;
-
 
50710
          case 1: // EX
-
 
50711
            return EX;
-
 
50712
          default:
-
 
50713
            return null;
-
 
50714
        }
-
 
50715
      }
-
 
50716
 
-
 
50717
      /**
-
 
50718
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50719
       * if it is not found.
-
 
50720
       */
-
 
50721
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50722
        _Fields fields = findByThriftId(fieldId);
-
 
50723
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50724
        return fields;
-
 
50725
      }
-
 
50726
 
-
 
50727
      /**
-
 
50728
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50729
       */
-
 
50730
      public static _Fields findByName(String name) {
-
 
50731
        return byName.get(name);
-
 
50732
      }
-
 
50733
 
-
 
50734
      private final short _thriftId;
-
 
50735
      private final String _fieldName;
-
 
50736
 
-
 
50737
      _Fields(short thriftId, String fieldName) {
-
 
50738
        _thriftId = thriftId;
-
 
50739
        _fieldName = fieldName;
-
 
50740
      }
-
 
50741
 
-
 
50742
      public short getThriftFieldId() {
-
 
50743
        return _thriftId;
-
 
50744
      }
-
 
50745
 
-
 
50746
      public String getFieldName() {
-
 
50747
        return _fieldName;
-
 
50748
      }
-
 
50749
    }
-
 
50750
 
-
 
50751
    // isset id assignments
-
 
50752
 
-
 
50753
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
50754
    static {
-
 
50755
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
50756
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50757
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
50758
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
50759
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
50760
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
50762
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
50763
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInPurchaseReturn_result.class, metaDataMap);
-
 
50764
    }
-
 
50765
 
-
 
50766
    public getItemsInPurchaseReturn_result() {
-
 
50767
    }
-
 
50768
 
-
 
50769
    public getItemsInPurchaseReturn_result(
-
 
50770
      Map<Long,Long> success,
-
 
50771
      WarehouseServiceException ex)
-
 
50772
    {
-
 
50773
      this();
-
 
50774
      this.success = success;
-
 
50775
      this.ex = ex;
-
 
50776
    }
-
 
50777
 
-
 
50778
    /**
-
 
50779
     * Performs a deep copy on <i>other</i>.
-
 
50780
     */
-
 
50781
    public getItemsInPurchaseReturn_result(getItemsInPurchaseReturn_result other) {
-
 
50782
      if (other.isSetSuccess()) {
-
 
50783
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
-
 
50784
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
-
 
50785
 
-
 
50786
          Long other_element_key = other_element.getKey();
-
 
50787
          Long other_element_value = other_element.getValue();
-
 
50788
 
-
 
50789
          Long __this__success_copy_key = other_element_key;
-
 
50790
 
-
 
50791
          Long __this__success_copy_value = other_element_value;
-
 
50792
 
-
 
50793
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
50794
        }
-
 
50795
        this.success = __this__success;
-
 
50796
      }
-
 
50797
      if (other.isSetEx()) {
-
 
50798
        this.ex = new WarehouseServiceException(other.ex);
-
 
50799
      }
-
 
50800
    }
-
 
50801
 
-
 
50802
    public getItemsInPurchaseReturn_result deepCopy() {
-
 
50803
      return new getItemsInPurchaseReturn_result(this);
-
 
50804
    }
-
 
50805
 
-
 
50806
    @Override
-
 
50807
    public void clear() {
-
 
50808
      this.success = null;
-
 
50809
      this.ex = null;
-
 
50810
    }
-
 
50811
 
-
 
50812
    public int getSuccessSize() {
-
 
50813
      return (this.success == null) ? 0 : this.success.size();
-
 
50814
    }
-
 
50815
 
-
 
50816
    public void putToSuccess(long key, long val) {
-
 
50817
      if (this.success == null) {
-
 
50818
        this.success = new HashMap<Long,Long>();
-
 
50819
      }
-
 
50820
      this.success.put(key, val);
-
 
50821
    }
-
 
50822
 
-
 
50823
    public Map<Long,Long> getSuccess() {
-
 
50824
      return this.success;
-
 
50825
    }
-
 
50826
 
-
 
50827
    public void setSuccess(Map<Long,Long> success) {
-
 
50828
      this.success = success;
-
 
50829
    }
-
 
50830
 
-
 
50831
    public void unsetSuccess() {
-
 
50832
      this.success = null;
-
 
50833
    }
-
 
50834
 
-
 
50835
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
50836
    public boolean isSetSuccess() {
-
 
50837
      return this.success != null;
-
 
50838
    }
-
 
50839
 
-
 
50840
    public void setSuccessIsSet(boolean value) {
-
 
50841
      if (!value) {
-
 
50842
        this.success = null;
-
 
50843
      }
-
 
50844
    }
-
 
50845
 
-
 
50846
    public WarehouseServiceException getEx() {
-
 
50847
      return this.ex;
-
 
50848
    }
-
 
50849
 
-
 
50850
    public void setEx(WarehouseServiceException ex) {
-
 
50851
      this.ex = ex;
-
 
50852
    }
-
 
50853
 
-
 
50854
    public void unsetEx() {
-
 
50855
      this.ex = null;
-
 
50856
    }
-
 
50857
 
-
 
50858
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
50859
    public boolean isSetEx() {
-
 
50860
      return this.ex != null;
-
 
50861
    }
-
 
50862
 
-
 
50863
    public void setExIsSet(boolean value) {
-
 
50864
      if (!value) {
-
 
50865
        this.ex = null;
-
 
50866
      }
-
 
50867
    }
-
 
50868
 
-
 
50869
    public void setFieldValue(_Fields field, Object value) {
-
 
50870
      switch (field) {
-
 
50871
      case SUCCESS:
-
 
50872
        if (value == null) {
-
 
50873
          unsetSuccess();
-
 
50874
        } else {
-
 
50875
          setSuccess((Map<Long,Long>)value);
-
 
50876
        }
-
 
50877
        break;
-
 
50878
 
-
 
50879
      case EX:
-
 
50880
        if (value == null) {
-
 
50881
          unsetEx();
-
 
50882
        } else {
-
 
50883
          setEx((WarehouseServiceException)value);
-
 
50884
        }
-
 
50885
        break;
-
 
50886
 
-
 
50887
      }
-
 
50888
    }
-
 
50889
 
-
 
50890
    public Object getFieldValue(_Fields field) {
-
 
50891
      switch (field) {
-
 
50892
      case SUCCESS:
-
 
50893
        return getSuccess();
-
 
50894
 
-
 
50895
      case EX:
-
 
50896
        return getEx();
-
 
50897
 
-
 
50898
      }
-
 
50899
      throw new IllegalStateException();
-
 
50900
    }
-
 
50901
 
-
 
50902
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
50903
    public boolean isSet(_Fields field) {
-
 
50904
      if (field == null) {
-
 
50905
        throw new IllegalArgumentException();
-
 
50906
      }
-
 
50907
 
-
 
50908
      switch (field) {
-
 
50909
      case SUCCESS:
-
 
50910
        return isSetSuccess();
-
 
50911
      case EX:
-
 
50912
        return isSetEx();
-
 
50913
      }
-
 
50914
      throw new IllegalStateException();
-
 
50915
    }
-
 
50916
 
-
 
50917
    @Override
-
 
50918
    public boolean equals(Object that) {
-
 
50919
      if (that == null)
-
 
50920
        return false;
-
 
50921
      if (that instanceof getItemsInPurchaseReturn_result)
-
 
50922
        return this.equals((getItemsInPurchaseReturn_result)that);
-
 
50923
      return false;
-
 
50924
    }
-
 
50925
 
-
 
50926
    public boolean equals(getItemsInPurchaseReturn_result that) {
-
 
50927
      if (that == null)
-
 
50928
        return false;
-
 
50929
 
-
 
50930
      boolean this_present_success = true && this.isSetSuccess();
-
 
50931
      boolean that_present_success = true && that.isSetSuccess();
-
 
50932
      if (this_present_success || that_present_success) {
-
 
50933
        if (!(this_present_success && that_present_success))
-
 
50934
          return false;
-
 
50935
        if (!this.success.equals(that.success))
-
 
50936
          return false;
-
 
50937
      }
-
 
50938
 
-
 
50939
      boolean this_present_ex = true && this.isSetEx();
-
 
50940
      boolean that_present_ex = true && that.isSetEx();
-
 
50941
      if (this_present_ex || that_present_ex) {
-
 
50942
        if (!(this_present_ex && that_present_ex))
-
 
50943
          return false;
-
 
50944
        if (!this.ex.equals(that.ex))
-
 
50945
          return false;
-
 
50946
      }
-
 
50947
 
-
 
50948
      return true;
-
 
50949
    }
-
 
50950
 
-
 
50951
    @Override
-
 
50952
    public int hashCode() {
-
 
50953
      return 0;
-
 
50954
    }
-
 
50955
 
-
 
50956
    public int compareTo(getItemsInPurchaseReturn_result other) {
-
 
50957
      if (!getClass().equals(other.getClass())) {
-
 
50958
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50959
      }
-
 
50960
 
-
 
50961
      int lastComparison = 0;
-
 
50962
      getItemsInPurchaseReturn_result typedOther = (getItemsInPurchaseReturn_result)other;
-
 
50963
 
-
 
50964
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
50965
      if (lastComparison != 0) {
-
 
50966
        return lastComparison;
-
 
50967
      }
-
 
50968
      if (isSetSuccess()) {
-
 
50969
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
50970
        if (lastComparison != 0) {
-
 
50971
          return lastComparison;
-
 
50972
        }
-
 
50973
      }
-
 
50974
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
50975
      if (lastComparison != 0) {
-
 
50976
        return lastComparison;
-
 
50977
      }
-
 
50978
      if (isSetEx()) {
-
 
50979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
50980
        if (lastComparison != 0) {
-
 
50981
          return lastComparison;
-
 
50982
        }
-
 
50983
      }
-
 
50984
      return 0;
-
 
50985
    }
-
 
50986
 
-
 
50987
    public _Fields fieldForId(int fieldId) {
-
 
50988
      return _Fields.findByThriftId(fieldId);
-
 
50989
    }
-
 
50990
 
-
 
50991
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
50992
      org.apache.thrift.protocol.TField field;
-
 
50993
      iprot.readStructBegin();
-
 
50994
      while (true)
-
 
50995
      {
-
 
50996
        field = iprot.readFieldBegin();
-
 
50997
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
50998
          break;
-
 
50999
        }
-
 
51000
        switch (field.id) {
-
 
51001
          case 0: // SUCCESS
-
 
51002
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
51003
              {
-
 
51004
                org.apache.thrift.protocol.TMap _map153 = iprot.readMapBegin();
-
 
51005
                this.success = new HashMap<Long,Long>(2*_map153.size);
-
 
51006
                for (int _i154 = 0; _i154 < _map153.size; ++_i154)
-
 
51007
                {
-
 
51008
                  long _key155; // required
-
 
51009
                  long _val156; // required
-
 
51010
                  _key155 = iprot.readI64();
-
 
51011
                  _val156 = iprot.readI64();
-
 
51012
                  this.success.put(_key155, _val156);
-
 
51013
                }
-
 
51014
                iprot.readMapEnd();
-
 
51015
              }
-
 
51016
            } else { 
-
 
51017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51018
            }
-
 
51019
            break;
-
 
51020
          case 1: // EX
-
 
51021
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
51022
              this.ex = new WarehouseServiceException();
-
 
51023
              this.ex.read(iprot);
-
 
51024
            } else { 
-
 
51025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51026
            }
-
 
51027
            break;
-
 
51028
          default:
-
 
51029
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51030
        }
-
 
51031
        iprot.readFieldEnd();
-
 
51032
      }
-
 
51033
      iprot.readStructEnd();
-
 
51034
      validate();
-
 
51035
    }
-
 
51036
 
-
 
51037
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51038
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51039
 
-
 
51040
      if (this.isSetSuccess()) {
-
 
51041
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
51042
        {
-
 
51043
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
51044
          for (Map.Entry<Long, Long> _iter157 : this.success.entrySet())
-
 
51045
          {
-
 
51046
            oprot.writeI64(_iter157.getKey());
-
 
51047
            oprot.writeI64(_iter157.getValue());
-
 
51048
          }
-
 
51049
          oprot.writeMapEnd();
-
 
51050
        }
-
 
51051
        oprot.writeFieldEnd();
-
 
51052
      } else if (this.isSetEx()) {
-
 
51053
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
51054
        this.ex.write(oprot);
-
 
51055
        oprot.writeFieldEnd();
-
 
51056
      }
-
 
51057
      oprot.writeFieldStop();
-
 
51058
      oprot.writeStructEnd();
-
 
51059
    }
-
 
51060
 
-
 
51061
    @Override
-
 
51062
    public String toString() {
-
 
51063
      StringBuilder sb = new StringBuilder("getItemsInPurchaseReturn_result(");
-
 
51064
      boolean first = true;
-
 
51065
 
-
 
51066
      sb.append("success:");
-
 
51067
      if (this.success == null) {
-
 
51068
        sb.append("null");
-
 
51069
      } else {
-
 
51070
        sb.append(this.success);
-
 
51071
      }
-
 
51072
      first = false;
-
 
51073
      if (!first) sb.append(", ");
-
 
51074
      sb.append("ex:");
-
 
51075
      if (this.ex == null) {
-
 
51076
        sb.append("null");
-
 
51077
      } else {
-
 
51078
        sb.append(this.ex);
-
 
51079
      }
-
 
51080
      first = false;
-
 
51081
      sb.append(")");
-
 
51082
      return sb.toString();
-
 
51083
    }
48281
 
51084
 
48282
    public void validate() throws org.apache.thrift.TException {
51085
    public void validate() throws org.apache.thrift.TException {
48283
      // check for required fields
51086
      // check for required fields
48284
    }
51087
    }
48285
 
51088