Subversion Repositories SmartDukaan

Rev

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

Rev 4541 Rev 4555
Line 29... Line 29...
29
     * 
29
     * 
30
     * @param itemId
30
     * @param itemId
31
     * @param serialNumber
31
     * @param serialNumber
32
     * @param purchaseId
32
     * @param purchaseId
33
     */
33
     */
34
    public long createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
34
    public InventoryItem createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
35
 
35
 
36
    /**
36
    /**
37
     * Creating inventory for a serialized item using item number
37
     * Creating inventory for a serialized item using item number
38
     * 
38
     * 
39
     * @param itemNumber
39
     * @param itemNumber
40
     * @param serialNumber
40
     * @param serialNumber
41
     * @param purchaseId
41
     * @param purchaseId
42
     */
42
     */
43
    public long createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
43
    public InventoryItem createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
44
 
44
 
45
    /**
45
    /**
46
     * Creates inventory for an unserailized item
46
     * Creates inventory for an unserailized item
47
     * 
47
     * 
48
     * @param itemId
48
     * @param itemId
49
     * @param quantity
49
     * @param quantity
50
     * @param purchaseId
50
     * @param purchaseId
51
     */
51
     */
52
    public long createInventoryItem(long itemId, long quantity, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
52
    public InventoryItem createInventoryItem(long itemId, long quantity, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
53
 
53
 
54
    /**
54
    /**
55
     * Retrieves serialized inventory item given a serial number
55
     * Retrieves serialized inventory item given a serial number
56
     * 
56
     * 
57
     * @param serialNumber
57
     * @param serialNumber
Line 108... Line 108...
108
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
108
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
109
 
109
 
110
    /**
110
    /**
111
     * Scan serialized items linked with an order. Returns its price.
111
     * Scan serialized items linked with an order. Returns its price.
112
     * 
112
     * 
113
     * @param inventoryItemId
113
     * @param serialNumber
114
     * @param type
114
     * @param type
115
     * @param orderId
115
     * @param orderId
116
     * @param warehouseId
116
     * @param warehouseId
117
     */
117
     */
118
    public long scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
118
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
119
 
119
 
120
    /**
120
    /**
121
     * Scan non-serialized items linked with an order.
121
     * Scan non-serialized items linked with an order.
122
     * 
122
     * 
123
     * @param inventoryItemId
123
     * @param inventoryItemId
Line 158... Line 158...
158
 
158
 
159
    public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
159
    public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
160
 
160
 
161
    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;
161
    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;
162
 
162
 
163
    public void scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
163
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
164
 
164
 
165
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
165
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
166
 
166
 
167
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
167
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
168
 
168
 
Line 186... Line 186...
186
 
186
 
187
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
187
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
188
      super(iprot, oprot);
188
      super(iprot, oprot);
189
    }
189
    }
190
 
190
 
191
    public long createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
191
    public InventoryItem createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
192
    {
192
    {
193
      send_createSerializedInventoryItem(itemId, serialNumber, purchaseId);
193
      send_createSerializedInventoryItem(itemId, serialNumber, purchaseId);
194
      return recv_createSerializedInventoryItem();
194
      return recv_createSerializedInventoryItem();
195
    }
195
    }
196
 
196
 
Line 201... Line 201...
201
      args.setSerialNumber(serialNumber);
201
      args.setSerialNumber(serialNumber);
202
      args.setPurchaseId(purchaseId);
202
      args.setPurchaseId(purchaseId);
203
      sendBase("createSerializedInventoryItem", args);
203
      sendBase("createSerializedInventoryItem", args);
204
    }
204
    }
205
 
205
 
206
    public long recv_createSerializedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
206
    public InventoryItem recv_createSerializedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
207
    {
207
    {
208
      createSerializedInventoryItem_result result = new createSerializedInventoryItem_result();
208
      createSerializedInventoryItem_result result = new createSerializedInventoryItem_result();
209
      receiveBase(result, "createSerializedInventoryItem");
209
      receiveBase(result, "createSerializedInventoryItem");
210
      if (result.isSetSuccess()) {
210
      if (result.isSetSuccess()) {
211
        return result.success;
211
        return result.success;
Line 214... Line 214...
214
        throw result.wex;
214
        throw result.wex;
215
      }
215
      }
216
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createSerializedInventoryItem failed: unknown result");
216
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createSerializedInventoryItem failed: unknown result");
217
    }
217
    }
218
 
218
 
219
    public long createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
219
    public InventoryItem createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
220
    {
220
    {
221
      send_createSerializedInventoryItemFromItemNumber(itemNumber, serialNumber, purchaseId);
221
      send_createSerializedInventoryItemFromItemNumber(itemNumber, serialNumber, purchaseId);
222
      return recv_createSerializedInventoryItemFromItemNumber();
222
      return recv_createSerializedInventoryItemFromItemNumber();
223
    }
223
    }
224
 
224
 
Line 229... Line 229...
229
      args.setSerialNumber(serialNumber);
229
      args.setSerialNumber(serialNumber);
230
      args.setPurchaseId(purchaseId);
230
      args.setPurchaseId(purchaseId);
231
      sendBase("createSerializedInventoryItemFromItemNumber", args);
231
      sendBase("createSerializedInventoryItemFromItemNumber", args);
232
    }
232
    }
233
 
233
 
234
    public long recv_createSerializedInventoryItemFromItemNumber() throws WarehouseServiceException, org.apache.thrift.TException
234
    public InventoryItem recv_createSerializedInventoryItemFromItemNumber() throws WarehouseServiceException, org.apache.thrift.TException
235
    {
235
    {
236
      createSerializedInventoryItemFromItemNumber_result result = new createSerializedInventoryItemFromItemNumber_result();
236
      createSerializedInventoryItemFromItemNumber_result result = new createSerializedInventoryItemFromItemNumber_result();
237
      receiveBase(result, "createSerializedInventoryItemFromItemNumber");
237
      receiveBase(result, "createSerializedInventoryItemFromItemNumber");
238
      if (result.isSetSuccess()) {
238
      if (result.isSetSuccess()) {
239
        return result.success;
239
        return result.success;
Line 242... Line 242...
242
        throw result.wex;
242
        throw result.wex;
243
      }
243
      }
244
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createSerializedInventoryItemFromItemNumber failed: unknown result");
244
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createSerializedInventoryItemFromItemNumber failed: unknown result");
245
    }
245
    }
246
 
246
 
247
    public long createInventoryItem(long itemId, long quantity, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
247
    public InventoryItem createInventoryItem(long itemId, long quantity, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
248
    {
248
    {
249
      send_createInventoryItem(itemId, quantity, purchaseId);
249
      send_createInventoryItem(itemId, quantity, purchaseId);
250
      return recv_createInventoryItem();
250
      return recv_createInventoryItem();
251
    }
251
    }
252
 
252
 
Line 257... Line 257...
257
      args.setQuantity(quantity);
257
      args.setQuantity(quantity);
258
      args.setPurchaseId(purchaseId);
258
      args.setPurchaseId(purchaseId);
259
      sendBase("createInventoryItem", args);
259
      sendBase("createInventoryItem", args);
260
    }
260
    }
261
 
261
 
262
    public long recv_createInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
262
    public InventoryItem recv_createInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
263
    {
263
    {
264
      createInventoryItem_result result = new createInventoryItem_result();
264
      createInventoryItem_result result = new createInventoryItem_result();
265
      receiveBase(result, "createInventoryItem");
265
      receiveBase(result, "createInventoryItem");
266
      if (result.isSetSuccess()) {
266
      if (result.isSetSuccess()) {
267
        return result.success;
267
        return result.success;
Line 441... Line 441...
441
        throw result.wex;
441
        throw result.wex;
442
      }
442
      }
443
      return;
443
      return;
444
    }
444
    }
445
 
445
 
446
    public long scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
446
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
447
    {
447
    {
448
      send_scanSerializedItemForOrder(inventoryItemId, type, orderId, warehouseId);
448
      send_scanSerializedItemForOrder(serialNumber, type, orderId, warehouseId);
449
      return recv_scanSerializedItemForOrder();
449
      return recv_scanSerializedItemForOrder();
450
    }
450
    }
451
 
451
 
452
    public void send_scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId) throws org.apache.thrift.TException
452
    public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId) throws org.apache.thrift.TException
453
    {
453
    {
454
      scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
454
      scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
455
      args.setInventoryItemId(inventoryItemId);
455
      args.setSerialNumber(serialNumber);
456
      args.setType(type);
456
      args.setType(type);
457
      args.setOrderId(orderId);
457
      args.setOrderId(orderId);
458
      args.setWarehouseId(warehouseId);
458
      args.setWarehouseId(warehouseId);
459
      sendBase("scanSerializedItemForOrder", args);
459
      sendBase("scanSerializedItemForOrder", args);
460
    }
460
    }
461
 
461
 
462
    public long recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
462
    public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
463
    {
463
    {
464
      scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
464
      scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
465
      receiveBase(result, "scanSerializedItemForOrder");
465
      receiveBase(result, "scanSerializedItemForOrder");
466
      if (result.isSetSuccess()) {
466
      if (result.isSetSuccess()) {
467
        return result.success;
467
        return result.success;
Line 564... Line 564...
564
        args.setPurchaseId(purchaseId);
564
        args.setPurchaseId(purchaseId);
565
        args.write(prot);
565
        args.write(prot);
566
        prot.writeMessageEnd();
566
        prot.writeMessageEnd();
567
      }
567
      }
568
 
568
 
569
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
569
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
570
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
570
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
571
          throw new IllegalStateException("Method call not finished!");
571
          throw new IllegalStateException("Method call not finished!");
572
        }
572
        }
573
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
573
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
574
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
574
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 602... Line 602...
602
        args.setPurchaseId(purchaseId);
602
        args.setPurchaseId(purchaseId);
603
        args.write(prot);
603
        args.write(prot);
604
        prot.writeMessageEnd();
604
        prot.writeMessageEnd();
605
      }
605
      }
606
 
606
 
607
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
607
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
608
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
608
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
609
          throw new IllegalStateException("Method call not finished!");
609
          throw new IllegalStateException("Method call not finished!");
610
        }
610
        }
611
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
611
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
612
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
612
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 640... Line 640...
640
        args.setPurchaseId(purchaseId);
640
        args.setPurchaseId(purchaseId);
641
        args.write(prot);
641
        args.write(prot);
642
        prot.writeMessageEnd();
642
        prot.writeMessageEnd();
643
      }
643
      }
644
 
644
 
645
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
645
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
646
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
646
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
647
          throw new IllegalStateException("Method call not finished!");
647
          throw new IllegalStateException("Method call not finished!");
648
        }
648
        }
649
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
649
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
650
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
650
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 895... Line 895...
895
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
895
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
896
        (new Client(prot)).recv_scan();
896
        (new Client(prot)).recv_scan();
897
      }
897
      }
898
    }
898
    }
899
 
899
 
900
    public void scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException {
900
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException {
901
      checkReady();
901
      checkReady();
902
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(inventoryItemId, type, orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
902
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
903
      this.___currentMethod = method_call;
903
      this.___currentMethod = method_call;
904
      ___manager.call(method_call);
904
      ___manager.call(method_call);
905
    }
905
    }
906
 
906
 
907
    public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
907
    public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
908
      private long inventoryItemId;
908
      private String serialNumber;
909
      private ScanType type;
909
      private ScanType type;
910
      private long orderId;
910
      private long orderId;
911
      private long warehouseId;
911
      private long warehouseId;
912
      public scanSerializedItemForOrder_call(long inventoryItemId, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_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 {
912
      public scanSerializedItemForOrder_call(String serialNumber, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_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 {
913
        super(client, protocolFactory, transport, resultHandler, false);
913
        super(client, protocolFactory, transport, resultHandler, false);
914
        this.inventoryItemId = inventoryItemId;
914
        this.serialNumber = serialNumber;
915
        this.type = type;
915
        this.type = type;
916
        this.orderId = orderId;
916
        this.orderId = orderId;
917
        this.warehouseId = warehouseId;
917
        this.warehouseId = warehouseId;
918
      }
918
      }
919
 
919
 
920
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
920
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
921
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
921
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
922
        scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
922
        scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
923
        args.setInventoryItemId(inventoryItemId);
923
        args.setSerialNumber(serialNumber);
924
        args.setType(type);
924
        args.setType(type);
925
        args.setOrderId(orderId);
925
        args.setOrderId(orderId);
926
        args.setWarehouseId(warehouseId);
926
        args.setWarehouseId(warehouseId);
927
        args.write(prot);
927
        args.write(prot);
928
        prot.writeMessageEnd();
928
        prot.writeMessageEnd();
929
      }
929
      }
930
 
930
 
931
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
931
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
932
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
932
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
933
          throw new IllegalStateException("Method call not finished!");
933
          throw new IllegalStateException("Method call not finished!");
934
        }
934
        }
935
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
935
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
936
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
936
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 1057... Line 1057...
1057
 
1057
 
1058
      protected createSerializedInventoryItem_result getResult(I iface, createSerializedInventoryItem_args args) throws org.apache.thrift.TException {
1058
      protected createSerializedInventoryItem_result getResult(I iface, createSerializedInventoryItem_args args) throws org.apache.thrift.TException {
1059
        createSerializedInventoryItem_result result = new createSerializedInventoryItem_result();
1059
        createSerializedInventoryItem_result result = new createSerializedInventoryItem_result();
1060
        try {
1060
        try {
1061
          result.success = iface.createSerializedInventoryItem(args.itemId, args.serialNumber, args.purchaseId);
1061
          result.success = iface.createSerializedInventoryItem(args.itemId, args.serialNumber, args.purchaseId);
1062
          result.setSuccessIsSet(true);
-
 
1063
        } catch (WarehouseServiceException wex) {
1062
        } catch (WarehouseServiceException wex) {
1064
          result.wex = wex;
1063
          result.wex = wex;
1065
        }
1064
        }
1066
        return result;
1065
        return result;
1067
      }
1066
      }
Line 1078... Line 1077...
1078
 
1077
 
1079
      protected createSerializedInventoryItemFromItemNumber_result getResult(I iface, createSerializedInventoryItemFromItemNumber_args args) throws org.apache.thrift.TException {
1078
      protected createSerializedInventoryItemFromItemNumber_result getResult(I iface, createSerializedInventoryItemFromItemNumber_args args) throws org.apache.thrift.TException {
1080
        createSerializedInventoryItemFromItemNumber_result result = new createSerializedInventoryItemFromItemNumber_result();
1079
        createSerializedInventoryItemFromItemNumber_result result = new createSerializedInventoryItemFromItemNumber_result();
1081
        try {
1080
        try {
1082
          result.success = iface.createSerializedInventoryItemFromItemNumber(args.itemNumber, args.serialNumber, args.purchaseId);
1081
          result.success = iface.createSerializedInventoryItemFromItemNumber(args.itemNumber, args.serialNumber, args.purchaseId);
1083
          result.setSuccessIsSet(true);
-
 
1084
        } catch (WarehouseServiceException wex) {
1082
        } catch (WarehouseServiceException wex) {
1085
          result.wex = wex;
1083
          result.wex = wex;
1086
        }
1084
        }
1087
        return result;
1085
        return result;
1088
      }
1086
      }
Line 1099... Line 1097...
1099
 
1097
 
1100
      protected createInventoryItem_result getResult(I iface, createInventoryItem_args args) throws org.apache.thrift.TException {
1098
      protected createInventoryItem_result getResult(I iface, createInventoryItem_args args) throws org.apache.thrift.TException {
1101
        createInventoryItem_result result = new createInventoryItem_result();
1099
        createInventoryItem_result result = new createInventoryItem_result();
1102
        try {
1100
        try {
1103
          result.success = iface.createInventoryItem(args.itemId, args.quantity, args.purchaseId);
1101
          result.success = iface.createInventoryItem(args.itemId, args.quantity, args.purchaseId);
1104
          result.setSuccessIsSet(true);
-
 
1105
        } catch (WarehouseServiceException wex) {
1102
        } catch (WarehouseServiceException wex) {
1106
          result.wex = wex;
1103
          result.wex = wex;
1107
        }
1104
        }
1108
        return result;
1105
        return result;
1109
      }
1106
      }
Line 1243... Line 1240...
1243
      }
1240
      }
1244
 
1241
 
1245
      protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
1242
      protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
1246
        scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
1243
        scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
1247
        try {
1244
        try {
1248
          result.success = iface.scanSerializedItemForOrder(args.inventoryItemId, args.type, args.orderId, args.warehouseId);
1245
          result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.warehouseId);
1249
          result.setSuccessIsSet(true);
-
 
1250
        } catch (WarehouseServiceException wex) {
1246
        } catch (WarehouseServiceException wex) {
1251
          result.wex = wex;
1247
          result.wex = wex;
1252
        }
1248
        }
1253
        return result;
1249
        return result;
1254
      }
1250
      }
Line 1758... Line 1754...
1758
  }
1754
  }
1759
 
1755
 
1760
  public static class createSerializedInventoryItem_result implements org.apache.thrift.TBase<createSerializedInventoryItem_result, createSerializedInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
1756
  public static class createSerializedInventoryItem_result implements org.apache.thrift.TBase<createSerializedInventoryItem_result, createSerializedInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
1761
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_result");
1757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_result");
1762
 
1758
 
1763
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
1759
    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);
1764
    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);
1760
    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);
1765
 
1761
 
1766
    private long success; // required
1762
    private InventoryItem success; // required
1767
    private WarehouseServiceException wex; // required
1763
    private WarehouseServiceException wex; // required
1768
 
1764
 
1769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1765
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1766
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1771
      SUCCESS((short)0, "success"),
1767
      SUCCESS((short)0, "success"),
Line 1826... Line 1822...
1826
        return _fieldName;
1822
        return _fieldName;
1827
      }
1823
      }
1828
    }
1824
    }
1829
 
1825
 
1830
    // isset id assignments
1826
    // isset id assignments
1831
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
1832
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
1833
 
1827
 
1834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1828
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1835
    static {
1829
    static {
1836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1830
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1837
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1831
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1832
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
1839
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1833
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1834
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItem_result.class, metaDataMap);
1836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItem_result.class, metaDataMap);
1843
    }
1837
    }
1844
 
1838
 
1845
    public createSerializedInventoryItem_result() {
1839
    public createSerializedInventoryItem_result() {
1846
    }
1840
    }
1847
 
1841
 
1848
    public createSerializedInventoryItem_result(
1842
    public createSerializedInventoryItem_result(
1849
      long success,
1843
      InventoryItem success,
1850
      WarehouseServiceException wex)
1844
      WarehouseServiceException wex)
1851
    {
1845
    {
1852
      this();
1846
      this();
1853
      this.success = success;
1847
      this.success = success;
1854
      setSuccessIsSet(true);
-
 
1855
      this.wex = wex;
1848
      this.wex = wex;
1856
    }
1849
    }
1857
 
1850
 
1858
    /**
1851
    /**
1859
     * Performs a deep copy on <i>other</i>.
1852
     * Performs a deep copy on <i>other</i>.
1860
     */
1853
     */
1861
    public createSerializedInventoryItem_result(createSerializedInventoryItem_result other) {
1854
    public createSerializedInventoryItem_result(createSerializedInventoryItem_result other) {
1862
      __isset_bit_vector.clear();
1855
      if (other.isSetSuccess()) {
1863
      __isset_bit_vector.or(other.__isset_bit_vector);
1856
        this.success = new InventoryItem(other.success);
1864
      this.success = other.success;
1857
      }
1865
      if (other.isSetWex()) {
1858
      if (other.isSetWex()) {
1866
        this.wex = new WarehouseServiceException(other.wex);
1859
        this.wex = new WarehouseServiceException(other.wex);
1867
      }
1860
      }
1868
    }
1861
    }
1869
 
1862
 
Line 1871... Line 1864...
1871
      return new createSerializedInventoryItem_result(this);
1864
      return new createSerializedInventoryItem_result(this);
1872
    }
1865
    }
1873
 
1866
 
1874
    @Override
1867
    @Override
1875
    public void clear() {
1868
    public void clear() {
1876
      setSuccessIsSet(false);
-
 
1877
      this.success = 0;
1869
      this.success = null;
1878
      this.wex = null;
1870
      this.wex = null;
1879
    }
1871
    }
1880
 
1872
 
1881
    public long getSuccess() {
1873
    public InventoryItem getSuccess() {
1882
      return this.success;
1874
      return this.success;
1883
    }
1875
    }
1884
 
1876
 
1885
    public void setSuccess(long success) {
1877
    public void setSuccess(InventoryItem success) {
1886
      this.success = success;
1878
      this.success = success;
1887
      setSuccessIsSet(true);
-
 
1888
    }
1879
    }
1889
 
1880
 
1890
    public void unsetSuccess() {
1881
    public void unsetSuccess() {
1891
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1882
      this.success = null;
1892
    }
1883
    }
1893
 
1884
 
1894
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1885
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1895
    public boolean isSetSuccess() {
1886
    public boolean isSetSuccess() {
1896
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1887
      return this.success != null;
1897
    }
1888
    }
1898
 
1889
 
1899
    public void setSuccessIsSet(boolean value) {
1890
    public void setSuccessIsSet(boolean value) {
-
 
1891
      if (!value) {
1900
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
1892
        this.success = null;
-
 
1893
      }
1901
    }
1894
    }
1902
 
1895
 
1903
    public WarehouseServiceException getWex() {
1896
    public WarehouseServiceException getWex() {
1904
      return this.wex;
1897
      return this.wex;
1905
    }
1898
    }
Line 1927... Line 1920...
1927
      switch (field) {
1920
      switch (field) {
1928
      case SUCCESS:
1921
      case SUCCESS:
1929
        if (value == null) {
1922
        if (value == null) {
1930
          unsetSuccess();
1923
          unsetSuccess();
1931
        } else {
1924
        } else {
1932
          setSuccess((Long)value);
1925
          setSuccess((InventoryItem)value);
1933
        }
1926
        }
1934
        break;
1927
        break;
1935
 
1928
 
1936
      case WEX:
1929
      case WEX:
1937
        if (value == null) {
1930
        if (value == null) {
Line 1945... Line 1938...
1945
    }
1938
    }
1946
 
1939
 
1947
    public Object getFieldValue(_Fields field) {
1940
    public Object getFieldValue(_Fields field) {
1948
      switch (field) {
1941
      switch (field) {
1949
      case SUCCESS:
1942
      case SUCCESS:
1950
        return Long.valueOf(getSuccess());
1943
        return getSuccess();
1951
 
1944
 
1952
      case WEX:
1945
      case WEX:
1953
        return getWex();
1946
        return getWex();
1954
 
1947
 
1955
      }
1948
      }
Line 1982... Line 1975...
1982
 
1975
 
1983
    public boolean equals(createSerializedInventoryItem_result that) {
1976
    public boolean equals(createSerializedInventoryItem_result that) {
1984
      if (that == null)
1977
      if (that == null)
1985
        return false;
1978
        return false;
1986
 
1979
 
1987
      boolean this_present_success = true;
1980
      boolean this_present_success = true && this.isSetSuccess();
1988
      boolean that_present_success = true;
1981
      boolean that_present_success = true && that.isSetSuccess();
1989
      if (this_present_success || that_present_success) {
1982
      if (this_present_success || that_present_success) {
1990
        if (!(this_present_success && that_present_success))
1983
        if (!(this_present_success && that_present_success))
1991
          return false;
1984
          return false;
1992
        if (this.success != that.success)
1985
        if (!this.success.equals(that.success))
1993
          return false;
1986
          return false;
1994
      }
1987
      }
1995
 
1988
 
1996
      boolean this_present_wex = true && this.isSetWex();
1989
      boolean this_present_wex = true && this.isSetWex();
1997
      boolean that_present_wex = true && that.isSetWex();
1990
      boolean that_present_wex = true && that.isSetWex();
Line 2054... Line 2047...
2054
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2055
          break;
2048
          break;
2056
        }
2049
        }
2057
        switch (field.id) {
2050
        switch (field.id) {
2058
          case 0: // SUCCESS
2051
          case 0: // SUCCESS
2059
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2052
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2060
              this.success = iprot.readI64();
2053
              this.success = new InventoryItem();
2061
              setSuccessIsSet(true);
2054
              this.success.read(iprot);
2062
            } else { 
2055
            } else { 
2063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2064
            }
2057
            }
2065
            break;
2058
            break;
2066
          case 1: // WEX
2059
          case 1: // WEX
Line 2083... Line 2076...
2083
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2076
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2084
      oprot.writeStructBegin(STRUCT_DESC);
2077
      oprot.writeStructBegin(STRUCT_DESC);
2085
 
2078
 
2086
      if (this.isSetSuccess()) {
2079
      if (this.isSetSuccess()) {
2087
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2080
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2088
        oprot.writeI64(this.success);
2081
        this.success.write(oprot);
2089
        oprot.writeFieldEnd();
2082
        oprot.writeFieldEnd();
2090
      } else if (this.isSetWex()) {
2083
      } else if (this.isSetWex()) {
2091
        oprot.writeFieldBegin(WEX_FIELD_DESC);
2084
        oprot.writeFieldBegin(WEX_FIELD_DESC);
2092
        this.wex.write(oprot);
2085
        this.wex.write(oprot);
2093
        oprot.writeFieldEnd();
2086
        oprot.writeFieldEnd();
Line 2100... Line 2093...
2100
    public String toString() {
2093
    public String toString() {
2101
      StringBuilder sb = new StringBuilder("createSerializedInventoryItem_result(");
2094
      StringBuilder sb = new StringBuilder("createSerializedInventoryItem_result(");
2102
      boolean first = true;
2095
      boolean first = true;
2103
 
2096
 
2104
      sb.append("success:");
2097
      sb.append("success:");
-
 
2098
      if (this.success == null) {
-
 
2099
        sb.append("null");
-
 
2100
      } else {
2105
      sb.append(this.success);
2101
        sb.append(this.success);
-
 
2102
      }
2106
      first = false;
2103
      first = false;
2107
      if (!first) sb.append(", ");
2104
      if (!first) sb.append(", ");
2108
      sb.append("wex:");
2105
      sb.append("wex:");
2109
      if (this.wex == null) {
2106
      if (this.wex == null) {
2110
        sb.append("null");
2107
        sb.append("null");
Line 2609... Line 2606...
2609
  }
2606
  }
2610
 
2607
 
2611
  public static class createSerializedInventoryItemFromItemNumber_result implements org.apache.thrift.TBase<createSerializedInventoryItemFromItemNumber_result, createSerializedInventoryItemFromItemNumber_result._Fields>, java.io.Serializable, Cloneable   {
2608
  public static class createSerializedInventoryItemFromItemNumber_result implements org.apache.thrift.TBase<createSerializedInventoryItemFromItemNumber_result, createSerializedInventoryItemFromItemNumber_result._Fields>, java.io.Serializable, Cloneable   {
2612
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItemFromItemNumber_result");
2609
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItemFromItemNumber_result");
2613
 
2610
 
2614
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
2611
    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);
2615
    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);
2612
    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);
2616
 
2613
 
2617
    private long success; // required
2614
    private InventoryItem success; // required
2618
    private WarehouseServiceException wex; // required
2615
    private WarehouseServiceException wex; // required
2619
 
2616
 
2620
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2621
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2622
      SUCCESS((short)0, "success"),
2619
      SUCCESS((short)0, "success"),
Line 2677... Line 2674...
2677
        return _fieldName;
2674
        return _fieldName;
2678
      }
2675
      }
2679
    }
2676
    }
2680
 
2677
 
2681
    // isset id assignments
2678
    // isset id assignments
2682
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
2683
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
2684
 
2679
 
2685
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2680
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2686
    static {
2681
    static {
2687
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2682
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2688
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2683
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2684
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
2690
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2685
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2691
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2692
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2687
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2693
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItemFromItemNumber_result.class, metaDataMap);
2688
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItemFromItemNumber_result.class, metaDataMap);
2694
    }
2689
    }
2695
 
2690
 
2696
    public createSerializedInventoryItemFromItemNumber_result() {
2691
    public createSerializedInventoryItemFromItemNumber_result() {
2697
    }
2692
    }
2698
 
2693
 
2699
    public createSerializedInventoryItemFromItemNumber_result(
2694
    public createSerializedInventoryItemFromItemNumber_result(
2700
      long success,
2695
      InventoryItem success,
2701
      WarehouseServiceException wex)
2696
      WarehouseServiceException wex)
2702
    {
2697
    {
2703
      this();
2698
      this();
2704
      this.success = success;
2699
      this.success = success;
2705
      setSuccessIsSet(true);
-
 
2706
      this.wex = wex;
2700
      this.wex = wex;
2707
    }
2701
    }
2708
 
2702
 
2709
    /**
2703
    /**
2710
     * Performs a deep copy on <i>other</i>.
2704
     * Performs a deep copy on <i>other</i>.
2711
     */
2705
     */
2712
    public createSerializedInventoryItemFromItemNumber_result(createSerializedInventoryItemFromItemNumber_result other) {
2706
    public createSerializedInventoryItemFromItemNumber_result(createSerializedInventoryItemFromItemNumber_result other) {
2713
      __isset_bit_vector.clear();
2707
      if (other.isSetSuccess()) {
2714
      __isset_bit_vector.or(other.__isset_bit_vector);
2708
        this.success = new InventoryItem(other.success);
2715
      this.success = other.success;
2709
      }
2716
      if (other.isSetWex()) {
2710
      if (other.isSetWex()) {
2717
        this.wex = new WarehouseServiceException(other.wex);
2711
        this.wex = new WarehouseServiceException(other.wex);
2718
      }
2712
      }
2719
    }
2713
    }
2720
 
2714
 
Line 2722... Line 2716...
2722
      return new createSerializedInventoryItemFromItemNumber_result(this);
2716
      return new createSerializedInventoryItemFromItemNumber_result(this);
2723
    }
2717
    }
2724
 
2718
 
2725
    @Override
2719
    @Override
2726
    public void clear() {
2720
    public void clear() {
2727
      setSuccessIsSet(false);
-
 
2728
      this.success = 0;
2721
      this.success = null;
2729
      this.wex = null;
2722
      this.wex = null;
2730
    }
2723
    }
2731
 
2724
 
2732
    public long getSuccess() {
2725
    public InventoryItem getSuccess() {
2733
      return this.success;
2726
      return this.success;
2734
    }
2727
    }
2735
 
2728
 
2736
    public void setSuccess(long success) {
2729
    public void setSuccess(InventoryItem success) {
2737
      this.success = success;
2730
      this.success = success;
2738
      setSuccessIsSet(true);
-
 
2739
    }
2731
    }
2740
 
2732
 
2741
    public void unsetSuccess() {
2733
    public void unsetSuccess() {
2742
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2734
      this.success = null;
2743
    }
2735
    }
2744
 
2736
 
2745
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2737
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2746
    public boolean isSetSuccess() {
2738
    public boolean isSetSuccess() {
2747
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2739
      return this.success != null;
2748
    }
2740
    }
2749
 
2741
 
2750
    public void setSuccessIsSet(boolean value) {
2742
    public void setSuccessIsSet(boolean value) {
-
 
2743
      if (!value) {
2751
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2744
        this.success = null;
-
 
2745
      }
2752
    }
2746
    }
2753
 
2747
 
2754
    public WarehouseServiceException getWex() {
2748
    public WarehouseServiceException getWex() {
2755
      return this.wex;
2749
      return this.wex;
2756
    }
2750
    }
Line 2778... Line 2772...
2778
      switch (field) {
2772
      switch (field) {
2779
      case SUCCESS:
2773
      case SUCCESS:
2780
        if (value == null) {
2774
        if (value == null) {
2781
          unsetSuccess();
2775
          unsetSuccess();
2782
        } else {
2776
        } else {
2783
          setSuccess((Long)value);
2777
          setSuccess((InventoryItem)value);
2784
        }
2778
        }
2785
        break;
2779
        break;
2786
 
2780
 
2787
      case WEX:
2781
      case WEX:
2788
        if (value == null) {
2782
        if (value == null) {
Line 2796... Line 2790...
2796
    }
2790
    }
2797
 
2791
 
2798
    public Object getFieldValue(_Fields field) {
2792
    public Object getFieldValue(_Fields field) {
2799
      switch (field) {
2793
      switch (field) {
2800
      case SUCCESS:
2794
      case SUCCESS:
2801
        return Long.valueOf(getSuccess());
2795
        return getSuccess();
2802
 
2796
 
2803
      case WEX:
2797
      case WEX:
2804
        return getWex();
2798
        return getWex();
2805
 
2799
 
2806
      }
2800
      }
Line 2833... Line 2827...
2833
 
2827
 
2834
    public boolean equals(createSerializedInventoryItemFromItemNumber_result that) {
2828
    public boolean equals(createSerializedInventoryItemFromItemNumber_result that) {
2835
      if (that == null)
2829
      if (that == null)
2836
        return false;
2830
        return false;
2837
 
2831
 
2838
      boolean this_present_success = true;
2832
      boolean this_present_success = true && this.isSetSuccess();
2839
      boolean that_present_success = true;
2833
      boolean that_present_success = true && that.isSetSuccess();
2840
      if (this_present_success || that_present_success) {
2834
      if (this_present_success || that_present_success) {
2841
        if (!(this_present_success && that_present_success))
2835
        if (!(this_present_success && that_present_success))
2842
          return false;
2836
          return false;
2843
        if (this.success != that.success)
2837
        if (!this.success.equals(that.success))
2844
          return false;
2838
          return false;
2845
      }
2839
      }
2846
 
2840
 
2847
      boolean this_present_wex = true && this.isSetWex();
2841
      boolean this_present_wex = true && this.isSetWex();
2848
      boolean that_present_wex = true && that.isSetWex();
2842
      boolean that_present_wex = true && that.isSetWex();
Line 2905... Line 2899...
2905
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2899
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2906
          break;
2900
          break;
2907
        }
2901
        }
2908
        switch (field.id) {
2902
        switch (field.id) {
2909
          case 0: // SUCCESS
2903
          case 0: // SUCCESS
2910
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2904
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2911
              this.success = iprot.readI64();
2905
              this.success = new InventoryItem();
2912
              setSuccessIsSet(true);
2906
              this.success.read(iprot);
2913
            } else { 
2907
            } else { 
2914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2915
            }
2909
            }
2916
            break;
2910
            break;
2917
          case 1: // WEX
2911
          case 1: // WEX
Line 2934... Line 2928...
2934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2935
      oprot.writeStructBegin(STRUCT_DESC);
2929
      oprot.writeStructBegin(STRUCT_DESC);
2936
 
2930
 
2937
      if (this.isSetSuccess()) {
2931
      if (this.isSetSuccess()) {
2938
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2932
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2939
        oprot.writeI64(this.success);
2933
        this.success.write(oprot);
2940
        oprot.writeFieldEnd();
2934
        oprot.writeFieldEnd();
2941
      } else if (this.isSetWex()) {
2935
      } else if (this.isSetWex()) {
2942
        oprot.writeFieldBegin(WEX_FIELD_DESC);
2936
        oprot.writeFieldBegin(WEX_FIELD_DESC);
2943
        this.wex.write(oprot);
2937
        this.wex.write(oprot);
2944
        oprot.writeFieldEnd();
2938
        oprot.writeFieldEnd();
Line 2951... Line 2945...
2951
    public String toString() {
2945
    public String toString() {
2952
      StringBuilder sb = new StringBuilder("createSerializedInventoryItemFromItemNumber_result(");
2946
      StringBuilder sb = new StringBuilder("createSerializedInventoryItemFromItemNumber_result(");
2953
      boolean first = true;
2947
      boolean first = true;
2954
 
2948
 
2955
      sb.append("success:");
2949
      sb.append("success:");
-
 
2950
      if (this.success == null) {
-
 
2951
        sb.append("null");
-
 
2952
      } else {
2956
      sb.append(this.success);
2953
        sb.append(this.success);
-
 
2954
      }
2957
      first = false;
2955
      first = false;
2958
      if (!first) sb.append(", ");
2956
      if (!first) sb.append(", ");
2959
      sb.append("wex:");
2957
      sb.append("wex:");
2960
      if (this.wex == null) {
2958
      if (this.wex == null) {
2961
        sb.append("null");
2959
        sb.append("null");
Line 3450... Line 3448...
3450
  }
3448
  }
3451
 
3449
 
3452
  public static class createInventoryItem_result implements org.apache.thrift.TBase<createInventoryItem_result, createInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
3450
  public static class createInventoryItem_result implements org.apache.thrift.TBase<createInventoryItem_result, createInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
3453
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInventoryItem_result");
3451
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInventoryItem_result");
3454
 
3452
 
3455
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
3453
    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);
3456
    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);
3454
    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);
3457
 
3455
 
3458
    private long success; // required
3456
    private InventoryItem success; // required
3459
    private WarehouseServiceException wex; // required
3457
    private WarehouseServiceException wex; // required
3460
 
3458
 
3461
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3459
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3462
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3460
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3463
      SUCCESS((short)0, "success"),
3461
      SUCCESS((short)0, "success"),
Line 3518... Line 3516...
3518
        return _fieldName;
3516
        return _fieldName;
3519
      }
3517
      }
3520
    }
3518
    }
3521
 
3519
 
3522
    // isset id assignments
3520
    // isset id assignments
3523
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
3524
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
3525
 
3521
 
3526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3522
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3527
    static {
3523
    static {
3528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3524
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3529
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3525
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3530
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3526
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3531
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3527
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3532
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3528
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3529
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createInventoryItem_result.class, metaDataMap);
3530
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createInventoryItem_result.class, metaDataMap);
3535
    }
3531
    }
3536
 
3532
 
3537
    public createInventoryItem_result() {
3533
    public createInventoryItem_result() {
3538
    }
3534
    }
3539
 
3535
 
3540
    public createInventoryItem_result(
3536
    public createInventoryItem_result(
3541
      long success,
3537
      InventoryItem success,
3542
      WarehouseServiceException wex)
3538
      WarehouseServiceException wex)
3543
    {
3539
    {
3544
      this();
3540
      this();
3545
      this.success = success;
3541
      this.success = success;
3546
      setSuccessIsSet(true);
-
 
3547
      this.wex = wex;
3542
      this.wex = wex;
3548
    }
3543
    }
3549
 
3544
 
3550
    /**
3545
    /**
3551
     * Performs a deep copy on <i>other</i>.
3546
     * Performs a deep copy on <i>other</i>.
3552
     */
3547
     */
3553
    public createInventoryItem_result(createInventoryItem_result other) {
3548
    public createInventoryItem_result(createInventoryItem_result other) {
3554
      __isset_bit_vector.clear();
3549
      if (other.isSetSuccess()) {
3555
      __isset_bit_vector.or(other.__isset_bit_vector);
3550
        this.success = new InventoryItem(other.success);
3556
      this.success = other.success;
3551
      }
3557
      if (other.isSetWex()) {
3552
      if (other.isSetWex()) {
3558
        this.wex = new WarehouseServiceException(other.wex);
3553
        this.wex = new WarehouseServiceException(other.wex);
3559
      }
3554
      }
3560
    }
3555
    }
3561
 
3556
 
Line 3563... Line 3558...
3563
      return new createInventoryItem_result(this);
3558
      return new createInventoryItem_result(this);
3564
    }
3559
    }
3565
 
3560
 
3566
    @Override
3561
    @Override
3567
    public void clear() {
3562
    public void clear() {
3568
      setSuccessIsSet(false);
-
 
3569
      this.success = 0;
3563
      this.success = null;
3570
      this.wex = null;
3564
      this.wex = null;
3571
    }
3565
    }
3572
 
3566
 
3573
    public long getSuccess() {
3567
    public InventoryItem getSuccess() {
3574
      return this.success;
3568
      return this.success;
3575
    }
3569
    }
3576
 
3570
 
3577
    public void setSuccess(long success) {
3571
    public void setSuccess(InventoryItem success) {
3578
      this.success = success;
3572
      this.success = success;
3579
      setSuccessIsSet(true);
-
 
3580
    }
3573
    }
3581
 
3574
 
3582
    public void unsetSuccess() {
3575
    public void unsetSuccess() {
3583
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3576
      this.success = null;
3584
    }
3577
    }
3585
 
3578
 
3586
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3579
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3587
    public boolean isSetSuccess() {
3580
    public boolean isSetSuccess() {
3588
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3581
      return this.success != null;
3589
    }
3582
    }
3590
 
3583
 
3591
    public void setSuccessIsSet(boolean value) {
3584
    public void setSuccessIsSet(boolean value) {
-
 
3585
      if (!value) {
3592
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3586
        this.success = null;
-
 
3587
      }
3593
    }
3588
    }
3594
 
3589
 
3595
    public WarehouseServiceException getWex() {
3590
    public WarehouseServiceException getWex() {
3596
      return this.wex;
3591
      return this.wex;
3597
    }
3592
    }
Line 3619... Line 3614...
3619
      switch (field) {
3614
      switch (field) {
3620
      case SUCCESS:
3615
      case SUCCESS:
3621
        if (value == null) {
3616
        if (value == null) {
3622
          unsetSuccess();
3617
          unsetSuccess();
3623
        } else {
3618
        } else {
3624
          setSuccess((Long)value);
3619
          setSuccess((InventoryItem)value);
3625
        }
3620
        }
3626
        break;
3621
        break;
3627
 
3622
 
3628
      case WEX:
3623
      case WEX:
3629
        if (value == null) {
3624
        if (value == null) {
Line 3637... Line 3632...
3637
    }
3632
    }
3638
 
3633
 
3639
    public Object getFieldValue(_Fields field) {
3634
    public Object getFieldValue(_Fields field) {
3640
      switch (field) {
3635
      switch (field) {
3641
      case SUCCESS:
3636
      case SUCCESS:
3642
        return Long.valueOf(getSuccess());
3637
        return getSuccess();
3643
 
3638
 
3644
      case WEX:
3639
      case WEX:
3645
        return getWex();
3640
        return getWex();
3646
 
3641
 
3647
      }
3642
      }
Line 3674... Line 3669...
3674
 
3669
 
3675
    public boolean equals(createInventoryItem_result that) {
3670
    public boolean equals(createInventoryItem_result that) {
3676
      if (that == null)
3671
      if (that == null)
3677
        return false;
3672
        return false;
3678
 
3673
 
3679
      boolean this_present_success = true;
3674
      boolean this_present_success = true && this.isSetSuccess();
3680
      boolean that_present_success = true;
3675
      boolean that_present_success = true && that.isSetSuccess();
3681
      if (this_present_success || that_present_success) {
3676
      if (this_present_success || that_present_success) {
3682
        if (!(this_present_success && that_present_success))
3677
        if (!(this_present_success && that_present_success))
3683
          return false;
3678
          return false;
3684
        if (this.success != that.success)
3679
        if (!this.success.equals(that.success))
3685
          return false;
3680
          return false;
3686
      }
3681
      }
3687
 
3682
 
3688
      boolean this_present_wex = true && this.isSetWex();
3683
      boolean this_present_wex = true && this.isSetWex();
3689
      boolean that_present_wex = true && that.isSetWex();
3684
      boolean that_present_wex = true && that.isSetWex();
Line 3746... Line 3741...
3746
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3741
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3747
          break;
3742
          break;
3748
        }
3743
        }
3749
        switch (field.id) {
3744
        switch (field.id) {
3750
          case 0: // SUCCESS
3745
          case 0: // SUCCESS
3751
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3746
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3752
              this.success = iprot.readI64();
3747
              this.success = new InventoryItem();
3753
              setSuccessIsSet(true);
3748
              this.success.read(iprot);
3754
            } else { 
3749
            } else { 
3755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3756
            }
3751
            }
3757
            break;
3752
            break;
3758
          case 1: // WEX
3753
          case 1: // WEX
Line 3775... Line 3770...
3775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3770
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3776
      oprot.writeStructBegin(STRUCT_DESC);
3771
      oprot.writeStructBegin(STRUCT_DESC);
3777
 
3772
 
3778
      if (this.isSetSuccess()) {
3773
      if (this.isSetSuccess()) {
3779
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3774
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3780
        oprot.writeI64(this.success);
3775
        this.success.write(oprot);
3781
        oprot.writeFieldEnd();
3776
        oprot.writeFieldEnd();
3782
      } else if (this.isSetWex()) {
3777
      } else if (this.isSetWex()) {
3783
        oprot.writeFieldBegin(WEX_FIELD_DESC);
3778
        oprot.writeFieldBegin(WEX_FIELD_DESC);
3784
        this.wex.write(oprot);
3779
        this.wex.write(oprot);
3785
        oprot.writeFieldEnd();
3780
        oprot.writeFieldEnd();
Line 3792... Line 3787...
3792
    public String toString() {
3787
    public String toString() {
3793
      StringBuilder sb = new StringBuilder("createInventoryItem_result(");
3788
      StringBuilder sb = new StringBuilder("createInventoryItem_result(");
3794
      boolean first = true;
3789
      boolean first = true;
3795
 
3790
 
3796
      sb.append("success:");
3791
      sb.append("success:");
-
 
3792
      if (this.success == null) {
-
 
3793
        sb.append("null");
-
 
3794
      } else {
3797
      sb.append(this.success);
3795
        sb.append(this.success);
-
 
3796
      }
3798
      first = false;
3797
      first = false;
3799
      if (!first) sb.append(", ");
3798
      if (!first) sb.append(", ");
3800
      sb.append("wex:");
3799
      sb.append("wex:");
3801
      if (this.wex == null) {
3800
      if (this.wex == null) {
3802
        sb.append("null");
3801
        sb.append("null");
Line 8798... Line 8797...
8798
  }
8797
  }
8799
 
8798
 
8800
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
8799
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
8801
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
8800
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
8802
 
8801
 
8803
    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);
8802
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
8804
    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);
8803
    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);
8805
    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)3);
8804
    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)3);
8806
    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);
8805
    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);
8807
 
8806
 
8808
    private long inventoryItemId; // required
8807
    private String serialNumber; // required
8809
    private ScanType type; // required
8808
    private ScanType type; // required
8810
    private long orderId; // required
8809
    private long orderId; // required
8811
    private long warehouseId; // required
8810
    private long warehouseId; // required
8812
 
8811
 
8813
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8814
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8815
      INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
8814
      SERIAL_NUMBER((short)1, "serialNumber"),
8816
      /**
8815
      /**
8817
       * 
8816
       * 
8818
       * @see ScanType
8817
       * @see ScanType
8819
       */
8818
       */
8820
      TYPE((short)2, "type"),
8819
      TYPE((short)2, "type"),
Line 8832... Line 8831...
8832
      /**
8831
      /**
8833
       * Find the _Fields constant that matches fieldId, or null if its not found.
8832
       * Find the _Fields constant that matches fieldId, or null if its not found.
8834
       */
8833
       */
8835
      public static _Fields findByThriftId(int fieldId) {
8834
      public static _Fields findByThriftId(int fieldId) {
8836
        switch(fieldId) {
8835
        switch(fieldId) {
8837
          case 1: // INVENTORY_ITEM_ID
8836
          case 1: // SERIAL_NUMBER
8838
            return INVENTORY_ITEM_ID;
8837
            return SERIAL_NUMBER;
8839
          case 2: // TYPE
8838
          case 2: // TYPE
8840
            return TYPE;
8839
            return TYPE;
8841
          case 3: // ORDER_ID
8840
          case 3: // ORDER_ID
8842
            return ORDER_ID;
8841
            return ORDER_ID;
8843
          case 4: // WAREHOUSE_ID
8842
          case 4: // WAREHOUSE_ID
Line 8880... Line 8879...
8880
        return _fieldName;
8879
        return _fieldName;
8881
      }
8880
      }
8882
    }
8881
    }
8883
 
8882
 
8884
    // isset id assignments
8883
    // isset id assignments
8885
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
-
 
8886
    private static final int __ORDERID_ISSET_ID = 1;
8884
    private static final int __ORDERID_ISSET_ID = 0;
8887
    private static final int __WAREHOUSEID_ISSET_ID = 2;
8885
    private static final int __WAREHOUSEID_ISSET_ID = 1;
8888
    private BitSet __isset_bit_vector = new BitSet(3);
8886
    private BitSet __isset_bit_vector = new BitSet(2);
8889
 
8887
 
8890
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8888
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8891
    static {
8889
    static {
8892
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8890
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8893
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8891
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8894
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8892
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8895
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8893
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8896
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
8894
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
8897
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8895
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8898
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8899
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8897
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 8904... Line 8902...
8904
 
8902
 
8905
    public scanSerializedItemForOrder_args() {
8903
    public scanSerializedItemForOrder_args() {
8906
    }
8904
    }
8907
 
8905
 
8908
    public scanSerializedItemForOrder_args(
8906
    public scanSerializedItemForOrder_args(
8909
      long inventoryItemId,
8907
      String serialNumber,
8910
      ScanType type,
8908
      ScanType type,
8911
      long orderId,
8909
      long orderId,
8912
      long warehouseId)
8910
      long warehouseId)
8913
    {
8911
    {
8914
      this();
8912
      this();
8915
      this.inventoryItemId = inventoryItemId;
8913
      this.serialNumber = serialNumber;
8916
      setInventoryItemIdIsSet(true);
-
 
8917
      this.type = type;
8914
      this.type = type;
8918
      this.orderId = orderId;
8915
      this.orderId = orderId;
8919
      setOrderIdIsSet(true);
8916
      setOrderIdIsSet(true);
8920
      this.warehouseId = warehouseId;
8917
      this.warehouseId = warehouseId;
8921
      setWarehouseIdIsSet(true);
8918
      setWarehouseIdIsSet(true);
Line 8925... Line 8922...
8925
     * Performs a deep copy on <i>other</i>.
8922
     * Performs a deep copy on <i>other</i>.
8926
     */
8923
     */
8927
    public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
8924
    public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
8928
      __isset_bit_vector.clear();
8925
      __isset_bit_vector.clear();
8929
      __isset_bit_vector.or(other.__isset_bit_vector);
8926
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8927
      if (other.isSetSerialNumber()) {
8930
      this.inventoryItemId = other.inventoryItemId;
8928
        this.serialNumber = other.serialNumber;
-
 
8929
      }
8931
      if (other.isSetType()) {
8930
      if (other.isSetType()) {
8932
        this.type = other.type;
8931
        this.type = other.type;
8933
      }
8932
      }
8934
      this.orderId = other.orderId;
8933
      this.orderId = other.orderId;
8935
      this.warehouseId = other.warehouseId;
8934
      this.warehouseId = other.warehouseId;
Line 8939... Line 8938...
8939
      return new scanSerializedItemForOrder_args(this);
8938
      return new scanSerializedItemForOrder_args(this);
8940
    }
8939
    }
8941
 
8940
 
8942
    @Override
8941
    @Override
8943
    public void clear() {
8942
    public void clear() {
8944
      setInventoryItemIdIsSet(false);
-
 
8945
      this.inventoryItemId = 0;
8943
      this.serialNumber = null;
8946
      this.type = null;
8944
      this.type = null;
8947
      setOrderIdIsSet(false);
8945
      setOrderIdIsSet(false);
8948
      this.orderId = 0;
8946
      this.orderId = 0;
8949
      setWarehouseIdIsSet(false);
8947
      setWarehouseIdIsSet(false);
8950
      this.warehouseId = 0;
8948
      this.warehouseId = 0;
8951
    }
8949
    }
8952
 
8950
 
8953
    public long getInventoryItemId() {
8951
    public String getSerialNumber() {
8954
      return this.inventoryItemId;
8952
      return this.serialNumber;
8955
    }
8953
    }
8956
 
8954
 
8957
    public void setInventoryItemId(long inventoryItemId) {
8955
    public void setSerialNumber(String serialNumber) {
8958
      this.inventoryItemId = inventoryItemId;
8956
      this.serialNumber = serialNumber;
8959
      setInventoryItemIdIsSet(true);
-
 
8960
    }
8957
    }
8961
 
8958
 
8962
    public void unsetInventoryItemId() {
8959
    public void unsetSerialNumber() {
8963
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
8960
      this.serialNumber = null;
8964
    }
8961
    }
8965
 
8962
 
8966
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
8963
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
8967
    public boolean isSetInventoryItemId() {
8964
    public boolean isSetSerialNumber() {
8968
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
8965
      return this.serialNumber != null;
8969
    }
8966
    }
8970
 
8967
 
8971
    public void setInventoryItemIdIsSet(boolean value) {
8968
    public void setSerialNumberIsSet(boolean value) {
-
 
8969
      if (!value) {
8972
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
8970
        this.serialNumber = null;
-
 
8971
      }
8973
    }
8972
    }
8974
 
8973
 
8975
    /**
8974
    /**
8976
     * 
8975
     * 
8977
     * @see ScanType
8976
     * @see ScanType
Line 9047... Line 9046...
9047
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9046
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9048
    }
9047
    }
9049
 
9048
 
9050
    public void setFieldValue(_Fields field, Object value) {
9049
    public void setFieldValue(_Fields field, Object value) {
9051
      switch (field) {
9050
      switch (field) {
9052
      case INVENTORY_ITEM_ID:
9051
      case SERIAL_NUMBER:
9053
        if (value == null) {
9052
        if (value == null) {
9054
          unsetInventoryItemId();
9053
          unsetSerialNumber();
9055
        } else {
9054
        } else {
9056
          setInventoryItemId((Long)value);
9055
          setSerialNumber((String)value);
9057
        }
9056
        }
9058
        break;
9057
        break;
9059
 
9058
 
9060
      case TYPE:
9059
      case TYPE:
9061
        if (value == null) {
9060
        if (value == null) {
Line 9084... Line 9083...
9084
      }
9083
      }
9085
    }
9084
    }
9086
 
9085
 
9087
    public Object getFieldValue(_Fields field) {
9086
    public Object getFieldValue(_Fields field) {
9088
      switch (field) {
9087
      switch (field) {
9089
      case INVENTORY_ITEM_ID:
9088
      case SERIAL_NUMBER:
9090
        return Long.valueOf(getInventoryItemId());
9089
        return getSerialNumber();
9091
 
9090
 
9092
      case TYPE:
9091
      case TYPE:
9093
        return getType();
9092
        return getType();
9094
 
9093
 
9095
      case ORDER_ID:
9094
      case ORDER_ID:
Line 9107... Line 9106...
9107
      if (field == null) {
9106
      if (field == null) {
9108
        throw new IllegalArgumentException();
9107
        throw new IllegalArgumentException();
9109
      }
9108
      }
9110
 
9109
 
9111
      switch (field) {
9110
      switch (field) {
9112
      case INVENTORY_ITEM_ID:
9111
      case SERIAL_NUMBER:
9113
        return isSetInventoryItemId();
9112
        return isSetSerialNumber();
9114
      case TYPE:
9113
      case TYPE:
9115
        return isSetType();
9114
        return isSetType();
9116
      case ORDER_ID:
9115
      case ORDER_ID:
9117
        return isSetOrderId();
9116
        return isSetOrderId();
9118
      case WAREHOUSE_ID:
9117
      case WAREHOUSE_ID:
Line 9132... Line 9131...
9132
 
9131
 
9133
    public boolean equals(scanSerializedItemForOrder_args that) {
9132
    public boolean equals(scanSerializedItemForOrder_args that) {
9134
      if (that == null)
9133
      if (that == null)
9135
        return false;
9134
        return false;
9136
 
9135
 
9137
      boolean this_present_inventoryItemId = true;
9136
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
9138
      boolean that_present_inventoryItemId = true;
9137
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
9139
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
9138
      if (this_present_serialNumber || that_present_serialNumber) {
9140
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
9139
        if (!(this_present_serialNumber && that_present_serialNumber))
9141
          return false;
9140
          return false;
9142
        if (this.inventoryItemId != that.inventoryItemId)
9141
        if (!this.serialNumber.equals(that.serialNumber))
9143
          return false;
9142
          return false;
9144
      }
9143
      }
9145
 
9144
 
9146
      boolean this_present_type = true && this.isSetType();
9145
      boolean this_present_type = true && this.isSetType();
9147
      boolean that_present_type = true && that.isSetType();
9146
      boolean that_present_type = true && that.isSetType();
Line 9184... Line 9183...
9184
      }
9183
      }
9185
 
9184
 
9186
      int lastComparison = 0;
9185
      int lastComparison = 0;
9187
      scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
9186
      scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
9188
 
9187
 
9189
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
9188
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
9190
      if (lastComparison != 0) {
9189
      if (lastComparison != 0) {
9191
        return lastComparison;
9190
        return lastComparison;
9192
      }
9191
      }
9193
      if (isSetInventoryItemId()) {
9192
      if (isSetSerialNumber()) {
9194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
9193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
9195
        if (lastComparison != 0) {
9194
        if (lastComparison != 0) {
9196
          return lastComparison;
9195
          return lastComparison;
9197
        }
9196
        }
9198
      }
9197
      }
9199
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
9198
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
Line 9241... Line 9240...
9241
        field = iprot.readFieldBegin();
9240
        field = iprot.readFieldBegin();
9242
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9241
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9243
          break;
9242
          break;
9244
        }
9243
        }
9245
        switch (field.id) {
9244
        switch (field.id) {
9246
          case 1: // INVENTORY_ITEM_ID
9245
          case 1: // SERIAL_NUMBER
9247
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9246
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9248
              this.inventoryItemId = iprot.readI64();
9247
              this.serialNumber = iprot.readString();
9249
              setInventoryItemIdIsSet(true);
-
 
9250
            } else { 
9248
            } else { 
9251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9252
            }
9250
            }
9253
            break;
9251
            break;
9254
          case 2: // TYPE
9252
          case 2: // TYPE
Line 9285... Line 9283...
9285
 
9283
 
9286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9284
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9287
      validate();
9285
      validate();
9288
 
9286
 
9289
      oprot.writeStructBegin(STRUCT_DESC);
9287
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9288
      if (this.serialNumber != null) {
9290
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
9289
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
9291
      oprot.writeI64(this.inventoryItemId);
9290
        oprot.writeString(this.serialNumber);
9292
      oprot.writeFieldEnd();
9291
        oprot.writeFieldEnd();
-
 
9292
      }
9293
      if (this.type != null) {
9293
      if (this.type != null) {
9294
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9294
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9295
        oprot.writeI32(this.type.getValue());
9295
        oprot.writeI32(this.type.getValue());
9296
        oprot.writeFieldEnd();
9296
        oprot.writeFieldEnd();
9297
      }
9297
      }
Line 9308... Line 9308...
9308
    @Override
9308
    @Override
9309
    public String toString() {
9309
    public String toString() {
9310
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
9310
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
9311
      boolean first = true;
9311
      boolean first = true;
9312
 
9312
 
9313
      sb.append("inventoryItemId:");
9313
      sb.append("serialNumber:");
-
 
9314
      if (this.serialNumber == null) {
-
 
9315
        sb.append("null");
-
 
9316
      } else {
9314
      sb.append(this.inventoryItemId);
9317
        sb.append(this.serialNumber);
-
 
9318
      }
9315
      first = false;
9319
      first = false;
9316
      if (!first) sb.append(", ");
9320
      if (!first) sb.append(", ");
9317
      sb.append("type:");
9321
      sb.append("type:");
9318
      if (this.type == null) {
9322
      if (this.type == null) {
9319
        sb.append("null");
9323
        sb.append("null");
Line 9356... Line 9360...
9356
  }
9360
  }
9357
 
9361
 
9358
  public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable   {
9362
  public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable   {
9359
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
9363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
9360
 
9364
 
9361
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
9365
    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);
9362
    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);
9366
    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);
9363
 
9367
 
9364
    private long success; // required
9368
    private InventoryItem success; // required
9365
    private WarehouseServiceException wex; // required
9369
    private WarehouseServiceException wex; // required
9366
 
9370
 
9367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9369
      SUCCESS((short)0, "success"),
9373
      SUCCESS((short)0, "success"),
Line 9424... Line 9428...
9424
        return _fieldName;
9428
        return _fieldName;
9425
      }
9429
      }
9426
    }
9430
    }
9427
 
9431
 
9428
    // isset id assignments
9432
    // isset id assignments
9429
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
9430
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9431
 
9433
 
9432
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9434
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9433
    static {
9435
    static {
9434
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9436
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9435
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9437
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9438
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
9437
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9439
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9439
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9441
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9440
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
9442
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
9441
    }
9443
    }
9442
 
9444
 
9443
    public scanSerializedItemForOrder_result() {
9445
    public scanSerializedItemForOrder_result() {
9444
    }
9446
    }
9445
 
9447
 
9446
    public scanSerializedItemForOrder_result(
9448
    public scanSerializedItemForOrder_result(
9447
      long success,
9449
      InventoryItem success,
9448
      WarehouseServiceException wex)
9450
      WarehouseServiceException wex)
9449
    {
9451
    {
9450
      this();
9452
      this();
9451
      this.success = success;
9453
      this.success = success;
9452
      setSuccessIsSet(true);
-
 
9453
      this.wex = wex;
9454
      this.wex = wex;
9454
    }
9455
    }
9455
 
9456
 
9456
    /**
9457
    /**
9457
     * Performs a deep copy on <i>other</i>.
9458
     * Performs a deep copy on <i>other</i>.
9458
     */
9459
     */
9459
    public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
9460
    public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
9460
      __isset_bit_vector.clear();
9461
      if (other.isSetSuccess()) {
9461
      __isset_bit_vector.or(other.__isset_bit_vector);
9462
        this.success = new InventoryItem(other.success);
9462
      this.success = other.success;
9463
      }
9463
      if (other.isSetWex()) {
9464
      if (other.isSetWex()) {
9464
        this.wex = new WarehouseServiceException(other.wex);
9465
        this.wex = new WarehouseServiceException(other.wex);
9465
      }
9466
      }
9466
    }
9467
    }
9467
 
9468
 
Line 9469... Line 9470...
9469
      return new scanSerializedItemForOrder_result(this);
9470
      return new scanSerializedItemForOrder_result(this);
9470
    }
9471
    }
9471
 
9472
 
9472
    @Override
9473
    @Override
9473
    public void clear() {
9474
    public void clear() {
9474
      setSuccessIsSet(false);
-
 
9475
      this.success = 0;
9475
      this.success = null;
9476
      this.wex = null;
9476
      this.wex = null;
9477
    }
9477
    }
9478
 
9478
 
9479
    public long getSuccess() {
9479
    public InventoryItem getSuccess() {
9480
      return this.success;
9480
      return this.success;
9481
    }
9481
    }
9482
 
9482
 
9483
    public void setSuccess(long success) {
9483
    public void setSuccess(InventoryItem success) {
9484
      this.success = success;
9484
      this.success = success;
9485
      setSuccessIsSet(true);
-
 
9486
    }
9485
    }
9487
 
9486
 
9488
    public void unsetSuccess() {
9487
    public void unsetSuccess() {
9489
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9488
      this.success = null;
9490
    }
9489
    }
9491
 
9490
 
9492
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9491
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9493
    public boolean isSetSuccess() {
9492
    public boolean isSetSuccess() {
9494
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9493
      return this.success != null;
9495
    }
9494
    }
9496
 
9495
 
9497
    public void setSuccessIsSet(boolean value) {
9496
    public void setSuccessIsSet(boolean value) {
-
 
9497
      if (!value) {
9498
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9498
        this.success = null;
-
 
9499
      }
9499
    }
9500
    }
9500
 
9501
 
9501
    public WarehouseServiceException getWex() {
9502
    public WarehouseServiceException getWex() {
9502
      return this.wex;
9503
      return this.wex;
9503
    }
9504
    }
Line 9525... Line 9526...
9525
      switch (field) {
9526
      switch (field) {
9526
      case SUCCESS:
9527
      case SUCCESS:
9527
        if (value == null) {
9528
        if (value == null) {
9528
          unsetSuccess();
9529
          unsetSuccess();
9529
        } else {
9530
        } else {
9530
          setSuccess((Long)value);
9531
          setSuccess((InventoryItem)value);
9531
        }
9532
        }
9532
        break;
9533
        break;
9533
 
9534
 
9534
      case WEX:
9535
      case WEX:
9535
        if (value == null) {
9536
        if (value == null) {
Line 9543... Line 9544...
9543
    }
9544
    }
9544
 
9545
 
9545
    public Object getFieldValue(_Fields field) {
9546
    public Object getFieldValue(_Fields field) {
9546
      switch (field) {
9547
      switch (field) {
9547
      case SUCCESS:
9548
      case SUCCESS:
9548
        return Long.valueOf(getSuccess());
9549
        return getSuccess();
9549
 
9550
 
9550
      case WEX:
9551
      case WEX:
9551
        return getWex();
9552
        return getWex();
9552
 
9553
 
9553
      }
9554
      }
Line 9580... Line 9581...
9580
 
9581
 
9581
    public boolean equals(scanSerializedItemForOrder_result that) {
9582
    public boolean equals(scanSerializedItemForOrder_result that) {
9582
      if (that == null)
9583
      if (that == null)
9583
        return false;
9584
        return false;
9584
 
9585
 
9585
      boolean this_present_success = true;
9586
      boolean this_present_success = true && this.isSetSuccess();
9586
      boolean that_present_success = true;
9587
      boolean that_present_success = true && that.isSetSuccess();
9587
      if (this_present_success || that_present_success) {
9588
      if (this_present_success || that_present_success) {
9588
        if (!(this_present_success && that_present_success))
9589
        if (!(this_present_success && that_present_success))
9589
          return false;
9590
          return false;
9590
        if (this.success != that.success)
9591
        if (!this.success.equals(that.success))
9591
          return false;
9592
          return false;
9592
      }
9593
      }
9593
 
9594
 
9594
      boolean this_present_wex = true && this.isSetWex();
9595
      boolean this_present_wex = true && this.isSetWex();
9595
      boolean that_present_wex = true && that.isSetWex();
9596
      boolean that_present_wex = true && that.isSetWex();
Line 9652... Line 9653...
9652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9653
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9653
          break;
9654
          break;
9654
        }
9655
        }
9655
        switch (field.id) {
9656
        switch (field.id) {
9656
          case 0: // SUCCESS
9657
          case 0: // SUCCESS
9657
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9658
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9658
              this.success = iprot.readI64();
9659
              this.success = new InventoryItem();
9659
              setSuccessIsSet(true);
9660
              this.success.read(iprot);
9660
            } else { 
9661
            } else { 
9661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9662
            }
9663
            }
9663
            break;
9664
            break;
9664
          case 1: // WEX
9665
          case 1: // WEX
Line 9681... Line 9682...
9681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9682
      oprot.writeStructBegin(STRUCT_DESC);
9683
      oprot.writeStructBegin(STRUCT_DESC);
9683
 
9684
 
9684
      if (this.isSetSuccess()) {
9685
      if (this.isSetSuccess()) {
9685
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9686
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9686
        oprot.writeI64(this.success);
9687
        this.success.write(oprot);
9687
        oprot.writeFieldEnd();
9688
        oprot.writeFieldEnd();
9688
      } else if (this.isSetWex()) {
9689
      } else if (this.isSetWex()) {
9689
        oprot.writeFieldBegin(WEX_FIELD_DESC);
9690
        oprot.writeFieldBegin(WEX_FIELD_DESC);
9690
        this.wex.write(oprot);
9691
        this.wex.write(oprot);
9691
        oprot.writeFieldEnd();
9692
        oprot.writeFieldEnd();
Line 9698... Line 9699...
9698
    public String toString() {
9699
    public String toString() {
9699
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
9700
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
9700
      boolean first = true;
9701
      boolean first = true;
9701
 
9702
 
9702
      sb.append("success:");
9703
      sb.append("success:");
-
 
9704
      if (this.success == null) {
-
 
9705
        sb.append("null");
-
 
9706
      } else {
9703
      sb.append(this.success);
9707
        sb.append(this.success);
-
 
9708
      }
9704
      first = false;
9709
      first = false;
9705
      if (!first) sb.append(", ");
9710
      if (!first) sb.append(", ");
9706
      sb.append("wex:");
9711
      sb.append("wex:");
9707
      if (this.wex == null) {
9712
      if (this.wex == null) {
9708
        sb.append("null");
9713
        sb.append("null");