Subversion Repositories SmartDukaan

Rev

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

Rev 5185 Rev 5361
Line 58... Line 58...
58
     * @param serialNumber
58
     * @param serialNumber
59
     */
59
     */
60
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
60
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
61
 
61
 
62
    /**
62
    /**
63
     * Retrieves non-serialized inventory items from a given supplier
63
     * Retrieves non-serialized inventory item from a given supplier
64
     * 
64
     * 
65
     * @param itemId
65
     * @param itemId
66
     * @param quantity
-
 
67
     * @param supplierId
-
 
68
     */
-
 
69
    public List<InventoryItem> getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException;
-
 
70
 
-
 
71
    /**
-
 
72
     * Retrieves inventory items for a given item
-
 
73
     * 
-
 
74
     * @param itemId
-
 
75
     */
-
 
76
    public List<InventoryItem> getInventoryItems(long itemId) throws org.apache.thrift.TException;
-
 
77
 
-
 
78
    /**
-
 
79
     * Retrieves scans for a given order
-
 
80
     * 
-
 
81
     * @param orderId
66
     * @param warehouseId
82
     */
-
 
83
    public List<Scan> getScanForOrder(long orderId) throws org.apache.thrift.TException;
-
 
84
 
-
 
85
    /**
-
 
86
     * Retrieves scans for a given inventory item
-
 
87
     * 
-
 
88
     * @param inventoryItemId
-
 
89
     */
67
     */
90
    public List<Scan> getScan(long inventoryItemId) throws org.apache.thrift.TException;
68
    public InventoryItem getNonSeralizedInventoryItem(long itemId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
91
 
69
 
92
    /**
70
    /**
93
     * Scan serialized items.
71
     * Scan serialized items.
94
     * 
72
     * 
95
     * @param inventoryItem
73
     * @param inventoryItem
96
     * @param type
74
     * @param type
97
     * @param warehouseId
75
     * @param billingWarehouseId
98
     */
76
     */
99
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
77
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
100
 
78
 
101
    /**
79
    /**
102
     * Scan non-serialized items.
80
     * Scan non-serialized items.
103
     * 
81
     * 
104
     * @param inventoryItemId
82
     * @param inventoryItem
105
     * @param type
83
     * @param type
106
     * @param quantity
84
     * @param quantity
107
     * @param warehouseId
85
     * @param billingWarehouseId
108
     */
86
     */
109
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
87
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
110
 
88
 
111
    /**
89
    /**
112
     * Scan serialized items linked with an order. Returns its price.
90
     * Scan serialized items linked with an order. Returns its price.
113
     * 
91
     * 
114
     * @param serialNumber
92
     * @param serialNumber
Line 121... Line 99...
121
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
99
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
122
 
100
 
123
    /**
101
    /**
124
     * Scan non-serialized items linked with an order.
102
     * Scan non-serialized items linked with an order.
125
     * 
103
     * 
126
     * @param inventoryItemId
104
     * @param inventoryItem
127
     * @param type
105
     * @param type
128
     * @param quantity
106
     * @param quantity
129
     * @param orderId
107
     * @param orderId
130
     * @param fulfilmentWarehouseId
108
     * @param fulfilmentWarehouseId
-
 
109
     * @param billingWarehouseId
131
     */
110
     */
132
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
111
    public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
133
 
112
 
134
    /**
113
    /**
135
     * Created item number to item id mapping
114
     * Created item number to item id mapping
136
     * 
115
     * 
137
     * @param itemNumber
116
     * @param itemNumber
Line 177... Line 156...
177
 
156
 
178
    public void createInventoryItem(long itemId, long quantity, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
157
    public void createInventoryItem(long itemId, long quantity, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
179
 
158
 
180
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
159
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
181
 
160
 
182
    public void getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
161
    public void getNonSeralizedInventoryItem(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
183
 
-
 
184
    public void getInventoryItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
185
 
-
 
186
    public void getScanForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanForOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
187
 
162
 
188
    public void getScan(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScan_call> resultHandler) throws org.apache.thrift.TException;
163
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
189
 
164
 
190
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
191
 
-
 
192
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
165
    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;
193
 
166
 
194
    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;
167
    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;
195
 
168
 
196
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
169
    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;
197
 
170
 
198
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
171
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
199
 
172
 
200
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
173
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
201
 
174
 
Line 336... Line 309...
336
        throw result.wex;
309
        throw result.wex;
337
      }
310
      }
338
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
311
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
339
    }
312
    }
340
 
313
 
341
    public List<InventoryItem> getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException
314
    public InventoryItem getNonSeralizedInventoryItem(long itemId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
342
    {
-
 
343
      send_getNonSeralizedInventoryItems(itemId, quantity, supplierId);
-
 
344
      return recv_getNonSeralizedInventoryItems();
-
 
345
    }
-
 
346
 
-
 
347
    public void send_getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException
-
 
348
    {
-
 
349
      getNonSeralizedInventoryItems_args args = new getNonSeralizedInventoryItems_args();
-
 
350
      args.setItemId(itemId);
-
 
351
      args.setQuantity(quantity);
-
 
352
      args.setSupplierId(supplierId);
-
 
353
      sendBase("getNonSeralizedInventoryItems", args);
-
 
354
    }
-
 
355
 
-
 
356
    public List<InventoryItem> recv_getNonSeralizedInventoryItems() throws org.apache.thrift.TException
-
 
357
    {
-
 
358
      getNonSeralizedInventoryItems_result result = new getNonSeralizedInventoryItems_result();
-
 
359
      receiveBase(result, "getNonSeralizedInventoryItems");
-
 
360
      if (result.isSetSuccess()) {
-
 
361
        return result.success;
-
 
362
      }
-
 
363
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItems failed: unknown result");
-
 
364
    }
-
 
365
 
-
 
366
    public List<InventoryItem> getInventoryItems(long itemId) throws org.apache.thrift.TException
-
 
367
    {
315
    {
368
      send_getInventoryItems(itemId);
316
      send_getNonSeralizedInventoryItem(itemId, warehouseId);
369
      return recv_getInventoryItems();
317
      return recv_getNonSeralizedInventoryItem();
370
    }
318
    }
371
 
319
 
372
    public void send_getInventoryItems(long itemId) throws org.apache.thrift.TException
320
    public void send_getNonSeralizedInventoryItem(long itemId, long warehouseId) throws org.apache.thrift.TException
373
    {
321
    {
374
      getInventoryItems_args args = new getInventoryItems_args();
322
      getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
375
      args.setItemId(itemId);
323
      args.setItemId(itemId);
376
      sendBase("getInventoryItems", args);
-
 
377
    }
-
 
378
 
-
 
379
    public List<InventoryItem> recv_getInventoryItems() throws org.apache.thrift.TException
-
 
380
    {
-
 
381
      getInventoryItems_result result = new getInventoryItems_result();
-
 
382
      receiveBase(result, "getInventoryItems");
-
 
383
      if (result.isSetSuccess()) {
-
 
384
        return result.success;
-
 
385
      }
-
 
386
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItems failed: unknown result");
-
 
387
    }
-
 
388
 
-
 
389
    public List<Scan> getScanForOrder(long orderId) throws org.apache.thrift.TException
-
 
390
    {
-
 
391
      send_getScanForOrder(orderId);
-
 
392
      return recv_getScanForOrder();
-
 
393
    }
-
 
394
 
-
 
395
    public void send_getScanForOrder(long orderId) throws org.apache.thrift.TException
-
 
396
    {
-
 
397
      getScanForOrder_args args = new getScanForOrder_args();
-
 
398
      args.setOrderId(orderId);
324
      args.setWarehouseId(warehouseId);
399
      sendBase("getScanForOrder", args);
325
      sendBase("getNonSeralizedInventoryItem", args);
400
    }
326
    }
401
 
327
 
402
    public List<Scan> recv_getScanForOrder() throws org.apache.thrift.TException
328
    public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
403
    {
329
    {
404
      getScanForOrder_result result = new getScanForOrder_result();
330
      getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
405
      receiveBase(result, "getScanForOrder");
331
      receiveBase(result, "getNonSeralizedInventoryItem");
406
      if (result.isSetSuccess()) {
332
      if (result.isSetSuccess()) {
407
        return result.success;
333
        return result.success;
408
      }
334
      }
409
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanForOrder failed: unknown result");
-
 
410
    }
-
 
411
 
-
 
412
    public List<Scan> getScan(long inventoryItemId) throws org.apache.thrift.TException
-
 
413
    {
-
 
414
      send_getScan(inventoryItemId);
-
 
415
      return recv_getScan();
-
 
416
    }
-
 
417
 
-
 
418
    public void send_getScan(long inventoryItemId) throws org.apache.thrift.TException
-
 
419
    {
-
 
420
      getScan_args args = new getScan_args();
-
 
421
      args.setInventoryItemId(inventoryItemId);
-
 
422
      sendBase("getScan", args);
-
 
423
    }
-
 
424
 
-
 
425
    public List<Scan> recv_getScan() throws org.apache.thrift.TException
-
 
426
    {
-
 
427
      getScan_result result = new getScan_result();
-
 
428
      receiveBase(result, "getScan");
-
 
429
      if (result.isSetSuccess()) {
335
      if (result.wex != null) {
430
        return result.success;
336
        throw result.wex;
431
      }
337
      }
432
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScan failed: unknown result");
338
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
433
    }
339
    }
434
 
340
 
435
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
341
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
436
    {
342
    {
437
      send_scanSerializedItem(inventoryItem, type, warehouseId);
343
      send_scanSerializedItem(inventoryItem, type, billingWarehouseId);
438
      recv_scanSerializedItem();
344
      recv_scanSerializedItem();
439
    }
345
    }
440
 
346
 
441
    public void send_scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws org.apache.thrift.TException
347
    public void send_scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws org.apache.thrift.TException
442
    {
348
    {
443
      scanSerializedItem_args args = new scanSerializedItem_args();
349
      scanSerializedItem_args args = new scanSerializedItem_args();
444
      args.setInventoryItem(inventoryItem);
350
      args.setInventoryItem(inventoryItem);
445
      args.setType(type);
351
      args.setType(type);
446
      args.setWarehouseId(warehouseId);
352
      args.setBillingWarehouseId(billingWarehouseId);
447
      sendBase("scanSerializedItem", args);
353
      sendBase("scanSerializedItem", args);
448
    }
354
    }
449
 
355
 
450
    public void recv_scanSerializedItem() throws WarehouseServiceException, org.apache.thrift.TException
356
    public void recv_scanSerializedItem() throws WarehouseServiceException, org.apache.thrift.TException
451
    {
357
    {
Line 455... Line 361...
455
        throw result.wex;
361
        throw result.wex;
456
      }
362
      }
457
      return;
363
      return;
458
    }
364
    }
459
 
365
 
460
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
366
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
461
    {
367
    {
462
      send_scan(inventoryItemId, type, quantity, warehouseId);
368
      send_scan(inventoryItem, type, quantity, billingWarehouseId);
463
      recv_scan();
369
      recv_scan();
464
    }
370
    }
465
 
371
 
466
    public void send_scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws org.apache.thrift.TException
372
    public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws org.apache.thrift.TException
467
    {
373
    {
468
      scan_args args = new scan_args();
374
      scan_args args = new scan_args();
469
      args.setInventoryItemId(inventoryItemId);
375
      args.setInventoryItem(inventoryItem);
470
      args.setType(type);
376
      args.setType(type);
471
      args.setQuantity(quantity);
377
      args.setQuantity(quantity);
472
      args.setWarehouseId(warehouseId);
378
      args.setBillingWarehouseId(billingWarehouseId);
473
      sendBase("scan", args);
379
      sendBase("scan", args);
474
    }
380
    }
475
 
381
 
476
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
382
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
477
    {
383
    {
Line 512... Line 418...
512
        throw result.wex;
418
        throw result.wex;
513
      }
419
      }
514
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
420
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
515
    }
421
    }
516
 
422
 
517
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
423
    public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
518
    {
424
    {
519
      send_scanForOrder(inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId);
425
      send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
520
      recv_scanForOrder();
426
      return recv_scanForOrder();
521
    }
427
    }
522
 
428
 
523
    public void send_scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
429
    public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
524
    {
430
    {
525
      scanForOrder_args args = new scanForOrder_args();
431
      scanForOrder_args args = new scanForOrder_args();
526
      args.setInventoryItemId(inventoryItemId);
432
      args.setInventoryItem(inventoryItem);
527
      args.setType(type);
433
      args.setType(type);
528
      args.setQuantity(quantity);
434
      args.setQuantity(quantity);
529
      args.setOrderId(orderId);
435
      args.setOrderId(orderId);
530
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
436
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
-
 
437
      args.setBillingWarehouseId(billingWarehouseId);
531
      sendBase("scanForOrder", args);
438
      sendBase("scanForOrder", args);
532
    }
439
    }
533
 
440
 
534
    public void recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
441
    public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
535
    {
442
    {
536
      scanForOrder_result result = new scanForOrder_result();
443
      scanForOrder_result result = new scanForOrder_result();
537
      receiveBase(result, "scanForOrder");
444
      receiveBase(result, "scanForOrder");
-
 
445
      if (result.isSetSuccess()) {
-
 
446
        return result.success;
-
 
447
      }
538
      if (result.wex != null) {
448
      if (result.wex != null) {
539
        throw result.wex;
449
        throw result.wex;
540
      }
450
      }
541
      return;
-
 
-
 
451
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
542
    }
452
    }
543
 
453
 
544
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
454
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
545
    {
455
    {
546
      send_createItemNumberMapping(itemNumber, itemId);
456
      send_createItemNumberMapping(itemNumber, itemId);
Line 825... Line 735...
825
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
735
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
826
        return (new Client(prot)).recv_getInventoryItem();
736
        return (new Client(prot)).recv_getInventoryItem();
827
      }
737
      }
828
    }
738
    }
829
 
739
 
830
    public void getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
831
      checkReady();
-
 
832
      getNonSeralizedInventoryItems_call method_call = new getNonSeralizedInventoryItems_call(itemId, quantity, supplierId, resultHandler, this, ___protocolFactory, ___transport);
-
 
833
      this.___currentMethod = method_call;
-
 
834
      ___manager.call(method_call);
-
 
835
    }
-
 
836
 
-
 
837
    public static class getNonSeralizedInventoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
838
      private long itemId;
-
 
839
      private long quantity;
-
 
840
      private long supplierId;
-
 
841
      public getNonSeralizedInventoryItems_call(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItems_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 {
740
    public void getNonSeralizedInventoryItem(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
842
        super(client, protocolFactory, transport, resultHandler, false);
-
 
843
        this.itemId = itemId;
-
 
844
        this.quantity = quantity;
-
 
845
        this.supplierId = supplierId;
-
 
846
      }
-
 
847
 
-
 
848
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
849
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
850
        getNonSeralizedInventoryItems_args args = new getNonSeralizedInventoryItems_args();
-
 
851
        args.setItemId(itemId);
-
 
852
        args.setQuantity(quantity);
-
 
853
        args.setSupplierId(supplierId);
-
 
854
        args.write(prot);
-
 
855
        prot.writeMessageEnd();
-
 
856
      }
-
 
857
 
-
 
858
      public List<InventoryItem> getResult() throws org.apache.thrift.TException {
-
 
859
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
860
          throw new IllegalStateException("Method call not finished!");
-
 
861
        }
-
 
862
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
863
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
864
        return (new Client(prot)).recv_getNonSeralizedInventoryItems();
-
 
865
      }
-
 
866
    }
-
 
867
 
-
 
868
    public void getInventoryItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
869
      checkReady();
741
      checkReady();
870
      getInventoryItems_call method_call = new getInventoryItems_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
742
      getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
871
      this.___currentMethod = method_call;
743
      this.___currentMethod = method_call;
872
      ___manager.call(method_call);
744
      ___manager.call(method_call);
873
    }
745
    }
874
 
746
 
875
    public static class getInventoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
747
    public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
876
      private long itemId;
748
      private long itemId;
-
 
749
      private long warehouseId;
877
      public getInventoryItems_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItems_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 {
750
      public getNonSeralizedInventoryItem_call(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_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 {
878
        super(client, protocolFactory, transport, resultHandler, false);
751
        super(client, protocolFactory, transport, resultHandler, false);
879
        this.itemId = itemId;
752
        this.itemId = itemId;
-
 
753
        this.warehouseId = warehouseId;
880
      }
754
      }
881
 
755
 
882
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
756
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
883
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
757
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
884
        getInventoryItems_args args = new getInventoryItems_args();
758
        getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
885
        args.setItemId(itemId);
759
        args.setItemId(itemId);
-
 
760
        args.setWarehouseId(warehouseId);
886
        args.write(prot);
761
        args.write(prot);
887
        prot.writeMessageEnd();
762
        prot.writeMessageEnd();
888
      }
763
      }
889
 
764
 
890
      public List<InventoryItem> getResult() throws org.apache.thrift.TException {
-
 
891
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
892
          throw new IllegalStateException("Method call not finished!");
-
 
893
        }
-
 
894
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
895
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
896
        return (new Client(prot)).recv_getInventoryItems();
-
 
897
      }
-
 
898
    }
-
 
899
 
-
 
900
    public void getScanForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getScanForOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
901
      checkReady();
-
 
902
      getScanForOrder_call method_call = new getScanForOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
903
      this.___currentMethod = method_call;
-
 
904
      ___manager.call(method_call);
-
 
905
    }
-
 
906
 
-
 
907
    public static class getScanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
908
      private long orderId;
-
 
909
      public getScanForOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getScanForOrder_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 {
765
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
910
        super(client, protocolFactory, transport, resultHandler, false);
-
 
911
        this.orderId = orderId;
-
 
912
      }
-
 
913
 
-
 
914
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
915
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
916
        getScanForOrder_args args = new getScanForOrder_args();
-
 
917
        args.setOrderId(orderId);
-
 
918
        args.write(prot);
-
 
919
        prot.writeMessageEnd();
-
 
920
      }
-
 
921
 
-
 
922
      public List<Scan> getResult() throws org.apache.thrift.TException {
-
 
923
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
924
          throw new IllegalStateException("Method call not finished!");
-
 
925
        }
-
 
926
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
927
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
928
        return (new Client(prot)).recv_getScanForOrder();
-
 
929
      }
-
 
930
    }
-
 
931
 
-
 
932
    public void getScan(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getScan_call> resultHandler) throws org.apache.thrift.TException {
-
 
933
      checkReady();
-
 
934
      getScan_call method_call = new getScan_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
935
      this.___currentMethod = method_call;
-
 
936
      ___manager.call(method_call);
-
 
937
    }
-
 
938
 
-
 
939
    public static class getScan_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
940
      private long inventoryItemId;
-
 
941
      public getScan_call(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getScan_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 {
-
 
942
        super(client, protocolFactory, transport, resultHandler, false);
-
 
943
        this.inventoryItemId = inventoryItemId;
-
 
944
      }
-
 
945
 
-
 
946
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
947
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScan", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
948
        getScan_args args = new getScan_args();
-
 
949
        args.setInventoryItemId(inventoryItemId);
-
 
950
        args.write(prot);
-
 
951
        prot.writeMessageEnd();
-
 
952
      }
-
 
953
 
-
 
954
      public List<Scan> getResult() throws org.apache.thrift.TException {
-
 
955
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
766
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
956
          throw new IllegalStateException("Method call not finished!");
767
          throw new IllegalStateException("Method call not finished!");
957
        }
768
        }
958
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
769
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
959
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
770
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
960
        return (new Client(prot)).recv_getScan();
771
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
961
      }
772
      }
962
    }
773
    }
963
 
774
 
964
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException {
775
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException {
965
      checkReady();
776
      checkReady();
966
      scanSerializedItem_call method_call = new scanSerializedItem_call(inventoryItem, type, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
777
      scanSerializedItem_call method_call = new scanSerializedItem_call(inventoryItem, type, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
967
      this.___currentMethod = method_call;
778
      this.___currentMethod = method_call;
968
      ___manager.call(method_call);
779
      ___manager.call(method_call);
969
    }
780
    }
970
 
781
 
971
    public static class scanSerializedItem_call extends org.apache.thrift.async.TAsyncMethodCall {
782
    public static class scanSerializedItem_call extends org.apache.thrift.async.TAsyncMethodCall {
972
      private InventoryItem inventoryItem;
783
      private InventoryItem inventoryItem;
973
      private ScanType type;
784
      private ScanType type;
974
      private long warehouseId;
785
      private long billingWarehouseId;
975
      public scanSerializedItem_call(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_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 {
786
      public scanSerializedItem_call(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_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 {
976
        super(client, protocolFactory, transport, resultHandler, false);
787
        super(client, protocolFactory, transport, resultHandler, false);
977
        this.inventoryItem = inventoryItem;
788
        this.inventoryItem = inventoryItem;
978
        this.type = type;
789
        this.type = type;
979
        this.warehouseId = warehouseId;
790
        this.billingWarehouseId = billingWarehouseId;
980
      }
791
      }
981
 
792
 
982
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
793
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
983
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
794
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
984
        scanSerializedItem_args args = new scanSerializedItem_args();
795
        scanSerializedItem_args args = new scanSerializedItem_args();
985
        args.setInventoryItem(inventoryItem);
796
        args.setInventoryItem(inventoryItem);
986
        args.setType(type);
797
        args.setType(type);
987
        args.setWarehouseId(warehouseId);
798
        args.setBillingWarehouseId(billingWarehouseId);
988
        args.write(prot);
799
        args.write(prot);
989
        prot.writeMessageEnd();
800
        prot.writeMessageEnd();
990
      }
801
      }
991
 
802
 
992
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
803
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
Line 997... Line 808...
997
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
808
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
998
        (new Client(prot)).recv_scanSerializedItem();
809
        (new Client(prot)).recv_scanSerializedItem();
999
      }
810
      }
1000
    }
811
    }
1001
 
812
 
1002
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
813
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
1003
      checkReady();
814
      checkReady();
1004
      scan_call method_call = new scan_call(inventoryItemId, type, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
815
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
1005
      this.___currentMethod = method_call;
816
      this.___currentMethod = method_call;
1006
      ___manager.call(method_call);
817
      ___manager.call(method_call);
1007
    }
818
    }
1008
 
819
 
1009
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
820
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
1010
      private long inventoryItemId;
821
      private InventoryItem inventoryItem;
1011
      private ScanType type;
822
      private ScanType type;
1012
      private long quantity;
823
      private long quantity;
1013
      private long warehouseId;
824
      private long billingWarehouseId;
1014
      public scan_call(long inventoryItemId, ScanType type, long quantity, long warehouseId, 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 {
825
      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 {
1015
        super(client, protocolFactory, transport, resultHandler, false);
826
        super(client, protocolFactory, transport, resultHandler, false);
1016
        this.inventoryItemId = inventoryItemId;
827
        this.inventoryItem = inventoryItem;
1017
        this.type = type;
828
        this.type = type;
1018
        this.quantity = quantity;
829
        this.quantity = quantity;
1019
        this.warehouseId = warehouseId;
830
        this.billingWarehouseId = billingWarehouseId;
1020
      }
831
      }
1021
 
832
 
1022
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
833
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1023
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
834
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
1024
        scan_args args = new scan_args();
835
        scan_args args = new scan_args();
1025
        args.setInventoryItemId(inventoryItemId);
836
        args.setInventoryItem(inventoryItem);
1026
        args.setType(type);
837
        args.setType(type);
1027
        args.setQuantity(quantity);
838
        args.setQuantity(quantity);
1028
        args.setWarehouseId(warehouseId);
839
        args.setBillingWarehouseId(billingWarehouseId);
1029
        args.write(prot);
840
        args.write(prot);
1030
        prot.writeMessageEnd();
841
        prot.writeMessageEnd();
1031
      }
842
      }
1032
 
843
 
1033
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
844
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
Line 1085... Line 896...
1085
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
896
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1086
        return (new Client(prot)).recv_scanSerializedItemForOrder();
897
        return (new Client(prot)).recv_scanSerializedItemForOrder();
1087
      }
898
      }
1088
    }
899
    }
1089
 
900
 
1090
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
901
    public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
1091
      checkReady();
902
      checkReady();
1092
      scanForOrder_call method_call = new scanForOrder_call(inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
903
      scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
1093
      this.___currentMethod = method_call;
904
      this.___currentMethod = method_call;
1094
      ___manager.call(method_call);
905
      ___manager.call(method_call);
1095
    }
906
    }
1096
 
907
 
1097
    public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
908
    public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1098
      private long inventoryItemId;
909
      private InventoryItem inventoryItem;
1099
      private ScanType type;
910
      private ScanType type;
1100
      private long quantity;
911
      private long quantity;
1101
      private long orderId;
912
      private long orderId;
1102
      private long fulfilmentWarehouseId;
913
      private long fulfilmentWarehouseId;
-
 
914
      private long billingWarehouseId;
1103
      public scanForOrder_call(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_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 {
915
      public scanForOrder_call(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_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 {
1104
        super(client, protocolFactory, transport, resultHandler, false);
916
        super(client, protocolFactory, transport, resultHandler, false);
1105
        this.inventoryItemId = inventoryItemId;
917
        this.inventoryItem = inventoryItem;
1106
        this.type = type;
918
        this.type = type;
1107
        this.quantity = quantity;
919
        this.quantity = quantity;
1108
        this.orderId = orderId;
920
        this.orderId = orderId;
1109
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
921
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
-
 
922
        this.billingWarehouseId = billingWarehouseId;
1110
      }
923
      }
1111
 
924
 
1112
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
925
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1113
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
926
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1114
        scanForOrder_args args = new scanForOrder_args();
927
        scanForOrder_args args = new scanForOrder_args();
1115
        args.setInventoryItemId(inventoryItemId);
928
        args.setInventoryItem(inventoryItem);
1116
        args.setType(type);
929
        args.setType(type);
1117
        args.setQuantity(quantity);
930
        args.setQuantity(quantity);
1118
        args.setOrderId(orderId);
931
        args.setOrderId(orderId);
1119
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
932
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
-
 
933
        args.setBillingWarehouseId(billingWarehouseId);
1120
        args.write(prot);
934
        args.write(prot);
1121
        prot.writeMessageEnd();
935
        prot.writeMessageEnd();
1122
      }
936
      }
1123
 
937
 
1124
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
938
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1125
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
939
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1126
          throw new IllegalStateException("Method call not finished!");
940
          throw new IllegalStateException("Method call not finished!");
1127
        }
941
        }
1128
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
942
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1129
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
943
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1130
        (new Client(prot)).recv_scanForOrder();
944
        return (new Client(prot)).recv_scanForOrder();
1131
      }
945
      }
1132
    }
946
    }
1133
 
947
 
1134
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
948
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
1135
      checkReady();
949
      checkReady();
Line 1309... Line 1123...
1309
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1123
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1310
      processMap.put("createSerializedInventoryItem", new createSerializedInventoryItem());
1124
      processMap.put("createSerializedInventoryItem", new createSerializedInventoryItem());
1311
      processMap.put("createSerializedInventoryItemFromItemNumber", new createSerializedInventoryItemFromItemNumber());
1125
      processMap.put("createSerializedInventoryItemFromItemNumber", new createSerializedInventoryItemFromItemNumber());
1312
      processMap.put("createInventoryItem", new createInventoryItem());
1126
      processMap.put("createInventoryItem", new createInventoryItem());
1313
      processMap.put("getInventoryItem", new getInventoryItem());
1127
      processMap.put("getInventoryItem", new getInventoryItem());
1314
      processMap.put("getNonSeralizedInventoryItems", new getNonSeralizedInventoryItems());
1128
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
1315
      processMap.put("getInventoryItems", new getInventoryItems());
-
 
1316
      processMap.put("getScanForOrder", new getScanForOrder());
-
 
1317
      processMap.put("getScan", new getScan());
-
 
1318
      processMap.put("scanSerializedItem", new scanSerializedItem());
1129
      processMap.put("scanSerializedItem", new scanSerializedItem());
1319
      processMap.put("scan", new scan());
1130
      processMap.put("scan", new scan());
1320
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
1131
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
1321
      processMap.put("scanForOrder", new scanForOrder());
1132
      processMap.put("scanForOrder", new scanForOrder());
1322
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
1133
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
Line 1405... Line 1216...
1405
        }
1216
        }
1406
        return result;
1217
        return result;
1407
      }
1218
      }
1408
    }
1219
    }
1409
 
1220
 
1410
    private static class getNonSeralizedInventoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItems_args> {
1221
    private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
1411
      public getNonSeralizedInventoryItems() {
1222
      public getNonSeralizedInventoryItem() {
1412
        super("getNonSeralizedInventoryItems");
1223
        super("getNonSeralizedInventoryItem");
1413
      }
-
 
1414
 
-
 
1415
      protected getNonSeralizedInventoryItems_args getEmptyArgsInstance() {
-
 
1416
        return new getNonSeralizedInventoryItems_args();
-
 
1417
      }
-
 
1418
 
-
 
1419
      protected getNonSeralizedInventoryItems_result getResult(I iface, getNonSeralizedInventoryItems_args args) throws org.apache.thrift.TException {
-
 
1420
        getNonSeralizedInventoryItems_result result = new getNonSeralizedInventoryItems_result();
-
 
1421
        result.success = iface.getNonSeralizedInventoryItems(args.itemId, args.quantity, args.supplierId);
-
 
1422
        return result;
-
 
1423
      }
-
 
1424
    }
-
 
1425
 
-
 
1426
    private static class getInventoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItems_args> {
-
 
1427
      public getInventoryItems() {
-
 
1428
        super("getInventoryItems");
-
 
1429
      }
-
 
1430
 
-
 
1431
      protected getInventoryItems_args getEmptyArgsInstance() {
-
 
1432
        return new getInventoryItems_args();
-
 
1433
      }
-
 
1434
 
-
 
1435
      protected getInventoryItems_result getResult(I iface, getInventoryItems_args args) throws org.apache.thrift.TException {
-
 
1436
        getInventoryItems_result result = new getInventoryItems_result();
-
 
1437
        result.success = iface.getInventoryItems(args.itemId);
-
 
1438
        return result;
-
 
1439
      }
-
 
1440
    }
-
 
1441
 
-
 
1442
    private static class getScanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanForOrder_args> {
-
 
1443
      public getScanForOrder() {
-
 
1444
        super("getScanForOrder");
-
 
1445
      }
-
 
1446
 
-
 
1447
      protected getScanForOrder_args getEmptyArgsInstance() {
-
 
1448
        return new getScanForOrder_args();
-
 
1449
      }
-
 
1450
 
-
 
1451
      protected getScanForOrder_result getResult(I iface, getScanForOrder_args args) throws org.apache.thrift.TException {
-
 
1452
        getScanForOrder_result result = new getScanForOrder_result();
-
 
1453
        result.success = iface.getScanForOrder(args.orderId);
-
 
1454
        return result;
-
 
1455
      }
-
 
1456
    }
-
 
1457
 
-
 
1458
    private static class getScan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScan_args> {
-
 
1459
      public getScan() {
-
 
1460
        super("getScan");
-
 
1461
      }
1224
      }
1462
 
1225
 
1463
      protected getScan_args getEmptyArgsInstance() {
1226
      protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
1464
        return new getScan_args();
1227
        return new getNonSeralizedInventoryItem_args();
1465
      }
1228
      }
1466
 
1229
 
1467
      protected getScan_result getResult(I iface, getScan_args args) throws org.apache.thrift.TException {
1230
      protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
1468
        getScan_result result = new getScan_result();
1231
        getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
-
 
1232
        try {
1469
        result.success = iface.getScan(args.inventoryItemId);
1233
          result.success = iface.getNonSeralizedInventoryItem(args.itemId, args.warehouseId);
-
 
1234
        } catch (WarehouseServiceException wex) {
-
 
1235
          result.wex = wex;
-
 
1236
        }
1470
        return result;
1237
        return result;
1471
      }
1238
      }
1472
    }
1239
    }
1473
 
1240
 
1474
    private static class scanSerializedItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItem_args> {
1241
    private static class scanSerializedItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItem_args> {
Line 1481... Line 1248...
1481
      }
1248
      }
1482
 
1249
 
1483
      protected scanSerializedItem_result getResult(I iface, scanSerializedItem_args args) throws org.apache.thrift.TException {
1250
      protected scanSerializedItem_result getResult(I iface, scanSerializedItem_args args) throws org.apache.thrift.TException {
1484
        scanSerializedItem_result result = new scanSerializedItem_result();
1251
        scanSerializedItem_result result = new scanSerializedItem_result();
1485
        try {
1252
        try {
1486
          iface.scanSerializedItem(args.inventoryItem, args.type, args.warehouseId);
1253
          iface.scanSerializedItem(args.inventoryItem, args.type, args.billingWarehouseId);
1487
        } catch (WarehouseServiceException wex) {
1254
        } catch (WarehouseServiceException wex) {
1488
          result.wex = wex;
1255
          result.wex = wex;
1489
        }
1256
        }
1490
        return result;
1257
        return result;
1491
      }
1258
      }
Line 1501... Line 1268...
1501
      }
1268
      }
1502
 
1269
 
1503
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
1270
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
1504
        scan_result result = new scan_result();
1271
        scan_result result = new scan_result();
1505
        try {
1272
        try {
1506
          iface.scan(args.inventoryItemId, args.type, args.quantity, args.warehouseId);
1273
          iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId);
1507
        } catch (WarehouseServiceException wex) {
1274
        } catch (WarehouseServiceException wex) {
1508
          result.wex = wex;
1275
          result.wex = wex;
1509
        }
1276
        }
1510
        return result;
1277
        return result;
1511
      }
1278
      }
Line 1541... Line 1308...
1541
      }
1308
      }
1542
 
1309
 
1543
      protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
1310
      protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
1544
        scanForOrder_result result = new scanForOrder_result();
1311
        scanForOrder_result result = new scanForOrder_result();
1545
        try {
1312
        try {
1546
          iface.scanForOrder(args.inventoryItemId, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId);
1313
          result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
1547
        } catch (WarehouseServiceException wex) {
1314
        } catch (WarehouseServiceException wex) {
1548
          result.wex = wex;
1315
          result.wex = wex;
1549
        }
1316
        }
1550
        return result;
1317
        return result;
1551
      }
1318
      }
Line 4944... Line 4711...
4944
      }
4711
      }
4945
    }
4712
    }
4946
 
4713
 
4947
  }
4714
  }
4948
 
4715
 
4949
  public static class getNonSeralizedInventoryItems_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItems_args, getNonSeralizedInventoryItems_args._Fields>, java.io.Serializable, Cloneable   {
4716
  public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4950
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItems_args");
4717
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
4951
 
4718
 
4952
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
4719
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
4953
    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)2);
-
 
4954
    private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)3);
4720
    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)2);
4955
 
4721
 
4956
    private long itemId; // required
4722
    private long itemId; // required
4957
    private long quantity; // required
-
 
4958
    private long supplierId; // required
4723
    private long warehouseId; // required
4959
 
4724
 
4960
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4725
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4961
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4726
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4962
      ITEM_ID((short)1, "itemId"),
4727
      ITEM_ID((short)1, "itemId"),
4963
      QUANTITY((short)2, "quantity"),
-
 
4964
      SUPPLIER_ID((short)3, "supplierId");
4728
      WAREHOUSE_ID((short)2, "warehouseId");
4965
 
4729
 
4966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4967
 
4731
 
4968
      static {
4732
      static {
4969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 4976... Line 4740...
4976
       */
4740
       */
4977
      public static _Fields findByThriftId(int fieldId) {
4741
      public static _Fields findByThriftId(int fieldId) {
4978
        switch(fieldId) {
4742
        switch(fieldId) {
4979
          case 1: // ITEM_ID
4743
          case 1: // ITEM_ID
4980
            return ITEM_ID;
4744
            return ITEM_ID;
4981
          case 2: // QUANTITY
-
 
4982
            return QUANTITY;
-
 
4983
          case 3: // SUPPLIER_ID
4745
          case 2: // WAREHOUSE_ID
4984
            return SUPPLIER_ID;
4746
            return WAREHOUSE_ID;
4985
          default:
4747
          default:
4986
            return null;
4748
            return null;
4987
        }
4749
        }
4988
      }
4750
      }
4989
 
4751
 
Line 5021... Line 4783...
5021
      }
4783
      }
5022
    }
4784
    }
5023
 
4785
 
5024
    // isset id assignments
4786
    // isset id assignments
5025
    private static final int __ITEMID_ISSET_ID = 0;
4787
    private static final int __ITEMID_ISSET_ID = 0;
5026
    private static final int __QUANTITY_ISSET_ID = 1;
-
 
5027
    private static final int __SUPPLIERID_ISSET_ID = 2;
4788
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5028
    private BitSet __isset_bit_vector = new BitSet(3);
4789
    private BitSet __isset_bit_vector = new BitSet(2);
5029
 
4790
 
5030
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5031
    static {
4792
    static {
5032
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5033
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4794
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4795
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5035
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5036
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5037
      tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4796
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5038
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5039
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4798
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5040
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItems_args.class, metaDataMap);
4799
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
5041
    }
4800
    }
5042
 
4801
 
5043
    public getNonSeralizedInventoryItems_args() {
4802
    public getNonSeralizedInventoryItem_args() {
5044
    }
4803
    }
5045
 
4804
 
5046
    public getNonSeralizedInventoryItems_args(
4805
    public getNonSeralizedInventoryItem_args(
5047
      long itemId,
4806
      long itemId,
5048
      long quantity,
-
 
5049
      long supplierId)
4807
      long warehouseId)
5050
    {
4808
    {
5051
      this();
4809
      this();
5052
      this.itemId = itemId;
4810
      this.itemId = itemId;
5053
      setItemIdIsSet(true);
4811
      setItemIdIsSet(true);
5054
      this.quantity = quantity;
-
 
5055
      setQuantityIsSet(true);
-
 
5056
      this.supplierId = supplierId;
4812
      this.warehouseId = warehouseId;
5057
      setSupplierIdIsSet(true);
4813
      setWarehouseIdIsSet(true);
5058
    }
4814
    }
5059
 
4815
 
5060
    /**
4816
    /**
5061
     * Performs a deep copy on <i>other</i>.
4817
     * Performs a deep copy on <i>other</i>.
5062
     */
4818
     */
5063
    public getNonSeralizedInventoryItems_args(getNonSeralizedInventoryItems_args other) {
4819
    public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
5064
      __isset_bit_vector.clear();
4820
      __isset_bit_vector.clear();
5065
      __isset_bit_vector.or(other.__isset_bit_vector);
4821
      __isset_bit_vector.or(other.__isset_bit_vector);
5066
      this.itemId = other.itemId;
4822
      this.itemId = other.itemId;
5067
      this.quantity = other.quantity;
-
 
5068
      this.supplierId = other.supplierId;
4823
      this.warehouseId = other.warehouseId;
5069
    }
4824
    }
5070
 
4825
 
5071
    public getNonSeralizedInventoryItems_args deepCopy() {
4826
    public getNonSeralizedInventoryItem_args deepCopy() {
5072
      return new getNonSeralizedInventoryItems_args(this);
4827
      return new getNonSeralizedInventoryItem_args(this);
5073
    }
4828
    }
5074
 
4829
 
5075
    @Override
4830
    @Override
5076
    public void clear() {
4831
    public void clear() {
5077
      setItemIdIsSet(false);
4832
      setItemIdIsSet(false);
5078
      this.itemId = 0;
4833
      this.itemId = 0;
5079
      setQuantityIsSet(false);
-
 
5080
      this.quantity = 0;
-
 
5081
      setSupplierIdIsSet(false);
4834
      setWarehouseIdIsSet(false);
5082
      this.supplierId = 0;
4835
      this.warehouseId = 0;
5083
    }
4836
    }
5084
 
4837
 
5085
    public long getItemId() {
4838
    public long getItemId() {
5086
      return this.itemId;
4839
      return this.itemId;
5087
    }
4840
    }
Line 5102... Line 4855...
5102
 
4855
 
5103
    public void setItemIdIsSet(boolean value) {
4856
    public void setItemIdIsSet(boolean value) {
5104
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4857
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
5105
    }
4858
    }
5106
 
4859
 
5107
    public long getQuantity() {
-
 
5108
      return this.quantity;
-
 
5109
    }
-
 
5110
 
-
 
5111
    public void setQuantity(long quantity) {
-
 
5112
      this.quantity = quantity;
-
 
5113
      setQuantityIsSet(true);
-
 
5114
    }
-
 
5115
 
-
 
5116
    public void unsetQuantity() {
-
 
5117
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
5118
    }
-
 
5119
 
-
 
5120
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
5121
    public boolean isSetQuantity() {
-
 
5122
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
5123
    }
-
 
5124
 
-
 
5125
    public void setQuantityIsSet(boolean value) {
-
 
5126
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
5127
    }
-
 
5128
 
-
 
5129
    public long getSupplierId() {
4860
    public long getWarehouseId() {
5130
      return this.supplierId;
4861
      return this.warehouseId;
5131
    }
4862
    }
5132
 
4863
 
5133
    public void setSupplierId(long supplierId) {
4864
    public void setWarehouseId(long warehouseId) {
5134
      this.supplierId = supplierId;
4865
      this.warehouseId = warehouseId;
5135
      setSupplierIdIsSet(true);
4866
      setWarehouseIdIsSet(true);
5136
    }
4867
    }
5137
 
4868
 
5138
    public void unsetSupplierId() {
4869
    public void unsetWarehouseId() {
5139
      __isset_bit_vector.clear(__SUPPLIERID_ISSET_ID);
4870
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
5140
    }
4871
    }
5141
 
4872
 
5142
    /** Returns true if field supplierId is set (has been assigned a value) and false otherwise */
4873
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
5143
    public boolean isSetSupplierId() {
4874
    public boolean isSetWarehouseId() {
5144
      return __isset_bit_vector.get(__SUPPLIERID_ISSET_ID);
4875
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
5145
    }
4876
    }
5146
 
4877
 
5147
    public void setSupplierIdIsSet(boolean value) {
4878
    public void setWarehouseIdIsSet(boolean value) {
5148
      __isset_bit_vector.set(__SUPPLIERID_ISSET_ID, value);
4879
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
5149
    }
4880
    }
5150
 
4881
 
5151
    public void setFieldValue(_Fields field, Object value) {
4882
    public void setFieldValue(_Fields field, Object value) {
5152
      switch (field) {
4883
      switch (field) {
5153
      case ITEM_ID:
4884
      case ITEM_ID:
Line 5156... Line 4887...
5156
        } else {
4887
        } else {
5157
          setItemId((Long)value);
4888
          setItemId((Long)value);
5158
        }
4889
        }
5159
        break;
4890
        break;
5160
 
4891
 
5161
      case QUANTITY:
-
 
5162
        if (value == null) {
-
 
5163
          unsetQuantity();
-
 
5164
        } else {
-
 
5165
          setQuantity((Long)value);
-
 
5166
        }
-
 
5167
        break;
-
 
5168
 
-
 
5169
      case SUPPLIER_ID:
4892
      case WAREHOUSE_ID:
5170
        if (value == null) {
4893
        if (value == null) {
5171
          unsetSupplierId();
4894
          unsetWarehouseId();
5172
        } else {
4895
        } else {
5173
          setSupplierId((Long)value);
4896
          setWarehouseId((Long)value);
5174
        }
4897
        }
5175
        break;
4898
        break;
5176
 
4899
 
5177
      }
4900
      }
5178
    }
4901
    }
Line 5180... Line 4903...
5180
    public Object getFieldValue(_Fields field) {
4903
    public Object getFieldValue(_Fields field) {
5181
      switch (field) {
4904
      switch (field) {
5182
      case ITEM_ID:
4905
      case ITEM_ID:
5183
        return Long.valueOf(getItemId());
4906
        return Long.valueOf(getItemId());
5184
 
4907
 
5185
      case QUANTITY:
-
 
5186
        return Long.valueOf(getQuantity());
-
 
5187
 
-
 
5188
      case SUPPLIER_ID:
4908
      case WAREHOUSE_ID:
5189
        return Long.valueOf(getSupplierId());
4909
        return Long.valueOf(getWarehouseId());
5190
 
4910
 
5191
      }
4911
      }
5192
      throw new IllegalStateException();
4912
      throw new IllegalStateException();
5193
    }
4913
    }
5194
 
4914
 
Line 5199... Line 4919...
5199
      }
4919
      }
5200
 
4920
 
5201
      switch (field) {
4921
      switch (field) {
5202
      case ITEM_ID:
4922
      case ITEM_ID:
5203
        return isSetItemId();
4923
        return isSetItemId();
5204
      case QUANTITY:
-
 
5205
        return isSetQuantity();
-
 
5206
      case SUPPLIER_ID:
4924
      case WAREHOUSE_ID:
5207
        return isSetSupplierId();
4925
        return isSetWarehouseId();
5208
      }
4926
      }
5209
      throw new IllegalStateException();
4927
      throw new IllegalStateException();
5210
    }
4928
    }
5211
 
4929
 
5212
    @Override
4930
    @Override
5213
    public boolean equals(Object that) {
4931
    public boolean equals(Object that) {
5214
      if (that == null)
4932
      if (that == null)
5215
        return false;
4933
        return false;
5216
      if (that instanceof getNonSeralizedInventoryItems_args)
4934
      if (that instanceof getNonSeralizedInventoryItem_args)
5217
        return this.equals((getNonSeralizedInventoryItems_args)that);
4935
        return this.equals((getNonSeralizedInventoryItem_args)that);
5218
      return false;
4936
      return false;
5219
    }
4937
    }
5220
 
4938
 
5221
    public boolean equals(getNonSeralizedInventoryItems_args that) {
4939
    public boolean equals(getNonSeralizedInventoryItem_args that) {
5222
      if (that == null)
4940
      if (that == null)
5223
        return false;
4941
        return false;
5224
 
4942
 
5225
      boolean this_present_itemId = true;
4943
      boolean this_present_itemId = true;
5226
      boolean that_present_itemId = true;
4944
      boolean that_present_itemId = true;
Line 5229... Line 4947...
5229
          return false;
4947
          return false;
5230
        if (this.itemId != that.itemId)
4948
        if (this.itemId != that.itemId)
5231
          return false;
4949
          return false;
5232
      }
4950
      }
5233
 
4951
 
5234
      boolean this_present_quantity = true;
-
 
5235
      boolean that_present_quantity = true;
-
 
5236
      if (this_present_quantity || that_present_quantity) {
-
 
5237
        if (!(this_present_quantity && that_present_quantity))
-
 
5238
          return false;
-
 
5239
        if (this.quantity != that.quantity)
-
 
5240
          return false;
-
 
5241
      }
-
 
5242
 
-
 
5243
      boolean this_present_supplierId = true;
4952
      boolean this_present_warehouseId = true;
5244
      boolean that_present_supplierId = true;
4953
      boolean that_present_warehouseId = true;
5245
      if (this_present_supplierId || that_present_supplierId) {
4954
      if (this_present_warehouseId || that_present_warehouseId) {
5246
        if (!(this_present_supplierId && that_present_supplierId))
4955
        if (!(this_present_warehouseId && that_present_warehouseId))
5247
          return false;
4956
          return false;
5248
        if (this.supplierId != that.supplierId)
4957
        if (this.warehouseId != that.warehouseId)
5249
          return false;
4958
          return false;
5250
      }
4959
      }
5251
 
4960
 
5252
      return true;
4961
      return true;
5253
    }
4962
    }
Line 5255... Line 4964...
5255
    @Override
4964
    @Override
5256
    public int hashCode() {
4965
    public int hashCode() {
5257
      return 0;
4966
      return 0;
5258
    }
4967
    }
5259
 
4968
 
5260
    public int compareTo(getNonSeralizedInventoryItems_args other) {
4969
    public int compareTo(getNonSeralizedInventoryItem_args other) {
5261
      if (!getClass().equals(other.getClass())) {
4970
      if (!getClass().equals(other.getClass())) {
5262
        return getClass().getName().compareTo(other.getClass().getName());
4971
        return getClass().getName().compareTo(other.getClass().getName());
5263
      }
4972
      }
5264
 
4973
 
5265
      int lastComparison = 0;
4974
      int lastComparison = 0;
5266
      getNonSeralizedInventoryItems_args typedOther = (getNonSeralizedInventoryItems_args)other;
4975
      getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
5267
 
4976
 
5268
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4977
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
5269
      if (lastComparison != 0) {
4978
      if (lastComparison != 0) {
5270
        return lastComparison;
4979
        return lastComparison;
5271
      }
4980
      }
Line 5273... Line 4982...
5273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
5274
        if (lastComparison != 0) {
4983
        if (lastComparison != 0) {
5275
          return lastComparison;
4984
          return lastComparison;
5276
        }
4985
        }
5277
      }
4986
      }
5278
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
5279
      if (lastComparison != 0) {
-
 
5280
        return lastComparison;
-
 
5281
      }
-
 
5282
      if (isSetQuantity()) {
-
 
5283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
5284
        if (lastComparison != 0) {
-
 
5285
          return lastComparison;
-
 
5286
        }
-
 
5287
      }
-
 
5288
      lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
4987
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
5289
      if (lastComparison != 0) {
4988
      if (lastComparison != 0) {
5290
        return lastComparison;
4989
        return lastComparison;
5291
      }
4990
      }
5292
      if (isSetSupplierId()) {
4991
      if (isSetWarehouseId()) {
5293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierId, typedOther.supplierId);
4992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
5294
        if (lastComparison != 0) {
4993
        if (lastComparison != 0) {
5295
          return lastComparison;
4994
          return lastComparison;
5296
        }
4995
        }
5297
      }
4996
      }
5298
      return 0;
4997
      return 0;
Line 5318... Line 5017...
5318
              setItemIdIsSet(true);
5017
              setItemIdIsSet(true);
5319
            } else { 
5018
            } else { 
5320
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5321
            }
5020
            }
5322
            break;
5021
            break;
5323
          case 2: // QUANTITY
5022
          case 2: // WAREHOUSE_ID
5324
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5023
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5325
              this.quantity = iprot.readI64();
-
 
5326
              setQuantityIsSet(true);
-
 
5327
            } else { 
-
 
5328
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5329
            }
-
 
5330
            break;
-
 
5331
          case 3: // SUPPLIER_ID
-
 
5332
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5333
              this.supplierId = iprot.readI64();
5024
              this.warehouseId = iprot.readI64();
5334
              setSupplierIdIsSet(true);
5025
              setWarehouseIdIsSet(true);
5335
            } else { 
5026
            } else { 
5336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5337
            }
5028
            }
5338
            break;
5029
            break;
5339
          default:
5030
          default:
Line 5350... Line 5041...
5350
 
5041
 
5351
      oprot.writeStructBegin(STRUCT_DESC);
5042
      oprot.writeStructBegin(STRUCT_DESC);
5352
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5043
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5353
      oprot.writeI64(this.itemId);
5044
      oprot.writeI64(this.itemId);
5354
      oprot.writeFieldEnd();
5045
      oprot.writeFieldEnd();
5355
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
5356
      oprot.writeI64(this.quantity);
-
 
5357
      oprot.writeFieldEnd();
-
 
5358
      oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
5046
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5359
      oprot.writeI64(this.supplierId);
5047
      oprot.writeI64(this.warehouseId);
5360
      oprot.writeFieldEnd();
5048
      oprot.writeFieldEnd();
5361
      oprot.writeFieldStop();
5049
      oprot.writeFieldStop();
5362
      oprot.writeStructEnd();
5050
      oprot.writeStructEnd();
5363
    }
5051
    }
5364
 
5052
 
5365
    @Override
5053
    @Override
5366
    public String toString() {
5054
    public String toString() {
5367
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItems_args(");
5055
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
5368
      boolean first = true;
5056
      boolean first = true;
5369
 
5057
 
5370
      sb.append("itemId:");
5058
      sb.append("itemId:");
5371
      sb.append(this.itemId);
5059
      sb.append(this.itemId);
5372
      first = false;
5060
      first = false;
5373
      if (!first) sb.append(", ");
5061
      if (!first) sb.append(", ");
5374
      sb.append("quantity:");
-
 
5375
      sb.append(this.quantity);
-
 
5376
      first = false;
-
 
5377
      if (!first) sb.append(", ");
-
 
5378
      sb.append("supplierId:");
5062
      sb.append("warehouseId:");
5379
      sb.append(this.supplierId);
5063
      sb.append(this.warehouseId);
5380
      first = false;
5064
      first = false;
5381
      sb.append(")");
5065
      sb.append(")");
5382
      return sb.toString();
5066
      return sb.toString();
5383
    }
5067
    }
5384
 
5068
 
Line 5404... Line 5088...
5404
      }
5088
      }
5405
    }
5089
    }
5406
 
5090
 
5407
  }
5091
  }
5408
 
5092
 
5409
  public static class getNonSeralizedInventoryItems_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItems_result, getNonSeralizedInventoryItems_result._Fields>, java.io.Serializable, Cloneable   {
5093
  public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
5410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItems_result");
5094
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
5411
 
5095
 
5412
    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);
5096
    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);
-
 
5097
    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);
5413
 
5098
 
5414
    private List<InventoryItem> success; // required
5099
    private InventoryItem success; // required
-
 
5100
    private WarehouseServiceException wex; // required
5415
 
5101
 
5416
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5102
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5417
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5103
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5418
      SUCCESS((short)0, "success");
5104
      SUCCESS((short)0, "success"),
-
 
5105
      WEX((short)1, "wex");
5419
 
5106
 
5420
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5421
 
5108
 
5422
      static {
5109
      static {
5423
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 5430... Line 5117...
5430
       */
5117
       */
5431
      public static _Fields findByThriftId(int fieldId) {
5118
      public static _Fields findByThriftId(int fieldId) {
5432
        switch(fieldId) {
5119
        switch(fieldId) {
5433
          case 0: // SUCCESS
5120
          case 0: // SUCCESS
5434
            return SUCCESS;
5121
            return SUCCESS;
-
 
5122
          case 1: // WEX
-
 
5123
            return WEX;
5435
          default:
5124
          default:
5436
            return null;
5125
            return null;
5437
        }
5126
        }
5438
      }
5127
      }
5439
 
5128
 
Line 5475... Line 5164...
5475
 
5164
 
5476
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5165
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5477
    static {
5166
    static {
5478
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5167
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5479
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5168
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5480
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5169
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
-
 
5170
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5481
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
5171
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5172
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItems_result.class, metaDataMap);
5173
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
5484
    }
5174
    }
5485
 
5175
 
5486
    public getNonSeralizedInventoryItems_result() {
5176
    public getNonSeralizedInventoryItem_result() {
5487
    }
5177
    }
5488
 
5178
 
5489
    public getNonSeralizedInventoryItems_result(
5179
    public getNonSeralizedInventoryItem_result(
5490
      List<InventoryItem> success)
5180
      InventoryItem success,
-
 
5181
      WarehouseServiceException wex)
5491
    {
5182
    {
5492
      this();
5183
      this();
5493
      this.success = success;
5184
      this.success = success;
-
 
5185
      this.wex = wex;
5494
    }
5186
    }
5495
 
5187
 
5496
    /**
5188
    /**
5497
     * Performs a deep copy on <i>other</i>.
5189
     * Performs a deep copy on <i>other</i>.
5498
     */
5190
     */
5499
    public getNonSeralizedInventoryItems_result(getNonSeralizedInventoryItems_result other) {
5191
    public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
5500
      if (other.isSetSuccess()) {
5192
      if (other.isSetSuccess()) {
5501
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
-
 
5502
        for (InventoryItem other_element : other.success) {
-
 
5503
          __this__success.add(new InventoryItem(other_element));
5193
        this.success = new InventoryItem(other.success);
5504
        }
5194
      }
-
 
5195
      if (other.isSetWex()) {
5505
        this.success = __this__success;
5196
        this.wex = new WarehouseServiceException(other.wex);
5506
      }
5197
      }
5507
    }
5198
    }
5508
 
5199
 
5509
    public getNonSeralizedInventoryItems_result deepCopy() {
5200
    public getNonSeralizedInventoryItem_result deepCopy() {
5510
      return new getNonSeralizedInventoryItems_result(this);
5201
      return new getNonSeralizedInventoryItem_result(this);
5511
    }
5202
    }
5512
 
5203
 
5513
    @Override
5204
    @Override
5514
    public void clear() {
5205
    public void clear() {
5515
      this.success = null;
5206
      this.success = null;
-
 
5207
      this.wex = null;
5516
    }
5208
    }
5517
 
5209
 
5518
    public int getSuccessSize() {
-
 
5519
      return (this.success == null) ? 0 : this.success.size();
-
 
5520
    }
-
 
5521
 
-
 
5522
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
-
 
5523
      return (this.success == null) ? null : this.success.iterator();
-
 
5524
    }
-
 
5525
 
-
 
5526
    public void addToSuccess(InventoryItem elem) {
-
 
5527
      if (this.success == null) {
-
 
5528
        this.success = new ArrayList<InventoryItem>();
-
 
5529
      }
-
 
5530
      this.success.add(elem);
-
 
5531
    }
-
 
5532
 
-
 
5533
    public List<InventoryItem> getSuccess() {
5210
    public InventoryItem getSuccess() {
5534
      return this.success;
5211
      return this.success;
5535
    }
5212
    }
5536
 
5213
 
5537
    public void setSuccess(List<InventoryItem> success) {
5214
    public void setSuccess(InventoryItem success) {
5538
      this.success = success;
5215
      this.success = success;
5539
    }
5216
    }
5540
 
5217
 
5541
    public void unsetSuccess() {
5218
    public void unsetSuccess() {
5542
      this.success = null;
5219
      this.success = null;
Line 5551... Line 5228...
5551
      if (!value) {
5228
      if (!value) {
5552
        this.success = null;
5229
        this.success = null;
5553
      }
5230
      }
5554
    }
5231
    }
5555
 
5232
 
5556
    public void setFieldValue(_Fields field, Object value) {
-
 
5557
      switch (field) {
-
 
5558
      case SUCCESS:
-
 
5559
        if (value == null) {
-
 
5560
          unsetSuccess();
-
 
5561
        } else {
-
 
5562
          setSuccess((List<InventoryItem>)value);
-
 
5563
        }
-
 
5564
        break;
-
 
5565
 
-
 
5566
      }
-
 
5567
    }
-
 
5568
 
-
 
5569
    public Object getFieldValue(_Fields field) {
5233
    public WarehouseServiceException getWex() {
5570
      switch (field) {
-
 
5571
      case SUCCESS:
-
 
5572
        return getSuccess();
-
 
5573
 
-
 
5574
      }
-
 
5575
      throw new IllegalStateException();
-
 
5576
    }
-
 
5577
 
-
 
5578
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
5579
    public boolean isSet(_Fields field) {
-
 
5580
      if (field == null) {
-
 
5581
        throw new IllegalArgumentException();
-
 
5582
      }
-
 
5583
 
-
 
5584
      switch (field) {
-
 
5585
      case SUCCESS:
-
 
5586
        return isSetSuccess();
-
 
5587
      }
-
 
5588
      throw new IllegalStateException();
-
 
5589
    }
-
 
5590
 
-
 
5591
    @Override
-
 
5592
    public boolean equals(Object that) {
-
 
5593
      if (that == null)
-
 
5594
        return false;
-
 
5595
      if (that instanceof getNonSeralizedInventoryItems_result)
-
 
5596
        return this.equals((getNonSeralizedInventoryItems_result)that);
-
 
5597
      return false;
5234
      return this.wex;
5598
    }
-
 
5599
 
-
 
5600
    public boolean equals(getNonSeralizedInventoryItems_result that) {
-
 
5601
      if (that == null)
-
 
5602
        return false;
-
 
5603
 
-
 
5604
      boolean this_present_success = true && this.isSetSuccess();
-
 
5605
      boolean that_present_success = true && that.isSetSuccess();
-
 
5606
      if (this_present_success || that_present_success) {
-
 
5607
        if (!(this_present_success && that_present_success))
-
 
5608
          return false;
-
 
5609
        if (!this.success.equals(that.success))
-
 
5610
          return false;
-
 
5611
      }
-
 
5612
 
-
 
5613
      return true;
-
 
5614
    }
-
 
5615
 
-
 
5616
    @Override
-
 
5617
    public int hashCode() {
-
 
5618
      return 0;
-
 
5619
    }
-
 
5620
 
-
 
5621
    public int compareTo(getNonSeralizedInventoryItems_result other) {
-
 
5622
      if (!getClass().equals(other.getClass())) {
-
 
5623
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5624
      }
-
 
5625
 
-
 
5626
      int lastComparison = 0;
-
 
5627
      getNonSeralizedInventoryItems_result typedOther = (getNonSeralizedInventoryItems_result)other;
-
 
5628
 
-
 
5629
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
5630
      if (lastComparison != 0) {
-
 
5631
        return lastComparison;
-
 
5632
      }
-
 
5633
      if (isSetSuccess()) {
-
 
5634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
5635
        if (lastComparison != 0) {
-
 
5636
          return lastComparison;
-
 
5637
        }
-
 
5638
      }
-
 
5639
      return 0;
-
 
5640
    }
-
 
5641
 
-
 
5642
    public _Fields fieldForId(int fieldId) {
-
 
5643
      return _Fields.findByThriftId(fieldId);
-
 
5644
    }
-
 
5645
 
-
 
5646
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
5647
      org.apache.thrift.protocol.TField field;
-
 
5648
      iprot.readStructBegin();
-
 
5649
      while (true)
-
 
5650
      {
-
 
5651
        field = iprot.readFieldBegin();
-
 
5652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
5653
          break;
-
 
5654
        }
-
 
5655
        switch (field.id) {
-
 
5656
          case 0: // SUCCESS
-
 
5657
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
5658
              {
-
 
5659
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
-
 
5660
                this.success = new ArrayList<InventoryItem>(_list0.size);
-
 
5661
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
-
 
5662
                {
-
 
5663
                  InventoryItem _elem2; // required
-
 
5664
                  _elem2 = new InventoryItem();
-
 
5665
                  _elem2.read(iprot);
-
 
5666
                  this.success.add(_elem2);
-
 
5667
                }
-
 
5668
                iprot.readListEnd();
-
 
5669
              }
-
 
5670
            } else { 
-
 
5671
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5672
            }
-
 
5673
            break;
-
 
5674
          default:
-
 
5675
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5676
        }
-
 
5677
        iprot.readFieldEnd();
-
 
5678
      }
-
 
5679
      iprot.readStructEnd();
-
 
5680
      validate();
-
 
5681
    }
-
 
5682
 
-
 
5683
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
5684
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5685
 
-
 
5686
      if (this.isSetSuccess()) {
-
 
5687
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5688
        {
-
 
5689
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
5690
          for (InventoryItem _iter3 : this.success)
-
 
5691
          {
-
 
5692
            _iter3.write(oprot);
-
 
5693
          }
-
 
5694
          oprot.writeListEnd();
-
 
5695
        }
-
 
5696
        oprot.writeFieldEnd();
-
 
5697
      }
-
 
5698
      oprot.writeFieldStop();
-
 
5699
      oprot.writeStructEnd();
-
 
5700
    }
-
 
5701
 
-
 
5702
    @Override
-
 
5703
    public String toString() {
-
 
5704
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItems_result(");
-
 
5705
      boolean first = true;
-
 
5706
 
-
 
5707
      sb.append("success:");
-
 
5708
      if (this.success == null) {
-
 
5709
        sb.append("null");
-
 
5710
      } else {
-
 
5711
        sb.append(this.success);
-
 
5712
      }
-
 
5713
      first = false;
-
 
5714
      sb.append(")");
-
 
5715
      return sb.toString();
-
 
5716
    }
5235
    }
5717
 
5236
 
5718
    public void validate() throws org.apache.thrift.TException {
5237
    public void setWex(WarehouseServiceException wex) {
5719
      // check for required fields
5238
      this.wex = wex;
5720
    }
5239
    }
5721
 
5240
 
5722
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5723
      try {
5241
    public void unsetWex() {
5724
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5725
      } catch (org.apache.thrift.TException te) {
-
 
5726
        throw new java.io.IOException(te);
5242
      this.wex = null;
5727
      }
-
 
5728
    }
5243
    }
5729
 
5244
 
5730
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5245
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
5731
      try {
-
 
5732
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5733
      } catch (org.apache.thrift.TException te) {
5246
    public boolean isSetWex() {
5734
        throw new java.io.IOException(te);
5247
      return this.wex != null;
5735
      }
-
 
5736
    }
5248
    }
5737
 
5249
 
5738
  }
-
 
5739
 
-
 
5740
  public static class getInventoryItems_args implements org.apache.thrift.TBase<getInventoryItems_args, getInventoryItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
5741
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItems_args");
-
 
5742
 
-
 
5743
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
5744
 
-
 
5745
    private long itemId; // required
-
 
5746
 
-
 
5747
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5748
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
5749
      ITEM_ID((short)1, "itemId");
-
 
5750
 
-
 
5751
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5752
 
-
 
5753
      static {
-
 
5754
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5755
          byName.put(field.getFieldName(), field);
-
 
5756
        }
-
 
5757
      }
-
 
5758
 
-
 
5759
      /**
-
 
5760
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5761
       */
-
 
5762
      public static _Fields findByThriftId(int fieldId) {
5250
    public void setWexIsSet(boolean value) {
5763
        switch(fieldId) {
-
 
5764
          case 1: // ITEM_ID
-
 
5765
            return ITEM_ID;
-
 
5766
          default:
5251
      if (!value) {
5767
            return null;
5252
        this.wex = null;
5768
        }
-
 
5769
      }
-
 
5770
 
-
 
5771
      /**
-
 
5772
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5773
       * if it is not found.
-
 
5774
       */
-
 
5775
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5776
        _Fields fields = findByThriftId(fieldId);
-
 
5777
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5778
        return fields;
-
 
5779
      }
-
 
5780
 
-
 
5781
      /**
-
 
5782
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5783
       */
-
 
5784
      public static _Fields findByName(String name) {
-
 
5785
        return byName.get(name);
-
 
5786
      }
-
 
5787
 
-
 
5788
      private final short _thriftId;
-
 
5789
      private final String _fieldName;
-
 
5790
 
-
 
5791
      _Fields(short thriftId, String fieldName) {
-
 
5792
        _thriftId = thriftId;
-
 
5793
        _fieldName = fieldName;
-
 
5794
      }
-
 
5795
 
-
 
5796
      public short getThriftFieldId() {
-
 
5797
        return _thriftId;
-
 
5798
      }
-
 
5799
 
-
 
5800
      public String getFieldName() {
-
 
5801
        return _fieldName;
-
 
5802
      }
5253
      }
5803
    }
5254
    }
5804
 
5255
 
5805
    // isset id assignments
-
 
5806
    private static final int __ITEMID_ISSET_ID = 0;
-
 
5807
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
5808
 
-
 
5809
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
5810
    static {
-
 
5811
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5812
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5813
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5814
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
5815
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItems_args.class, metaDataMap);
-
 
5816
    }
-
 
5817
 
-
 
5818
    public getInventoryItems_args() {
-
 
5819
    }
-
 
5820
 
-
 
5821
    public getInventoryItems_args(
-
 
5822
      long itemId)
-
 
5823
    {
-
 
5824
      this();
-
 
5825
      this.itemId = itemId;
-
 
5826
      setItemIdIsSet(true);
-
 
5827
    }
-
 
5828
 
-
 
5829
    /**
-
 
5830
     * Performs a deep copy on <i>other</i>.
-
 
5831
     */
-
 
5832
    public getInventoryItems_args(getInventoryItems_args other) {
-
 
5833
      __isset_bit_vector.clear();
-
 
5834
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5835
      this.itemId = other.itemId;
-
 
5836
    }
-
 
5837
 
-
 
5838
    public getInventoryItems_args deepCopy() {
-
 
5839
      return new getInventoryItems_args(this);
-
 
5840
    }
-
 
5841
 
-
 
5842
    @Override
-
 
5843
    public void clear() {
-
 
5844
      setItemIdIsSet(false);
-
 
5845
      this.itemId = 0;
-
 
5846
    }
-
 
5847
 
-
 
5848
    public long getItemId() {
-
 
5849
      return this.itemId;
-
 
5850
    }
-
 
5851
 
-
 
5852
    public void setItemId(long itemId) {
-
 
5853
      this.itemId = itemId;
-
 
5854
      setItemIdIsSet(true);
-
 
5855
    }
-
 
5856
 
-
 
5857
    public void unsetItemId() {
-
 
5858
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
5859
    }
-
 
5860
 
-
 
5861
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
5862
    public boolean isSetItemId() {
-
 
5863
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
5864
    }
-
 
5865
 
-
 
5866
    public void setItemIdIsSet(boolean value) {
-
 
5867
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
5868
    }
-
 
5869
 
-
 
5870
    public void setFieldValue(_Fields field, Object value) {
5256
    public void setFieldValue(_Fields field, Object value) {
5871
      switch (field) {
5257
      switch (field) {
5872
      case ITEM_ID:
5258
      case SUCCESS:
5873
        if (value == null) {
5259
        if (value == null) {
5874
          unsetItemId();
5260
          unsetSuccess();
5875
        } else {
5261
        } else {
5876
          setItemId((Long)value);
5262
          setSuccess((InventoryItem)value);
5877
        }
5263
        }
5878
        break;
5264
        break;
5879
 
5265
 
5880
      }
-
 
5881
    }
-
 
5882
 
-
 
5883
    public Object getFieldValue(_Fields field) {
-
 
5884
      switch (field) {
-
 
5885
      case ITEM_ID:
5266
      case WEX:
5886
        return Long.valueOf(getItemId());
-
 
5887
 
-
 
5888
      }
-
 
5889
      throw new IllegalStateException();
-
 
5890
    }
-
 
5891
 
-
 
5892
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
5893
    public boolean isSet(_Fields field) {
-
 
5894
      if (field == null) {
-
 
5895
        throw new IllegalArgumentException();
-
 
5896
      }
-
 
5897
 
-
 
5898
      switch (field) {
-
 
5899
      case ITEM_ID:
-
 
5900
        return isSetItemId();
-
 
5901
      }
-
 
5902
      throw new IllegalStateException();
-
 
5903
    }
-
 
5904
 
-
 
5905
    @Override
-
 
5906
    public boolean equals(Object that) {
-
 
5907
      if (that == null)
-
 
5908
        return false;
-
 
5909
      if (that instanceof getInventoryItems_args)
-
 
5910
        return this.equals((getInventoryItems_args)that);
-
 
5911
      return false;
-
 
5912
    }
-
 
5913
 
-
 
5914
    public boolean equals(getInventoryItems_args that) {
-
 
5915
      if (that == null)
-
 
5916
        return false;
-
 
5917
 
-
 
5918
      boolean this_present_itemId = true;
-
 
5919
      boolean that_present_itemId = true;
-
 
5920
      if (this_present_itemId || that_present_itemId) {
-
 
5921
        if (!(this_present_itemId && that_present_itemId))
-
 
5922
          return false;
-
 
5923
        if (this.itemId != that.itemId)
-
 
5924
          return false;
-
 
5925
      }
-
 
5926
 
-
 
5927
      return true;
-
 
5928
    }
-
 
5929
 
-
 
5930
    @Override
-
 
5931
    public int hashCode() {
-
 
5932
      return 0;
-
 
5933
    }
-
 
5934
 
-
 
5935
    public int compareTo(getInventoryItems_args other) {
-
 
5936
      if (!getClass().equals(other.getClass())) {
-
 
5937
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5938
      }
-
 
5939
 
-
 
5940
      int lastComparison = 0;
-
 
5941
      getInventoryItems_args typedOther = (getInventoryItems_args)other;
-
 
5942
 
-
 
5943
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
5944
      if (lastComparison != 0) {
-
 
5945
        return lastComparison;
-
 
5946
      }
-
 
5947
      if (isSetItemId()) {
-
 
5948
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
5949
        if (lastComparison != 0) {
-
 
5950
          return lastComparison;
-
 
5951
        }
-
 
5952
      }
-
 
5953
      return 0;
-
 
5954
    }
-
 
5955
 
-
 
5956
    public _Fields fieldForId(int fieldId) {
-
 
5957
      return _Fields.findByThriftId(fieldId);
-
 
5958
    }
-
 
5959
 
-
 
5960
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
5961
      org.apache.thrift.protocol.TField field;
-
 
5962
      iprot.readStructBegin();
-
 
5963
      while (true)
-
 
5964
      {
-
 
5965
        field = iprot.readFieldBegin();
-
 
5966
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
5967
          break;
-
 
5968
        }
-
 
5969
        switch (field.id) {
-
 
5970
          case 1: // ITEM_ID
-
 
5971
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5972
              this.itemId = iprot.readI64();
-
 
5973
              setItemIdIsSet(true);
-
 
5974
            } else { 
-
 
5975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5976
            }
-
 
5977
            break;
-
 
5978
          default:
-
 
5979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5980
        }
-
 
5981
        iprot.readFieldEnd();
-
 
5982
      }
-
 
5983
      iprot.readStructEnd();
-
 
5984
      validate();
-
 
5985
    }
-
 
5986
 
-
 
5987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
5988
      validate();
-
 
5989
 
-
 
5990
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5991
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
5992
      oprot.writeI64(this.itemId);
-
 
5993
      oprot.writeFieldEnd();
-
 
5994
      oprot.writeFieldStop();
-
 
5995
      oprot.writeStructEnd();
-
 
5996
    }
-
 
5997
 
-
 
5998
    @Override
-
 
5999
    public String toString() {
-
 
6000
      StringBuilder sb = new StringBuilder("getInventoryItems_args(");
-
 
6001
      boolean first = true;
-
 
6002
 
-
 
6003
      sb.append("itemId:");
-
 
6004
      sb.append(this.itemId);
-
 
6005
      first = false;
-
 
6006
      sb.append(")");
-
 
6007
      return sb.toString();
-
 
6008
    }
-
 
6009
 
-
 
6010
    public void validate() throws org.apache.thrift.TException {
-
 
6011
      // check for required fields
-
 
6012
    }
-
 
6013
 
-
 
6014
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6015
      try {
-
 
6016
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6017
      } catch (org.apache.thrift.TException te) {
-
 
6018
        throw new java.io.IOException(te);
-
 
6019
      }
-
 
6020
    }
-
 
6021
 
-
 
6022
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6023
      try {
-
 
6024
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
6025
        __isset_bit_vector = new BitSet(1);
-
 
6026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6027
      } catch (org.apache.thrift.TException te) {
-
 
6028
        throw new java.io.IOException(te);
-
 
6029
      }
-
 
6030
    }
-
 
6031
 
-
 
6032
  }
-
 
6033
 
-
 
6034
  public static class getInventoryItems_result implements org.apache.thrift.TBase<getInventoryItems_result, getInventoryItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
6035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItems_result");
-
 
6036
 
-
 
6037
    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);
-
 
6038
 
-
 
6039
    private List<InventoryItem> success; // required
-
 
6040
 
-
 
6041
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6042
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6043
      SUCCESS((short)0, "success");
-
 
6044
 
-
 
6045
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6046
 
-
 
6047
      static {
-
 
6048
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6049
          byName.put(field.getFieldName(), field);
-
 
6050
        }
-
 
6051
      }
-
 
6052
 
-
 
6053
      /**
-
 
6054
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6055
       */
-
 
6056
      public static _Fields findByThriftId(int fieldId) {
-
 
6057
        switch(fieldId) {
-
 
6058
          case 0: // SUCCESS
-
 
6059
            return SUCCESS;
-
 
6060
          default:
-
 
6061
            return null;
-
 
6062
        }
-
 
6063
      }
-
 
6064
 
-
 
6065
      /**
-
 
6066
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6067
       * if it is not found.
-
 
6068
       */
-
 
6069
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6070
        _Fields fields = findByThriftId(fieldId);
-
 
6071
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6072
        return fields;
-
 
6073
      }
-
 
6074
 
-
 
6075
      /**
-
 
6076
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6077
       */
-
 
6078
      public static _Fields findByName(String name) {
-
 
6079
        return byName.get(name);
-
 
6080
      }
-
 
6081
 
-
 
6082
      private final short _thriftId;
-
 
6083
      private final String _fieldName;
-
 
6084
 
-
 
6085
      _Fields(short thriftId, String fieldName) {
-
 
6086
        _thriftId = thriftId;
-
 
6087
        _fieldName = fieldName;
-
 
6088
      }
-
 
6089
 
-
 
6090
      public short getThriftFieldId() {
-
 
6091
        return _thriftId;
-
 
6092
      }
-
 
6093
 
-
 
6094
      public String getFieldName() {
-
 
6095
        return _fieldName;
-
 
6096
      }
-
 
6097
    }
-
 
6098
 
-
 
6099
    // isset id assignments
-
 
6100
 
-
 
6101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6102
    static {
-
 
6103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6104
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6105
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
6106
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
6107
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6108
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItems_result.class, metaDataMap);
-
 
6109
    }
-
 
6110
 
-
 
6111
    public getInventoryItems_result() {
-
 
6112
    }
-
 
6113
 
-
 
6114
    public getInventoryItems_result(
-
 
6115
      List<InventoryItem> success)
-
 
6116
    {
-
 
6117
      this();
-
 
6118
      this.success = success;
-
 
6119
    }
-
 
6120
 
-
 
6121
    /**
-
 
6122
     * Performs a deep copy on <i>other</i>.
-
 
6123
     */
-
 
6124
    public getInventoryItems_result(getInventoryItems_result other) {
-
 
6125
      if (other.isSetSuccess()) {
-
 
6126
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
-
 
6127
        for (InventoryItem other_element : other.success) {
-
 
6128
          __this__success.add(new InventoryItem(other_element));
-
 
6129
        }
-
 
6130
        this.success = __this__success;
-
 
6131
      }
-
 
6132
    }
-
 
6133
 
-
 
6134
    public getInventoryItems_result deepCopy() {
-
 
6135
      return new getInventoryItems_result(this);
-
 
6136
    }
-
 
6137
 
-
 
6138
    @Override
-
 
6139
    public void clear() {
-
 
6140
      this.success = null;
-
 
6141
    }
-
 
6142
 
-
 
6143
    public int getSuccessSize() {
-
 
6144
      return (this.success == null) ? 0 : this.success.size();
-
 
6145
    }
-
 
6146
 
-
 
6147
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
-
 
6148
      return (this.success == null) ? null : this.success.iterator();
-
 
6149
    }
-
 
6150
 
-
 
6151
    public void addToSuccess(InventoryItem elem) {
-
 
6152
      if (this.success == null) {
-
 
6153
        this.success = new ArrayList<InventoryItem>();
-
 
6154
      }
-
 
6155
      this.success.add(elem);
-
 
6156
    }
-
 
6157
 
-
 
6158
    public List<InventoryItem> getSuccess() {
-
 
6159
      return this.success;
-
 
6160
    }
-
 
6161
 
-
 
6162
    public void setSuccess(List<InventoryItem> success) {
-
 
6163
      this.success = success;
-
 
6164
    }
-
 
6165
 
-
 
6166
    public void unsetSuccess() {
-
 
6167
      this.success = null;
-
 
6168
    }
-
 
6169
 
-
 
6170
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
6171
    public boolean isSetSuccess() {
-
 
6172
      return this.success != null;
-
 
6173
    }
-
 
6174
 
-
 
6175
    public void setSuccessIsSet(boolean value) {
-
 
6176
      if (!value) {
-
 
6177
        this.success = null;
-
 
6178
      }
-
 
6179
    }
-
 
6180
 
-
 
6181
    public void setFieldValue(_Fields field, Object value) {
-
 
6182
      switch (field) {
-
 
6183
      case SUCCESS:
-
 
6184
        if (value == null) {
5267
        if (value == null) {
6185
          unsetSuccess();
5268
          unsetWex();
6186
        } else {
5269
        } else {
6187
          setSuccess((List<InventoryItem>)value);
5270
          setWex((WarehouseServiceException)value);
6188
        }
5271
        }
6189
        break;
5272
        break;
6190
 
5273
 
6191
      }
5274
      }
6192
    }
5275
    }
Line 6194... Line 5277...
6194
    public Object getFieldValue(_Fields field) {
5277
    public Object getFieldValue(_Fields field) {
6195
      switch (field) {
5278
      switch (field) {
6196
      case SUCCESS:
5279
      case SUCCESS:
6197
        return getSuccess();
5280
        return getSuccess();
6198
 
5281
 
-
 
5282
      case WEX:
-
 
5283
        return getWex();
-
 
5284
 
6199
      }
5285
      }
6200
      throw new IllegalStateException();
5286
      throw new IllegalStateException();
6201
    }
5287
    }
6202
 
5288
 
6203
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 6207... Line 5293...
6207
      }
5293
      }
6208
 
5294
 
6209
      switch (field) {
5295
      switch (field) {
6210
      case SUCCESS:
5296
      case SUCCESS:
6211
        return isSetSuccess();
5297
        return isSetSuccess();
-
 
5298
      case WEX:
-
 
5299
        return isSetWex();
6212
      }
5300
      }
6213
      throw new IllegalStateException();
5301
      throw new IllegalStateException();
6214
    }
5302
    }
6215
 
5303
 
6216
    @Override
5304
    @Override
6217
    public boolean equals(Object that) {
5305
    public boolean equals(Object that) {
6218
      if (that == null)
5306
      if (that == null)
6219
        return false;
5307
        return false;
6220
      if (that instanceof getInventoryItems_result)
5308
      if (that instanceof getNonSeralizedInventoryItem_result)
6221
        return this.equals((getInventoryItems_result)that);
5309
        return this.equals((getNonSeralizedInventoryItem_result)that);
6222
      return false;
5310
      return false;
6223
    }
5311
    }
6224
 
5312
 
6225
    public boolean equals(getInventoryItems_result that) {
5313
    public boolean equals(getNonSeralizedInventoryItem_result that) {
6226
      if (that == null)
5314
      if (that == null)
6227
        return false;
5315
        return false;
6228
 
5316
 
6229
      boolean this_present_success = true && this.isSetSuccess();
5317
      boolean this_present_success = true && this.isSetSuccess();
6230
      boolean that_present_success = true && that.isSetSuccess();
5318
      boolean that_present_success = true && that.isSetSuccess();
Line 6233... Line 5321...
6233
          return false;
5321
          return false;
6234
        if (!this.success.equals(that.success))
5322
        if (!this.success.equals(that.success))
6235
          return false;
5323
          return false;
6236
      }
5324
      }
6237
 
5325
 
6238
      return true;
-
 
6239
    }
-
 
6240
 
-
 
6241
    @Override
-
 
6242
    public int hashCode() {
-
 
6243
      return 0;
-
 
6244
    }
-
 
6245
 
-
 
6246
    public int compareTo(getInventoryItems_result other) {
-
 
6247
      if (!getClass().equals(other.getClass())) {
-
 
6248
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6249
      }
-
 
6250
 
-
 
6251
      int lastComparison = 0;
-
 
6252
      getInventoryItems_result typedOther = (getInventoryItems_result)other;
-
 
6253
 
-
 
6254
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
6255
      if (lastComparison != 0) {
-
 
6256
        return lastComparison;
-
 
6257
      }
-
 
6258
      if (isSetSuccess()) {
-
 
6259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
6260
        if (lastComparison != 0) {
-
 
6261
          return lastComparison;
-
 
6262
        }
-
 
6263
      }
-
 
6264
      return 0;
-
 
6265
    }
-
 
6266
 
-
 
6267
    public _Fields fieldForId(int fieldId) {
-
 
6268
      return _Fields.findByThriftId(fieldId);
-
 
6269
    }
-
 
6270
 
-
 
6271
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6272
      org.apache.thrift.protocol.TField field;
-
 
6273
      iprot.readStructBegin();
-
 
6274
      while (true)
-
 
6275
      {
-
 
6276
        field = iprot.readFieldBegin();
-
 
6277
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6278
          break;
-
 
6279
        }
-
 
6280
        switch (field.id) {
-
 
6281
          case 0: // SUCCESS
-
 
6282
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
6283
              {
-
 
6284
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
-
 
6285
                this.success = new ArrayList<InventoryItem>(_list4.size);
-
 
6286
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
-
 
6287
                {
-
 
6288
                  InventoryItem _elem6; // required
-
 
6289
                  _elem6 = new InventoryItem();
-
 
6290
                  _elem6.read(iprot);
-
 
6291
                  this.success.add(_elem6);
-
 
6292
                }
-
 
6293
                iprot.readListEnd();
-
 
6294
              }
-
 
6295
            } else { 
-
 
6296
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6297
            }
-
 
6298
            break;
-
 
6299
          default:
-
 
6300
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6301
        }
-
 
6302
        iprot.readFieldEnd();
-
 
6303
      }
-
 
6304
      iprot.readStructEnd();
-
 
6305
      validate();
-
 
6306
    }
-
 
6307
 
-
 
6308
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
6309
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6310
 
-
 
6311
      if (this.isSetSuccess()) {
-
 
6312
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6313
        {
-
 
6314
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
6315
          for (InventoryItem _iter7 : this.success)
-
 
6316
          {
-
 
6317
            _iter7.write(oprot);
-
 
6318
          }
-
 
6319
          oprot.writeListEnd();
-
 
6320
        }
-
 
6321
        oprot.writeFieldEnd();
-
 
6322
      }
-
 
6323
      oprot.writeFieldStop();
-
 
6324
      oprot.writeStructEnd();
-
 
6325
    }
-
 
6326
 
-
 
6327
    @Override
-
 
6328
    public String toString() {
-
 
6329
      StringBuilder sb = new StringBuilder("getInventoryItems_result(");
-
 
6330
      boolean first = true;
-
 
6331
 
-
 
6332
      sb.append("success:");
-
 
6333
      if (this.success == null) {
-
 
6334
        sb.append("null");
-
 
6335
      } else {
-
 
6336
        sb.append(this.success);
-
 
6337
      }
-
 
6338
      first = false;
-
 
6339
      sb.append(")");
-
 
6340
      return sb.toString();
-
 
6341
    }
-
 
6342
 
-
 
6343
    public void validate() throws org.apache.thrift.TException {
-
 
6344
      // check for required fields
-
 
6345
    }
-
 
6346
 
-
 
6347
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6348
      try {
-
 
6349
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6350
      } catch (org.apache.thrift.TException te) {
-
 
6351
        throw new java.io.IOException(te);
-
 
6352
      }
-
 
6353
    }
-
 
6354
 
-
 
6355
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6356
      try {
-
 
6357
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6358
      } catch (org.apache.thrift.TException te) {
-
 
6359
        throw new java.io.IOException(te);
-
 
6360
      }
-
 
6361
    }
-
 
6362
 
-
 
6363
  }
-
 
6364
 
-
 
6365
  public static class getScanForOrder_args implements org.apache.thrift.TBase<getScanForOrder_args, getScanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
6366
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanForOrder_args");
-
 
6367
 
-
 
6368
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
6369
 
-
 
6370
    private long orderId; // required
-
 
6371
 
-
 
6372
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6373
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6374
      ORDER_ID((short)1, "orderId");
-
 
6375
 
-
 
6376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6377
 
-
 
6378
      static {
-
 
6379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6380
          byName.put(field.getFieldName(), field);
-
 
6381
        }
-
 
6382
      }
-
 
6383
 
-
 
6384
      /**
-
 
6385
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6386
       */
-
 
6387
      public static _Fields findByThriftId(int fieldId) {
-
 
6388
        switch(fieldId) {
-
 
6389
          case 1: // ORDER_ID
-
 
6390
            return ORDER_ID;
-
 
6391
          default:
-
 
6392
            return null;
-
 
6393
        }
-
 
6394
      }
-
 
6395
 
-
 
6396
      /**
-
 
6397
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6398
       * if it is not found.
-
 
6399
       */
-
 
6400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6401
        _Fields fields = findByThriftId(fieldId);
-
 
6402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6403
        return fields;
-
 
6404
      }
-
 
6405
 
-
 
6406
      /**
-
 
6407
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6408
       */
-
 
6409
      public static _Fields findByName(String name) {
-
 
6410
        return byName.get(name);
-
 
6411
      }
-
 
6412
 
-
 
6413
      private final short _thriftId;
-
 
6414
      private final String _fieldName;
-
 
6415
 
-
 
6416
      _Fields(short thriftId, String fieldName) {
-
 
6417
        _thriftId = thriftId;
-
 
6418
        _fieldName = fieldName;
-
 
6419
      }
-
 
6420
 
-
 
6421
      public short getThriftFieldId() {
-
 
6422
        return _thriftId;
-
 
6423
      }
-
 
6424
 
-
 
6425
      public String getFieldName() {
-
 
6426
        return _fieldName;
-
 
6427
      }
-
 
6428
    }
-
 
6429
 
-
 
6430
    // isset id assignments
-
 
6431
    private static final int __ORDERID_ISSET_ID = 0;
-
 
6432
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
6433
 
-
 
6434
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6435
    static {
-
 
6436
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6437
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
6439
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6440
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanForOrder_args.class, metaDataMap);
-
 
6441
    }
-
 
6442
 
-
 
6443
    public getScanForOrder_args() {
-
 
6444
    }
-
 
6445
 
-
 
6446
    public getScanForOrder_args(
-
 
6447
      long orderId)
-
 
6448
    {
-
 
6449
      this();
-
 
6450
      this.orderId = orderId;
-
 
6451
      setOrderIdIsSet(true);
-
 
6452
    }
-
 
6453
 
-
 
6454
    /**
-
 
6455
     * Performs a deep copy on <i>other</i>.
-
 
6456
     */
-
 
6457
    public getScanForOrder_args(getScanForOrder_args other) {
-
 
6458
      __isset_bit_vector.clear();
-
 
6459
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6460
      this.orderId = other.orderId;
-
 
6461
    }
-
 
6462
 
-
 
6463
    public getScanForOrder_args deepCopy() {
-
 
6464
      return new getScanForOrder_args(this);
-
 
6465
    }
-
 
6466
 
-
 
6467
    @Override
-
 
6468
    public void clear() {
-
 
6469
      setOrderIdIsSet(false);
-
 
6470
      this.orderId = 0;
-
 
6471
    }
-
 
6472
 
-
 
6473
    public long getOrderId() {
-
 
6474
      return this.orderId;
-
 
6475
    }
-
 
6476
 
-
 
6477
    public void setOrderId(long orderId) {
-
 
6478
      this.orderId = orderId;
-
 
6479
      setOrderIdIsSet(true);
-
 
6480
    }
-
 
6481
 
-
 
6482
    public void unsetOrderId() {
-
 
6483
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
6484
    }
-
 
6485
 
-
 
6486
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
6487
    public boolean isSetOrderId() {
-
 
6488
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
6489
    }
-
 
6490
 
-
 
6491
    public void setOrderIdIsSet(boolean value) {
-
 
6492
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
6493
    }
-
 
6494
 
-
 
6495
    public void setFieldValue(_Fields field, Object value) {
-
 
6496
      switch (field) {
-
 
6497
      case ORDER_ID:
-
 
6498
        if (value == null) {
-
 
6499
          unsetOrderId();
-
 
6500
        } else {
-
 
6501
          setOrderId((Long)value);
-
 
6502
        }
-
 
6503
        break;
-
 
6504
 
-
 
6505
      }
-
 
6506
    }
-
 
6507
 
-
 
6508
    public Object getFieldValue(_Fields field) {
-
 
6509
      switch (field) {
-
 
6510
      case ORDER_ID:
-
 
6511
        return Long.valueOf(getOrderId());
-
 
6512
 
-
 
6513
      }
-
 
6514
      throw new IllegalStateException();
-
 
6515
    }
-
 
6516
 
-
 
6517
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6518
    public boolean isSet(_Fields field) {
-
 
6519
      if (field == null) {
-
 
6520
        throw new IllegalArgumentException();
-
 
6521
      }
-
 
6522
 
-
 
6523
      switch (field) {
-
 
6524
      case ORDER_ID:
-
 
6525
        return isSetOrderId();
-
 
6526
      }
-
 
6527
      throw new IllegalStateException();
-
 
6528
    }
-
 
6529
 
-
 
6530
    @Override
-
 
6531
    public boolean equals(Object that) {
-
 
6532
      if (that == null)
-
 
6533
        return false;
-
 
6534
      if (that instanceof getScanForOrder_args)
-
 
6535
        return this.equals((getScanForOrder_args)that);
-
 
6536
      return false;
-
 
6537
    }
-
 
6538
 
-
 
6539
    public boolean equals(getScanForOrder_args that) {
-
 
6540
      if (that == null)
-
 
6541
        return false;
-
 
6542
 
-
 
6543
      boolean this_present_orderId = true;
-
 
6544
      boolean that_present_orderId = true;
-
 
6545
      if (this_present_orderId || that_present_orderId) {
-
 
6546
        if (!(this_present_orderId && that_present_orderId))
-
 
6547
          return false;
-
 
6548
        if (this.orderId != that.orderId)
-
 
6549
          return false;
-
 
6550
      }
-
 
6551
 
-
 
6552
      return true;
-
 
6553
    }
-
 
6554
 
-
 
6555
    @Override
-
 
6556
    public int hashCode() {
-
 
6557
      return 0;
-
 
6558
    }
-
 
6559
 
-
 
6560
    public int compareTo(getScanForOrder_args other) {
-
 
6561
      if (!getClass().equals(other.getClass())) {
-
 
6562
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6563
      }
-
 
6564
 
-
 
6565
      int lastComparison = 0;
-
 
6566
      getScanForOrder_args typedOther = (getScanForOrder_args)other;
-
 
6567
 
-
 
6568
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
6569
      if (lastComparison != 0) {
-
 
6570
        return lastComparison;
-
 
6571
      }
-
 
6572
      if (isSetOrderId()) {
-
 
6573
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
6574
        if (lastComparison != 0) {
-
 
6575
          return lastComparison;
-
 
6576
        }
-
 
6577
      }
-
 
6578
      return 0;
-
 
6579
    }
-
 
6580
 
-
 
6581
    public _Fields fieldForId(int fieldId) {
-
 
6582
      return _Fields.findByThriftId(fieldId);
-
 
6583
    }
-
 
6584
 
-
 
6585
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6586
      org.apache.thrift.protocol.TField field;
-
 
6587
      iprot.readStructBegin();
-
 
6588
      while (true)
-
 
6589
      {
-
 
6590
        field = iprot.readFieldBegin();
-
 
6591
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6592
          break;
-
 
6593
        }
-
 
6594
        switch (field.id) {
-
 
6595
          case 1: // ORDER_ID
-
 
6596
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
6597
              this.orderId = iprot.readI64();
-
 
6598
              setOrderIdIsSet(true);
-
 
6599
            } else { 
-
 
6600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6601
            }
-
 
6602
            break;
-
 
6603
          default:
-
 
6604
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6605
        }
-
 
6606
        iprot.readFieldEnd();
-
 
6607
      }
-
 
6608
      iprot.readStructEnd();
-
 
6609
      validate();
-
 
6610
    }
-
 
6611
 
-
 
6612
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
6613
      validate();
-
 
6614
 
-
 
6615
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6616
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
6617
      oprot.writeI64(this.orderId);
-
 
6618
      oprot.writeFieldEnd();
-
 
6619
      oprot.writeFieldStop();
-
 
6620
      oprot.writeStructEnd();
-
 
6621
    }
-
 
6622
 
-
 
6623
    @Override
-
 
6624
    public String toString() {
-
 
6625
      StringBuilder sb = new StringBuilder("getScanForOrder_args(");
-
 
6626
      boolean first = true;
-
 
6627
 
-
 
6628
      sb.append("orderId:");
-
 
6629
      sb.append(this.orderId);
-
 
6630
      first = false;
-
 
6631
      sb.append(")");
-
 
6632
      return sb.toString();
-
 
6633
    }
-
 
6634
 
-
 
6635
    public void validate() throws org.apache.thrift.TException {
-
 
6636
      // check for required fields
-
 
6637
    }
-
 
6638
 
-
 
6639
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6640
      try {
-
 
6641
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6642
      } catch (org.apache.thrift.TException te) {
-
 
6643
        throw new java.io.IOException(te);
-
 
6644
      }
-
 
6645
    }
-
 
6646
 
-
 
6647
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6648
      try {
-
 
6649
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
6650
        __isset_bit_vector = new BitSet(1);
-
 
6651
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6652
      } catch (org.apache.thrift.TException te) {
-
 
6653
        throw new java.io.IOException(te);
-
 
6654
      }
-
 
6655
    }
-
 
6656
 
-
 
6657
  }
-
 
6658
 
-
 
6659
  public static class getScanForOrder_result implements org.apache.thrift.TBase<getScanForOrder_result, getScanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
6660
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanForOrder_result");
-
 
6661
 
-
 
6662
    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);
-
 
6663
 
-
 
6664
    private List<Scan> success; // required
-
 
6665
 
-
 
6666
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6667
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6668
      SUCCESS((short)0, "success");
-
 
6669
 
-
 
6670
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6671
 
-
 
6672
      static {
-
 
6673
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6674
          byName.put(field.getFieldName(), field);
-
 
6675
        }
-
 
6676
      }
-
 
6677
 
-
 
6678
      /**
-
 
6679
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6680
       */
-
 
6681
      public static _Fields findByThriftId(int fieldId) {
-
 
6682
        switch(fieldId) {
-
 
6683
          case 0: // SUCCESS
-
 
6684
            return SUCCESS;
-
 
6685
          default:
-
 
6686
            return null;
-
 
6687
        }
-
 
6688
      }
-
 
6689
 
-
 
6690
      /**
-
 
6691
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6692
       * if it is not found.
-
 
6693
       */
-
 
6694
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6695
        _Fields fields = findByThriftId(fieldId);
-
 
6696
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6697
        return fields;
-
 
6698
      }
-
 
6699
 
-
 
6700
      /**
-
 
6701
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6702
       */
-
 
6703
      public static _Fields findByName(String name) {
-
 
6704
        return byName.get(name);
-
 
6705
      }
-
 
6706
 
-
 
6707
      private final short _thriftId;
-
 
6708
      private final String _fieldName;
-
 
6709
 
-
 
6710
      _Fields(short thriftId, String fieldName) {
-
 
6711
        _thriftId = thriftId;
-
 
6712
        _fieldName = fieldName;
-
 
6713
      }
-
 
6714
 
-
 
6715
      public short getThriftFieldId() {
-
 
6716
        return _thriftId;
-
 
6717
      }
-
 
6718
 
-
 
6719
      public String getFieldName() {
-
 
6720
        return _fieldName;
-
 
6721
      }
-
 
6722
    }
-
 
6723
 
-
 
6724
    // isset id assignments
-
 
6725
 
-
 
6726
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6727
    static {
-
 
6728
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6729
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6730
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
6731
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
-
 
6732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanForOrder_result.class, metaDataMap);
-
 
6734
    }
-
 
6735
 
-
 
6736
    public getScanForOrder_result() {
-
 
6737
    }
-
 
6738
 
-
 
6739
    public getScanForOrder_result(
-
 
6740
      List<Scan> success)
-
 
6741
    {
-
 
6742
      this();
-
 
6743
      this.success = success;
-
 
6744
    }
-
 
6745
 
-
 
6746
    /**
-
 
6747
     * Performs a deep copy on <i>other</i>.
-
 
6748
     */
-
 
6749
    public getScanForOrder_result(getScanForOrder_result other) {
-
 
6750
      if (other.isSetSuccess()) {
-
 
6751
        List<Scan> __this__success = new ArrayList<Scan>();
-
 
6752
        for (Scan other_element : other.success) {
-
 
6753
          __this__success.add(new Scan(other_element));
-
 
6754
        }
-
 
6755
        this.success = __this__success;
-
 
6756
      }
-
 
6757
    }
-
 
6758
 
-
 
6759
    public getScanForOrder_result deepCopy() {
-
 
6760
      return new getScanForOrder_result(this);
-
 
6761
    }
-
 
6762
 
-
 
6763
    @Override
-
 
6764
    public void clear() {
-
 
6765
      this.success = null;
-
 
6766
    }
-
 
6767
 
-
 
6768
    public int getSuccessSize() {
-
 
6769
      return (this.success == null) ? 0 : this.success.size();
-
 
6770
    }
-
 
6771
 
-
 
6772
    public java.util.Iterator<Scan> getSuccessIterator() {
-
 
6773
      return (this.success == null) ? null : this.success.iterator();
-
 
6774
    }
-
 
6775
 
-
 
6776
    public void addToSuccess(Scan elem) {
-
 
6777
      if (this.success == null) {
-
 
6778
        this.success = new ArrayList<Scan>();
-
 
6779
      }
-
 
6780
      this.success.add(elem);
-
 
6781
    }
-
 
6782
 
-
 
6783
    public List<Scan> getSuccess() {
-
 
6784
      return this.success;
-
 
6785
    }
-
 
6786
 
-
 
6787
    public void setSuccess(List<Scan> success) {
-
 
6788
      this.success = success;
-
 
6789
    }
-
 
6790
 
-
 
6791
    public void unsetSuccess() {
-
 
6792
      this.success = null;
-
 
6793
    }
-
 
6794
 
-
 
6795
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
6796
    public boolean isSetSuccess() {
-
 
6797
      return this.success != null;
-
 
6798
    }
-
 
6799
 
-
 
6800
    public void setSuccessIsSet(boolean value) {
-
 
6801
      if (!value) {
-
 
6802
        this.success = null;
-
 
6803
      }
-
 
6804
    }
-
 
6805
 
-
 
6806
    public void setFieldValue(_Fields field, Object value) {
-
 
6807
      switch (field) {
-
 
6808
      case SUCCESS:
-
 
6809
        if (value == null) {
-
 
6810
          unsetSuccess();
-
 
6811
        } else {
-
 
6812
          setSuccess((List<Scan>)value);
-
 
6813
        }
-
 
6814
        break;
-
 
6815
 
-
 
6816
      }
-
 
6817
    }
-
 
6818
 
-
 
6819
    public Object getFieldValue(_Fields field) {
-
 
6820
      switch (field) {
-
 
6821
      case SUCCESS:
-
 
6822
        return getSuccess();
-
 
6823
 
-
 
6824
      }
-
 
6825
      throw new IllegalStateException();
-
 
6826
    }
-
 
6827
 
-
 
6828
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6829
    public boolean isSet(_Fields field) {
-
 
6830
      if (field == null) {
-
 
6831
        throw new IllegalArgumentException();
-
 
6832
      }
-
 
6833
 
-
 
6834
      switch (field) {
-
 
6835
      case SUCCESS:
-
 
6836
        return isSetSuccess();
-
 
6837
      }
-
 
6838
      throw new IllegalStateException();
-
 
6839
    }
-
 
6840
 
-
 
6841
    @Override
-
 
6842
    public boolean equals(Object that) {
-
 
6843
      if (that == null)
-
 
6844
        return false;
-
 
6845
      if (that instanceof getScanForOrder_result)
-
 
6846
        return this.equals((getScanForOrder_result)that);
-
 
6847
      return false;
-
 
6848
    }
-
 
6849
 
-
 
6850
    public boolean equals(getScanForOrder_result that) {
-
 
6851
      if (that == null)
-
 
6852
        return false;
-
 
6853
 
-
 
6854
      boolean this_present_success = true && this.isSetSuccess();
5326
      boolean this_present_wex = true && this.isSetWex();
6855
      boolean that_present_success = true && that.isSetSuccess();
5327
      boolean that_present_wex = true && that.isSetWex();
6856
      if (this_present_success || that_present_success) {
5328
      if (this_present_wex || that_present_wex) {
6857
        if (!(this_present_success && that_present_success))
5329
        if (!(this_present_wex && that_present_wex))
6858
          return false;
5330
          return false;
6859
        if (!this.success.equals(that.success))
5331
        if (!this.wex.equals(that.wex))
6860
          return false;
5332
          return false;
6861
      }
5333
      }
6862
 
5334
 
6863
      return true;
5335
      return true;
6864
    }
5336
    }
Line 6866... Line 5338...
6866
    @Override
5338
    @Override
6867
    public int hashCode() {
5339
    public int hashCode() {
6868
      return 0;
5340
      return 0;
6869
    }
5341
    }
6870
 
5342
 
6871
    public int compareTo(getScanForOrder_result other) {
5343
    public int compareTo(getNonSeralizedInventoryItem_result other) {
6872
      if (!getClass().equals(other.getClass())) {
5344
      if (!getClass().equals(other.getClass())) {
6873
        return getClass().getName().compareTo(other.getClass().getName());
5345
        return getClass().getName().compareTo(other.getClass().getName());
6874
      }
5346
      }
6875
 
5347
 
6876
      int lastComparison = 0;
5348
      int lastComparison = 0;
6877
      getScanForOrder_result typedOther = (getScanForOrder_result)other;
5349
      getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
6878
 
5350
 
6879
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5351
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6880
      if (lastComparison != 0) {
5352
      if (lastComparison != 0) {
6881
        return lastComparison;
5353
        return lastComparison;
6882
      }
5354
      }
Line 6884... Line 5356...
6884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6885
        if (lastComparison != 0) {
5357
        if (lastComparison != 0) {
6886
          return lastComparison;
5358
          return lastComparison;
6887
        }
5359
        }
6888
      }
5360
      }
6889
      return 0;
-
 
6890
    }
-
 
6891
 
-
 
6892
    public _Fields fieldForId(int fieldId) {
-
 
6893
      return _Fields.findByThriftId(fieldId);
-
 
6894
    }
-
 
6895
 
-
 
6896
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6897
      org.apache.thrift.protocol.TField field;
-
 
6898
      iprot.readStructBegin();
-
 
6899
      while (true)
-
 
6900
      {
-
 
6901
        field = iprot.readFieldBegin();
-
 
6902
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6903
          break;
-
 
6904
        }
-
 
6905
        switch (field.id) {
-
 
6906
          case 0: // SUCCESS
-
 
6907
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
6908
              {
-
 
6909
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
-
 
6910
                this.success = new ArrayList<Scan>(_list8.size);
-
 
6911
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
6912
                {
-
 
6913
                  Scan _elem10; // required
-
 
6914
                  _elem10 = new Scan();
-
 
6915
                  _elem10.read(iprot);
-
 
6916
                  this.success.add(_elem10);
-
 
6917
                }
-
 
6918
                iprot.readListEnd();
-
 
6919
              }
-
 
6920
            } else { 
-
 
6921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6922
            }
-
 
6923
            break;
-
 
6924
          default:
-
 
6925
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6926
        }
-
 
6927
        iprot.readFieldEnd();
-
 
6928
      }
-
 
6929
      iprot.readStructEnd();
-
 
6930
      validate();
-
 
6931
    }
-
 
6932
 
-
 
6933
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
6934
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6935
 
-
 
6936
      if (this.isSetSuccess()) {
-
 
6937
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6938
        {
-
 
6939
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
6940
          for (Scan _iter11 : this.success)
-
 
6941
          {
-
 
6942
            _iter11.write(oprot);
-
 
6943
          }
-
 
6944
          oprot.writeListEnd();
-
 
6945
        }
-
 
6946
        oprot.writeFieldEnd();
-
 
6947
      }
-
 
6948
      oprot.writeFieldStop();
-
 
6949
      oprot.writeStructEnd();
-
 
6950
    }
-
 
6951
 
-
 
6952
    @Override
-
 
6953
    public String toString() {
-
 
6954
      StringBuilder sb = new StringBuilder("getScanForOrder_result(");
-
 
6955
      boolean first = true;
-
 
6956
 
-
 
6957
      sb.append("success:");
-
 
6958
      if (this.success == null) {
-
 
6959
        sb.append("null");
-
 
6960
      } else {
-
 
6961
        sb.append(this.success);
-
 
6962
      }
-
 
6963
      first = false;
-
 
6964
      sb.append(")");
-
 
6965
      return sb.toString();
-
 
6966
    }
-
 
6967
 
-
 
6968
    public void validate() throws org.apache.thrift.TException {
-
 
6969
      // check for required fields
-
 
6970
    }
-
 
6971
 
-
 
6972
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6973
      try {
-
 
6974
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6975
      } catch (org.apache.thrift.TException te) {
-
 
6976
        throw new java.io.IOException(te);
-
 
6977
      }
-
 
6978
    }
-
 
6979
 
-
 
6980
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6981
      try {
-
 
6982
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6983
      } catch (org.apache.thrift.TException te) {
-
 
6984
        throw new java.io.IOException(te);
-
 
6985
      }
-
 
6986
    }
-
 
6987
 
-
 
6988
  }
-
 
6989
 
-
 
6990
  public static class getScan_args implements org.apache.thrift.TBase<getScan_args, getScan_args._Fields>, java.io.Serializable, Cloneable   {
-
 
6991
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScan_args");
-
 
6992
 
-
 
6993
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
6994
 
-
 
6995
    private long inventoryItemId; // required
-
 
6996
 
-
 
6997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6999
      INVENTORY_ITEM_ID((short)1, "inventoryItemId");
-
 
7000
 
-
 
7001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7002
 
-
 
7003
      static {
-
 
7004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7005
          byName.put(field.getFieldName(), field);
-
 
7006
        }
-
 
7007
      }
-
 
7008
 
-
 
7009
      /**
-
 
7010
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7011
       */
-
 
7012
      public static _Fields findByThriftId(int fieldId) {
-
 
7013
        switch(fieldId) {
-
 
7014
          case 1: // INVENTORY_ITEM_ID
-
 
7015
            return INVENTORY_ITEM_ID;
-
 
7016
          default:
-
 
7017
            return null;
-
 
7018
        }
-
 
7019
      }
-
 
7020
 
-
 
7021
      /**
-
 
7022
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7023
       * if it is not found.
-
 
7024
       */
-
 
7025
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7026
        _Fields fields = findByThriftId(fieldId);
-
 
7027
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7028
        return fields;
-
 
7029
      }
-
 
7030
 
-
 
7031
      /**
-
 
7032
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7033
       */
-
 
7034
      public static _Fields findByName(String name) {
-
 
7035
        return byName.get(name);
-
 
7036
      }
-
 
7037
 
-
 
7038
      private final short _thriftId;
-
 
7039
      private final String _fieldName;
-
 
7040
 
-
 
7041
      _Fields(short thriftId, String fieldName) {
-
 
7042
        _thriftId = thriftId;
-
 
7043
        _fieldName = fieldName;
-
 
7044
      }
-
 
7045
 
-
 
7046
      public short getThriftFieldId() {
-
 
7047
        return _thriftId;
-
 
7048
      }
-
 
7049
 
-
 
7050
      public String getFieldName() {
-
 
7051
        return _fieldName;
-
 
7052
      }
-
 
7053
    }
-
 
7054
 
-
 
7055
    // isset id assignments
-
 
7056
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
-
 
7057
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
7058
 
-
 
7059
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7060
    static {
-
 
7061
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7062
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7063
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
7064
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7065
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScan_args.class, metaDataMap);
-
 
7066
    }
-
 
7067
 
-
 
7068
    public getScan_args() {
-
 
7069
    }
-
 
7070
 
-
 
7071
    public getScan_args(
-
 
7072
      long inventoryItemId)
-
 
7073
    {
-
 
7074
      this();
-
 
7075
      this.inventoryItemId = inventoryItemId;
-
 
7076
      setInventoryItemIdIsSet(true);
-
 
7077
    }
-
 
7078
 
-
 
7079
    /**
-
 
7080
     * Performs a deep copy on <i>other</i>.
-
 
7081
     */
-
 
7082
    public getScan_args(getScan_args other) {
-
 
7083
      __isset_bit_vector.clear();
-
 
7084
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7085
      this.inventoryItemId = other.inventoryItemId;
-
 
7086
    }
-
 
7087
 
-
 
7088
    public getScan_args deepCopy() {
-
 
7089
      return new getScan_args(this);
-
 
7090
    }
-
 
7091
 
-
 
7092
    @Override
-
 
7093
    public void clear() {
-
 
7094
      setInventoryItemIdIsSet(false);
-
 
7095
      this.inventoryItemId = 0;
-
 
7096
    }
-
 
7097
 
-
 
7098
    public long getInventoryItemId() {
-
 
7099
      return this.inventoryItemId;
-
 
7100
    }
-
 
7101
 
-
 
7102
    public void setInventoryItemId(long inventoryItemId) {
-
 
7103
      this.inventoryItemId = inventoryItemId;
-
 
7104
      setInventoryItemIdIsSet(true);
-
 
7105
    }
-
 
7106
 
-
 
7107
    public void unsetInventoryItemId() {
-
 
7108
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
-
 
7109
    }
-
 
7110
 
-
 
7111
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
-
 
7112
    public boolean isSetInventoryItemId() {
-
 
7113
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
-
 
7114
    }
-
 
7115
 
-
 
7116
    public void setInventoryItemIdIsSet(boolean value) {
-
 
7117
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
-
 
7118
    }
-
 
7119
 
-
 
7120
    public void setFieldValue(_Fields field, Object value) {
-
 
7121
      switch (field) {
-
 
7122
      case INVENTORY_ITEM_ID:
-
 
7123
        if (value == null) {
-
 
7124
          unsetInventoryItemId();
-
 
7125
        } else {
-
 
7126
          setInventoryItemId((Long)value);
-
 
7127
        }
-
 
7128
        break;
-
 
7129
 
-
 
7130
      }
-
 
7131
    }
-
 
7132
 
-
 
7133
    public Object getFieldValue(_Fields field) {
-
 
7134
      switch (field) {
-
 
7135
      case INVENTORY_ITEM_ID:
-
 
7136
        return Long.valueOf(getInventoryItemId());
-
 
7137
 
-
 
7138
      }
-
 
7139
      throw new IllegalStateException();
-
 
7140
    }
-
 
7141
 
-
 
7142
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7143
    public boolean isSet(_Fields field) {
-
 
7144
      if (field == null) {
-
 
7145
        throw new IllegalArgumentException();
-
 
7146
      }
-
 
7147
 
-
 
7148
      switch (field) {
-
 
7149
      case INVENTORY_ITEM_ID:
-
 
7150
        return isSetInventoryItemId();
-
 
7151
      }
-
 
7152
      throw new IllegalStateException();
-
 
7153
    }
-
 
7154
 
-
 
7155
    @Override
-
 
7156
    public boolean equals(Object that) {
-
 
7157
      if (that == null)
-
 
7158
        return false;
-
 
7159
      if (that instanceof getScan_args)
-
 
7160
        return this.equals((getScan_args)that);
-
 
7161
      return false;
-
 
7162
    }
-
 
7163
 
-
 
7164
    public boolean equals(getScan_args that) {
-
 
7165
      if (that == null)
-
 
7166
        return false;
-
 
7167
 
-
 
7168
      boolean this_present_inventoryItemId = true;
-
 
7169
      boolean that_present_inventoryItemId = true;
-
 
7170
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
-
 
7171
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
-
 
7172
          return false;
-
 
7173
        if (this.inventoryItemId != that.inventoryItemId)
-
 
7174
          return false;
-
 
7175
      }
-
 
7176
 
-
 
7177
      return true;
-
 
7178
    }
-
 
7179
 
-
 
7180
    @Override
-
 
7181
    public int hashCode() {
-
 
7182
      return 0;
-
 
7183
    }
-
 
7184
 
-
 
7185
    public int compareTo(getScan_args other) {
-
 
7186
      if (!getClass().equals(other.getClass())) {
-
 
7187
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7188
      }
-
 
7189
 
-
 
7190
      int lastComparison = 0;
-
 
7191
      getScan_args typedOther = (getScan_args)other;
-
 
7192
 
-
 
7193
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
5361
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
7194
      if (lastComparison != 0) {
5362
      if (lastComparison != 0) {
7195
        return lastComparison;
5363
        return lastComparison;
7196
      }
5364
      }
7197
      if (isSetInventoryItemId()) {
5365
      if (isSetWex()) {
7198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
5366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
7199
        if (lastComparison != 0) {
5367
        if (lastComparison != 0) {
7200
          return lastComparison;
5368
          return lastComparison;
7201
        }
5369
        }
7202
      }
5370
      }
7203
      return 0;
5371
      return 0;
Line 7215... Line 5383...
7215
        field = iprot.readFieldBegin();
5383
        field = iprot.readFieldBegin();
7216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5384
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7217
          break;
5385
          break;
7218
        }
5386
        }
7219
        switch (field.id) {
5387
        switch (field.id) {
7220
          case 1: // INVENTORY_ITEM_ID
5388
          case 0: // SUCCESS
7221
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5389
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7222
              this.inventoryItemId = iprot.readI64();
5390
              this.success = new InventoryItem();
7223
              setInventoryItemIdIsSet(true);
5391
              this.success.read(iprot);
7224
            } else { 
5392
            } else { 
7225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7226
            }
5394
            }
7227
            break;
5395
            break;
7228
          default:
-
 
7229
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7230
        }
-
 
7231
        iprot.readFieldEnd();
-
 
7232
      }
-
 
7233
      iprot.readStructEnd();
-
 
7234
      validate();
-
 
7235
    }
-
 
7236
 
-
 
7237
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7238
      validate();
-
 
7239
 
-
 
7240
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7241
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
-
 
7242
      oprot.writeI64(this.inventoryItemId);
-
 
7243
      oprot.writeFieldEnd();
-
 
7244
      oprot.writeFieldStop();
-
 
7245
      oprot.writeStructEnd();
-
 
7246
    }
-
 
7247
 
-
 
7248
    @Override
-
 
7249
    public String toString() {
-
 
7250
      StringBuilder sb = new StringBuilder("getScan_args(");
-
 
7251
      boolean first = true;
-
 
7252
 
-
 
7253
      sb.append("inventoryItemId:");
-
 
7254
      sb.append(this.inventoryItemId);
-
 
7255
      first = false;
-
 
7256
      sb.append(")");
-
 
7257
      return sb.toString();
-
 
7258
    }
-
 
7259
 
-
 
7260
    public void validate() throws org.apache.thrift.TException {
-
 
7261
      // check for required fields
-
 
7262
    }
-
 
7263
 
-
 
7264
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7265
      try {
-
 
7266
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7267
      } catch (org.apache.thrift.TException te) {
-
 
7268
        throw new java.io.IOException(te);
-
 
7269
      }
-
 
7270
    }
-
 
7271
 
-
 
7272
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7273
      try {
-
 
7274
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
7275
        __isset_bit_vector = new BitSet(1);
-
 
7276
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7277
      } catch (org.apache.thrift.TException te) {
-
 
7278
        throw new java.io.IOException(te);
-
 
7279
      }
-
 
7280
    }
-
 
7281
 
-
 
7282
  }
-
 
7283
 
-
 
7284
  public static class getScan_result implements org.apache.thrift.TBase<getScan_result, getScan_result._Fields>, java.io.Serializable, Cloneable   {
-
 
7285
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScan_result");
-
 
7286
 
-
 
7287
    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);
-
 
7288
 
-
 
7289
    private List<Scan> success; // required
-
 
7290
 
-
 
7291
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7292
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7293
      SUCCESS((short)0, "success");
-
 
7294
 
-
 
7295
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7296
 
-
 
7297
      static {
-
 
7298
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7299
          byName.put(field.getFieldName(), field);
-
 
7300
        }
-
 
7301
      }
-
 
7302
 
-
 
7303
      /**
-
 
7304
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7305
       */
-
 
7306
      public static _Fields findByThriftId(int fieldId) {
-
 
7307
        switch(fieldId) {
-
 
7308
          case 0: // SUCCESS
5396
          case 1: // WEX
7309
            return SUCCESS;
-
 
7310
          default:
-
 
7311
            return null;
-
 
7312
        }
-
 
7313
      }
-
 
7314
 
-
 
7315
      /**
-
 
7316
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7317
       * if it is not found.
-
 
7318
       */
-
 
7319
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7320
        _Fields fields = findByThriftId(fieldId);
-
 
7321
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7322
        return fields;
-
 
7323
      }
-
 
7324
 
-
 
7325
      /**
-
 
7326
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7327
       */
-
 
7328
      public static _Fields findByName(String name) {
-
 
7329
        return byName.get(name);
-
 
7330
      }
-
 
7331
 
-
 
7332
      private final short _thriftId;
-
 
7333
      private final String _fieldName;
-
 
7334
 
-
 
7335
      _Fields(short thriftId, String fieldName) {
-
 
7336
        _thriftId = thriftId;
-
 
7337
        _fieldName = fieldName;
-
 
7338
      }
-
 
7339
 
-
 
7340
      public short getThriftFieldId() {
-
 
7341
        return _thriftId;
-
 
7342
      }
-
 
7343
 
-
 
7344
      public String getFieldName() {
-
 
7345
        return _fieldName;
-
 
7346
      }
-
 
7347
    }
-
 
7348
 
-
 
7349
    // isset id assignments
-
 
7350
 
-
 
7351
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7352
    static {
-
 
7353
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7354
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7355
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
7356
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
-
 
7357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScan_result.class, metaDataMap);
-
 
7359
    }
-
 
7360
 
-
 
7361
    public getScan_result() {
-
 
7362
    }
-
 
7363
 
-
 
7364
    public getScan_result(
-
 
7365
      List<Scan> success)
-
 
7366
    {
-
 
7367
      this();
-
 
7368
      this.success = success;
-
 
7369
    }
-
 
7370
 
-
 
7371
    /**
-
 
7372
     * Performs a deep copy on <i>other</i>.
-
 
7373
     */
-
 
7374
    public getScan_result(getScan_result other) {
-
 
7375
      if (other.isSetSuccess()) {
-
 
7376
        List<Scan> __this__success = new ArrayList<Scan>();
-
 
7377
        for (Scan other_element : other.success) {
-
 
7378
          __this__success.add(new Scan(other_element));
-
 
7379
        }
-
 
7380
        this.success = __this__success;
-
 
7381
      }
-
 
7382
    }
-
 
7383
 
-
 
7384
    public getScan_result deepCopy() {
-
 
7385
      return new getScan_result(this);
-
 
7386
    }
-
 
7387
 
-
 
7388
    @Override
-
 
7389
    public void clear() {
-
 
7390
      this.success = null;
-
 
7391
    }
-
 
7392
 
-
 
7393
    public int getSuccessSize() {
-
 
7394
      return (this.success == null) ? 0 : this.success.size();
-
 
7395
    }
-
 
7396
 
-
 
7397
    public java.util.Iterator<Scan> getSuccessIterator() {
-
 
7398
      return (this.success == null) ? null : this.success.iterator();
-
 
7399
    }
-
 
7400
 
-
 
7401
    public void addToSuccess(Scan elem) {
-
 
7402
      if (this.success == null) {
-
 
7403
        this.success = new ArrayList<Scan>();
-
 
7404
      }
-
 
7405
      this.success.add(elem);
-
 
7406
    }
-
 
7407
 
-
 
7408
    public List<Scan> getSuccess() {
-
 
7409
      return this.success;
-
 
7410
    }
-
 
7411
 
-
 
7412
    public void setSuccess(List<Scan> success) {
-
 
7413
      this.success = success;
-
 
7414
    }
-
 
7415
 
-
 
7416
    public void unsetSuccess() {
-
 
7417
      this.success = null;
-
 
7418
    }
-
 
7419
 
-
 
7420
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
7421
    public boolean isSetSuccess() {
-
 
7422
      return this.success != null;
-
 
7423
    }
-
 
7424
 
-
 
7425
    public void setSuccessIsSet(boolean value) {
-
 
7426
      if (!value) {
-
 
7427
        this.success = null;
-
 
7428
      }
-
 
7429
    }
-
 
7430
 
-
 
7431
    public void setFieldValue(_Fields field, Object value) {
-
 
7432
      switch (field) {
-
 
7433
      case SUCCESS:
-
 
7434
        if (value == null) {
-
 
7435
          unsetSuccess();
-
 
7436
        } else {
-
 
7437
          setSuccess((List<Scan>)value);
-
 
7438
        }
-
 
7439
        break;
-
 
7440
 
-
 
7441
      }
-
 
7442
    }
-
 
7443
 
-
 
7444
    public Object getFieldValue(_Fields field) {
-
 
7445
      switch (field) {
-
 
7446
      case SUCCESS:
-
 
7447
        return getSuccess();
-
 
7448
 
-
 
7449
      }
-
 
7450
      throw new IllegalStateException();
-
 
7451
    }
-
 
7452
 
-
 
7453
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7454
    public boolean isSet(_Fields field) {
-
 
7455
      if (field == null) {
-
 
7456
        throw new IllegalArgumentException();
-
 
7457
      }
-
 
7458
 
-
 
7459
      switch (field) {
-
 
7460
      case SUCCESS:
-
 
7461
        return isSetSuccess();
-
 
7462
      }
-
 
7463
      throw new IllegalStateException();
-
 
7464
    }
-
 
7465
 
-
 
7466
    @Override
-
 
7467
    public boolean equals(Object that) {
-
 
7468
      if (that == null)
-
 
7469
        return false;
-
 
7470
      if (that instanceof getScan_result)
-
 
7471
        return this.equals((getScan_result)that);
-
 
7472
      return false;
-
 
7473
    }
-
 
7474
 
-
 
7475
    public boolean equals(getScan_result that) {
-
 
7476
      if (that == null)
-
 
7477
        return false;
-
 
7478
 
-
 
7479
      boolean this_present_success = true && this.isSetSuccess();
-
 
7480
      boolean that_present_success = true && that.isSetSuccess();
-
 
7481
      if (this_present_success || that_present_success) {
-
 
7482
        if (!(this_present_success && that_present_success))
-
 
7483
          return false;
-
 
7484
        if (!this.success.equals(that.success))
-
 
7485
          return false;
-
 
7486
      }
-
 
7487
 
-
 
7488
      return true;
-
 
7489
    }
-
 
7490
 
-
 
7491
    @Override
-
 
7492
    public int hashCode() {
-
 
7493
      return 0;
-
 
7494
    }
-
 
7495
 
-
 
7496
    public int compareTo(getScan_result other) {
-
 
7497
      if (!getClass().equals(other.getClass())) {
-
 
7498
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7499
      }
-
 
7500
 
-
 
7501
      int lastComparison = 0;
-
 
7502
      getScan_result typedOther = (getScan_result)other;
-
 
7503
 
-
 
7504
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
7505
      if (lastComparison != 0) {
-
 
7506
        return lastComparison;
-
 
7507
      }
-
 
7508
      if (isSetSuccess()) {
-
 
7509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
7510
        if (lastComparison != 0) {
-
 
7511
          return lastComparison;
-
 
7512
        }
-
 
7513
      }
-
 
7514
      return 0;
-
 
7515
    }
-
 
7516
 
-
 
7517
    public _Fields fieldForId(int fieldId) {
-
 
7518
      return _Fields.findByThriftId(fieldId);
-
 
7519
    }
-
 
7520
 
-
 
7521
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7522
      org.apache.thrift.protocol.TField field;
-
 
7523
      iprot.readStructBegin();
-
 
7524
      while (true)
-
 
7525
      {
-
 
7526
        field = iprot.readFieldBegin();
-
 
7527
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
7528
          break;
-
 
7529
        }
-
 
7530
        switch (field.id) {
-
 
7531
          case 0: // SUCCESS
-
 
7532
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5397
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7533
              {
-
 
7534
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
-
 
7535
                this.success = new ArrayList<Scan>(_list12.size);
5398
              this.wex = new WarehouseServiceException();
7536
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
-
 
7537
                {
-
 
7538
                  Scan _elem14; // required
-
 
7539
                  _elem14 = new Scan();
-
 
7540
                  _elem14.read(iprot);
5399
              this.wex.read(iprot);
7541
                  this.success.add(_elem14);
-
 
7542
                }
-
 
7543
                iprot.readListEnd();
-
 
7544
              }
-
 
7545
            } else { 
5400
            } else { 
7546
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7547
            }
5402
            }
7548
            break;
5403
            break;
7549
          default:
5404
          default:
Line 7558... Line 5413...
7558
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7559
      oprot.writeStructBegin(STRUCT_DESC);
5414
      oprot.writeStructBegin(STRUCT_DESC);
7560
 
5415
 
7561
      if (this.isSetSuccess()) {
5416
      if (this.isSetSuccess()) {
7562
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7563
        {
-
 
7564
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
7565
          for (Scan _iter15 : this.success)
5418
        this.success.write(oprot);
7566
          {
-
 
7567
            _iter15.write(oprot);
5419
        oprot.writeFieldEnd();
7568
          }
5420
      } else if (this.isSetWex()) {
7569
          oprot.writeListEnd();
5421
        oprot.writeFieldBegin(WEX_FIELD_DESC);
7570
        }
5422
        this.wex.write(oprot);
7571
        oprot.writeFieldEnd();
5423
        oprot.writeFieldEnd();
7572
      }
5424
      }
7573
      oprot.writeFieldStop();
5425
      oprot.writeFieldStop();
7574
      oprot.writeStructEnd();
5426
      oprot.writeStructEnd();
7575
    }
5427
    }
7576
 
5428
 
7577
    @Override
5429
    @Override
7578
    public String toString() {
5430
    public String toString() {
7579
      StringBuilder sb = new StringBuilder("getScan_result(");
5431
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
7580
      boolean first = true;
5432
      boolean first = true;
7581
 
5433
 
7582
      sb.append("success:");
5434
      sb.append("success:");
7583
      if (this.success == null) {
5435
      if (this.success == null) {
7584
        sb.append("null");
5436
        sb.append("null");
7585
      } else {
5437
      } else {
7586
        sb.append(this.success);
5438
        sb.append(this.success);
7587
      }
5439
      }
7588
      first = false;
5440
      first = false;
-
 
5441
      if (!first) sb.append(", ");
-
 
5442
      sb.append("wex:");
-
 
5443
      if (this.wex == null) {
-
 
5444
        sb.append("null");
-
 
5445
      } else {
-
 
5446
        sb.append(this.wex);
-
 
5447
      }
-
 
5448
      first = false;
7589
      sb.append(")");
5449
      sb.append(")");
7590
      return sb.toString();
5450
      return sb.toString();
7591
    }
5451
    }
7592
 
5452
 
7593
    public void validate() throws org.apache.thrift.TException {
5453
    public void validate() throws org.apache.thrift.TException {
Line 7615... Line 5475...
7615
  public static class scanSerializedItem_args implements org.apache.thrift.TBase<scanSerializedItem_args, scanSerializedItem_args._Fields>, java.io.Serializable, Cloneable   {
5475
  public static class scanSerializedItem_args implements org.apache.thrift.TBase<scanSerializedItem_args, scanSerializedItem_args._Fields>, java.io.Serializable, Cloneable   {
7616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_args");
5476
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_args");
7617
 
5477
 
7618
    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);
5478
    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);
7619
    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);
5479
    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);
7620
    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)3);
5480
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
7621
 
5481
 
7622
    private InventoryItem inventoryItem; // required
5482
    private InventoryItem inventoryItem; // required
7623
    private ScanType type; // required
5483
    private ScanType type; // required
7624
    private long warehouseId; // required
5484
    private long billingWarehouseId; // required
7625
 
5485
 
7626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7628
      INVENTORY_ITEM((short)1, "inventoryItem"),
5488
      INVENTORY_ITEM((short)1, "inventoryItem"),
7629
      /**
5489
      /**
7630
       * 
5490
       * 
7631
       * @see ScanType
5491
       * @see ScanType
7632
       */
5492
       */
7633
      TYPE((short)2, "type"),
5493
      TYPE((short)2, "type"),
7634
      WAREHOUSE_ID((short)3, "warehouseId");
5494
      BILLING_WAREHOUSE_ID((short)3, "billingWarehouseId");
7635
 
5495
 
7636
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5496
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7637
 
5497
 
7638
      static {
5498
      static {
7639
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5499
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 7648... Line 5508...
7648
        switch(fieldId) {
5508
        switch(fieldId) {
7649
          case 1: // INVENTORY_ITEM
5509
          case 1: // INVENTORY_ITEM
7650
            return INVENTORY_ITEM;
5510
            return INVENTORY_ITEM;
7651
          case 2: // TYPE
5511
          case 2: // TYPE
7652
            return TYPE;
5512
            return TYPE;
7653
          case 3: // WAREHOUSE_ID
5513
          case 3: // BILLING_WAREHOUSE_ID
7654
            return WAREHOUSE_ID;
5514
            return BILLING_WAREHOUSE_ID;
7655
          default:
5515
          default:
7656
            return null;
5516
            return null;
7657
        }
5517
        }
7658
      }
5518
      }
7659
 
5519
 
Line 7690... Line 5550...
7690
        return _fieldName;
5550
        return _fieldName;
7691
      }
5551
      }
7692
    }
5552
    }
7693
 
5553
 
7694
    // isset id assignments
5554
    // isset id assignments
7695
    private static final int __WAREHOUSEID_ISSET_ID = 0;
5555
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 0;
7696
    private BitSet __isset_bit_vector = new BitSet(1);
5556
    private BitSet __isset_bit_vector = new BitSet(1);
7697
 
5557
 
7698
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5558
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7699
    static {
5559
    static {
7700
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5560
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7701
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5561
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7702
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
5562
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
7703
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5563
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7704
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
5564
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
7705
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5565
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5566
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7707
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5567
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7708
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_args.class, metaDataMap);
5568
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_args.class, metaDataMap);
7709
    }
5569
    }
7710
 
5570
 
Line 7712... Line 5572...
7712
    }
5572
    }
7713
 
5573
 
7714
    public scanSerializedItem_args(
5574
    public scanSerializedItem_args(
7715
      InventoryItem inventoryItem,
5575
      InventoryItem inventoryItem,
7716
      ScanType type,
5576
      ScanType type,
7717
      long warehouseId)
5577
      long billingWarehouseId)
7718
    {
5578
    {
7719
      this();
5579
      this();
7720
      this.inventoryItem = inventoryItem;
5580
      this.inventoryItem = inventoryItem;
7721
      this.type = type;
5581
      this.type = type;
7722
      this.warehouseId = warehouseId;
5582
      this.billingWarehouseId = billingWarehouseId;
7723
      setWarehouseIdIsSet(true);
5583
      setBillingWarehouseIdIsSet(true);
7724
    }
5584
    }
7725
 
5585
 
7726
    /**
5586
    /**
7727
     * Performs a deep copy on <i>other</i>.
5587
     * Performs a deep copy on <i>other</i>.
7728
     */
5588
     */
Line 7733... Line 5593...
7733
        this.inventoryItem = new InventoryItem(other.inventoryItem);
5593
        this.inventoryItem = new InventoryItem(other.inventoryItem);
7734
      }
5594
      }
7735
      if (other.isSetType()) {
5595
      if (other.isSetType()) {
7736
        this.type = other.type;
5596
        this.type = other.type;
7737
      }
5597
      }
7738
      this.warehouseId = other.warehouseId;
5598
      this.billingWarehouseId = other.billingWarehouseId;
7739
    }
5599
    }
7740
 
5600
 
7741
    public scanSerializedItem_args deepCopy() {
5601
    public scanSerializedItem_args deepCopy() {
7742
      return new scanSerializedItem_args(this);
5602
      return new scanSerializedItem_args(this);
7743
    }
5603
    }
7744
 
5604
 
7745
    @Override
5605
    @Override
7746
    public void clear() {
5606
    public void clear() {
7747
      this.inventoryItem = null;
5607
      this.inventoryItem = null;
7748
      this.type = null;
5608
      this.type = null;
7749
      setWarehouseIdIsSet(false);
5609
      setBillingWarehouseIdIsSet(false);
7750
      this.warehouseId = 0;
5610
      this.billingWarehouseId = 0;
7751
    }
5611
    }
7752
 
5612
 
7753
    public InventoryItem getInventoryItem() {
5613
    public InventoryItem getInventoryItem() {
7754
      return this.inventoryItem;
5614
      return this.inventoryItem;
7755
    }
5615
    }
Line 7802... Line 5662...
7802
      if (!value) {
5662
      if (!value) {
7803
        this.type = null;
5663
        this.type = null;
7804
      }
5664
      }
7805
    }
5665
    }
7806
 
5666
 
7807
    public long getWarehouseId() {
5667
    public long getBillingWarehouseId() {
7808
      return this.warehouseId;
5668
      return this.billingWarehouseId;
7809
    }
5669
    }
7810
 
5670
 
7811
    public void setWarehouseId(long warehouseId) {
5671
    public void setBillingWarehouseId(long billingWarehouseId) {
7812
      this.warehouseId = warehouseId;
5672
      this.billingWarehouseId = billingWarehouseId;
7813
      setWarehouseIdIsSet(true);
5673
      setBillingWarehouseIdIsSet(true);
7814
    }
5674
    }
7815
 
5675
 
7816
    public void unsetWarehouseId() {
5676
    public void unsetBillingWarehouseId() {
7817
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
5677
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
7818
    }
5678
    }
7819
 
5679
 
7820
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
5680
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
7821
    public boolean isSetWarehouseId() {
5681
    public boolean isSetBillingWarehouseId() {
7822
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
5682
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
7823
    }
5683
    }
7824
 
5684
 
7825
    public void setWarehouseIdIsSet(boolean value) {
5685
    public void setBillingWarehouseIdIsSet(boolean value) {
7826
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
5686
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
7827
    }
5687
    }
7828
 
5688
 
7829
    public void setFieldValue(_Fields field, Object value) {
5689
    public void setFieldValue(_Fields field, Object value) {
7830
      switch (field) {
5690
      switch (field) {
7831
      case INVENTORY_ITEM:
5691
      case INVENTORY_ITEM:
Line 7842... Line 5702...
7842
        } else {
5702
        } else {
7843
          setType((ScanType)value);
5703
          setType((ScanType)value);
7844
        }
5704
        }
7845
        break;
5705
        break;
7846
 
5706
 
7847
      case WAREHOUSE_ID:
5707
      case BILLING_WAREHOUSE_ID:
7848
        if (value == null) {
5708
        if (value == null) {
7849
          unsetWarehouseId();
5709
          unsetBillingWarehouseId();
7850
        } else {
5710
        } else {
7851
          setWarehouseId((Long)value);
5711
          setBillingWarehouseId((Long)value);
7852
        }
5712
        }
7853
        break;
5713
        break;
7854
 
5714
 
7855
      }
5715
      }
7856
    }
5716
    }
Line 7861... Line 5721...
7861
        return getInventoryItem();
5721
        return getInventoryItem();
7862
 
5722
 
7863
      case TYPE:
5723
      case TYPE:
7864
        return getType();
5724
        return getType();
7865
 
5725
 
7866
      case WAREHOUSE_ID:
5726
      case BILLING_WAREHOUSE_ID:
7867
        return Long.valueOf(getWarehouseId());
5727
        return Long.valueOf(getBillingWarehouseId());
7868
 
5728
 
7869
      }
5729
      }
7870
      throw new IllegalStateException();
5730
      throw new IllegalStateException();
7871
    }
5731
    }
7872
 
5732
 
Line 7879... Line 5739...
7879
      switch (field) {
5739
      switch (field) {
7880
      case INVENTORY_ITEM:
5740
      case INVENTORY_ITEM:
7881
        return isSetInventoryItem();
5741
        return isSetInventoryItem();
7882
      case TYPE:
5742
      case TYPE:
7883
        return isSetType();
5743
        return isSetType();
7884
      case WAREHOUSE_ID:
5744
      case BILLING_WAREHOUSE_ID:
7885
        return isSetWarehouseId();
5745
        return isSetBillingWarehouseId();
7886
      }
5746
      }
7887
      throw new IllegalStateException();
5747
      throw new IllegalStateException();
7888
    }
5748
    }
7889
 
5749
 
7890
    @Override
5750
    @Override
Line 7916... Line 5776...
7916
          return false;
5776
          return false;
7917
        if (!this.type.equals(that.type))
5777
        if (!this.type.equals(that.type))
7918
          return false;
5778
          return false;
7919
      }
5779
      }
7920
 
5780
 
7921
      boolean this_present_warehouseId = true;
5781
      boolean this_present_billingWarehouseId = true;
7922
      boolean that_present_warehouseId = true;
5782
      boolean that_present_billingWarehouseId = true;
7923
      if (this_present_warehouseId || that_present_warehouseId) {
5783
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
7924
        if (!(this_present_warehouseId && that_present_warehouseId))
5784
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
7925
          return false;
5785
          return false;
7926
        if (this.warehouseId != that.warehouseId)
5786
        if (this.billingWarehouseId != that.billingWarehouseId)
7927
          return false;
5787
          return false;
7928
      }
5788
      }
7929
 
5789
 
7930
      return true;
5790
      return true;
7931
    }
5791
    }
Line 7961... Line 5821...
7961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
7962
        if (lastComparison != 0) {
5822
        if (lastComparison != 0) {
7963
          return lastComparison;
5823
          return lastComparison;
7964
        }
5824
        }
7965
      }
5825
      }
7966
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
5826
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
7967
      if (lastComparison != 0) {
5827
      if (lastComparison != 0) {
7968
        return lastComparison;
5828
        return lastComparison;
7969
      }
5829
      }
7970
      if (isSetWarehouseId()) {
5830
      if (isSetBillingWarehouseId()) {
7971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
5831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
7972
        if (lastComparison != 0) {
5832
        if (lastComparison != 0) {
7973
          return lastComparison;
5833
          return lastComparison;
7974
        }
5834
        }
7975
      }
5835
      }
7976
      return 0;
5836
      return 0;
Line 8003... Line 5863...
8003
              this.type = ScanType.findByValue(iprot.readI32());
5863
              this.type = ScanType.findByValue(iprot.readI32());
8004
            } else { 
5864
            } else { 
8005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8006
            }
5866
            }
8007
            break;
5867
            break;
8008
          case 3: // WAREHOUSE_ID
5868
          case 3: // BILLING_WAREHOUSE_ID
8009
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5869
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8010
              this.warehouseId = iprot.readI64();
5870
              this.billingWarehouseId = iprot.readI64();
8011
              setWarehouseIdIsSet(true);
5871
              setBillingWarehouseIdIsSet(true);
8012
            } else { 
5872
            } else { 
8013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8014
            }
5874
            }
8015
            break;
5875
            break;
8016
          default:
5876
          default:
Line 8034... Line 5894...
8034
      if (this.type != null) {
5894
      if (this.type != null) {
8035
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5895
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8036
        oprot.writeI32(this.type.getValue());
5896
        oprot.writeI32(this.type.getValue());
8037
        oprot.writeFieldEnd();
5897
        oprot.writeFieldEnd();
8038
      }
5898
      }
8039
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5899
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
8040
      oprot.writeI64(this.warehouseId);
5900
      oprot.writeI64(this.billingWarehouseId);
8041
      oprot.writeFieldEnd();
5901
      oprot.writeFieldEnd();
8042
      oprot.writeFieldStop();
5902
      oprot.writeFieldStop();
8043
      oprot.writeStructEnd();
5903
      oprot.writeStructEnd();
8044
    }
5904
    }
8045
 
5905
 
Line 8062... Line 5922...
8062
      } else {
5922
      } else {
8063
        sb.append(this.type);
5923
        sb.append(this.type);
8064
      }
5924
      }
8065
      first = false;
5925
      first = false;
8066
      if (!first) sb.append(", ");
5926
      if (!first) sb.append(", ");
8067
      sb.append("warehouseId:");
5927
      sb.append("billingWarehouseId:");
8068
      sb.append(this.warehouseId);
5928
      sb.append(this.billingWarehouseId);
8069
      first = false;
5929
      first = false;
8070
      sb.append(")");
5930
      sb.append(")");
8071
      return sb.toString();
5931
      return sb.toString();
8072
    }
5932
    }
8073
 
5933
 
Line 8390... Line 6250...
8390
  }
6250
  }
8391
 
6251
 
8392
  public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable   {
6252
  public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable   {
8393
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
6253
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
8394
 
6254
 
8395
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItemId", org.apache.thrift.protocol.TType.I64, (short)1);
6255
    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);
8396
    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);
6256
    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);
8397
    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);
6257
    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);
8398
    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)4);
6258
    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);
8399
 
6259
 
8400
    private long inventoryItemId; // required
6260
    private InventoryItem inventoryItem; // required
8401
    private ScanType type; // required
6261
    private ScanType type; // required
8402
    private long quantity; // required
6262
    private long quantity; // required
8403
    private long warehouseId; // required
6263
    private long billingWarehouseId; // required
8404
 
6264
 
8405
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6265
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8406
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6266
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8407
      INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
6267
      INVENTORY_ITEM((short)1, "inventoryItem"),
8408
      /**
6268
      /**
8409
       * 
6269
       * 
8410
       * @see ScanType
6270
       * @see ScanType
8411
       */
6271
       */
8412
      TYPE((short)2, "type"),
6272
      TYPE((short)2, "type"),
8413
      QUANTITY((short)3, "quantity"),
6273
      QUANTITY((short)3, "quantity"),
8414
      WAREHOUSE_ID((short)4, "warehouseId");
6274
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
8415
 
6275
 
8416
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6276
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8417
 
6277
 
8418
      static {
6278
      static {
8419
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6279
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 8424... Line 6284...
8424
      /**
6284
      /**
8425
       * Find the _Fields constant that matches fieldId, or null if its not found.
6285
       * Find the _Fields constant that matches fieldId, or null if its not found.
8426
       */
6286
       */
8427
      public static _Fields findByThriftId(int fieldId) {
6287
      public static _Fields findByThriftId(int fieldId) {
8428
        switch(fieldId) {
6288
        switch(fieldId) {
8429
          case 1: // INVENTORY_ITEM_ID
6289
          case 1: // INVENTORY_ITEM
8430
            return INVENTORY_ITEM_ID;
6290
            return INVENTORY_ITEM;
8431
          case 2: // TYPE
6291
          case 2: // TYPE
8432
            return TYPE;
6292
            return TYPE;
8433
          case 3: // QUANTITY
6293
          case 3: // QUANTITY
8434
            return QUANTITY;
6294
            return QUANTITY;
8435
          case 4: // WAREHOUSE_ID
6295
          case 4: // BILLING_WAREHOUSE_ID
8436
            return WAREHOUSE_ID;
6296
            return BILLING_WAREHOUSE_ID;
8437
          default:
6297
          default:
8438
            return null;
6298
            return null;
8439
        }
6299
        }
8440
      }
6300
      }
8441
 
6301
 
Line 8472... Line 6332...
8472
        return _fieldName;
6332
        return _fieldName;
8473
      }
6333
      }
8474
    }
6334
    }
8475
 
6335
 
8476
    // isset id assignments
6336
    // isset id assignments
8477
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
-
 
8478
    private static final int __QUANTITY_ISSET_ID = 1;
6337
    private static final int __QUANTITY_ISSET_ID = 0;
8479
    private static final int __WAREHOUSEID_ISSET_ID = 2;
6338
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
8480
    private BitSet __isset_bit_vector = new BitSet(3);
6339
    private BitSet __isset_bit_vector = new BitSet(2);
8481
 
6340
 
8482
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6341
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8483
    static {
6342
    static {
8484
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6343
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8485
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6344
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8486
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6345
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
8487
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6346
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8488
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
6347
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
8489
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6348
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8490
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6349
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8491
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6350
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8492
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6351
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8493
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8494
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
6353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
8495
    }
6354
    }
8496
 
6355
 
8497
    public scan_args() {
6356
    public scan_args() {
8498
    }
6357
    }
8499
 
6358
 
8500
    public scan_args(
6359
    public scan_args(
8501
      long inventoryItemId,
6360
      InventoryItem inventoryItem,
8502
      ScanType type,
6361
      ScanType type,
8503
      long quantity,
6362
      long quantity,
8504
      long warehouseId)
6363
      long billingWarehouseId)
8505
    {
6364
    {
8506
      this();
6365
      this();
8507
      this.inventoryItemId = inventoryItemId;
6366
      this.inventoryItem = inventoryItem;
8508
      setInventoryItemIdIsSet(true);
-
 
8509
      this.type = type;
6367
      this.type = type;
8510
      this.quantity = quantity;
6368
      this.quantity = quantity;
8511
      setQuantityIsSet(true);
6369
      setQuantityIsSet(true);
8512
      this.warehouseId = warehouseId;
6370
      this.billingWarehouseId = billingWarehouseId;
8513
      setWarehouseIdIsSet(true);
6371
      setBillingWarehouseIdIsSet(true);
8514
    }
6372
    }
8515
 
6373
 
8516
    /**
6374
    /**
8517
     * Performs a deep copy on <i>other</i>.
6375
     * Performs a deep copy on <i>other</i>.
8518
     */
6376
     */
8519
    public scan_args(scan_args other) {
6377
    public scan_args(scan_args other) {
8520
      __isset_bit_vector.clear();
6378
      __isset_bit_vector.clear();
8521
      __isset_bit_vector.or(other.__isset_bit_vector);
6379
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6380
      if (other.isSetInventoryItem()) {
8522
      this.inventoryItemId = other.inventoryItemId;
6381
        this.inventoryItem = new InventoryItem(other.inventoryItem);
-
 
6382
      }
8523
      if (other.isSetType()) {
6383
      if (other.isSetType()) {
8524
        this.type = other.type;
6384
        this.type = other.type;
8525
      }
6385
      }
8526
      this.quantity = other.quantity;
6386
      this.quantity = other.quantity;
8527
      this.warehouseId = other.warehouseId;
6387
      this.billingWarehouseId = other.billingWarehouseId;
8528
    }
6388
    }
8529
 
6389
 
8530
    public scan_args deepCopy() {
6390
    public scan_args deepCopy() {
8531
      return new scan_args(this);
6391
      return new scan_args(this);
8532
    }
6392
    }
8533
 
6393
 
8534
    @Override
6394
    @Override
8535
    public void clear() {
6395
    public void clear() {
8536
      setInventoryItemIdIsSet(false);
-
 
8537
      this.inventoryItemId = 0;
6396
      this.inventoryItem = null;
8538
      this.type = null;
6397
      this.type = null;
8539
      setQuantityIsSet(false);
6398
      setQuantityIsSet(false);
8540
      this.quantity = 0;
6399
      this.quantity = 0;
8541
      setWarehouseIdIsSet(false);
6400
      setBillingWarehouseIdIsSet(false);
8542
      this.warehouseId = 0;
6401
      this.billingWarehouseId = 0;
8543
    }
6402
    }
8544
 
6403
 
8545
    public long getInventoryItemId() {
6404
    public InventoryItem getInventoryItem() {
8546
      return this.inventoryItemId;
6405
      return this.inventoryItem;
8547
    }
6406
    }
8548
 
6407
 
8549
    public void setInventoryItemId(long inventoryItemId) {
6408
    public void setInventoryItem(InventoryItem inventoryItem) {
8550
      this.inventoryItemId = inventoryItemId;
6409
      this.inventoryItem = inventoryItem;
8551
      setInventoryItemIdIsSet(true);
-
 
8552
    }
6410
    }
8553
 
6411
 
8554
    public void unsetInventoryItemId() {
6412
    public void unsetInventoryItem() {
8555
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
6413
      this.inventoryItem = null;
8556
    }
6414
    }
8557
 
6415
 
8558
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
6416
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
8559
    public boolean isSetInventoryItemId() {
6417
    public boolean isSetInventoryItem() {
8560
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
6418
      return this.inventoryItem != null;
8561
    }
6419
    }
8562
 
6420
 
8563
    public void setInventoryItemIdIsSet(boolean value) {
6421
    public void setInventoryItemIsSet(boolean value) {
-
 
6422
      if (!value) {
8564
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
6423
        this.inventoryItem = null;
-
 
6424
      }
8565
    }
6425
    }
8566
 
6426
 
8567
    /**
6427
    /**
8568
     * 
6428
     * 
8569
     * @see ScanType
6429
     * @see ScanType
Line 8615... Line 6475...
8615
 
6475
 
8616
    public void setQuantityIsSet(boolean value) {
6476
    public void setQuantityIsSet(boolean value) {
8617
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
6477
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
8618
    }
6478
    }
8619
 
6479
 
8620
    public long getWarehouseId() {
6480
    public long getBillingWarehouseId() {
8621
      return this.warehouseId;
6481
      return this.billingWarehouseId;
8622
    }
6482
    }
8623
 
6483
 
8624
    public void setWarehouseId(long warehouseId) {
6484
    public void setBillingWarehouseId(long billingWarehouseId) {
8625
      this.warehouseId = warehouseId;
6485
      this.billingWarehouseId = billingWarehouseId;
8626
      setWarehouseIdIsSet(true);
6486
      setBillingWarehouseIdIsSet(true);
8627
    }
6487
    }
8628
 
6488
 
8629
    public void unsetWarehouseId() {
6489
    public void unsetBillingWarehouseId() {
8630
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
6490
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
8631
    }
6491
    }
8632
 
6492
 
8633
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
6493
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
8634
    public boolean isSetWarehouseId() {
6494
    public boolean isSetBillingWarehouseId() {
8635
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
6495
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
8636
    }
6496
    }
8637
 
6497
 
8638
    public void setWarehouseIdIsSet(boolean value) {
6498
    public void setBillingWarehouseIdIsSet(boolean value) {
8639
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
6499
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
8640
    }
6500
    }
8641
 
6501
 
8642
    public void setFieldValue(_Fields field, Object value) {
6502
    public void setFieldValue(_Fields field, Object value) {
8643
      switch (field) {
6503
      switch (field) {
8644
      case INVENTORY_ITEM_ID:
6504
      case INVENTORY_ITEM:
8645
        if (value == null) {
6505
        if (value == null) {
8646
          unsetInventoryItemId();
6506
          unsetInventoryItem();
8647
        } else {
6507
        } else {
8648
          setInventoryItemId((Long)value);
6508
          setInventoryItem((InventoryItem)value);
8649
        }
6509
        }
8650
        break;
6510
        break;
8651
 
6511
 
8652
      case TYPE:
6512
      case TYPE:
8653
        if (value == null) {
6513
        if (value == null) {
Line 8663... Line 6523...
8663
        } else {
6523
        } else {
8664
          setQuantity((Long)value);
6524
          setQuantity((Long)value);
8665
        }
6525
        }
8666
        break;
6526
        break;
8667
 
6527
 
8668
      case WAREHOUSE_ID:
6528
      case BILLING_WAREHOUSE_ID:
8669
        if (value == null) {
6529
        if (value == null) {
8670
          unsetWarehouseId();
6530
          unsetBillingWarehouseId();
8671
        } else {
6531
        } else {
8672
          setWarehouseId((Long)value);
6532
          setBillingWarehouseId((Long)value);
8673
        }
6533
        }
8674
        break;
6534
        break;
8675
 
6535
 
8676
      }
6536
      }
8677
    }
6537
    }
8678
 
6538
 
8679
    public Object getFieldValue(_Fields field) {
6539
    public Object getFieldValue(_Fields field) {
8680
      switch (field) {
6540
      switch (field) {
8681
      case INVENTORY_ITEM_ID:
6541
      case INVENTORY_ITEM:
8682
        return Long.valueOf(getInventoryItemId());
6542
        return getInventoryItem();
8683
 
6543
 
8684
      case TYPE:
6544
      case TYPE:
8685
        return getType();
6545
        return getType();
8686
 
6546
 
8687
      case QUANTITY:
6547
      case QUANTITY:
8688
        return Long.valueOf(getQuantity());
6548
        return Long.valueOf(getQuantity());
8689
 
6549
 
8690
      case WAREHOUSE_ID:
6550
      case BILLING_WAREHOUSE_ID:
8691
        return Long.valueOf(getWarehouseId());
6551
        return Long.valueOf(getBillingWarehouseId());
8692
 
6552
 
8693
      }
6553
      }
8694
      throw new IllegalStateException();
6554
      throw new IllegalStateException();
8695
    }
6555
    }
8696
 
6556
 
Line 8699... Line 6559...
8699
      if (field == null) {
6559
      if (field == null) {
8700
        throw new IllegalArgumentException();
6560
        throw new IllegalArgumentException();
8701
      }
6561
      }
8702
 
6562
 
8703
      switch (field) {
6563
      switch (field) {
8704
      case INVENTORY_ITEM_ID:
6564
      case INVENTORY_ITEM:
8705
        return isSetInventoryItemId();
6565
        return isSetInventoryItem();
8706
      case TYPE:
6566
      case TYPE:
8707
        return isSetType();
6567
        return isSetType();
8708
      case QUANTITY:
6568
      case QUANTITY:
8709
        return isSetQuantity();
6569
        return isSetQuantity();
8710
      case WAREHOUSE_ID:
6570
      case BILLING_WAREHOUSE_ID:
8711
        return isSetWarehouseId();
6571
        return isSetBillingWarehouseId();
8712
      }
6572
      }
8713
      throw new IllegalStateException();
6573
      throw new IllegalStateException();
8714
    }
6574
    }
8715
 
6575
 
8716
    @Override
6576
    @Override
Line 8724... Line 6584...
8724
 
6584
 
8725
    public boolean equals(scan_args that) {
6585
    public boolean equals(scan_args that) {
8726
      if (that == null)
6586
      if (that == null)
8727
        return false;
6587
        return false;
8728
 
6588
 
8729
      boolean this_present_inventoryItemId = true;
6589
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
8730
      boolean that_present_inventoryItemId = true;
6590
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
8731
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
6591
      if (this_present_inventoryItem || that_present_inventoryItem) {
8732
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
6592
        if (!(this_present_inventoryItem && that_present_inventoryItem))
8733
          return false;
6593
          return false;
8734
        if (this.inventoryItemId != that.inventoryItemId)
6594
        if (!this.inventoryItem.equals(that.inventoryItem))
8735
          return false;
6595
          return false;
8736
      }
6596
      }
8737
 
6597
 
8738
      boolean this_present_type = true && this.isSetType();
6598
      boolean this_present_type = true && this.isSetType();
8739
      boolean that_present_type = true && that.isSetType();
6599
      boolean that_present_type = true && that.isSetType();
Line 8751... Line 6611...
8751
          return false;
6611
          return false;
8752
        if (this.quantity != that.quantity)
6612
        if (this.quantity != that.quantity)
8753
          return false;
6613
          return false;
8754
      }
6614
      }
8755
 
6615
 
8756
      boolean this_present_warehouseId = true;
6616
      boolean this_present_billingWarehouseId = true;
8757
      boolean that_present_warehouseId = true;
6617
      boolean that_present_billingWarehouseId = true;
8758
      if (this_present_warehouseId || that_present_warehouseId) {
6618
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
8759
        if (!(this_present_warehouseId && that_present_warehouseId))
6619
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
8760
          return false;
6620
          return false;
8761
        if (this.warehouseId != that.warehouseId)
6621
        if (this.billingWarehouseId != that.billingWarehouseId)
8762
          return false;
6622
          return false;
8763
      }
6623
      }
8764
 
6624
 
8765
      return true;
6625
      return true;
8766
    }
6626
    }
Line 8776... Line 6636...
8776
      }
6636
      }
8777
 
6637
 
8778
      int lastComparison = 0;
6638
      int lastComparison = 0;
8779
      scan_args typedOther = (scan_args)other;
6639
      scan_args typedOther = (scan_args)other;
8780
 
6640
 
8781
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
6641
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
8782
      if (lastComparison != 0) {
6642
      if (lastComparison != 0) {
8783
        return lastComparison;
6643
        return lastComparison;
8784
      }
6644
      }
8785
      if (isSetInventoryItemId()) {
6645
      if (isSetInventoryItem()) {
8786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
6646
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
8787
        if (lastComparison != 0) {
6647
        if (lastComparison != 0) {
8788
          return lastComparison;
6648
          return lastComparison;
8789
        }
6649
        }
8790
      }
6650
      }
8791
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6651
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
Line 8806... Line 6666...
8806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
6666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
8807
        if (lastComparison != 0) {
6667
        if (lastComparison != 0) {
8808
          return lastComparison;
6668
          return lastComparison;
8809
        }
6669
        }
8810
      }
6670
      }
8811
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
6671
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
8812
      if (lastComparison != 0) {
6672
      if (lastComparison != 0) {
8813
        return lastComparison;
6673
        return lastComparison;
8814
      }
6674
      }
8815
      if (isSetWarehouseId()) {
6675
      if (isSetBillingWarehouseId()) {
8816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
6676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
8817
        if (lastComparison != 0) {
6677
        if (lastComparison != 0) {
8818
          return lastComparison;
6678
          return lastComparison;
8819
        }
6679
        }
8820
      }
6680
      }
8821
      return 0;
6681
      return 0;
Line 8833... Line 6693...
8833
        field = iprot.readFieldBegin();
6693
        field = iprot.readFieldBegin();
8834
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6694
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8835
          break;
6695
          break;
8836
        }
6696
        }
8837
        switch (field.id) {
6697
        switch (field.id) {
8838
          case 1: // INVENTORY_ITEM_ID
6698
          case 1: // INVENTORY_ITEM
8839
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6699
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8840
              this.inventoryItemId = iprot.readI64();
6700
              this.inventoryItem = new InventoryItem();
8841
              setInventoryItemIdIsSet(true);
6701
              this.inventoryItem.read(iprot);
8842
            } else { 
6702
            } else { 
8843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8844
            }
6704
            }
8845
            break;
6705
            break;
8846
          case 2: // TYPE
6706
          case 2: // TYPE
Line 8856... Line 6716...
8856
              setQuantityIsSet(true);
6716
              setQuantityIsSet(true);
8857
            } else { 
6717
            } else { 
8858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8859
            }
6719
            }
8860
            break;
6720
            break;
8861
          case 4: // WAREHOUSE_ID
6721
          case 4: // BILLING_WAREHOUSE_ID
8862
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6722
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8863
              this.warehouseId = iprot.readI64();
6723
              this.billingWarehouseId = iprot.readI64();
8864
              setWarehouseIdIsSet(true);
6724
              setBillingWarehouseIdIsSet(true);
8865
            } else { 
6725
            } else { 
8866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8867
            }
6727
            }
8868
            break;
6728
            break;
8869
          default:
6729
          default:
Line 8877... Line 6737...
8877
 
6737
 
8878
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8879
      validate();
6739
      validate();
8880
 
6740
 
8881
      oprot.writeStructBegin(STRUCT_DESC);
6741
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6742
      if (this.inventoryItem != null) {
8882
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
6743
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
8883
      oprot.writeI64(this.inventoryItemId);
6744
        this.inventoryItem.write(oprot);
8884
      oprot.writeFieldEnd();
6745
        oprot.writeFieldEnd();
-
 
6746
      }
8885
      if (this.type != null) {
6747
      if (this.type != null) {
8886
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6748
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8887
        oprot.writeI32(this.type.getValue());
6749
        oprot.writeI32(this.type.getValue());
8888
        oprot.writeFieldEnd();
6750
        oprot.writeFieldEnd();
8889
      }
6751
      }
8890
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
6752
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
8891
      oprot.writeI64(this.quantity);
6753
      oprot.writeI64(this.quantity);
8892
      oprot.writeFieldEnd();
6754
      oprot.writeFieldEnd();
8893
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
6755
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
8894
      oprot.writeI64(this.warehouseId);
6756
      oprot.writeI64(this.billingWarehouseId);
8895
      oprot.writeFieldEnd();
6757
      oprot.writeFieldEnd();
8896
      oprot.writeFieldStop();
6758
      oprot.writeFieldStop();
8897
      oprot.writeStructEnd();
6759
      oprot.writeStructEnd();
8898
    }
6760
    }
8899
 
6761
 
8900
    @Override
6762
    @Override
8901
    public String toString() {
6763
    public String toString() {
8902
      StringBuilder sb = new StringBuilder("scan_args(");
6764
      StringBuilder sb = new StringBuilder("scan_args(");
8903
      boolean first = true;
6765
      boolean first = true;
8904
 
6766
 
8905
      sb.append("inventoryItemId:");
6767
      sb.append("inventoryItem:");
-
 
6768
      if (this.inventoryItem == null) {
-
 
6769
        sb.append("null");
-
 
6770
      } else {
8906
      sb.append(this.inventoryItemId);
6771
        sb.append(this.inventoryItem);
-
 
6772
      }
8907
      first = false;
6773
      first = false;
8908
      if (!first) sb.append(", ");
6774
      if (!first) sb.append(", ");
8909
      sb.append("type:");
6775
      sb.append("type:");
8910
      if (this.type == null) {
6776
      if (this.type == null) {
8911
        sb.append("null");
6777
        sb.append("null");
Line 8916... Line 6782...
8916
      if (!first) sb.append(", ");
6782
      if (!first) sb.append(", ");
8917
      sb.append("quantity:");
6783
      sb.append("quantity:");
8918
      sb.append(this.quantity);
6784
      sb.append(this.quantity);
8919
      first = false;
6785
      first = false;
8920
      if (!first) sb.append(", ");
6786
      if (!first) sb.append(", ");
8921
      sb.append("warehouseId:");
6787
      sb.append("billingWarehouseId:");
8922
      sb.append(this.warehouseId);
6788
      sb.append(this.billingWarehouseId);
8923
      first = false;
6789
      first = false;
8924
      sb.append(")");
6790
      sb.append(")");
8925
      return sb.toString();
6791
      return sb.toString();
8926
    }
6792
    }
8927
 
6793
 
Line 10355... Line 8221...
10355
  }
8221
  }
10356
 
8222
 
10357
  public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
8223
  public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
10358
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
8224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
10359
 
8225
 
10360
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItemId", org.apache.thrift.protocol.TType.I64, (short)1);
8226
    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);
10361
    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);
8227
    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);
10362
    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);
8228
    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);
10363
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);
8229
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);
10364
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
8230
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
8231
    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)6);
10365
 
8232
 
10366
    private long inventoryItemId; // required
8233
    private InventoryItem inventoryItem; // required
10367
    private ScanType type; // required
8234
    private ScanType type; // required
10368
    private long quantity; // required
8235
    private long quantity; // required
10369
    private long orderId; // required
8236
    private long orderId; // required
10370
    private long fulfilmentWarehouseId; // required
8237
    private long fulfilmentWarehouseId; // required
-
 
8238
    private long billingWarehouseId; // required
10371
 
8239
 
10372
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8240
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10373
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8241
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10374
      INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
8242
      INVENTORY_ITEM((short)1, "inventoryItem"),
10375
      /**
8243
      /**
10376
       * 
8244
       * 
10377
       * @see ScanType
8245
       * @see ScanType
10378
       */
8246
       */
10379
      TYPE((short)2, "type"),
8247
      TYPE((short)2, "type"),
10380
      QUANTITY((short)3, "quantity"),
8248
      QUANTITY((short)3, "quantity"),
10381
      ORDER_ID((short)4, "orderId"),
8249
      ORDER_ID((short)4, "orderId"),
10382
      FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId");
8250
      FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
-
 
8251
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
10383
 
8252
 
10384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8253
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10385
 
8254
 
10386
      static {
8255
      static {
10387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8256
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 10392... Line 8261...
10392
      /**
8261
      /**
10393
       * Find the _Fields constant that matches fieldId, or null if its not found.
8262
       * Find the _Fields constant that matches fieldId, or null if its not found.
10394
       */
8263
       */
10395
      public static _Fields findByThriftId(int fieldId) {
8264
      public static _Fields findByThriftId(int fieldId) {
10396
        switch(fieldId) {
8265
        switch(fieldId) {
10397
          case 1: // INVENTORY_ITEM_ID
8266
          case 1: // INVENTORY_ITEM
10398
            return INVENTORY_ITEM_ID;
8267
            return INVENTORY_ITEM;
10399
          case 2: // TYPE
8268
          case 2: // TYPE
10400
            return TYPE;
8269
            return TYPE;
10401
          case 3: // QUANTITY
8270
          case 3: // QUANTITY
10402
            return QUANTITY;
8271
            return QUANTITY;
10403
          case 4: // ORDER_ID
8272
          case 4: // ORDER_ID
10404
            return ORDER_ID;
8273
            return ORDER_ID;
10405
          case 5: // FULFILMENT_WAREHOUSE_ID
8274
          case 5: // FULFILMENT_WAREHOUSE_ID
10406
            return FULFILMENT_WAREHOUSE_ID;
8275
            return FULFILMENT_WAREHOUSE_ID;
-
 
8276
          case 6: // BILLING_WAREHOUSE_ID
-
 
8277
            return BILLING_WAREHOUSE_ID;
10407
          default:
8278
          default:
10408
            return null;
8279
            return null;
10409
        }
8280
        }
10410
      }
8281
      }
10411
 
8282
 
Line 10442... Line 8313...
10442
        return _fieldName;
8313
        return _fieldName;
10443
      }
8314
      }
10444
    }
8315
    }
10445
 
8316
 
10446
    // isset id assignments
8317
    // isset id assignments
10447
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
8318
    private static final int __QUANTITY_ISSET_ID = 0;
10448
    private static final int __QUANTITY_ISSET_ID = 1;
8319
    private static final int __ORDERID_ISSET_ID = 1;
10449
    private static final int __ORDERID_ISSET_ID = 2;
8320
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
10450
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 3;
8321
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
10451
    private BitSet __isset_bit_vector = new BitSet(4);
8322
    private BitSet __isset_bit_vector = new BitSet(4);
10452
 
8323
 
10453
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10454
    static {
8325
    static {
10455
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10456
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8327
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10457
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8328
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
10458
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8329
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10459
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
8330
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
10460
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8331
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10461
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8332
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10462
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8333
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10463
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8334
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10464
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8335
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10465
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8336
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8337
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8338
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10466
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8339
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10467
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
8340
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
10468
    }
8341
    }
10469
 
8342
 
10470
    public scanForOrder_args() {
8343
    public scanForOrder_args() {
10471
    }
8344
    }
10472
 
8345
 
10473
    public scanForOrder_args(
8346
    public scanForOrder_args(
10474
      long inventoryItemId,
8347
      InventoryItem inventoryItem,
10475
      ScanType type,
8348
      ScanType type,
10476
      long quantity,
8349
      long quantity,
10477
      long orderId,
8350
      long orderId,
10478
      long fulfilmentWarehouseId)
8351
      long fulfilmentWarehouseId,
-
 
8352
      long billingWarehouseId)
10479
    {
8353
    {
10480
      this();
8354
      this();
10481
      this.inventoryItemId = inventoryItemId;
8355
      this.inventoryItem = inventoryItem;
10482
      setInventoryItemIdIsSet(true);
-
 
10483
      this.type = type;
8356
      this.type = type;
10484
      this.quantity = quantity;
8357
      this.quantity = quantity;
10485
      setQuantityIsSet(true);
8358
      setQuantityIsSet(true);
10486
      this.orderId = orderId;
8359
      this.orderId = orderId;
10487
      setOrderIdIsSet(true);
8360
      setOrderIdIsSet(true);
10488
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
8361
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
10489
      setFulfilmentWarehouseIdIsSet(true);
8362
      setFulfilmentWarehouseIdIsSet(true);
-
 
8363
      this.billingWarehouseId = billingWarehouseId;
-
 
8364
      setBillingWarehouseIdIsSet(true);
10490
    }
8365
    }
10491
 
8366
 
10492
    /**
8367
    /**
10493
     * Performs a deep copy on <i>other</i>.
8368
     * Performs a deep copy on <i>other</i>.
10494
     */
8369
     */
10495
    public scanForOrder_args(scanForOrder_args other) {
8370
    public scanForOrder_args(scanForOrder_args other) {
10496
      __isset_bit_vector.clear();
8371
      __isset_bit_vector.clear();
10497
      __isset_bit_vector.or(other.__isset_bit_vector);
8372
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8373
      if (other.isSetInventoryItem()) {
10498
      this.inventoryItemId = other.inventoryItemId;
8374
        this.inventoryItem = new InventoryItem(other.inventoryItem);
-
 
8375
      }
10499
      if (other.isSetType()) {
8376
      if (other.isSetType()) {
10500
        this.type = other.type;
8377
        this.type = other.type;
10501
      }
8378
      }
10502
      this.quantity = other.quantity;
8379
      this.quantity = other.quantity;
10503
      this.orderId = other.orderId;
8380
      this.orderId = other.orderId;
10504
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
8381
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
-
 
8382
      this.billingWarehouseId = other.billingWarehouseId;
10505
    }
8383
    }
10506
 
8384
 
10507
    public scanForOrder_args deepCopy() {
8385
    public scanForOrder_args deepCopy() {
10508
      return new scanForOrder_args(this);
8386
      return new scanForOrder_args(this);
10509
    }
8387
    }
10510
 
8388
 
10511
    @Override
8389
    @Override
10512
    public void clear() {
8390
    public void clear() {
10513
      setInventoryItemIdIsSet(false);
-
 
10514
      this.inventoryItemId = 0;
8391
      this.inventoryItem = null;
10515
      this.type = null;
8392
      this.type = null;
10516
      setQuantityIsSet(false);
8393
      setQuantityIsSet(false);
10517
      this.quantity = 0;
8394
      this.quantity = 0;
10518
      setOrderIdIsSet(false);
8395
      setOrderIdIsSet(false);
10519
      this.orderId = 0;
8396
      this.orderId = 0;
10520
      setFulfilmentWarehouseIdIsSet(false);
8397
      setFulfilmentWarehouseIdIsSet(false);
10521
      this.fulfilmentWarehouseId = 0;
8398
      this.fulfilmentWarehouseId = 0;
-
 
8399
      setBillingWarehouseIdIsSet(false);
-
 
8400
      this.billingWarehouseId = 0;
10522
    }
8401
    }
10523
 
8402
 
10524
    public long getInventoryItemId() {
8403
    public InventoryItem getInventoryItem() {
10525
      return this.inventoryItemId;
8404
      return this.inventoryItem;
10526
    }
8405
    }
10527
 
8406
 
10528
    public void setInventoryItemId(long inventoryItemId) {
8407
    public void setInventoryItem(InventoryItem inventoryItem) {
10529
      this.inventoryItemId = inventoryItemId;
8408
      this.inventoryItem = inventoryItem;
10530
      setInventoryItemIdIsSet(true);
-
 
10531
    }
8409
    }
10532
 
8410
 
10533
    public void unsetInventoryItemId() {
8411
    public void unsetInventoryItem() {
10534
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
8412
      this.inventoryItem = null;
10535
    }
8413
    }
10536
 
8414
 
10537
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
8415
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
10538
    public boolean isSetInventoryItemId() {
8416
    public boolean isSetInventoryItem() {
10539
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
8417
      return this.inventoryItem != null;
10540
    }
8418
    }
10541
 
8419
 
10542
    public void setInventoryItemIdIsSet(boolean value) {
8420
    public void setInventoryItemIsSet(boolean value) {
-
 
8421
      if (!value) {
10543
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
8422
        this.inventoryItem = null;
-
 
8423
      }
10544
    }
8424
    }
10545
 
8425
 
10546
    /**
8426
    /**
10547
     * 
8427
     * 
10548
     * @see ScanType
8428
     * @see ScanType
Line 10638... Line 8518...
10638
 
8518
 
10639
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
8519
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
10640
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
8520
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
10641
    }
8521
    }
10642
 
8522
 
-
 
8523
    public long getBillingWarehouseId() {
-
 
8524
      return this.billingWarehouseId;
-
 
8525
    }
-
 
8526
 
-
 
8527
    public void setBillingWarehouseId(long billingWarehouseId) {
-
 
8528
      this.billingWarehouseId = billingWarehouseId;
-
 
8529
      setBillingWarehouseIdIsSet(true);
-
 
8530
    }
-
 
8531
 
-
 
8532
    public void unsetBillingWarehouseId() {
-
 
8533
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
8534
    }
-
 
8535
 
-
 
8536
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
-
 
8537
    public boolean isSetBillingWarehouseId() {
-
 
8538
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
8539
    }
-
 
8540
 
-
 
8541
    public void setBillingWarehouseIdIsSet(boolean value) {
-
 
8542
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
-
 
8543
    }
-
 
8544
 
10643
    public void setFieldValue(_Fields field, Object value) {
8545
    public void setFieldValue(_Fields field, Object value) {
10644
      switch (field) {
8546
      switch (field) {
10645
      case INVENTORY_ITEM_ID:
8547
      case INVENTORY_ITEM:
10646
        if (value == null) {
8548
        if (value == null) {
10647
          unsetInventoryItemId();
8549
          unsetInventoryItem();
10648
        } else {
8550
        } else {
10649
          setInventoryItemId((Long)value);
8551
          setInventoryItem((InventoryItem)value);
10650
        }
8552
        }
10651
        break;
8553
        break;
10652
 
8554
 
10653
      case TYPE:
8555
      case TYPE:
10654
        if (value == null) {
8556
        if (value == null) {
Line 10680... Line 8582...
10680
        } else {
8582
        } else {
10681
          setFulfilmentWarehouseId((Long)value);
8583
          setFulfilmentWarehouseId((Long)value);
10682
        }
8584
        }
10683
        break;
8585
        break;
10684
 
8586
 
-
 
8587
      case BILLING_WAREHOUSE_ID:
-
 
8588
        if (value == null) {
-
 
8589
          unsetBillingWarehouseId();
-
 
8590
        } else {
-
 
8591
          setBillingWarehouseId((Long)value);
-
 
8592
        }
-
 
8593
        break;
-
 
8594
 
10685
      }
8595
      }
10686
    }
8596
    }
10687
 
8597
 
10688
    public Object getFieldValue(_Fields field) {
8598
    public Object getFieldValue(_Fields field) {
10689
      switch (field) {
8599
      switch (field) {
10690
      case INVENTORY_ITEM_ID:
8600
      case INVENTORY_ITEM:
10691
        return Long.valueOf(getInventoryItemId());
8601
        return getInventoryItem();
10692
 
8602
 
10693
      case TYPE:
8603
      case TYPE:
10694
        return getType();
8604
        return getType();
10695
 
8605
 
10696
      case QUANTITY:
8606
      case QUANTITY:
Line 10700... Line 8610...
10700
        return Long.valueOf(getOrderId());
8610
        return Long.valueOf(getOrderId());
10701
 
8611
 
10702
      case FULFILMENT_WAREHOUSE_ID:
8612
      case FULFILMENT_WAREHOUSE_ID:
10703
        return Long.valueOf(getFulfilmentWarehouseId());
8613
        return Long.valueOf(getFulfilmentWarehouseId());
10704
 
8614
 
-
 
8615
      case BILLING_WAREHOUSE_ID:
-
 
8616
        return Long.valueOf(getBillingWarehouseId());
-
 
8617
 
10705
      }
8618
      }
10706
      throw new IllegalStateException();
8619
      throw new IllegalStateException();
10707
    }
8620
    }
10708
 
8621
 
10709
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8622
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 10711... Line 8624...
10711
      if (field == null) {
8624
      if (field == null) {
10712
        throw new IllegalArgumentException();
8625
        throw new IllegalArgumentException();
10713
      }
8626
      }
10714
 
8627
 
10715
      switch (field) {
8628
      switch (field) {
10716
      case INVENTORY_ITEM_ID:
8629
      case INVENTORY_ITEM:
10717
        return isSetInventoryItemId();
8630
        return isSetInventoryItem();
10718
      case TYPE:
8631
      case TYPE:
10719
        return isSetType();
8632
        return isSetType();
10720
      case QUANTITY:
8633
      case QUANTITY:
10721
        return isSetQuantity();
8634
        return isSetQuantity();
10722
      case ORDER_ID:
8635
      case ORDER_ID:
10723
        return isSetOrderId();
8636
        return isSetOrderId();
10724
      case FULFILMENT_WAREHOUSE_ID:
8637
      case FULFILMENT_WAREHOUSE_ID:
10725
        return isSetFulfilmentWarehouseId();
8638
        return isSetFulfilmentWarehouseId();
-
 
8639
      case BILLING_WAREHOUSE_ID:
-
 
8640
        return isSetBillingWarehouseId();
10726
      }
8641
      }
10727
      throw new IllegalStateException();
8642
      throw new IllegalStateException();
10728
    }
8643
    }
10729
 
8644
 
10730
    @Override
8645
    @Override
Line 10738... Line 8653...
10738
 
8653
 
10739
    public boolean equals(scanForOrder_args that) {
8654
    public boolean equals(scanForOrder_args that) {
10740
      if (that == null)
8655
      if (that == null)
10741
        return false;
8656
        return false;
10742
 
8657
 
10743
      boolean this_present_inventoryItemId = true;
8658
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
10744
      boolean that_present_inventoryItemId = true;
8659
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
10745
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
8660
      if (this_present_inventoryItem || that_present_inventoryItem) {
10746
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
8661
        if (!(this_present_inventoryItem && that_present_inventoryItem))
10747
          return false;
8662
          return false;
10748
        if (this.inventoryItemId != that.inventoryItemId)
8663
        if (!this.inventoryItem.equals(that.inventoryItem))
10749
          return false;
8664
          return false;
10750
      }
8665
      }
10751
 
8666
 
10752
      boolean this_present_type = true && this.isSetType();
8667
      boolean this_present_type = true && this.isSetType();
10753
      boolean that_present_type = true && that.isSetType();
8668
      boolean that_present_type = true && that.isSetType();
Line 10783... Line 8698...
10783
          return false;
8698
          return false;
10784
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
8699
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
10785
          return false;
8700
          return false;
10786
      }
8701
      }
10787
 
8702
 
-
 
8703
      boolean this_present_billingWarehouseId = true;
-
 
8704
      boolean that_present_billingWarehouseId = true;
-
 
8705
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
-
 
8706
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
-
 
8707
          return false;
-
 
8708
        if (this.billingWarehouseId != that.billingWarehouseId)
-
 
8709
          return false;
-
 
8710
      }
-
 
8711
 
10788
      return true;
8712
      return true;
10789
    }
8713
    }
10790
 
8714
 
10791
    @Override
8715
    @Override
10792
    public int hashCode() {
8716
    public int hashCode() {
Line 10799... Line 8723...
10799
      }
8723
      }
10800
 
8724
 
10801
      int lastComparison = 0;
8725
      int lastComparison = 0;
10802
      scanForOrder_args typedOther = (scanForOrder_args)other;
8726
      scanForOrder_args typedOther = (scanForOrder_args)other;
10803
 
8727
 
10804
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
8728
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
10805
      if (lastComparison != 0) {
8729
      if (lastComparison != 0) {
10806
        return lastComparison;
8730
        return lastComparison;
10807
      }
8731
      }
10808
      if (isSetInventoryItemId()) {
8732
      if (isSetInventoryItem()) {
10809
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
8733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
10810
        if (lastComparison != 0) {
8734
        if (lastComparison != 0) {
10811
          return lastComparison;
8735
          return lastComparison;
10812
        }
8736
        }
10813
      }
8737
      }
10814
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
8738
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
Line 10849... Line 8773...
10849
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
8773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
10850
        if (lastComparison != 0) {
8774
        if (lastComparison != 0) {
10851
          return lastComparison;
8775
          return lastComparison;
10852
        }
8776
        }
10853
      }
8777
      }
-
 
8778
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
-
 
8779
      if (lastComparison != 0) {
-
 
8780
        return lastComparison;
-
 
8781
      }
-
 
8782
      if (isSetBillingWarehouseId()) {
-
 
8783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
-
 
8784
        if (lastComparison != 0) {
-
 
8785
          return lastComparison;
-
 
8786
        }
-
 
8787
      }
10854
      return 0;
8788
      return 0;
10855
    }
8789
    }
10856
 
8790
 
10857
    public _Fields fieldForId(int fieldId) {
8791
    public _Fields fieldForId(int fieldId) {
10858
      return _Fields.findByThriftId(fieldId);
8792
      return _Fields.findByThriftId(fieldId);
Line 10866... Line 8800...
10866
        field = iprot.readFieldBegin();
8800
        field = iprot.readFieldBegin();
10867
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10868
          break;
8802
          break;
10869
        }
8803
        }
10870
        switch (field.id) {
8804
        switch (field.id) {
10871
          case 1: // INVENTORY_ITEM_ID
8805
          case 1: // INVENTORY_ITEM
10872
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8806
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10873
              this.inventoryItemId = iprot.readI64();
8807
              this.inventoryItem = new InventoryItem();
10874
              setInventoryItemIdIsSet(true);
8808
              this.inventoryItem.read(iprot);
10875
            } else { 
8809
            } else { 
10876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10877
            }
8811
            }
10878
            break;
8812
            break;
10879
          case 2: // TYPE
8813
          case 2: // TYPE
Line 10905... Line 8839...
10905
              setFulfilmentWarehouseIdIsSet(true);
8839
              setFulfilmentWarehouseIdIsSet(true);
10906
            } else { 
8840
            } else { 
10907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8841
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10908
            }
8842
            }
10909
            break;
8843
            break;
-
 
8844
          case 6: // BILLING_WAREHOUSE_ID
-
 
8845
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8846
              this.billingWarehouseId = iprot.readI64();
-
 
8847
              setBillingWarehouseIdIsSet(true);
-
 
8848
            } else { 
-
 
8849
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8850
            }
-
 
8851
            break;
10910
          default:
8852
          default:
10911
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8853
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10912
        }
8854
        }
10913
        iprot.readFieldEnd();
8855
        iprot.readFieldEnd();
10914
      }
8856
      }
Line 10918... Line 8860...
10918
 
8860
 
10919
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8861
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10920
      validate();
8862
      validate();
10921
 
8863
 
10922
      oprot.writeStructBegin(STRUCT_DESC);
8864
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8865
      if (this.inventoryItem != null) {
10923
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
8866
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
10924
      oprot.writeI64(this.inventoryItemId);
8867
        this.inventoryItem.write(oprot);
10925
      oprot.writeFieldEnd();
8868
        oprot.writeFieldEnd();
-
 
8869
      }
10926
      if (this.type != null) {
8870
      if (this.type != null) {
10927
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8871
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10928
        oprot.writeI32(this.type.getValue());
8872
        oprot.writeI32(this.type.getValue());
10929
        oprot.writeFieldEnd();
8873
        oprot.writeFieldEnd();
10930
      }
8874
      }
Line 10935... Line 8879...
10935
      oprot.writeI64(this.orderId);
8879
      oprot.writeI64(this.orderId);
10936
      oprot.writeFieldEnd();
8880
      oprot.writeFieldEnd();
10937
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
8881
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
10938
      oprot.writeI64(this.fulfilmentWarehouseId);
8882
      oprot.writeI64(this.fulfilmentWarehouseId);
10939
      oprot.writeFieldEnd();
8883
      oprot.writeFieldEnd();
-
 
8884
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
-
 
8885
      oprot.writeI64(this.billingWarehouseId);
-
 
8886
      oprot.writeFieldEnd();
10940
      oprot.writeFieldStop();
8887
      oprot.writeFieldStop();
10941
      oprot.writeStructEnd();
8888
      oprot.writeStructEnd();
10942
    }
8889
    }
10943
 
8890
 
10944
    @Override
8891
    @Override
10945
    public String toString() {
8892
    public String toString() {
10946
      StringBuilder sb = new StringBuilder("scanForOrder_args(");
8893
      StringBuilder sb = new StringBuilder("scanForOrder_args(");
10947
      boolean first = true;
8894
      boolean first = true;
10948
 
8895
 
10949
      sb.append("inventoryItemId:");
8896
      sb.append("inventoryItem:");
-
 
8897
      if (this.inventoryItem == null) {
-
 
8898
        sb.append("null");
-
 
8899
      } else {
10950
      sb.append(this.inventoryItemId);
8900
        sb.append(this.inventoryItem);
-
 
8901
      }
10951
      first = false;
8902
      first = false;
10952
      if (!first) sb.append(", ");
8903
      if (!first) sb.append(", ");
10953
      sb.append("type:");
8904
      sb.append("type:");
10954
      if (this.type == null) {
8905
      if (this.type == null) {
10955
        sb.append("null");
8906
        sb.append("null");
Line 10967... Line 8918...
10967
      first = false;
8918
      first = false;
10968
      if (!first) sb.append(", ");
8919
      if (!first) sb.append(", ");
10969
      sb.append("fulfilmentWarehouseId:");
8920
      sb.append("fulfilmentWarehouseId:");
10970
      sb.append(this.fulfilmentWarehouseId);
8921
      sb.append(this.fulfilmentWarehouseId);
10971
      first = false;
8922
      first = false;
-
 
8923
      if (!first) sb.append(", ");
-
 
8924
      sb.append("billingWarehouseId:");
-
 
8925
      sb.append(this.billingWarehouseId);
-
 
8926
      first = false;
10972
      sb.append(")");
8927
      sb.append(")");
10973
      return sb.toString();
8928
      return sb.toString();
10974
    }
8929
    }
10975
 
8930
 
10976
    public void validate() throws org.apache.thrift.TException {
8931
    public void validate() throws org.apache.thrift.TException {
Line 10998... Line 8953...
10998
  }
8953
  }
10999
 
8954
 
11000
  public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
8955
  public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
11001
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
8956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
11002
 
8957
 
-
 
8958
    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);
11003
    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);
8959
    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);
11004
 
8960
 
-
 
8961
    private InventoryItem success; // required
11005
    private WarehouseServiceException wex; // required
8962
    private WarehouseServiceException wex; // required
11006
 
8963
 
11007
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11008
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8965
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8966
      SUCCESS((short)0, "success"),
11009
      WEX((short)1, "wex");
8967
      WEX((short)1, "wex");
11010
 
8968
 
11011
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11012
 
8970
 
11013
      static {
8971
      static {
Line 11019... Line 8977...
11019
      /**
8977
      /**
11020
       * Find the _Fields constant that matches fieldId, or null if its not found.
8978
       * Find the _Fields constant that matches fieldId, or null if its not found.
11021
       */
8979
       */
11022
      public static _Fields findByThriftId(int fieldId) {
8980
      public static _Fields findByThriftId(int fieldId) {
11023
        switch(fieldId) {
8981
        switch(fieldId) {
-
 
8982
          case 0: // SUCCESS
-
 
8983
            return SUCCESS;
11024
          case 1: // WEX
8984
          case 1: // WEX
11025
            return WEX;
8985
            return WEX;
11026
          default:
8986
          default:
11027
            return null;
8987
            return null;
11028
        }
8988
        }
Line 11065... Line 9025...
11065
    // isset id assignments
9025
    // isset id assignments
11066
 
9026
 
11067
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9027
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11068
    static {
9028
    static {
11069
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9029
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9030
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9031
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
11070
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9032
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11071
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9033
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11072
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9034
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11073
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
9035
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
11074
    }
9036
    }
11075
 
9037
 
11076
    public scanForOrder_result() {
9038
    public scanForOrder_result() {
11077
    }
9039
    }
11078
 
9040
 
11079
    public scanForOrder_result(
9041
    public scanForOrder_result(
-
 
9042
      InventoryItem success,
11080
      WarehouseServiceException wex)
9043
      WarehouseServiceException wex)
11081
    {
9044
    {
11082
      this();
9045
      this();
-
 
9046
      this.success = success;
11083
      this.wex = wex;
9047
      this.wex = wex;
11084
    }
9048
    }
11085
 
9049
 
11086
    /**
9050
    /**
11087
     * Performs a deep copy on <i>other</i>.
9051
     * Performs a deep copy on <i>other</i>.
11088
     */
9052
     */
11089
    public scanForOrder_result(scanForOrder_result other) {
9053
    public scanForOrder_result(scanForOrder_result other) {
-
 
9054
      if (other.isSetSuccess()) {
-
 
9055
        this.success = new InventoryItem(other.success);
-
 
9056
      }
11090
      if (other.isSetWex()) {
9057
      if (other.isSetWex()) {
11091
        this.wex = new WarehouseServiceException(other.wex);
9058
        this.wex = new WarehouseServiceException(other.wex);
11092
      }
9059
      }
11093
    }
9060
    }
11094
 
9061
 
Line 11096... Line 9063...
11096
      return new scanForOrder_result(this);
9063
      return new scanForOrder_result(this);
11097
    }
9064
    }
11098
 
9065
 
11099
    @Override
9066
    @Override
11100
    public void clear() {
9067
    public void clear() {
-
 
9068
      this.success = null;
11101
      this.wex = null;
9069
      this.wex = null;
11102
    }
9070
    }
11103
 
9071
 
-
 
9072
    public InventoryItem getSuccess() {
-
 
9073
      return this.success;
-
 
9074
    }
-
 
9075
 
-
 
9076
    public void setSuccess(InventoryItem success) {
-
 
9077
      this.success = success;
-
 
9078
    }
-
 
9079
 
-
 
9080
    public void unsetSuccess() {
-
 
9081
      this.success = null;
-
 
9082
    }
-
 
9083
 
-
 
9084
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
9085
    public boolean isSetSuccess() {
-
 
9086
      return this.success != null;
-
 
9087
    }
-
 
9088
 
-
 
9089
    public void setSuccessIsSet(boolean value) {
-
 
9090
      if (!value) {
-
 
9091
        this.success = null;
-
 
9092
      }
-
 
9093
    }
-
 
9094
 
11104
    public WarehouseServiceException getWex() {
9095
    public WarehouseServiceException getWex() {
11105
      return this.wex;
9096
      return this.wex;
11106
    }
9097
    }
11107
 
9098
 
11108
    public void setWex(WarehouseServiceException wex) {
9099
    public void setWex(WarehouseServiceException wex) {
Line 11124... Line 9115...
11124
      }
9115
      }
11125
    }
9116
    }
11126
 
9117
 
11127
    public void setFieldValue(_Fields field, Object value) {
9118
    public void setFieldValue(_Fields field, Object value) {
11128
      switch (field) {
9119
      switch (field) {
-
 
9120
      case SUCCESS:
-
 
9121
        if (value == null) {
-
 
9122
          unsetSuccess();
-
 
9123
        } else {
-
 
9124
          setSuccess((InventoryItem)value);
-
 
9125
        }
-
 
9126
        break;
-
 
9127
 
11129
      case WEX:
9128
      case WEX:
11130
        if (value == null) {
9129
        if (value == null) {
11131
          unsetWex();
9130
          unsetWex();
11132
        } else {
9131
        } else {
11133
          setWex((WarehouseServiceException)value);
9132
          setWex((WarehouseServiceException)value);
Line 11137... Line 9136...
11137
      }
9136
      }
11138
    }
9137
    }
11139
 
9138
 
11140
    public Object getFieldValue(_Fields field) {
9139
    public Object getFieldValue(_Fields field) {
11141
      switch (field) {
9140
      switch (field) {
-
 
9141
      case SUCCESS:
-
 
9142
        return getSuccess();
-
 
9143
 
11142
      case WEX:
9144
      case WEX:
11143
        return getWex();
9145
        return getWex();
11144
 
9146
 
11145
      }
9147
      }
11146
      throw new IllegalStateException();
9148
      throw new IllegalStateException();
Line 11151... Line 9153...
11151
      if (field == null) {
9153
      if (field == null) {
11152
        throw new IllegalArgumentException();
9154
        throw new IllegalArgumentException();
11153
      }
9155
      }
11154
 
9156
 
11155
      switch (field) {
9157
      switch (field) {
-
 
9158
      case SUCCESS:
-
 
9159
        return isSetSuccess();
11156
      case WEX:
9160
      case WEX:
11157
        return isSetWex();
9161
        return isSetWex();
11158
      }
9162
      }
11159
      throw new IllegalStateException();
9163
      throw new IllegalStateException();
11160
    }
9164
    }
Line 11170... Line 9174...
11170
 
9174
 
11171
    public boolean equals(scanForOrder_result that) {
9175
    public boolean equals(scanForOrder_result that) {
11172
      if (that == null)
9176
      if (that == null)
11173
        return false;
9177
        return false;
11174
 
9178
 
-
 
9179
      boolean this_present_success = true && this.isSetSuccess();
-
 
9180
      boolean that_present_success = true && that.isSetSuccess();
-
 
9181
      if (this_present_success || that_present_success) {
-
 
9182
        if (!(this_present_success && that_present_success))
-
 
9183
          return false;
-
 
9184
        if (!this.success.equals(that.success))
-
 
9185
          return false;
-
 
9186
      }
-
 
9187
 
11175
      boolean this_present_wex = true && this.isSetWex();
9188
      boolean this_present_wex = true && this.isSetWex();
11176
      boolean that_present_wex = true && that.isSetWex();
9189
      boolean that_present_wex = true && that.isSetWex();
11177
      if (this_present_wex || that_present_wex) {
9190
      if (this_present_wex || that_present_wex) {
11178
        if (!(this_present_wex && that_present_wex))
9191
        if (!(this_present_wex && that_present_wex))
11179
          return false;
9192
          return false;
Line 11195... Line 9208...
11195
      }
9208
      }
11196
 
9209
 
11197
      int lastComparison = 0;
9210
      int lastComparison = 0;
11198
      scanForOrder_result typedOther = (scanForOrder_result)other;
9211
      scanForOrder_result typedOther = (scanForOrder_result)other;
11199
 
9212
 
-
 
9213
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9214
      if (lastComparison != 0) {
-
 
9215
        return lastComparison;
-
 
9216
      }
-
 
9217
      if (isSetSuccess()) {
-
 
9218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9219
        if (lastComparison != 0) {
-
 
9220
          return lastComparison;
-
 
9221
        }
-
 
9222
      }
11200
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
9223
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
11201
      if (lastComparison != 0) {
9224
      if (lastComparison != 0) {
11202
        return lastComparison;
9225
        return lastComparison;
11203
      }
9226
      }
11204
      if (isSetWex()) {
9227
      if (isSetWex()) {
Line 11222... Line 9245...
11222
        field = iprot.readFieldBegin();
9245
        field = iprot.readFieldBegin();
11223
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9246
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11224
          break;
9247
          break;
11225
        }
9248
        }
11226
        switch (field.id) {
9249
        switch (field.id) {
-
 
9250
          case 0: // SUCCESS
-
 
9251
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
9252
              this.success = new InventoryItem();
-
 
9253
              this.success.read(iprot);
-
 
9254
            } else { 
-
 
9255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9256
            }
-
 
9257
            break;
11227
          case 1: // WEX
9258
          case 1: // WEX
11228
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9259
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11229
              this.wex = new WarehouseServiceException();
9260
              this.wex = new WarehouseServiceException();
11230
              this.wex.read(iprot);
9261
              this.wex.read(iprot);
11231
            } else { 
9262
            } else { 
Line 11242... Line 9273...
11242
    }
9273
    }
11243
 
9274
 
11244
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9275
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11245
      oprot.writeStructBegin(STRUCT_DESC);
9276
      oprot.writeStructBegin(STRUCT_DESC);
11246
 
9277
 
11247
      if (this.isSetWex()) {
9278
      if (this.isSetSuccess()) {
-
 
9279
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9280
        this.success.write(oprot);
-
 
9281
        oprot.writeFieldEnd();
-
 
9282
      } else if (this.isSetWex()) {
11248
        oprot.writeFieldBegin(WEX_FIELD_DESC);
9283
        oprot.writeFieldBegin(WEX_FIELD_DESC);
11249
        this.wex.write(oprot);
9284
        this.wex.write(oprot);
11250
        oprot.writeFieldEnd();
9285
        oprot.writeFieldEnd();
11251
      }
9286
      }
11252
      oprot.writeFieldStop();
9287
      oprot.writeFieldStop();
Line 11256... Line 9291...
11256
    @Override
9291
    @Override
11257
    public String toString() {
9292
    public String toString() {
11258
      StringBuilder sb = new StringBuilder("scanForOrder_result(");
9293
      StringBuilder sb = new StringBuilder("scanForOrder_result(");
11259
      boolean first = true;
9294
      boolean first = true;
11260
 
9295
 
-
 
9296
      sb.append("success:");
-
 
9297
      if (this.success == null) {
-
 
9298
        sb.append("null");
-
 
9299
      } else {
-
 
9300
        sb.append(this.success);
-
 
9301
      }
-
 
9302
      first = false;
-
 
9303
      if (!first) sb.append(", ");
11261
      sb.append("wex:");
9304
      sb.append("wex:");
11262
      if (this.wex == null) {
9305
      if (this.wex == null) {
11263
        sb.append("null");
9306
        sb.append("null");
11264
      } else {
9307
      } else {
11265
        sb.append(this.wex);
9308
        sb.append(this.wex);
Line 12414... Line 10457...
12414
        }
10457
        }
12415
        switch (field.id) {
10458
        switch (field.id) {
12416
          case 0: // SUCCESS
10459
          case 0: // SUCCESS
12417
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10460
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12418
              {
10461
              {
12419
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
10462
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
12420
                this.success = new ArrayList<String>(_list16.size);
10463
                this.success = new ArrayList<String>(_list0.size);
12421
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
10464
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
12422
                {
10465
                {
12423
                  String _elem18; // required
10466
                  String _elem2; // required
12424
                  _elem18 = iprot.readString();
10467
                  _elem2 = iprot.readString();
12425
                  this.success.add(_elem18);
10468
                  this.success.add(_elem2);
12426
                }
10469
                }
12427
                iprot.readListEnd();
10470
                iprot.readListEnd();
12428
              }
10471
              }
12429
            } else { 
10472
            } else { 
12430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 12444... Line 10487...
12444
 
10487
 
12445
      if (this.isSetSuccess()) {
10488
      if (this.isSetSuccess()) {
12446
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10489
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12447
        {
10490
        {
12448
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
10491
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
12449
          for (String _iter19 : this.success)
10492
          for (String _iter3 : this.success)
12450
          {
10493
          {
12451
            oprot.writeString(_iter19);
10494
            oprot.writeString(_iter3);
12452
          }
10495
          }
12453
          oprot.writeListEnd();
10496
          oprot.writeListEnd();
12454
        }
10497
        }
12455
        oprot.writeFieldEnd();
10498
        oprot.writeFieldEnd();
12456
      }
10499
      }
Line 13038... Line 11081...
13038
        }
11081
        }
13039
        switch (field.id) {
11082
        switch (field.id) {
13040
          case 0: // SUCCESS
11083
          case 0: // SUCCESS
13041
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11084
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13042
              {
11085
              {
13043
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
11086
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
13044
                this.success = new ArrayList<Long>(_list20.size);
11087
                this.success = new ArrayList<Long>(_list4.size);
13045
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
11088
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
13046
                {
11089
                {
13047
                  long _elem22; // required
11090
                  long _elem6; // required
13048
                  _elem22 = iprot.readI64();
11091
                  _elem6 = iprot.readI64();
13049
                  this.success.add(_elem22);
11092
                  this.success.add(_elem6);
13050
                }
11093
                }
13051
                iprot.readListEnd();
11094
                iprot.readListEnd();
13052
              }
11095
              }
13053
            } else { 
11096
            } else { 
13054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 13068... Line 11111...
13068
 
11111
 
13069
      if (this.isSetSuccess()) {
11112
      if (this.isSetSuccess()) {
13070
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11113
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13071
        {
11114
        {
13072
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
11115
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
13073
          for (long _iter23 : this.success)
11116
          for (long _iter7 : this.success)
13074
          {
11117
          {
13075
            oprot.writeI64(_iter23);
11118
            oprot.writeI64(_iter7);
13076
          }
11119
          }
13077
          oprot.writeListEnd();
11120
          oprot.writeListEnd();
13078
        }
11121
        }
13079
        oprot.writeFieldEnd();
11122
        oprot.writeFieldEnd();
13080
      }
11123
      }
Line 13742... Line 11785...
13742
        }
11785
        }
13743
        switch (field.id) {
11786
        switch (field.id) {
13744
          case 0: // SUCCESS
11787
          case 0: // SUCCESS
13745
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11788
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13746
              {
11789
              {
13747
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
11790
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
13748
                this.success = new ArrayList<InventoryItem>(_list24.size);
11791
                this.success = new ArrayList<InventoryItem>(_list8.size);
13749
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
11792
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
13750
                {
11793
                {
13751
                  InventoryItem _elem26; // required
11794
                  InventoryItem _elem10; // required
13752
                  _elem26 = new InventoryItem();
11795
                  _elem10 = new InventoryItem();
13753
                  _elem26.read(iprot);
11796
                  _elem10.read(iprot);
13754
                  this.success.add(_elem26);
11797
                  this.success.add(_elem10);
13755
                }
11798
                }
13756
                iprot.readListEnd();
11799
                iprot.readListEnd();
13757
              }
11800
              }
13758
            } else { 
11801
            } else { 
13759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11802
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 13781... Line 11824...
13781
 
11824
 
13782
      if (this.isSetSuccess()) {
11825
      if (this.isSetSuccess()) {
13783
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11826
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13784
        {
11827
        {
13785
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11828
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13786
          for (InventoryItem _iter27 : this.success)
11829
          for (InventoryItem _iter11 : this.success)
13787
          {
11830
          {
13788
            _iter27.write(oprot);
11831
            _iter11.write(oprot);
13789
          }
11832
          }
13790
          oprot.writeListEnd();
11833
          oprot.writeListEnd();
13791
        }
11834
        }
13792
        oprot.writeFieldEnd();
11835
        oprot.writeFieldEnd();
13793
      } else if (this.isSetWex()) {
11836
      } else if (this.isSetWex()) {
Line 14127... Line 12170...
14127
      }
12170
      }
14128
    }
12171
    }
14129
 
12172
 
14130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12173
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14131
      try {
12174
      try {
14132
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
14133
        __isset_bit_vector = new BitSet(1);
-
 
14134
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12175
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14135
      } catch (org.apache.thrift.TException te) {
12176
      } catch (org.apache.thrift.TException te) {
14136
        throw new java.io.IOException(te);
12177
        throw new java.io.IOException(te);
14137
      }
12178
      }
14138
    }
12179
    }