Subversion Repositories SmartDukaan

Rev

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

Rev 7216 Rev 7410
Line 45... Line 45...
45
     * 
45
     * 
46
     * @param inventoryItem
46
     * @param inventoryItem
47
     * @param type
47
     * @param type
48
     * @param quantity
48
     * @param quantity
49
     * @param billingWarehouseId
49
     * @param billingWarehouseId
-
 
50
     * @param transferLotId
50
     */
51
     */
51
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
52
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
52
 
53
 
53
    /**
54
    /**
54
     * Scan serialized items linked with an order. Returns its price.
55
     * Scan serialized items linked with an order. Returns its price.
55
     * 
56
     * 
56
     * @param serialNumber
57
     * @param serialNumber
Line 157... Line 158...
157
    /**
158
    /**
158
     * Fetches the scanRecords for a given serialNumber for a given time interval
159
     * Fetches the scanRecords for a given serialNumber for a given time interval
159
     * 
160
     * 
160
     * @param serialNumber
161
     * @param serialNumber
161
     */
162
     */
162
    public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException;
163
    public List<Scan> getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException;
163
 
164
 
164
    /**
165
    /**
165
     * Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
166
     * Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
166
     * 
167
     * 
167
     * @param saleReturnItems
168
     * @param saleReturnItems
Line 218... Line 219...
218
     * Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
219
     * Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
219
     * 
220
     * 
220
     * @param orderId
221
     * @param orderId
221
     * @param unitPrice
222
     * @param unitPrice
222
     */
223
     */
223
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException;
224
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws WarehouseServiceException, org.apache.thrift.TException;
224
 
225
 
225
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
226
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
226
 
227
 
227
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
228
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
228
 
229
 
Line 232... Line 233...
232
 
233
 
233
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
234
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
234
 
235
 
235
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
236
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
236
 
237
 
-
 
238
    public boolean isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException;
-
 
239
 
-
 
240
    public long createTransferLot(long originWarehouseId, long destWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
241
 
-
 
242
    public TransferLot getTransferLot(long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
243
 
-
 
244
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
245
 
-
 
246
    public List<TransferLot> getTransferLotsByDate(long fromDate, long toDate) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
247
 
-
 
248
    public List<Long> getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException;
-
 
249
 
-
 
250
    public Map<Long,Long> getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException;
-
 
251
 
-
 
252
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
253
 
-
 
254
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
255
 
-
 
256
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
257
 
237
  }
258
  }
238
 
259
 
239
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
260
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
240
 
261
 
241
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
262
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
242
 
263
 
243
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
264
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
244
 
265
 
245
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
266
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
246
 
267
 
247
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
268
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
248
 
269
 
249
    public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
270
    public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
250
 
271
 
Line 268... Line 289...
268
 
289
 
269
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
290
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
270
 
291
 
271
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
292
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
272
 
293
 
273
    public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
294
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
274
 
295
 
275
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
296
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
276
 
297
 
277
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
298
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
278
 
299
 
Line 298... Line 319...
298
 
319
 
299
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanfreebie_call> resultHandler) throws org.apache.thrift.TException;
320
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanfreebie_call> resultHandler) throws org.apache.thrift.TException;
300
 
321
 
301
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipfreebie_call> resultHandler) throws org.apache.thrift.TException;
322
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipfreebie_call> resultHandler) throws org.apache.thrift.TException;
302
 
323
 
-
 
324
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException;
-
 
325
 
-
 
326
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransferLot_call> resultHandler) throws org.apache.thrift.TException;
-
 
327
 
-
 
328
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLot_call> resultHandler) throws org.apache.thrift.TException;
-
 
329
 
-
 
330
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException;
-
 
331
 
-
 
332
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException;
-
 
333
 
-
 
334
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException;
-
 
335
 
-
 
336
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException;
-
 
337
 
-
 
338
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException;
-
 
339
 
-
 
340
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException;
-
 
341
 
-
 
342
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransfer_call> resultHandler) throws org.apache.thrift.TException;
-
 
343
 
303
  }
344
  }
304
 
345
 
305
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
346
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
306
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
347
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
307
      public Factory() {}
348
      public Factory() {}
Line 374... Line 415...
374
        throw result.wex;
415
        throw result.wex;
375
      }
416
      }
376
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
417
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
377
    }
418
    }
378
 
419
 
379
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
420
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
380
    {
421
    {
381
      send_scan(inventoryItem, type, quantity, billingWarehouseId);
422
      send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId);
382
      recv_scan();
423
      recv_scan();
383
    }
424
    }
384
 
425
 
385
    public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws org.apache.thrift.TException
426
    public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws org.apache.thrift.TException
386
    {
427
    {
387
      scan_args args = new scan_args();
428
      scan_args args = new scan_args();
388
      args.setInventoryItem(inventoryItem);
429
      args.setInventoryItem(inventoryItem);
389
      args.setType(type);
430
      args.setType(type);
390
      args.setQuantity(quantity);
431
      args.setQuantity(quantity);
391
      args.setBillingWarehouseId(billingWarehouseId);
432
      args.setBillingWarehouseId(billingWarehouseId);
-
 
433
      args.setTransferLotId(transferLotId);
392
      sendBase("scan", args);
434
      sendBase("scan", args);
393
    }
435
    }
394
 
436
 
395
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
437
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
396
    {
438
    {
Line 725... Line 767...
725
        return result.success;
767
        return result.success;
726
      }
768
      }
727
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
769
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
728
    }
770
    }
729
 
771
 
730
    public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
772
    public List<Scan> getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
731
    {
773
    {
732
      send_getScanRecordsForSerialNumber(serialNumber);
774
      send_getScanRecordsForSerialNumber(serialNumber);
733
      return recv_getScanRecordsForSerialNumber();
775
      return recv_getScanRecordsForSerialNumber();
734
    }
776
    }
735
 
777
 
736
    public void send_getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
778
    public void send_getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
737
    {
779
    {
738
      getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
780
      getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
739
      args.setSerialNumber(serialNumber);
781
      args.setSerialNumber(serialNumber);
740
      sendBase("getScanRecordsForSerialNumber", args);
782
      sendBase("getScanRecordsForSerialNumber", args);
741
    }
783
    }
Line 918... Line 960...
918
        throw result.ex;
960
        throw result.ex;
919
      }
961
      }
920
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
962
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
921
    }
963
    }
922
 
964
 
923
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
965
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws WarehouseServiceException, org.apache.thrift.TException
924
    {
966
    {
925
      send_scanForOursExternalSaleReturn(orderId, unitPrice);
967
      send_scanForOursExternalSaleReturn(orderId, unitPrice);
926
      recv_scanForOursExternalSaleReturn();
968
      recv_scanForOursExternalSaleReturn();
927
    }
969
    }
928
 
970
 
Line 932... Line 974...
932
      args.setOrderId(orderId);
974
      args.setOrderId(orderId);
933
      args.setUnitPrice(unitPrice);
975
      args.setUnitPrice(unitPrice);
934
      sendBase("scanForOursExternalSaleReturn", args);
976
      sendBase("scanForOursExternalSaleReturn", args);
935
    }
977
    }
936
 
978
 
937
    public void recv_scanForOursExternalSaleReturn() throws org.apache.thrift.TException
979
    public void recv_scanForOursExternalSaleReturn() throws WarehouseServiceException, org.apache.thrift.TException
938
    {
980
    {
939
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
981
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
940
      receiveBase(result, "scanForOursExternalSaleReturn");
982
      receiveBase(result, "scanForOursExternalSaleReturn");
-
 
983
      if (result.ex != null) {
-
 
984
        throw result.ex;
-
 
985
      }
941
      return;
986
      return;
942
    }
987
    }
943
 
988
 
944
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
989
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
945
    {
990
    {
Line 1090... Line 1135...
1090
        throw result.wex;
1135
        throw result.wex;
1091
      }
1136
      }
1092
      return;
1137
      return;
1093
    }
1138
    }
1094
 
1139
 
-
 
1140
    public boolean isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
-
 
1141
    {
-
 
1142
      send_isItemTransferAllowed(warehouseId, transferWarehouseId);
-
 
1143
      return recv_isItemTransferAllowed();
-
 
1144
    }
-
 
1145
 
-
 
1146
    public void send_isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
-
 
1147
    {
-
 
1148
      isItemTransferAllowed_args args = new isItemTransferAllowed_args();
-
 
1149
      args.setWarehouseId(warehouseId);
-
 
1150
      args.setTransferWarehouseId(transferWarehouseId);
-
 
1151
      sendBase("isItemTransferAllowed", args);
-
 
1152
    }
-
 
1153
 
-
 
1154
    public boolean recv_isItemTransferAllowed() throws org.apache.thrift.TException
-
 
1155
    {
-
 
1156
      isItemTransferAllowed_result result = new isItemTransferAllowed_result();
-
 
1157
      receiveBase(result, "isItemTransferAllowed");
-
 
1158
      if (result.isSetSuccess()) {
-
 
1159
        return result.success;
-
 
1160
      }
-
 
1161
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
-
 
1162
    }
-
 
1163
 
-
 
1164
    public long createTransferLot(long originWarehouseId, long destWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1165
    {
-
 
1166
      send_createTransferLot(originWarehouseId, destWarehouseId);
-
 
1167
      return recv_createTransferLot();
-
 
1168
    }
-
 
1169
 
-
 
1170
    public void send_createTransferLot(long originWarehouseId, long destWarehouseId) throws org.apache.thrift.TException
-
 
1171
    {
-
 
1172
      createTransferLot_args args = new createTransferLot_args();
-
 
1173
      args.setOriginWarehouseId(originWarehouseId);
-
 
1174
      args.setDestWarehouseId(destWarehouseId);
-
 
1175
      sendBase("createTransferLot", args);
-
 
1176
    }
-
 
1177
 
-
 
1178
    public long recv_createTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1179
    {
-
 
1180
      createTransferLot_result result = new createTransferLot_result();
-
 
1181
      receiveBase(result, "createTransferLot");
-
 
1182
      if (result.isSetSuccess()) {
-
 
1183
        return result.success;
-
 
1184
      }
-
 
1185
      if (result.wex != null) {
-
 
1186
        throw result.wex;
-
 
1187
      }
-
 
1188
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
-
 
1189
    }
-
 
1190
 
-
 
1191
    public TransferLot getTransferLot(long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1192
    {
-
 
1193
      send_getTransferLot(transferLotId);
-
 
1194
      return recv_getTransferLot();
-
 
1195
    }
-
 
1196
 
-
 
1197
    public void send_getTransferLot(long transferLotId) throws org.apache.thrift.TException
-
 
1198
    {
-
 
1199
      getTransferLot_args args = new getTransferLot_args();
-
 
1200
      args.setTransferLotId(transferLotId);
-
 
1201
      sendBase("getTransferLot", args);
-
 
1202
    }
-
 
1203
 
-
 
1204
    public TransferLot recv_getTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1205
    {
-
 
1206
      getTransferLot_result result = new getTransferLot_result();
-
 
1207
      receiveBase(result, "getTransferLot");
-
 
1208
      if (result.isSetSuccess()) {
-
 
1209
        return result.success;
-
 
1210
      }
-
 
1211
      if (result.wex != null) {
-
 
1212
        throw result.wex;
-
 
1213
      }
-
 
1214
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
-
 
1215
    }
-
 
1216
 
-
 
1217
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1218
    {
-
 
1219
      send_markTransferLotAsReceived(id, remoteTransferRefNumber);
-
 
1220
      recv_markTransferLotAsReceived();
-
 
1221
    }
-
 
1222
 
-
 
1223
    public void send_markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws org.apache.thrift.TException
-
 
1224
    {
-
 
1225
      markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
-
 
1226
      args.setId(id);
-
 
1227
      args.setRemoteTransferRefNumber(remoteTransferRefNumber);
-
 
1228
      sendBase("markTransferLotAsReceived", args);
-
 
1229
    }
-
 
1230
 
-
 
1231
    public void recv_markTransferLotAsReceived() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1232
    {
-
 
1233
      markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
-
 
1234
      receiveBase(result, "markTransferLotAsReceived");
-
 
1235
      if (result.wex != null) {
-
 
1236
        throw result.wex;
-
 
1237
      }
-
 
1238
      return;
-
 
1239
    }
-
 
1240
 
-
 
1241
    public List<TransferLot> getTransferLotsByDate(long fromDate, long toDate) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1242
    {
-
 
1243
      send_getTransferLotsByDate(fromDate, toDate);
-
 
1244
      return recv_getTransferLotsByDate();
-
 
1245
    }
-
 
1246
 
-
 
1247
    public void send_getTransferLotsByDate(long fromDate, long toDate) throws org.apache.thrift.TException
-
 
1248
    {
-
 
1249
      getTransferLotsByDate_args args = new getTransferLotsByDate_args();
-
 
1250
      args.setFromDate(fromDate);
-
 
1251
      args.setToDate(toDate);
-
 
1252
      sendBase("getTransferLotsByDate", args);
-
 
1253
    }
-
 
1254
 
-
 
1255
    public List<TransferLot> recv_getTransferLotsByDate() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1256
    {
-
 
1257
      getTransferLotsByDate_result result = new getTransferLotsByDate_result();
-
 
1258
      receiveBase(result, "getTransferLotsByDate");
-
 
1259
      if (result.isSetSuccess()) {
-
 
1260
        return result.success;
-
 
1261
      }
-
 
1262
      if (result.wex != null) {
-
 
1263
        throw result.wex;
-
 
1264
      }
-
 
1265
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
-
 
1266
    }
-
 
1267
 
-
 
1268
    public List<Long> getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
-
 
1269
    {
-
 
1270
      send_getAllowedDestinationWarehousesForTransfer(warehouseId);
-
 
1271
      return recv_getAllowedDestinationWarehousesForTransfer();
-
 
1272
    }
-
 
1273
 
-
 
1274
    public void send_getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
-
 
1275
    {
-
 
1276
      getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
-
 
1277
      args.setWarehouseId(warehouseId);
-
 
1278
      sendBase("getAllowedDestinationWarehousesForTransfer", args);
-
 
1279
    }
-
 
1280
 
-
 
1281
    public List<Long> recv_getAllowedDestinationWarehousesForTransfer() throws org.apache.thrift.TException
-
 
1282
    {
-
 
1283
      getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
-
 
1284
      receiveBase(result, "getAllowedDestinationWarehousesForTransfer");
-
 
1285
      if (result.isSetSuccess()) {
-
 
1286
        return result.success;
-
 
1287
      }
-
 
1288
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
-
 
1289
    }
-
 
1290
 
-
 
1291
    public Map<Long,Long> getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
-
 
1292
    {
-
 
1293
      send_getItemsInTransferLot(transferLotId);
-
 
1294
      return recv_getItemsInTransferLot();
-
 
1295
    }
-
 
1296
 
-
 
1297
    public void send_getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
-
 
1298
    {
-
 
1299
      getItemsInTransferLot_args args = new getItemsInTransferLot_args();
-
 
1300
      args.setTransferLotId(transferLotId);
-
 
1301
      sendBase("getItemsInTransferLot", args);
-
 
1302
    }
-
 
1303
 
-
 
1304
    public Map<Long,Long> recv_getItemsInTransferLot() throws org.apache.thrift.TException
-
 
1305
    {
-
 
1306
      getItemsInTransferLot_result result = new getItemsInTransferLot_result();
-
 
1307
      receiveBase(result, "getItemsInTransferLot");
-
 
1308
      if (result.isSetSuccess()) {
-
 
1309
        return result.success;
-
 
1310
      }
-
 
1311
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
-
 
1312
    }
-
 
1313
 
-
 
1314
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1315
    {
-
 
1316
      send_markItemsAsReceivedForTransferLot(id);
-
 
1317
      recv_markItemsAsReceivedForTransferLot();
-
 
1318
    }
-
 
1319
 
-
 
1320
    public void send_markItemsAsReceivedForTransferLot(long id) throws org.apache.thrift.TException
-
 
1321
    {
-
 
1322
      markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
-
 
1323
      args.setId(id);
-
 
1324
      sendBase("markItemsAsReceivedForTransferLot", args);
-
 
1325
    }
-
 
1326
 
-
 
1327
    public void recv_markItemsAsReceivedForTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1328
    {
-
 
1329
      markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
-
 
1330
      receiveBase(result, "markItemsAsReceivedForTransferLot");
-
 
1331
      if (result.wex != null) {
-
 
1332
        throw result.wex;
-
 
1333
      }
-
 
1334
      return;
-
 
1335
    }
-
 
1336
 
-
 
1337
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1338
    {
-
 
1339
      send_updateTransferLotAfterItemReceive(id);
-
 
1340
      return recv_updateTransferLotAfterItemReceive();
-
 
1341
    }
-
 
1342
 
-
 
1343
    public void send_updateTransferLotAfterItemReceive(long id) throws org.apache.thrift.TException
-
 
1344
    {
-
 
1345
      updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
-
 
1346
      args.setId(id);
-
 
1347
      sendBase("updateTransferLotAfterItemReceive", args);
-
 
1348
    }
-
 
1349
 
-
 
1350
    public TransferLotStatus recv_updateTransferLotAfterItemReceive() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1351
    {
-
 
1352
      updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
-
 
1353
      receiveBase(result, "updateTransferLotAfterItemReceive");
-
 
1354
      if (result.isSetSuccess()) {
-
 
1355
        return result.success;
-
 
1356
      }
-
 
1357
      if (result.wex != null) {
-
 
1358
        throw result.wex;
-
 
1359
      }
-
 
1360
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
-
 
1361
    }
-
 
1362
 
-
 
1363
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1364
    {
-
 
1365
      send_scanForTransfer(inventoryItems, type, transferLotId);
-
 
1366
      recv_scanForTransfer();
-
 
1367
    }
-
 
1368
 
-
 
1369
    public void send_scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
-
 
1370
    {
-
 
1371
      scanForTransfer_args args = new scanForTransfer_args();
-
 
1372
      args.setInventoryItems(inventoryItems);
-
 
1373
      args.setType(type);
-
 
1374
      args.setTransferLotId(transferLotId);
-
 
1375
      sendBase("scanForTransfer", args);
-
 
1376
    }
-
 
1377
 
-
 
1378
    public void recv_scanForTransfer() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1379
    {
-
 
1380
      scanForTransfer_result result = new scanForTransfer_result();
-
 
1381
      receiveBase(result, "scanForTransfer");
-
 
1382
      if (result.wex != null) {
-
 
1383
        throw result.wex;
-
 
1384
      }
-
 
1385
      return;
-
 
1386
    }
-
 
1387
 
1095
  }
1388
  }
1096
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1389
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1097
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1390
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1098
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1391
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1099
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1392
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1178... Line 1471...
1178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1471
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1179
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
1472
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
1180
      }
1473
      }
1181
    }
1474
    }
1182
 
1475
 
1183
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
1476
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
1184
      checkReady();
1477
      checkReady();
1185
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
1478
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
1186
      this.___currentMethod = method_call;
1479
      this.___currentMethod = method_call;
1187
      ___manager.call(method_call);
1480
      ___manager.call(method_call);
1188
    }
1481
    }
1189
 
1482
 
1190
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
1483
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
1191
      private InventoryItem inventoryItem;
1484
      private InventoryItem inventoryItem;
1192
      private ScanType type;
1485
      private ScanType type;
1193
      private long quantity;
1486
      private long quantity;
1194
      private long billingWarehouseId;
1487
      private long billingWarehouseId;
-
 
1488
      private long transferLotId;
1195
      public scan_call(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_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 {
1489
      public scan_call(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scan_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 {
1196
        super(client, protocolFactory, transport, resultHandler, false);
1490
        super(client, protocolFactory, transport, resultHandler, false);
1197
        this.inventoryItem = inventoryItem;
1491
        this.inventoryItem = inventoryItem;
1198
        this.type = type;
1492
        this.type = type;
1199
        this.quantity = quantity;
1493
        this.quantity = quantity;
1200
        this.billingWarehouseId = billingWarehouseId;
1494
        this.billingWarehouseId = billingWarehouseId;
-
 
1495
        this.transferLotId = transferLotId;
1201
      }
1496
      }
1202
 
1497
 
1203
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1498
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1204
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
1499
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
1205
        scan_args args = new scan_args();
1500
        scan_args args = new scan_args();
1206
        args.setInventoryItem(inventoryItem);
1501
        args.setInventoryItem(inventoryItem);
1207
        args.setType(type);
1502
        args.setType(type);
1208
        args.setQuantity(quantity);
1503
        args.setQuantity(quantity);
1209
        args.setBillingWarehouseId(billingWarehouseId);
1504
        args.setBillingWarehouseId(billingWarehouseId);
-
 
1505
        args.setTransferLotId(transferLotId);
1210
        args.write(prot);
1506
        args.write(prot);
1211
        prot.writeMessageEnd();
1507
        prot.writeMessageEnd();
1212
      }
1508
      }
1213
 
1509
 
1214
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1510
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
Line 1677... Line 1973...
1677
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1973
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1678
        return (new Client(prot)).recv_getInventoryScansForItem();
1974
        return (new Client(prot)).recv_getInventoryScansForItem();
1679
      }
1975
      }
1680
    }
1976
    }
1681
 
1977
 
1682
    public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
1978
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
1683
      checkReady();
1979
      checkReady();
1684
      getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
1980
      getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
1685
      this.___currentMethod = method_call;
1981
      this.___currentMethod = method_call;
1686
      ___manager.call(method_call);
1982
      ___manager.call(method_call);
1687
    }
1983
    }
1688
 
1984
 
1689
    public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
1985
    public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
1690
      private long serialNumber;
1986
      private String serialNumber;
1691
      public getScanRecordsForSerialNumber_call(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_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 {
1987
      public getScanRecordsForSerialNumber_call(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_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 {
1692
        super(client, protocolFactory, transport, resultHandler, false);
1988
        super(client, protocolFactory, transport, resultHandler, false);
1693
        this.serialNumber = serialNumber;
1989
        this.serialNumber = serialNumber;
1694
      }
1990
      }
1695
 
1991
 
1696
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1992
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
Line 1976... Line 2272...
1976
        args.setUnitPrice(unitPrice);
2272
        args.setUnitPrice(unitPrice);
1977
        args.write(prot);
2273
        args.write(prot);
1978
        prot.writeMessageEnd();
2274
        prot.writeMessageEnd();
1979
      }
2275
      }
1980
 
2276
 
1981
      public void getResult() throws org.apache.thrift.TException {
2277
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1982
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2278
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1983
          throw new IllegalStateException("Method call not finished!");
2279
          throw new IllegalStateException("Method call not finished!");
1984
        }
2280
        }
1985
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2281
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1986
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2282
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 2208... Line 2504...
2208
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2504
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2209
        (new Client(prot)).recv_reshipfreebie();
2505
        (new Client(prot)).recv_reshipfreebie();
2210
      }
2506
      }
2211
    }
2507
    }
2212
 
2508
 
-
 
2509
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException {
-
 
2510
      checkReady();
-
 
2511
      isItemTransferAllowed_call method_call = new isItemTransferAllowed_call(warehouseId, transferWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2512
      this.___currentMethod = method_call;
-
 
2513
      ___manager.call(method_call);
-
 
2514
    }
-
 
2515
 
-
 
2516
    public static class isItemTransferAllowed_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2517
      private long warehouseId;
-
 
2518
      private long transferWarehouseId;
-
 
2519
      public isItemTransferAllowed_call(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemTransferAllowed_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 {
-
 
2520
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2521
        this.warehouseId = warehouseId;
-
 
2522
        this.transferWarehouseId = transferWarehouseId;
-
 
2523
      }
-
 
2524
 
-
 
2525
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2526
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isItemTransferAllowed", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2527
        isItemTransferAllowed_args args = new isItemTransferAllowed_args();
-
 
2528
        args.setWarehouseId(warehouseId);
-
 
2529
        args.setTransferWarehouseId(transferWarehouseId);
-
 
2530
        args.write(prot);
-
 
2531
        prot.writeMessageEnd();
-
 
2532
      }
-
 
2533
 
-
 
2534
      public boolean getResult() throws org.apache.thrift.TException {
-
 
2535
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2536
          throw new IllegalStateException("Method call not finished!");
-
 
2537
        }
-
 
2538
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2539
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2540
        return (new Client(prot)).recv_isItemTransferAllowed();
-
 
2541
      }
-
 
2542
    }
-
 
2543
 
-
 
2544
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<createTransferLot_call> resultHandler) throws org.apache.thrift.TException {
-
 
2545
      checkReady();
-
 
2546
      createTransferLot_call method_call = new createTransferLot_call(originWarehouseId, destWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2547
      this.___currentMethod = method_call;
-
 
2548
      ___manager.call(method_call);
-
 
2549
    }
-
 
2550
 
-
 
2551
    public static class createTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2552
      private long originWarehouseId;
-
 
2553
      private long destWarehouseId;
-
 
2554
      public createTransferLot_call(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<createTransferLot_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 {
-
 
2555
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2556
        this.originWarehouseId = originWarehouseId;
-
 
2557
        this.destWarehouseId = destWarehouseId;
-
 
2558
      }
-
 
2559
 
-
 
2560
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2561
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2562
        createTransferLot_args args = new createTransferLot_args();
-
 
2563
        args.setOriginWarehouseId(originWarehouseId);
-
 
2564
        args.setDestWarehouseId(destWarehouseId);
-
 
2565
        args.write(prot);
-
 
2566
        prot.writeMessageEnd();
-
 
2567
      }
-
 
2568
 
-
 
2569
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2570
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2571
          throw new IllegalStateException("Method call not finished!");
-
 
2572
        }
-
 
2573
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2574
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2575
        return (new Client(prot)).recv_createTransferLot();
-
 
2576
      }
-
 
2577
    }
-
 
2578
 
-
 
2579
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getTransferLot_call> resultHandler) throws org.apache.thrift.TException {
-
 
2580
      checkReady();
-
 
2581
      getTransferLot_call method_call = new getTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2582
      this.___currentMethod = method_call;
-
 
2583
      ___manager.call(method_call);
-
 
2584
    }
-
 
2585
 
-
 
2586
    public static class getTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2587
      private long transferLotId;
-
 
2588
      public getTransferLot_call(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getTransferLot_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 {
-
 
2589
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2590
        this.transferLotId = transferLotId;
-
 
2591
      }
-
 
2592
 
-
 
2593
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2594
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2595
        getTransferLot_args args = new getTransferLot_args();
-
 
2596
        args.setTransferLotId(transferLotId);
-
 
2597
        args.write(prot);
-
 
2598
        prot.writeMessageEnd();
-
 
2599
      }
-
 
2600
 
-
 
2601
      public TransferLot getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2602
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2603
          throw new IllegalStateException("Method call not finished!");
-
 
2604
        }
-
 
2605
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2606
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2607
        return (new Client(prot)).recv_getTransferLot();
-
 
2608
      }
-
 
2609
    }
-
 
2610
 
-
 
2611
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException {
-
 
2612
      checkReady();
-
 
2613
      markTransferLotAsReceived_call method_call = new markTransferLotAsReceived_call(id, remoteTransferRefNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
2614
      this.___currentMethod = method_call;
-
 
2615
      ___manager.call(method_call);
-
 
2616
    }
-
 
2617
 
-
 
2618
    public static class markTransferLotAsReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2619
      private long id;
-
 
2620
      private String remoteTransferRefNumber;
-
 
2621
      public markTransferLotAsReceived_call(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceived_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 {
-
 
2622
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2623
        this.id = id;
-
 
2624
        this.remoteTransferRefNumber = remoteTransferRefNumber;
-
 
2625
      }
-
 
2626
 
-
 
2627
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2628
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransferLotAsReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2629
        markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
-
 
2630
        args.setId(id);
-
 
2631
        args.setRemoteTransferRefNumber(remoteTransferRefNumber);
-
 
2632
        args.write(prot);
-
 
2633
        prot.writeMessageEnd();
-
 
2634
      }
-
 
2635
 
-
 
2636
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2637
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2638
          throw new IllegalStateException("Method call not finished!");
-
 
2639
        }
-
 
2640
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2641
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2642
        (new Client(prot)).recv_markTransferLotAsReceived();
-
 
2643
      }
-
 
2644
    }
-
 
2645
 
-
 
2646
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException {
-
 
2647
      checkReady();
-
 
2648
      getTransferLotsByDate_call method_call = new getTransferLotsByDate_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
2649
      this.___currentMethod = method_call;
-
 
2650
      ___manager.call(method_call);
-
 
2651
    }
-
 
2652
 
-
 
2653
    public static class getTransferLotsByDate_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2654
      private long fromDate;
-
 
2655
      private long toDate;
-
 
2656
      public getTransferLotsByDate_call(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getTransferLotsByDate_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 {
-
 
2657
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2658
        this.fromDate = fromDate;
-
 
2659
        this.toDate = toDate;
-
 
2660
      }
-
 
2661
 
-
 
2662
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2663
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLotsByDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2664
        getTransferLotsByDate_args args = new getTransferLotsByDate_args();
-
 
2665
        args.setFromDate(fromDate);
-
 
2666
        args.setToDate(toDate);
-
 
2667
        args.write(prot);
-
 
2668
        prot.writeMessageEnd();
-
 
2669
      }
-
 
2670
 
-
 
2671
      public List<TransferLot> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2672
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2673
          throw new IllegalStateException("Method call not finished!");
-
 
2674
        }
-
 
2675
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2676
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2677
        return (new Client(prot)).recv_getTransferLotsByDate();
-
 
2678
      }
-
 
2679
    }
-
 
2680
 
-
 
2681
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException {
-
 
2682
      checkReady();
-
 
2683
      getAllowedDestinationWarehousesForTransfer_call method_call = new getAllowedDestinationWarehousesForTransfer_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2684
      this.___currentMethod = method_call;
-
 
2685
      ___manager.call(method_call);
-
 
2686
    }
-
 
2687
 
-
 
2688
    public static class getAllowedDestinationWarehousesForTransfer_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2689
      private long warehouseId;
-
 
2690
      public getAllowedDestinationWarehousesForTransfer_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getAllowedDestinationWarehousesForTransfer_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 {
-
 
2691
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2692
        this.warehouseId = warehouseId;
-
 
2693
      }
-
 
2694
 
-
 
2695
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2696
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllowedDestinationWarehousesForTransfer", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2697
        getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
-
 
2698
        args.setWarehouseId(warehouseId);
-
 
2699
        args.write(prot);
-
 
2700
        prot.writeMessageEnd();
-
 
2701
      }
-
 
2702
 
-
 
2703
      public List<Long> getResult() throws org.apache.thrift.TException {
-
 
2704
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2705
          throw new IllegalStateException("Method call not finished!");
-
 
2706
        }
-
 
2707
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2708
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2709
        return (new Client(prot)).recv_getAllowedDestinationWarehousesForTransfer();
-
 
2710
      }
-
 
2711
    }
-
 
2712
 
-
 
2713
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException {
-
 
2714
      checkReady();
-
 
2715
      getItemsInTransferLot_call method_call = new getItemsInTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2716
      this.___currentMethod = method_call;
-
 
2717
      ___manager.call(method_call);
-
 
2718
    }
-
 
2719
 
-
 
2720
    public static class getItemsInTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2721
      private long transferLotId;
-
 
2722
      public getItemsInTransferLot_call(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getItemsInTransferLot_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 {
-
 
2723
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2724
        this.transferLotId = transferLotId;
-
 
2725
      }
-
 
2726
 
-
 
2727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsInTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2729
        getItemsInTransferLot_args args = new getItemsInTransferLot_args();
-
 
2730
        args.setTransferLotId(transferLotId);
-
 
2731
        args.write(prot);
-
 
2732
        prot.writeMessageEnd();
-
 
2733
      }
-
 
2734
 
-
 
2735
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
-
 
2736
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2737
          throw new IllegalStateException("Method call not finished!");
-
 
2738
        }
-
 
2739
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2740
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2741
        return (new Client(prot)).recv_getItemsInTransferLot();
-
 
2742
      }
-
 
2743
    }
-
 
2744
 
-
 
2745
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException {
-
 
2746
      checkReady();
-
 
2747
      markItemsAsReceivedForTransferLot_call method_call = new markItemsAsReceivedForTransferLot_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
2748
      this.___currentMethod = method_call;
-
 
2749
      ___manager.call(method_call);
-
 
2750
    }
-
 
2751
 
-
 
2752
    public static class markItemsAsReceivedForTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2753
      private long id;
-
 
2754
      public markItemsAsReceivedForTransferLot_call(long id, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLot_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 {
-
 
2755
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2756
        this.id = id;
-
 
2757
      }
-
 
2758
 
-
 
2759
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2760
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemsAsReceivedForTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2761
        markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
-
 
2762
        args.setId(id);
-
 
2763
        args.write(prot);
-
 
2764
        prot.writeMessageEnd();
-
 
2765
      }
-
 
2766
 
-
 
2767
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2768
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2769
          throw new IllegalStateException("Method call not finished!");
-
 
2770
        }
-
 
2771
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2772
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2773
        (new Client(prot)).recv_markItemsAsReceivedForTransferLot();
-
 
2774
      }
-
 
2775
    }
-
 
2776
 
-
 
2777
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException {
-
 
2778
      checkReady();
-
 
2779
      updateTransferLotAfterItemReceive_call method_call = new updateTransferLotAfterItemReceive_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
2780
      this.___currentMethod = method_call;
-
 
2781
      ___manager.call(method_call);
-
 
2782
    }
-
 
2783
 
-
 
2784
    public static class updateTransferLotAfterItemReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2785
      private long id;
-
 
2786
      public updateTransferLotAfterItemReceive_call(long id, org.apache.thrift.async.AsyncMethodCallback<updateTransferLotAfterItemReceive_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 {
-
 
2787
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2788
        this.id = id;
-
 
2789
      }
-
 
2790
 
-
 
2791
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2792
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTransferLotAfterItemReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2793
        updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
-
 
2794
        args.setId(id);
-
 
2795
        args.write(prot);
-
 
2796
        prot.writeMessageEnd();
-
 
2797
      }
-
 
2798
 
-
 
2799
      public TransferLotStatus getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2800
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2801
          throw new IllegalStateException("Method call not finished!");
-
 
2802
        }
-
 
2803
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2805
        return (new Client(prot)).recv_updateTransferLotAfterItemReceive();
-
 
2806
      }
-
 
2807
    }
-
 
2808
 
-
 
2809
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransfer_call> resultHandler) throws org.apache.thrift.TException {
-
 
2810
      checkReady();
-
 
2811
      scanForTransfer_call method_call = new scanForTransfer_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2812
      this.___currentMethod = method_call;
-
 
2813
      ___manager.call(method_call);
-
 
2814
    }
-
 
2815
 
-
 
2816
    public static class scanForTransfer_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2817
      private List<InventoryItem> inventoryItems;
-
 
2818
      private ScanType type;
-
 
2819
      private long transferLotId;
-
 
2820
      public scanForTransfer_call(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransfer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
2821
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2822
        this.inventoryItems = inventoryItems;
-
 
2823
        this.type = type;
-
 
2824
        this.transferLotId = transferLotId;
-
 
2825
      }
-
 
2826
 
-
 
2827
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2828
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransfer", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2829
        scanForTransfer_args args = new scanForTransfer_args();
-
 
2830
        args.setInventoryItems(inventoryItems);
-
 
2831
        args.setType(type);
-
 
2832
        args.setTransferLotId(transferLotId);
-
 
2833
        args.write(prot);
-
 
2834
        prot.writeMessageEnd();
-
 
2835
      }
-
 
2836
 
-
 
2837
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2838
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2839
          throw new IllegalStateException("Method call not finished!");
-
 
2840
        }
-
 
2841
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2842
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2843
        (new Client(prot)).recv_scanForTransfer();
-
 
2844
      }
-
 
2845
    }
-
 
2846
 
2213
  }
2847
  }
2214
 
2848
 
2215
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2849
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2216
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2850
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2217
    public Processor(I iface) {
2851
    public Processor(I iface) {
Line 2252... Line 2886...
2252
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
2886
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
2253
      processMap.put("getCompleteMovementSerializedInventoryByScans", new getCompleteMovementSerializedInventoryByScans());
2887
      processMap.put("getCompleteMovementSerializedInventoryByScans", new getCompleteMovementSerializedInventoryByScans());
2254
      processMap.put("getCompleteMovementNonSerializedInventoryByScans", new getCompleteMovementNonSerializedInventoryByScans());
2888
      processMap.put("getCompleteMovementNonSerializedInventoryByScans", new getCompleteMovementNonSerializedInventoryByScans());
2255
      processMap.put("scanfreebie", new scanfreebie());
2889
      processMap.put("scanfreebie", new scanfreebie());
2256
      processMap.put("reshipfreebie", new reshipfreebie());
2890
      processMap.put("reshipfreebie", new reshipfreebie());
-
 
2891
      processMap.put("isItemTransferAllowed", new isItemTransferAllowed());
-
 
2892
      processMap.put("createTransferLot", new createTransferLot());
-
 
2893
      processMap.put("getTransferLot", new getTransferLot());
-
 
2894
      processMap.put("markTransferLotAsReceived", new markTransferLotAsReceived());
-
 
2895
      processMap.put("getTransferLotsByDate", new getTransferLotsByDate());
-
 
2896
      processMap.put("getAllowedDestinationWarehousesForTransfer", new getAllowedDestinationWarehousesForTransfer());
-
 
2897
      processMap.put("getItemsInTransferLot", new getItemsInTransferLot());
-
 
2898
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
-
 
2899
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
-
 
2900
      processMap.put("scanForTransfer", new scanForTransfer());
2257
      return processMap;
2901
      return processMap;
2258
    }
2902
    }
2259
 
2903
 
2260
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
2904
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
2261
      public getInventoryItem() {
2905
      public getInventoryItem() {
Line 2307... Line 2951...
2307
      }
2951
      }
2308
 
2952
 
2309
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
2953
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
2310
        scan_result result = new scan_result();
2954
        scan_result result = new scan_result();
2311
        try {
2955
        try {
2312
          iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId);
2956
          iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId);
2313
        } catch (WarehouseServiceException wex) {
2957
        } catch (WarehouseServiceException wex) {
2314
          result.wex = wex;
2958
          result.wex = wex;
2315
        }
2959
        }
2316
        return result;
2960
        return result;
2317
      }
2961
      }
Line 2694... Line 3338...
2694
        return new scanForOursExternalSaleReturn_args();
3338
        return new scanForOursExternalSaleReturn_args();
2695
      }
3339
      }
2696
 
3340
 
2697
      protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
3341
      protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
2698
        scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
3342
        scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
-
 
3343
        try {
2699
        iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
3344
          iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
-
 
3345
        } catch (WarehouseServiceException ex) {
-
 
3346
          result.ex = ex;
-
 
3347
        }
2700
        return result;
3348
        return result;
2701
      }
3349
      }
2702
    }
3350
    }
2703
 
3351
 
2704
    private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
3352
    private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
Line 2803... Line 3451...
2803
        }
3451
        }
2804
        return result;
3452
        return result;
2805
      }
3453
      }
2806
    }
3454
    }
2807
 
3455
 
-
 
3456
    private static class isItemTransferAllowed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isItemTransferAllowed_args> {
-
 
3457
      public isItemTransferAllowed() {
-
 
3458
        super("isItemTransferAllowed");
-
 
3459
      }
-
 
3460
 
-
 
3461
      protected isItemTransferAllowed_args getEmptyArgsInstance() {
-
 
3462
        return new isItemTransferAllowed_args();
-
 
3463
      }
-
 
3464
 
-
 
3465
      protected isItemTransferAllowed_result getResult(I iface, isItemTransferAllowed_args args) throws org.apache.thrift.TException {
-
 
3466
        isItemTransferAllowed_result result = new isItemTransferAllowed_result();
-
 
3467
        result.success = iface.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId);
-
 
3468
        result.setSuccessIsSet(true);
-
 
3469
        return result;
-
 
3470
      }
-
 
3471
    }
-
 
3472
 
-
 
3473
    private static class createTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransferLot_args> {
-
 
3474
      public createTransferLot() {
-
 
3475
        super("createTransferLot");
-
 
3476
      }
-
 
3477
 
-
 
3478
      protected createTransferLot_args getEmptyArgsInstance() {
-
 
3479
        return new createTransferLot_args();
-
 
3480
      }
-
 
3481
 
-
 
3482
      protected createTransferLot_result getResult(I iface, createTransferLot_args args) throws org.apache.thrift.TException {
-
 
3483
        createTransferLot_result result = new createTransferLot_result();
-
 
3484
        try {
-
 
3485
          result.success = iface.createTransferLot(args.originWarehouseId, args.destWarehouseId);
-
 
3486
          result.setSuccessIsSet(true);
-
 
3487
        } catch (WarehouseServiceException wex) {
-
 
3488
          result.wex = wex;
-
 
3489
        }
-
 
3490
        return result;
-
 
3491
      }
-
 
3492
    }
-
 
3493
 
-
 
3494
    private static class getTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLot_args> {
-
 
3495
      public getTransferLot() {
-
 
3496
        super("getTransferLot");
-
 
3497
      }
-
 
3498
 
-
 
3499
      protected getTransferLot_args getEmptyArgsInstance() {
-
 
3500
        return new getTransferLot_args();
-
 
3501
      }
-
 
3502
 
-
 
3503
      protected getTransferLot_result getResult(I iface, getTransferLot_args args) throws org.apache.thrift.TException {
-
 
3504
        getTransferLot_result result = new getTransferLot_result();
-
 
3505
        try {
-
 
3506
          result.success = iface.getTransferLot(args.transferLotId);
-
 
3507
        } catch (WarehouseServiceException wex) {
-
 
3508
          result.wex = wex;
-
 
3509
        }
-
 
3510
        return result;
-
 
3511
      }
-
 
3512
    }
-
 
3513
 
-
 
3514
    private static class markTransferLotAsReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransferLotAsReceived_args> {
-
 
3515
      public markTransferLotAsReceived() {
-
 
3516
        super("markTransferLotAsReceived");
-
 
3517
      }
-
 
3518
 
-
 
3519
      protected markTransferLotAsReceived_args getEmptyArgsInstance() {
-
 
3520
        return new markTransferLotAsReceived_args();
-
 
3521
      }
-
 
3522
 
-
 
3523
      protected markTransferLotAsReceived_result getResult(I iface, markTransferLotAsReceived_args args) throws org.apache.thrift.TException {
-
 
3524
        markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
-
 
3525
        try {
-
 
3526
          iface.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber);
-
 
3527
        } catch (WarehouseServiceException wex) {
-
 
3528
          result.wex = wex;
-
 
3529
        }
-
 
3530
        return result;
-
 
3531
      }
-
 
3532
    }
-
 
3533
 
-
 
3534
    private static class getTransferLotsByDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLotsByDate_args> {
-
 
3535
      public getTransferLotsByDate() {
-
 
3536
        super("getTransferLotsByDate");
-
 
3537
      }
-
 
3538
 
-
 
3539
      protected getTransferLotsByDate_args getEmptyArgsInstance() {
-
 
3540
        return new getTransferLotsByDate_args();
-
 
3541
      }
-
 
3542
 
-
 
3543
      protected getTransferLotsByDate_result getResult(I iface, getTransferLotsByDate_args args) throws org.apache.thrift.TException {
-
 
3544
        getTransferLotsByDate_result result = new getTransferLotsByDate_result();
-
 
3545
        try {
-
 
3546
          result.success = iface.getTransferLotsByDate(args.fromDate, args.toDate);
-
 
3547
        } catch (WarehouseServiceException wex) {
-
 
3548
          result.wex = wex;
-
 
3549
        }
-
 
3550
        return result;
-
 
3551
      }
-
 
3552
    }
-
 
3553
 
-
 
3554
    private static class getAllowedDestinationWarehousesForTransfer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllowedDestinationWarehousesForTransfer_args> {
-
 
3555
      public getAllowedDestinationWarehousesForTransfer() {
-
 
3556
        super("getAllowedDestinationWarehousesForTransfer");
-
 
3557
      }
-
 
3558
 
-
 
3559
      protected getAllowedDestinationWarehousesForTransfer_args getEmptyArgsInstance() {
-
 
3560
        return new getAllowedDestinationWarehousesForTransfer_args();
-
 
3561
      }
-
 
3562
 
-
 
3563
      protected getAllowedDestinationWarehousesForTransfer_result getResult(I iface, getAllowedDestinationWarehousesForTransfer_args args) throws org.apache.thrift.TException {
-
 
3564
        getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
-
 
3565
        result.success = iface.getAllowedDestinationWarehousesForTransfer(args.warehouseId);
-
 
3566
        return result;
-
 
3567
      }
-
 
3568
    }
-
 
3569
 
-
 
3570
    private static class getItemsInTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsInTransferLot_args> {
-
 
3571
      public getItemsInTransferLot() {
-
 
3572
        super("getItemsInTransferLot");
-
 
3573
      }
-
 
3574
 
-
 
3575
      protected getItemsInTransferLot_args getEmptyArgsInstance() {
-
 
3576
        return new getItemsInTransferLot_args();
-
 
3577
      }
-
 
3578
 
-
 
3579
      protected getItemsInTransferLot_result getResult(I iface, getItemsInTransferLot_args args) throws org.apache.thrift.TException {
-
 
3580
        getItemsInTransferLot_result result = new getItemsInTransferLot_result();
-
 
3581
        result.success = iface.getItemsInTransferLot(args.transferLotId);
-
 
3582
        return result;
-
 
3583
      }
-
 
3584
    }
-
 
3585
 
-
 
3586
    private static class markItemsAsReceivedForTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemsAsReceivedForTransferLot_args> {
-
 
3587
      public markItemsAsReceivedForTransferLot() {
-
 
3588
        super("markItemsAsReceivedForTransferLot");
-
 
3589
      }
-
 
3590
 
-
 
3591
      protected markItemsAsReceivedForTransferLot_args getEmptyArgsInstance() {
-
 
3592
        return new markItemsAsReceivedForTransferLot_args();
-
 
3593
      }
-
 
3594
 
-
 
3595
      protected markItemsAsReceivedForTransferLot_result getResult(I iface, markItemsAsReceivedForTransferLot_args args) throws org.apache.thrift.TException {
-
 
3596
        markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
-
 
3597
        try {
-
 
3598
          iface.markItemsAsReceivedForTransferLot(args.id);
-
 
3599
        } catch (WarehouseServiceException wex) {
-
 
3600
          result.wex = wex;
-
 
3601
        }
-
 
3602
        return result;
-
 
3603
      }
-
 
3604
    }
-
 
3605
 
-
 
3606
    private static class updateTransferLotAfterItemReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTransferLotAfterItemReceive_args> {
-
 
3607
      public updateTransferLotAfterItemReceive() {
-
 
3608
        super("updateTransferLotAfterItemReceive");
-
 
3609
      }
-
 
3610
 
-
 
3611
      protected updateTransferLotAfterItemReceive_args getEmptyArgsInstance() {
-
 
3612
        return new updateTransferLotAfterItemReceive_args();
-
 
3613
      }
-
 
3614
 
-
 
3615
      protected updateTransferLotAfterItemReceive_result getResult(I iface, updateTransferLotAfterItemReceive_args args) throws org.apache.thrift.TException {
-
 
3616
        updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
-
 
3617
        try {
-
 
3618
          result.success = iface.updateTransferLotAfterItemReceive(args.id);
-
 
3619
        } catch (WarehouseServiceException wex) {
-
 
3620
          result.wex = wex;
-
 
3621
        }
-
 
3622
        return result;
-
 
3623
      }
-
 
3624
    }
-
 
3625
 
-
 
3626
    private static class scanForTransfer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransfer_args> {
-
 
3627
      public scanForTransfer() {
-
 
3628
        super("scanForTransfer");
-
 
3629
      }
-
 
3630
 
-
 
3631
      protected scanForTransfer_args getEmptyArgsInstance() {
-
 
3632
        return new scanForTransfer_args();
-
 
3633
      }
-
 
3634
 
-
 
3635
      protected scanForTransfer_result getResult(I iface, scanForTransfer_args args) throws org.apache.thrift.TException {
-
 
3636
        scanForTransfer_result result = new scanForTransfer_result();
-
 
3637
        try {
-
 
3638
          iface.scanForTransfer(args.inventoryItems, args.type, args.transferLotId);
-
 
3639
        } catch (WarehouseServiceException wex) {
-
 
3640
          result.wex = wex;
-
 
3641
        }
-
 
3642
        return result;
-
 
3643
      }
-
 
3644
    }
-
 
3645
 
2808
  }
3646
  }
2809
 
3647
 
2810
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
3648
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
2811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
3649
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2812
 
3650
 
Line 3936... Line 4774...
3936
      }
4774
      }
3937
    }
4775
    }
3938
 
4776
 
3939
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4777
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3940
      try {
4778
      try {
3941
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
3942
        __isset_bit_vector = new BitSet(1);
-
 
3943
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4779
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3944
      } catch (org.apache.thrift.TException te) {
4780
      } catch (org.apache.thrift.TException te) {
3945
        throw new java.io.IOException(te);
4781
        throw new java.io.IOException(te);
3946
      }
4782
      }
3947
    }
4783
    }
Line 4335... Line 5171...
4335
 
5171
 
4336
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
5172
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4337
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
5173
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
4338
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
5174
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
4339
    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)4);
5175
    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)4);
-
 
5176
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)5);
4340
 
5177
 
4341
    private InventoryItem inventoryItem; // required
5178
    private InventoryItem inventoryItem; // required
4342
    private ScanType type; // required
5179
    private ScanType type; // required
4343
    private long quantity; // required
5180
    private long quantity; // required
4344
    private long billingWarehouseId; // required
5181
    private long billingWarehouseId; // required
-
 
5182
    private long transferLotId; // required
4345
 
5183
 
4346
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5184
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4347
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5185
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4348
      INVENTORY_ITEM((short)1, "inventoryItem"),
5186
      INVENTORY_ITEM((short)1, "inventoryItem"),
4349
      /**
5187
      /**
4350
       * 
5188
       * 
4351
       * @see ScanType
5189
       * @see ScanType
4352
       */
5190
       */
4353
      TYPE((short)2, "type"),
5191
      TYPE((short)2, "type"),
4354
      QUANTITY((short)3, "quantity"),
5192
      QUANTITY((short)3, "quantity"),
4355
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
5193
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
-
 
5194
      TRANSFER_LOT_ID((short)5, "transferLotId");
4356
 
5195
 
4357
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5196
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4358
 
5197
 
4359
      static {
5198
      static {
4360
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5199
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 4373... Line 5212...
4373
            return TYPE;
5212
            return TYPE;
4374
          case 3: // QUANTITY
5213
          case 3: // QUANTITY
4375
            return QUANTITY;
5214
            return QUANTITY;
4376
          case 4: // BILLING_WAREHOUSE_ID
5215
          case 4: // BILLING_WAREHOUSE_ID
4377
            return BILLING_WAREHOUSE_ID;
5216
            return BILLING_WAREHOUSE_ID;
-
 
5217
          case 5: // TRANSFER_LOT_ID
-
 
5218
            return TRANSFER_LOT_ID;
4378
          default:
5219
          default:
4379
            return null;
5220
            return null;
4380
        }
5221
        }
4381
      }
5222
      }
4382
 
5223
 
Line 4415... Line 5256...
4415
    }
5256
    }
4416
 
5257
 
4417
    // isset id assignments
5258
    // isset id assignments
4418
    private static final int __QUANTITY_ISSET_ID = 0;
5259
    private static final int __QUANTITY_ISSET_ID = 0;
4419
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
5260
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
-
 
5261
    private static final int __TRANSFERLOTID_ISSET_ID = 2;
4420
    private BitSet __isset_bit_vector = new BitSet(2);
5262
    private BitSet __isset_bit_vector = new BitSet(3);
4421
 
5263
 
4422
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4423
    static {
5265
    static {
4424
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4425
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5267
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 4428... Line 5270...
4428
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
5270
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4429
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5271
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4430
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4431
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5273
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4432
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5275
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4433
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5277
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4434
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
5278
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
4435
    }
5279
    }
4436
 
5280
 
4437
    public scan_args() {
5281
    public scan_args() {
Line 4439... Line 5283...
4439
 
5283
 
4440
    public scan_args(
5284
    public scan_args(
4441
      InventoryItem inventoryItem,
5285
      InventoryItem inventoryItem,
4442
      ScanType type,
5286
      ScanType type,
4443
      long quantity,
5287
      long quantity,
4444
      long billingWarehouseId)
5288
      long billingWarehouseId,
-
 
5289
      long transferLotId)
4445
    {
5290
    {
4446
      this();
5291
      this();
4447
      this.inventoryItem = inventoryItem;
5292
      this.inventoryItem = inventoryItem;
4448
      this.type = type;
5293
      this.type = type;
4449
      this.quantity = quantity;
5294
      this.quantity = quantity;
4450
      setQuantityIsSet(true);
5295
      setQuantityIsSet(true);
4451
      this.billingWarehouseId = billingWarehouseId;
5296
      this.billingWarehouseId = billingWarehouseId;
4452
      setBillingWarehouseIdIsSet(true);
5297
      setBillingWarehouseIdIsSet(true);
-
 
5298
      this.transferLotId = transferLotId;
-
 
5299
      setTransferLotIdIsSet(true);
4453
    }
5300
    }
4454
 
5301
 
4455
    /**
5302
    /**
4456
     * Performs a deep copy on <i>other</i>.
5303
     * Performs a deep copy on <i>other</i>.
4457
     */
5304
     */
Line 4464... Line 5311...
4464
      if (other.isSetType()) {
5311
      if (other.isSetType()) {
4465
        this.type = other.type;
5312
        this.type = other.type;
4466
      }
5313
      }
4467
      this.quantity = other.quantity;
5314
      this.quantity = other.quantity;
4468
      this.billingWarehouseId = other.billingWarehouseId;
5315
      this.billingWarehouseId = other.billingWarehouseId;
-
 
5316
      this.transferLotId = other.transferLotId;
4469
    }
5317
    }
4470
 
5318
 
4471
    public scan_args deepCopy() {
5319
    public scan_args deepCopy() {
4472
      return new scan_args(this);
5320
      return new scan_args(this);
4473
    }
5321
    }
Line 4478... Line 5326...
4478
      this.type = null;
5326
      this.type = null;
4479
      setQuantityIsSet(false);
5327
      setQuantityIsSet(false);
4480
      this.quantity = 0;
5328
      this.quantity = 0;
4481
      setBillingWarehouseIdIsSet(false);
5329
      setBillingWarehouseIdIsSet(false);
4482
      this.billingWarehouseId = 0;
5330
      this.billingWarehouseId = 0;
-
 
5331
      setTransferLotIdIsSet(false);
-
 
5332
      this.transferLotId = 0;
4483
    }
5333
    }
4484
 
5334
 
4485
    public InventoryItem getInventoryItem() {
5335
    public InventoryItem getInventoryItem() {
4486
      return this.inventoryItem;
5336
      return this.inventoryItem;
4487
    }
5337
    }
Line 4578... Line 5428...
4578
 
5428
 
4579
    public void setBillingWarehouseIdIsSet(boolean value) {
5429
    public void setBillingWarehouseIdIsSet(boolean value) {
4580
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
5430
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
4581
    }
5431
    }
4582
 
5432
 
-
 
5433
    public long getTransferLotId() {
-
 
5434
      return this.transferLotId;
-
 
5435
    }
-
 
5436
 
-
 
5437
    public void setTransferLotId(long transferLotId) {
-
 
5438
      this.transferLotId = transferLotId;
-
 
5439
      setTransferLotIdIsSet(true);
-
 
5440
    }
-
 
5441
 
-
 
5442
    public void unsetTransferLotId() {
-
 
5443
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
-
 
5444
    }
-
 
5445
 
-
 
5446
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
-
 
5447
    public boolean isSetTransferLotId() {
-
 
5448
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
-
 
5449
    }
-
 
5450
 
-
 
5451
    public void setTransferLotIdIsSet(boolean value) {
-
 
5452
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
-
 
5453
    }
-
 
5454
 
4583
    public void setFieldValue(_Fields field, Object value) {
5455
    public void setFieldValue(_Fields field, Object value) {
4584
      switch (field) {
5456
      switch (field) {
4585
      case INVENTORY_ITEM:
5457
      case INVENTORY_ITEM:
4586
        if (value == null) {
5458
        if (value == null) {
4587
          unsetInventoryItem();
5459
          unsetInventoryItem();
Line 4612... Line 5484...
4612
        } else {
5484
        } else {
4613
          setBillingWarehouseId((Long)value);
5485
          setBillingWarehouseId((Long)value);
4614
        }
5486
        }
4615
        break;
5487
        break;
4616
 
5488
 
-
 
5489
      case TRANSFER_LOT_ID:
-
 
5490
        if (value == null) {
-
 
5491
          unsetTransferLotId();
-
 
5492
        } else {
-
 
5493
          setTransferLotId((Long)value);
-
 
5494
        }
-
 
5495
        break;
-
 
5496
 
4617
      }
5497
      }
4618
    }
5498
    }
4619
 
5499
 
4620
    public Object getFieldValue(_Fields field) {
5500
    public Object getFieldValue(_Fields field) {
4621
      switch (field) {
5501
      switch (field) {
Line 4629... Line 5509...
4629
        return Long.valueOf(getQuantity());
5509
        return Long.valueOf(getQuantity());
4630
 
5510
 
4631
      case BILLING_WAREHOUSE_ID:
5511
      case BILLING_WAREHOUSE_ID:
4632
        return Long.valueOf(getBillingWarehouseId());
5512
        return Long.valueOf(getBillingWarehouseId());
4633
 
5513
 
-
 
5514
      case TRANSFER_LOT_ID:
-
 
5515
        return Long.valueOf(getTransferLotId());
-
 
5516
 
4634
      }
5517
      }
4635
      throw new IllegalStateException();
5518
      throw new IllegalStateException();
4636
    }
5519
    }
4637
 
5520
 
4638
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5521
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 4648... Line 5531...
4648
        return isSetType();
5531
        return isSetType();
4649
      case QUANTITY:
5532
      case QUANTITY:
4650
        return isSetQuantity();
5533
        return isSetQuantity();
4651
      case BILLING_WAREHOUSE_ID:
5534
      case BILLING_WAREHOUSE_ID:
4652
        return isSetBillingWarehouseId();
5535
        return isSetBillingWarehouseId();
-
 
5536
      case TRANSFER_LOT_ID:
-
 
5537
        return isSetTransferLotId();
4653
      }
5538
      }
4654
      throw new IllegalStateException();
5539
      throw new IllegalStateException();
4655
    }
5540
    }
4656
 
5541
 
4657
    @Override
5542
    @Override
Line 4701... Line 5586...
4701
          return false;
5586
          return false;
4702
        if (this.billingWarehouseId != that.billingWarehouseId)
5587
        if (this.billingWarehouseId != that.billingWarehouseId)
4703
          return false;
5588
          return false;
4704
      }
5589
      }
4705
 
5590
 
-
 
5591
      boolean this_present_transferLotId = true;
-
 
5592
      boolean that_present_transferLotId = true;
-
 
5593
      if (this_present_transferLotId || that_present_transferLotId) {
-
 
5594
        if (!(this_present_transferLotId && that_present_transferLotId))
-
 
5595
          return false;
-
 
5596
        if (this.transferLotId != that.transferLotId)
-
 
5597
          return false;
-
 
5598
      }
-
 
5599
 
4706
      return true;
5600
      return true;
4707
    }
5601
    }
4708
 
5602
 
4709
    @Override
5603
    @Override
4710
    public int hashCode() {
5604
    public int hashCode() {
Line 4757... Line 5651...
4757
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
5651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
4758
        if (lastComparison != 0) {
5652
        if (lastComparison != 0) {
4759
          return lastComparison;
5653
          return lastComparison;
4760
        }
5654
        }
4761
      }
5655
      }
-
 
5656
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
-
 
5657
      if (lastComparison != 0) {
-
 
5658
        return lastComparison;
-
 
5659
      }
-
 
5660
      if (isSetTransferLotId()) {
-
 
5661
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
-
 
5662
        if (lastComparison != 0) {
-
 
5663
          return lastComparison;
-
 
5664
        }
-
 
5665
      }
4762
      return 0;
5666
      return 0;
4763
    }
5667
    }
4764
 
5668
 
4765
    public _Fields fieldForId(int fieldId) {
5669
    public _Fields fieldForId(int fieldId) {
4766
      return _Fields.findByThriftId(fieldId);
5670
      return _Fields.findByThriftId(fieldId);
Line 4805... Line 5709...
4805
              setBillingWarehouseIdIsSet(true);
5709
              setBillingWarehouseIdIsSet(true);
4806
            } else { 
5710
            } else { 
4807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4808
            }
5712
            }
4809
            break;
5713
            break;
-
 
5714
          case 5: // TRANSFER_LOT_ID
-
 
5715
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5716
              this.transferLotId = iprot.readI64();
-
 
5717
              setTransferLotIdIsSet(true);
-
 
5718
            } else { 
-
 
5719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5720
            }
-
 
5721
            break;
4810
          default:
5722
          default:
4811
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5723
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4812
        }
5724
        }
4813
        iprot.readFieldEnd();
5725
        iprot.readFieldEnd();
4814
      }
5726
      }
Line 4834... Line 5746...
4834
      oprot.writeI64(this.quantity);
5746
      oprot.writeI64(this.quantity);
4835
      oprot.writeFieldEnd();
5747
      oprot.writeFieldEnd();
4836
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
5748
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
4837
      oprot.writeI64(this.billingWarehouseId);
5749
      oprot.writeI64(this.billingWarehouseId);
4838
      oprot.writeFieldEnd();
5750
      oprot.writeFieldEnd();
-
 
5751
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
-
 
5752
      oprot.writeI64(this.transferLotId);
-
 
5753
      oprot.writeFieldEnd();
4839
      oprot.writeFieldStop();
5754
      oprot.writeFieldStop();
4840
      oprot.writeStructEnd();
5755
      oprot.writeStructEnd();
4841
    }
5756
    }
4842
 
5757
 
4843
    @Override
5758
    @Override
Line 4866... Line 5781...
4866
      first = false;
5781
      first = false;
4867
      if (!first) sb.append(", ");
5782
      if (!first) sb.append(", ");
4868
      sb.append("billingWarehouseId:");
5783
      sb.append("billingWarehouseId:");
4869
      sb.append(this.billingWarehouseId);
5784
      sb.append(this.billingWarehouseId);
4870
      first = false;
5785
      first = false;
-
 
5786
      if (!first) sb.append(", ");
-
 
5787
      sb.append("transferLotId:");
-
 
5788
      sb.append(this.transferLotId);
-
 
5789
      first = false;
4871
      sb.append(")");
5790
      sb.append(")");
4872
      return sb.toString();
5791
      return sb.toString();
4873
    }
5792
    }
4874
 
5793
 
4875
    public void validate() throws org.apache.thrift.TException {
5794
    public void validate() throws org.apache.thrift.TException {
Line 14683... Line 15602...
14683
  }
15602
  }
14684
 
15603
 
14685
  public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable   {
15604
  public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable   {
14686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
15605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
14687
 
15606
 
14688
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.I64, (short)1);
15607
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
14689
 
15608
 
14690
    private long serialNumber; // required
15609
    private String serialNumber; // required
14691
 
15610
 
14692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15611
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15612
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14694
      SERIAL_NUMBER((short)1, "serialNumber");
15613
      SERIAL_NUMBER((short)1, "serialNumber");
14695
 
15614
 
Line 14746... Line 15665...
14746
        return _fieldName;
15665
        return _fieldName;
14747
      }
15666
      }
14748
    }
15667
    }
14749
 
15668
 
14750
    // isset id assignments
15669
    // isset id assignments
14751
    private static final int __SERIALNUMBER_ISSET_ID = 0;
-
 
14752
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14753
 
15670
 
14754
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15671
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14755
    static {
15672
    static {
14756
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15673
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14757
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15674
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14758
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15675
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15676
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
15677
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
14761
    }
15678
    }
14762
 
15679
 
14763
    public getScanRecordsForSerialNumber_args() {
15680
    public getScanRecordsForSerialNumber_args() {
14764
    }
15681
    }
14765
 
15682
 
14766
    public getScanRecordsForSerialNumber_args(
15683
    public getScanRecordsForSerialNumber_args(
14767
      long serialNumber)
15684
      String serialNumber)
14768
    {
15685
    {
14769
      this();
15686
      this();
14770
      this.serialNumber = serialNumber;
15687
      this.serialNumber = serialNumber;
14771
      setSerialNumberIsSet(true);
-
 
14772
    }
15688
    }
14773
 
15689
 
14774
    /**
15690
    /**
14775
     * Performs a deep copy on <i>other</i>.
15691
     * Performs a deep copy on <i>other</i>.
14776
     */
15692
     */
14777
    public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
15693
    public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
14778
      __isset_bit_vector.clear();
15694
      if (other.isSetSerialNumber()) {
14779
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
14780
      this.serialNumber = other.serialNumber;
15695
        this.serialNumber = other.serialNumber;
-
 
15696
      }
14781
    }
15697
    }
14782
 
15698
 
14783
    public getScanRecordsForSerialNumber_args deepCopy() {
15699
    public getScanRecordsForSerialNumber_args deepCopy() {
14784
      return new getScanRecordsForSerialNumber_args(this);
15700
      return new getScanRecordsForSerialNumber_args(this);
14785
    }
15701
    }
14786
 
15702
 
14787
    @Override
15703
    @Override
14788
    public void clear() {
15704
    public void clear() {
14789
      setSerialNumberIsSet(false);
-
 
14790
      this.serialNumber = 0;
15705
      this.serialNumber = null;
14791
    }
15706
    }
14792
 
15707
 
14793
    public long getSerialNumber() {
15708
    public String getSerialNumber() {
14794
      return this.serialNumber;
15709
      return this.serialNumber;
14795
    }
15710
    }
14796
 
15711
 
14797
    public void setSerialNumber(long serialNumber) {
15712
    public void setSerialNumber(String serialNumber) {
14798
      this.serialNumber = serialNumber;
15713
      this.serialNumber = serialNumber;
14799
      setSerialNumberIsSet(true);
-
 
14800
    }
15714
    }
14801
 
15715
 
14802
    public void unsetSerialNumber() {
15716
    public void unsetSerialNumber() {
14803
      __isset_bit_vector.clear(__SERIALNUMBER_ISSET_ID);
15717
      this.serialNumber = null;
14804
    }
15718
    }
14805
 
15719
 
14806
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
15720
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
14807
    public boolean isSetSerialNumber() {
15721
    public boolean isSetSerialNumber() {
14808
      return __isset_bit_vector.get(__SERIALNUMBER_ISSET_ID);
15722
      return this.serialNumber != null;
14809
    }
15723
    }
14810
 
15724
 
14811
    public void setSerialNumberIsSet(boolean value) {
15725
    public void setSerialNumberIsSet(boolean value) {
-
 
15726
      if (!value) {
14812
      __isset_bit_vector.set(__SERIALNUMBER_ISSET_ID, value);
15727
        this.serialNumber = null;
-
 
15728
      }
14813
    }
15729
    }
14814
 
15730
 
14815
    public void setFieldValue(_Fields field, Object value) {
15731
    public void setFieldValue(_Fields field, Object value) {
14816
      switch (field) {
15732
      switch (field) {
14817
      case SERIAL_NUMBER:
15733
      case SERIAL_NUMBER:
14818
        if (value == null) {
15734
        if (value == null) {
14819
          unsetSerialNumber();
15735
          unsetSerialNumber();
14820
        } else {
15736
        } else {
14821
          setSerialNumber((Long)value);
15737
          setSerialNumber((String)value);
14822
        }
15738
        }
14823
        break;
15739
        break;
14824
 
15740
 
14825
      }
15741
      }
14826
    }
15742
    }
14827
 
15743
 
14828
    public Object getFieldValue(_Fields field) {
15744
    public Object getFieldValue(_Fields field) {
14829
      switch (field) {
15745
      switch (field) {
14830
      case SERIAL_NUMBER:
15746
      case SERIAL_NUMBER:
14831
        return Long.valueOf(getSerialNumber());
15747
        return getSerialNumber();
14832
 
15748
 
14833
      }
15749
      }
14834
      throw new IllegalStateException();
15750
      throw new IllegalStateException();
14835
    }
15751
    }
14836
 
15752
 
Line 14858... Line 15774...
14858
 
15774
 
14859
    public boolean equals(getScanRecordsForSerialNumber_args that) {
15775
    public boolean equals(getScanRecordsForSerialNumber_args that) {
14860
      if (that == null)
15776
      if (that == null)
14861
        return false;
15777
        return false;
14862
 
15778
 
14863
      boolean this_present_serialNumber = true;
15779
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
14864
      boolean that_present_serialNumber = true;
15780
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
14865
      if (this_present_serialNumber || that_present_serialNumber) {
15781
      if (this_present_serialNumber || that_present_serialNumber) {
14866
        if (!(this_present_serialNumber && that_present_serialNumber))
15782
        if (!(this_present_serialNumber && that_present_serialNumber))
14867
          return false;
15783
          return false;
14868
        if (this.serialNumber != that.serialNumber)
15784
        if (!this.serialNumber.equals(that.serialNumber))
14869
          return false;
15785
          return false;
14870
      }
15786
      }
14871
 
15787
 
14872
      return true;
15788
      return true;
14873
    }
15789
    }
Line 14911... Line 15827...
14911
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15827
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14912
          break;
15828
          break;
14913
        }
15829
        }
14914
        switch (field.id) {
15830
        switch (field.id) {
14915
          case 1: // SERIAL_NUMBER
15831
          case 1: // SERIAL_NUMBER
14916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15832
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14917
              this.serialNumber = iprot.readI64();
15833
              this.serialNumber = iprot.readString();
14918
              setSerialNumberIsSet(true);
-
 
14919
            } else { 
15834
            } else { 
14920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14921
            }
15836
            }
14922
            break;
15837
            break;
14923
          default:
15838
          default:
Line 14931... Line 15846...
14931
 
15846
 
14932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14933
      validate();
15848
      validate();
14934
 
15849
 
14935
      oprot.writeStructBegin(STRUCT_DESC);
15850
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15851
      if (this.serialNumber != null) {
14936
      oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
15852
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
14937
      oprot.writeI64(this.serialNumber);
15853
        oprot.writeString(this.serialNumber);
14938
      oprot.writeFieldEnd();
15854
        oprot.writeFieldEnd();
-
 
15855
      }
14939
      oprot.writeFieldStop();
15856
      oprot.writeFieldStop();
14940
      oprot.writeStructEnd();
15857
      oprot.writeStructEnd();
14941
    }
15858
    }
14942
 
15859
 
14943
    @Override
15860
    @Override
14944
    public String toString() {
15861
    public String toString() {
14945
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
15862
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
14946
      boolean first = true;
15863
      boolean first = true;
14947
 
15864
 
14948
      sb.append("serialNumber:");
15865
      sb.append("serialNumber:");
-
 
15866
      if (this.serialNumber == null) {
-
 
15867
        sb.append("null");
-
 
15868
      } else {
14949
      sb.append(this.serialNumber);
15869
        sb.append(this.serialNumber);
-
 
15870
      }
14950
      first = false;
15871
      first = false;
14951
      sb.append(")");
15872
      sb.append(")");
14952
      return sb.toString();
15873
      return sb.toString();
14953
    }
15874
    }
14954
 
15875
 
Line 14964... Line 15885...
14964
      }
15885
      }
14965
    }
15886
    }
14966
 
15887
 
14967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15888
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14968
      try {
15889
      try {
14969
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
14970
        __isset_bit_vector = new BitSet(1);
-
 
14971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15890
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14972
      } catch (org.apache.thrift.TException te) {
15891
      } catch (org.apache.thrift.TException te) {
14973
        throw new java.io.IOException(te);
15892
        throw new java.io.IOException(te);
14974
      }
15893
      }
14975
    }
15894
    }
Line 20606... Line 21525...
20606
  }
21525
  }
20607
 
21526
 
20608
  public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable   {
21527
  public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable   {
20609
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
21528
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
20610
 
21529
 
-
 
21530
    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);
20611
 
21531
 
-
 
21532
    private WarehouseServiceException ex; // required
20612
 
21533
 
20613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21534
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21535
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20615
;
-
 
-
 
21536
      EX((short)1, "ex");
20616
 
21537
 
20617
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21538
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20618
 
21539
 
20619
      static {
21540
      static {
20620
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21541
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 20625... Line 21546...
20625
      /**
21546
      /**
20626
       * Find the _Fields constant that matches fieldId, or null if its not found.
21547
       * Find the _Fields constant that matches fieldId, or null if its not found.
20627
       */
21548
       */
20628
      public static _Fields findByThriftId(int fieldId) {
21549
      public static _Fields findByThriftId(int fieldId) {
20629
        switch(fieldId) {
21550
        switch(fieldId) {
-
 
21551
          case 1: // EX
-
 
21552
            return EX;
20630
          default:
21553
          default:
20631
            return null;
21554
            return null;
20632
        }
21555
        }
20633
      }
21556
      }
20634
 
21557
 
Line 20663... Line 21586...
20663
 
21586
 
20664
      public String getFieldName() {
21587
      public String getFieldName() {
20665
        return _fieldName;
21588
        return _fieldName;
20666
      }
21589
      }
20667
    }
21590
    }
-
 
21591
 
-
 
21592
    // isset id assignments
-
 
21593
 
20668
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21594
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20669
    static {
21595
    static {
20670
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21596
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21597
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21598
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20671
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20672
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
21600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
20673
    }
21601
    }
20674
 
21602
 
20675
    public scanForOursExternalSaleReturn_result() {
21603
    public scanForOursExternalSaleReturn_result() {
20676
    }
21604
    }
20677
 
21605
 
-
 
21606
    public scanForOursExternalSaleReturn_result(
-
 
21607
      WarehouseServiceException ex)
-
 
21608
    {
-
 
21609
      this();
-
 
21610
      this.ex = ex;
-
 
21611
    }
-
 
21612
 
20678
    /**
21613
    /**
20679
     * Performs a deep copy on <i>other</i>.
21614
     * Performs a deep copy on <i>other</i>.
20680
     */
21615
     */
20681
    public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
21616
    public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
-
 
21617
      if (other.isSetEx()) {
-
 
21618
        this.ex = new WarehouseServiceException(other.ex);
-
 
21619
      }
20682
    }
21620
    }
20683
 
21621
 
20684
    public scanForOursExternalSaleReturn_result deepCopy() {
21622
    public scanForOursExternalSaleReturn_result deepCopy() {
20685
      return new scanForOursExternalSaleReturn_result(this);
21623
      return new scanForOursExternalSaleReturn_result(this);
20686
    }
21624
    }
20687
 
21625
 
20688
    @Override
21626
    @Override
20689
    public void clear() {
21627
    public void clear() {
-
 
21628
      this.ex = null;
-
 
21629
    }
-
 
21630
 
-
 
21631
    public WarehouseServiceException getEx() {
-
 
21632
      return this.ex;
-
 
21633
    }
-
 
21634
 
-
 
21635
    public void setEx(WarehouseServiceException ex) {
-
 
21636
      this.ex = ex;
-
 
21637
    }
-
 
21638
 
-
 
21639
    public void unsetEx() {
-
 
21640
      this.ex = null;
-
 
21641
    }
-
 
21642
 
-
 
21643
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
21644
    public boolean isSetEx() {
-
 
21645
      return this.ex != null;
-
 
21646
    }
-
 
21647
 
-
 
21648
    public void setExIsSet(boolean value) {
-
 
21649
      if (!value) {
-
 
21650
        this.ex = null;
-
 
21651
      }
20690
    }
21652
    }
20691
 
21653
 
20692
    public void setFieldValue(_Fields field, Object value) {
21654
    public void setFieldValue(_Fields field, Object value) {
20693
      switch (field) {
21655
      switch (field) {
-
 
21656
      case EX:
-
 
21657
        if (value == null) {
-
 
21658
          unsetEx();
-
 
21659
        } else {
-
 
21660
          setEx((WarehouseServiceException)value);
-
 
21661
        }
-
 
21662
        break;
-
 
21663
 
20694
      }
21664
      }
20695
    }
21665
    }
20696
 
21666
 
20697
    public Object getFieldValue(_Fields field) {
21667
    public Object getFieldValue(_Fields field) {
20698
      switch (field) {
21668
      switch (field) {
-
 
21669
      case EX:
-
 
21670
        return getEx();
-
 
21671
 
20699
      }
21672
      }
20700
      throw new IllegalStateException();
21673
      throw new IllegalStateException();
20701
    }
21674
    }
20702
 
21675
 
20703
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21676
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 20705... Line 21678...
20705
      if (field == null) {
21678
      if (field == null) {
20706
        throw new IllegalArgumentException();
21679
        throw new IllegalArgumentException();
20707
      }
21680
      }
20708
 
21681
 
20709
      switch (field) {
21682
      switch (field) {
-
 
21683
      case EX:
-
 
21684
        return isSetEx();
20710
      }
21685
      }
20711
      throw new IllegalStateException();
21686
      throw new IllegalStateException();
20712
    }
21687
    }
20713
 
21688
 
20714
    @Override
21689
    @Override
Line 20722... Line 21697...
20722
 
21697
 
20723
    public boolean equals(scanForOursExternalSaleReturn_result that) {
21698
    public boolean equals(scanForOursExternalSaleReturn_result that) {
20724
      if (that == null)
21699
      if (that == null)
20725
        return false;
21700
        return false;
20726
 
21701
 
-
 
21702
      boolean this_present_ex = true && this.isSetEx();
-
 
21703
      boolean that_present_ex = true && that.isSetEx();
-
 
21704
      if (this_present_ex || that_present_ex) {
-
 
21705
        if (!(this_present_ex && that_present_ex))
-
 
21706
          return false;
-
 
21707
        if (!this.ex.equals(that.ex))
-
 
21708
          return false;
-
 
21709
      }
-
 
21710
 
20727
      return true;
21711
      return true;
20728
    }
21712
    }
20729
 
21713
 
20730
    @Override
21714
    @Override
20731
    public int hashCode() {
21715
    public int hashCode() {
Line 20738... Line 21722...
20738
      }
21722
      }
20739
 
21723
 
20740
      int lastComparison = 0;
21724
      int lastComparison = 0;
20741
      scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
21725
      scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
20742
 
21726
 
-
 
21727
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
21728
      if (lastComparison != 0) {
-
 
21729
        return lastComparison;
-
 
21730
      }
-
 
21731
      if (isSetEx()) {
-
 
21732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
21733
        if (lastComparison != 0) {
-
 
21734
          return lastComparison;
-
 
21735
        }
-
 
21736
      }
20743
      return 0;
21737
      return 0;
20744
    }
21738
    }
20745
 
21739
 
20746
    public _Fields fieldForId(int fieldId) {
21740
    public _Fields fieldForId(int fieldId) {
20747
      return _Fields.findByThriftId(fieldId);
21741
      return _Fields.findByThriftId(fieldId);
Line 20755... Line 21749...
20755
        field = iprot.readFieldBegin();
21749
        field = iprot.readFieldBegin();
20756
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21750
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20757
          break;
21751
          break;
20758
        }
21752
        }
20759
        switch (field.id) {
21753
        switch (field.id) {
-
 
21754
          case 1: // EX
-
 
21755
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
21756
              this.ex = new WarehouseServiceException();
-
 
21757
              this.ex.read(iprot);
-
 
21758
            } else { 
-
 
21759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21760
            }
-
 
21761
            break;
20760
          default:
21762
          default:
20761
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21763
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20762
        }
21764
        }
20763
        iprot.readFieldEnd();
21765
        iprot.readFieldEnd();
20764
      }
21766
      }
Line 20767... Line 21769...
20767
    }
21769
    }
20768
 
21770
 
20769
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21771
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20770
      oprot.writeStructBegin(STRUCT_DESC);
21772
      oprot.writeStructBegin(STRUCT_DESC);
20771
 
21773
 
-
 
21774
      if (this.isSetEx()) {
-
 
21775
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
21776
        this.ex.write(oprot);
-
 
21777
        oprot.writeFieldEnd();
-
 
21778
      }
20772
      oprot.writeFieldStop();
21779
      oprot.writeFieldStop();
20773
      oprot.writeStructEnd();
21780
      oprot.writeStructEnd();
20774
    }
21781
    }
20775
 
21782
 
20776
    @Override
21783
    @Override
20777
    public String toString() {
21784
    public String toString() {
20778
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
21785
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
20779
      boolean first = true;
21786
      boolean first = true;
20780
 
21787
 
-
 
21788
      sb.append("ex:");
-
 
21789
      if (this.ex == null) {
-
 
21790
        sb.append("null");
-
 
21791
      } else {
-
 
21792
        sb.append(this.ex);
-
 
21793
      }
-
 
21794
      first = false;
20781
      sb.append(")");
21795
      sb.append(")");
20782
      return sb.toString();
21796
      return sb.toString();
20783
    }
21797
    }
20784
 
21798
 
20785
    public void validate() throws org.apache.thrift.TException {
21799
    public void validate() throws org.apache.thrift.TException {
Line 25400... Line 26414...
25400
      boolean first = true;
26414
      boolean first = true;
25401
 
26415
 
25402
      sb.append("wex:");
26416
      sb.append("wex:");
25403
      if (this.wex == null) {
26417
      if (this.wex == null) {
25404
        sb.append("null");
26418
        sb.append("null");
-
 
26419
      } else {
-
 
26420
        sb.append(this.wex);
-
 
26421
      }
-
 
26422
      first = false;
-
 
26423
      sb.append(")");
-
 
26424
      return sb.toString();
-
 
26425
    }
-
 
26426
 
-
 
26427
    public void validate() throws org.apache.thrift.TException {
-
 
26428
      // check for required fields
-
 
26429
    }
-
 
26430
 
-
 
26431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
26432
      try {
-
 
26433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
26434
      } catch (org.apache.thrift.TException te) {
-
 
26435
        throw new java.io.IOException(te);
-
 
26436
      }
-
 
26437
    }
-
 
26438
 
-
 
26439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
26440
      try {
-
 
26441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
26442
      } catch (org.apache.thrift.TException te) {
-
 
26443
        throw new java.io.IOException(te);
-
 
26444
      }
-
 
26445
    }
-
 
26446
 
-
 
26447
  }
-
 
26448
 
-
 
26449
  public static class isItemTransferAllowed_args implements org.apache.thrift.TBase<isItemTransferAllowed_args, isItemTransferAllowed_args._Fields>, java.io.Serializable, Cloneable   {
-
 
26450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_args");
-
 
26451
 
-
 
26452
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
26453
    private static final org.apache.thrift.protocol.TField TRANSFER_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
26454
 
-
 
26455
    private long warehouseId; // required
-
 
26456
    private long transferWarehouseId; // required
-
 
26457
 
-
 
26458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
26460
      WAREHOUSE_ID((short)1, "warehouseId"),
-
 
26461
      TRANSFER_WAREHOUSE_ID((short)2, "transferWarehouseId");
-
 
26462
 
-
 
26463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26464
 
-
 
26465
      static {
-
 
26466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26467
          byName.put(field.getFieldName(), field);
-
 
26468
        }
-
 
26469
      }
-
 
26470
 
-
 
26471
      /**
-
 
26472
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26473
       */
-
 
26474
      public static _Fields findByThriftId(int fieldId) {
-
 
26475
        switch(fieldId) {
-
 
26476
          case 1: // WAREHOUSE_ID
-
 
26477
            return WAREHOUSE_ID;
-
 
26478
          case 2: // TRANSFER_WAREHOUSE_ID
-
 
26479
            return TRANSFER_WAREHOUSE_ID;
-
 
26480
          default:
-
 
26481
            return null;
-
 
26482
        }
-
 
26483
      }
-
 
26484
 
-
 
26485
      /**
-
 
26486
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26487
       * if it is not found.
-
 
26488
       */
-
 
26489
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26490
        _Fields fields = findByThriftId(fieldId);
-
 
26491
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26492
        return fields;
-
 
26493
      }
-
 
26494
 
-
 
26495
      /**
-
 
26496
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26497
       */
-
 
26498
      public static _Fields findByName(String name) {
-
 
26499
        return byName.get(name);
-
 
26500
      }
-
 
26501
 
-
 
26502
      private final short _thriftId;
-
 
26503
      private final String _fieldName;
-
 
26504
 
-
 
26505
      _Fields(short thriftId, String fieldName) {
-
 
26506
        _thriftId = thriftId;
-
 
26507
        _fieldName = fieldName;
-
 
26508
      }
-
 
26509
 
-
 
26510
      public short getThriftFieldId() {
-
 
26511
        return _thriftId;
-
 
26512
      }
-
 
26513
 
-
 
26514
      public String getFieldName() {
-
 
26515
        return _fieldName;
-
 
26516
      }
-
 
26517
    }
-
 
26518
 
-
 
26519
    // isset id assignments
-
 
26520
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
26521
    private static final int __TRANSFERWAREHOUSEID_ISSET_ID = 1;
-
 
26522
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
26523
 
-
 
26524
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
26525
    static {
-
 
26526
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
26527
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
26528
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
26529
      tmpMap.put(_Fields.TRANSFER_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("transferWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
26530
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
26531
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
26532
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_args.class, metaDataMap);
-
 
26533
    }
-
 
26534
 
-
 
26535
    public isItemTransferAllowed_args() {
-
 
26536
    }
-
 
26537
 
-
 
26538
    public isItemTransferAllowed_args(
-
 
26539
      long warehouseId,
-
 
26540
      long transferWarehouseId)
-
 
26541
    {
-
 
26542
      this();
-
 
26543
      this.warehouseId = warehouseId;
-
 
26544
      setWarehouseIdIsSet(true);
-
 
26545
      this.transferWarehouseId = transferWarehouseId;
-
 
26546
      setTransferWarehouseIdIsSet(true);
-
 
26547
    }
-
 
26548
 
-
 
26549
    /**
-
 
26550
     * Performs a deep copy on <i>other</i>.
-
 
26551
     */
-
 
26552
    public isItemTransferAllowed_args(isItemTransferAllowed_args other) {
-
 
26553
      __isset_bit_vector.clear();
-
 
26554
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
26555
      this.warehouseId = other.warehouseId;
-
 
26556
      this.transferWarehouseId = other.transferWarehouseId;
-
 
26557
    }
-
 
26558
 
-
 
26559
    public isItemTransferAllowed_args deepCopy() {
-
 
26560
      return new isItemTransferAllowed_args(this);
-
 
26561
    }
-
 
26562
 
-
 
26563
    @Override
-
 
26564
    public void clear() {
-
 
26565
      setWarehouseIdIsSet(false);
-
 
26566
      this.warehouseId = 0;
-
 
26567
      setTransferWarehouseIdIsSet(false);
-
 
26568
      this.transferWarehouseId = 0;
-
 
26569
    }
-
 
26570
 
-
 
26571
    public long getWarehouseId() {
-
 
26572
      return this.warehouseId;
-
 
26573
    }
-
 
26574
 
-
 
26575
    public void setWarehouseId(long warehouseId) {
-
 
26576
      this.warehouseId = warehouseId;
-
 
26577
      setWarehouseIdIsSet(true);
-
 
26578
    }
-
 
26579
 
-
 
26580
    public void unsetWarehouseId() {
-
 
26581
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
26582
    }
-
 
26583
 
-
 
26584
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
26585
    public boolean isSetWarehouseId() {
-
 
26586
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
26587
    }
-
 
26588
 
-
 
26589
    public void setWarehouseIdIsSet(boolean value) {
-
 
26590
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
26591
    }
-
 
26592
 
-
 
26593
    public long getTransferWarehouseId() {
-
 
26594
      return this.transferWarehouseId;
-
 
26595
    }
-
 
26596
 
-
 
26597
    public void setTransferWarehouseId(long transferWarehouseId) {
-
 
26598
      this.transferWarehouseId = transferWarehouseId;
-
 
26599
      setTransferWarehouseIdIsSet(true);
-
 
26600
    }
-
 
26601
 
-
 
26602
    public void unsetTransferWarehouseId() {
-
 
26603
      __isset_bit_vector.clear(__TRANSFERWAREHOUSEID_ISSET_ID);
-
 
26604
    }
-
 
26605
 
-
 
26606
    /** Returns true if field transferWarehouseId is set (has been assigned a value) and false otherwise */
-
 
26607
    public boolean isSetTransferWarehouseId() {
-
 
26608
      return __isset_bit_vector.get(__TRANSFERWAREHOUSEID_ISSET_ID);
-
 
26609
    }
-
 
26610
 
-
 
26611
    public void setTransferWarehouseIdIsSet(boolean value) {
-
 
26612
      __isset_bit_vector.set(__TRANSFERWAREHOUSEID_ISSET_ID, value);
-
 
26613
    }
-
 
26614
 
-
 
26615
    public void setFieldValue(_Fields field, Object value) {
-
 
26616
      switch (field) {
-
 
26617
      case WAREHOUSE_ID:
-
 
26618
        if (value == null) {
-
 
26619
          unsetWarehouseId();
-
 
26620
        } else {
-
 
26621
          setWarehouseId((Long)value);
-
 
26622
        }
-
 
26623
        break;
-
 
26624
 
-
 
26625
      case TRANSFER_WAREHOUSE_ID:
-
 
26626
        if (value == null) {
-
 
26627
          unsetTransferWarehouseId();
-
 
26628
        } else {
-
 
26629
          setTransferWarehouseId((Long)value);
-
 
26630
        }
-
 
26631
        break;
-
 
26632
 
-
 
26633
      }
-
 
26634
    }
-
 
26635
 
-
 
26636
    public Object getFieldValue(_Fields field) {
-
 
26637
      switch (field) {
-
 
26638
      case WAREHOUSE_ID:
-
 
26639
        return Long.valueOf(getWarehouseId());
-
 
26640
 
-
 
26641
      case TRANSFER_WAREHOUSE_ID:
-
 
26642
        return Long.valueOf(getTransferWarehouseId());
-
 
26643
 
-
 
26644
      }
-
 
26645
      throw new IllegalStateException();
-
 
26646
    }
-
 
26647
 
-
 
26648
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
26649
    public boolean isSet(_Fields field) {
-
 
26650
      if (field == null) {
-
 
26651
        throw new IllegalArgumentException();
-
 
26652
      }
-
 
26653
 
-
 
26654
      switch (field) {
-
 
26655
      case WAREHOUSE_ID:
-
 
26656
        return isSetWarehouseId();
-
 
26657
      case TRANSFER_WAREHOUSE_ID:
-
 
26658
        return isSetTransferWarehouseId();
-
 
26659
      }
-
 
26660
      throw new IllegalStateException();
-
 
26661
    }
-
 
26662
 
-
 
26663
    @Override
-
 
26664
    public boolean equals(Object that) {
-
 
26665
      if (that == null)
-
 
26666
        return false;
-
 
26667
      if (that instanceof isItemTransferAllowed_args)
-
 
26668
        return this.equals((isItemTransferAllowed_args)that);
-
 
26669
      return false;
-
 
26670
    }
-
 
26671
 
-
 
26672
    public boolean equals(isItemTransferAllowed_args that) {
-
 
26673
      if (that == null)
-
 
26674
        return false;
-
 
26675
 
-
 
26676
      boolean this_present_warehouseId = true;
-
 
26677
      boolean that_present_warehouseId = true;
-
 
26678
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
26679
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
26680
          return false;
-
 
26681
        if (this.warehouseId != that.warehouseId)
-
 
26682
          return false;
-
 
26683
      }
-
 
26684
 
-
 
26685
      boolean this_present_transferWarehouseId = true;
-
 
26686
      boolean that_present_transferWarehouseId = true;
-
 
26687
      if (this_present_transferWarehouseId || that_present_transferWarehouseId) {
-
 
26688
        if (!(this_present_transferWarehouseId && that_present_transferWarehouseId))
-
 
26689
          return false;
-
 
26690
        if (this.transferWarehouseId != that.transferWarehouseId)
-
 
26691
          return false;
-
 
26692
      }
-
 
26693
 
-
 
26694
      return true;
-
 
26695
    }
-
 
26696
 
-
 
26697
    @Override
-
 
26698
    public int hashCode() {
-
 
26699
      return 0;
-
 
26700
    }
-
 
26701
 
-
 
26702
    public int compareTo(isItemTransferAllowed_args other) {
-
 
26703
      if (!getClass().equals(other.getClass())) {
-
 
26704
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26705
      }
-
 
26706
 
-
 
26707
      int lastComparison = 0;
-
 
26708
      isItemTransferAllowed_args typedOther = (isItemTransferAllowed_args)other;
-
 
26709
 
-
 
26710
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
26711
      if (lastComparison != 0) {
-
 
26712
        return lastComparison;
-
 
26713
      }
-
 
26714
      if (isSetWarehouseId()) {
-
 
26715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
26716
        if (lastComparison != 0) {
-
 
26717
          return lastComparison;
-
 
26718
        }
-
 
26719
      }
-
 
26720
      lastComparison = Boolean.valueOf(isSetTransferWarehouseId()).compareTo(typedOther.isSetTransferWarehouseId());
-
 
26721
      if (lastComparison != 0) {
-
 
26722
        return lastComparison;
-
 
26723
      }
-
 
26724
      if (isSetTransferWarehouseId()) {
-
 
26725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferWarehouseId, typedOther.transferWarehouseId);
-
 
26726
        if (lastComparison != 0) {
-
 
26727
          return lastComparison;
-
 
26728
        }
-
 
26729
      }
-
 
26730
      return 0;
-
 
26731
    }
-
 
26732
 
-
 
26733
    public _Fields fieldForId(int fieldId) {
-
 
26734
      return _Fields.findByThriftId(fieldId);
-
 
26735
    }
-
 
26736
 
-
 
26737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
26738
      org.apache.thrift.protocol.TField field;
-
 
26739
      iprot.readStructBegin();
-
 
26740
      while (true)
-
 
26741
      {
-
 
26742
        field = iprot.readFieldBegin();
-
 
26743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
26744
          break;
-
 
26745
        }
-
 
26746
        switch (field.id) {
-
 
26747
          case 1: // WAREHOUSE_ID
-
 
26748
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
26749
              this.warehouseId = iprot.readI64();
-
 
26750
              setWarehouseIdIsSet(true);
-
 
26751
            } else { 
-
 
26752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26753
            }
-
 
26754
            break;
-
 
26755
          case 2: // TRANSFER_WAREHOUSE_ID
-
 
26756
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
26757
              this.transferWarehouseId = iprot.readI64();
-
 
26758
              setTransferWarehouseIdIsSet(true);
-
 
26759
            } else { 
-
 
26760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26761
            }
-
 
26762
            break;
-
 
26763
          default:
-
 
26764
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
26765
        }
-
 
26766
        iprot.readFieldEnd();
-
 
26767
      }
-
 
26768
      iprot.readStructEnd();
-
 
26769
      validate();
-
 
26770
    }
-
 
26771
 
-
 
26772
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
26773
      validate();
-
 
26774
 
-
 
26775
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26776
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
26777
      oprot.writeI64(this.warehouseId);
-
 
26778
      oprot.writeFieldEnd();
-
 
26779
      oprot.writeFieldBegin(TRANSFER_WAREHOUSE_ID_FIELD_DESC);
-
 
26780
      oprot.writeI64(this.transferWarehouseId);
-
 
26781
      oprot.writeFieldEnd();
-
 
26782
      oprot.writeFieldStop();
-
 
26783
      oprot.writeStructEnd();
-
 
26784
    }
-
 
26785
 
-
 
26786
    @Override
-
 
26787
    public String toString() {
-
 
26788
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_args(");
-
 
26789
      boolean first = true;
-
 
26790
 
-
 
26791
      sb.append("warehouseId:");
-
 
26792
      sb.append(this.warehouseId);
-
 
26793
      first = false;
-
 
26794
      if (!first) sb.append(", ");
-
 
26795
      sb.append("transferWarehouseId:");
-
 
26796
      sb.append(this.transferWarehouseId);
-
 
26797
      first = false;
-
 
26798
      sb.append(")");
-
 
26799
      return sb.toString();
-
 
26800
    }
-
 
26801
 
-
 
26802
    public void validate() throws org.apache.thrift.TException {
-
 
26803
      // check for required fields
-
 
26804
    }
-
 
26805
 
-
 
26806
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
26807
      try {
-
 
26808
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
26809
      } catch (org.apache.thrift.TException te) {
-
 
26810
        throw new java.io.IOException(te);
-
 
26811
      }
-
 
26812
    }
-
 
26813
 
-
 
26814
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
26815
      try {
-
 
26816
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
26817
        __isset_bit_vector = new BitSet(1);
-
 
26818
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
26819
      } catch (org.apache.thrift.TException te) {
-
 
26820
        throw new java.io.IOException(te);
-
 
26821
      }
-
 
26822
    }
-
 
26823
 
-
 
26824
  }
-
 
26825
 
-
 
26826
  public static class isItemTransferAllowed_result implements org.apache.thrift.TBase<isItemTransferAllowed_result, isItemTransferAllowed_result._Fields>, java.io.Serializable, Cloneable   {
-
 
26827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_result");
-
 
26828
 
-
 
26829
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
26830
 
-
 
26831
    private boolean success; // required
-
 
26832
 
-
 
26833
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26834
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
26835
      SUCCESS((short)0, "success");
-
 
26836
 
-
 
26837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26838
 
-
 
26839
      static {
-
 
26840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26841
          byName.put(field.getFieldName(), field);
-
 
26842
        }
-
 
26843
      }
-
 
26844
 
-
 
26845
      /**
-
 
26846
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26847
       */
-
 
26848
      public static _Fields findByThriftId(int fieldId) {
-
 
26849
        switch(fieldId) {
-
 
26850
          case 0: // SUCCESS
-
 
26851
            return SUCCESS;
-
 
26852
          default:
-
 
26853
            return null;
-
 
26854
        }
-
 
26855
      }
-
 
26856
 
-
 
26857
      /**
-
 
26858
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26859
       * if it is not found.
-
 
26860
       */
-
 
26861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26862
        _Fields fields = findByThriftId(fieldId);
-
 
26863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26864
        return fields;
-
 
26865
      }
-
 
26866
 
-
 
26867
      /**
-
 
26868
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26869
       */
-
 
26870
      public static _Fields findByName(String name) {
-
 
26871
        return byName.get(name);
-
 
26872
      }
-
 
26873
 
-
 
26874
      private final short _thriftId;
-
 
26875
      private final String _fieldName;
-
 
26876
 
-
 
26877
      _Fields(short thriftId, String fieldName) {
-
 
26878
        _thriftId = thriftId;
-
 
26879
        _fieldName = fieldName;
-
 
26880
      }
-
 
26881
 
-
 
26882
      public short getThriftFieldId() {
-
 
26883
        return _thriftId;
-
 
26884
      }
-
 
26885
 
-
 
26886
      public String getFieldName() {
-
 
26887
        return _fieldName;
-
 
26888
      }
-
 
26889
    }
-
 
26890
 
-
 
26891
    // isset id assignments
-
 
26892
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
26893
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
26894
 
-
 
26895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
26896
    static {
-
 
26897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
26898
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
26899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
26900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
26901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_result.class, metaDataMap);
-
 
26902
    }
-
 
26903
 
-
 
26904
    public isItemTransferAllowed_result() {
-
 
26905
    }
-
 
26906
 
-
 
26907
    public isItemTransferAllowed_result(
-
 
26908
      boolean success)
-
 
26909
    {
-
 
26910
      this();
-
 
26911
      this.success = success;
-
 
26912
      setSuccessIsSet(true);
-
 
26913
    }
-
 
26914
 
-
 
26915
    /**
-
 
26916
     * Performs a deep copy on <i>other</i>.
-
 
26917
     */
-
 
26918
    public isItemTransferAllowed_result(isItemTransferAllowed_result other) {
-
 
26919
      __isset_bit_vector.clear();
-
 
26920
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
26921
      this.success = other.success;
-
 
26922
    }
-
 
26923
 
-
 
26924
    public isItemTransferAllowed_result deepCopy() {
-
 
26925
      return new isItemTransferAllowed_result(this);
-
 
26926
    }
-
 
26927
 
-
 
26928
    @Override
-
 
26929
    public void clear() {
-
 
26930
      setSuccessIsSet(false);
-
 
26931
      this.success = false;
-
 
26932
    }
-
 
26933
 
-
 
26934
    public boolean isSuccess() {
-
 
26935
      return this.success;
-
 
26936
    }
-
 
26937
 
-
 
26938
    public void setSuccess(boolean success) {
-
 
26939
      this.success = success;
-
 
26940
      setSuccessIsSet(true);
-
 
26941
    }
-
 
26942
 
-
 
26943
    public void unsetSuccess() {
-
 
26944
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
26945
    }
-
 
26946
 
-
 
26947
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
26948
    public boolean isSetSuccess() {
-
 
26949
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
26950
    }
-
 
26951
 
-
 
26952
    public void setSuccessIsSet(boolean value) {
-
 
26953
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
26954
    }
-
 
26955
 
-
 
26956
    public void setFieldValue(_Fields field, Object value) {
-
 
26957
      switch (field) {
-
 
26958
      case SUCCESS:
-
 
26959
        if (value == null) {
-
 
26960
          unsetSuccess();
-
 
26961
        } else {
-
 
26962
          setSuccess((Boolean)value);
-
 
26963
        }
-
 
26964
        break;
-
 
26965
 
-
 
26966
      }
-
 
26967
    }
-
 
26968
 
-
 
26969
    public Object getFieldValue(_Fields field) {
-
 
26970
      switch (field) {
-
 
26971
      case SUCCESS:
-
 
26972
        return Boolean.valueOf(isSuccess());
-
 
26973
 
-
 
26974
      }
-
 
26975
      throw new IllegalStateException();
-
 
26976
    }
-
 
26977
 
-
 
26978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
26979
    public boolean isSet(_Fields field) {
-
 
26980
      if (field == null) {
-
 
26981
        throw new IllegalArgumentException();
-
 
26982
      }
-
 
26983
 
-
 
26984
      switch (field) {
-
 
26985
      case SUCCESS:
-
 
26986
        return isSetSuccess();
-
 
26987
      }
-
 
26988
      throw new IllegalStateException();
-
 
26989
    }
-
 
26990
 
-
 
26991
    @Override
-
 
26992
    public boolean equals(Object that) {
-
 
26993
      if (that == null)
-
 
26994
        return false;
-
 
26995
      if (that instanceof isItemTransferAllowed_result)
-
 
26996
        return this.equals((isItemTransferAllowed_result)that);
-
 
26997
      return false;
-
 
26998
    }
-
 
26999
 
-
 
27000
    public boolean equals(isItemTransferAllowed_result that) {
-
 
27001
      if (that == null)
-
 
27002
        return false;
-
 
27003
 
-
 
27004
      boolean this_present_success = true;
-
 
27005
      boolean that_present_success = true;
-
 
27006
      if (this_present_success || that_present_success) {
-
 
27007
        if (!(this_present_success && that_present_success))
-
 
27008
          return false;
-
 
27009
        if (this.success != that.success)
-
 
27010
          return false;
-
 
27011
      }
-
 
27012
 
-
 
27013
      return true;
-
 
27014
    }
-
 
27015
 
-
 
27016
    @Override
-
 
27017
    public int hashCode() {
-
 
27018
      return 0;
-
 
27019
    }
-
 
27020
 
-
 
27021
    public int compareTo(isItemTransferAllowed_result other) {
-
 
27022
      if (!getClass().equals(other.getClass())) {
-
 
27023
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27024
      }
-
 
27025
 
-
 
27026
      int lastComparison = 0;
-
 
27027
      isItemTransferAllowed_result typedOther = (isItemTransferAllowed_result)other;
-
 
27028
 
-
 
27029
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
27030
      if (lastComparison != 0) {
-
 
27031
        return lastComparison;
-
 
27032
      }
-
 
27033
      if (isSetSuccess()) {
-
 
27034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
27035
        if (lastComparison != 0) {
-
 
27036
          return lastComparison;
-
 
27037
        }
-
 
27038
      }
-
 
27039
      return 0;
-
 
27040
    }
-
 
27041
 
-
 
27042
    public _Fields fieldForId(int fieldId) {
-
 
27043
      return _Fields.findByThriftId(fieldId);
-
 
27044
    }
-
 
27045
 
-
 
27046
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
27047
      org.apache.thrift.protocol.TField field;
-
 
27048
      iprot.readStructBegin();
-
 
27049
      while (true)
-
 
27050
      {
-
 
27051
        field = iprot.readFieldBegin();
-
 
27052
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
27053
          break;
-
 
27054
        }
-
 
27055
        switch (field.id) {
-
 
27056
          case 0: // SUCCESS
-
 
27057
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
27058
              this.success = iprot.readBool();
-
 
27059
              setSuccessIsSet(true);
-
 
27060
            } else { 
-
 
27061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27062
            }
-
 
27063
            break;
-
 
27064
          default:
-
 
27065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27066
        }
-
 
27067
        iprot.readFieldEnd();
-
 
27068
      }
-
 
27069
      iprot.readStructEnd();
-
 
27070
      validate();
-
 
27071
    }
-
 
27072
 
-
 
27073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
27074
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27075
 
-
 
27076
      if (this.isSetSuccess()) {
-
 
27077
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
27078
        oprot.writeBool(this.success);
-
 
27079
        oprot.writeFieldEnd();
-
 
27080
      }
-
 
27081
      oprot.writeFieldStop();
-
 
27082
      oprot.writeStructEnd();
-
 
27083
    }
-
 
27084
 
-
 
27085
    @Override
-
 
27086
    public String toString() {
-
 
27087
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_result(");
-
 
27088
      boolean first = true;
-
 
27089
 
-
 
27090
      sb.append("success:");
-
 
27091
      sb.append(this.success);
-
 
27092
      first = false;
-
 
27093
      sb.append(")");
-
 
27094
      return sb.toString();
-
 
27095
    }
-
 
27096
 
-
 
27097
    public void validate() throws org.apache.thrift.TException {
-
 
27098
      // check for required fields
-
 
27099
    }
-
 
27100
 
-
 
27101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
27102
      try {
-
 
27103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
27104
      } catch (org.apache.thrift.TException te) {
-
 
27105
        throw new java.io.IOException(te);
-
 
27106
      }
-
 
27107
    }
-
 
27108
 
-
 
27109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
27110
      try {
-
 
27111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
27112
      } catch (org.apache.thrift.TException te) {
-
 
27113
        throw new java.io.IOException(te);
-
 
27114
      }
-
 
27115
    }
-
 
27116
 
-
 
27117
  }
-
 
27118
 
-
 
27119
  public static class createTransferLot_args implements org.apache.thrift.TBase<createTransferLot_args, createTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
-
 
27120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_args");
-
 
27121
 
-
 
27122
    private static final org.apache.thrift.protocol.TField ORIGIN_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("originWarehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
27123
    private static final org.apache.thrift.protocol.TField DEST_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("destWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
27124
 
-
 
27125
    private long originWarehouseId; // required
-
 
27126
    private long destWarehouseId; // required
-
 
27127
 
-
 
27128
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27129
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
27130
      ORIGIN_WAREHOUSE_ID((short)1, "originWarehouseId"),
-
 
27131
      DEST_WAREHOUSE_ID((short)2, "destWarehouseId");
-
 
27132
 
-
 
27133
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27134
 
-
 
27135
      static {
-
 
27136
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27137
          byName.put(field.getFieldName(), field);
-
 
27138
        }
-
 
27139
      }
-
 
27140
 
-
 
27141
      /**
-
 
27142
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27143
       */
-
 
27144
      public static _Fields findByThriftId(int fieldId) {
-
 
27145
        switch(fieldId) {
-
 
27146
          case 1: // ORIGIN_WAREHOUSE_ID
-
 
27147
            return ORIGIN_WAREHOUSE_ID;
-
 
27148
          case 2: // DEST_WAREHOUSE_ID
-
 
27149
            return DEST_WAREHOUSE_ID;
-
 
27150
          default:
-
 
27151
            return null;
-
 
27152
        }
-
 
27153
      }
-
 
27154
 
-
 
27155
      /**
-
 
27156
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27157
       * if it is not found.
-
 
27158
       */
-
 
27159
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27160
        _Fields fields = findByThriftId(fieldId);
-
 
27161
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27162
        return fields;
-
 
27163
      }
-
 
27164
 
-
 
27165
      /**
-
 
27166
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27167
       */
-
 
27168
      public static _Fields findByName(String name) {
-
 
27169
        return byName.get(name);
-
 
27170
      }
-
 
27171
 
-
 
27172
      private final short _thriftId;
-
 
27173
      private final String _fieldName;
-
 
27174
 
-
 
27175
      _Fields(short thriftId, String fieldName) {
-
 
27176
        _thriftId = thriftId;
-
 
27177
        _fieldName = fieldName;
-
 
27178
      }
-
 
27179
 
-
 
27180
      public short getThriftFieldId() {
-
 
27181
        return _thriftId;
-
 
27182
      }
-
 
27183
 
-
 
27184
      public String getFieldName() {
-
 
27185
        return _fieldName;
-
 
27186
      }
-
 
27187
    }
-
 
27188
 
-
 
27189
    // isset id assignments
-
 
27190
    private static final int __ORIGINWAREHOUSEID_ISSET_ID = 0;
-
 
27191
    private static final int __DESTWAREHOUSEID_ISSET_ID = 1;
-
 
27192
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
27193
 
-
 
27194
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
27195
    static {
-
 
27196
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
27197
      tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
27198
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
27199
      tmpMap.put(_Fields.DEST_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
27200
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
27201
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
27202
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_args.class, metaDataMap);
-
 
27203
    }
-
 
27204
 
-
 
27205
    public createTransferLot_args() {
-
 
27206
    }
-
 
27207
 
-
 
27208
    public createTransferLot_args(
-
 
27209
      long originWarehouseId,
-
 
27210
      long destWarehouseId)
-
 
27211
    {
-
 
27212
      this();
-
 
27213
      this.originWarehouseId = originWarehouseId;
-
 
27214
      setOriginWarehouseIdIsSet(true);
-
 
27215
      this.destWarehouseId = destWarehouseId;
-
 
27216
      setDestWarehouseIdIsSet(true);
-
 
27217
    }
-
 
27218
 
-
 
27219
    /**
-
 
27220
     * Performs a deep copy on <i>other</i>.
-
 
27221
     */
-
 
27222
    public createTransferLot_args(createTransferLot_args other) {
-
 
27223
      __isset_bit_vector.clear();
-
 
27224
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27225
      this.originWarehouseId = other.originWarehouseId;
-
 
27226
      this.destWarehouseId = other.destWarehouseId;
-
 
27227
    }
-
 
27228
 
-
 
27229
    public createTransferLot_args deepCopy() {
-
 
27230
      return new createTransferLot_args(this);
-
 
27231
    }
-
 
27232
 
-
 
27233
    @Override
-
 
27234
    public void clear() {
-
 
27235
      setOriginWarehouseIdIsSet(false);
-
 
27236
      this.originWarehouseId = 0;
-
 
27237
      setDestWarehouseIdIsSet(false);
-
 
27238
      this.destWarehouseId = 0;
-
 
27239
    }
-
 
27240
 
-
 
27241
    public long getOriginWarehouseId() {
-
 
27242
      return this.originWarehouseId;
-
 
27243
    }
-
 
27244
 
-
 
27245
    public void setOriginWarehouseId(long originWarehouseId) {
-
 
27246
      this.originWarehouseId = originWarehouseId;
-
 
27247
      setOriginWarehouseIdIsSet(true);
-
 
27248
    }
-
 
27249
 
-
 
27250
    public void unsetOriginWarehouseId() {
-
 
27251
      __isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
-
 
27252
    }
-
 
27253
 
-
 
27254
    /** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
-
 
27255
    public boolean isSetOriginWarehouseId() {
-
 
27256
      return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
-
 
27257
    }
-
 
27258
 
-
 
27259
    public void setOriginWarehouseIdIsSet(boolean value) {
-
 
27260
      __isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
-
 
27261
    }
-
 
27262
 
-
 
27263
    public long getDestWarehouseId() {
-
 
27264
      return this.destWarehouseId;
-
 
27265
    }
-
 
27266
 
-
 
27267
    public void setDestWarehouseId(long destWarehouseId) {
-
 
27268
      this.destWarehouseId = destWarehouseId;
-
 
27269
      setDestWarehouseIdIsSet(true);
-
 
27270
    }
-
 
27271
 
-
 
27272
    public void unsetDestWarehouseId() {
-
 
27273
      __isset_bit_vector.clear(__DESTWAREHOUSEID_ISSET_ID);
-
 
27274
    }
-
 
27275
 
-
 
27276
    /** Returns true if field destWarehouseId is set (has been assigned a value) and false otherwise */
-
 
27277
    public boolean isSetDestWarehouseId() {
-
 
27278
      return __isset_bit_vector.get(__DESTWAREHOUSEID_ISSET_ID);
-
 
27279
    }
-
 
27280
 
-
 
27281
    public void setDestWarehouseIdIsSet(boolean value) {
-
 
27282
      __isset_bit_vector.set(__DESTWAREHOUSEID_ISSET_ID, value);
-
 
27283
    }
-
 
27284
 
-
 
27285
    public void setFieldValue(_Fields field, Object value) {
-
 
27286
      switch (field) {
-
 
27287
      case ORIGIN_WAREHOUSE_ID:
-
 
27288
        if (value == null) {
-
 
27289
          unsetOriginWarehouseId();
-
 
27290
        } else {
-
 
27291
          setOriginWarehouseId((Long)value);
-
 
27292
        }
-
 
27293
        break;
-
 
27294
 
-
 
27295
      case DEST_WAREHOUSE_ID:
-
 
27296
        if (value == null) {
-
 
27297
          unsetDestWarehouseId();
-
 
27298
        } else {
-
 
27299
          setDestWarehouseId((Long)value);
-
 
27300
        }
-
 
27301
        break;
-
 
27302
 
-
 
27303
      }
-
 
27304
    }
-
 
27305
 
-
 
27306
    public Object getFieldValue(_Fields field) {
-
 
27307
      switch (field) {
-
 
27308
      case ORIGIN_WAREHOUSE_ID:
-
 
27309
        return Long.valueOf(getOriginWarehouseId());
-
 
27310
 
-
 
27311
      case DEST_WAREHOUSE_ID:
-
 
27312
        return Long.valueOf(getDestWarehouseId());
-
 
27313
 
-
 
27314
      }
-
 
27315
      throw new IllegalStateException();
-
 
27316
    }
-
 
27317
 
-
 
27318
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
27319
    public boolean isSet(_Fields field) {
-
 
27320
      if (field == null) {
-
 
27321
        throw new IllegalArgumentException();
-
 
27322
      }
-
 
27323
 
-
 
27324
      switch (field) {
-
 
27325
      case ORIGIN_WAREHOUSE_ID:
-
 
27326
        return isSetOriginWarehouseId();
-
 
27327
      case DEST_WAREHOUSE_ID:
-
 
27328
        return isSetDestWarehouseId();
-
 
27329
      }
-
 
27330
      throw new IllegalStateException();
-
 
27331
    }
-
 
27332
 
-
 
27333
    @Override
-
 
27334
    public boolean equals(Object that) {
-
 
27335
      if (that == null)
-
 
27336
        return false;
-
 
27337
      if (that instanceof createTransferLot_args)
-
 
27338
        return this.equals((createTransferLot_args)that);
-
 
27339
      return false;
-
 
27340
    }
-
 
27341
 
-
 
27342
    public boolean equals(createTransferLot_args that) {
-
 
27343
      if (that == null)
-
 
27344
        return false;
-
 
27345
 
-
 
27346
      boolean this_present_originWarehouseId = true;
-
 
27347
      boolean that_present_originWarehouseId = true;
-
 
27348
      if (this_present_originWarehouseId || that_present_originWarehouseId) {
-
 
27349
        if (!(this_present_originWarehouseId && that_present_originWarehouseId))
-
 
27350
          return false;
-
 
27351
        if (this.originWarehouseId != that.originWarehouseId)
-
 
27352
          return false;
-
 
27353
      }
-
 
27354
 
-
 
27355
      boolean this_present_destWarehouseId = true;
-
 
27356
      boolean that_present_destWarehouseId = true;
-
 
27357
      if (this_present_destWarehouseId || that_present_destWarehouseId) {
-
 
27358
        if (!(this_present_destWarehouseId && that_present_destWarehouseId))
-
 
27359
          return false;
-
 
27360
        if (this.destWarehouseId != that.destWarehouseId)
-
 
27361
          return false;
-
 
27362
      }
-
 
27363
 
-
 
27364
      return true;
-
 
27365
    }
-
 
27366
 
-
 
27367
    @Override
-
 
27368
    public int hashCode() {
-
 
27369
      return 0;
-
 
27370
    }
-
 
27371
 
-
 
27372
    public int compareTo(createTransferLot_args other) {
-
 
27373
      if (!getClass().equals(other.getClass())) {
-
 
27374
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27375
      }
-
 
27376
 
-
 
27377
      int lastComparison = 0;
-
 
27378
      createTransferLot_args typedOther = (createTransferLot_args)other;
-
 
27379
 
-
 
27380
      lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
-
 
27381
      if (lastComparison != 0) {
-
 
27382
        return lastComparison;
-
 
27383
      }
-
 
27384
      if (isSetOriginWarehouseId()) {
-
 
27385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
-
 
27386
        if (lastComparison != 0) {
-
 
27387
          return lastComparison;
-
 
27388
        }
-
 
27389
      }
-
 
27390
      lastComparison = Boolean.valueOf(isSetDestWarehouseId()).compareTo(typedOther.isSetDestWarehouseId());
-
 
27391
      if (lastComparison != 0) {
-
 
27392
        return lastComparison;
-
 
27393
      }
-
 
27394
      if (isSetDestWarehouseId()) {
-
 
27395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destWarehouseId, typedOther.destWarehouseId);
-
 
27396
        if (lastComparison != 0) {
-
 
27397
          return lastComparison;
-
 
27398
        }
-
 
27399
      }
-
 
27400
      return 0;
-
 
27401
    }
-
 
27402
 
-
 
27403
    public _Fields fieldForId(int fieldId) {
-
 
27404
      return _Fields.findByThriftId(fieldId);
-
 
27405
    }
-
 
27406
 
-
 
27407
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
27408
      org.apache.thrift.protocol.TField field;
-
 
27409
      iprot.readStructBegin();
-
 
27410
      while (true)
-
 
27411
      {
-
 
27412
        field = iprot.readFieldBegin();
-
 
27413
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
27414
          break;
-
 
27415
        }
-
 
27416
        switch (field.id) {
-
 
27417
          case 1: // ORIGIN_WAREHOUSE_ID
-
 
27418
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
27419
              this.originWarehouseId = iprot.readI64();
-
 
27420
              setOriginWarehouseIdIsSet(true);
-
 
27421
            } else { 
-
 
27422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27423
            }
-
 
27424
            break;
-
 
27425
          case 2: // DEST_WAREHOUSE_ID
-
 
27426
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
27427
              this.destWarehouseId = iprot.readI64();
-
 
27428
              setDestWarehouseIdIsSet(true);
-
 
27429
            } else { 
-
 
27430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27431
            }
-
 
27432
            break;
-
 
27433
          default:
-
 
27434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27435
        }
-
 
27436
        iprot.readFieldEnd();
-
 
27437
      }
-
 
27438
      iprot.readStructEnd();
-
 
27439
      validate();
-
 
27440
    }
-
 
27441
 
-
 
27442
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
27443
      validate();
-
 
27444
 
-
 
27445
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27446
      oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
-
 
27447
      oprot.writeI64(this.originWarehouseId);
-
 
27448
      oprot.writeFieldEnd();
-
 
27449
      oprot.writeFieldBegin(DEST_WAREHOUSE_ID_FIELD_DESC);
-
 
27450
      oprot.writeI64(this.destWarehouseId);
-
 
27451
      oprot.writeFieldEnd();
-
 
27452
      oprot.writeFieldStop();
-
 
27453
      oprot.writeStructEnd();
-
 
27454
    }
-
 
27455
 
-
 
27456
    @Override
-
 
27457
    public String toString() {
-
 
27458
      StringBuilder sb = new StringBuilder("createTransferLot_args(");
-
 
27459
      boolean first = true;
-
 
27460
 
-
 
27461
      sb.append("originWarehouseId:");
-
 
27462
      sb.append(this.originWarehouseId);
-
 
27463
      first = false;
-
 
27464
      if (!first) sb.append(", ");
-
 
27465
      sb.append("destWarehouseId:");
-
 
27466
      sb.append(this.destWarehouseId);
-
 
27467
      first = false;
-
 
27468
      sb.append(")");
-
 
27469
      return sb.toString();
-
 
27470
    }
-
 
27471
 
-
 
27472
    public void validate() throws org.apache.thrift.TException {
-
 
27473
      // check for required fields
-
 
27474
    }
-
 
27475
 
-
 
27476
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
27477
      try {
-
 
27478
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
27479
      } catch (org.apache.thrift.TException te) {
-
 
27480
        throw new java.io.IOException(te);
-
 
27481
      }
-
 
27482
    }
-
 
27483
 
-
 
27484
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
27485
      try {
-
 
27486
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
27487
        __isset_bit_vector = new BitSet(1);
-
 
27488
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
27489
      } catch (org.apache.thrift.TException te) {
-
 
27490
        throw new java.io.IOException(te);
-
 
27491
      }
-
 
27492
    }
-
 
27493
 
-
 
27494
  }
-
 
27495
 
-
 
27496
  public static class createTransferLot_result implements org.apache.thrift.TBase<createTransferLot_result, createTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
-
 
27497
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_result");
-
 
27498
 
-
 
27499
    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);
-
 
27500
    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);
-
 
27501
 
-
 
27502
    private long success; // required
-
 
27503
    private WarehouseServiceException wex; // required
-
 
27504
 
-
 
27505
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27506
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
27507
      SUCCESS((short)0, "success"),
-
 
27508
      WEX((short)1, "wex");
-
 
27509
 
-
 
27510
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27511
 
-
 
27512
      static {
-
 
27513
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27514
          byName.put(field.getFieldName(), field);
-
 
27515
        }
-
 
27516
      }
-
 
27517
 
-
 
27518
      /**
-
 
27519
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27520
       */
-
 
27521
      public static _Fields findByThriftId(int fieldId) {
-
 
27522
        switch(fieldId) {
-
 
27523
          case 0: // SUCCESS
-
 
27524
            return SUCCESS;
-
 
27525
          case 1: // WEX
-
 
27526
            return WEX;
-
 
27527
          default:
-
 
27528
            return null;
-
 
27529
        }
-
 
27530
      }
-
 
27531
 
-
 
27532
      /**
-
 
27533
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27534
       * if it is not found.
-
 
27535
       */
-
 
27536
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27537
        _Fields fields = findByThriftId(fieldId);
-
 
27538
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27539
        return fields;
-
 
27540
      }
-
 
27541
 
-
 
27542
      /**
-
 
27543
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27544
       */
-
 
27545
      public static _Fields findByName(String name) {
-
 
27546
        return byName.get(name);
-
 
27547
      }
-
 
27548
 
-
 
27549
      private final short _thriftId;
-
 
27550
      private final String _fieldName;
-
 
27551
 
-
 
27552
      _Fields(short thriftId, String fieldName) {
-
 
27553
        _thriftId = thriftId;
-
 
27554
        _fieldName = fieldName;
-
 
27555
      }
-
 
27556
 
-
 
27557
      public short getThriftFieldId() {
-
 
27558
        return _thriftId;
-
 
27559
      }
-
 
27560
 
-
 
27561
      public String getFieldName() {
-
 
27562
        return _fieldName;
-
 
27563
      }
-
 
27564
    }
-
 
27565
 
-
 
27566
    // isset id assignments
-
 
27567
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
27568
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27569
 
-
 
27570
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
27571
    static {
-
 
27572
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
27573
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
27574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
27575
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
27576
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
27577
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
27578
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_result.class, metaDataMap);
-
 
27579
    }
-
 
27580
 
-
 
27581
    public createTransferLot_result() {
-
 
27582
    }
-
 
27583
 
-
 
27584
    public createTransferLot_result(
-
 
27585
      long success,
-
 
27586
      WarehouseServiceException wex)
-
 
27587
    {
-
 
27588
      this();
-
 
27589
      this.success = success;
-
 
27590
      setSuccessIsSet(true);
-
 
27591
      this.wex = wex;
-
 
27592
    }
-
 
27593
 
-
 
27594
    /**
-
 
27595
     * Performs a deep copy on <i>other</i>.
-
 
27596
     */
-
 
27597
    public createTransferLot_result(createTransferLot_result other) {
-
 
27598
      __isset_bit_vector.clear();
-
 
27599
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27600
      this.success = other.success;
-
 
27601
      if (other.isSetWex()) {
-
 
27602
        this.wex = new WarehouseServiceException(other.wex);
-
 
27603
      }
-
 
27604
    }
-
 
27605
 
-
 
27606
    public createTransferLot_result deepCopy() {
-
 
27607
      return new createTransferLot_result(this);
-
 
27608
    }
-
 
27609
 
-
 
27610
    @Override
-
 
27611
    public void clear() {
-
 
27612
      setSuccessIsSet(false);
-
 
27613
      this.success = 0;
-
 
27614
      this.wex = null;
-
 
27615
    }
-
 
27616
 
-
 
27617
    public long getSuccess() {
-
 
27618
      return this.success;
-
 
27619
    }
-
 
27620
 
-
 
27621
    public void setSuccess(long success) {
-
 
27622
      this.success = success;
-
 
27623
      setSuccessIsSet(true);
-
 
27624
    }
-
 
27625
 
-
 
27626
    public void unsetSuccess() {
-
 
27627
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
27628
    }
-
 
27629
 
-
 
27630
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
27631
    public boolean isSetSuccess() {
-
 
27632
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
27633
    }
-
 
27634
 
-
 
27635
    public void setSuccessIsSet(boolean value) {
-
 
27636
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
27637
    }
-
 
27638
 
-
 
27639
    public WarehouseServiceException getWex() {
-
 
27640
      return this.wex;
-
 
27641
    }
-
 
27642
 
-
 
27643
    public void setWex(WarehouseServiceException wex) {
-
 
27644
      this.wex = wex;
-
 
27645
    }
-
 
27646
 
-
 
27647
    public void unsetWex() {
-
 
27648
      this.wex = null;
-
 
27649
    }
-
 
27650
 
-
 
27651
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
27652
    public boolean isSetWex() {
-
 
27653
      return this.wex != null;
-
 
27654
    }
-
 
27655
 
-
 
27656
    public void setWexIsSet(boolean value) {
-
 
27657
      if (!value) {
-
 
27658
        this.wex = null;
-
 
27659
      }
-
 
27660
    }
-
 
27661
 
-
 
27662
    public void setFieldValue(_Fields field, Object value) {
-
 
27663
      switch (field) {
-
 
27664
      case SUCCESS:
-
 
27665
        if (value == null) {
-
 
27666
          unsetSuccess();
-
 
27667
        } else {
-
 
27668
          setSuccess((Long)value);
-
 
27669
        }
-
 
27670
        break;
-
 
27671
 
-
 
27672
      case WEX:
-
 
27673
        if (value == null) {
-
 
27674
          unsetWex();
-
 
27675
        } else {
-
 
27676
          setWex((WarehouseServiceException)value);
-
 
27677
        }
-
 
27678
        break;
-
 
27679
 
-
 
27680
      }
-
 
27681
    }
-
 
27682
 
-
 
27683
    public Object getFieldValue(_Fields field) {
-
 
27684
      switch (field) {
-
 
27685
      case SUCCESS:
-
 
27686
        return Long.valueOf(getSuccess());
-
 
27687
 
-
 
27688
      case WEX:
-
 
27689
        return getWex();
-
 
27690
 
-
 
27691
      }
-
 
27692
      throw new IllegalStateException();
-
 
27693
    }
-
 
27694
 
-
 
27695
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
27696
    public boolean isSet(_Fields field) {
-
 
27697
      if (field == null) {
-
 
27698
        throw new IllegalArgumentException();
-
 
27699
      }
-
 
27700
 
-
 
27701
      switch (field) {
-
 
27702
      case SUCCESS:
-
 
27703
        return isSetSuccess();
-
 
27704
      case WEX:
-
 
27705
        return isSetWex();
-
 
27706
      }
-
 
27707
      throw new IllegalStateException();
-
 
27708
    }
-
 
27709
 
-
 
27710
    @Override
-
 
27711
    public boolean equals(Object that) {
-
 
27712
      if (that == null)
-
 
27713
        return false;
-
 
27714
      if (that instanceof createTransferLot_result)
-
 
27715
        return this.equals((createTransferLot_result)that);
-
 
27716
      return false;
-
 
27717
    }
-
 
27718
 
-
 
27719
    public boolean equals(createTransferLot_result that) {
-
 
27720
      if (that == null)
-
 
27721
        return false;
-
 
27722
 
-
 
27723
      boolean this_present_success = true;
-
 
27724
      boolean that_present_success = true;
-
 
27725
      if (this_present_success || that_present_success) {
-
 
27726
        if (!(this_present_success && that_present_success))
-
 
27727
          return false;
-
 
27728
        if (this.success != that.success)
-
 
27729
          return false;
-
 
27730
      }
-
 
27731
 
-
 
27732
      boolean this_present_wex = true && this.isSetWex();
-
 
27733
      boolean that_present_wex = true && that.isSetWex();
-
 
27734
      if (this_present_wex || that_present_wex) {
-
 
27735
        if (!(this_present_wex && that_present_wex))
-
 
27736
          return false;
-
 
27737
        if (!this.wex.equals(that.wex))
-
 
27738
          return false;
-
 
27739
      }
-
 
27740
 
-
 
27741
      return true;
-
 
27742
    }
-
 
27743
 
-
 
27744
    @Override
-
 
27745
    public int hashCode() {
-
 
27746
      return 0;
-
 
27747
    }
-
 
27748
 
-
 
27749
    public int compareTo(createTransferLot_result other) {
-
 
27750
      if (!getClass().equals(other.getClass())) {
-
 
27751
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27752
      }
-
 
27753
 
-
 
27754
      int lastComparison = 0;
-
 
27755
      createTransferLot_result typedOther = (createTransferLot_result)other;
-
 
27756
 
-
 
27757
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
27758
      if (lastComparison != 0) {
-
 
27759
        return lastComparison;
-
 
27760
      }
-
 
27761
      if (isSetSuccess()) {
-
 
27762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
27763
        if (lastComparison != 0) {
-
 
27764
          return lastComparison;
-
 
27765
        }
-
 
27766
      }
-
 
27767
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
27768
      if (lastComparison != 0) {
-
 
27769
        return lastComparison;
-
 
27770
      }
-
 
27771
      if (isSetWex()) {
-
 
27772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
27773
        if (lastComparison != 0) {
-
 
27774
          return lastComparison;
-
 
27775
        }
-
 
27776
      }
-
 
27777
      return 0;
-
 
27778
    }
-
 
27779
 
-
 
27780
    public _Fields fieldForId(int fieldId) {
-
 
27781
      return _Fields.findByThriftId(fieldId);
-
 
27782
    }
-
 
27783
 
-
 
27784
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
27785
      org.apache.thrift.protocol.TField field;
-
 
27786
      iprot.readStructBegin();
-
 
27787
      while (true)
-
 
27788
      {
-
 
27789
        field = iprot.readFieldBegin();
-
 
27790
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
27791
          break;
-
 
27792
        }
-
 
27793
        switch (field.id) {
-
 
27794
          case 0: // SUCCESS
-
 
27795
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
27796
              this.success = iprot.readI64();
-
 
27797
              setSuccessIsSet(true);
-
 
27798
            } else { 
-
 
27799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27800
            }
-
 
27801
            break;
-
 
27802
          case 1: // WEX
-
 
27803
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
27804
              this.wex = new WarehouseServiceException();
-
 
27805
              this.wex.read(iprot);
-
 
27806
            } else { 
-
 
27807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27808
            }
-
 
27809
            break;
-
 
27810
          default:
-
 
27811
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27812
        }
-
 
27813
        iprot.readFieldEnd();
-
 
27814
      }
-
 
27815
      iprot.readStructEnd();
-
 
27816
      validate();
-
 
27817
    }
-
 
27818
 
-
 
27819
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
27820
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27821
 
-
 
27822
      if (this.isSetSuccess()) {
-
 
27823
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
27824
        oprot.writeI64(this.success);
-
 
27825
        oprot.writeFieldEnd();
-
 
27826
      } else if (this.isSetWex()) {
-
 
27827
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
27828
        this.wex.write(oprot);
-
 
27829
        oprot.writeFieldEnd();
-
 
27830
      }
-
 
27831
      oprot.writeFieldStop();
-
 
27832
      oprot.writeStructEnd();
-
 
27833
    }
-
 
27834
 
-
 
27835
    @Override
-
 
27836
    public String toString() {
-
 
27837
      StringBuilder sb = new StringBuilder("createTransferLot_result(");
-
 
27838
      boolean first = true;
-
 
27839
 
-
 
27840
      sb.append("success:");
-
 
27841
      sb.append(this.success);
-
 
27842
      first = false;
-
 
27843
      if (!first) sb.append(", ");
-
 
27844
      sb.append("wex:");
-
 
27845
      if (this.wex == null) {
-
 
27846
        sb.append("null");
-
 
27847
      } else {
-
 
27848
        sb.append(this.wex);
-
 
27849
      }
-
 
27850
      first = false;
-
 
27851
      sb.append(")");
-
 
27852
      return sb.toString();
-
 
27853
    }
-
 
27854
 
-
 
27855
    public void validate() throws org.apache.thrift.TException {
-
 
27856
      // check for required fields
-
 
27857
    }
-
 
27858
 
-
 
27859
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
27860
      try {
-
 
27861
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
27862
      } catch (org.apache.thrift.TException te) {
-
 
27863
        throw new java.io.IOException(te);
-
 
27864
      }
-
 
27865
    }
-
 
27866
 
-
 
27867
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
27868
      try {
-
 
27869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
27870
      } catch (org.apache.thrift.TException te) {
-
 
27871
        throw new java.io.IOException(te);
-
 
27872
      }
-
 
27873
    }
-
 
27874
 
-
 
27875
  }
-
 
27876
 
-
 
27877
  public static class getTransferLot_args implements org.apache.thrift.TBase<getTransferLot_args, getTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
-
 
27878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_args");
-
 
27879
 
-
 
27880
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
27881
 
-
 
27882
    private long transferLotId; // required
-
 
27883
 
-
 
27884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
27886
      TRANSFER_LOT_ID((short)1, "transferLotId");
-
 
27887
 
-
 
27888
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27889
 
-
 
27890
      static {
-
 
27891
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27892
          byName.put(field.getFieldName(), field);
-
 
27893
        }
-
 
27894
      }
-
 
27895
 
-
 
27896
      /**
-
 
27897
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27898
       */
-
 
27899
      public static _Fields findByThriftId(int fieldId) {
-
 
27900
        switch(fieldId) {
-
 
27901
          case 1: // TRANSFER_LOT_ID
-
 
27902
            return TRANSFER_LOT_ID;
-
 
27903
          default:
-
 
27904
            return null;
-
 
27905
        }
-
 
27906
      }
-
 
27907
 
-
 
27908
      /**
-
 
27909
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27910
       * if it is not found.
-
 
27911
       */
-
 
27912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27913
        _Fields fields = findByThriftId(fieldId);
-
 
27914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27915
        return fields;
-
 
27916
      }
-
 
27917
 
-
 
27918
      /**
-
 
27919
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27920
       */
-
 
27921
      public static _Fields findByName(String name) {
-
 
27922
        return byName.get(name);
-
 
27923
      }
-
 
27924
 
-
 
27925
      private final short _thriftId;
-
 
27926
      private final String _fieldName;
-
 
27927
 
-
 
27928
      _Fields(short thriftId, String fieldName) {
-
 
27929
        _thriftId = thriftId;
-
 
27930
        _fieldName = fieldName;
-
 
27931
      }
-
 
27932
 
-
 
27933
      public short getThriftFieldId() {
-
 
27934
        return _thriftId;
-
 
27935
      }
-
 
27936
 
-
 
27937
      public String getFieldName() {
-
 
27938
        return _fieldName;
-
 
27939
      }
-
 
27940
    }
-
 
27941
 
-
 
27942
    // isset id assignments
-
 
27943
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
-
 
27944
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27945
 
-
 
27946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
27947
    static {
-
 
27948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
27949
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
27950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
27951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
27952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_args.class, metaDataMap);
-
 
27953
    }
-
 
27954
 
-
 
27955
    public getTransferLot_args() {
-
 
27956
    }
-
 
27957
 
-
 
27958
    public getTransferLot_args(
-
 
27959
      long transferLotId)
-
 
27960
    {
-
 
27961
      this();
-
 
27962
      this.transferLotId = transferLotId;
-
 
27963
      setTransferLotIdIsSet(true);
-
 
27964
    }
-
 
27965
 
-
 
27966
    /**
-
 
27967
     * Performs a deep copy on <i>other</i>.
-
 
27968
     */
-
 
27969
    public getTransferLot_args(getTransferLot_args other) {
-
 
27970
      __isset_bit_vector.clear();
-
 
27971
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27972
      this.transferLotId = other.transferLotId;
-
 
27973
    }
-
 
27974
 
-
 
27975
    public getTransferLot_args deepCopy() {
-
 
27976
      return new getTransferLot_args(this);
-
 
27977
    }
-
 
27978
 
-
 
27979
    @Override
-
 
27980
    public void clear() {
-
 
27981
      setTransferLotIdIsSet(false);
-
 
27982
      this.transferLotId = 0;
-
 
27983
    }
-
 
27984
 
-
 
27985
    public long getTransferLotId() {
-
 
27986
      return this.transferLotId;
-
 
27987
    }
-
 
27988
 
-
 
27989
    public void setTransferLotId(long transferLotId) {
-
 
27990
      this.transferLotId = transferLotId;
-
 
27991
      setTransferLotIdIsSet(true);
-
 
27992
    }
-
 
27993
 
-
 
27994
    public void unsetTransferLotId() {
-
 
27995
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
-
 
27996
    }
-
 
27997
 
-
 
27998
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
-
 
27999
    public boolean isSetTransferLotId() {
-
 
28000
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
-
 
28001
    }
-
 
28002
 
-
 
28003
    public void setTransferLotIdIsSet(boolean value) {
-
 
28004
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
-
 
28005
    }
-
 
28006
 
-
 
28007
    public void setFieldValue(_Fields field, Object value) {
-
 
28008
      switch (field) {
-
 
28009
      case TRANSFER_LOT_ID:
-
 
28010
        if (value == null) {
-
 
28011
          unsetTransferLotId();
-
 
28012
        } else {
-
 
28013
          setTransferLotId((Long)value);
-
 
28014
        }
-
 
28015
        break;
-
 
28016
 
-
 
28017
      }
-
 
28018
    }
-
 
28019
 
-
 
28020
    public Object getFieldValue(_Fields field) {
-
 
28021
      switch (field) {
-
 
28022
      case TRANSFER_LOT_ID:
-
 
28023
        return Long.valueOf(getTransferLotId());
-
 
28024
 
-
 
28025
      }
-
 
28026
      throw new IllegalStateException();
-
 
28027
    }
-
 
28028
 
-
 
28029
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
28030
    public boolean isSet(_Fields field) {
-
 
28031
      if (field == null) {
-
 
28032
        throw new IllegalArgumentException();
-
 
28033
      }
-
 
28034
 
-
 
28035
      switch (field) {
-
 
28036
      case TRANSFER_LOT_ID:
-
 
28037
        return isSetTransferLotId();
-
 
28038
      }
-
 
28039
      throw new IllegalStateException();
-
 
28040
    }
-
 
28041
 
-
 
28042
    @Override
-
 
28043
    public boolean equals(Object that) {
-
 
28044
      if (that == null)
-
 
28045
        return false;
-
 
28046
      if (that instanceof getTransferLot_args)
-
 
28047
        return this.equals((getTransferLot_args)that);
-
 
28048
      return false;
-
 
28049
    }
-
 
28050
 
-
 
28051
    public boolean equals(getTransferLot_args that) {
-
 
28052
      if (that == null)
-
 
28053
        return false;
-
 
28054
 
-
 
28055
      boolean this_present_transferLotId = true;
-
 
28056
      boolean that_present_transferLotId = true;
-
 
28057
      if (this_present_transferLotId || that_present_transferLotId) {
-
 
28058
        if (!(this_present_transferLotId && that_present_transferLotId))
-
 
28059
          return false;
-
 
28060
        if (this.transferLotId != that.transferLotId)
-
 
28061
          return false;
-
 
28062
      }
-
 
28063
 
-
 
28064
      return true;
-
 
28065
    }
-
 
28066
 
-
 
28067
    @Override
-
 
28068
    public int hashCode() {
-
 
28069
      return 0;
-
 
28070
    }
-
 
28071
 
-
 
28072
    public int compareTo(getTransferLot_args other) {
-
 
28073
      if (!getClass().equals(other.getClass())) {
-
 
28074
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28075
      }
-
 
28076
 
-
 
28077
      int lastComparison = 0;
-
 
28078
      getTransferLot_args typedOther = (getTransferLot_args)other;
-
 
28079
 
-
 
28080
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
-
 
28081
      if (lastComparison != 0) {
-
 
28082
        return lastComparison;
-
 
28083
      }
-
 
28084
      if (isSetTransferLotId()) {
-
 
28085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
-
 
28086
        if (lastComparison != 0) {
-
 
28087
          return lastComparison;
-
 
28088
        }
-
 
28089
      }
-
 
28090
      return 0;
-
 
28091
    }
-
 
28092
 
-
 
28093
    public _Fields fieldForId(int fieldId) {
-
 
28094
      return _Fields.findByThriftId(fieldId);
-
 
28095
    }
-
 
28096
 
-
 
28097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
28098
      org.apache.thrift.protocol.TField field;
-
 
28099
      iprot.readStructBegin();
-
 
28100
      while (true)
-
 
28101
      {
-
 
28102
        field = iprot.readFieldBegin();
-
 
28103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
28104
          break;
-
 
28105
        }
-
 
28106
        switch (field.id) {
-
 
28107
          case 1: // TRANSFER_LOT_ID
-
 
28108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
28109
              this.transferLotId = iprot.readI64();
-
 
28110
              setTransferLotIdIsSet(true);
-
 
28111
            } else { 
-
 
28112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28113
            }
-
 
28114
            break;
-
 
28115
          default:
-
 
28116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28117
        }
-
 
28118
        iprot.readFieldEnd();
-
 
28119
      }
-
 
28120
      iprot.readStructEnd();
-
 
28121
      validate();
-
 
28122
    }
-
 
28123
 
-
 
28124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
28125
      validate();
-
 
28126
 
-
 
28127
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28128
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
-
 
28129
      oprot.writeI64(this.transferLotId);
-
 
28130
      oprot.writeFieldEnd();
-
 
28131
      oprot.writeFieldStop();
-
 
28132
      oprot.writeStructEnd();
-
 
28133
    }
-
 
28134
 
-
 
28135
    @Override
-
 
28136
    public String toString() {
-
 
28137
      StringBuilder sb = new StringBuilder("getTransferLot_args(");
-
 
28138
      boolean first = true;
-
 
28139
 
-
 
28140
      sb.append("transferLotId:");
-
 
28141
      sb.append(this.transferLotId);
-
 
28142
      first = false;
-
 
28143
      sb.append(")");
-
 
28144
      return sb.toString();
-
 
28145
    }
-
 
28146
 
-
 
28147
    public void validate() throws org.apache.thrift.TException {
-
 
28148
      // check for required fields
-
 
28149
    }
-
 
28150
 
-
 
28151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
28152
      try {
-
 
28153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
28154
      } catch (org.apache.thrift.TException te) {
-
 
28155
        throw new java.io.IOException(te);
-
 
28156
      }
-
 
28157
    }
-
 
28158
 
-
 
28159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
28160
      try {
-
 
28161
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
28162
        __isset_bit_vector = new BitSet(1);
-
 
28163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
28164
      } catch (org.apache.thrift.TException te) {
-
 
28165
        throw new java.io.IOException(te);
-
 
28166
      }
-
 
28167
    }
-
 
28168
 
-
 
28169
  }
-
 
28170
 
-
 
28171
  public static class getTransferLot_result implements org.apache.thrift.TBase<getTransferLot_result, getTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
-
 
28172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_result");
-
 
28173
 
-
 
28174
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
28175
    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);
-
 
28176
 
-
 
28177
    private TransferLot success; // required
-
 
28178
    private WarehouseServiceException wex; // required
-
 
28179
 
-
 
28180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
28182
      SUCCESS((short)0, "success"),
-
 
28183
      WEX((short)1, "wex");
-
 
28184
 
-
 
28185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28186
 
-
 
28187
      static {
-
 
28188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28189
          byName.put(field.getFieldName(), field);
-
 
28190
        }
-
 
28191
      }
-
 
28192
 
-
 
28193
      /**
-
 
28194
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28195
       */
-
 
28196
      public static _Fields findByThriftId(int fieldId) {
-
 
28197
        switch(fieldId) {
-
 
28198
          case 0: // SUCCESS
-
 
28199
            return SUCCESS;
-
 
28200
          case 1: // WEX
-
 
28201
            return WEX;
-
 
28202
          default:
-
 
28203
            return null;
-
 
28204
        }
-
 
28205
      }
-
 
28206
 
-
 
28207
      /**
-
 
28208
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28209
       * if it is not found.
-
 
28210
       */
-
 
28211
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28212
        _Fields fields = findByThriftId(fieldId);
-
 
28213
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28214
        return fields;
-
 
28215
      }
-
 
28216
 
-
 
28217
      /**
-
 
28218
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28219
       */
-
 
28220
      public static _Fields findByName(String name) {
-
 
28221
        return byName.get(name);
-
 
28222
      }
-
 
28223
 
-
 
28224
      private final short _thriftId;
-
 
28225
      private final String _fieldName;
-
 
28226
 
-
 
28227
      _Fields(short thriftId, String fieldName) {
-
 
28228
        _thriftId = thriftId;
-
 
28229
        _fieldName = fieldName;
-
 
28230
      }
-
 
28231
 
-
 
28232
      public short getThriftFieldId() {
-
 
28233
        return _thriftId;
-
 
28234
      }
-
 
28235
 
-
 
28236
      public String getFieldName() {
-
 
28237
        return _fieldName;
-
 
28238
      }
-
 
28239
    }
-
 
28240
 
-
 
28241
    // isset id assignments
-
 
28242
 
-
 
28243
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
28244
    static {
-
 
28245
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
28246
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
28247
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class)));
-
 
28248
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
28249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
28250
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
28251
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_result.class, metaDataMap);
-
 
28252
    }
-
 
28253
 
-
 
28254
    public getTransferLot_result() {
-
 
28255
    }
-
 
28256
 
-
 
28257
    public getTransferLot_result(
-
 
28258
      TransferLot success,
-
 
28259
      WarehouseServiceException wex)
-
 
28260
    {
-
 
28261
      this();
-
 
28262
      this.success = success;
-
 
28263
      this.wex = wex;
-
 
28264
    }
-
 
28265
 
-
 
28266
    /**
-
 
28267
     * Performs a deep copy on <i>other</i>.
-
 
28268
     */
-
 
28269
    public getTransferLot_result(getTransferLot_result other) {
-
 
28270
      if (other.isSetSuccess()) {
-
 
28271
        this.success = new TransferLot(other.success);
-
 
28272
      }
-
 
28273
      if (other.isSetWex()) {
-
 
28274
        this.wex = new WarehouseServiceException(other.wex);
-
 
28275
      }
-
 
28276
    }
-
 
28277
 
-
 
28278
    public getTransferLot_result deepCopy() {
-
 
28279
      return new getTransferLot_result(this);
-
 
28280
    }
-
 
28281
 
-
 
28282
    @Override
-
 
28283
    public void clear() {
-
 
28284
      this.success = null;
-
 
28285
      this.wex = null;
-
 
28286
    }
-
 
28287
 
-
 
28288
    public TransferLot getSuccess() {
-
 
28289
      return this.success;
-
 
28290
    }
-
 
28291
 
-
 
28292
    public void setSuccess(TransferLot success) {
-
 
28293
      this.success = success;
-
 
28294
    }
-
 
28295
 
-
 
28296
    public void unsetSuccess() {
-
 
28297
      this.success = null;
-
 
28298
    }
-
 
28299
 
-
 
28300
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
28301
    public boolean isSetSuccess() {
-
 
28302
      return this.success != null;
-
 
28303
    }
-
 
28304
 
-
 
28305
    public void setSuccessIsSet(boolean value) {
-
 
28306
      if (!value) {
-
 
28307
        this.success = null;
-
 
28308
      }
-
 
28309
    }
-
 
28310
 
-
 
28311
    public WarehouseServiceException getWex() {
-
 
28312
      return this.wex;
-
 
28313
    }
-
 
28314
 
-
 
28315
    public void setWex(WarehouseServiceException wex) {
-
 
28316
      this.wex = wex;
-
 
28317
    }
-
 
28318
 
-
 
28319
    public void unsetWex() {
-
 
28320
      this.wex = null;
-
 
28321
    }
-
 
28322
 
-
 
28323
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
28324
    public boolean isSetWex() {
-
 
28325
      return this.wex != null;
-
 
28326
    }
-
 
28327
 
-
 
28328
    public void setWexIsSet(boolean value) {
-
 
28329
      if (!value) {
-
 
28330
        this.wex = null;
-
 
28331
      }
-
 
28332
    }
-
 
28333
 
-
 
28334
    public void setFieldValue(_Fields field, Object value) {
-
 
28335
      switch (field) {
-
 
28336
      case SUCCESS:
-
 
28337
        if (value == null) {
-
 
28338
          unsetSuccess();
-
 
28339
        } else {
-
 
28340
          setSuccess((TransferLot)value);
-
 
28341
        }
-
 
28342
        break;
-
 
28343
 
-
 
28344
      case WEX:
-
 
28345
        if (value == null) {
-
 
28346
          unsetWex();
-
 
28347
        } else {
-
 
28348
          setWex((WarehouseServiceException)value);
-
 
28349
        }
-
 
28350
        break;
-
 
28351
 
-
 
28352
      }
-
 
28353
    }
-
 
28354
 
-
 
28355
    public Object getFieldValue(_Fields field) {
-
 
28356
      switch (field) {
-
 
28357
      case SUCCESS:
-
 
28358
        return getSuccess();
-
 
28359
 
-
 
28360
      case WEX:
-
 
28361
        return getWex();
-
 
28362
 
-
 
28363
      }
-
 
28364
      throw new IllegalStateException();
-
 
28365
    }
-
 
28366
 
-
 
28367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
28368
    public boolean isSet(_Fields field) {
-
 
28369
      if (field == null) {
-
 
28370
        throw new IllegalArgumentException();
-
 
28371
      }
-
 
28372
 
-
 
28373
      switch (field) {
-
 
28374
      case SUCCESS:
-
 
28375
        return isSetSuccess();
-
 
28376
      case WEX:
-
 
28377
        return isSetWex();
-
 
28378
      }
-
 
28379
      throw new IllegalStateException();
-
 
28380
    }
-
 
28381
 
-
 
28382
    @Override
-
 
28383
    public boolean equals(Object that) {
-
 
28384
      if (that == null)
-
 
28385
        return false;
-
 
28386
      if (that instanceof getTransferLot_result)
-
 
28387
        return this.equals((getTransferLot_result)that);
-
 
28388
      return false;
-
 
28389
    }
-
 
28390
 
-
 
28391
    public boolean equals(getTransferLot_result that) {
-
 
28392
      if (that == null)
-
 
28393
        return false;
-
 
28394
 
-
 
28395
      boolean this_present_success = true && this.isSetSuccess();
-
 
28396
      boolean that_present_success = true && that.isSetSuccess();
-
 
28397
      if (this_present_success || that_present_success) {
-
 
28398
        if (!(this_present_success && that_present_success))
-
 
28399
          return false;
-
 
28400
        if (!this.success.equals(that.success))
-
 
28401
          return false;
-
 
28402
      }
-
 
28403
 
-
 
28404
      boolean this_present_wex = true && this.isSetWex();
-
 
28405
      boolean that_present_wex = true && that.isSetWex();
-
 
28406
      if (this_present_wex || that_present_wex) {
-
 
28407
        if (!(this_present_wex && that_present_wex))
-
 
28408
          return false;
-
 
28409
        if (!this.wex.equals(that.wex))
-
 
28410
          return false;
-
 
28411
      }
-
 
28412
 
-
 
28413
      return true;
-
 
28414
    }
-
 
28415
 
-
 
28416
    @Override
-
 
28417
    public int hashCode() {
-
 
28418
      return 0;
-
 
28419
    }
-
 
28420
 
-
 
28421
    public int compareTo(getTransferLot_result other) {
-
 
28422
      if (!getClass().equals(other.getClass())) {
-
 
28423
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28424
      }
-
 
28425
 
-
 
28426
      int lastComparison = 0;
-
 
28427
      getTransferLot_result typedOther = (getTransferLot_result)other;
-
 
28428
 
-
 
28429
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
28430
      if (lastComparison != 0) {
-
 
28431
        return lastComparison;
-
 
28432
      }
-
 
28433
      if (isSetSuccess()) {
-
 
28434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
28435
        if (lastComparison != 0) {
-
 
28436
          return lastComparison;
-
 
28437
        }
-
 
28438
      }
-
 
28439
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
28440
      if (lastComparison != 0) {
-
 
28441
        return lastComparison;
-
 
28442
      }
-
 
28443
      if (isSetWex()) {
-
 
28444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
28445
        if (lastComparison != 0) {
-
 
28446
          return lastComparison;
-
 
28447
        }
-
 
28448
      }
-
 
28449
      return 0;
-
 
28450
    }
-
 
28451
 
-
 
28452
    public _Fields fieldForId(int fieldId) {
-
 
28453
      return _Fields.findByThriftId(fieldId);
-
 
28454
    }
-
 
28455
 
-
 
28456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
28457
      org.apache.thrift.protocol.TField field;
-
 
28458
      iprot.readStructBegin();
-
 
28459
      while (true)
-
 
28460
      {
-
 
28461
        field = iprot.readFieldBegin();
-
 
28462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
28463
          break;
-
 
28464
        }
-
 
28465
        switch (field.id) {
-
 
28466
          case 0: // SUCCESS
-
 
28467
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
28468
              this.success = new TransferLot();
-
 
28469
              this.success.read(iprot);
-
 
28470
            } else { 
-
 
28471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28472
            }
-
 
28473
            break;
-
 
28474
          case 1: // WEX
-
 
28475
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
28476
              this.wex = new WarehouseServiceException();
-
 
28477
              this.wex.read(iprot);
-
 
28478
            } else { 
-
 
28479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28480
            }
-
 
28481
            break;
-
 
28482
          default:
-
 
28483
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28484
        }
-
 
28485
        iprot.readFieldEnd();
-
 
28486
      }
-
 
28487
      iprot.readStructEnd();
-
 
28488
      validate();
-
 
28489
    }
-
 
28490
 
-
 
28491
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
28492
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28493
 
-
 
28494
      if (this.isSetSuccess()) {
-
 
28495
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
28496
        this.success.write(oprot);
-
 
28497
        oprot.writeFieldEnd();
-
 
28498
      } else if (this.isSetWex()) {
-
 
28499
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
28500
        this.wex.write(oprot);
-
 
28501
        oprot.writeFieldEnd();
-
 
28502
      }
-
 
28503
      oprot.writeFieldStop();
-
 
28504
      oprot.writeStructEnd();
-
 
28505
    }
-
 
28506
 
-
 
28507
    @Override
-
 
28508
    public String toString() {
-
 
28509
      StringBuilder sb = new StringBuilder("getTransferLot_result(");
-
 
28510
      boolean first = true;
-
 
28511
 
-
 
28512
      sb.append("success:");
-
 
28513
      if (this.success == null) {
-
 
28514
        sb.append("null");
-
 
28515
      } else {
-
 
28516
        sb.append(this.success);
-
 
28517
      }
-
 
28518
      first = false;
-
 
28519
      if (!first) sb.append(", ");
-
 
28520
      sb.append("wex:");
-
 
28521
      if (this.wex == null) {
-
 
28522
        sb.append("null");
-
 
28523
      } else {
-
 
28524
        sb.append(this.wex);
-
 
28525
      }
-
 
28526
      first = false;
-
 
28527
      sb.append(")");
-
 
28528
      return sb.toString();
-
 
28529
    }
-
 
28530
 
-
 
28531
    public void validate() throws org.apache.thrift.TException {
-
 
28532
      // check for required fields
-
 
28533
    }
-
 
28534
 
-
 
28535
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
28536
      try {
-
 
28537
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
28538
      } catch (org.apache.thrift.TException te) {
-
 
28539
        throw new java.io.IOException(te);
-
 
28540
      }
-
 
28541
    }
-
 
28542
 
-
 
28543
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
28544
      try {
-
 
28545
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
28546
      } catch (org.apache.thrift.TException te) {
-
 
28547
        throw new java.io.IOException(te);
-
 
28548
      }
-
 
28549
    }
-
 
28550
 
-
 
28551
  }
-
 
28552
 
-
 
28553
  public static class markTransferLotAsReceived_args implements org.apache.thrift.TBase<markTransferLotAsReceived_args, markTransferLotAsReceived_args._Fields>, java.io.Serializable, Cloneable   {
-
 
28554
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_args");
-
 
28555
 
-
 
28556
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
28557
    private static final org.apache.thrift.protocol.TField REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("remoteTransferRefNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
28558
 
-
 
28559
    private long id; // required
-
 
28560
    private String remoteTransferRefNumber; // required
-
 
28561
 
-
 
28562
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28563
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
28564
      ID((short)1, "id"),
-
 
28565
      REMOTE_TRANSFER_REF_NUMBER((short)2, "remoteTransferRefNumber");
-
 
28566
 
-
 
28567
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28568
 
-
 
28569
      static {
-
 
28570
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28571
          byName.put(field.getFieldName(), field);
-
 
28572
        }
-
 
28573
      }
-
 
28574
 
-
 
28575
      /**
-
 
28576
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28577
       */
-
 
28578
      public static _Fields findByThriftId(int fieldId) {
-
 
28579
        switch(fieldId) {
-
 
28580
          case 1: // ID
-
 
28581
            return ID;
-
 
28582
          case 2: // REMOTE_TRANSFER_REF_NUMBER
-
 
28583
            return REMOTE_TRANSFER_REF_NUMBER;
-
 
28584
          default:
-
 
28585
            return null;
-
 
28586
        }
-
 
28587
      }
-
 
28588
 
-
 
28589
      /**
-
 
28590
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28591
       * if it is not found.
-
 
28592
       */
-
 
28593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28594
        _Fields fields = findByThriftId(fieldId);
-
 
28595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28596
        return fields;
-
 
28597
      }
-
 
28598
 
-
 
28599
      /**
-
 
28600
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28601
       */
-
 
28602
      public static _Fields findByName(String name) {
-
 
28603
        return byName.get(name);
-
 
28604
      }
-
 
28605
 
-
 
28606
      private final short _thriftId;
-
 
28607
      private final String _fieldName;
-
 
28608
 
-
 
28609
      _Fields(short thriftId, String fieldName) {
-
 
28610
        _thriftId = thriftId;
-
 
28611
        _fieldName = fieldName;
-
 
28612
      }
-
 
28613
 
-
 
28614
      public short getThriftFieldId() {
-
 
28615
        return _thriftId;
-
 
28616
      }
-
 
28617
 
-
 
28618
      public String getFieldName() {
-
 
28619
        return _fieldName;
-
 
28620
      }
-
 
28621
    }
-
 
28622
 
-
 
28623
    // isset id assignments
-
 
28624
    private static final int __ID_ISSET_ID = 0;
-
 
28625
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
28626
 
-
 
28627
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
28628
    static {
-
 
28629
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
28630
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
28631
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
28632
      tmpMap.put(_Fields.REMOTE_TRANSFER_REF_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("remoteTransferRefNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
28633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
28634
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
28635
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_args.class, metaDataMap);
-
 
28636
    }
-
 
28637
 
-
 
28638
    public markTransferLotAsReceived_args() {
-
 
28639
    }
-
 
28640
 
-
 
28641
    public markTransferLotAsReceived_args(
-
 
28642
      long id,
-
 
28643
      String remoteTransferRefNumber)
-
 
28644
    {
-
 
28645
      this();
-
 
28646
      this.id = id;
-
 
28647
      setIdIsSet(true);
-
 
28648
      this.remoteTransferRefNumber = remoteTransferRefNumber;
-
 
28649
    }
-
 
28650
 
-
 
28651
    /**
-
 
28652
     * Performs a deep copy on <i>other</i>.
-
 
28653
     */
-
 
28654
    public markTransferLotAsReceived_args(markTransferLotAsReceived_args other) {
-
 
28655
      __isset_bit_vector.clear();
-
 
28656
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28657
      this.id = other.id;
-
 
28658
      if (other.isSetRemoteTransferRefNumber()) {
-
 
28659
        this.remoteTransferRefNumber = other.remoteTransferRefNumber;
-
 
28660
      }
-
 
28661
    }
-
 
28662
 
-
 
28663
    public markTransferLotAsReceived_args deepCopy() {
-
 
28664
      return new markTransferLotAsReceived_args(this);
-
 
28665
    }
-
 
28666
 
-
 
28667
    @Override
-
 
28668
    public void clear() {
-
 
28669
      setIdIsSet(false);
-
 
28670
      this.id = 0;
-
 
28671
      this.remoteTransferRefNumber = null;
-
 
28672
    }
-
 
28673
 
-
 
28674
    public long getId() {
-
 
28675
      return this.id;
-
 
28676
    }
-
 
28677
 
-
 
28678
    public void setId(long id) {
-
 
28679
      this.id = id;
-
 
28680
      setIdIsSet(true);
-
 
28681
    }
-
 
28682
 
-
 
28683
    public void unsetId() {
-
 
28684
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
28685
    }
-
 
28686
 
-
 
28687
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
28688
    public boolean isSetId() {
-
 
28689
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
28690
    }
-
 
28691
 
-
 
28692
    public void setIdIsSet(boolean value) {
-
 
28693
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
28694
    }
-
 
28695
 
-
 
28696
    public String getRemoteTransferRefNumber() {
-
 
28697
      return this.remoteTransferRefNumber;
-
 
28698
    }
-
 
28699
 
-
 
28700
    public void setRemoteTransferRefNumber(String remoteTransferRefNumber) {
-
 
28701
      this.remoteTransferRefNumber = remoteTransferRefNumber;
-
 
28702
    }
-
 
28703
 
-
 
28704
    public void unsetRemoteTransferRefNumber() {
-
 
28705
      this.remoteTransferRefNumber = null;
-
 
28706
    }
-
 
28707
 
-
 
28708
    /** Returns true if field remoteTransferRefNumber is set (has been assigned a value) and false otherwise */
-
 
28709
    public boolean isSetRemoteTransferRefNumber() {
-
 
28710
      return this.remoteTransferRefNumber != null;
-
 
28711
    }
-
 
28712
 
-
 
28713
    public void setRemoteTransferRefNumberIsSet(boolean value) {
-
 
28714
      if (!value) {
-
 
28715
        this.remoteTransferRefNumber = null;
-
 
28716
      }
-
 
28717
    }
-
 
28718
 
-
 
28719
    public void setFieldValue(_Fields field, Object value) {
-
 
28720
      switch (field) {
-
 
28721
      case ID:
-
 
28722
        if (value == null) {
-
 
28723
          unsetId();
-
 
28724
        } else {
-
 
28725
          setId((Long)value);
-
 
28726
        }
-
 
28727
        break;
-
 
28728
 
-
 
28729
      case REMOTE_TRANSFER_REF_NUMBER:
-
 
28730
        if (value == null) {
-
 
28731
          unsetRemoteTransferRefNumber();
-
 
28732
        } else {
-
 
28733
          setRemoteTransferRefNumber((String)value);
-
 
28734
        }
-
 
28735
        break;
-
 
28736
 
-
 
28737
      }
-
 
28738
    }
-
 
28739
 
-
 
28740
    public Object getFieldValue(_Fields field) {
-
 
28741
      switch (field) {
-
 
28742
      case ID:
-
 
28743
        return Long.valueOf(getId());
-
 
28744
 
-
 
28745
      case REMOTE_TRANSFER_REF_NUMBER:
-
 
28746
        return getRemoteTransferRefNumber();
-
 
28747
 
-
 
28748
      }
-
 
28749
      throw new IllegalStateException();
-
 
28750
    }
-
 
28751
 
-
 
28752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
28753
    public boolean isSet(_Fields field) {
-
 
28754
      if (field == null) {
-
 
28755
        throw new IllegalArgumentException();
-
 
28756
      }
-
 
28757
 
-
 
28758
      switch (field) {
-
 
28759
      case ID:
-
 
28760
        return isSetId();
-
 
28761
      case REMOTE_TRANSFER_REF_NUMBER:
-
 
28762
        return isSetRemoteTransferRefNumber();
-
 
28763
      }
-
 
28764
      throw new IllegalStateException();
-
 
28765
    }
-
 
28766
 
-
 
28767
    @Override
-
 
28768
    public boolean equals(Object that) {
-
 
28769
      if (that == null)
-
 
28770
        return false;
-
 
28771
      if (that instanceof markTransferLotAsReceived_args)
-
 
28772
        return this.equals((markTransferLotAsReceived_args)that);
-
 
28773
      return false;
-
 
28774
    }
-
 
28775
 
-
 
28776
    public boolean equals(markTransferLotAsReceived_args that) {
-
 
28777
      if (that == null)
-
 
28778
        return false;
-
 
28779
 
-
 
28780
      boolean this_present_id = true;
-
 
28781
      boolean that_present_id = true;
-
 
28782
      if (this_present_id || that_present_id) {
-
 
28783
        if (!(this_present_id && that_present_id))
-
 
28784
          return false;
-
 
28785
        if (this.id != that.id)
-
 
28786
          return false;
-
 
28787
      }
-
 
28788
 
-
 
28789
      boolean this_present_remoteTransferRefNumber = true && this.isSetRemoteTransferRefNumber();
-
 
28790
      boolean that_present_remoteTransferRefNumber = true && that.isSetRemoteTransferRefNumber();
-
 
28791
      if (this_present_remoteTransferRefNumber || that_present_remoteTransferRefNumber) {
-
 
28792
        if (!(this_present_remoteTransferRefNumber && that_present_remoteTransferRefNumber))
-
 
28793
          return false;
-
 
28794
        if (!this.remoteTransferRefNumber.equals(that.remoteTransferRefNumber))
-
 
28795
          return false;
-
 
28796
      }
-
 
28797
 
-
 
28798
      return true;
-
 
28799
    }
-
 
28800
 
-
 
28801
    @Override
-
 
28802
    public int hashCode() {
-
 
28803
      return 0;
-
 
28804
    }
-
 
28805
 
-
 
28806
    public int compareTo(markTransferLotAsReceived_args other) {
-
 
28807
      if (!getClass().equals(other.getClass())) {
-
 
28808
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28809
      }
-
 
28810
 
-
 
28811
      int lastComparison = 0;
-
 
28812
      markTransferLotAsReceived_args typedOther = (markTransferLotAsReceived_args)other;
-
 
28813
 
-
 
28814
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
28815
      if (lastComparison != 0) {
-
 
28816
        return lastComparison;
-
 
28817
      }
-
 
28818
      if (isSetId()) {
-
 
28819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
28820
        if (lastComparison != 0) {
-
 
28821
          return lastComparison;
-
 
28822
        }
-
 
28823
      }
-
 
28824
      lastComparison = Boolean.valueOf(isSetRemoteTransferRefNumber()).compareTo(typedOther.isSetRemoteTransferRefNumber());
-
 
28825
      if (lastComparison != 0) {
-
 
28826
        return lastComparison;
-
 
28827
      }
-
 
28828
      if (isSetRemoteTransferRefNumber()) {
-
 
28829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remoteTransferRefNumber, typedOther.remoteTransferRefNumber);
-
 
28830
        if (lastComparison != 0) {
-
 
28831
          return lastComparison;
-
 
28832
        }
-
 
28833
      }
-
 
28834
      return 0;
-
 
28835
    }
-
 
28836
 
-
 
28837
    public _Fields fieldForId(int fieldId) {
-
 
28838
      return _Fields.findByThriftId(fieldId);
-
 
28839
    }
-
 
28840
 
-
 
28841
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
28842
      org.apache.thrift.protocol.TField field;
-
 
28843
      iprot.readStructBegin();
-
 
28844
      while (true)
-
 
28845
      {
-
 
28846
        field = iprot.readFieldBegin();
-
 
28847
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
28848
          break;
-
 
28849
        }
-
 
28850
        switch (field.id) {
-
 
28851
          case 1: // ID
-
 
28852
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
28853
              this.id = iprot.readI64();
-
 
28854
              setIdIsSet(true);
-
 
28855
            } else { 
-
 
28856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28857
            }
-
 
28858
            break;
-
 
28859
          case 2: // REMOTE_TRANSFER_REF_NUMBER
-
 
28860
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
28861
              this.remoteTransferRefNumber = iprot.readString();
-
 
28862
            } else { 
-
 
28863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28864
            }
-
 
28865
            break;
-
 
28866
          default:
-
 
28867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28868
        }
-
 
28869
        iprot.readFieldEnd();
-
 
28870
      }
-
 
28871
      iprot.readStructEnd();
-
 
28872
      validate();
-
 
28873
    }
-
 
28874
 
-
 
28875
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
28876
      validate();
-
 
28877
 
-
 
28878
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28879
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
28880
      oprot.writeI64(this.id);
-
 
28881
      oprot.writeFieldEnd();
-
 
28882
      if (this.remoteTransferRefNumber != null) {
-
 
28883
        oprot.writeFieldBegin(REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC);
-
 
28884
        oprot.writeString(this.remoteTransferRefNumber);
-
 
28885
        oprot.writeFieldEnd();
-
 
28886
      }
-
 
28887
      oprot.writeFieldStop();
-
 
28888
      oprot.writeStructEnd();
-
 
28889
    }
-
 
28890
 
-
 
28891
    @Override
-
 
28892
    public String toString() {
-
 
28893
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_args(");
-
 
28894
      boolean first = true;
-
 
28895
 
-
 
28896
      sb.append("id:");
-
 
28897
      sb.append(this.id);
-
 
28898
      first = false;
-
 
28899
      if (!first) sb.append(", ");
-
 
28900
      sb.append("remoteTransferRefNumber:");
-
 
28901
      if (this.remoteTransferRefNumber == null) {
-
 
28902
        sb.append("null");
-
 
28903
      } else {
-
 
28904
        sb.append(this.remoteTransferRefNumber);
-
 
28905
      }
-
 
28906
      first = false;
-
 
28907
      sb.append(")");
-
 
28908
      return sb.toString();
-
 
28909
    }
-
 
28910
 
-
 
28911
    public void validate() throws org.apache.thrift.TException {
-
 
28912
      // check for required fields
-
 
28913
    }
-
 
28914
 
-
 
28915
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
28916
      try {
-
 
28917
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
28918
      } catch (org.apache.thrift.TException te) {
-
 
28919
        throw new java.io.IOException(te);
-
 
28920
      }
-
 
28921
    }
-
 
28922
 
-
 
28923
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
28924
      try {
-
 
28925
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
28926
        __isset_bit_vector = new BitSet(1);
-
 
28927
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
28928
      } catch (org.apache.thrift.TException te) {
-
 
28929
        throw new java.io.IOException(te);
-
 
28930
      }
-
 
28931
    }
-
 
28932
 
-
 
28933
  }
-
 
28934
 
-
 
28935
  public static class markTransferLotAsReceived_result implements org.apache.thrift.TBase<markTransferLotAsReceived_result, markTransferLotAsReceived_result._Fields>, java.io.Serializable, Cloneable   {
-
 
28936
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_result");
-
 
28937
 
-
 
28938
    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);
-
 
28939
 
-
 
28940
    private WarehouseServiceException wex; // required
-
 
28941
 
-
 
28942
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28943
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
28944
      WEX((short)1, "wex");
-
 
28945
 
-
 
28946
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28947
 
-
 
28948
      static {
-
 
28949
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28950
          byName.put(field.getFieldName(), field);
-
 
28951
        }
-
 
28952
      }
-
 
28953
 
-
 
28954
      /**
-
 
28955
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28956
       */
-
 
28957
      public static _Fields findByThriftId(int fieldId) {
-
 
28958
        switch(fieldId) {
-
 
28959
          case 1: // WEX
-
 
28960
            return WEX;
-
 
28961
          default:
-
 
28962
            return null;
-
 
28963
        }
-
 
28964
      }
-
 
28965
 
-
 
28966
      /**
-
 
28967
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28968
       * if it is not found.
-
 
28969
       */
-
 
28970
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28971
        _Fields fields = findByThriftId(fieldId);
-
 
28972
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28973
        return fields;
-
 
28974
      }
-
 
28975
 
-
 
28976
      /**
-
 
28977
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28978
       */
-
 
28979
      public static _Fields findByName(String name) {
-
 
28980
        return byName.get(name);
-
 
28981
      }
-
 
28982
 
-
 
28983
      private final short _thriftId;
-
 
28984
      private final String _fieldName;
-
 
28985
 
-
 
28986
      _Fields(short thriftId, String fieldName) {
-
 
28987
        _thriftId = thriftId;
-
 
28988
        _fieldName = fieldName;
-
 
28989
      }
-
 
28990
 
-
 
28991
      public short getThriftFieldId() {
-
 
28992
        return _thriftId;
-
 
28993
      }
-
 
28994
 
-
 
28995
      public String getFieldName() {
-
 
28996
        return _fieldName;
-
 
28997
      }
-
 
28998
    }
-
 
28999
 
-
 
29000
    // isset id assignments
-
 
29001
 
-
 
29002
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
29003
    static {
-
 
29004
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
29005
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29006
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
29007
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
29008
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_result.class, metaDataMap);
-
 
29009
    }
-
 
29010
 
-
 
29011
    public markTransferLotAsReceived_result() {
-
 
29012
    }
-
 
29013
 
-
 
29014
    public markTransferLotAsReceived_result(
-
 
29015
      WarehouseServiceException wex)
-
 
29016
    {
-
 
29017
      this();
-
 
29018
      this.wex = wex;
-
 
29019
    }
-
 
29020
 
-
 
29021
    /**
-
 
29022
     * Performs a deep copy on <i>other</i>.
-
 
29023
     */
-
 
29024
    public markTransferLotAsReceived_result(markTransferLotAsReceived_result other) {
-
 
29025
      if (other.isSetWex()) {
-
 
29026
        this.wex = new WarehouseServiceException(other.wex);
-
 
29027
      }
-
 
29028
    }
-
 
29029
 
-
 
29030
    public markTransferLotAsReceived_result deepCopy() {
-
 
29031
      return new markTransferLotAsReceived_result(this);
-
 
29032
    }
-
 
29033
 
-
 
29034
    @Override
-
 
29035
    public void clear() {
-
 
29036
      this.wex = null;
-
 
29037
    }
-
 
29038
 
-
 
29039
    public WarehouseServiceException getWex() {
-
 
29040
      return this.wex;
-
 
29041
    }
-
 
29042
 
-
 
29043
    public void setWex(WarehouseServiceException wex) {
-
 
29044
      this.wex = wex;
-
 
29045
    }
-
 
29046
 
-
 
29047
    public void unsetWex() {
-
 
29048
      this.wex = null;
-
 
29049
    }
-
 
29050
 
-
 
29051
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
29052
    public boolean isSetWex() {
-
 
29053
      return this.wex != null;
-
 
29054
    }
-
 
29055
 
-
 
29056
    public void setWexIsSet(boolean value) {
-
 
29057
      if (!value) {
-
 
29058
        this.wex = null;
-
 
29059
      }
-
 
29060
    }
-
 
29061
 
-
 
29062
    public void setFieldValue(_Fields field, Object value) {
-
 
29063
      switch (field) {
-
 
29064
      case WEX:
-
 
29065
        if (value == null) {
-
 
29066
          unsetWex();
-
 
29067
        } else {
-
 
29068
          setWex((WarehouseServiceException)value);
-
 
29069
        }
-
 
29070
        break;
-
 
29071
 
-
 
29072
      }
-
 
29073
    }
-
 
29074
 
-
 
29075
    public Object getFieldValue(_Fields field) {
-
 
29076
      switch (field) {
-
 
29077
      case WEX:
-
 
29078
        return getWex();
-
 
29079
 
-
 
29080
      }
-
 
29081
      throw new IllegalStateException();
-
 
29082
    }
-
 
29083
 
-
 
29084
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
29085
    public boolean isSet(_Fields field) {
-
 
29086
      if (field == null) {
-
 
29087
        throw new IllegalArgumentException();
-
 
29088
      }
-
 
29089
 
-
 
29090
      switch (field) {
-
 
29091
      case WEX:
-
 
29092
        return isSetWex();
-
 
29093
      }
-
 
29094
      throw new IllegalStateException();
-
 
29095
    }
-
 
29096
 
-
 
29097
    @Override
-
 
29098
    public boolean equals(Object that) {
-
 
29099
      if (that == null)
-
 
29100
        return false;
-
 
29101
      if (that instanceof markTransferLotAsReceived_result)
-
 
29102
        return this.equals((markTransferLotAsReceived_result)that);
-
 
29103
      return false;
-
 
29104
    }
-
 
29105
 
-
 
29106
    public boolean equals(markTransferLotAsReceived_result that) {
-
 
29107
      if (that == null)
-
 
29108
        return false;
-
 
29109
 
-
 
29110
      boolean this_present_wex = true && this.isSetWex();
-
 
29111
      boolean that_present_wex = true && that.isSetWex();
-
 
29112
      if (this_present_wex || that_present_wex) {
-
 
29113
        if (!(this_present_wex && that_present_wex))
-
 
29114
          return false;
-
 
29115
        if (!this.wex.equals(that.wex))
-
 
29116
          return false;
-
 
29117
      }
-
 
29118
 
-
 
29119
      return true;
-
 
29120
    }
-
 
29121
 
-
 
29122
    @Override
-
 
29123
    public int hashCode() {
-
 
29124
      return 0;
-
 
29125
    }
-
 
29126
 
-
 
29127
    public int compareTo(markTransferLotAsReceived_result other) {
-
 
29128
      if (!getClass().equals(other.getClass())) {
-
 
29129
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29130
      }
-
 
29131
 
-
 
29132
      int lastComparison = 0;
-
 
29133
      markTransferLotAsReceived_result typedOther = (markTransferLotAsReceived_result)other;
-
 
29134
 
-
 
29135
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
29136
      if (lastComparison != 0) {
-
 
29137
        return lastComparison;
-
 
29138
      }
-
 
29139
      if (isSetWex()) {
-
 
29140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
29141
        if (lastComparison != 0) {
-
 
29142
          return lastComparison;
-
 
29143
        }
-
 
29144
      }
-
 
29145
      return 0;
-
 
29146
    }
-
 
29147
 
-
 
29148
    public _Fields fieldForId(int fieldId) {
-
 
29149
      return _Fields.findByThriftId(fieldId);
-
 
29150
    }
-
 
29151
 
-
 
29152
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
29153
      org.apache.thrift.protocol.TField field;
-
 
29154
      iprot.readStructBegin();
-
 
29155
      while (true)
-
 
29156
      {
-
 
29157
        field = iprot.readFieldBegin();
-
 
29158
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
29159
          break;
-
 
29160
        }
-
 
29161
        switch (field.id) {
-
 
29162
          case 1: // WEX
-
 
29163
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
29164
              this.wex = new WarehouseServiceException();
-
 
29165
              this.wex.read(iprot);
-
 
29166
            } else { 
-
 
29167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29168
            }
-
 
29169
            break;
-
 
29170
          default:
-
 
29171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29172
        }
-
 
29173
        iprot.readFieldEnd();
-
 
29174
      }
-
 
29175
      iprot.readStructEnd();
-
 
29176
      validate();
-
 
29177
    }
-
 
29178
 
-
 
29179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
29180
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29181
 
-
 
29182
      if (this.isSetWex()) {
-
 
29183
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
29184
        this.wex.write(oprot);
-
 
29185
        oprot.writeFieldEnd();
-
 
29186
      }
-
 
29187
      oprot.writeFieldStop();
-
 
29188
      oprot.writeStructEnd();
-
 
29189
    }
-
 
29190
 
-
 
29191
    @Override
-
 
29192
    public String toString() {
-
 
29193
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_result(");
-
 
29194
      boolean first = true;
-
 
29195
 
-
 
29196
      sb.append("wex:");
-
 
29197
      if (this.wex == null) {
-
 
29198
        sb.append("null");
-
 
29199
      } else {
-
 
29200
        sb.append(this.wex);
-
 
29201
      }
-
 
29202
      first = false;
-
 
29203
      sb.append(")");
-
 
29204
      return sb.toString();
-
 
29205
    }
-
 
29206
 
-
 
29207
    public void validate() throws org.apache.thrift.TException {
-
 
29208
      // check for required fields
-
 
29209
    }
-
 
29210
 
-
 
29211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
29212
      try {
-
 
29213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
29214
      } catch (org.apache.thrift.TException te) {
-
 
29215
        throw new java.io.IOException(te);
-
 
29216
      }
-
 
29217
    }
-
 
29218
 
-
 
29219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
29220
      try {
-
 
29221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
29222
      } catch (org.apache.thrift.TException te) {
-
 
29223
        throw new java.io.IOException(te);
-
 
29224
      }
-
 
29225
    }
-
 
29226
 
-
 
29227
  }
-
 
29228
 
-
 
29229
  public static class getTransferLotsByDate_args implements org.apache.thrift.TBase<getTransferLotsByDate_args, getTransferLotsByDate_args._Fields>, java.io.Serializable, Cloneable   {
-
 
29230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_args");
-
 
29231
 
-
 
29232
    private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
29233
    private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
29234
 
-
 
29235
    private long fromDate; // required
-
 
29236
    private long toDate; // required
-
 
29237
 
-
 
29238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
29240
      FROM_DATE((short)1, "fromDate"),
-
 
29241
      TO_DATE((short)2, "toDate");
-
 
29242
 
-
 
29243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29244
 
-
 
29245
      static {
-
 
29246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29247
          byName.put(field.getFieldName(), field);
-
 
29248
        }
-
 
29249
      }
-
 
29250
 
-
 
29251
      /**
-
 
29252
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29253
       */
-
 
29254
      public static _Fields findByThriftId(int fieldId) {
-
 
29255
        switch(fieldId) {
-
 
29256
          case 1: // FROM_DATE
-
 
29257
            return FROM_DATE;
-
 
29258
          case 2: // TO_DATE
-
 
29259
            return TO_DATE;
-
 
29260
          default:
-
 
29261
            return null;
-
 
29262
        }
-
 
29263
      }
-
 
29264
 
-
 
29265
      /**
-
 
29266
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29267
       * if it is not found.
-
 
29268
       */
-
 
29269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29270
        _Fields fields = findByThriftId(fieldId);
-
 
29271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29272
        return fields;
-
 
29273
      }
-
 
29274
 
-
 
29275
      /**
-
 
29276
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29277
       */
-
 
29278
      public static _Fields findByName(String name) {
-
 
29279
        return byName.get(name);
-
 
29280
      }
-
 
29281
 
-
 
29282
      private final short _thriftId;
-
 
29283
      private final String _fieldName;
-
 
29284
 
-
 
29285
      _Fields(short thriftId, String fieldName) {
-
 
29286
        _thriftId = thriftId;
-
 
29287
        _fieldName = fieldName;
-
 
29288
      }
-
 
29289
 
-
 
29290
      public short getThriftFieldId() {
-
 
29291
        return _thriftId;
-
 
29292
      }
-
 
29293
 
-
 
29294
      public String getFieldName() {
-
 
29295
        return _fieldName;
-
 
29296
      }
-
 
29297
    }
-
 
29298
 
-
 
29299
    // isset id assignments
-
 
29300
    private static final int __FROMDATE_ISSET_ID = 0;
-
 
29301
    private static final int __TODATE_ISSET_ID = 1;
-
 
29302
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
29303
 
-
 
29304
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
29305
    static {
-
 
29306
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
29307
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
29309
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29310
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
29311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
29312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_args.class, metaDataMap);
-
 
29313
    }
-
 
29314
 
-
 
29315
    public getTransferLotsByDate_args() {
-
 
29316
    }
-
 
29317
 
-
 
29318
    public getTransferLotsByDate_args(
-
 
29319
      long fromDate,
-
 
29320
      long toDate)
-
 
29321
    {
-
 
29322
      this();
-
 
29323
      this.fromDate = fromDate;
-
 
29324
      setFromDateIsSet(true);
-
 
29325
      this.toDate = toDate;
-
 
29326
      setToDateIsSet(true);
-
 
29327
    }
-
 
29328
 
-
 
29329
    /**
-
 
29330
     * Performs a deep copy on <i>other</i>.
-
 
29331
     */
-
 
29332
    public getTransferLotsByDate_args(getTransferLotsByDate_args other) {
-
 
29333
      __isset_bit_vector.clear();
-
 
29334
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29335
      this.fromDate = other.fromDate;
-
 
29336
      this.toDate = other.toDate;
-
 
29337
    }
-
 
29338
 
-
 
29339
    public getTransferLotsByDate_args deepCopy() {
-
 
29340
      return new getTransferLotsByDate_args(this);
-
 
29341
    }
-
 
29342
 
-
 
29343
    @Override
-
 
29344
    public void clear() {
-
 
29345
      setFromDateIsSet(false);
-
 
29346
      this.fromDate = 0;
-
 
29347
      setToDateIsSet(false);
-
 
29348
      this.toDate = 0;
-
 
29349
    }
-
 
29350
 
-
 
29351
    public long getFromDate() {
-
 
29352
      return this.fromDate;
-
 
29353
    }
-
 
29354
 
-
 
29355
    public void setFromDate(long fromDate) {
-
 
29356
      this.fromDate = fromDate;
-
 
29357
      setFromDateIsSet(true);
-
 
29358
    }
-
 
29359
 
-
 
29360
    public void unsetFromDate() {
-
 
29361
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
-
 
29362
    }
-
 
29363
 
-
 
29364
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
-
 
29365
    public boolean isSetFromDate() {
-
 
29366
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
-
 
29367
    }
-
 
29368
 
-
 
29369
    public void setFromDateIsSet(boolean value) {
-
 
29370
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
-
 
29371
    }
-
 
29372
 
-
 
29373
    public long getToDate() {
-
 
29374
      return this.toDate;
-
 
29375
    }
-
 
29376
 
-
 
29377
    public void setToDate(long toDate) {
-
 
29378
      this.toDate = toDate;
-
 
29379
      setToDateIsSet(true);
-
 
29380
    }
-
 
29381
 
-
 
29382
    public void unsetToDate() {
-
 
29383
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
-
 
29384
    }
-
 
29385
 
-
 
29386
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
-
 
29387
    public boolean isSetToDate() {
-
 
29388
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
-
 
29389
    }
-
 
29390
 
-
 
29391
    public void setToDateIsSet(boolean value) {
-
 
29392
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
-
 
29393
    }
-
 
29394
 
-
 
29395
    public void setFieldValue(_Fields field, Object value) {
-
 
29396
      switch (field) {
-
 
29397
      case FROM_DATE:
-
 
29398
        if (value == null) {
-
 
29399
          unsetFromDate();
-
 
29400
        } else {
-
 
29401
          setFromDate((Long)value);
-
 
29402
        }
-
 
29403
        break;
-
 
29404
 
-
 
29405
      case TO_DATE:
-
 
29406
        if (value == null) {
-
 
29407
          unsetToDate();
-
 
29408
        } else {
-
 
29409
          setToDate((Long)value);
-
 
29410
        }
-
 
29411
        break;
-
 
29412
 
-
 
29413
      }
-
 
29414
    }
-
 
29415
 
-
 
29416
    public Object getFieldValue(_Fields field) {
-
 
29417
      switch (field) {
-
 
29418
      case FROM_DATE:
-
 
29419
        return Long.valueOf(getFromDate());
-
 
29420
 
-
 
29421
      case TO_DATE:
-
 
29422
        return Long.valueOf(getToDate());
-
 
29423
 
-
 
29424
      }
-
 
29425
      throw new IllegalStateException();
-
 
29426
    }
-
 
29427
 
-
 
29428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
29429
    public boolean isSet(_Fields field) {
-
 
29430
      if (field == null) {
-
 
29431
        throw new IllegalArgumentException();
-
 
29432
      }
-
 
29433
 
-
 
29434
      switch (field) {
-
 
29435
      case FROM_DATE:
-
 
29436
        return isSetFromDate();
-
 
29437
      case TO_DATE:
-
 
29438
        return isSetToDate();
-
 
29439
      }
-
 
29440
      throw new IllegalStateException();
-
 
29441
    }
-
 
29442
 
-
 
29443
    @Override
-
 
29444
    public boolean equals(Object that) {
-
 
29445
      if (that == null)
-
 
29446
        return false;
-
 
29447
      if (that instanceof getTransferLotsByDate_args)
-
 
29448
        return this.equals((getTransferLotsByDate_args)that);
-
 
29449
      return false;
-
 
29450
    }
-
 
29451
 
-
 
29452
    public boolean equals(getTransferLotsByDate_args that) {
-
 
29453
      if (that == null)
-
 
29454
        return false;
-
 
29455
 
-
 
29456
      boolean this_present_fromDate = true;
-
 
29457
      boolean that_present_fromDate = true;
-
 
29458
      if (this_present_fromDate || that_present_fromDate) {
-
 
29459
        if (!(this_present_fromDate && that_present_fromDate))
-
 
29460
          return false;
-
 
29461
        if (this.fromDate != that.fromDate)
-
 
29462
          return false;
-
 
29463
      }
-
 
29464
 
-
 
29465
      boolean this_present_toDate = true;
-
 
29466
      boolean that_present_toDate = true;
-
 
29467
      if (this_present_toDate || that_present_toDate) {
-
 
29468
        if (!(this_present_toDate && that_present_toDate))
-
 
29469
          return false;
-
 
29470
        if (this.toDate != that.toDate)
-
 
29471
          return false;
-
 
29472
      }
-
 
29473
 
-
 
29474
      return true;
-
 
29475
    }
-
 
29476
 
-
 
29477
    @Override
-
 
29478
    public int hashCode() {
-
 
29479
      return 0;
-
 
29480
    }
-
 
29481
 
-
 
29482
    public int compareTo(getTransferLotsByDate_args other) {
-
 
29483
      if (!getClass().equals(other.getClass())) {
-
 
29484
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29485
      }
-
 
29486
 
-
 
29487
      int lastComparison = 0;
-
 
29488
      getTransferLotsByDate_args typedOther = (getTransferLotsByDate_args)other;
-
 
29489
 
-
 
29490
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
-
 
29491
      if (lastComparison != 0) {
-
 
29492
        return lastComparison;
-
 
29493
      }
-
 
29494
      if (isSetFromDate()) {
-
 
29495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
-
 
29496
        if (lastComparison != 0) {
-
 
29497
          return lastComparison;
-
 
29498
        }
-
 
29499
      }
-
 
29500
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
-
 
29501
      if (lastComparison != 0) {
-
 
29502
        return lastComparison;
-
 
29503
      }
-
 
29504
      if (isSetToDate()) {
-
 
29505
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
-
 
29506
        if (lastComparison != 0) {
-
 
29507
          return lastComparison;
-
 
29508
        }
-
 
29509
      }
-
 
29510
      return 0;
-
 
29511
    }
-
 
29512
 
-
 
29513
    public _Fields fieldForId(int fieldId) {
-
 
29514
      return _Fields.findByThriftId(fieldId);
-
 
29515
    }
-
 
29516
 
-
 
29517
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
29518
      org.apache.thrift.protocol.TField field;
-
 
29519
      iprot.readStructBegin();
-
 
29520
      while (true)
-
 
29521
      {
-
 
29522
        field = iprot.readFieldBegin();
-
 
29523
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
29524
          break;
-
 
29525
        }
-
 
29526
        switch (field.id) {
-
 
29527
          case 1: // FROM_DATE
-
 
29528
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
29529
              this.fromDate = iprot.readI64();
-
 
29530
              setFromDateIsSet(true);
-
 
29531
            } else { 
-
 
29532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29533
            }
-
 
29534
            break;
-
 
29535
          case 2: // TO_DATE
-
 
29536
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
29537
              this.toDate = iprot.readI64();
-
 
29538
              setToDateIsSet(true);
-
 
29539
            } else { 
-
 
29540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29541
            }
-
 
29542
            break;
-
 
29543
          default:
-
 
29544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29545
        }
-
 
29546
        iprot.readFieldEnd();
-
 
29547
      }
-
 
29548
      iprot.readStructEnd();
-
 
29549
      validate();
-
 
29550
    }
-
 
29551
 
-
 
29552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
29553
      validate();
-
 
29554
 
-
 
29555
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29556
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
-
 
29557
      oprot.writeI64(this.fromDate);
-
 
29558
      oprot.writeFieldEnd();
-
 
29559
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
-
 
29560
      oprot.writeI64(this.toDate);
-
 
29561
      oprot.writeFieldEnd();
-
 
29562
      oprot.writeFieldStop();
-
 
29563
      oprot.writeStructEnd();
-
 
29564
    }
-
 
29565
 
-
 
29566
    @Override
-
 
29567
    public String toString() {
-
 
29568
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_args(");
-
 
29569
      boolean first = true;
-
 
29570
 
-
 
29571
      sb.append("fromDate:");
-
 
29572
      sb.append(this.fromDate);
-
 
29573
      first = false;
-
 
29574
      if (!first) sb.append(", ");
-
 
29575
      sb.append("toDate:");
-
 
29576
      sb.append(this.toDate);
-
 
29577
      first = false;
-
 
29578
      sb.append(")");
-
 
29579
      return sb.toString();
-
 
29580
    }
-
 
29581
 
-
 
29582
    public void validate() throws org.apache.thrift.TException {
-
 
29583
      // check for required fields
-
 
29584
    }
-
 
29585
 
-
 
29586
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
29587
      try {
-
 
29588
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
29589
      } catch (org.apache.thrift.TException te) {
-
 
29590
        throw new java.io.IOException(te);
-
 
29591
      }
-
 
29592
    }
-
 
29593
 
-
 
29594
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
29595
      try {
-
 
29596
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
29597
        __isset_bit_vector = new BitSet(1);
-
 
29598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
29599
      } catch (org.apache.thrift.TException te) {
-
 
29600
        throw new java.io.IOException(te);
-
 
29601
      }
-
 
29602
    }
-
 
29603
 
-
 
29604
  }
-
 
29605
 
-
 
29606
  public static class getTransferLotsByDate_result implements org.apache.thrift.TBase<getTransferLotsByDate_result, getTransferLotsByDate_result._Fields>, java.io.Serializable, Cloneable   {
-
 
29607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_result");
-
 
29608
 
-
 
29609
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
29610
    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);
-
 
29611
 
-
 
29612
    private List<TransferLot> success; // required
-
 
29613
    private WarehouseServiceException wex; // required
-
 
29614
 
-
 
29615
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29616
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
29617
      SUCCESS((short)0, "success"),
-
 
29618
      WEX((short)1, "wex");
-
 
29619
 
-
 
29620
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29621
 
-
 
29622
      static {
-
 
29623
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29624
          byName.put(field.getFieldName(), field);
-
 
29625
        }
-
 
29626
      }
-
 
29627
 
-
 
29628
      /**
-
 
29629
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29630
       */
-
 
29631
      public static _Fields findByThriftId(int fieldId) {
-
 
29632
        switch(fieldId) {
-
 
29633
          case 0: // SUCCESS
-
 
29634
            return SUCCESS;
-
 
29635
          case 1: // WEX
-
 
29636
            return WEX;
-
 
29637
          default:
-
 
29638
            return null;
-
 
29639
        }
-
 
29640
      }
-
 
29641
 
-
 
29642
      /**
-
 
29643
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29644
       * if it is not found.
-
 
29645
       */
-
 
29646
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29647
        _Fields fields = findByThriftId(fieldId);
-
 
29648
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29649
        return fields;
-
 
29650
      }
-
 
29651
 
-
 
29652
      /**
-
 
29653
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29654
       */
-
 
29655
      public static _Fields findByName(String name) {
-
 
29656
        return byName.get(name);
-
 
29657
      }
-
 
29658
 
-
 
29659
      private final short _thriftId;
-
 
29660
      private final String _fieldName;
-
 
29661
 
-
 
29662
      _Fields(short thriftId, String fieldName) {
-
 
29663
        _thriftId = thriftId;
-
 
29664
        _fieldName = fieldName;
-
 
29665
      }
-
 
29666
 
-
 
29667
      public short getThriftFieldId() {
-
 
29668
        return _thriftId;
-
 
29669
      }
-
 
29670
 
-
 
29671
      public String getFieldName() {
-
 
29672
        return _fieldName;
-
 
29673
      }
-
 
29674
    }
-
 
29675
 
-
 
29676
    // isset id assignments
-
 
29677
 
-
 
29678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
29679
    static {
-
 
29680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
29681
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29682
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
29683
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class))));
-
 
29684
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29685
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
29686
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
29687
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_result.class, metaDataMap);
-
 
29688
    }
-
 
29689
 
-
 
29690
    public getTransferLotsByDate_result() {
-
 
29691
    }
-
 
29692
 
-
 
29693
    public getTransferLotsByDate_result(
-
 
29694
      List<TransferLot> success,
-
 
29695
      WarehouseServiceException wex)
-
 
29696
    {
-
 
29697
      this();
-
 
29698
      this.success = success;
-
 
29699
      this.wex = wex;
-
 
29700
    }
-
 
29701
 
-
 
29702
    /**
-
 
29703
     * Performs a deep copy on <i>other</i>.
-
 
29704
     */
-
 
29705
    public getTransferLotsByDate_result(getTransferLotsByDate_result other) {
-
 
29706
      if (other.isSetSuccess()) {
-
 
29707
        List<TransferLot> __this__success = new ArrayList<TransferLot>();
-
 
29708
        for (TransferLot other_element : other.success) {
-
 
29709
          __this__success.add(new TransferLot(other_element));
-
 
29710
        }
-
 
29711
        this.success = __this__success;
-
 
29712
      }
-
 
29713
      if (other.isSetWex()) {
-
 
29714
        this.wex = new WarehouseServiceException(other.wex);
-
 
29715
      }
-
 
29716
    }
-
 
29717
 
-
 
29718
    public getTransferLotsByDate_result deepCopy() {
-
 
29719
      return new getTransferLotsByDate_result(this);
-
 
29720
    }
-
 
29721
 
-
 
29722
    @Override
-
 
29723
    public void clear() {
-
 
29724
      this.success = null;
-
 
29725
      this.wex = null;
-
 
29726
    }
-
 
29727
 
-
 
29728
    public int getSuccessSize() {
-
 
29729
      return (this.success == null) ? 0 : this.success.size();
-
 
29730
    }
-
 
29731
 
-
 
29732
    public java.util.Iterator<TransferLot> getSuccessIterator() {
-
 
29733
      return (this.success == null) ? null : this.success.iterator();
-
 
29734
    }
-
 
29735
 
-
 
29736
    public void addToSuccess(TransferLot elem) {
-
 
29737
      if (this.success == null) {
-
 
29738
        this.success = new ArrayList<TransferLot>();
-
 
29739
      }
-
 
29740
      this.success.add(elem);
-
 
29741
    }
-
 
29742
 
-
 
29743
    public List<TransferLot> getSuccess() {
-
 
29744
      return this.success;
-
 
29745
    }
-
 
29746
 
-
 
29747
    public void setSuccess(List<TransferLot> success) {
-
 
29748
      this.success = success;
-
 
29749
    }
-
 
29750
 
-
 
29751
    public void unsetSuccess() {
-
 
29752
      this.success = null;
-
 
29753
    }
-
 
29754
 
-
 
29755
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
29756
    public boolean isSetSuccess() {
-
 
29757
      return this.success != null;
-
 
29758
    }
-
 
29759
 
-
 
29760
    public void setSuccessIsSet(boolean value) {
-
 
29761
      if (!value) {
-
 
29762
        this.success = null;
-
 
29763
      }
-
 
29764
    }
-
 
29765
 
-
 
29766
    public WarehouseServiceException getWex() {
-
 
29767
      return this.wex;
-
 
29768
    }
-
 
29769
 
-
 
29770
    public void setWex(WarehouseServiceException wex) {
-
 
29771
      this.wex = wex;
-
 
29772
    }
-
 
29773
 
-
 
29774
    public void unsetWex() {
-
 
29775
      this.wex = null;
-
 
29776
    }
-
 
29777
 
-
 
29778
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
29779
    public boolean isSetWex() {
-
 
29780
      return this.wex != null;
-
 
29781
    }
-
 
29782
 
-
 
29783
    public void setWexIsSet(boolean value) {
-
 
29784
      if (!value) {
-
 
29785
        this.wex = null;
-
 
29786
      }
-
 
29787
    }
-
 
29788
 
-
 
29789
    public void setFieldValue(_Fields field, Object value) {
-
 
29790
      switch (field) {
-
 
29791
      case SUCCESS:
-
 
29792
        if (value == null) {
-
 
29793
          unsetSuccess();
-
 
29794
        } else {
-
 
29795
          setSuccess((List<TransferLot>)value);
-
 
29796
        }
-
 
29797
        break;
-
 
29798
 
-
 
29799
      case WEX:
-
 
29800
        if (value == null) {
-
 
29801
          unsetWex();
-
 
29802
        } else {
-
 
29803
          setWex((WarehouseServiceException)value);
-
 
29804
        }
-
 
29805
        break;
-
 
29806
 
-
 
29807
      }
-
 
29808
    }
-
 
29809
 
-
 
29810
    public Object getFieldValue(_Fields field) {
-
 
29811
      switch (field) {
-
 
29812
      case SUCCESS:
-
 
29813
        return getSuccess();
-
 
29814
 
-
 
29815
      case WEX:
-
 
29816
        return getWex();
-
 
29817
 
-
 
29818
      }
-
 
29819
      throw new IllegalStateException();
-
 
29820
    }
-
 
29821
 
-
 
29822
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
29823
    public boolean isSet(_Fields field) {
-
 
29824
      if (field == null) {
-
 
29825
        throw new IllegalArgumentException();
-
 
29826
      }
-
 
29827
 
-
 
29828
      switch (field) {
-
 
29829
      case SUCCESS:
-
 
29830
        return isSetSuccess();
-
 
29831
      case WEX:
-
 
29832
        return isSetWex();
-
 
29833
      }
-
 
29834
      throw new IllegalStateException();
-
 
29835
    }
-
 
29836
 
-
 
29837
    @Override
-
 
29838
    public boolean equals(Object that) {
-
 
29839
      if (that == null)
-
 
29840
        return false;
-
 
29841
      if (that instanceof getTransferLotsByDate_result)
-
 
29842
        return this.equals((getTransferLotsByDate_result)that);
-
 
29843
      return false;
-
 
29844
    }
-
 
29845
 
-
 
29846
    public boolean equals(getTransferLotsByDate_result that) {
-
 
29847
      if (that == null)
-
 
29848
        return false;
-
 
29849
 
-
 
29850
      boolean this_present_success = true && this.isSetSuccess();
-
 
29851
      boolean that_present_success = true && that.isSetSuccess();
-
 
29852
      if (this_present_success || that_present_success) {
-
 
29853
        if (!(this_present_success && that_present_success))
-
 
29854
          return false;
-
 
29855
        if (!this.success.equals(that.success))
-
 
29856
          return false;
-
 
29857
      }
-
 
29858
 
-
 
29859
      boolean this_present_wex = true && this.isSetWex();
-
 
29860
      boolean that_present_wex = true && that.isSetWex();
-
 
29861
      if (this_present_wex || that_present_wex) {
-
 
29862
        if (!(this_present_wex && that_present_wex))
-
 
29863
          return false;
-
 
29864
        if (!this.wex.equals(that.wex))
-
 
29865
          return false;
-
 
29866
      }
-
 
29867
 
-
 
29868
      return true;
-
 
29869
    }
-
 
29870
 
-
 
29871
    @Override
-
 
29872
    public int hashCode() {
-
 
29873
      return 0;
-
 
29874
    }
-
 
29875
 
-
 
29876
    public int compareTo(getTransferLotsByDate_result other) {
-
 
29877
      if (!getClass().equals(other.getClass())) {
-
 
29878
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29879
      }
-
 
29880
 
-
 
29881
      int lastComparison = 0;
-
 
29882
      getTransferLotsByDate_result typedOther = (getTransferLotsByDate_result)other;
-
 
29883
 
-
 
29884
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
29885
      if (lastComparison != 0) {
-
 
29886
        return lastComparison;
-
 
29887
      }
-
 
29888
      if (isSetSuccess()) {
-
 
29889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
29890
        if (lastComparison != 0) {
-
 
29891
          return lastComparison;
-
 
29892
        }
-
 
29893
      }
-
 
29894
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
29895
      if (lastComparison != 0) {
-
 
29896
        return lastComparison;
-
 
29897
      }
-
 
29898
      if (isSetWex()) {
-
 
29899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
29900
        if (lastComparison != 0) {
-
 
29901
          return lastComparison;
-
 
29902
        }
-
 
29903
      }
-
 
29904
      return 0;
-
 
29905
    }
-
 
29906
 
-
 
29907
    public _Fields fieldForId(int fieldId) {
-
 
29908
      return _Fields.findByThriftId(fieldId);
-
 
29909
    }
-
 
29910
 
-
 
29911
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
29912
      org.apache.thrift.protocol.TField field;
-
 
29913
      iprot.readStructBegin();
-
 
29914
      while (true)
-
 
29915
      {
-
 
29916
        field = iprot.readFieldBegin();
-
 
29917
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
29918
          break;
-
 
29919
        }
-
 
29920
        switch (field.id) {
-
 
29921
          case 0: // SUCCESS
-
 
29922
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
29923
              {
-
 
29924
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
-
 
29925
                this.success = new ArrayList<TransferLot>(_list76.size);
-
 
29926
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
-
 
29927
                {
-
 
29928
                  TransferLot _elem78; // required
-
 
29929
                  _elem78 = new TransferLot();
-
 
29930
                  _elem78.read(iprot);
-
 
29931
                  this.success.add(_elem78);
-
 
29932
                }
-
 
29933
                iprot.readListEnd();
-
 
29934
              }
-
 
29935
            } else { 
-
 
29936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29937
            }
-
 
29938
            break;
-
 
29939
          case 1: // WEX
-
 
29940
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
29941
              this.wex = new WarehouseServiceException();
-
 
29942
              this.wex.read(iprot);
-
 
29943
            } else { 
-
 
29944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29945
            }
-
 
29946
            break;
-
 
29947
          default:
-
 
29948
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29949
        }
-
 
29950
        iprot.readFieldEnd();
-
 
29951
      }
-
 
29952
      iprot.readStructEnd();
-
 
29953
      validate();
-
 
29954
    }
-
 
29955
 
-
 
29956
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
29957
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29958
 
-
 
29959
      if (this.isSetSuccess()) {
-
 
29960
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
29961
        {
-
 
29962
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
29963
          for (TransferLot _iter79 : this.success)
-
 
29964
          {
-
 
29965
            _iter79.write(oprot);
-
 
29966
          }
-
 
29967
          oprot.writeListEnd();
-
 
29968
        }
-
 
29969
        oprot.writeFieldEnd();
-
 
29970
      } else if (this.isSetWex()) {
-
 
29971
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
29972
        this.wex.write(oprot);
-
 
29973
        oprot.writeFieldEnd();
-
 
29974
      }
-
 
29975
      oprot.writeFieldStop();
-
 
29976
      oprot.writeStructEnd();
-
 
29977
    }
-
 
29978
 
-
 
29979
    @Override
-
 
29980
    public String toString() {
-
 
29981
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_result(");
-
 
29982
      boolean first = true;
-
 
29983
 
-
 
29984
      sb.append("success:");
-
 
29985
      if (this.success == null) {
-
 
29986
        sb.append("null");
-
 
29987
      } else {
-
 
29988
        sb.append(this.success);
-
 
29989
      }
-
 
29990
      first = false;
-
 
29991
      if (!first) sb.append(", ");
-
 
29992
      sb.append("wex:");
-
 
29993
      if (this.wex == null) {
-
 
29994
        sb.append("null");
-
 
29995
      } else {
-
 
29996
        sb.append(this.wex);
-
 
29997
      }
-
 
29998
      first = false;
-
 
29999
      sb.append(")");
-
 
30000
      return sb.toString();
-
 
30001
    }
-
 
30002
 
-
 
30003
    public void validate() throws org.apache.thrift.TException {
-
 
30004
      // check for required fields
-
 
30005
    }
-
 
30006
 
-
 
30007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
30008
      try {
-
 
30009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
30010
      } catch (org.apache.thrift.TException te) {
-
 
30011
        throw new java.io.IOException(te);
-
 
30012
      }
-
 
30013
    }
-
 
30014
 
-
 
30015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
30016
      try {
-
 
30017
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
30018
      } catch (org.apache.thrift.TException te) {
-
 
30019
        throw new java.io.IOException(te);
-
 
30020
      }
-
 
30021
    }
-
 
30022
 
-
 
30023
  }
-
 
30024
 
-
 
30025
  public static class getAllowedDestinationWarehousesForTransfer_args implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_args, getAllowedDestinationWarehousesForTransfer_args._Fields>, java.io.Serializable, Cloneable   {
-
 
30026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_args");
-
 
30027
 
-
 
30028
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
30029
 
-
 
30030
    private long warehouseId; // required
-
 
30031
 
-
 
30032
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30033
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
30034
      WAREHOUSE_ID((short)1, "warehouseId");
-
 
30035
 
-
 
30036
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30037
 
-
 
30038
      static {
-
 
30039
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30040
          byName.put(field.getFieldName(), field);
-
 
30041
        }
-
 
30042
      }
-
 
30043
 
-
 
30044
      /**
-
 
30045
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30046
       */
-
 
30047
      public static _Fields findByThriftId(int fieldId) {
-
 
30048
        switch(fieldId) {
-
 
30049
          case 1: // WAREHOUSE_ID
-
 
30050
            return WAREHOUSE_ID;
-
 
30051
          default:
-
 
30052
            return null;
-
 
30053
        }
-
 
30054
      }
-
 
30055
 
-
 
30056
      /**
-
 
30057
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30058
       * if it is not found.
-
 
30059
       */
-
 
30060
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30061
        _Fields fields = findByThriftId(fieldId);
-
 
30062
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30063
        return fields;
-
 
30064
      }
-
 
30065
 
-
 
30066
      /**
-
 
30067
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30068
       */
-
 
30069
      public static _Fields findByName(String name) {
-
 
30070
        return byName.get(name);
-
 
30071
      }
-
 
30072
 
-
 
30073
      private final short _thriftId;
-
 
30074
      private final String _fieldName;
-
 
30075
 
-
 
30076
      _Fields(short thriftId, String fieldName) {
-
 
30077
        _thriftId = thriftId;
-
 
30078
        _fieldName = fieldName;
-
 
30079
      }
-
 
30080
 
-
 
30081
      public short getThriftFieldId() {
-
 
30082
        return _thriftId;
-
 
30083
      }
-
 
30084
 
-
 
30085
      public String getFieldName() {
-
 
30086
        return _fieldName;
-
 
30087
      }
-
 
30088
    }
-
 
30089
 
-
 
30090
    // isset id assignments
-
 
30091
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
30092
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
30093
 
-
 
30094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
30095
    static {
-
 
30096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
30097
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
30098
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
30099
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
30100
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_args.class, metaDataMap);
-
 
30101
    }
-
 
30102
 
-
 
30103
    public getAllowedDestinationWarehousesForTransfer_args() {
-
 
30104
    }
-
 
30105
 
-
 
30106
    public getAllowedDestinationWarehousesForTransfer_args(
-
 
30107
      long warehouseId)
-
 
30108
    {
-
 
30109
      this();
-
 
30110
      this.warehouseId = warehouseId;
-
 
30111
      setWarehouseIdIsSet(true);
-
 
30112
    }
-
 
30113
 
-
 
30114
    /**
-
 
30115
     * Performs a deep copy on <i>other</i>.
-
 
30116
     */
-
 
30117
    public getAllowedDestinationWarehousesForTransfer_args(getAllowedDestinationWarehousesForTransfer_args other) {
-
 
30118
      __isset_bit_vector.clear();
-
 
30119
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
30120
      this.warehouseId = other.warehouseId;
-
 
30121
    }
-
 
30122
 
-
 
30123
    public getAllowedDestinationWarehousesForTransfer_args deepCopy() {
-
 
30124
      return new getAllowedDestinationWarehousesForTransfer_args(this);
-
 
30125
    }
-
 
30126
 
-
 
30127
    @Override
-
 
30128
    public void clear() {
-
 
30129
      setWarehouseIdIsSet(false);
-
 
30130
      this.warehouseId = 0;
-
 
30131
    }
-
 
30132
 
-
 
30133
    public long getWarehouseId() {
-
 
30134
      return this.warehouseId;
-
 
30135
    }
-
 
30136
 
-
 
30137
    public void setWarehouseId(long warehouseId) {
-
 
30138
      this.warehouseId = warehouseId;
-
 
30139
      setWarehouseIdIsSet(true);
-
 
30140
    }
-
 
30141
 
-
 
30142
    public void unsetWarehouseId() {
-
 
30143
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
30144
    }
-
 
30145
 
-
 
30146
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
30147
    public boolean isSetWarehouseId() {
-
 
30148
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
30149
    }
-
 
30150
 
-
 
30151
    public void setWarehouseIdIsSet(boolean value) {
-
 
30152
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
30153
    }
-
 
30154
 
-
 
30155
    public void setFieldValue(_Fields field, Object value) {
-
 
30156
      switch (field) {
-
 
30157
      case WAREHOUSE_ID:
-
 
30158
        if (value == null) {
-
 
30159
          unsetWarehouseId();
-
 
30160
        } else {
-
 
30161
          setWarehouseId((Long)value);
-
 
30162
        }
-
 
30163
        break;
-
 
30164
 
-
 
30165
      }
-
 
30166
    }
-
 
30167
 
-
 
30168
    public Object getFieldValue(_Fields field) {
-
 
30169
      switch (field) {
-
 
30170
      case WAREHOUSE_ID:
-
 
30171
        return Long.valueOf(getWarehouseId());
-
 
30172
 
-
 
30173
      }
-
 
30174
      throw new IllegalStateException();
-
 
30175
    }
-
 
30176
 
-
 
30177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
30178
    public boolean isSet(_Fields field) {
-
 
30179
      if (field == null) {
-
 
30180
        throw new IllegalArgumentException();
-
 
30181
      }
-
 
30182
 
-
 
30183
      switch (field) {
-
 
30184
      case WAREHOUSE_ID:
-
 
30185
        return isSetWarehouseId();
-
 
30186
      }
-
 
30187
      throw new IllegalStateException();
-
 
30188
    }
-
 
30189
 
-
 
30190
    @Override
-
 
30191
    public boolean equals(Object that) {
-
 
30192
      if (that == null)
-
 
30193
        return false;
-
 
30194
      if (that instanceof getAllowedDestinationWarehousesForTransfer_args)
-
 
30195
        return this.equals((getAllowedDestinationWarehousesForTransfer_args)that);
-
 
30196
      return false;
-
 
30197
    }
-
 
30198
 
-
 
30199
    public boolean equals(getAllowedDestinationWarehousesForTransfer_args that) {
-
 
30200
      if (that == null)
-
 
30201
        return false;
-
 
30202
 
-
 
30203
      boolean this_present_warehouseId = true;
-
 
30204
      boolean that_present_warehouseId = true;
-
 
30205
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
30206
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
30207
          return false;
-
 
30208
        if (this.warehouseId != that.warehouseId)
-
 
30209
          return false;
-
 
30210
      }
-
 
30211
 
-
 
30212
      return true;
-
 
30213
    }
-
 
30214
 
-
 
30215
    @Override
-
 
30216
    public int hashCode() {
-
 
30217
      return 0;
-
 
30218
    }
-
 
30219
 
-
 
30220
    public int compareTo(getAllowedDestinationWarehousesForTransfer_args other) {
-
 
30221
      if (!getClass().equals(other.getClass())) {
-
 
30222
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30223
      }
-
 
30224
 
-
 
30225
      int lastComparison = 0;
-
 
30226
      getAllowedDestinationWarehousesForTransfer_args typedOther = (getAllowedDestinationWarehousesForTransfer_args)other;
-
 
30227
 
-
 
30228
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
30229
      if (lastComparison != 0) {
-
 
30230
        return lastComparison;
-
 
30231
      }
-
 
30232
      if (isSetWarehouseId()) {
-
 
30233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
30234
        if (lastComparison != 0) {
-
 
30235
          return lastComparison;
-
 
30236
        }
-
 
30237
      }
-
 
30238
      return 0;
-
 
30239
    }
-
 
30240
 
-
 
30241
    public _Fields fieldForId(int fieldId) {
-
 
30242
      return _Fields.findByThriftId(fieldId);
-
 
30243
    }
-
 
30244
 
-
 
30245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
30246
      org.apache.thrift.protocol.TField field;
-
 
30247
      iprot.readStructBegin();
-
 
30248
      while (true)
-
 
30249
      {
-
 
30250
        field = iprot.readFieldBegin();
-
 
30251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
30252
          break;
-
 
30253
        }
-
 
30254
        switch (field.id) {
-
 
30255
          case 1: // WAREHOUSE_ID
-
 
30256
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
30257
              this.warehouseId = iprot.readI64();
-
 
30258
              setWarehouseIdIsSet(true);
-
 
30259
            } else { 
-
 
30260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30261
            }
-
 
30262
            break;
-
 
30263
          default:
-
 
30264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30265
        }
-
 
30266
        iprot.readFieldEnd();
-
 
30267
      }
-
 
30268
      iprot.readStructEnd();
-
 
30269
      validate();
-
 
30270
    }
-
 
30271
 
-
 
30272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
30273
      validate();
-
 
30274
 
-
 
30275
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30276
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
30277
      oprot.writeI64(this.warehouseId);
-
 
30278
      oprot.writeFieldEnd();
-
 
30279
      oprot.writeFieldStop();
-
 
30280
      oprot.writeStructEnd();
-
 
30281
    }
-
 
30282
 
-
 
30283
    @Override
-
 
30284
    public String toString() {
-
 
30285
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_args(");
-
 
30286
      boolean first = true;
-
 
30287
 
-
 
30288
      sb.append("warehouseId:");
-
 
30289
      sb.append(this.warehouseId);
-
 
30290
      first = false;
-
 
30291
      sb.append(")");
-
 
30292
      return sb.toString();
-
 
30293
    }
-
 
30294
 
-
 
30295
    public void validate() throws org.apache.thrift.TException {
-
 
30296
      // check for required fields
-
 
30297
    }
-
 
30298
 
-
 
30299
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
30300
      try {
-
 
30301
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
30302
      } catch (org.apache.thrift.TException te) {
-
 
30303
        throw new java.io.IOException(te);
-
 
30304
      }
-
 
30305
    }
-
 
30306
 
-
 
30307
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
30308
      try {
-
 
30309
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
30310
        __isset_bit_vector = new BitSet(1);
-
 
30311
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
30312
      } catch (org.apache.thrift.TException te) {
-
 
30313
        throw new java.io.IOException(te);
-
 
30314
      }
-
 
30315
    }
-
 
30316
 
-
 
30317
  }
-
 
30318
 
-
 
30319
  public static class getAllowedDestinationWarehousesForTransfer_result implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_result, getAllowedDestinationWarehousesForTransfer_result._Fields>, java.io.Serializable, Cloneable   {
-
 
30320
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_result");
-
 
30321
 
-
 
30322
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
30323
 
-
 
30324
    private List<Long> success; // required
-
 
30325
 
-
 
30326
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30327
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
30328
      SUCCESS((short)0, "success");
-
 
30329
 
-
 
30330
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30331
 
-
 
30332
      static {
-
 
30333
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30334
          byName.put(field.getFieldName(), field);
-
 
30335
        }
-
 
30336
      }
-
 
30337
 
-
 
30338
      /**
-
 
30339
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30340
       */
-
 
30341
      public static _Fields findByThriftId(int fieldId) {
-
 
30342
        switch(fieldId) {
-
 
30343
          case 0: // SUCCESS
-
 
30344
            return SUCCESS;
-
 
30345
          default:
-
 
30346
            return null;
-
 
30347
        }
-
 
30348
      }
-
 
30349
 
-
 
30350
      /**
-
 
30351
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30352
       * if it is not found.
-
 
30353
       */
-
 
30354
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30355
        _Fields fields = findByThriftId(fieldId);
-
 
30356
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30357
        return fields;
-
 
30358
      }
-
 
30359
 
-
 
30360
      /**
-
 
30361
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30362
       */
-
 
30363
      public static _Fields findByName(String name) {
-
 
30364
        return byName.get(name);
-
 
30365
      }
-
 
30366
 
-
 
30367
      private final short _thriftId;
-
 
30368
      private final String _fieldName;
-
 
30369
 
-
 
30370
      _Fields(short thriftId, String fieldName) {
-
 
30371
        _thriftId = thriftId;
-
 
30372
        _fieldName = fieldName;
-
 
30373
      }
-
 
30374
 
-
 
30375
      public short getThriftFieldId() {
-
 
30376
        return _thriftId;
-
 
30377
      }
-
 
30378
 
-
 
30379
      public String getFieldName() {
-
 
30380
        return _fieldName;
-
 
30381
      }
-
 
30382
    }
-
 
30383
 
-
 
30384
    // isset id assignments
-
 
30385
 
-
 
30386
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
30387
    static {
-
 
30388
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
30389
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
30390
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
30391
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
30392
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
30393
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_result.class, metaDataMap);
-
 
30394
    }
-
 
30395
 
-
 
30396
    public getAllowedDestinationWarehousesForTransfer_result() {
-
 
30397
    }
-
 
30398
 
-
 
30399
    public getAllowedDestinationWarehousesForTransfer_result(
-
 
30400
      List<Long> success)
-
 
30401
    {
-
 
30402
      this();
-
 
30403
      this.success = success;
-
 
30404
    }
-
 
30405
 
-
 
30406
    /**
-
 
30407
     * Performs a deep copy on <i>other</i>.
-
 
30408
     */
-
 
30409
    public getAllowedDestinationWarehousesForTransfer_result(getAllowedDestinationWarehousesForTransfer_result other) {
-
 
30410
      if (other.isSetSuccess()) {
-
 
30411
        List<Long> __this__success = new ArrayList<Long>();
-
 
30412
        for (Long other_element : other.success) {
-
 
30413
          __this__success.add(other_element);
-
 
30414
        }
-
 
30415
        this.success = __this__success;
-
 
30416
      }
-
 
30417
    }
-
 
30418
 
-
 
30419
    public getAllowedDestinationWarehousesForTransfer_result deepCopy() {
-
 
30420
      return new getAllowedDestinationWarehousesForTransfer_result(this);
-
 
30421
    }
-
 
30422
 
-
 
30423
    @Override
-
 
30424
    public void clear() {
-
 
30425
      this.success = null;
-
 
30426
    }
-
 
30427
 
-
 
30428
    public int getSuccessSize() {
-
 
30429
      return (this.success == null) ? 0 : this.success.size();
-
 
30430
    }
-
 
30431
 
-
 
30432
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
30433
      return (this.success == null) ? null : this.success.iterator();
-
 
30434
    }
-
 
30435
 
-
 
30436
    public void addToSuccess(long elem) {
-
 
30437
      if (this.success == null) {
-
 
30438
        this.success = new ArrayList<Long>();
-
 
30439
      }
-
 
30440
      this.success.add(elem);
-
 
30441
    }
-
 
30442
 
-
 
30443
    public List<Long> getSuccess() {
-
 
30444
      return this.success;
-
 
30445
    }
-
 
30446
 
-
 
30447
    public void setSuccess(List<Long> success) {
-
 
30448
      this.success = success;
-
 
30449
    }
-
 
30450
 
-
 
30451
    public void unsetSuccess() {
-
 
30452
      this.success = null;
-
 
30453
    }
-
 
30454
 
-
 
30455
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
30456
    public boolean isSetSuccess() {
-
 
30457
      return this.success != null;
-
 
30458
    }
-
 
30459
 
-
 
30460
    public void setSuccessIsSet(boolean value) {
-
 
30461
      if (!value) {
-
 
30462
        this.success = null;
-
 
30463
      }
-
 
30464
    }
-
 
30465
 
-
 
30466
    public void setFieldValue(_Fields field, Object value) {
-
 
30467
      switch (field) {
-
 
30468
      case SUCCESS:
-
 
30469
        if (value == null) {
-
 
30470
          unsetSuccess();
-
 
30471
        } else {
-
 
30472
          setSuccess((List<Long>)value);
-
 
30473
        }
-
 
30474
        break;
-
 
30475
 
-
 
30476
      }
-
 
30477
    }
-
 
30478
 
-
 
30479
    public Object getFieldValue(_Fields field) {
-
 
30480
      switch (field) {
-
 
30481
      case SUCCESS:
-
 
30482
        return getSuccess();
-
 
30483
 
-
 
30484
      }
-
 
30485
      throw new IllegalStateException();
-
 
30486
    }
-
 
30487
 
-
 
30488
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
30489
    public boolean isSet(_Fields field) {
-
 
30490
      if (field == null) {
-
 
30491
        throw new IllegalArgumentException();
-
 
30492
      }
-
 
30493
 
-
 
30494
      switch (field) {
-
 
30495
      case SUCCESS:
-
 
30496
        return isSetSuccess();
-
 
30497
      }
-
 
30498
      throw new IllegalStateException();
-
 
30499
    }
-
 
30500
 
-
 
30501
    @Override
-
 
30502
    public boolean equals(Object that) {
-
 
30503
      if (that == null)
-
 
30504
        return false;
-
 
30505
      if (that instanceof getAllowedDestinationWarehousesForTransfer_result)
-
 
30506
        return this.equals((getAllowedDestinationWarehousesForTransfer_result)that);
-
 
30507
      return false;
-
 
30508
    }
-
 
30509
 
-
 
30510
    public boolean equals(getAllowedDestinationWarehousesForTransfer_result that) {
-
 
30511
      if (that == null)
-
 
30512
        return false;
-
 
30513
 
-
 
30514
      boolean this_present_success = true && this.isSetSuccess();
-
 
30515
      boolean that_present_success = true && that.isSetSuccess();
-
 
30516
      if (this_present_success || that_present_success) {
-
 
30517
        if (!(this_present_success && that_present_success))
-
 
30518
          return false;
-
 
30519
        if (!this.success.equals(that.success))
-
 
30520
          return false;
-
 
30521
      }
-
 
30522
 
-
 
30523
      return true;
-
 
30524
    }
-
 
30525
 
-
 
30526
    @Override
-
 
30527
    public int hashCode() {
-
 
30528
      return 0;
-
 
30529
    }
-
 
30530
 
-
 
30531
    public int compareTo(getAllowedDestinationWarehousesForTransfer_result other) {
-
 
30532
      if (!getClass().equals(other.getClass())) {
-
 
30533
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30534
      }
-
 
30535
 
-
 
30536
      int lastComparison = 0;
-
 
30537
      getAllowedDestinationWarehousesForTransfer_result typedOther = (getAllowedDestinationWarehousesForTransfer_result)other;
-
 
30538
 
-
 
30539
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
30540
      if (lastComparison != 0) {
-
 
30541
        return lastComparison;
-
 
30542
      }
-
 
30543
      if (isSetSuccess()) {
-
 
30544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
30545
        if (lastComparison != 0) {
-
 
30546
          return lastComparison;
-
 
30547
        }
-
 
30548
      }
-
 
30549
      return 0;
-
 
30550
    }
-
 
30551
 
-
 
30552
    public _Fields fieldForId(int fieldId) {
-
 
30553
      return _Fields.findByThriftId(fieldId);
-
 
30554
    }
-
 
30555
 
-
 
30556
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
30557
      org.apache.thrift.protocol.TField field;
-
 
30558
      iprot.readStructBegin();
-
 
30559
      while (true)
-
 
30560
      {
-
 
30561
        field = iprot.readFieldBegin();
-
 
30562
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
30563
          break;
-
 
30564
        }
-
 
30565
        switch (field.id) {
-
 
30566
          case 0: // SUCCESS
-
 
30567
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
30568
              {
-
 
30569
                org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();
-
 
30570
                this.success = new ArrayList<Long>(_list80.size);
-
 
30571
                for (int _i81 = 0; _i81 < _list80.size; ++_i81)
-
 
30572
                {
-
 
30573
                  long _elem82; // required
-
 
30574
                  _elem82 = iprot.readI64();
-
 
30575
                  this.success.add(_elem82);
-
 
30576
                }
-
 
30577
                iprot.readListEnd();
-
 
30578
              }
-
 
30579
            } else { 
-
 
30580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30581
            }
-
 
30582
            break;
-
 
30583
          default:
-
 
30584
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30585
        }
-
 
30586
        iprot.readFieldEnd();
-
 
30587
      }
-
 
30588
      iprot.readStructEnd();
-
 
30589
      validate();
-
 
30590
    }
-
 
30591
 
-
 
30592
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
30593
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30594
 
-
 
30595
      if (this.isSetSuccess()) {
-
 
30596
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
30597
        {
-
 
30598
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
30599
          for (long _iter83 : this.success)
-
 
30600
          {
-
 
30601
            oprot.writeI64(_iter83);
-
 
30602
          }
-
 
30603
          oprot.writeListEnd();
-
 
30604
        }
-
 
30605
        oprot.writeFieldEnd();
-
 
30606
      }
-
 
30607
      oprot.writeFieldStop();
-
 
30608
      oprot.writeStructEnd();
-
 
30609
    }
-
 
30610
 
-
 
30611
    @Override
-
 
30612
    public String toString() {
-
 
30613
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_result(");
-
 
30614
      boolean first = true;
-
 
30615
 
-
 
30616
      sb.append("success:");
-
 
30617
      if (this.success == null) {
-
 
30618
        sb.append("null");
-
 
30619
      } else {
-
 
30620
        sb.append(this.success);
-
 
30621
      }
-
 
30622
      first = false;
-
 
30623
      sb.append(")");
-
 
30624
      return sb.toString();
-
 
30625
    }
-
 
30626
 
-
 
30627
    public void validate() throws org.apache.thrift.TException {
-
 
30628
      // check for required fields
-
 
30629
    }
-
 
30630
 
-
 
30631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
30632
      try {
-
 
30633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
30634
      } catch (org.apache.thrift.TException te) {
-
 
30635
        throw new java.io.IOException(te);
-
 
30636
      }
-
 
30637
    }
-
 
30638
 
-
 
30639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
30640
      try {
-
 
30641
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
30642
      } catch (org.apache.thrift.TException te) {
-
 
30643
        throw new java.io.IOException(te);
-
 
30644
      }
-
 
30645
    }
-
 
30646
 
-
 
30647
  }
-
 
30648
 
-
 
30649
  public static class getItemsInTransferLot_args implements org.apache.thrift.TBase<getItemsInTransferLot_args, getItemsInTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
-
 
30650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_args");
-
 
30651
 
-
 
30652
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
30653
 
-
 
30654
    private long transferLotId; // required
-
 
30655
 
-
 
30656
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30657
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
30658
      TRANSFER_LOT_ID((short)1, "transferLotId");
-
 
30659
 
-
 
30660
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30661
 
-
 
30662
      static {
-
 
30663
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30664
          byName.put(field.getFieldName(), field);
-
 
30665
        }
-
 
30666
      }
-
 
30667
 
-
 
30668
      /**
-
 
30669
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30670
       */
-
 
30671
      public static _Fields findByThriftId(int fieldId) {
-
 
30672
        switch(fieldId) {
-
 
30673
          case 1: // TRANSFER_LOT_ID
-
 
30674
            return TRANSFER_LOT_ID;
-
 
30675
          default:
-
 
30676
            return null;
-
 
30677
        }
-
 
30678
      }
-
 
30679
 
-
 
30680
      /**
-
 
30681
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30682
       * if it is not found.
-
 
30683
       */
-
 
30684
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30685
        _Fields fields = findByThriftId(fieldId);
-
 
30686
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30687
        return fields;
-
 
30688
      }
-
 
30689
 
-
 
30690
      /**
-
 
30691
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30692
       */
-
 
30693
      public static _Fields findByName(String name) {
-
 
30694
        return byName.get(name);
-
 
30695
      }
-
 
30696
 
-
 
30697
      private final short _thriftId;
-
 
30698
      private final String _fieldName;
-
 
30699
 
-
 
30700
      _Fields(short thriftId, String fieldName) {
-
 
30701
        _thriftId = thriftId;
-
 
30702
        _fieldName = fieldName;
-
 
30703
      }
-
 
30704
 
-
 
30705
      public short getThriftFieldId() {
-
 
30706
        return _thriftId;
-
 
30707
      }
-
 
30708
 
-
 
30709
      public String getFieldName() {
-
 
30710
        return _fieldName;
-
 
30711
      }
-
 
30712
    }
-
 
30713
 
-
 
30714
    // isset id assignments
-
 
30715
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
-
 
30716
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
30717
 
-
 
30718
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
30719
    static {
-
 
30720
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
30721
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
30722
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
30723
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
30724
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_args.class, metaDataMap);
-
 
30725
    }
-
 
30726
 
-
 
30727
    public getItemsInTransferLot_args() {
-
 
30728
    }
-
 
30729
 
-
 
30730
    public getItemsInTransferLot_args(
-
 
30731
      long transferLotId)
-
 
30732
    {
-
 
30733
      this();
-
 
30734
      this.transferLotId = transferLotId;
-
 
30735
      setTransferLotIdIsSet(true);
-
 
30736
    }
-
 
30737
 
-
 
30738
    /**
-
 
30739
     * Performs a deep copy on <i>other</i>.
-
 
30740
     */
-
 
30741
    public getItemsInTransferLot_args(getItemsInTransferLot_args other) {
-
 
30742
      __isset_bit_vector.clear();
-
 
30743
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
30744
      this.transferLotId = other.transferLotId;
-
 
30745
    }
-
 
30746
 
-
 
30747
    public getItemsInTransferLot_args deepCopy() {
-
 
30748
      return new getItemsInTransferLot_args(this);
-
 
30749
    }
-
 
30750
 
-
 
30751
    @Override
-
 
30752
    public void clear() {
-
 
30753
      setTransferLotIdIsSet(false);
-
 
30754
      this.transferLotId = 0;
-
 
30755
    }
-
 
30756
 
-
 
30757
    public long getTransferLotId() {
-
 
30758
      return this.transferLotId;
-
 
30759
    }
-
 
30760
 
-
 
30761
    public void setTransferLotId(long transferLotId) {
-
 
30762
      this.transferLotId = transferLotId;
-
 
30763
      setTransferLotIdIsSet(true);
-
 
30764
    }
-
 
30765
 
-
 
30766
    public void unsetTransferLotId() {
-
 
30767
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
-
 
30768
    }
-
 
30769
 
-
 
30770
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
-
 
30771
    public boolean isSetTransferLotId() {
-
 
30772
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
-
 
30773
    }
-
 
30774
 
-
 
30775
    public void setTransferLotIdIsSet(boolean value) {
-
 
30776
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
-
 
30777
    }
-
 
30778
 
-
 
30779
    public void setFieldValue(_Fields field, Object value) {
-
 
30780
      switch (field) {
-
 
30781
      case TRANSFER_LOT_ID:
-
 
30782
        if (value == null) {
-
 
30783
          unsetTransferLotId();
-
 
30784
        } else {
-
 
30785
          setTransferLotId((Long)value);
-
 
30786
        }
-
 
30787
        break;
-
 
30788
 
-
 
30789
      }
-
 
30790
    }
-
 
30791
 
-
 
30792
    public Object getFieldValue(_Fields field) {
-
 
30793
      switch (field) {
-
 
30794
      case TRANSFER_LOT_ID:
-
 
30795
        return Long.valueOf(getTransferLotId());
-
 
30796
 
-
 
30797
      }
-
 
30798
      throw new IllegalStateException();
-
 
30799
    }
-
 
30800
 
-
 
30801
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
30802
    public boolean isSet(_Fields field) {
-
 
30803
      if (field == null) {
-
 
30804
        throw new IllegalArgumentException();
-
 
30805
      }
-
 
30806
 
-
 
30807
      switch (field) {
-
 
30808
      case TRANSFER_LOT_ID:
-
 
30809
        return isSetTransferLotId();
-
 
30810
      }
-
 
30811
      throw new IllegalStateException();
-
 
30812
    }
-
 
30813
 
-
 
30814
    @Override
-
 
30815
    public boolean equals(Object that) {
-
 
30816
      if (that == null)
-
 
30817
        return false;
-
 
30818
      if (that instanceof getItemsInTransferLot_args)
-
 
30819
        return this.equals((getItemsInTransferLot_args)that);
-
 
30820
      return false;
-
 
30821
    }
-
 
30822
 
-
 
30823
    public boolean equals(getItemsInTransferLot_args that) {
-
 
30824
      if (that == null)
-
 
30825
        return false;
-
 
30826
 
-
 
30827
      boolean this_present_transferLotId = true;
-
 
30828
      boolean that_present_transferLotId = true;
-
 
30829
      if (this_present_transferLotId || that_present_transferLotId) {
-
 
30830
        if (!(this_present_transferLotId && that_present_transferLotId))
-
 
30831
          return false;
-
 
30832
        if (this.transferLotId != that.transferLotId)
-
 
30833
          return false;
-
 
30834
      }
-
 
30835
 
-
 
30836
      return true;
-
 
30837
    }
-
 
30838
 
-
 
30839
    @Override
-
 
30840
    public int hashCode() {
-
 
30841
      return 0;
-
 
30842
    }
-
 
30843
 
-
 
30844
    public int compareTo(getItemsInTransferLot_args other) {
-
 
30845
      if (!getClass().equals(other.getClass())) {
-
 
30846
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30847
      }
-
 
30848
 
-
 
30849
      int lastComparison = 0;
-
 
30850
      getItemsInTransferLot_args typedOther = (getItemsInTransferLot_args)other;
-
 
30851
 
-
 
30852
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
-
 
30853
      if (lastComparison != 0) {
-
 
30854
        return lastComparison;
-
 
30855
      }
-
 
30856
      if (isSetTransferLotId()) {
-
 
30857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
-
 
30858
        if (lastComparison != 0) {
-
 
30859
          return lastComparison;
-
 
30860
        }
-
 
30861
      }
-
 
30862
      return 0;
-
 
30863
    }
-
 
30864
 
-
 
30865
    public _Fields fieldForId(int fieldId) {
-
 
30866
      return _Fields.findByThriftId(fieldId);
-
 
30867
    }
-
 
30868
 
-
 
30869
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
30870
      org.apache.thrift.protocol.TField field;
-
 
30871
      iprot.readStructBegin();
-
 
30872
      while (true)
-
 
30873
      {
-
 
30874
        field = iprot.readFieldBegin();
-
 
30875
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
30876
          break;
-
 
30877
        }
-
 
30878
        switch (field.id) {
-
 
30879
          case 1: // TRANSFER_LOT_ID
-
 
30880
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
30881
              this.transferLotId = iprot.readI64();
-
 
30882
              setTransferLotIdIsSet(true);
-
 
30883
            } else { 
-
 
30884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30885
            }
-
 
30886
            break;
-
 
30887
          default:
-
 
30888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30889
        }
-
 
30890
        iprot.readFieldEnd();
-
 
30891
      }
-
 
30892
      iprot.readStructEnd();
-
 
30893
      validate();
-
 
30894
    }
-
 
30895
 
-
 
30896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
30897
      validate();
-
 
30898
 
-
 
30899
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30900
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
-
 
30901
      oprot.writeI64(this.transferLotId);
-
 
30902
      oprot.writeFieldEnd();
-
 
30903
      oprot.writeFieldStop();
-
 
30904
      oprot.writeStructEnd();
-
 
30905
    }
-
 
30906
 
-
 
30907
    @Override
-
 
30908
    public String toString() {
-
 
30909
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_args(");
-
 
30910
      boolean first = true;
-
 
30911
 
-
 
30912
      sb.append("transferLotId:");
-
 
30913
      sb.append(this.transferLotId);
-
 
30914
      first = false;
-
 
30915
      sb.append(")");
-
 
30916
      return sb.toString();
-
 
30917
    }
-
 
30918
 
-
 
30919
    public void validate() throws org.apache.thrift.TException {
-
 
30920
      // check for required fields
-
 
30921
    }
-
 
30922
 
-
 
30923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
30924
      try {
-
 
30925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
30926
      } catch (org.apache.thrift.TException te) {
-
 
30927
        throw new java.io.IOException(te);
-
 
30928
      }
-
 
30929
    }
-
 
30930
 
-
 
30931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
30932
      try {
-
 
30933
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
30934
        __isset_bit_vector = new BitSet(1);
-
 
30935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
30936
      } catch (org.apache.thrift.TException te) {
-
 
30937
        throw new java.io.IOException(te);
-
 
30938
      }
-
 
30939
    }
-
 
30940
 
-
 
30941
  }
-
 
30942
 
-
 
30943
  public static class getItemsInTransferLot_result implements org.apache.thrift.TBase<getItemsInTransferLot_result, getItemsInTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
-
 
30944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_result");
-
 
30945
 
-
 
30946
    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);
-
 
30947
 
-
 
30948
    private Map<Long,Long> success; // required
-
 
30949
 
-
 
30950
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30951
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
30952
      SUCCESS((short)0, "success");
-
 
30953
 
-
 
30954
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30955
 
-
 
30956
      static {
-
 
30957
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30958
          byName.put(field.getFieldName(), field);
-
 
30959
        }
-
 
30960
      }
-
 
30961
 
-
 
30962
      /**
-
 
30963
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30964
       */
-
 
30965
      public static _Fields findByThriftId(int fieldId) {
-
 
30966
        switch(fieldId) {
-
 
30967
          case 0: // SUCCESS
-
 
30968
            return SUCCESS;
-
 
30969
          default:
-
 
30970
            return null;
-
 
30971
        }
-
 
30972
      }
-
 
30973
 
-
 
30974
      /**
-
 
30975
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30976
       * if it is not found.
-
 
30977
       */
-
 
30978
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30979
        _Fields fields = findByThriftId(fieldId);
-
 
30980
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30981
        return fields;
-
 
30982
      }
-
 
30983
 
-
 
30984
      /**
-
 
30985
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30986
       */
-
 
30987
      public static _Fields findByName(String name) {
-
 
30988
        return byName.get(name);
-
 
30989
      }
-
 
30990
 
-
 
30991
      private final short _thriftId;
-
 
30992
      private final String _fieldName;
-
 
30993
 
-
 
30994
      _Fields(short thriftId, String fieldName) {
-
 
30995
        _thriftId = thriftId;
-
 
30996
        _fieldName = fieldName;
-
 
30997
      }
-
 
30998
 
-
 
30999
      public short getThriftFieldId() {
-
 
31000
        return _thriftId;
-
 
31001
      }
-
 
31002
 
-
 
31003
      public String getFieldName() {
-
 
31004
        return _fieldName;
-
 
31005
      }
-
 
31006
    }
-
 
31007
 
-
 
31008
    // isset id assignments
-
 
31009
 
-
 
31010
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
31011
    static {
-
 
31012
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
31013
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31014
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
31015
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
31016
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
31017
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
31018
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_result.class, metaDataMap);
-
 
31019
    }
-
 
31020
 
-
 
31021
    public getItemsInTransferLot_result() {
-
 
31022
    }
-
 
31023
 
-
 
31024
    public getItemsInTransferLot_result(
-
 
31025
      Map<Long,Long> success)
-
 
31026
    {
-
 
31027
      this();
-
 
31028
      this.success = success;
-
 
31029
    }
-
 
31030
 
-
 
31031
    /**
-
 
31032
     * Performs a deep copy on <i>other</i>.
-
 
31033
     */
-
 
31034
    public getItemsInTransferLot_result(getItemsInTransferLot_result other) {
-
 
31035
      if (other.isSetSuccess()) {
-
 
31036
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
-
 
31037
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
-
 
31038
 
-
 
31039
          Long other_element_key = other_element.getKey();
-
 
31040
          Long other_element_value = other_element.getValue();
-
 
31041
 
-
 
31042
          Long __this__success_copy_key = other_element_key;
-
 
31043
 
-
 
31044
          Long __this__success_copy_value = other_element_value;
-
 
31045
 
-
 
31046
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
31047
        }
-
 
31048
        this.success = __this__success;
-
 
31049
      }
-
 
31050
    }
-
 
31051
 
-
 
31052
    public getItemsInTransferLot_result deepCopy() {
-
 
31053
      return new getItemsInTransferLot_result(this);
-
 
31054
    }
-
 
31055
 
-
 
31056
    @Override
-
 
31057
    public void clear() {
-
 
31058
      this.success = null;
-
 
31059
    }
-
 
31060
 
-
 
31061
    public int getSuccessSize() {
-
 
31062
      return (this.success == null) ? 0 : this.success.size();
-
 
31063
    }
-
 
31064
 
-
 
31065
    public void putToSuccess(long key, long val) {
-
 
31066
      if (this.success == null) {
-
 
31067
        this.success = new HashMap<Long,Long>();
-
 
31068
      }
-
 
31069
      this.success.put(key, val);
-
 
31070
    }
-
 
31071
 
-
 
31072
    public Map<Long,Long> getSuccess() {
-
 
31073
      return this.success;
-
 
31074
    }
-
 
31075
 
-
 
31076
    public void setSuccess(Map<Long,Long> success) {
-
 
31077
      this.success = success;
-
 
31078
    }
-
 
31079
 
-
 
31080
    public void unsetSuccess() {
-
 
31081
      this.success = null;
-
 
31082
    }
-
 
31083
 
-
 
31084
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
31085
    public boolean isSetSuccess() {
-
 
31086
      return this.success != null;
-
 
31087
    }
-
 
31088
 
-
 
31089
    public void setSuccessIsSet(boolean value) {
-
 
31090
      if (!value) {
-
 
31091
        this.success = null;
-
 
31092
      }
-
 
31093
    }
-
 
31094
 
-
 
31095
    public void setFieldValue(_Fields field, Object value) {
-
 
31096
      switch (field) {
-
 
31097
      case SUCCESS:
-
 
31098
        if (value == null) {
-
 
31099
          unsetSuccess();
-
 
31100
        } else {
-
 
31101
          setSuccess((Map<Long,Long>)value);
-
 
31102
        }
-
 
31103
        break;
-
 
31104
 
-
 
31105
      }
-
 
31106
    }
-
 
31107
 
-
 
31108
    public Object getFieldValue(_Fields field) {
-
 
31109
      switch (field) {
-
 
31110
      case SUCCESS:
-
 
31111
        return getSuccess();
-
 
31112
 
-
 
31113
      }
-
 
31114
      throw new IllegalStateException();
-
 
31115
    }
-
 
31116
 
-
 
31117
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
31118
    public boolean isSet(_Fields field) {
-
 
31119
      if (field == null) {
-
 
31120
        throw new IllegalArgumentException();
-
 
31121
      }
-
 
31122
 
-
 
31123
      switch (field) {
-
 
31124
      case SUCCESS:
-
 
31125
        return isSetSuccess();
-
 
31126
      }
-
 
31127
      throw new IllegalStateException();
-
 
31128
    }
-
 
31129
 
-
 
31130
    @Override
-
 
31131
    public boolean equals(Object that) {
-
 
31132
      if (that == null)
-
 
31133
        return false;
-
 
31134
      if (that instanceof getItemsInTransferLot_result)
-
 
31135
        return this.equals((getItemsInTransferLot_result)that);
-
 
31136
      return false;
-
 
31137
    }
-
 
31138
 
-
 
31139
    public boolean equals(getItemsInTransferLot_result that) {
-
 
31140
      if (that == null)
-
 
31141
        return false;
-
 
31142
 
-
 
31143
      boolean this_present_success = true && this.isSetSuccess();
-
 
31144
      boolean that_present_success = true && that.isSetSuccess();
-
 
31145
      if (this_present_success || that_present_success) {
-
 
31146
        if (!(this_present_success && that_present_success))
-
 
31147
          return false;
-
 
31148
        if (!this.success.equals(that.success))
-
 
31149
          return false;
-
 
31150
      }
-
 
31151
 
-
 
31152
      return true;
-
 
31153
    }
-
 
31154
 
-
 
31155
    @Override
-
 
31156
    public int hashCode() {
-
 
31157
      return 0;
-
 
31158
    }
-
 
31159
 
-
 
31160
    public int compareTo(getItemsInTransferLot_result other) {
-
 
31161
      if (!getClass().equals(other.getClass())) {
-
 
31162
        return getClass().getName().compareTo(other.getClass().getName());
-
 
31163
      }
-
 
31164
 
-
 
31165
      int lastComparison = 0;
-
 
31166
      getItemsInTransferLot_result typedOther = (getItemsInTransferLot_result)other;
-
 
31167
 
-
 
31168
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
31169
      if (lastComparison != 0) {
-
 
31170
        return lastComparison;
-
 
31171
      }
-
 
31172
      if (isSetSuccess()) {
-
 
31173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
31174
        if (lastComparison != 0) {
-
 
31175
          return lastComparison;
-
 
31176
        }
-
 
31177
      }
-
 
31178
      return 0;
-
 
31179
    }
-
 
31180
 
-
 
31181
    public _Fields fieldForId(int fieldId) {
-
 
31182
      return _Fields.findByThriftId(fieldId);
-
 
31183
    }
-
 
31184
 
-
 
31185
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
31186
      org.apache.thrift.protocol.TField field;
-
 
31187
      iprot.readStructBegin();
-
 
31188
      while (true)
-
 
31189
      {
-
 
31190
        field = iprot.readFieldBegin();
-
 
31191
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
31192
          break;
-
 
31193
        }
-
 
31194
        switch (field.id) {
-
 
31195
          case 0: // SUCCESS
-
 
31196
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
31197
              {
-
 
31198
                org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin();
-
 
31199
                this.success = new HashMap<Long,Long>(2*_map84.size);
-
 
31200
                for (int _i85 = 0; _i85 < _map84.size; ++_i85)
-
 
31201
                {
-
 
31202
                  long _key86; // required
-
 
31203
                  long _val87; // required
-
 
31204
                  _key86 = iprot.readI64();
-
 
31205
                  _val87 = iprot.readI64();
-
 
31206
                  this.success.put(_key86, _val87);
-
 
31207
                }
-
 
31208
                iprot.readMapEnd();
-
 
31209
              }
-
 
31210
            } else { 
-
 
31211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31212
            }
-
 
31213
            break;
-
 
31214
          default:
-
 
31215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31216
        }
-
 
31217
        iprot.readFieldEnd();
-
 
31218
      }
-
 
31219
      iprot.readStructEnd();
-
 
31220
      validate();
-
 
31221
    }
-
 
31222
 
-
 
31223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
31224
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31225
 
-
 
31226
      if (this.isSetSuccess()) {
-
 
31227
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
31228
        {
-
 
31229
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
31230
          for (Map.Entry<Long, Long> _iter88 : this.success.entrySet())
-
 
31231
          {
-
 
31232
            oprot.writeI64(_iter88.getKey());
-
 
31233
            oprot.writeI64(_iter88.getValue());
-
 
31234
          }
-
 
31235
          oprot.writeMapEnd();
-
 
31236
        }
-
 
31237
        oprot.writeFieldEnd();
-
 
31238
      }
-
 
31239
      oprot.writeFieldStop();
-
 
31240
      oprot.writeStructEnd();
-
 
31241
    }
-
 
31242
 
-
 
31243
    @Override
-
 
31244
    public String toString() {
-
 
31245
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_result(");
-
 
31246
      boolean first = true;
-
 
31247
 
-
 
31248
      sb.append("success:");
-
 
31249
      if (this.success == null) {
-
 
31250
        sb.append("null");
-
 
31251
      } else {
-
 
31252
        sb.append(this.success);
-
 
31253
      }
-
 
31254
      first = false;
-
 
31255
      sb.append(")");
-
 
31256
      return sb.toString();
-
 
31257
    }
-
 
31258
 
-
 
31259
    public void validate() throws org.apache.thrift.TException {
-
 
31260
      // check for required fields
-
 
31261
    }
-
 
31262
 
-
 
31263
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
31264
      try {
-
 
31265
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
31266
      } catch (org.apache.thrift.TException te) {
-
 
31267
        throw new java.io.IOException(te);
-
 
31268
      }
-
 
31269
    }
-
 
31270
 
-
 
31271
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
31272
      try {
-
 
31273
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
31274
      } catch (org.apache.thrift.TException te) {
-
 
31275
        throw new java.io.IOException(te);
-
 
31276
      }
-
 
31277
    }
-
 
31278
 
-
 
31279
  }
-
 
31280
 
-
 
31281
  public static class markItemsAsReceivedForTransferLot_args implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_args, markItemsAsReceivedForTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
-
 
31282
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_args");
-
 
31283
 
-
 
31284
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
31285
 
-
 
31286
    private long id; // required
-
 
31287
 
-
 
31288
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
31289
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
31290
      ID((short)1, "id");
-
 
31291
 
-
 
31292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
31293
 
-
 
31294
      static {
-
 
31295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
31296
          byName.put(field.getFieldName(), field);
-
 
31297
        }
-
 
31298
      }
-
 
31299
 
-
 
31300
      /**
-
 
31301
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
31302
       */
-
 
31303
      public static _Fields findByThriftId(int fieldId) {
-
 
31304
        switch(fieldId) {
-
 
31305
          case 1: // ID
-
 
31306
            return ID;
-
 
31307
          default:
-
 
31308
            return null;
-
 
31309
        }
-
 
31310
      }
-
 
31311
 
-
 
31312
      /**
-
 
31313
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
31314
       * if it is not found.
-
 
31315
       */
-
 
31316
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
31317
        _Fields fields = findByThriftId(fieldId);
-
 
31318
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
31319
        return fields;
-
 
31320
      }
-
 
31321
 
-
 
31322
      /**
-
 
31323
       * Find the _Fields constant that matches name, or null if its not found.
-
 
31324
       */
-
 
31325
      public static _Fields findByName(String name) {
-
 
31326
        return byName.get(name);
-
 
31327
      }
-
 
31328
 
-
 
31329
      private final short _thriftId;
-
 
31330
      private final String _fieldName;
-
 
31331
 
-
 
31332
      _Fields(short thriftId, String fieldName) {
-
 
31333
        _thriftId = thriftId;
-
 
31334
        _fieldName = fieldName;
-
 
31335
      }
-
 
31336
 
-
 
31337
      public short getThriftFieldId() {
-
 
31338
        return _thriftId;
-
 
31339
      }
-
 
31340
 
-
 
31341
      public String getFieldName() {
-
 
31342
        return _fieldName;
-
 
31343
      }
-
 
31344
    }
-
 
31345
 
-
 
31346
    // isset id assignments
-
 
31347
    private static final int __ID_ISSET_ID = 0;
-
 
31348
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
31349
 
-
 
31350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
31351
    static {
-
 
31352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
31353
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
31355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
31356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_args.class, metaDataMap);
-
 
31357
    }
-
 
31358
 
-
 
31359
    public markItemsAsReceivedForTransferLot_args() {
-
 
31360
    }
-
 
31361
 
-
 
31362
    public markItemsAsReceivedForTransferLot_args(
-
 
31363
      long id)
-
 
31364
    {
-
 
31365
      this();
-
 
31366
      this.id = id;
-
 
31367
      setIdIsSet(true);
-
 
31368
    }
-
 
31369
 
-
 
31370
    /**
-
 
31371
     * Performs a deep copy on <i>other</i>.
-
 
31372
     */
-
 
31373
    public markItemsAsReceivedForTransferLot_args(markItemsAsReceivedForTransferLot_args other) {
-
 
31374
      __isset_bit_vector.clear();
-
 
31375
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
31376
      this.id = other.id;
-
 
31377
    }
-
 
31378
 
-
 
31379
    public markItemsAsReceivedForTransferLot_args deepCopy() {
-
 
31380
      return new markItemsAsReceivedForTransferLot_args(this);
-
 
31381
    }
-
 
31382
 
-
 
31383
    @Override
-
 
31384
    public void clear() {
-
 
31385
      setIdIsSet(false);
-
 
31386
      this.id = 0;
-
 
31387
    }
-
 
31388
 
-
 
31389
    public long getId() {
-
 
31390
      return this.id;
-
 
31391
    }
-
 
31392
 
-
 
31393
    public void setId(long id) {
-
 
31394
      this.id = id;
-
 
31395
      setIdIsSet(true);
-
 
31396
    }
-
 
31397
 
-
 
31398
    public void unsetId() {
-
 
31399
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
31400
    }
-
 
31401
 
-
 
31402
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
31403
    public boolean isSetId() {
-
 
31404
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
31405
    }
-
 
31406
 
-
 
31407
    public void setIdIsSet(boolean value) {
-
 
31408
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
31409
    }
-
 
31410
 
-
 
31411
    public void setFieldValue(_Fields field, Object value) {
-
 
31412
      switch (field) {
-
 
31413
      case ID:
-
 
31414
        if (value == null) {
-
 
31415
          unsetId();
-
 
31416
        } else {
-
 
31417
          setId((Long)value);
-
 
31418
        }
-
 
31419
        break;
-
 
31420
 
-
 
31421
      }
-
 
31422
    }
-
 
31423
 
-
 
31424
    public Object getFieldValue(_Fields field) {
-
 
31425
      switch (field) {
-
 
31426
      case ID:
-
 
31427
        return Long.valueOf(getId());
-
 
31428
 
-
 
31429
      }
-
 
31430
      throw new IllegalStateException();
-
 
31431
    }
-
 
31432
 
-
 
31433
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
31434
    public boolean isSet(_Fields field) {
-
 
31435
      if (field == null) {
-
 
31436
        throw new IllegalArgumentException();
-
 
31437
      }
-
 
31438
 
-
 
31439
      switch (field) {
-
 
31440
      case ID:
-
 
31441
        return isSetId();
-
 
31442
      }
-
 
31443
      throw new IllegalStateException();
-
 
31444
    }
-
 
31445
 
-
 
31446
    @Override
-
 
31447
    public boolean equals(Object that) {
-
 
31448
      if (that == null)
-
 
31449
        return false;
-
 
31450
      if (that instanceof markItemsAsReceivedForTransferLot_args)
-
 
31451
        return this.equals((markItemsAsReceivedForTransferLot_args)that);
-
 
31452
      return false;
-
 
31453
    }
-
 
31454
 
-
 
31455
    public boolean equals(markItemsAsReceivedForTransferLot_args that) {
-
 
31456
      if (that == null)
-
 
31457
        return false;
-
 
31458
 
-
 
31459
      boolean this_present_id = true;
-
 
31460
      boolean that_present_id = true;
-
 
31461
      if (this_present_id || that_present_id) {
-
 
31462
        if (!(this_present_id && that_present_id))
-
 
31463
          return false;
-
 
31464
        if (this.id != that.id)
-
 
31465
          return false;
-
 
31466
      }
-
 
31467
 
-
 
31468
      return true;
-
 
31469
    }
-
 
31470
 
-
 
31471
    @Override
-
 
31472
    public int hashCode() {
-
 
31473
      return 0;
-
 
31474
    }
-
 
31475
 
-
 
31476
    public int compareTo(markItemsAsReceivedForTransferLot_args other) {
-
 
31477
      if (!getClass().equals(other.getClass())) {
-
 
31478
        return getClass().getName().compareTo(other.getClass().getName());
-
 
31479
      }
-
 
31480
 
-
 
31481
      int lastComparison = 0;
-
 
31482
      markItemsAsReceivedForTransferLot_args typedOther = (markItemsAsReceivedForTransferLot_args)other;
-
 
31483
 
-
 
31484
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
31485
      if (lastComparison != 0) {
-
 
31486
        return lastComparison;
-
 
31487
      }
-
 
31488
      if (isSetId()) {
-
 
31489
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
31490
        if (lastComparison != 0) {
-
 
31491
          return lastComparison;
-
 
31492
        }
-
 
31493
      }
-
 
31494
      return 0;
-
 
31495
    }
-
 
31496
 
-
 
31497
    public _Fields fieldForId(int fieldId) {
-
 
31498
      return _Fields.findByThriftId(fieldId);
-
 
31499
    }
-
 
31500
 
-
 
31501
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
31502
      org.apache.thrift.protocol.TField field;
-
 
31503
      iprot.readStructBegin();
-
 
31504
      while (true)
-
 
31505
      {
-
 
31506
        field = iprot.readFieldBegin();
-
 
31507
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
31508
          break;
-
 
31509
        }
-
 
31510
        switch (field.id) {
-
 
31511
          case 1: // ID
-
 
31512
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
31513
              this.id = iprot.readI64();
-
 
31514
              setIdIsSet(true);
-
 
31515
            } else { 
-
 
31516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31517
            }
-
 
31518
            break;
-
 
31519
          default:
-
 
31520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31521
        }
-
 
31522
        iprot.readFieldEnd();
-
 
31523
      }
-
 
31524
      iprot.readStructEnd();
-
 
31525
      validate();
-
 
31526
    }
-
 
31527
 
-
 
31528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
31529
      validate();
-
 
31530
 
-
 
31531
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31532
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
31533
      oprot.writeI64(this.id);
-
 
31534
      oprot.writeFieldEnd();
-
 
31535
      oprot.writeFieldStop();
-
 
31536
      oprot.writeStructEnd();
-
 
31537
    }
-
 
31538
 
-
 
31539
    @Override
-
 
31540
    public String toString() {
-
 
31541
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_args(");
-
 
31542
      boolean first = true;
-
 
31543
 
-
 
31544
      sb.append("id:");
-
 
31545
      sb.append(this.id);
-
 
31546
      first = false;
-
 
31547
      sb.append(")");
-
 
31548
      return sb.toString();
-
 
31549
    }
-
 
31550
 
-
 
31551
    public void validate() throws org.apache.thrift.TException {
-
 
31552
      // check for required fields
-
 
31553
    }
-
 
31554
 
-
 
31555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
31556
      try {
-
 
31557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
31558
      } catch (org.apache.thrift.TException te) {
-
 
31559
        throw new java.io.IOException(te);
-
 
31560
      }
-
 
31561
    }
-
 
31562
 
-
 
31563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
31564
      try {
-
 
31565
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
31566
        __isset_bit_vector = new BitSet(1);
-
 
31567
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
31568
      } catch (org.apache.thrift.TException te) {
-
 
31569
        throw new java.io.IOException(te);
-
 
31570
      }
-
 
31571
    }
-
 
31572
 
-
 
31573
  }
-
 
31574
 
-
 
31575
  public static class markItemsAsReceivedForTransferLot_result implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_result, markItemsAsReceivedForTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
-
 
31576
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_result");
-
 
31577
 
-
 
31578
    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);
-
 
31579
 
-
 
31580
    private WarehouseServiceException wex; // required
-
 
31581
 
-
 
31582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
31583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
31584
      WEX((short)1, "wex");
-
 
31585
 
-
 
31586
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
31587
 
-
 
31588
      static {
-
 
31589
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
31590
          byName.put(field.getFieldName(), field);
-
 
31591
        }
-
 
31592
      }
-
 
31593
 
-
 
31594
      /**
-
 
31595
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
31596
       */
-
 
31597
      public static _Fields findByThriftId(int fieldId) {
-
 
31598
        switch(fieldId) {
-
 
31599
          case 1: // WEX
-
 
31600
            return WEX;
-
 
31601
          default:
-
 
31602
            return null;
-
 
31603
        }
-
 
31604
      }
-
 
31605
 
-
 
31606
      /**
-
 
31607
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
31608
       * if it is not found.
-
 
31609
       */
-
 
31610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
31611
        _Fields fields = findByThriftId(fieldId);
-
 
31612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
31613
        return fields;
-
 
31614
      }
-
 
31615
 
-
 
31616
      /**
-
 
31617
       * Find the _Fields constant that matches name, or null if its not found.
-
 
31618
       */
-
 
31619
      public static _Fields findByName(String name) {
-
 
31620
        return byName.get(name);
-
 
31621
      }
-
 
31622
 
-
 
31623
      private final short _thriftId;
-
 
31624
      private final String _fieldName;
-
 
31625
 
-
 
31626
      _Fields(short thriftId, String fieldName) {
-
 
31627
        _thriftId = thriftId;
-
 
31628
        _fieldName = fieldName;
-
 
31629
      }
-
 
31630
 
-
 
31631
      public short getThriftFieldId() {
-
 
31632
        return _thriftId;
-
 
31633
      }
-
 
31634
 
-
 
31635
      public String getFieldName() {
-
 
31636
        return _fieldName;
-
 
31637
      }
-
 
31638
    }
-
 
31639
 
-
 
31640
    // isset id assignments
-
 
31641
 
-
 
31642
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
31643
    static {
-
 
31644
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
31645
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31646
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
31647
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
31648
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_result.class, metaDataMap);
-
 
31649
    }
-
 
31650
 
-
 
31651
    public markItemsAsReceivedForTransferLot_result() {
-
 
31652
    }
-
 
31653
 
-
 
31654
    public markItemsAsReceivedForTransferLot_result(
-
 
31655
      WarehouseServiceException wex)
-
 
31656
    {
-
 
31657
      this();
-
 
31658
      this.wex = wex;
-
 
31659
    }
-
 
31660
 
-
 
31661
    /**
-
 
31662
     * Performs a deep copy on <i>other</i>.
-
 
31663
     */
-
 
31664
    public markItemsAsReceivedForTransferLot_result(markItemsAsReceivedForTransferLot_result other) {
-
 
31665
      if (other.isSetWex()) {
-
 
31666
        this.wex = new WarehouseServiceException(other.wex);
-
 
31667
      }
-
 
31668
    }
-
 
31669
 
-
 
31670
    public markItemsAsReceivedForTransferLot_result deepCopy() {
-
 
31671
      return new markItemsAsReceivedForTransferLot_result(this);
-
 
31672
    }
-
 
31673
 
-
 
31674
    @Override
-
 
31675
    public void clear() {
-
 
31676
      this.wex = null;
-
 
31677
    }
-
 
31678
 
-
 
31679
    public WarehouseServiceException getWex() {
-
 
31680
      return this.wex;
-
 
31681
    }
-
 
31682
 
-
 
31683
    public void setWex(WarehouseServiceException wex) {
-
 
31684
      this.wex = wex;
-
 
31685
    }
-
 
31686
 
-
 
31687
    public void unsetWex() {
-
 
31688
      this.wex = null;
-
 
31689
    }
-
 
31690
 
-
 
31691
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
31692
    public boolean isSetWex() {
-
 
31693
      return this.wex != null;
-
 
31694
    }
-
 
31695
 
-
 
31696
    public void setWexIsSet(boolean value) {
-
 
31697
      if (!value) {
-
 
31698
        this.wex = null;
-
 
31699
      }
-
 
31700
    }
-
 
31701
 
-
 
31702
    public void setFieldValue(_Fields field, Object value) {
-
 
31703
      switch (field) {
-
 
31704
      case WEX:
-
 
31705
        if (value == null) {
-
 
31706
          unsetWex();
-
 
31707
        } else {
-
 
31708
          setWex((WarehouseServiceException)value);
-
 
31709
        }
-
 
31710
        break;
-
 
31711
 
-
 
31712
      }
-
 
31713
    }
-
 
31714
 
-
 
31715
    public Object getFieldValue(_Fields field) {
-
 
31716
      switch (field) {
-
 
31717
      case WEX:
-
 
31718
        return getWex();
-
 
31719
 
-
 
31720
      }
-
 
31721
      throw new IllegalStateException();
-
 
31722
    }
-
 
31723
 
-
 
31724
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
31725
    public boolean isSet(_Fields field) {
-
 
31726
      if (field == null) {
-
 
31727
        throw new IllegalArgumentException();
-
 
31728
      }
-
 
31729
 
-
 
31730
      switch (field) {
-
 
31731
      case WEX:
-
 
31732
        return isSetWex();
-
 
31733
      }
-
 
31734
      throw new IllegalStateException();
-
 
31735
    }
-
 
31736
 
-
 
31737
    @Override
-
 
31738
    public boolean equals(Object that) {
-
 
31739
      if (that == null)
-
 
31740
        return false;
-
 
31741
      if (that instanceof markItemsAsReceivedForTransferLot_result)
-
 
31742
        return this.equals((markItemsAsReceivedForTransferLot_result)that);
-
 
31743
      return false;
-
 
31744
    }
-
 
31745
 
-
 
31746
    public boolean equals(markItemsAsReceivedForTransferLot_result that) {
-
 
31747
      if (that == null)
-
 
31748
        return false;
-
 
31749
 
-
 
31750
      boolean this_present_wex = true && this.isSetWex();
-
 
31751
      boolean that_present_wex = true && that.isSetWex();
-
 
31752
      if (this_present_wex || that_present_wex) {
-
 
31753
        if (!(this_present_wex && that_present_wex))
-
 
31754
          return false;
-
 
31755
        if (!this.wex.equals(that.wex))
-
 
31756
          return false;
-
 
31757
      }
-
 
31758
 
-
 
31759
      return true;
-
 
31760
    }
-
 
31761
 
-
 
31762
    @Override
-
 
31763
    public int hashCode() {
-
 
31764
      return 0;
-
 
31765
    }
-
 
31766
 
-
 
31767
    public int compareTo(markItemsAsReceivedForTransferLot_result other) {
-
 
31768
      if (!getClass().equals(other.getClass())) {
-
 
31769
        return getClass().getName().compareTo(other.getClass().getName());
-
 
31770
      }
-
 
31771
 
-
 
31772
      int lastComparison = 0;
-
 
31773
      markItemsAsReceivedForTransferLot_result typedOther = (markItemsAsReceivedForTransferLot_result)other;
-
 
31774
 
-
 
31775
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
31776
      if (lastComparison != 0) {
-
 
31777
        return lastComparison;
-
 
31778
      }
-
 
31779
      if (isSetWex()) {
-
 
31780
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
31781
        if (lastComparison != 0) {
-
 
31782
          return lastComparison;
-
 
31783
        }
-
 
31784
      }
-
 
31785
      return 0;
-
 
31786
    }
-
 
31787
 
-
 
31788
    public _Fields fieldForId(int fieldId) {
-
 
31789
      return _Fields.findByThriftId(fieldId);
-
 
31790
    }
-
 
31791
 
-
 
31792
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
31793
      org.apache.thrift.protocol.TField field;
-
 
31794
      iprot.readStructBegin();
-
 
31795
      while (true)
-
 
31796
      {
-
 
31797
        field = iprot.readFieldBegin();
-
 
31798
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
31799
          break;
-
 
31800
        }
-
 
31801
        switch (field.id) {
-
 
31802
          case 1: // WEX
-
 
31803
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
31804
              this.wex = new WarehouseServiceException();
-
 
31805
              this.wex.read(iprot);
-
 
31806
            } else { 
-
 
31807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31808
            }
-
 
31809
            break;
-
 
31810
          default:
-
 
31811
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31812
        }
-
 
31813
        iprot.readFieldEnd();
-
 
31814
      }
-
 
31815
      iprot.readStructEnd();
-
 
31816
      validate();
-
 
31817
    }
-
 
31818
 
-
 
31819
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
31820
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31821
 
-
 
31822
      if (this.isSetWex()) {
-
 
31823
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
31824
        this.wex.write(oprot);
-
 
31825
        oprot.writeFieldEnd();
-
 
31826
      }
-
 
31827
      oprot.writeFieldStop();
-
 
31828
      oprot.writeStructEnd();
-
 
31829
    }
-
 
31830
 
-
 
31831
    @Override
-
 
31832
    public String toString() {
-
 
31833
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_result(");
-
 
31834
      boolean first = true;
-
 
31835
 
-
 
31836
      sb.append("wex:");
-
 
31837
      if (this.wex == null) {
-
 
31838
        sb.append("null");
-
 
31839
      } else {
-
 
31840
        sb.append(this.wex);
-
 
31841
      }
-
 
31842
      first = false;
-
 
31843
      sb.append(")");
-
 
31844
      return sb.toString();
-
 
31845
    }
-
 
31846
 
-
 
31847
    public void validate() throws org.apache.thrift.TException {
-
 
31848
      // check for required fields
-
 
31849
    }
-
 
31850
 
-
 
31851
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
31852
      try {
-
 
31853
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
31854
      } catch (org.apache.thrift.TException te) {
-
 
31855
        throw new java.io.IOException(te);
-
 
31856
      }
-
 
31857
    }
-
 
31858
 
-
 
31859
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
31860
      try {
-
 
31861
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
31862
      } catch (org.apache.thrift.TException te) {
-
 
31863
        throw new java.io.IOException(te);
-
 
31864
      }
-
 
31865
    }
-
 
31866
 
-
 
31867
  }
-
 
31868
 
-
 
31869
  public static class updateTransferLotAfterItemReceive_args implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_args, updateTransferLotAfterItemReceive_args._Fields>, java.io.Serializable, Cloneable   {
-
 
31870
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_args");
-
 
31871
 
-
 
31872
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
31873
 
-
 
31874
    private long id; // required
-
 
31875
 
-
 
31876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
31877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
31878
      ID((short)1, "id");
-
 
31879
 
-
 
31880
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
31881
 
-
 
31882
      static {
-
 
31883
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
31884
          byName.put(field.getFieldName(), field);
-
 
31885
        }
-
 
31886
      }
-
 
31887
 
-
 
31888
      /**
-
 
31889
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
31890
       */
-
 
31891
      public static _Fields findByThriftId(int fieldId) {
-
 
31892
        switch(fieldId) {
-
 
31893
          case 1: // ID
-
 
31894
            return ID;
-
 
31895
          default:
-
 
31896
            return null;
-
 
31897
        }
-
 
31898
      }
-
 
31899
 
-
 
31900
      /**
-
 
31901
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
31902
       * if it is not found.
-
 
31903
       */
-
 
31904
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
31905
        _Fields fields = findByThriftId(fieldId);
-
 
31906
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
31907
        return fields;
-
 
31908
      }
-
 
31909
 
-
 
31910
      /**
-
 
31911
       * Find the _Fields constant that matches name, or null if its not found.
-
 
31912
       */
-
 
31913
      public static _Fields findByName(String name) {
-
 
31914
        return byName.get(name);
-
 
31915
      }
-
 
31916
 
-
 
31917
      private final short _thriftId;
-
 
31918
      private final String _fieldName;
-
 
31919
 
-
 
31920
      _Fields(short thriftId, String fieldName) {
-
 
31921
        _thriftId = thriftId;
-
 
31922
        _fieldName = fieldName;
-
 
31923
      }
-
 
31924
 
-
 
31925
      public short getThriftFieldId() {
-
 
31926
        return _thriftId;
-
 
31927
      }
-
 
31928
 
-
 
31929
      public String getFieldName() {
-
 
31930
        return _fieldName;
-
 
31931
      }
-
 
31932
    }
-
 
31933
 
-
 
31934
    // isset id assignments
-
 
31935
    private static final int __ID_ISSET_ID = 0;
-
 
31936
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
31937
 
-
 
31938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
31939
    static {
-
 
31940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
31941
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31942
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
31943
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
31944
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_args.class, metaDataMap);
-
 
31945
    }
-
 
31946
 
-
 
31947
    public updateTransferLotAfterItemReceive_args() {
-
 
31948
    }
-
 
31949
 
-
 
31950
    public updateTransferLotAfterItemReceive_args(
-
 
31951
      long id)
-
 
31952
    {
-
 
31953
      this();
-
 
31954
      this.id = id;
-
 
31955
      setIdIsSet(true);
-
 
31956
    }
-
 
31957
 
-
 
31958
    /**
-
 
31959
     * Performs a deep copy on <i>other</i>.
-
 
31960
     */
-
 
31961
    public updateTransferLotAfterItemReceive_args(updateTransferLotAfterItemReceive_args other) {
-
 
31962
      __isset_bit_vector.clear();
-
 
31963
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
31964
      this.id = other.id;
-
 
31965
    }
-
 
31966
 
-
 
31967
    public updateTransferLotAfterItemReceive_args deepCopy() {
-
 
31968
      return new updateTransferLotAfterItemReceive_args(this);
-
 
31969
    }
-
 
31970
 
-
 
31971
    @Override
-
 
31972
    public void clear() {
-
 
31973
      setIdIsSet(false);
-
 
31974
      this.id = 0;
-
 
31975
    }
-
 
31976
 
-
 
31977
    public long getId() {
-
 
31978
      return this.id;
-
 
31979
    }
-
 
31980
 
-
 
31981
    public void setId(long id) {
-
 
31982
      this.id = id;
-
 
31983
      setIdIsSet(true);
-
 
31984
    }
-
 
31985
 
-
 
31986
    public void unsetId() {
-
 
31987
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
31988
    }
-
 
31989
 
-
 
31990
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
31991
    public boolean isSetId() {
-
 
31992
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
31993
    }
-
 
31994
 
-
 
31995
    public void setIdIsSet(boolean value) {
-
 
31996
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
31997
    }
-
 
31998
 
-
 
31999
    public void setFieldValue(_Fields field, Object value) {
-
 
32000
      switch (field) {
-
 
32001
      case ID:
-
 
32002
        if (value == null) {
-
 
32003
          unsetId();
-
 
32004
        } else {
-
 
32005
          setId((Long)value);
-
 
32006
        }
-
 
32007
        break;
-
 
32008
 
-
 
32009
      }
-
 
32010
    }
-
 
32011
 
-
 
32012
    public Object getFieldValue(_Fields field) {
-
 
32013
      switch (field) {
-
 
32014
      case ID:
-
 
32015
        return Long.valueOf(getId());
-
 
32016
 
-
 
32017
      }
-
 
32018
      throw new IllegalStateException();
-
 
32019
    }
-
 
32020
 
-
 
32021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
32022
    public boolean isSet(_Fields field) {
-
 
32023
      if (field == null) {
-
 
32024
        throw new IllegalArgumentException();
-
 
32025
      }
-
 
32026
 
-
 
32027
      switch (field) {
-
 
32028
      case ID:
-
 
32029
        return isSetId();
-
 
32030
      }
-
 
32031
      throw new IllegalStateException();
-
 
32032
    }
-
 
32033
 
-
 
32034
    @Override
-
 
32035
    public boolean equals(Object that) {
-
 
32036
      if (that == null)
-
 
32037
        return false;
-
 
32038
      if (that instanceof updateTransferLotAfterItemReceive_args)
-
 
32039
        return this.equals((updateTransferLotAfterItemReceive_args)that);
-
 
32040
      return false;
-
 
32041
    }
-
 
32042
 
-
 
32043
    public boolean equals(updateTransferLotAfterItemReceive_args that) {
-
 
32044
      if (that == null)
-
 
32045
        return false;
-
 
32046
 
-
 
32047
      boolean this_present_id = true;
-
 
32048
      boolean that_present_id = true;
-
 
32049
      if (this_present_id || that_present_id) {
-
 
32050
        if (!(this_present_id && that_present_id))
-
 
32051
          return false;
-
 
32052
        if (this.id != that.id)
-
 
32053
          return false;
-
 
32054
      }
-
 
32055
 
-
 
32056
      return true;
-
 
32057
    }
-
 
32058
 
-
 
32059
    @Override
-
 
32060
    public int hashCode() {
-
 
32061
      return 0;
-
 
32062
    }
-
 
32063
 
-
 
32064
    public int compareTo(updateTransferLotAfterItemReceive_args other) {
-
 
32065
      if (!getClass().equals(other.getClass())) {
-
 
32066
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32067
      }
-
 
32068
 
-
 
32069
      int lastComparison = 0;
-
 
32070
      updateTransferLotAfterItemReceive_args typedOther = (updateTransferLotAfterItemReceive_args)other;
-
 
32071
 
-
 
32072
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
32073
      if (lastComparison != 0) {
-
 
32074
        return lastComparison;
-
 
32075
      }
-
 
32076
      if (isSetId()) {
-
 
32077
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
32078
        if (lastComparison != 0) {
-
 
32079
          return lastComparison;
-
 
32080
        }
-
 
32081
      }
-
 
32082
      return 0;
-
 
32083
    }
-
 
32084
 
-
 
32085
    public _Fields fieldForId(int fieldId) {
-
 
32086
      return _Fields.findByThriftId(fieldId);
-
 
32087
    }
-
 
32088
 
-
 
32089
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
32090
      org.apache.thrift.protocol.TField field;
-
 
32091
      iprot.readStructBegin();
-
 
32092
      while (true)
-
 
32093
      {
-
 
32094
        field = iprot.readFieldBegin();
-
 
32095
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
32096
          break;
-
 
32097
        }
-
 
32098
        switch (field.id) {
-
 
32099
          case 1: // ID
-
 
32100
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
32101
              this.id = iprot.readI64();
-
 
32102
              setIdIsSet(true);
-
 
32103
            } else { 
-
 
32104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32105
            }
-
 
32106
            break;
-
 
32107
          default:
-
 
32108
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32109
        }
-
 
32110
        iprot.readFieldEnd();
-
 
32111
      }
-
 
32112
      iprot.readStructEnd();
-
 
32113
      validate();
-
 
32114
    }
-
 
32115
 
-
 
32116
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
32117
      validate();
-
 
32118
 
-
 
32119
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32120
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
32121
      oprot.writeI64(this.id);
-
 
32122
      oprot.writeFieldEnd();
-
 
32123
      oprot.writeFieldStop();
-
 
32124
      oprot.writeStructEnd();
-
 
32125
    }
-
 
32126
 
-
 
32127
    @Override
-
 
32128
    public String toString() {
-
 
32129
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_args(");
-
 
32130
      boolean first = true;
-
 
32131
 
-
 
32132
      sb.append("id:");
-
 
32133
      sb.append(this.id);
-
 
32134
      first = false;
-
 
32135
      sb.append(")");
-
 
32136
      return sb.toString();
-
 
32137
    }
-
 
32138
 
-
 
32139
    public void validate() throws org.apache.thrift.TException {
-
 
32140
      // check for required fields
-
 
32141
    }
-
 
32142
 
-
 
32143
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
32144
      try {
-
 
32145
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
32146
      } catch (org.apache.thrift.TException te) {
-
 
32147
        throw new java.io.IOException(te);
-
 
32148
      }
-
 
32149
    }
-
 
32150
 
-
 
32151
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
32152
      try {
-
 
32153
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
32154
        __isset_bit_vector = new BitSet(1);
-
 
32155
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
32156
      } catch (org.apache.thrift.TException te) {
-
 
32157
        throw new java.io.IOException(te);
-
 
32158
      }
-
 
32159
    }
-
 
32160
 
-
 
32161
  }
-
 
32162
 
-
 
32163
  public static class updateTransferLotAfterItemReceive_result implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_result, updateTransferLotAfterItemReceive_result._Fields>, java.io.Serializable, Cloneable   {
-
 
32164
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_result");
-
 
32165
 
-
 
32166
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
-
 
32167
    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);
-
 
32168
 
-
 
32169
    private TransferLotStatus success; // required
-
 
32170
    private WarehouseServiceException wex; // required
-
 
32171
 
-
 
32172
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32173
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
32174
      /**
-
 
32175
       * 
-
 
32176
       * @see TransferLotStatus
-
 
32177
       */
-
 
32178
      SUCCESS((short)0, "success"),
-
 
32179
      WEX((short)1, "wex");
-
 
32180
 
-
 
32181
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32182
 
-
 
32183
      static {
-
 
32184
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32185
          byName.put(field.getFieldName(), field);
-
 
32186
        }
-
 
32187
      }
-
 
32188
 
-
 
32189
      /**
-
 
32190
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32191
       */
-
 
32192
      public static _Fields findByThriftId(int fieldId) {
-
 
32193
        switch(fieldId) {
-
 
32194
          case 0: // SUCCESS
-
 
32195
            return SUCCESS;
-
 
32196
          case 1: // WEX
-
 
32197
            return WEX;
-
 
32198
          default:
-
 
32199
            return null;
-
 
32200
        }
-
 
32201
      }
-
 
32202
 
-
 
32203
      /**
-
 
32204
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32205
       * if it is not found.
-
 
32206
       */
-
 
32207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32208
        _Fields fields = findByThriftId(fieldId);
-
 
32209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32210
        return fields;
-
 
32211
      }
-
 
32212
 
-
 
32213
      /**
-
 
32214
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32215
       */
-
 
32216
      public static _Fields findByName(String name) {
-
 
32217
        return byName.get(name);
-
 
32218
      }
-
 
32219
 
-
 
32220
      private final short _thriftId;
-
 
32221
      private final String _fieldName;
-
 
32222
 
-
 
32223
      _Fields(short thriftId, String fieldName) {
-
 
32224
        _thriftId = thriftId;
-
 
32225
        _fieldName = fieldName;
-
 
32226
      }
-
 
32227
 
-
 
32228
      public short getThriftFieldId() {
-
 
32229
        return _thriftId;
-
 
32230
      }
-
 
32231
 
-
 
32232
      public String getFieldName() {
-
 
32233
        return _fieldName;
-
 
32234
      }
-
 
32235
    }
-
 
32236
 
-
 
32237
    // isset id assignments
-
 
32238
 
-
 
32239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
32240
    static {
-
 
32241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
32242
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
32243
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
-
 
32244
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
32245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
32246
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
32247
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_result.class, metaDataMap);
-
 
32248
    }
-
 
32249
 
-
 
32250
    public updateTransferLotAfterItemReceive_result() {
-
 
32251
    }
-
 
32252
 
-
 
32253
    public updateTransferLotAfterItemReceive_result(
-
 
32254
      TransferLotStatus success,
-
 
32255
      WarehouseServiceException wex)
-
 
32256
    {
-
 
32257
      this();
-
 
32258
      this.success = success;
-
 
32259
      this.wex = wex;
-
 
32260
    }
-
 
32261
 
-
 
32262
    /**
-
 
32263
     * Performs a deep copy on <i>other</i>.
-
 
32264
     */
-
 
32265
    public updateTransferLotAfterItemReceive_result(updateTransferLotAfterItemReceive_result other) {
-
 
32266
      if (other.isSetSuccess()) {
-
 
32267
        this.success = other.success;
-
 
32268
      }
-
 
32269
      if (other.isSetWex()) {
-
 
32270
        this.wex = new WarehouseServiceException(other.wex);
-
 
32271
      }
-
 
32272
    }
-
 
32273
 
-
 
32274
    public updateTransferLotAfterItemReceive_result deepCopy() {
-
 
32275
      return new updateTransferLotAfterItemReceive_result(this);
-
 
32276
    }
-
 
32277
 
-
 
32278
    @Override
-
 
32279
    public void clear() {
-
 
32280
      this.success = null;
-
 
32281
      this.wex = null;
-
 
32282
    }
-
 
32283
 
-
 
32284
    /**
-
 
32285
     * 
-
 
32286
     * @see TransferLotStatus
-
 
32287
     */
-
 
32288
    public TransferLotStatus getSuccess() {
-
 
32289
      return this.success;
-
 
32290
    }
-
 
32291
 
-
 
32292
    /**
-
 
32293
     * 
-
 
32294
     * @see TransferLotStatus
-
 
32295
     */
-
 
32296
    public void setSuccess(TransferLotStatus success) {
-
 
32297
      this.success = success;
-
 
32298
    }
-
 
32299
 
-
 
32300
    public void unsetSuccess() {
-
 
32301
      this.success = null;
-
 
32302
    }
-
 
32303
 
-
 
32304
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
32305
    public boolean isSetSuccess() {
-
 
32306
      return this.success != null;
-
 
32307
    }
-
 
32308
 
-
 
32309
    public void setSuccessIsSet(boolean value) {
-
 
32310
      if (!value) {
-
 
32311
        this.success = null;
-
 
32312
      }
-
 
32313
    }
-
 
32314
 
-
 
32315
    public WarehouseServiceException getWex() {
-
 
32316
      return this.wex;
-
 
32317
    }
-
 
32318
 
-
 
32319
    public void setWex(WarehouseServiceException wex) {
-
 
32320
      this.wex = wex;
-
 
32321
    }
-
 
32322
 
-
 
32323
    public void unsetWex() {
-
 
32324
      this.wex = null;
-
 
32325
    }
-
 
32326
 
-
 
32327
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
32328
    public boolean isSetWex() {
-
 
32329
      return this.wex != null;
-
 
32330
    }
-
 
32331
 
-
 
32332
    public void setWexIsSet(boolean value) {
-
 
32333
      if (!value) {
-
 
32334
        this.wex = null;
-
 
32335
      }
-
 
32336
    }
-
 
32337
 
-
 
32338
    public void setFieldValue(_Fields field, Object value) {
-
 
32339
      switch (field) {
-
 
32340
      case SUCCESS:
-
 
32341
        if (value == null) {
-
 
32342
          unsetSuccess();
-
 
32343
        } else {
-
 
32344
          setSuccess((TransferLotStatus)value);
-
 
32345
        }
-
 
32346
        break;
-
 
32347
 
-
 
32348
      case WEX:
-
 
32349
        if (value == null) {
-
 
32350
          unsetWex();
-
 
32351
        } else {
-
 
32352
          setWex((WarehouseServiceException)value);
-
 
32353
        }
-
 
32354
        break;
-
 
32355
 
-
 
32356
      }
-
 
32357
    }
-
 
32358
 
-
 
32359
    public Object getFieldValue(_Fields field) {
-
 
32360
      switch (field) {
-
 
32361
      case SUCCESS:
-
 
32362
        return getSuccess();
-
 
32363
 
-
 
32364
      case WEX:
-
 
32365
        return getWex();
-
 
32366
 
-
 
32367
      }
-
 
32368
      throw new IllegalStateException();
-
 
32369
    }
-
 
32370
 
-
 
32371
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
32372
    public boolean isSet(_Fields field) {
-
 
32373
      if (field == null) {
-
 
32374
        throw new IllegalArgumentException();
-
 
32375
      }
-
 
32376
 
-
 
32377
      switch (field) {
-
 
32378
      case SUCCESS:
-
 
32379
        return isSetSuccess();
-
 
32380
      case WEX:
-
 
32381
        return isSetWex();
-
 
32382
      }
-
 
32383
      throw new IllegalStateException();
-
 
32384
    }
-
 
32385
 
-
 
32386
    @Override
-
 
32387
    public boolean equals(Object that) {
-
 
32388
      if (that == null)
-
 
32389
        return false;
-
 
32390
      if (that instanceof updateTransferLotAfterItemReceive_result)
-
 
32391
        return this.equals((updateTransferLotAfterItemReceive_result)that);
-
 
32392
      return false;
-
 
32393
    }
-
 
32394
 
-
 
32395
    public boolean equals(updateTransferLotAfterItemReceive_result that) {
-
 
32396
      if (that == null)
-
 
32397
        return false;
-
 
32398
 
-
 
32399
      boolean this_present_success = true && this.isSetSuccess();
-
 
32400
      boolean that_present_success = true && that.isSetSuccess();
-
 
32401
      if (this_present_success || that_present_success) {
-
 
32402
        if (!(this_present_success && that_present_success))
-
 
32403
          return false;
-
 
32404
        if (!this.success.equals(that.success))
-
 
32405
          return false;
-
 
32406
      }
-
 
32407
 
-
 
32408
      boolean this_present_wex = true && this.isSetWex();
-
 
32409
      boolean that_present_wex = true && that.isSetWex();
-
 
32410
      if (this_present_wex || that_present_wex) {
-
 
32411
        if (!(this_present_wex && that_present_wex))
-
 
32412
          return false;
-
 
32413
        if (!this.wex.equals(that.wex))
-
 
32414
          return false;
-
 
32415
      }
-
 
32416
 
-
 
32417
      return true;
-
 
32418
    }
-
 
32419
 
-
 
32420
    @Override
-
 
32421
    public int hashCode() {
-
 
32422
      return 0;
-
 
32423
    }
-
 
32424
 
-
 
32425
    public int compareTo(updateTransferLotAfterItemReceive_result other) {
-
 
32426
      if (!getClass().equals(other.getClass())) {
-
 
32427
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32428
      }
-
 
32429
 
-
 
32430
      int lastComparison = 0;
-
 
32431
      updateTransferLotAfterItemReceive_result typedOther = (updateTransferLotAfterItemReceive_result)other;
-
 
32432
 
-
 
32433
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
32434
      if (lastComparison != 0) {
-
 
32435
        return lastComparison;
-
 
32436
      }
-
 
32437
      if (isSetSuccess()) {
-
 
32438
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
32439
        if (lastComparison != 0) {
-
 
32440
          return lastComparison;
-
 
32441
        }
-
 
32442
      }
-
 
32443
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
32444
      if (lastComparison != 0) {
-
 
32445
        return lastComparison;
-
 
32446
      }
-
 
32447
      if (isSetWex()) {
-
 
32448
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
32449
        if (lastComparison != 0) {
-
 
32450
          return lastComparison;
-
 
32451
        }
-
 
32452
      }
-
 
32453
      return 0;
-
 
32454
    }
-
 
32455
 
-
 
32456
    public _Fields fieldForId(int fieldId) {
-
 
32457
      return _Fields.findByThriftId(fieldId);
-
 
32458
    }
-
 
32459
 
-
 
32460
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
32461
      org.apache.thrift.protocol.TField field;
-
 
32462
      iprot.readStructBegin();
-
 
32463
      while (true)
-
 
32464
      {
-
 
32465
        field = iprot.readFieldBegin();
-
 
32466
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
32467
          break;
-
 
32468
        }
-
 
32469
        switch (field.id) {
-
 
32470
          case 0: // SUCCESS
-
 
32471
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
32472
              this.success = TransferLotStatus.findByValue(iprot.readI32());
-
 
32473
            } else { 
-
 
32474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32475
            }
-
 
32476
            break;
-
 
32477
          case 1: // WEX
-
 
32478
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
32479
              this.wex = new WarehouseServiceException();
-
 
32480
              this.wex.read(iprot);
-
 
32481
            } else { 
-
 
32482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32483
            }
-
 
32484
            break;
-
 
32485
          default:
-
 
32486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32487
        }
-
 
32488
        iprot.readFieldEnd();
-
 
32489
      }
-
 
32490
      iprot.readStructEnd();
-
 
32491
      validate();
-
 
32492
    }
-
 
32493
 
-
 
32494
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
32495
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32496
 
-
 
32497
      if (this.isSetSuccess()) {
-
 
32498
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
32499
        oprot.writeI32(this.success.getValue());
-
 
32500
        oprot.writeFieldEnd();
-
 
32501
      } else if (this.isSetWex()) {
-
 
32502
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
32503
        this.wex.write(oprot);
-
 
32504
        oprot.writeFieldEnd();
-
 
32505
      }
-
 
32506
      oprot.writeFieldStop();
-
 
32507
      oprot.writeStructEnd();
-
 
32508
    }
-
 
32509
 
-
 
32510
    @Override
-
 
32511
    public String toString() {
-
 
32512
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_result(");
-
 
32513
      boolean first = true;
-
 
32514
 
-
 
32515
      sb.append("success:");
-
 
32516
      if (this.success == null) {
-
 
32517
        sb.append("null");
-
 
32518
      } else {
-
 
32519
        sb.append(this.success);
-
 
32520
      }
-
 
32521
      first = false;
-
 
32522
      if (!first) sb.append(", ");
-
 
32523
      sb.append("wex:");
-
 
32524
      if (this.wex == null) {
-
 
32525
        sb.append("null");
-
 
32526
      } else {
-
 
32527
        sb.append(this.wex);
-
 
32528
      }
-
 
32529
      first = false;
-
 
32530
      sb.append(")");
-
 
32531
      return sb.toString();
-
 
32532
    }
-
 
32533
 
-
 
32534
    public void validate() throws org.apache.thrift.TException {
-
 
32535
      // check for required fields
-
 
32536
    }
-
 
32537
 
-
 
32538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
32539
      try {
-
 
32540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
32541
      } catch (org.apache.thrift.TException te) {
-
 
32542
        throw new java.io.IOException(te);
-
 
32543
      }
-
 
32544
    }
-
 
32545
 
-
 
32546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
32547
      try {
-
 
32548
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
32549
      } catch (org.apache.thrift.TException te) {
-
 
32550
        throw new java.io.IOException(te);
-
 
32551
      }
-
 
32552
    }
-
 
32553
 
-
 
32554
  }
-
 
32555
 
-
 
32556
  public static class scanForTransfer_args implements org.apache.thrift.TBase<scanForTransfer_args, scanForTransfer_args._Fields>, java.io.Serializable, Cloneable   {
-
 
32557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransfer_args");
-
 
32558
 
-
 
32559
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItems", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
32560
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
32561
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
32562
 
-
 
32563
    private List<InventoryItem> inventoryItems; // required
-
 
32564
    private ScanType type; // required
-
 
32565
    private long transferLotId; // required
-
 
32566
 
-
 
32567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
32569
      INVENTORY_ITEMS((short)1, "inventoryItems"),
-
 
32570
      /**
-
 
32571
       * 
-
 
32572
       * @see ScanType
-
 
32573
       */
-
 
32574
      TYPE((short)2, "type"),
-
 
32575
      TRANSFER_LOT_ID((short)3, "transferLotId");
-
 
32576
 
-
 
32577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32578
 
-
 
32579
      static {
-
 
32580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32581
          byName.put(field.getFieldName(), field);
-
 
32582
        }
-
 
32583
      }
-
 
32584
 
-
 
32585
      /**
-
 
32586
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32587
       */
-
 
32588
      public static _Fields findByThriftId(int fieldId) {
-
 
32589
        switch(fieldId) {
-
 
32590
          case 1: // INVENTORY_ITEMS
-
 
32591
            return INVENTORY_ITEMS;
-
 
32592
          case 2: // TYPE
-
 
32593
            return TYPE;
-
 
32594
          case 3: // TRANSFER_LOT_ID
-
 
32595
            return TRANSFER_LOT_ID;
-
 
32596
          default:
-
 
32597
            return null;
-
 
32598
        }
-
 
32599
      }
-
 
32600
 
-
 
32601
      /**
-
 
32602
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32603
       * if it is not found.
-
 
32604
       */
-
 
32605
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32606
        _Fields fields = findByThriftId(fieldId);
-
 
32607
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32608
        return fields;
-
 
32609
      }
-
 
32610
 
-
 
32611
      /**
-
 
32612
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32613
       */
-
 
32614
      public static _Fields findByName(String name) {
-
 
32615
        return byName.get(name);
-
 
32616
      }
-
 
32617
 
-
 
32618
      private final short _thriftId;
-
 
32619
      private final String _fieldName;
-
 
32620
 
-
 
32621
      _Fields(short thriftId, String fieldName) {
-
 
32622
        _thriftId = thriftId;
-
 
32623
        _fieldName = fieldName;
-
 
32624
      }
-
 
32625
 
-
 
32626
      public short getThriftFieldId() {
-
 
32627
        return _thriftId;
-
 
32628
      }
-
 
32629
 
-
 
32630
      public String getFieldName() {
-
 
32631
        return _fieldName;
-
 
32632
      }
-
 
32633
    }
-
 
32634
 
-
 
32635
    // isset id assignments
-
 
32636
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
-
 
32637
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
32638
 
-
 
32639
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
32640
    static {
-
 
32641
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
32642
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
32643
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
32644
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
32645
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
32646
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
32647
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
32648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
32649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
32650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransfer_args.class, metaDataMap);
-
 
32651
    }
-
 
32652
 
-
 
32653
    public scanForTransfer_args() {
-
 
32654
    }
-
 
32655
 
-
 
32656
    public scanForTransfer_args(
-
 
32657
      List<InventoryItem> inventoryItems,
-
 
32658
      ScanType type,
-
 
32659
      long transferLotId)
-
 
32660
    {
-
 
32661
      this();
-
 
32662
      this.inventoryItems = inventoryItems;
-
 
32663
      this.type = type;
-
 
32664
      this.transferLotId = transferLotId;
-
 
32665
      setTransferLotIdIsSet(true);
-
 
32666
    }
-
 
32667
 
-
 
32668
    /**
-
 
32669
     * Performs a deep copy on <i>other</i>.
-
 
32670
     */
-
 
32671
    public scanForTransfer_args(scanForTransfer_args other) {
-
 
32672
      __isset_bit_vector.clear();
-
 
32673
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
32674
      if (other.isSetInventoryItems()) {
-
 
32675
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
-
 
32676
        for (InventoryItem other_element : other.inventoryItems) {
-
 
32677
          __this__inventoryItems.add(new InventoryItem(other_element));
-
 
32678
        }
-
 
32679
        this.inventoryItems = __this__inventoryItems;
-
 
32680
      }
-
 
32681
      if (other.isSetType()) {
-
 
32682
        this.type = other.type;
-
 
32683
      }
-
 
32684
      this.transferLotId = other.transferLotId;
-
 
32685
    }
-
 
32686
 
-
 
32687
    public scanForTransfer_args deepCopy() {
-
 
32688
      return new scanForTransfer_args(this);
-
 
32689
    }
-
 
32690
 
-
 
32691
    @Override
-
 
32692
    public void clear() {
-
 
32693
      this.inventoryItems = null;
-
 
32694
      this.type = null;
-
 
32695
      setTransferLotIdIsSet(false);
-
 
32696
      this.transferLotId = 0;
-
 
32697
    }
-
 
32698
 
-
 
32699
    public int getInventoryItemsSize() {
-
 
32700
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
-
 
32701
    }
-
 
32702
 
-
 
32703
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
-
 
32704
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
-
 
32705
    }
-
 
32706
 
-
 
32707
    public void addToInventoryItems(InventoryItem elem) {
-
 
32708
      if (this.inventoryItems == null) {
-
 
32709
        this.inventoryItems = new ArrayList<InventoryItem>();
-
 
32710
      }
-
 
32711
      this.inventoryItems.add(elem);
-
 
32712
    }
-
 
32713
 
-
 
32714
    public List<InventoryItem> getInventoryItems() {
-
 
32715
      return this.inventoryItems;
-
 
32716
    }
-
 
32717
 
-
 
32718
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
-
 
32719
      this.inventoryItems = inventoryItems;
-
 
32720
    }
-
 
32721
 
-
 
32722
    public void unsetInventoryItems() {
-
 
32723
      this.inventoryItems = null;
-
 
32724
    }
-
 
32725
 
-
 
32726
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
-
 
32727
    public boolean isSetInventoryItems() {
-
 
32728
      return this.inventoryItems != null;
-
 
32729
    }
-
 
32730
 
-
 
32731
    public void setInventoryItemsIsSet(boolean value) {
-
 
32732
      if (!value) {
-
 
32733
        this.inventoryItems = null;
-
 
32734
      }
-
 
32735
    }
-
 
32736
 
-
 
32737
    /**
-
 
32738
     * 
-
 
32739
     * @see ScanType
-
 
32740
     */
-
 
32741
    public ScanType getType() {
-
 
32742
      return this.type;
-
 
32743
    }
-
 
32744
 
-
 
32745
    /**
-
 
32746
     * 
-
 
32747
     * @see ScanType
-
 
32748
     */
-
 
32749
    public void setType(ScanType type) {
-
 
32750
      this.type = type;
-
 
32751
    }
-
 
32752
 
-
 
32753
    public void unsetType() {
-
 
32754
      this.type = null;
-
 
32755
    }
-
 
32756
 
-
 
32757
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
32758
    public boolean isSetType() {
-
 
32759
      return this.type != null;
-
 
32760
    }
-
 
32761
 
-
 
32762
    public void setTypeIsSet(boolean value) {
-
 
32763
      if (!value) {
-
 
32764
        this.type = null;
-
 
32765
      }
-
 
32766
    }
-
 
32767
 
-
 
32768
    public long getTransferLotId() {
-
 
32769
      return this.transferLotId;
-
 
32770
    }
-
 
32771
 
-
 
32772
    public void setTransferLotId(long transferLotId) {
-
 
32773
      this.transferLotId = transferLotId;
-
 
32774
      setTransferLotIdIsSet(true);
-
 
32775
    }
-
 
32776
 
-
 
32777
    public void unsetTransferLotId() {
-
 
32778
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
-
 
32779
    }
-
 
32780
 
-
 
32781
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
-
 
32782
    public boolean isSetTransferLotId() {
-
 
32783
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
-
 
32784
    }
-
 
32785
 
-
 
32786
    public void setTransferLotIdIsSet(boolean value) {
-
 
32787
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
-
 
32788
    }
-
 
32789
 
-
 
32790
    public void setFieldValue(_Fields field, Object value) {
-
 
32791
      switch (field) {
-
 
32792
      case INVENTORY_ITEMS:
-
 
32793
        if (value == null) {
-
 
32794
          unsetInventoryItems();
-
 
32795
        } else {
-
 
32796
          setInventoryItems((List<InventoryItem>)value);
-
 
32797
        }
-
 
32798
        break;
-
 
32799
 
-
 
32800
      case TYPE:
-
 
32801
        if (value == null) {
-
 
32802
          unsetType();
-
 
32803
        } else {
-
 
32804
          setType((ScanType)value);
-
 
32805
        }
-
 
32806
        break;
-
 
32807
 
-
 
32808
      case TRANSFER_LOT_ID:
-
 
32809
        if (value == null) {
-
 
32810
          unsetTransferLotId();
-
 
32811
        } else {
-
 
32812
          setTransferLotId((Long)value);
-
 
32813
        }
-
 
32814
        break;
-
 
32815
 
-
 
32816
      }
-
 
32817
    }
-
 
32818
 
-
 
32819
    public Object getFieldValue(_Fields field) {
-
 
32820
      switch (field) {
-
 
32821
      case INVENTORY_ITEMS:
-
 
32822
        return getInventoryItems();
-
 
32823
 
-
 
32824
      case TYPE:
-
 
32825
        return getType();
-
 
32826
 
-
 
32827
      case TRANSFER_LOT_ID:
-
 
32828
        return Long.valueOf(getTransferLotId());
-
 
32829
 
-
 
32830
      }
-
 
32831
      throw new IllegalStateException();
-
 
32832
    }
-
 
32833
 
-
 
32834
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
32835
    public boolean isSet(_Fields field) {
-
 
32836
      if (field == null) {
-
 
32837
        throw new IllegalArgumentException();
-
 
32838
      }
-
 
32839
 
-
 
32840
      switch (field) {
-
 
32841
      case INVENTORY_ITEMS:
-
 
32842
        return isSetInventoryItems();
-
 
32843
      case TYPE:
-
 
32844
        return isSetType();
-
 
32845
      case TRANSFER_LOT_ID:
-
 
32846
        return isSetTransferLotId();
-
 
32847
      }
-
 
32848
      throw new IllegalStateException();
-
 
32849
    }
-
 
32850
 
-
 
32851
    @Override
-
 
32852
    public boolean equals(Object that) {
-
 
32853
      if (that == null)
-
 
32854
        return false;
-
 
32855
      if (that instanceof scanForTransfer_args)
-
 
32856
        return this.equals((scanForTransfer_args)that);
-
 
32857
      return false;
-
 
32858
    }
-
 
32859
 
-
 
32860
    public boolean equals(scanForTransfer_args that) {
-
 
32861
      if (that == null)
-
 
32862
        return false;
-
 
32863
 
-
 
32864
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
-
 
32865
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
-
 
32866
      if (this_present_inventoryItems || that_present_inventoryItems) {
-
 
32867
        if (!(this_present_inventoryItems && that_present_inventoryItems))
-
 
32868
          return false;
-
 
32869
        if (!this.inventoryItems.equals(that.inventoryItems))
-
 
32870
          return false;
-
 
32871
      }
-
 
32872
 
-
 
32873
      boolean this_present_type = true && this.isSetType();
-
 
32874
      boolean that_present_type = true && that.isSetType();
-
 
32875
      if (this_present_type || that_present_type) {
-
 
32876
        if (!(this_present_type && that_present_type))
-
 
32877
          return false;
-
 
32878
        if (!this.type.equals(that.type))
-
 
32879
          return false;
-
 
32880
      }
-
 
32881
 
-
 
32882
      boolean this_present_transferLotId = true;
-
 
32883
      boolean that_present_transferLotId = true;
-
 
32884
      if (this_present_transferLotId || that_present_transferLotId) {
-
 
32885
        if (!(this_present_transferLotId && that_present_transferLotId))
-
 
32886
          return false;
-
 
32887
        if (this.transferLotId != that.transferLotId)
-
 
32888
          return false;
-
 
32889
      }
-
 
32890
 
-
 
32891
      return true;
-
 
32892
    }
-
 
32893
 
-
 
32894
    @Override
-
 
32895
    public int hashCode() {
-
 
32896
      return 0;
-
 
32897
    }
-
 
32898
 
-
 
32899
    public int compareTo(scanForTransfer_args other) {
-
 
32900
      if (!getClass().equals(other.getClass())) {
-
 
32901
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32902
      }
-
 
32903
 
-
 
32904
      int lastComparison = 0;
-
 
32905
      scanForTransfer_args typedOther = (scanForTransfer_args)other;
-
 
32906
 
-
 
32907
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
-
 
32908
      if (lastComparison != 0) {
-
 
32909
        return lastComparison;
-
 
32910
      }
-
 
32911
      if (isSetInventoryItems()) {
-
 
32912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
-
 
32913
        if (lastComparison != 0) {
-
 
32914
          return lastComparison;
-
 
32915
        }
-
 
32916
      }
-
 
32917
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
32918
      if (lastComparison != 0) {
-
 
32919
        return lastComparison;
-
 
32920
      }
-
 
32921
      if (isSetType()) {
-
 
32922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
32923
        if (lastComparison != 0) {
-
 
32924
          return lastComparison;
-
 
32925
        }
-
 
32926
      }
-
 
32927
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
-
 
32928
      if (lastComparison != 0) {
-
 
32929
        return lastComparison;
-
 
32930
      }
-
 
32931
      if (isSetTransferLotId()) {
-
 
32932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
-
 
32933
        if (lastComparison != 0) {
-
 
32934
          return lastComparison;
-
 
32935
        }
-
 
32936
      }
-
 
32937
      return 0;
-
 
32938
    }
-
 
32939
 
-
 
32940
    public _Fields fieldForId(int fieldId) {
-
 
32941
      return _Fields.findByThriftId(fieldId);
-
 
32942
    }
-
 
32943
 
-
 
32944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
32945
      org.apache.thrift.protocol.TField field;
-
 
32946
      iprot.readStructBegin();
-
 
32947
      while (true)
-
 
32948
      {
-
 
32949
        field = iprot.readFieldBegin();
-
 
32950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
32951
          break;
-
 
32952
        }
-
 
32953
        switch (field.id) {
-
 
32954
          case 1: // INVENTORY_ITEMS
-
 
32955
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
32956
              {
-
 
32957
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
-
 
32958
                this.inventoryItems = new ArrayList<InventoryItem>(_list89.size);
-
 
32959
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
-
 
32960
                {
-
 
32961
                  InventoryItem _elem91; // required
-
 
32962
                  _elem91 = new InventoryItem();
-
 
32963
                  _elem91.read(iprot);
-
 
32964
                  this.inventoryItems.add(_elem91);
-
 
32965
                }
-
 
32966
                iprot.readListEnd();
-
 
32967
              }
-
 
32968
            } else { 
-
 
32969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32970
            }
-
 
32971
            break;
-
 
32972
          case 2: // TYPE
-
 
32973
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
32974
              this.type = ScanType.findByValue(iprot.readI32());
-
 
32975
            } else { 
-
 
32976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32977
            }
-
 
32978
            break;
-
 
32979
          case 3: // TRANSFER_LOT_ID
-
 
32980
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
32981
              this.transferLotId = iprot.readI64();
-
 
32982
              setTransferLotIdIsSet(true);
-
 
32983
            } else { 
-
 
32984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32985
            }
-
 
32986
            break;
-
 
32987
          default:
-
 
32988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
32989
        }
-
 
32990
        iprot.readFieldEnd();
-
 
32991
      }
-
 
32992
      iprot.readStructEnd();
-
 
32993
      validate();
-
 
32994
    }
-
 
32995
 
-
 
32996
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
32997
      validate();
-
 
32998
 
-
 
32999
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33000
      if (this.inventoryItems != null) {
-
 
33001
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
-
 
33002
        {
-
 
33003
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
-
 
33004
          for (InventoryItem _iter92 : this.inventoryItems)
-
 
33005
          {
-
 
33006
            _iter92.write(oprot);
-
 
33007
          }
-
 
33008
          oprot.writeListEnd();
-
 
33009
        }
-
 
33010
        oprot.writeFieldEnd();
-
 
33011
      }
-
 
33012
      if (this.type != null) {
-
 
33013
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
33014
        oprot.writeI32(this.type.getValue());
-
 
33015
        oprot.writeFieldEnd();
-
 
33016
      }
-
 
33017
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
-
 
33018
      oprot.writeI64(this.transferLotId);
-
 
33019
      oprot.writeFieldEnd();
-
 
33020
      oprot.writeFieldStop();
-
 
33021
      oprot.writeStructEnd();
-
 
33022
    }
-
 
33023
 
-
 
33024
    @Override
-
 
33025
    public String toString() {
-
 
33026
      StringBuilder sb = new StringBuilder("scanForTransfer_args(");
-
 
33027
      boolean first = true;
-
 
33028
 
-
 
33029
      sb.append("inventoryItems:");
-
 
33030
      if (this.inventoryItems == null) {
-
 
33031
        sb.append("null");
-
 
33032
      } else {
-
 
33033
        sb.append(this.inventoryItems);
-
 
33034
      }
-
 
33035
      first = false;
-
 
33036
      if (!first) sb.append(", ");
-
 
33037
      sb.append("type:");
-
 
33038
      if (this.type == null) {
-
 
33039
        sb.append("null");
-
 
33040
      } else {
-
 
33041
        sb.append(this.type);
-
 
33042
      }
-
 
33043
      first = false;
-
 
33044
      if (!first) sb.append(", ");
-
 
33045
      sb.append("transferLotId:");
-
 
33046
      sb.append(this.transferLotId);
-
 
33047
      first = false;
-
 
33048
      sb.append(")");
-
 
33049
      return sb.toString();
-
 
33050
    }
-
 
33051
 
-
 
33052
    public void validate() throws org.apache.thrift.TException {
-
 
33053
      // check for required fields
-
 
33054
    }
-
 
33055
 
-
 
33056
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
33057
      try {
-
 
33058
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
33059
      } catch (org.apache.thrift.TException te) {
-
 
33060
        throw new java.io.IOException(te);
-
 
33061
      }
-
 
33062
    }
-
 
33063
 
-
 
33064
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
33065
      try {
-
 
33066
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
33067
        __isset_bit_vector = new BitSet(1);
-
 
33068
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
33069
      } catch (org.apache.thrift.TException te) {
-
 
33070
        throw new java.io.IOException(te);
-
 
33071
      }
-
 
33072
    }
-
 
33073
 
-
 
33074
  }
-
 
33075
 
-
 
33076
  public static class scanForTransfer_result implements org.apache.thrift.TBase<scanForTransfer_result, scanForTransfer_result._Fields>, java.io.Serializable, Cloneable   {
-
 
33077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransfer_result");
-
 
33078
 
-
 
33079
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
33080
 
-
 
33081
    private WarehouseServiceException wex; // required
-
 
33082
 
-
 
33083
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33084
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
33085
      WEX((short)1, "wex");
-
 
33086
 
-
 
33087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33088
 
-
 
33089
      static {
-
 
33090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33091
          byName.put(field.getFieldName(), field);
-
 
33092
        }
-
 
33093
      }
-
 
33094
 
-
 
33095
      /**
-
 
33096
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33097
       */
-
 
33098
      public static _Fields findByThriftId(int fieldId) {
-
 
33099
        switch(fieldId) {
-
 
33100
          case 1: // WEX
-
 
33101
            return WEX;
-
 
33102
          default:
-
 
33103
            return null;
-
 
33104
        }
-
 
33105
      }
-
 
33106
 
-
 
33107
      /**
-
 
33108
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33109
       * if it is not found.
-
 
33110
       */
-
 
33111
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33112
        _Fields fields = findByThriftId(fieldId);
-
 
33113
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33114
        return fields;
-
 
33115
      }
-
 
33116
 
-
 
33117
      /**
-
 
33118
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33119
       */
-
 
33120
      public static _Fields findByName(String name) {
-
 
33121
        return byName.get(name);
-
 
33122
      }
-
 
33123
 
-
 
33124
      private final short _thriftId;
-
 
33125
      private final String _fieldName;
-
 
33126
 
-
 
33127
      _Fields(short thriftId, String fieldName) {
-
 
33128
        _thriftId = thriftId;
-
 
33129
        _fieldName = fieldName;
-
 
33130
      }
-
 
33131
 
-
 
33132
      public short getThriftFieldId() {
-
 
33133
        return _thriftId;
-
 
33134
      }
-
 
33135
 
-
 
33136
      public String getFieldName() {
-
 
33137
        return _fieldName;
-
 
33138
      }
-
 
33139
    }
-
 
33140
 
-
 
33141
    // isset id assignments
-
 
33142
 
-
 
33143
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
33144
    static {
-
 
33145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
33146
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
33148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
33149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransfer_result.class, metaDataMap);
-
 
33150
    }
-
 
33151
 
-
 
33152
    public scanForTransfer_result() {
-
 
33153
    }
-
 
33154
 
-
 
33155
    public scanForTransfer_result(
-
 
33156
      WarehouseServiceException wex)
-
 
33157
    {
-
 
33158
      this();
-
 
33159
      this.wex = wex;
-
 
33160
    }
-
 
33161
 
-
 
33162
    /**
-
 
33163
     * Performs a deep copy on <i>other</i>.
-
 
33164
     */
-
 
33165
    public scanForTransfer_result(scanForTransfer_result other) {
-
 
33166
      if (other.isSetWex()) {
-
 
33167
        this.wex = new WarehouseServiceException(other.wex);
-
 
33168
      }
-
 
33169
    }
-
 
33170
 
-
 
33171
    public scanForTransfer_result deepCopy() {
-
 
33172
      return new scanForTransfer_result(this);
-
 
33173
    }
-
 
33174
 
-
 
33175
    @Override
-
 
33176
    public void clear() {
-
 
33177
      this.wex = null;
-
 
33178
    }
-
 
33179
 
-
 
33180
    public WarehouseServiceException getWex() {
-
 
33181
      return this.wex;
-
 
33182
    }
-
 
33183
 
-
 
33184
    public void setWex(WarehouseServiceException wex) {
-
 
33185
      this.wex = wex;
-
 
33186
    }
-
 
33187
 
-
 
33188
    public void unsetWex() {
-
 
33189
      this.wex = null;
-
 
33190
    }
-
 
33191
 
-
 
33192
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
33193
    public boolean isSetWex() {
-
 
33194
      return this.wex != null;
-
 
33195
    }
-
 
33196
 
-
 
33197
    public void setWexIsSet(boolean value) {
-
 
33198
      if (!value) {
-
 
33199
        this.wex = null;
-
 
33200
      }
-
 
33201
    }
-
 
33202
 
-
 
33203
    public void setFieldValue(_Fields field, Object value) {
-
 
33204
      switch (field) {
-
 
33205
      case WEX:
-
 
33206
        if (value == null) {
-
 
33207
          unsetWex();
-
 
33208
        } else {
-
 
33209
          setWex((WarehouseServiceException)value);
-
 
33210
        }
-
 
33211
        break;
-
 
33212
 
-
 
33213
      }
-
 
33214
    }
-
 
33215
 
-
 
33216
    public Object getFieldValue(_Fields field) {
-
 
33217
      switch (field) {
-
 
33218
      case WEX:
-
 
33219
        return getWex();
-
 
33220
 
-
 
33221
      }
-
 
33222
      throw new IllegalStateException();
-
 
33223
    }
-
 
33224
 
-
 
33225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
33226
    public boolean isSet(_Fields field) {
-
 
33227
      if (field == null) {
-
 
33228
        throw new IllegalArgumentException();
-
 
33229
      }
-
 
33230
 
-
 
33231
      switch (field) {
-
 
33232
      case WEX:
-
 
33233
        return isSetWex();
-
 
33234
      }
-
 
33235
      throw new IllegalStateException();
-
 
33236
    }
-
 
33237
 
-
 
33238
    @Override
-
 
33239
    public boolean equals(Object that) {
-
 
33240
      if (that == null)
-
 
33241
        return false;
-
 
33242
      if (that instanceof scanForTransfer_result)
-
 
33243
        return this.equals((scanForTransfer_result)that);
-
 
33244
      return false;
-
 
33245
    }
-
 
33246
 
-
 
33247
    public boolean equals(scanForTransfer_result that) {
-
 
33248
      if (that == null)
-
 
33249
        return false;
-
 
33250
 
-
 
33251
      boolean this_present_wex = true && this.isSetWex();
-
 
33252
      boolean that_present_wex = true && that.isSetWex();
-
 
33253
      if (this_present_wex || that_present_wex) {
-
 
33254
        if (!(this_present_wex && that_present_wex))
-
 
33255
          return false;
-
 
33256
        if (!this.wex.equals(that.wex))
-
 
33257
          return false;
-
 
33258
      }
-
 
33259
 
-
 
33260
      return true;
-
 
33261
    }
-
 
33262
 
-
 
33263
    @Override
-
 
33264
    public int hashCode() {
-
 
33265
      return 0;
-
 
33266
    }
-
 
33267
 
-
 
33268
    public int compareTo(scanForTransfer_result other) {
-
 
33269
      if (!getClass().equals(other.getClass())) {
-
 
33270
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33271
      }
-
 
33272
 
-
 
33273
      int lastComparison = 0;
-
 
33274
      scanForTransfer_result typedOther = (scanForTransfer_result)other;
-
 
33275
 
-
 
33276
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
33277
      if (lastComparison != 0) {
-
 
33278
        return lastComparison;
-
 
33279
      }
-
 
33280
      if (isSetWex()) {
-
 
33281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
33282
        if (lastComparison != 0) {
-
 
33283
          return lastComparison;
-
 
33284
        }
-
 
33285
      }
-
 
33286
      return 0;
-
 
33287
    }
-
 
33288
 
-
 
33289
    public _Fields fieldForId(int fieldId) {
-
 
33290
      return _Fields.findByThriftId(fieldId);
-
 
33291
    }
-
 
33292
 
-
 
33293
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
33294
      org.apache.thrift.protocol.TField field;
-
 
33295
      iprot.readStructBegin();
-
 
33296
      while (true)
-
 
33297
      {
-
 
33298
        field = iprot.readFieldBegin();
-
 
33299
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
33300
          break;
-
 
33301
        }
-
 
33302
        switch (field.id) {
-
 
33303
          case 1: // WEX
-
 
33304
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
33305
              this.wex = new WarehouseServiceException();
-
 
33306
              this.wex.read(iprot);
-
 
33307
            } else { 
-
 
33308
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33309
            }
-
 
33310
            break;
-
 
33311
          default:
-
 
33312
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33313
        }
-
 
33314
        iprot.readFieldEnd();
-
 
33315
      }
-
 
33316
      iprot.readStructEnd();
-
 
33317
      validate();
-
 
33318
    }
-
 
33319
 
-
 
33320
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
33321
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33322
 
-
 
33323
      if (this.isSetWex()) {
-
 
33324
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
33325
        this.wex.write(oprot);
-
 
33326
        oprot.writeFieldEnd();
-
 
33327
      }
-
 
33328
      oprot.writeFieldStop();
-
 
33329
      oprot.writeStructEnd();
-
 
33330
    }
-
 
33331
 
-
 
33332
    @Override
-
 
33333
    public String toString() {
-
 
33334
      StringBuilder sb = new StringBuilder("scanForTransfer_result(");
-
 
33335
      boolean first = true;
-
 
33336
 
-
 
33337
      sb.append("wex:");
-
 
33338
      if (this.wex == null) {
-
 
33339
        sb.append("null");
25405
      } else {
33340
      } else {
25406
        sb.append(this.wex);
33341
        sb.append(this.wex);
25407
      }
33342
      }
25408
      first = false;
33343
      first = false;
25409
      sb.append(")");
33344
      sb.append(")");