Subversion Repositories SmartDukaan

Rev

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

Rev 3430 Rev 4496
Line 23... Line 23...
23
public class WarehouseService {
23
public class WarehouseService {
24
 
24
 
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
26
 
26
 
27
    /**
27
    /**
28
     * Creates a purchase order based on the data in the given purchase order object.
-
 
29
     * This method populates a nummber of missing fields
28
     * Creating inventory for a serialized item
30
     * 
29
     * 
-
 
30
     * @param itemId
-
 
31
     * @param serialNumber
31
     * @param purchaseOrder
32
     * @param purchaseId
32
     */
33
     */
33
    public long createPurchaseOrder(PurchaseOrder purchaseOrder) throws WarehouseServiceException, org.apache.thrift.TException;
34
    public long createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
34
 
35
 
35
    /**
36
    /**
36
     * Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
37
     * Creating inventory for a serialized item using item number
37
     * 
38
     * 
-
 
39
     * @param itemNumber
-
 
40
     * @param serialNumber
38
     * @param id
41
     * @param purchaseId
39
     */
42
     */
40
    public PurchaseOrder getPurchaseOrder(long id) throws WarehouseServiceException, org.apache.thrift.TException;
43
    public long createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
41
 
44
 
42
    /**
45
    /**
43
     * Returns a list of all the purchase orders in the given state
46
     * Creates inventory for an unserailized item
44
     * 
47
     * 
45
     * @param status
48
     * @param itemId
-
 
49
     * @param quantity
-
 
50
     * @param purchaseId
46
     */
51
     */
47
    public List<PurchaseOrder> getAllPurchaseOrders(POStatus status) throws WarehouseServiceException, org.apache.thrift.TException;
52
    public long createInventoryItem(long itemId, long quantity, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
48
 
53
 
49
    /**
54
    /**
50
     * Returns the supplier with the given order id. Throws an exception if there is no such supplier.
55
     * Retrieves serialized inventory item given a serial number
51
     * 
56
     * 
52
     * @param id
57
     * @param serialNumber
53
     */
58
     */
54
    public Supplier getSupplier(long id) throws WarehouseServiceException, org.apache.thrift.TException;
59
    public InventoryItem getInventoryItem(String serialNumber) throws org.apache.thrift.TException;
55
 
60
 
56
    /**
61
    /**
57
     * Creates a purchase for the given purchase order.
62
     * Retrieves non-serialized inventory items from a given supplier
58
     * Throws an exception if no more purchases are allowed against the given purchase order.
-
 
59
     * 
63
     * 
60
     * @param purchaseOrderId
64
     * @param itemId
61
     * @param invoiceNumber
65
     * @param quantity
62
     * @param freightCharges
66
     * @param supplierId
63
     */
67
     */
64
    public long startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges) throws WarehouseServiceException, org.apache.thrift.TException;
68
    public List<InventoryItem> getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException;
65
 
69
 
66
    /**
70
    /**
67
     * Marks a purchase as complete and updates the receivedOn time.
-
 
68
     * Throws an exception if no such purchase exists.
71
     * Retrieves inventory items for a given item
69
     * 
72
     * 
70
     * @param purchaseId
73
     * @param itemId
71
     */
74
     */
72
    public long closePurchase(long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
75
    public List<InventoryItem> getInventoryItems(long itemId) throws org.apache.thrift.TException;
73
 
76
 
74
    /**
77
    /**
75
     * Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
78
     * Retrieves scans for a given order
76
     * 
79
     * 
77
     * @param purchaseOrderId
-
 
78
     * @param open
80
     * @param orderId
79
     */
81
     */
80
    public List<Purchase> getAllPurchases(long purchaseOrderId, boolean open) throws WarehouseServiceException, org.apache.thrift.TException;
82
    public List<Scan> getScanForOrder(long orderId) throws org.apache.thrift.TException;
81
 
83
 
82
    /**
84
    /**
83
     * Creates a Scan object using the given details.
85
     * Retrieves scans for a given inventory item
84
     * Raises an exception if no more of the given item can be scanned in against the purchase order of the given purchase.
-
 
85
     * 
86
     * 
86
     * @param purchaseId
87
     * @param inventoryItemId
-
 
88
     */
-
 
89
    public List<Scan> getScan(long inventoryItemId) throws org.apache.thrift.TException;
-
 
90
 
-
 
91
    /**
87
     * @param itemNumber
92
     * Scan serialized items.
-
 
93
     * 
88
     * @param imeiNumber
94
     * @param inventoryItemId
89
     * @param type
95
     * @param type
-
 
96
     * @param warehouseId
90
     */
97
     */
91
    public void scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
98
    public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
92
 
99
 
93
    /**
100
    /**
94
     * Marks the Scan object with the given details as scanned out. In case, the imeiNumber is not given,
-
 
95
     * marks the oldest ItemInventory object as being scanned out.
-
 
96
     * Raises an exception if:
101
     * Scan non-serialized items.
97
     * 1. There is no stock present corresponding to the given item details.
-
 
98
     * 2. An older stock is present corresponding to the itemNumber which has not been scanned out.
-
 
99
     * 
102
     * 
-
 
103
     * @param inventoryItemId
100
     * @param itemNumber
104
     * @param type
-
 
105
     * @param quantity
101
     * @param imeiNumber
106
     * @param warehouseId
-
 
107
     */
-
 
108
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
109
 
-
 
110
    /**
-
 
111
     * Scan serialized items linked with an order. Returns its price.
-
 
112
     * 
-
 
113
     * @param inventoryItemId
102
     * @param type
114
     * @param type
-
 
115
     * @param orderId
-
 
116
     * @param warehouseId
103
     */
117
     */
104
    public void scanOut(String itemNumber, String imeiNumber, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
118
    public long scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
119
 
-
 
120
    /**
-
 
121
     * Scan non-serialized items linked with an order.
-
 
122
     * 
-
 
123
     * @param inventoryItemId
-
 
124
     * @param type
-
 
125
     * @param quantity
-
 
126
     * @param orderId
-
 
127
     * @param warehouseId
-
 
128
     */
-
 
129
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
130
 
-
 
131
    /**
-
 
132
     * Created item number to item id mapping
-
 
133
     * 
-
 
134
     * @param itemNumber
-
 
135
     * @param itemId
-
 
136
     */
-
 
137
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException;
105
 
138
 
106
  }
139
  }
107
 
140
 
108
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
141
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
109
 
142
 
-
 
143
    public void createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSerializedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
144
 
110
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
145
    public void createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSerializedInventoryItemFromItemNumber_call> resultHandler) throws org.apache.thrift.TException;
-
 
146
 
-
 
147
    public void createInventoryItem(long itemId, long quantity, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
111
 
148
 
112
    public void getPurchaseOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
149
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
113
 
150
 
114
    public void getAllPurchaseOrders(POStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPurchaseOrders_call> resultHandler) throws org.apache.thrift.TException;
151
    public void getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
115
 
152
 
116
    public void getSupplier(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSupplier_call> resultHandler) throws org.apache.thrift.TException;
153
    public void getInventoryItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
117
 
154
 
118
    public void startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.startPurchase_call> resultHandler) throws org.apache.thrift.TException;
155
    public void getScanForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanForOrder_call> resultHandler) throws org.apache.thrift.TException;
119
 
156
 
120
    public void closePurchase(long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closePurchase_call> resultHandler) throws org.apache.thrift.TException;
157
    public void getScan(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScan_call> resultHandler) throws org.apache.thrift.TException;
121
 
158
 
122
    public void getAllPurchases(long purchaseOrderId, boolean open, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPurchases_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;
123
 
160
 
124
    public void scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanIn_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;
125
 
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;
-
 
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;
-
 
166
 
126
    public void scanOut(String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanOut_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;
127
 
168
 
128
  }
169
  }
129
 
170
 
130
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
171
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
131
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
172
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 145... Line 186...
145
 
186
 
146
    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) {
147
      super(iprot, oprot);
188
      super(iprot, oprot);
148
    }
189
    }
149
 
190
 
150
    public long createPurchaseOrder(PurchaseOrder purchaseOrder) throws WarehouseServiceException, org.apache.thrift.TException
191
    public long createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
151
    {
192
    {
152
      send_createPurchaseOrder(purchaseOrder);
193
      send_createSerializedInventoryItem(itemId, serialNumber, purchaseId);
153
      return recv_createPurchaseOrder();
194
      return recv_createSerializedInventoryItem();
154
    }
195
    }
155
 
196
 
156
    public void send_createPurchaseOrder(PurchaseOrder purchaseOrder) throws org.apache.thrift.TException
197
    public void send_createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId) throws org.apache.thrift.TException
157
    {
198
    {
158
      createPurchaseOrder_args args = new createPurchaseOrder_args();
199
      createSerializedInventoryItem_args args = new createSerializedInventoryItem_args();
-
 
200
      args.setItemId(itemId);
-
 
201
      args.setSerialNumber(serialNumber);
159
      args.setPurchaseOrder(purchaseOrder);
202
      args.setPurchaseId(purchaseId);
160
      sendBase("createPurchaseOrder", args);
203
      sendBase("createSerializedInventoryItem", args);
161
    }
204
    }
162
 
205
 
163
    public long recv_createPurchaseOrder() throws WarehouseServiceException, org.apache.thrift.TException
206
    public long recv_createSerializedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
164
    {
207
    {
165
      createPurchaseOrder_result result = new createPurchaseOrder_result();
208
      createSerializedInventoryItem_result result = new createSerializedInventoryItem_result();
166
      receiveBase(result, "createPurchaseOrder");
209
      receiveBase(result, "createSerializedInventoryItem");
167
      if (result.isSetSuccess()) {
210
      if (result.isSetSuccess()) {
168
        return result.success;
211
        return result.success;
169
      }
212
      }
170
      if (result.wex != null) {
213
      if (result.wex != null) {
171
        throw result.wex;
214
        throw result.wex;
172
      }
215
      }
173
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
216
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createSerializedInventoryItem failed: unknown result");
174
    }
217
    }
175
 
218
 
176
    public PurchaseOrder getPurchaseOrder(long id) throws WarehouseServiceException, org.apache.thrift.TException
219
    public long createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
177
    {
220
    {
178
      send_getPurchaseOrder(id);
221
      send_createSerializedInventoryItemFromItemNumber(itemNumber, serialNumber, purchaseId);
179
      return recv_getPurchaseOrder();
222
      return recv_createSerializedInventoryItemFromItemNumber();
180
    }
223
    }
181
 
224
 
182
    public void send_getPurchaseOrder(long id) throws org.apache.thrift.TException
225
    public void send_createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws org.apache.thrift.TException
183
    {
226
    {
184
      getPurchaseOrder_args args = new getPurchaseOrder_args();
227
      createSerializedInventoryItemFromItemNumber_args args = new createSerializedInventoryItemFromItemNumber_args();
185
      args.setId(id);
228
      args.setItemNumber(itemNumber);
-
 
229
      args.setSerialNumber(serialNumber);
186
      sendBase("getPurchaseOrder", args);
230
      args.setPurchaseId(purchaseId);
-
 
231
      sendBase("createSerializedInventoryItemFromItemNumber", args);
187
    }
232
    }
188
 
233
 
189
    public PurchaseOrder recv_getPurchaseOrder() throws WarehouseServiceException, org.apache.thrift.TException
234
    public long recv_createSerializedInventoryItemFromItemNumber() throws WarehouseServiceException, org.apache.thrift.TException
190
    {
235
    {
191
      getPurchaseOrder_result result = new getPurchaseOrder_result();
236
      createSerializedInventoryItemFromItemNumber_result result = new createSerializedInventoryItemFromItemNumber_result();
192
      receiveBase(result, "getPurchaseOrder");
237
      receiveBase(result, "createSerializedInventoryItemFromItemNumber");
193
      if (result.isSetSuccess()) {
238
      if (result.isSetSuccess()) {
194
        return result.success;
239
        return result.success;
195
      }
240
      }
196
      if (result.wex != null) {
241
      if (result.wex != null) {
197
        throw result.wex;
242
        throw result.wex;
198
      }
243
      }
199
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseOrder failed: unknown result");
244
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createSerializedInventoryItemFromItemNumber failed: unknown result");
200
    }
245
    }
201
 
246
 
202
    public List<PurchaseOrder> getAllPurchaseOrders(POStatus status) throws WarehouseServiceException, org.apache.thrift.TException
247
    public long createInventoryItem(long itemId, long quantity, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
203
    {
248
    {
204
      send_getAllPurchaseOrders(status);
249
      send_createInventoryItem(itemId, quantity, purchaseId);
205
      return recv_getAllPurchaseOrders();
250
      return recv_createInventoryItem();
206
    }
251
    }
207
 
252
 
208
    public void send_getAllPurchaseOrders(POStatus status) throws org.apache.thrift.TException
253
    public void send_createInventoryItem(long itemId, long quantity, long purchaseId) throws org.apache.thrift.TException
209
    {
254
    {
210
      getAllPurchaseOrders_args args = new getAllPurchaseOrders_args();
255
      createInventoryItem_args args = new createInventoryItem_args();
211
      args.setStatus(status);
256
      args.setItemId(itemId);
-
 
257
      args.setQuantity(quantity);
-
 
258
      args.setPurchaseId(purchaseId);
212
      sendBase("getAllPurchaseOrders", args);
259
      sendBase("createInventoryItem", args);
213
    }
260
    }
214
 
261
 
215
    public List<PurchaseOrder> recv_getAllPurchaseOrders() throws WarehouseServiceException, org.apache.thrift.TException
262
    public long recv_createInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
216
    {
263
    {
217
      getAllPurchaseOrders_result result = new getAllPurchaseOrders_result();
264
      createInventoryItem_result result = new createInventoryItem_result();
218
      receiveBase(result, "getAllPurchaseOrders");
265
      receiveBase(result, "createInventoryItem");
219
      if (result.isSetSuccess()) {
266
      if (result.isSetSuccess()) {
220
        return result.success;
267
        return result.success;
221
      }
268
      }
222
      if (result.wex != null) {
269
      if (result.wex != null) {
223
        throw result.wex;
270
        throw result.wex;
224
      }
271
      }
225
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPurchaseOrders failed: unknown result");
272
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createInventoryItem failed: unknown result");
226
    }
273
    }
227
 
274
 
228
    public Supplier getSupplier(long id) throws WarehouseServiceException, org.apache.thrift.TException
275
    public InventoryItem getInventoryItem(String serialNumber) throws org.apache.thrift.TException
229
    {
276
    {
230
      send_getSupplier(id);
277
      send_getInventoryItem(serialNumber);
231
      return recv_getSupplier();
278
      return recv_getInventoryItem();
232
    }
279
    }
233
 
280
 
234
    public void send_getSupplier(long id) throws org.apache.thrift.TException
281
    public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
235
    {
282
    {
236
      getSupplier_args args = new getSupplier_args();
283
      getInventoryItem_args args = new getInventoryItem_args();
237
      args.setId(id);
284
      args.setSerialNumber(serialNumber);
238
      sendBase("getSupplier", args);
285
      sendBase("getInventoryItem", args);
239
    }
286
    }
240
 
287
 
241
    public Supplier recv_getSupplier() throws WarehouseServiceException, org.apache.thrift.TException
288
    public InventoryItem recv_getInventoryItem() throws org.apache.thrift.TException
242
    {
289
    {
243
      getSupplier_result result = new getSupplier_result();
290
      getInventoryItem_result result = new getInventoryItem_result();
244
      receiveBase(result, "getSupplier");
291
      receiveBase(result, "getInventoryItem");
245
      if (result.isSetSuccess()) {
292
      if (result.isSetSuccess()) {
246
        return result.success;
293
        return result.success;
247
      }
294
      }
-
 
295
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
-
 
296
    }
-
 
297
 
-
 
298
    public List<InventoryItem> getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException
-
 
299
    {
-
 
300
      send_getNonSeralizedInventoryItems(itemId, quantity, supplierId);
-
 
301
      return recv_getNonSeralizedInventoryItems();
-
 
302
    }
-
 
303
 
-
 
304
    public void send_getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException
-
 
305
    {
-
 
306
      getNonSeralizedInventoryItems_args args = new getNonSeralizedInventoryItems_args();
-
 
307
      args.setItemId(itemId);
-
 
308
      args.setQuantity(quantity);
-
 
309
      args.setSupplierId(supplierId);
-
 
310
      sendBase("getNonSeralizedInventoryItems", args);
-
 
311
    }
-
 
312
 
-
 
313
    public List<InventoryItem> recv_getNonSeralizedInventoryItems() throws org.apache.thrift.TException
-
 
314
    {
-
 
315
      getNonSeralizedInventoryItems_result result = new getNonSeralizedInventoryItems_result();
-
 
316
      receiveBase(result, "getNonSeralizedInventoryItems");
248
      if (result.wex != null) {
317
      if (result.isSetSuccess()) {
249
        throw result.wex;
318
        return result.success;
250
      }
319
      }
251
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSupplier failed: unknown result");
320
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItems failed: unknown result");
252
    }
321
    }
253
 
322
 
254
    public long startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges) throws WarehouseServiceException, org.apache.thrift.TException
323
    public List<InventoryItem> getInventoryItems(long itemId) throws org.apache.thrift.TException
255
    {
324
    {
256
      send_startPurchase(purchaseOrderId, invoiceNumber, freightCharges);
325
      send_getInventoryItems(itemId);
257
      return recv_startPurchase();
326
      return recv_getInventoryItems();
258
    }
327
    }
259
 
328
 
260
    public void send_startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges) throws org.apache.thrift.TException
329
    public void send_getInventoryItems(long itemId) throws org.apache.thrift.TException
261
    {
330
    {
262
      startPurchase_args args = new startPurchase_args();
331
      getInventoryItems_args args = new getInventoryItems_args();
263
      args.setPurchaseOrderId(purchaseOrderId);
-
 
264
      args.setInvoiceNumber(invoiceNumber);
332
      args.setItemId(itemId);
265
      args.setFreightCharges(freightCharges);
-
 
266
      sendBase("startPurchase", args);
333
      sendBase("getInventoryItems", args);
267
    }
334
    }
268
 
335
 
269
    public long recv_startPurchase() throws WarehouseServiceException, org.apache.thrift.TException
336
    public List<InventoryItem> recv_getInventoryItems() throws org.apache.thrift.TException
270
    {
337
    {
271
      startPurchase_result result = new startPurchase_result();
338
      getInventoryItems_result result = new getInventoryItems_result();
272
      receiveBase(result, "startPurchase");
339
      receiveBase(result, "getInventoryItems");
273
      if (result.isSetSuccess()) {
340
      if (result.isSetSuccess()) {
274
        return result.success;
341
        return result.success;
275
      }
342
      }
-
 
343
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItems failed: unknown result");
-
 
344
    }
-
 
345
 
-
 
346
    public List<Scan> getScanForOrder(long orderId) throws org.apache.thrift.TException
-
 
347
    {
-
 
348
      send_getScanForOrder(orderId);
-
 
349
      return recv_getScanForOrder();
-
 
350
    }
-
 
351
 
-
 
352
    public void send_getScanForOrder(long orderId) throws org.apache.thrift.TException
-
 
353
    {
-
 
354
      getScanForOrder_args args = new getScanForOrder_args();
-
 
355
      args.setOrderId(orderId);
-
 
356
      sendBase("getScanForOrder", args);
-
 
357
    }
-
 
358
 
-
 
359
    public List<Scan> recv_getScanForOrder() throws org.apache.thrift.TException
-
 
360
    {
-
 
361
      getScanForOrder_result result = new getScanForOrder_result();
-
 
362
      receiveBase(result, "getScanForOrder");
276
      if (result.wex != null) {
363
      if (result.isSetSuccess()) {
277
        throw result.wex;
364
        return result.success;
278
      }
365
      }
279
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startPurchase failed: unknown result");
366
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanForOrder failed: unknown result");
280
    }
367
    }
281
 
368
 
282
    public long closePurchase(long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
369
    public List<Scan> getScan(long inventoryItemId) throws org.apache.thrift.TException
283
    {
370
    {
284
      send_closePurchase(purchaseId);
371
      send_getScan(inventoryItemId);
285
      return recv_closePurchase();
372
      return recv_getScan();
286
    }
373
    }
287
 
374
 
288
    public void send_closePurchase(long purchaseId) throws org.apache.thrift.TException
375
    public void send_getScan(long inventoryItemId) throws org.apache.thrift.TException
289
    {
376
    {
290
      closePurchase_args args = new closePurchase_args();
377
      getScan_args args = new getScan_args();
291
      args.setPurchaseId(purchaseId);
378
      args.setInventoryItemId(inventoryItemId);
292
      sendBase("closePurchase", args);
379
      sendBase("getScan", args);
293
    }
380
    }
294
 
381
 
295
    public long recv_closePurchase() throws WarehouseServiceException, org.apache.thrift.TException
382
    public List<Scan> recv_getScan() throws org.apache.thrift.TException
296
    {
383
    {
297
      closePurchase_result result = new closePurchase_result();
384
      getScan_result result = new getScan_result();
298
      receiveBase(result, "closePurchase");
385
      receiveBase(result, "getScan");
299
      if (result.isSetSuccess()) {
386
      if (result.isSetSuccess()) {
300
        return result.success;
387
        return result.success;
301
      }
388
      }
-
 
389
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScan failed: unknown result");
-
 
390
    }
-
 
391
 
-
 
392
    public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
393
    {
-
 
394
      send_scanSerializedItem(inventoryItemId, type, warehouseId);
-
 
395
      recv_scanSerializedItem();
-
 
396
    }
-
 
397
 
-
 
398
    public void send_scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId) throws org.apache.thrift.TException
-
 
399
    {
-
 
400
      scanSerializedItem_args args = new scanSerializedItem_args();
-
 
401
      args.setInventoryItemId(inventoryItemId);
-
 
402
      args.setType(type);
-
 
403
      args.setWarehouseId(warehouseId);
-
 
404
      sendBase("scanSerializedItem", args);
-
 
405
    }
-
 
406
 
-
 
407
    public void recv_scanSerializedItem() throws WarehouseServiceException, org.apache.thrift.TException
-
 
408
    {
-
 
409
      scanSerializedItem_result result = new scanSerializedItem_result();
-
 
410
      receiveBase(result, "scanSerializedItem");
-
 
411
      if (result.wex != null) {
-
 
412
        throw result.wex;
-
 
413
      }
-
 
414
      return;
-
 
415
    }
-
 
416
 
-
 
417
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
418
    {
-
 
419
      send_scan(inventoryItemId, type, quantity, warehouseId);
-
 
420
      recv_scan();
-
 
421
    }
-
 
422
 
-
 
423
    public void send_scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws org.apache.thrift.TException
-
 
424
    {
-
 
425
      scan_args args = new scan_args();
-
 
426
      args.setInventoryItemId(inventoryItemId);
-
 
427
      args.setType(type);
-
 
428
      args.setQuantity(quantity);
-
 
429
      args.setWarehouseId(warehouseId);
-
 
430
      sendBase("scan", args);
-
 
431
    }
-
 
432
 
-
 
433
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
-
 
434
    {
-
 
435
      scan_result result = new scan_result();
-
 
436
      receiveBase(result, "scan");
302
      if (result.wex != null) {
437
      if (result.wex != null) {
303
        throw result.wex;
438
        throw result.wex;
304
      }
439
      }
305
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "closePurchase failed: unknown result");
-
 
-
 
440
      return;
306
    }
441
    }
307
 
442
 
308
    public List<Purchase> getAllPurchases(long purchaseOrderId, boolean open) throws WarehouseServiceException, org.apache.thrift.TException
443
    public long scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
309
    {
444
    {
310
      send_getAllPurchases(purchaseOrderId, open);
445
      send_scanSerializedItemForOrder(inventoryItemId, type, orderId, warehouseId);
311
      return recv_getAllPurchases();
446
      return recv_scanSerializedItemForOrder();
312
    }
447
    }
313
 
448
 
314
    public void send_getAllPurchases(long purchaseOrderId, boolean open) throws org.apache.thrift.TException
449
    public void send_scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId) throws org.apache.thrift.TException
315
    {
450
    {
316
      getAllPurchases_args args = new getAllPurchases_args();
451
      scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
317
      args.setPurchaseOrderId(purchaseOrderId);
452
      args.setInventoryItemId(inventoryItemId);
318
      args.setOpen(open);
453
      args.setType(type);
-
 
454
      args.setOrderId(orderId);
-
 
455
      args.setWarehouseId(warehouseId);
319
      sendBase("getAllPurchases", args);
456
      sendBase("scanSerializedItemForOrder", args);
320
    }
457
    }
321
 
458
 
322
    public List<Purchase> recv_getAllPurchases() throws WarehouseServiceException, org.apache.thrift.TException
459
    public long recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
323
    {
460
    {
324
      getAllPurchases_result result = new getAllPurchases_result();
461
      scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
325
      receiveBase(result, "getAllPurchases");
462
      receiveBase(result, "scanSerializedItemForOrder");
326
      if (result.isSetSuccess()) {
463
      if (result.isSetSuccess()) {
327
        return result.success;
464
        return result.success;
328
      }
465
      }
329
      if (result.wex != null) {
466
      if (result.wex != null) {
330
        throw result.wex;
467
        throw result.wex;
331
      }
468
      }
332
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPurchases failed: unknown result");
469
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
333
    }
470
    }
334
 
471
 
335
    public void scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException
472
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
336
    {
473
    {
337
      send_scanIn(purchaseId, itemNumber, imeiNumber, type);
474
      send_scanForOrder(inventoryItemId, type, quantity, orderId, warehouseId);
338
      recv_scanIn();
475
      recv_scanForOrder();
339
    }
476
    }
340
 
477
 
341
    public void send_scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type) throws org.apache.thrift.TException
478
    public void send_scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId) throws org.apache.thrift.TException
342
    {
479
    {
343
      scanIn_args args = new scanIn_args();
480
      scanForOrder_args args = new scanForOrder_args();
344
      args.setPurchaseId(purchaseId);
-
 
345
      args.setItemNumber(itemNumber);
-
 
346
      args.setImeiNumber(imeiNumber);
481
      args.setInventoryItemId(inventoryItemId);
347
      args.setType(type);
482
      args.setType(type);
-
 
483
      args.setQuantity(quantity);
-
 
484
      args.setOrderId(orderId);
-
 
485
      args.setWarehouseId(warehouseId);
348
      sendBase("scanIn", args);
486
      sendBase("scanForOrder", args);
349
    }
487
    }
350
 
488
 
351
    public void recv_scanIn() throws WarehouseServiceException, org.apache.thrift.TException
489
    public void recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
352
    {
490
    {
353
      scanIn_result result = new scanIn_result();
491
      scanForOrder_result result = new scanForOrder_result();
354
      receiveBase(result, "scanIn");
492
      receiveBase(result, "scanForOrder");
355
      if (result.wex != null) {
493
      if (result.wex != null) {
356
        throw result.wex;
494
        throw result.wex;
357
      }
495
      }
358
      return;
496
      return;
359
    }
497
    }
360
 
498
 
361
    public void scanOut(String itemNumber, String imeiNumber, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException
499
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
362
    {
500
    {
363
      send_scanOut(itemNumber, imeiNumber, type);
501
      send_createItemNumberMapping(itemNumber, itemId);
364
      recv_scanOut();
502
      recv_createItemNumberMapping();
365
    }
503
    }
366
 
504
 
367
    public void send_scanOut(String itemNumber, String imeiNumber, ScanType type) throws org.apache.thrift.TException
505
    public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
368
    {
506
    {
369
      scanOut_args args = new scanOut_args();
507
      createItemNumberMapping_args args = new createItemNumberMapping_args();
370
      args.setItemNumber(itemNumber);
508
      args.setItemNumber(itemNumber);
371
      args.setImeiNumber(imeiNumber);
-
 
372
      args.setType(type);
509
      args.setItemId(itemId);
373
      sendBase("scanOut", args);
510
      sendBase("createItemNumberMapping", args);
374
    }
511
    }
375
 
512
 
376
    public void recv_scanOut() throws WarehouseServiceException, org.apache.thrift.TException
513
    public void recv_createItemNumberMapping() throws org.apache.thrift.TException
377
    {
514
    {
378
      scanOut_result result = new scanOut_result();
515
      createItemNumberMapping_result result = new createItemNumberMapping_result();
379
      receiveBase(result, "scanOut");
516
      receiveBase(result, "createItemNumberMapping");
380
      if (result.wex != null) {
-
 
381
        throw result.wex;
-
 
382
      }
-
 
383
      return;
517
      return;
384
    }
518
    }
385
 
519
 
386
  }
520
  }
387
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
521
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
Line 399... Line 533...
399
 
533
 
400
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
534
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
401
      super(protocolFactory, clientManager, transport);
535
      super(protocolFactory, clientManager, transport);
402
    }
536
    }
403
 
537
 
404
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
538
    public void createSerializedInventoryItem(long itemId, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createSerializedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
405
      checkReady();
539
      checkReady();
406
      createPurchaseOrder_call method_call = new createPurchaseOrder_call(purchaseOrder, resultHandler, this, ___protocolFactory, ___transport);
540
      createSerializedInventoryItem_call method_call = new createSerializedInventoryItem_call(itemId, serialNumber, purchaseId, resultHandler, this, ___protocolFactory, ___transport);
407
      this.___currentMethod = method_call;
541
      this.___currentMethod = method_call;
408
      ___manager.call(method_call);
542
      ___manager.call(method_call);
409
    }
543
    }
410
 
544
 
411
    public static class createPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
545
    public static class createSerializedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
546
      private long itemId;
-
 
547
      private String serialNumber;
412
      private PurchaseOrder purchaseOrder;
548
      private long purchaseId;
413
      public createPurchaseOrder_call(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_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 {
549
      public createSerializedInventoryItem_call(long itemId, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createSerializedInventoryItem_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 {
414
        super(client, protocolFactory, transport, resultHandler, false);
550
        super(client, protocolFactory, transport, resultHandler, false);
-
 
551
        this.itemId = itemId;
-
 
552
        this.serialNumber = serialNumber;
415
        this.purchaseOrder = purchaseOrder;
553
        this.purchaseId = purchaseId;
416
      }
554
      }
417
 
555
 
418
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
556
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
419
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
557
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createSerializedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
420
        createPurchaseOrder_args args = new createPurchaseOrder_args();
558
        createSerializedInventoryItem_args args = new createSerializedInventoryItem_args();
-
 
559
        args.setItemId(itemId);
-
 
560
        args.setSerialNumber(serialNumber);
421
        args.setPurchaseOrder(purchaseOrder);
561
        args.setPurchaseId(purchaseId);
422
        args.write(prot);
562
        args.write(prot);
423
        prot.writeMessageEnd();
563
        prot.writeMessageEnd();
424
      }
564
      }
425
 
565
 
426
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
566
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
427
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
567
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
428
          throw new IllegalStateException("Method call not finished!");
568
          throw new IllegalStateException("Method call not finished!");
429
        }
569
        }
430
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
570
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
431
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
571
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
432
        return (new Client(prot)).recv_createPurchaseOrder();
572
        return (new Client(prot)).recv_createSerializedInventoryItem();
433
      }
573
      }
434
    }
574
    }
435
 
575
 
436
    public void getPurchaseOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
576
    public void createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createSerializedInventoryItemFromItemNumber_call> resultHandler) throws org.apache.thrift.TException {
437
      checkReady();
577
      checkReady();
438
      getPurchaseOrder_call method_call = new getPurchaseOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);
578
      createSerializedInventoryItemFromItemNumber_call method_call = new createSerializedInventoryItemFromItemNumber_call(itemNumber, serialNumber, purchaseId, resultHandler, this, ___protocolFactory, ___transport);
439
      this.___currentMethod = method_call;
579
      this.___currentMethod = method_call;
440
      ___manager.call(method_call);
580
      ___manager.call(method_call);
441
    }
581
    }
442
 
582
 
443
    public static class getPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
583
    public static class createSerializedInventoryItemFromItemNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
584
      private String itemNumber;
-
 
585
      private String serialNumber;
444
      private long id;
586
      private long purchaseId;
445
      public getPurchaseOrder_call(long id, org.apache.thrift.async.AsyncMethodCallback<getPurchaseOrder_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 {
587
      public createSerializedInventoryItemFromItemNumber_call(String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createSerializedInventoryItemFromItemNumber_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 {
446
        super(client, protocolFactory, transport, resultHandler, false);
588
        super(client, protocolFactory, transport, resultHandler, false);
-
 
589
        this.itemNumber = itemNumber;
-
 
590
        this.serialNumber = serialNumber;
447
        this.id = id;
591
        this.purchaseId = purchaseId;
448
      }
592
      }
449
 
593
 
450
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
594
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
451
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
595
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createSerializedInventoryItemFromItemNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
452
        getPurchaseOrder_args args = new getPurchaseOrder_args();
596
        createSerializedInventoryItemFromItemNumber_args args = new createSerializedInventoryItemFromItemNumber_args();
-
 
597
        args.setItemNumber(itemNumber);
-
 
598
        args.setSerialNumber(serialNumber);
453
        args.setId(id);
599
        args.setPurchaseId(purchaseId);
454
        args.write(prot);
600
        args.write(prot);
455
        prot.writeMessageEnd();
601
        prot.writeMessageEnd();
456
      }
602
      }
457
 
603
 
458
      public PurchaseOrder getResult() throws WarehouseServiceException, org.apache.thrift.TException {
604
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
459
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
605
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
460
          throw new IllegalStateException("Method call not finished!");
606
          throw new IllegalStateException("Method call not finished!");
461
        }
607
        }
462
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
608
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
463
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
609
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
464
        return (new Client(prot)).recv_getPurchaseOrder();
610
        return (new Client(prot)).recv_createSerializedInventoryItemFromItemNumber();
465
      }
611
      }
466
    }
612
    }
467
 
613
 
468
    public void getAllPurchaseOrders(POStatus status, org.apache.thrift.async.AsyncMethodCallback<getAllPurchaseOrders_call> resultHandler) throws org.apache.thrift.TException {
614
    public void createInventoryItem(long itemId, long quantity, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
469
      checkReady();
615
      checkReady();
470
      getAllPurchaseOrders_call method_call = new getAllPurchaseOrders_call(status, resultHandler, this, ___protocolFactory, ___transport);
616
      createInventoryItem_call method_call = new createInventoryItem_call(itemId, quantity, purchaseId, resultHandler, this, ___protocolFactory, ___transport);
471
      this.___currentMethod = method_call;
617
      this.___currentMethod = method_call;
472
      ___manager.call(method_call);
618
      ___manager.call(method_call);
473
    }
619
    }
474
 
620
 
475
    public static class getAllPurchaseOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
621
    public static class createInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
622
      private long itemId;
476
      private POStatus status;
623
      private long quantity;
-
 
624
      private long purchaseId;
477
      public getAllPurchaseOrders_call(POStatus status, org.apache.thrift.async.AsyncMethodCallback<getAllPurchaseOrders_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 {
625
      public createInventoryItem_call(long itemId, long quantity, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createInventoryItem_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 {
478
        super(client, protocolFactory, transport, resultHandler, false);
626
        super(client, protocolFactory, transport, resultHandler, false);
479
        this.status = status;
627
        this.itemId = itemId;
-
 
628
        this.quantity = quantity;
-
 
629
        this.purchaseId = purchaseId;
480
      }
630
      }
481
 
631
 
482
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
632
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
483
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPurchaseOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
633
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
484
        getAllPurchaseOrders_args args = new getAllPurchaseOrders_args();
634
        createInventoryItem_args args = new createInventoryItem_args();
485
        args.setStatus(status);
635
        args.setItemId(itemId);
-
 
636
        args.setQuantity(quantity);
-
 
637
        args.setPurchaseId(purchaseId);
486
        args.write(prot);
638
        args.write(prot);
487
        prot.writeMessageEnd();
639
        prot.writeMessageEnd();
488
      }
640
      }
489
 
641
 
490
      public List<PurchaseOrder> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
642
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
491
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
643
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
492
          throw new IllegalStateException("Method call not finished!");
644
          throw new IllegalStateException("Method call not finished!");
493
        }
645
        }
494
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
646
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
495
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
647
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
496
        return (new Client(prot)).recv_getAllPurchaseOrders();
648
        return (new Client(prot)).recv_createInventoryItem();
497
      }
649
      }
498
    }
650
    }
499
 
651
 
500
    public void getSupplier(long id, org.apache.thrift.async.AsyncMethodCallback<getSupplier_call> resultHandler) throws org.apache.thrift.TException {
652
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
501
      checkReady();
653
      checkReady();
502
      getSupplier_call method_call = new getSupplier_call(id, resultHandler, this, ___protocolFactory, ___transport);
654
      getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
503
      this.___currentMethod = method_call;
655
      this.___currentMethod = method_call;
504
      ___manager.call(method_call);
656
      ___manager.call(method_call);
505
    }
657
    }
506
 
658
 
507
    public static class getSupplier_call extends org.apache.thrift.async.TAsyncMethodCall {
659
    public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
508
      private long id;
660
      private String serialNumber;
509
      public getSupplier_call(long id, org.apache.thrift.async.AsyncMethodCallback<getSupplier_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 {
661
      public getInventoryItem_call(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_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 {
510
        super(client, protocolFactory, transport, resultHandler, false);
662
        super(client, protocolFactory, transport, resultHandler, false);
511
        this.id = id;
663
        this.serialNumber = serialNumber;
512
      }
664
      }
513
 
665
 
514
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
666
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
515
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSupplier", org.apache.thrift.protocol.TMessageType.CALL, 0));
667
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
516
        getSupplier_args args = new getSupplier_args();
668
        getInventoryItem_args args = new getInventoryItem_args();
517
        args.setId(id);
669
        args.setSerialNumber(serialNumber);
518
        args.write(prot);
670
        args.write(prot);
519
        prot.writeMessageEnd();
671
        prot.writeMessageEnd();
520
      }
672
      }
521
 
673
 
522
      public Supplier getResult() throws WarehouseServiceException, org.apache.thrift.TException {
674
      public InventoryItem getResult() throws org.apache.thrift.TException {
523
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
675
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
524
          throw new IllegalStateException("Method call not finished!");
676
          throw new IllegalStateException("Method call not finished!");
525
        }
677
        }
526
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
678
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
527
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
679
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
528
        return (new Client(prot)).recv_getSupplier();
680
        return (new Client(prot)).recv_getInventoryItem();
529
      }
681
      }
530
    }
682
    }
531
 
683
 
532
    public void startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges, org.apache.thrift.async.AsyncMethodCallback<startPurchase_call> resultHandler) throws org.apache.thrift.TException {
684
    public void getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItems_call> resultHandler) throws org.apache.thrift.TException {
533
      checkReady();
685
      checkReady();
534
      startPurchase_call method_call = new startPurchase_call(purchaseOrderId, invoiceNumber, freightCharges, resultHandler, this, ___protocolFactory, ___transport);
686
      getNonSeralizedInventoryItems_call method_call = new getNonSeralizedInventoryItems_call(itemId, quantity, supplierId, resultHandler, this, ___protocolFactory, ___transport);
535
      this.___currentMethod = method_call;
687
      this.___currentMethod = method_call;
536
      ___manager.call(method_call);
688
      ___manager.call(method_call);
537
    }
689
    }
538
 
690
 
539
    public static class startPurchase_call extends org.apache.thrift.async.TAsyncMethodCall {
691
    public static class getNonSeralizedInventoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
540
      private long purchaseOrderId;
692
      private long itemId;
541
      private String invoiceNumber;
693
      private long quantity;
542
      private double freightCharges;
694
      private long supplierId;
543
      public startPurchase_call(long purchaseOrderId, String invoiceNumber, double freightCharges, org.apache.thrift.async.AsyncMethodCallback<startPurchase_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 {
695
      public getNonSeralizedInventoryItems_call(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
544
        super(client, protocolFactory, transport, resultHandler, false);
696
        super(client, protocolFactory, transport, resultHandler, false);
545
        this.purchaseOrderId = purchaseOrderId;
697
        this.itemId = itemId;
546
        this.invoiceNumber = invoiceNumber;
698
        this.quantity = quantity;
547
        this.freightCharges = freightCharges;
699
        this.supplierId = supplierId;
548
      }
700
      }
549
 
701
 
550
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
702
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
551
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startPurchase", org.apache.thrift.protocol.TMessageType.CALL, 0));
703
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
552
        startPurchase_args args = new startPurchase_args();
704
        getNonSeralizedInventoryItems_args args = new getNonSeralizedInventoryItems_args();
553
        args.setPurchaseOrderId(purchaseOrderId);
705
        args.setItemId(itemId);
554
        args.setInvoiceNumber(invoiceNumber);
706
        args.setQuantity(quantity);
555
        args.setFreightCharges(freightCharges);
707
        args.setSupplierId(supplierId);
556
        args.write(prot);
708
        args.write(prot);
557
        prot.writeMessageEnd();
709
        prot.writeMessageEnd();
558
      }
710
      }
559
 
711
 
560
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
712
      public List<InventoryItem> getResult() throws org.apache.thrift.TException {
561
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
713
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
562
          throw new IllegalStateException("Method call not finished!");
714
          throw new IllegalStateException("Method call not finished!");
563
        }
715
        }
564
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
716
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
565
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
717
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
566
        return (new Client(prot)).recv_startPurchase();
718
        return (new Client(prot)).recv_getNonSeralizedInventoryItems();
567
      }
719
      }
568
    }
720
    }
569
 
721
 
570
    public void closePurchase(long purchaseId, org.apache.thrift.async.AsyncMethodCallback<closePurchase_call> resultHandler) throws org.apache.thrift.TException {
722
    public void getInventoryItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItems_call> resultHandler) throws org.apache.thrift.TException {
571
      checkReady();
723
      checkReady();
572
      closePurchase_call method_call = new closePurchase_call(purchaseId, resultHandler, this, ___protocolFactory, ___transport);
724
      getInventoryItems_call method_call = new getInventoryItems_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
573
      this.___currentMethod = method_call;
725
      this.___currentMethod = method_call;
574
      ___manager.call(method_call);
726
      ___manager.call(method_call);
575
    }
727
    }
576
 
728
 
577
    public static class closePurchase_call extends org.apache.thrift.async.TAsyncMethodCall {
729
    public static class getInventoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
578
      private long purchaseId;
730
      private long itemId;
579
      public closePurchase_call(long purchaseId, org.apache.thrift.async.AsyncMethodCallback<closePurchase_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 {
731
      public getInventoryItems_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
580
        super(client, protocolFactory, transport, resultHandler, false);
732
        super(client, protocolFactory, transport, resultHandler, false);
581
        this.purchaseId = purchaseId;
733
        this.itemId = itemId;
582
      }
734
      }
583
 
735
 
584
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
736
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
585
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closePurchase", org.apache.thrift.protocol.TMessageType.CALL, 0));
737
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
586
        closePurchase_args args = new closePurchase_args();
738
        getInventoryItems_args args = new getInventoryItems_args();
587
        args.setPurchaseId(purchaseId);
739
        args.setItemId(itemId);
588
        args.write(prot);
740
        args.write(prot);
589
        prot.writeMessageEnd();
741
        prot.writeMessageEnd();
590
      }
742
      }
591
 
743
 
592
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
744
      public List<InventoryItem> getResult() throws org.apache.thrift.TException {
593
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
745
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
594
          throw new IllegalStateException("Method call not finished!");
746
          throw new IllegalStateException("Method call not finished!");
595
        }
747
        }
596
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
748
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
597
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
749
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
598
        return (new Client(prot)).recv_closePurchase();
750
        return (new Client(prot)).recv_getInventoryItems();
599
      }
751
      }
600
    }
752
    }
601
 
753
 
602
    public void getAllPurchases(long purchaseOrderId, boolean open, org.apache.thrift.async.AsyncMethodCallback<getAllPurchases_call> resultHandler) throws org.apache.thrift.TException {
754
    public void getScanForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getScanForOrder_call> resultHandler) throws org.apache.thrift.TException {
603
      checkReady();
755
      checkReady();
604
      getAllPurchases_call method_call = new getAllPurchases_call(purchaseOrderId, open, resultHandler, this, ___protocolFactory, ___transport);
756
      getScanForOrder_call method_call = new getScanForOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
605
      this.___currentMethod = method_call;
757
      this.___currentMethod = method_call;
606
      ___manager.call(method_call);
758
      ___manager.call(method_call);
607
    }
759
    }
608
 
760
 
609
    public static class getAllPurchases_call extends org.apache.thrift.async.TAsyncMethodCall {
761
    public static class getScanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
610
      private long purchaseOrderId;
762
      private long orderId;
611
      private boolean open;
-
 
612
      public getAllPurchases_call(long purchaseOrderId, boolean open, org.apache.thrift.async.AsyncMethodCallback<getAllPurchases_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 {
763
      public getScanForOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getScanForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
613
        super(client, protocolFactory, transport, resultHandler, false);
764
        super(client, protocolFactory, transport, resultHandler, false);
614
        this.purchaseOrderId = purchaseOrderId;
-
 
615
        this.open = open;
765
        this.orderId = orderId;
616
      }
766
      }
617
 
767
 
618
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
619
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPurchases", org.apache.thrift.protocol.TMessageType.CALL, 0));
769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
620
        getAllPurchases_args args = new getAllPurchases_args();
770
        getScanForOrder_args args = new getScanForOrder_args();
621
        args.setPurchaseOrderId(purchaseOrderId);
-
 
622
        args.setOpen(open);
771
        args.setOrderId(orderId);
623
        args.write(prot);
772
        args.write(prot);
624
        prot.writeMessageEnd();
773
        prot.writeMessageEnd();
625
      }
774
      }
626
 
775
 
627
      public List<Purchase> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
776
      public List<Scan> getResult() throws org.apache.thrift.TException {
628
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
777
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
629
          throw new IllegalStateException("Method call not finished!");
778
          throw new IllegalStateException("Method call not finished!");
630
        }
779
        }
631
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
780
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
632
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
781
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
633
        return (new Client(prot)).recv_getAllPurchases();
782
        return (new Client(prot)).recv_getScanForOrder();
634
      }
783
      }
635
    }
784
    }
636
 
785
 
637
    public void scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<scanIn_call> resultHandler) throws org.apache.thrift.TException {
786
    public void getScan(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getScan_call> resultHandler) throws org.apache.thrift.TException {
638
      checkReady();
787
      checkReady();
639
      scanIn_call method_call = new scanIn_call(purchaseId, itemNumber, imeiNumber, type, resultHandler, this, ___protocolFactory, ___transport);
788
      getScan_call method_call = new getScan_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
640
      this.___currentMethod = method_call;
789
      this.___currentMethod = method_call;
641
      ___manager.call(method_call);
790
      ___manager.call(method_call);
642
    }
791
    }
643
 
792
 
644
    public static class scanIn_call extends org.apache.thrift.async.TAsyncMethodCall {
793
    public static class getScan_call extends org.apache.thrift.async.TAsyncMethodCall {
645
      private long purchaseId;
794
      private long inventoryItemId;
646
      private String itemNumber;
795
      public getScan_call(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getScan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
796
        super(client, protocolFactory, transport, resultHandler, false);
-
 
797
        this.inventoryItemId = inventoryItemId;
-
 
798
      }
-
 
799
 
-
 
800
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
801
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScan", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
802
        getScan_args args = new getScan_args();
-
 
803
        args.setInventoryItemId(inventoryItemId);
-
 
804
        args.write(prot);
-
 
805
        prot.writeMessageEnd();
-
 
806
      }
-
 
807
 
-
 
808
      public List<Scan> getResult() throws org.apache.thrift.TException {
-
 
809
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
810
          throw new IllegalStateException("Method call not finished!");
-
 
811
        }
-
 
812
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
813
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
814
        return (new Client(prot)).recv_getScan();
-
 
815
      }
-
 
816
    }
-
 
817
 
-
 
818
    public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
819
      checkReady();
-
 
820
      scanSerializedItem_call method_call = new scanSerializedItem_call(inventoryItemId, type, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
821
      this.___currentMethod = method_call;
-
 
822
      ___manager.call(method_call);
-
 
823
    }
-
 
824
 
-
 
825
    public static class scanSerializedItem_call extends org.apache.thrift.async.TAsyncMethodCall {
647
      private String imeiNumber;
826
      private long inventoryItemId;
648
      private ScanType type;
827
      private ScanType type;
-
 
828
      private long warehouseId;
649
      public scanIn_call(long purchaseId, String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<scanIn_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 {
829
      public scanSerializedItem_call(long inventoryItemId, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
650
        super(client, protocolFactory, transport, resultHandler, false);
830
        super(client, protocolFactory, transport, resultHandler, false);
651
        this.purchaseId = purchaseId;
-
 
652
        this.itemNumber = itemNumber;
-
 
653
        this.imeiNumber = imeiNumber;
831
        this.inventoryItemId = inventoryItemId;
654
        this.type = type;
832
        this.type = type;
-
 
833
        this.warehouseId = warehouseId;
655
      }
834
      }
656
 
835
 
657
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
836
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
658
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
837
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
659
        scanIn_args args = new scanIn_args();
838
        scanSerializedItem_args args = new scanSerializedItem_args();
660
        args.setPurchaseId(purchaseId);
-
 
661
        args.setItemNumber(itemNumber);
-
 
662
        args.setImeiNumber(imeiNumber);
839
        args.setInventoryItemId(inventoryItemId);
663
        args.setType(type);
840
        args.setType(type);
-
 
841
        args.setWarehouseId(warehouseId);
664
        args.write(prot);
842
        args.write(prot);
665
        prot.writeMessageEnd();
843
        prot.writeMessageEnd();
666
      }
844
      }
667
 
845
 
668
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
846
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
669
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
847
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
670
          throw new IllegalStateException("Method call not finished!");
848
          throw new IllegalStateException("Method call not finished!");
671
        }
849
        }
672
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
850
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
673
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
851
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
674
        (new Client(prot)).recv_scanIn();
852
        (new Client(prot)).recv_scanSerializedItem();
675
      }
853
      }
676
    }
854
    }
677
 
855
 
678
    public void scanOut(String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<scanOut_call> resultHandler) throws org.apache.thrift.TException {
856
    public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
679
      checkReady();
857
      checkReady();
680
      scanOut_call method_call = new scanOut_call(itemNumber, imeiNumber, type, resultHandler, this, ___protocolFactory, ___transport);
858
      scan_call method_call = new scan_call(inventoryItemId, type, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
681
      this.___currentMethod = method_call;
859
      this.___currentMethod = method_call;
682
      ___manager.call(method_call);
860
      ___manager.call(method_call);
683
    }
861
    }
684
 
862
 
685
    public static class scanOut_call extends org.apache.thrift.async.TAsyncMethodCall {
863
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
686
      private String itemNumber;
-
 
687
      private String imeiNumber;
864
      private long inventoryItemId;
688
      private ScanType type;
865
      private ScanType type;
-
 
866
      private long quantity;
-
 
867
      private long warehouseId;
689
      public scanOut_call(String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<scanOut_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 {
868
      public scan_call(long inventoryItemId, ScanType type, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
690
        super(client, protocolFactory, transport, resultHandler, false);
869
        super(client, protocolFactory, transport, resultHandler, false);
691
        this.itemNumber = itemNumber;
-
 
692
        this.imeiNumber = imeiNumber;
870
        this.inventoryItemId = inventoryItemId;
693
        this.type = type;
871
        this.type = type;
-
 
872
        this.quantity = quantity;
-
 
873
        this.warehouseId = warehouseId;
694
      }
874
      }
695
 
875
 
696
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
876
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
697
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
877
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
698
        scanOut_args args = new scanOut_args();
878
        scan_args args = new scan_args();
699
        args.setItemNumber(itemNumber);
879
        args.setInventoryItemId(inventoryItemId);
700
        args.setImeiNumber(imeiNumber);
-
 
701
        args.setType(type);
880
        args.setType(type);
-
 
881
        args.setQuantity(quantity);
-
 
882
        args.setWarehouseId(warehouseId);
702
        args.write(prot);
883
        args.write(prot);
703
        prot.writeMessageEnd();
884
        prot.writeMessageEnd();
704
      }
885
      }
705
 
886
 
706
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
887
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
707
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
888
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
708
          throw new IllegalStateException("Method call not finished!");
889
          throw new IllegalStateException("Method call not finished!");
709
        }
890
        }
710
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
891
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
711
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
892
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
712
        (new Client(prot)).recv_scanOut();
893
        (new Client(prot)).recv_scan();
-
 
894
      }
-
 
895
    }
-
 
896
 
-
 
897
    public void scanSerializedItemForOrder(long inventoryItemId, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
898
      checkReady();
-
 
899
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(inventoryItemId, type, orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
900
      this.___currentMethod = method_call;
-
 
901
      ___manager.call(method_call);
-
 
902
    }
-
 
903
 
-
 
904
    public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
905
      private long inventoryItemId;
-
 
906
      private ScanType type;
-
 
907
      private long orderId;
-
 
908
      private long warehouseId;
-
 
909
      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 {
-
 
910
        super(client, protocolFactory, transport, resultHandler, false);
-
 
911
        this.inventoryItemId = inventoryItemId;
-
 
912
        this.type = type;
-
 
913
        this.orderId = orderId;
-
 
914
        this.warehouseId = warehouseId;
-
 
915
      }
-
 
916
 
-
 
917
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
918
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
919
        scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
-
 
920
        args.setInventoryItemId(inventoryItemId);
-
 
921
        args.setType(type);
-
 
922
        args.setOrderId(orderId);
-
 
923
        args.setWarehouseId(warehouseId);
-
 
924
        args.write(prot);
-
 
925
        prot.writeMessageEnd();
-
 
926
      }
-
 
927
 
-
 
928
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
929
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
930
          throw new IllegalStateException("Method call not finished!");
-
 
931
        }
-
 
932
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
933
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
934
        return (new Client(prot)).recv_scanSerializedItemForOrder();
-
 
935
      }
-
 
936
    }
-
 
937
 
-
 
938
    public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
939
      checkReady();
-
 
940
      scanForOrder_call method_call = new scanForOrder_call(inventoryItemId, type, quantity, orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
941
      this.___currentMethod = method_call;
-
 
942
      ___manager.call(method_call);
-
 
943
    }
-
 
944
 
-
 
945
    public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
946
      private long inventoryItemId;
-
 
947
      private ScanType type;
-
 
948
      private long quantity;
-
 
949
      private long orderId;
-
 
950
      private long warehouseId;
-
 
951
      public scanForOrder_call(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
952
        super(client, protocolFactory, transport, resultHandler, false);
-
 
953
        this.inventoryItemId = inventoryItemId;
-
 
954
        this.type = type;
-
 
955
        this.quantity = quantity;
-
 
956
        this.orderId = orderId;
-
 
957
        this.warehouseId = warehouseId;
-
 
958
      }
-
 
959
 
-
 
960
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
961
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
962
        scanForOrder_args args = new scanForOrder_args();
-
 
963
        args.setInventoryItemId(inventoryItemId);
-
 
964
        args.setType(type);
-
 
965
        args.setQuantity(quantity);
-
 
966
        args.setOrderId(orderId);
-
 
967
        args.setWarehouseId(warehouseId);
-
 
968
        args.write(prot);
-
 
969
        prot.writeMessageEnd();
-
 
970
      }
-
 
971
 
-
 
972
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
973
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
974
          throw new IllegalStateException("Method call not finished!");
-
 
975
        }
-
 
976
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
977
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
978
        (new Client(prot)).recv_scanForOrder();
-
 
979
      }
-
 
980
    }
-
 
981
 
-
 
982
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
-
 
983
      checkReady();
-
 
984
      createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
985
      this.___currentMethod = method_call;
-
 
986
      ___manager.call(method_call);
-
 
987
    }
-
 
988
 
-
 
989
    public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
990
      private String itemNumber;
-
 
991
      private long itemId;
-
 
992
      public createItemNumberMapping_call(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_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 {
-
 
993
        super(client, protocolFactory, transport, resultHandler, false);
-
 
994
        this.itemNumber = itemNumber;
-
 
995
        this.itemId = itemId;
-
 
996
      }
-
 
997
 
-
 
998
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
999
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1000
        createItemNumberMapping_args args = new createItemNumberMapping_args();
-
 
1001
        args.setItemNumber(itemNumber);
-
 
1002
        args.setItemId(itemId);
-
 
1003
        args.write(prot);
-
 
1004
        prot.writeMessageEnd();
-
 
1005
      }
-
 
1006
 
-
 
1007
      public void getResult() throws org.apache.thrift.TException {
-
 
1008
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1009
          throw new IllegalStateException("Method call not finished!");
-
 
1010
        }
-
 
1011
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1012
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1013
        (new Client(prot)).recv_createItemNumberMapping();
713
      }
1014
      }
714
    }
1015
    }
715
 
1016
 
716
  }
1017
  }
717
 
1018
 
Line 724... Line 1025...
724
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1025
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
725
      super(iface, getProcessMap(processMap));
1026
      super(iface, getProcessMap(processMap));
726
    }
1027
    }
727
 
1028
 
728
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1029
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
1030
      processMap.put("createSerializedInventoryItem", new createSerializedInventoryItem());
-
 
1031
      processMap.put("createSerializedInventoryItemFromItemNumber", new createSerializedInventoryItemFromItemNumber());
729
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
1032
      processMap.put("createInventoryItem", new createInventoryItem());
730
      processMap.put("getPurchaseOrder", new getPurchaseOrder());
1033
      processMap.put("getInventoryItem", new getInventoryItem());
731
      processMap.put("getAllPurchaseOrders", new getAllPurchaseOrders());
1034
      processMap.put("getNonSeralizedInventoryItems", new getNonSeralizedInventoryItems());
732
      processMap.put("getSupplier", new getSupplier());
1035
      processMap.put("getInventoryItems", new getInventoryItems());
733
      processMap.put("startPurchase", new startPurchase());
1036
      processMap.put("getScanForOrder", new getScanForOrder());
734
      processMap.put("closePurchase", new closePurchase());
1037
      processMap.put("getScan", new getScan());
735
      processMap.put("getAllPurchases", new getAllPurchases());
1038
      processMap.put("scanSerializedItem", new scanSerializedItem());
736
      processMap.put("scanIn", new scanIn());
1039
      processMap.put("scan", new scan());
-
 
1040
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
737
      processMap.put("scanOut", new scanOut());
1041
      processMap.put("scanForOrder", new scanForOrder());
-
 
1042
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
738
      return processMap;
1043
      return processMap;
739
    }
1044
    }
740
 
1045
 
741
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1046
    private static class createSerializedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSerializedInventoryItem_args> {
742
      public createPurchaseOrder() {
1047
      public createSerializedInventoryItem() {
743
        super("createPurchaseOrder");
1048
        super("createSerializedInventoryItem");
744
      }
1049
      }
745
 
1050
 
746
      protected createPurchaseOrder_args getEmptyArgsInstance() {
1051
      protected createSerializedInventoryItem_args getEmptyArgsInstance() {
747
        return new createPurchaseOrder_args();
1052
        return new createSerializedInventoryItem_args();
748
      }
1053
      }
749
 
1054
 
750
      protected createPurchaseOrder_result getResult(I iface, createPurchaseOrder_args args) throws org.apache.thrift.TException {
1055
      protected createSerializedInventoryItem_result getResult(I iface, createSerializedInventoryItem_args args) throws org.apache.thrift.TException {
751
        createPurchaseOrder_result result = new createPurchaseOrder_result();
1056
        createSerializedInventoryItem_result result = new createSerializedInventoryItem_result();
752
        try {
1057
        try {
753
          result.success = iface.createPurchaseOrder(args.purchaseOrder);
1058
          result.success = iface.createSerializedInventoryItem(args.itemId, args.serialNumber, args.purchaseId);
754
          result.setSuccessIsSet(true);
1059
          result.setSuccessIsSet(true);
755
        } catch (WarehouseServiceException wex) {
1060
        } catch (WarehouseServiceException wex) {
756
          result.wex = wex;
1061
          result.wex = wex;
757
        }
1062
        }
758
        return result;
1063
        return result;
759
      }
1064
      }
760
    }
1065
    }
761
 
1066
 
762
    private static class getPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseOrder_args> {
1067
    private static class createSerializedInventoryItemFromItemNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSerializedInventoryItemFromItemNumber_args> {
763
      public getPurchaseOrder() {
1068
      public createSerializedInventoryItemFromItemNumber() {
764
        super("getPurchaseOrder");
1069
        super("createSerializedInventoryItemFromItemNumber");
765
      }
1070
      }
766
 
1071
 
767
      protected getPurchaseOrder_args getEmptyArgsInstance() {
1072
      protected createSerializedInventoryItemFromItemNumber_args getEmptyArgsInstance() {
768
        return new getPurchaseOrder_args();
1073
        return new createSerializedInventoryItemFromItemNumber_args();
769
      }
1074
      }
770
 
1075
 
771
      protected getPurchaseOrder_result getResult(I iface, getPurchaseOrder_args args) throws org.apache.thrift.TException {
1076
      protected createSerializedInventoryItemFromItemNumber_result getResult(I iface, createSerializedInventoryItemFromItemNumber_args args) throws org.apache.thrift.TException {
772
        getPurchaseOrder_result result = new getPurchaseOrder_result();
1077
        createSerializedInventoryItemFromItemNumber_result result = new createSerializedInventoryItemFromItemNumber_result();
773
        try {
1078
        try {
-
 
1079
          result.success = iface.createSerializedInventoryItemFromItemNumber(args.itemNumber, args.serialNumber, args.purchaseId);
774
          result.success = iface.getPurchaseOrder(args.id);
1080
          result.setSuccessIsSet(true);
775
        } catch (WarehouseServiceException wex) {
1081
        } catch (WarehouseServiceException wex) {
776
          result.wex = wex;
1082
          result.wex = wex;
777
        }
1083
        }
778
        return result;
1084
        return result;
779
      }
1085
      }
780
    }
1086
    }
781
 
1087
 
782
    private static class getAllPurchaseOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPurchaseOrders_args> {
1088
    private static class createInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createInventoryItem_args> {
783
      public getAllPurchaseOrders() {
1089
      public createInventoryItem() {
784
        super("getAllPurchaseOrders");
1090
        super("createInventoryItem");
785
      }
1091
      }
786
 
1092
 
787
      protected getAllPurchaseOrders_args getEmptyArgsInstance() {
1093
      protected createInventoryItem_args getEmptyArgsInstance() {
788
        return new getAllPurchaseOrders_args();
1094
        return new createInventoryItem_args();
789
      }
1095
      }
790
 
1096
 
791
      protected getAllPurchaseOrders_result getResult(I iface, getAllPurchaseOrders_args args) throws org.apache.thrift.TException {
1097
      protected createInventoryItem_result getResult(I iface, createInventoryItem_args args) throws org.apache.thrift.TException {
792
        getAllPurchaseOrders_result result = new getAllPurchaseOrders_result();
1098
        createInventoryItem_result result = new createInventoryItem_result();
793
        try {
1099
        try {
794
          result.success = iface.getAllPurchaseOrders(args.status);
1100
          result.success = iface.createInventoryItem(args.itemId, args.quantity, args.purchaseId);
-
 
1101
          result.setSuccessIsSet(true);
795
        } catch (WarehouseServiceException wex) {
1102
        } catch (WarehouseServiceException wex) {
796
          result.wex = wex;
1103
          result.wex = wex;
797
        }
1104
        }
798
        return result;
1105
        return result;
799
      }
1106
      }
800
    }
1107
    }
801
 
1108
 
802
    private static class getSupplier<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSupplier_args> {
1109
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
803
      public getSupplier() {
1110
      public getInventoryItem() {
804
        super("getSupplier");
1111
        super("getInventoryItem");
805
      }
1112
      }
806
 
1113
 
807
      protected getSupplier_args getEmptyArgsInstance() {
1114
      protected getInventoryItem_args getEmptyArgsInstance() {
808
        return new getSupplier_args();
1115
        return new getInventoryItem_args();
809
      }
1116
      }
810
 
1117
 
811
      protected getSupplier_result getResult(I iface, getSupplier_args args) throws org.apache.thrift.TException {
1118
      protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
812
        getSupplier_result result = new getSupplier_result();
1119
        getInventoryItem_result result = new getInventoryItem_result();
813
        try {
-
 
814
          result.success = iface.getSupplier(args.id);
1120
        result.success = iface.getInventoryItem(args.serialNumber);
815
        } catch (WarehouseServiceException wex) {
-
 
816
          result.wex = wex;
-
 
817
        }
-
 
818
        return result;
1121
        return result;
819
      }
1122
      }
820
    }
1123
    }
821
 
1124
 
822
    private static class startPurchase<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startPurchase_args> {
1125
    private static class getNonSeralizedInventoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItems_args> {
823
      public startPurchase() {
1126
      public getNonSeralizedInventoryItems() {
824
        super("startPurchase");
1127
        super("getNonSeralizedInventoryItems");
825
      }
1128
      }
826
 
1129
 
827
      protected startPurchase_args getEmptyArgsInstance() {
1130
      protected getNonSeralizedInventoryItems_args getEmptyArgsInstance() {
828
        return new startPurchase_args();
1131
        return new getNonSeralizedInventoryItems_args();
829
      }
1132
      }
830
 
1133
 
-
 
1134
      protected getNonSeralizedInventoryItems_result getResult(I iface, getNonSeralizedInventoryItems_args args) throws org.apache.thrift.TException {
-
 
1135
        getNonSeralizedInventoryItems_result result = new getNonSeralizedInventoryItems_result();
-
 
1136
        result.success = iface.getNonSeralizedInventoryItems(args.itemId, args.quantity, args.supplierId);
-
 
1137
        return result;
-
 
1138
      }
-
 
1139
    }
-
 
1140
 
-
 
1141
    private static class getInventoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItems_args> {
-
 
1142
      public getInventoryItems() {
-
 
1143
        super("getInventoryItems");
-
 
1144
      }
-
 
1145
 
-
 
1146
      protected getInventoryItems_args getEmptyArgsInstance() {
-
 
1147
        return new getInventoryItems_args();
-
 
1148
      }
-
 
1149
 
831
      protected startPurchase_result getResult(I iface, startPurchase_args args) throws org.apache.thrift.TException {
1150
      protected getInventoryItems_result getResult(I iface, getInventoryItems_args args) throws org.apache.thrift.TException {
832
        startPurchase_result result = new startPurchase_result();
1151
        getInventoryItems_result result = new getInventoryItems_result();
-
 
1152
        result.success = iface.getInventoryItems(args.itemId);
833
        try {
1153
        return result;
-
 
1154
      }
-
 
1155
    }
-
 
1156
 
834
          result.success = iface.startPurchase(args.purchaseOrderId, args.invoiceNumber, args.freightCharges);
1157
    private static class getScanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanForOrder_args> {
-
 
1158
      public getScanForOrder() {
835
          result.setSuccessIsSet(true);
1159
        super("getScanForOrder");
-
 
1160
      }
-
 
1161
 
836
        } catch (WarehouseServiceException wex) {
1162
      protected getScanForOrder_args getEmptyArgsInstance() {
-
 
1163
        return new getScanForOrder_args();
-
 
1164
      }
-
 
1165
 
-
 
1166
      protected getScanForOrder_result getResult(I iface, getScanForOrder_args args) throws org.apache.thrift.TException {
-
 
1167
        getScanForOrder_result result = new getScanForOrder_result();
-
 
1168
        result.success = iface.getScanForOrder(args.orderId);
837
          result.wex = wex;
1169
        return result;
-
 
1170
      }
-
 
1171
    }
-
 
1172
 
-
 
1173
    private static class getScan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScan_args> {
-
 
1174
      public getScan() {
-
 
1175
        super("getScan");
-
 
1176
      }
-
 
1177
 
-
 
1178
      protected getScan_args getEmptyArgsInstance() {
-
 
1179
        return new getScan_args();
838
        }
1180
      }
-
 
1181
 
-
 
1182
      protected getScan_result getResult(I iface, getScan_args args) throws org.apache.thrift.TException {
-
 
1183
        getScan_result result = new getScan_result();
-
 
1184
        result.success = iface.getScan(args.inventoryItemId);
839
        return result;
1185
        return result;
840
      }
1186
      }
841
    }
1187
    }
842
 
1188
 
843
    private static class closePurchase<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closePurchase_args> {
1189
    private static class scanSerializedItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItem_args> {
844
      public closePurchase() {
1190
      public scanSerializedItem() {
845
        super("closePurchase");
1191
        super("scanSerializedItem");
846
      }
1192
      }
847
 
1193
 
848
      protected closePurchase_args getEmptyArgsInstance() {
1194
      protected scanSerializedItem_args getEmptyArgsInstance() {
849
        return new closePurchase_args();
1195
        return new scanSerializedItem_args();
850
      }
1196
      }
851
 
1197
 
852
      protected closePurchase_result getResult(I iface, closePurchase_args args) throws org.apache.thrift.TException {
1198
      protected scanSerializedItem_result getResult(I iface, scanSerializedItem_args args) throws org.apache.thrift.TException {
853
        closePurchase_result result = new closePurchase_result();
1199
        scanSerializedItem_result result = new scanSerializedItem_result();
854
        try {
1200
        try {
855
          result.success = iface.closePurchase(args.purchaseId);
1201
          iface.scanSerializedItem(args.inventoryItemId, args.type, args.warehouseId);
856
          result.setSuccessIsSet(true);
-
 
857
        } catch (WarehouseServiceException wex) {
1202
        } catch (WarehouseServiceException wex) {
858
          result.wex = wex;
1203
          result.wex = wex;
859
        }
1204
        }
860
        return result;
1205
        return result;
861
      }
1206
      }
862
    }
1207
    }
863
 
1208
 
864
    private static class getAllPurchases<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPurchases_args> {
1209
    private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
865
      public getAllPurchases() {
1210
      public scan() {
866
        super("getAllPurchases");
1211
        super("scan");
867
      }
1212
      }
868
 
1213
 
869
      protected getAllPurchases_args getEmptyArgsInstance() {
1214
      protected scan_args getEmptyArgsInstance() {
870
        return new getAllPurchases_args();
1215
        return new scan_args();
871
      }
1216
      }
872
 
1217
 
873
      protected getAllPurchases_result getResult(I iface, getAllPurchases_args args) throws org.apache.thrift.TException {
1218
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
874
        getAllPurchases_result result = new getAllPurchases_result();
1219
        scan_result result = new scan_result();
875
        try {
1220
        try {
876
          result.success = iface.getAllPurchases(args.purchaseOrderId, args.open);
1221
          iface.scan(args.inventoryItemId, args.type, args.quantity, args.warehouseId);
877
        } catch (WarehouseServiceException wex) {
1222
        } catch (WarehouseServiceException wex) {
878
          result.wex = wex;
1223
          result.wex = wex;
879
        }
1224
        }
880
        return result;
1225
        return result;
881
      }
1226
      }
882
    }
1227
    }
883
 
1228
 
884
    private static class scanIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanIn_args> {
1229
    private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
885
      public scanIn() {
1230
      public scanSerializedItemForOrder() {
886
        super("scanIn");
1231
        super("scanSerializedItemForOrder");
887
      }
1232
      }
888
 
1233
 
889
      protected scanIn_args getEmptyArgsInstance() {
1234
      protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
890
        return new scanIn_args();
1235
        return new scanSerializedItemForOrder_args();
891
      }
1236
      }
892
 
1237
 
893
      protected scanIn_result getResult(I iface, scanIn_args args) throws org.apache.thrift.TException {
1238
      protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
894
        scanIn_result result = new scanIn_result();
1239
        scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
895
        try {
1240
        try {
896
          iface.scanIn(args.purchaseId, args.itemNumber, args.imeiNumber, args.type);
1241
          result.success = iface.scanSerializedItemForOrder(args.inventoryItemId, args.type, args.orderId, args.warehouseId);
-
 
1242
          result.setSuccessIsSet(true);
897
        } catch (WarehouseServiceException wex) {
1243
        } catch (WarehouseServiceException wex) {
898
          result.wex = wex;
1244
          result.wex = wex;
899
        }
1245
        }
900
        return result;
1246
        return result;
901
      }
1247
      }
902
    }
1248
    }
903
 
1249
 
904
    private static class scanOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanOut_args> {
1250
    private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
905
      public scanOut() {
1251
      public scanForOrder() {
906
        super("scanOut");
1252
        super("scanForOrder");
907
      }
1253
      }
908
 
1254
 
909
      protected scanOut_args getEmptyArgsInstance() {
1255
      protected scanForOrder_args getEmptyArgsInstance() {
910
        return new scanOut_args();
1256
        return new scanForOrder_args();
911
      }
1257
      }
912
 
1258
 
913
      protected scanOut_result getResult(I iface, scanOut_args args) throws org.apache.thrift.TException {
1259
      protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
914
        scanOut_result result = new scanOut_result();
1260
        scanForOrder_result result = new scanForOrder_result();
915
        try {
1261
        try {
916
          iface.scanOut(args.itemNumber, args.imeiNumber, args.type);
1262
          iface.scanForOrder(args.inventoryItemId, args.type, args.quantity, args.orderId, args.warehouseId);
917
        } catch (WarehouseServiceException wex) {
1263
        } catch (WarehouseServiceException wex) {
918
          result.wex = wex;
1264
          result.wex = wex;
919
        }
1265
        }
920
        return result;
1266
        return result;
921
      }
1267
      }
922
    }
1268
    }
923
 
1269
 
-
 
1270
    private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
-
 
1271
      public createItemNumberMapping() {
-
 
1272
        super("createItemNumberMapping");
-
 
1273
      }
-
 
1274
 
-
 
1275
      protected createItemNumberMapping_args getEmptyArgsInstance() {
-
 
1276
        return new createItemNumberMapping_args();
-
 
1277
      }
-
 
1278
 
-
 
1279
      protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
-
 
1280
        createItemNumberMapping_result result = new createItemNumberMapping_result();
-
 
1281
        iface.createItemNumberMapping(args.itemNumber, args.itemId);
-
 
1282
        return result;
-
 
1283
      }
-
 
1284
    }
-
 
1285
 
924
  }
1286
  }
925
 
1287
 
926
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
1288
  public static class createSerializedInventoryItem_args implements org.apache.thrift.TBase<createSerializedInventoryItem_args, createSerializedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
1289
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_args");
928
 
1290
 
-
 
1291
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
1292
    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)2);
929
    private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrder", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1293
    private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)3);
930
 
1294
 
-
 
1295
    private long itemId; // required
-
 
1296
    private String serialNumber; // required
931
    private PurchaseOrder purchaseOrder; // required
1297
    private long purchaseId; // required
932
 
1298
 
933
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1299
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
934
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1300
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
1301
      ITEM_ID((short)1, "itemId"),
-
 
1302
      SERIAL_NUMBER((short)2, "serialNumber"),
935
      PURCHASE_ORDER((short)1, "purchaseOrder");
1303
      PURCHASE_ID((short)3, "purchaseId");
936
 
1304
 
937
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1305
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
938
 
1306
 
939
      static {
1307
      static {
940
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1308
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 945... Line 1313...
945
      /**
1313
      /**
946
       * Find the _Fields constant that matches fieldId, or null if its not found.
1314
       * Find the _Fields constant that matches fieldId, or null if its not found.
947
       */
1315
       */
948
      public static _Fields findByThriftId(int fieldId) {
1316
      public static _Fields findByThriftId(int fieldId) {
949
        switch(fieldId) {
1317
        switch(fieldId) {
-
 
1318
          case 1: // ITEM_ID
-
 
1319
            return ITEM_ID;
-
 
1320
          case 2: // SERIAL_NUMBER
-
 
1321
            return SERIAL_NUMBER;
950
          case 1: // PURCHASE_ORDER
1322
          case 3: // PURCHASE_ID
951
            return PURCHASE_ORDER;
1323
            return PURCHASE_ID;
952
          default:
1324
          default:
953
            return null;
1325
            return null;
954
        }
1326
        }
955
      }
1327
      }
956
 
1328
 
Line 987... Line 1359...
987
        return _fieldName;
1359
        return _fieldName;
988
      }
1360
      }
989
    }
1361
    }
990
 
1362
 
991
    // isset id assignments
1363
    // isset id assignments
-
 
1364
    private static final int __ITEMID_ISSET_ID = 0;
-
 
1365
    private static final int __PURCHASEID_ISSET_ID = 1;
-
 
1366
    private BitSet __isset_bit_vector = new BitSet(2);
992
 
1367
 
993
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1368
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
994
    static {
1369
    static {
995
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1370
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1371
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1372
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
1373
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1374
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
996
      tmpMap.put(_Fields.PURCHASE_ORDER, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrder", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1375
      tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
997
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseOrder.class)));
1376
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
998
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1377
      metaDataMap = Collections.unmodifiableMap(tmpMap);
999
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_args.class, metaDataMap);
1378
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItem_args.class, metaDataMap);
1000
    }
1379
    }
1001
 
1380
 
1002
    public createPurchaseOrder_args() {
1381
    public createSerializedInventoryItem_args() {
1003
    }
1382
    }
1004
 
1383
 
1005
    public createPurchaseOrder_args(
1384
    public createSerializedInventoryItem_args(
-
 
1385
      long itemId,
-
 
1386
      String serialNumber,
1006
      PurchaseOrder purchaseOrder)
1387
      long purchaseId)
1007
    {
1388
    {
1008
      this();
1389
      this();
-
 
1390
      this.itemId = itemId;
-
 
1391
      setItemIdIsSet(true);
-
 
1392
      this.serialNumber = serialNumber;
1009
      this.purchaseOrder = purchaseOrder;
1393
      this.purchaseId = purchaseId;
-
 
1394
      setPurchaseIdIsSet(true);
1010
    }
1395
    }
1011
 
1396
 
1012
    /**
1397
    /**
1013
     * Performs a deep copy on <i>other</i>.
1398
     * Performs a deep copy on <i>other</i>.
1014
     */
1399
     */
1015
    public createPurchaseOrder_args(createPurchaseOrder_args other) {
1400
    public createSerializedInventoryItem_args(createSerializedInventoryItem_args other) {
-
 
1401
      __isset_bit_vector.clear();
-
 
1402
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
1403
      this.itemId = other.itemId;
1016
      if (other.isSetPurchaseOrder()) {
1404
      if (other.isSetSerialNumber()) {
1017
        this.purchaseOrder = new PurchaseOrder(other.purchaseOrder);
1405
        this.serialNumber = other.serialNumber;
1018
      }
1406
      }
-
 
1407
      this.purchaseId = other.purchaseId;
1019
    }
1408
    }
1020
 
1409
 
1021
    public createPurchaseOrder_args deepCopy() {
1410
    public createSerializedInventoryItem_args deepCopy() {
1022
      return new createPurchaseOrder_args(this);
1411
      return new createSerializedInventoryItem_args(this);
1023
    }
1412
    }
1024
 
1413
 
1025
    @Override
1414
    @Override
1026
    public void clear() {
1415
    public void clear() {
-
 
1416
      setItemIdIsSet(false);
-
 
1417
      this.itemId = 0;
-
 
1418
      this.serialNumber = null;
-
 
1419
      setPurchaseIdIsSet(false);
1027
      this.purchaseOrder = null;
1420
      this.purchaseId = 0;
-
 
1421
    }
-
 
1422
 
-
 
1423
    public long getItemId() {
-
 
1424
      return this.itemId;
-
 
1425
    }
-
 
1426
 
-
 
1427
    public void setItemId(long itemId) {
-
 
1428
      this.itemId = itemId;
-
 
1429
      setItemIdIsSet(true);
-
 
1430
    }
-
 
1431
 
-
 
1432
    public void unsetItemId() {
-
 
1433
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
1028
    }
1434
    }
1029
 
1435
 
-
 
1436
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
1030
    public PurchaseOrder getPurchaseOrder() {
1437
    public boolean isSetItemId() {
1031
      return this.purchaseOrder;
1438
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
1032
    }
1439
    }
1033
 
1440
 
1034
    public void setPurchaseOrder(PurchaseOrder purchaseOrder) {
1441
    public void setItemIdIsSet(boolean value) {
1035
      this.purchaseOrder = purchaseOrder;
1442
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
1036
    }
1443
    }
1037
 
1444
 
1038
    public void unsetPurchaseOrder() {
1445
    public String getSerialNumber() {
1039
      this.purchaseOrder = null;
1446
      return this.serialNumber;
1040
    }
1447
    }
1041
 
1448
 
1042
    /** Returns true if field purchaseOrder is set (has been assigned a value) and false otherwise */
-
 
1043
    public boolean isSetPurchaseOrder() {
1449
    public void setSerialNumber(String serialNumber) {
1044
      return this.purchaseOrder != null;
1450
      this.serialNumber = serialNumber;
1045
    }
1451
    }
1046
 
1452
 
-
 
1453
    public void unsetSerialNumber() {
-
 
1454
      this.serialNumber = null;
-
 
1455
    }
-
 
1456
 
-
 
1457
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
-
 
1458
    public boolean isSetSerialNumber() {
-
 
1459
      return this.serialNumber != null;
-
 
1460
    }
-
 
1461
 
1047
    public void setPurchaseOrderIsSet(boolean value) {
1462
    public void setSerialNumberIsSet(boolean value) {
1048
      if (!value) {
1463
      if (!value) {
1049
        this.purchaseOrder = null;
1464
        this.serialNumber = null;
1050
      }
1465
      }
1051
    }
1466
    }
1052
 
1467
 
-
 
1468
    public long getPurchaseId() {
-
 
1469
      return this.purchaseId;
-
 
1470
    }
-
 
1471
 
-
 
1472
    public void setPurchaseId(long purchaseId) {
-
 
1473
      this.purchaseId = purchaseId;
-
 
1474
      setPurchaseIdIsSet(true);
-
 
1475
    }
-
 
1476
 
-
 
1477
    public void unsetPurchaseId() {
-
 
1478
      __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
-
 
1479
    }
-
 
1480
 
-
 
1481
    /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
-
 
1482
    public boolean isSetPurchaseId() {
-
 
1483
      return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
-
 
1484
    }
-
 
1485
 
-
 
1486
    public void setPurchaseIdIsSet(boolean value) {
-
 
1487
      __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
-
 
1488
    }
-
 
1489
 
1053
    public void setFieldValue(_Fields field, Object value) {
1490
    public void setFieldValue(_Fields field, Object value) {
1054
      switch (field) {
1491
      switch (field) {
-
 
1492
      case ITEM_ID:
-
 
1493
        if (value == null) {
-
 
1494
          unsetItemId();
-
 
1495
        } else {
-
 
1496
          setItemId((Long)value);
-
 
1497
        }
-
 
1498
        break;
-
 
1499
 
-
 
1500
      case SERIAL_NUMBER:
-
 
1501
        if (value == null) {
-
 
1502
          unsetSerialNumber();
-
 
1503
        } else {
-
 
1504
          setSerialNumber((String)value);
-
 
1505
        }
-
 
1506
        break;
-
 
1507
 
1055
      case PURCHASE_ORDER:
1508
      case PURCHASE_ID:
1056
        if (value == null) {
1509
        if (value == null) {
1057
          unsetPurchaseOrder();
1510
          unsetPurchaseId();
1058
        } else {
1511
        } else {
1059
          setPurchaseOrder((PurchaseOrder)value);
1512
          setPurchaseId((Long)value);
1060
        }
1513
        }
1061
        break;
1514
        break;
1062
 
1515
 
1063
      }
1516
      }
1064
    }
1517
    }
1065
 
1518
 
1066
    public Object getFieldValue(_Fields field) {
1519
    public Object getFieldValue(_Fields field) {
1067
      switch (field) {
1520
      switch (field) {
-
 
1521
      case ITEM_ID:
-
 
1522
        return Long.valueOf(getItemId());
-
 
1523
 
-
 
1524
      case SERIAL_NUMBER:
-
 
1525
        return getSerialNumber();
-
 
1526
 
1068
      case PURCHASE_ORDER:
1527
      case PURCHASE_ID:
1069
        return getPurchaseOrder();
1528
        return Long.valueOf(getPurchaseId());
1070
 
1529
 
1071
      }
1530
      }
1072
      throw new IllegalStateException();
1531
      throw new IllegalStateException();
1073
    }
1532
    }
1074
 
1533
 
Line 1077... Line 1536...
1077
      if (field == null) {
1536
      if (field == null) {
1078
        throw new IllegalArgumentException();
1537
        throw new IllegalArgumentException();
1079
      }
1538
      }
1080
 
1539
 
1081
      switch (field) {
1540
      switch (field) {
-
 
1541
      case ITEM_ID:
-
 
1542
        return isSetItemId();
-
 
1543
      case SERIAL_NUMBER:
-
 
1544
        return isSetSerialNumber();
1082
      case PURCHASE_ORDER:
1545
      case PURCHASE_ID:
1083
        return isSetPurchaseOrder();
1546
        return isSetPurchaseId();
1084
      }
1547
      }
1085
      throw new IllegalStateException();
1548
      throw new IllegalStateException();
1086
    }
1549
    }
1087
 
1550
 
1088
    @Override
1551
    @Override
1089
    public boolean equals(Object that) {
1552
    public boolean equals(Object that) {
1090
      if (that == null)
1553
      if (that == null)
1091
        return false;
1554
        return false;
1092
      if (that instanceof createPurchaseOrder_args)
1555
      if (that instanceof createSerializedInventoryItem_args)
1093
        return this.equals((createPurchaseOrder_args)that);
1556
        return this.equals((createSerializedInventoryItem_args)that);
1094
      return false;
1557
      return false;
1095
    }
1558
    }
1096
 
1559
 
1097
    public boolean equals(createPurchaseOrder_args that) {
1560
    public boolean equals(createSerializedInventoryItem_args that) {
1098
      if (that == null)
1561
      if (that == null)
1099
        return false;
1562
        return false;
1100
 
1563
 
-
 
1564
      boolean this_present_itemId = true;
-
 
1565
      boolean that_present_itemId = true;
-
 
1566
      if (this_present_itemId || that_present_itemId) {
-
 
1567
        if (!(this_present_itemId && that_present_itemId))
-
 
1568
          return false;
-
 
1569
        if (this.itemId != that.itemId)
-
 
1570
          return false;
-
 
1571
      }
-
 
1572
 
1101
      boolean this_present_purchaseOrder = true && this.isSetPurchaseOrder();
1573
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
1102
      boolean that_present_purchaseOrder = true && that.isSetPurchaseOrder();
1574
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
-
 
1575
      if (this_present_serialNumber || that_present_serialNumber) {
-
 
1576
        if (!(this_present_serialNumber && that_present_serialNumber))
-
 
1577
          return false;
-
 
1578
        if (!this.serialNumber.equals(that.serialNumber))
-
 
1579
          return false;
-
 
1580
      }
-
 
1581
 
-
 
1582
      boolean this_present_purchaseId = true;
-
 
1583
      boolean that_present_purchaseId = true;
1103
      if (this_present_purchaseOrder || that_present_purchaseOrder) {
1584
      if (this_present_purchaseId || that_present_purchaseId) {
1104
        if (!(this_present_purchaseOrder && that_present_purchaseOrder))
1585
        if (!(this_present_purchaseId && that_present_purchaseId))
1105
          return false;
1586
          return false;
1106
        if (!this.purchaseOrder.equals(that.purchaseOrder))
1587
        if (this.purchaseId != that.purchaseId)
1107
          return false;
1588
          return false;
1108
      }
1589
      }
1109
 
1590
 
1110
      return true;
1591
      return true;
1111
    }
1592
    }
Line 1113... Line 1594...
1113
    @Override
1594
    @Override
1114
    public int hashCode() {
1595
    public int hashCode() {
1115
      return 0;
1596
      return 0;
1116
    }
1597
    }
1117
 
1598
 
1118
    public int compareTo(createPurchaseOrder_args other) {
1599
    public int compareTo(createSerializedInventoryItem_args other) {
1119
      if (!getClass().equals(other.getClass())) {
1600
      if (!getClass().equals(other.getClass())) {
1120
        return getClass().getName().compareTo(other.getClass().getName());
1601
        return getClass().getName().compareTo(other.getClass().getName());
1121
      }
1602
      }
1122
 
1603
 
1123
      int lastComparison = 0;
1604
      int lastComparison = 0;
1124
      createPurchaseOrder_args typedOther = (createPurchaseOrder_args)other;
1605
      createSerializedInventoryItem_args typedOther = (createSerializedInventoryItem_args)other;
1125
 
1606
 
-
 
1607
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
1608
      if (lastComparison != 0) {
-
 
1609
        return lastComparison;
-
 
1610
      }
-
 
1611
      if (isSetItemId()) {
-
 
1612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
1613
        if (lastComparison != 0) {
-
 
1614
          return lastComparison;
-
 
1615
        }
-
 
1616
      }
-
 
1617
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
-
 
1618
      if (lastComparison != 0) {
-
 
1619
        return lastComparison;
-
 
1620
      }
-
 
1621
      if (isSetSerialNumber()) {
-
 
1622
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
-
 
1623
        if (lastComparison != 0) {
-
 
1624
          return lastComparison;
-
 
1625
        }
-
 
1626
      }
1126
      lastComparison = Boolean.valueOf(isSetPurchaseOrder()).compareTo(typedOther.isSetPurchaseOrder());
1627
      lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
1127
      if (lastComparison != 0) {
1628
      if (lastComparison != 0) {
1128
        return lastComparison;
1629
        return lastComparison;
1129
      }
1630
      }
1130
      if (isSetPurchaseOrder()) {
1631
      if (isSetPurchaseId()) {
1131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrder, typedOther.purchaseOrder);
1632
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
1132
        if (lastComparison != 0) {
1633
        if (lastComparison != 0) {
1133
          return lastComparison;
1634
          return lastComparison;
1134
        }
1635
        }
1135
      }
1636
      }
1136
      return 0;
1637
      return 0;
Line 1148... Line 1649...
1148
        field = iprot.readFieldBegin();
1649
        field = iprot.readFieldBegin();
1149
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1650
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1150
          break;
1651
          break;
1151
        }
1652
        }
1152
        switch (field.id) {
1653
        switch (field.id) {
-
 
1654
          case 1: // ITEM_ID
-
 
1655
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1656
              this.itemId = iprot.readI64();
-
 
1657
              setItemIdIsSet(true);
-
 
1658
            } else { 
-
 
1659
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1660
            }
-
 
1661
            break;
-
 
1662
          case 2: // SERIAL_NUMBER
-
 
1663
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1664
              this.serialNumber = iprot.readString();
-
 
1665
            } else { 
-
 
1666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1667
            }
-
 
1668
            break;
1153
          case 1: // PURCHASE_ORDER
1669
          case 3: // PURCHASE_ID
1154
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1670
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1155
              this.purchaseOrder = new PurchaseOrder();
1671
              this.purchaseId = iprot.readI64();
1156
              this.purchaseOrder.read(iprot);
1672
              setPurchaseIdIsSet(true);
1157
            } else { 
1673
            } else { 
1158
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1674
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1159
            }
1675
            }
1160
            break;
1676
            break;
1161
          default:
1677
          default:
Line 1169... Line 1685...
1169
 
1685
 
1170
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1686
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1171
      validate();
1687
      validate();
1172
 
1688
 
1173
      oprot.writeStructBegin(STRUCT_DESC);
1689
      oprot.writeStructBegin(STRUCT_DESC);
-
 
1690
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
1691
      oprot.writeI64(this.itemId);
-
 
1692
      oprot.writeFieldEnd();
1174
      if (this.purchaseOrder != null) {
1693
      if (this.serialNumber != null) {
1175
        oprot.writeFieldBegin(PURCHASE_ORDER_FIELD_DESC);
1694
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
1176
        this.purchaseOrder.write(oprot);
1695
        oprot.writeString(this.serialNumber);
1177
        oprot.writeFieldEnd();
1696
        oprot.writeFieldEnd();
1178
      }
1697
      }
-
 
1698
      oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
-
 
1699
      oprot.writeI64(this.purchaseId);
-
 
1700
      oprot.writeFieldEnd();
1179
      oprot.writeFieldStop();
1701
      oprot.writeFieldStop();
1180
      oprot.writeStructEnd();
1702
      oprot.writeStructEnd();
1181
    }
1703
    }
1182
 
1704
 
1183
    @Override
1705
    @Override
1184
    public String toString() {
1706
    public String toString() {
1185
      StringBuilder sb = new StringBuilder("createPurchaseOrder_args(");
1707
      StringBuilder sb = new StringBuilder("createSerializedInventoryItem_args(");
1186
      boolean first = true;
1708
      boolean first = true;
1187
 
1709
 
-
 
1710
      sb.append("itemId:");
-
 
1711
      sb.append(this.itemId);
-
 
1712
      first = false;
-
 
1713
      if (!first) sb.append(", ");
1188
      sb.append("purchaseOrder:");
1714
      sb.append("serialNumber:");
1189
      if (this.purchaseOrder == null) {
1715
      if (this.serialNumber == null) {
1190
        sb.append("null");
1716
        sb.append("null");
1191
      } else {
1717
      } else {
1192
        sb.append(this.purchaseOrder);
1718
        sb.append(this.serialNumber);
1193
      }
1719
      }
1194
      first = false;
1720
      first = false;
-
 
1721
      if (!first) sb.append(", ");
-
 
1722
      sb.append("purchaseId:");
-
 
1723
      sb.append(this.purchaseId);
-
 
1724
      first = false;
1195
      sb.append(")");
1725
      sb.append(")");
1196
      return sb.toString();
1726
      return sb.toString();
1197
    }
1727
    }
1198
 
1728
 
1199
    public void validate() throws org.apache.thrift.TException {
1729
    public void validate() throws org.apache.thrift.TException {
Line 1208... Line 1738...
1208
      }
1738
      }
1209
    }
1739
    }
1210
 
1740
 
1211
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1741
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1212
      try {
1742
      try {
-
 
1743
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1744
        __isset_bit_vector = new BitSet(1);
1213
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1745
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1214
      } catch (org.apache.thrift.TException te) {
1746
      } catch (org.apache.thrift.TException te) {
1215
        throw new java.io.IOException(te);
1747
        throw new java.io.IOException(te);
1216
      }
1748
      }
1217
    }
1749
    }
1218
 
1750
 
1219
  }
1751
  }
1220
 
1752
 
1221
  public static class createPurchaseOrder_result implements org.apache.thrift.TBase<createPurchaseOrder_result, createPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
1753
  public static class createSerializedInventoryItem_result implements org.apache.thrift.TBase<createSerializedInventoryItem_result, createSerializedInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
1222
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_result");
1754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_result");
1223
 
1755
 
1224
    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);
1756
    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);
1225
    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);
1757
    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);
1226
 
1758
 
1227
    private long success; // required
1759
    private long success; // required
Line 1298... Line 1830...
1298
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1830
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1831
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1300
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1832
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1301
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1833
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1302
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1834
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1303
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_result.class, metaDataMap);
1835
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItem_result.class, metaDataMap);
1304
    }
1836
    }
1305
 
1837
 
1306
    public createPurchaseOrder_result() {
1838
    public createSerializedInventoryItem_result() {
1307
    }
1839
    }
1308
 
1840
 
1309
    public createPurchaseOrder_result(
1841
    public createSerializedInventoryItem_result(
1310
      long success,
1842
      long success,
1311
      WarehouseServiceException wex)
1843
      WarehouseServiceException wex)
1312
    {
1844
    {
1313
      this();
1845
      this();
1314
      this.success = success;
1846
      this.success = success;
Line 1317... Line 1849...
1317
    }
1849
    }
1318
 
1850
 
1319
    /**
1851
    /**
1320
     * Performs a deep copy on <i>other</i>.
1852
     * Performs a deep copy on <i>other</i>.
1321
     */
1853
     */
1322
    public createPurchaseOrder_result(createPurchaseOrder_result other) {
1854
    public createSerializedInventoryItem_result(createSerializedInventoryItem_result other) {
1323
      __isset_bit_vector.clear();
1855
      __isset_bit_vector.clear();
1324
      __isset_bit_vector.or(other.__isset_bit_vector);
1856
      __isset_bit_vector.or(other.__isset_bit_vector);
1325
      this.success = other.success;
1857
      this.success = other.success;
1326
      if (other.isSetWex()) {
1858
      if (other.isSetWex()) {
1327
        this.wex = new WarehouseServiceException(other.wex);
1859
        this.wex = new WarehouseServiceException(other.wex);
1328
      }
1860
      }
1329
    }
1861
    }
1330
 
1862
 
1331
    public createPurchaseOrder_result deepCopy() {
1863
    public createSerializedInventoryItem_result deepCopy() {
1332
      return new createPurchaseOrder_result(this);
1864
      return new createSerializedInventoryItem_result(this);
1333
    }
1865
    }
1334
 
1866
 
1335
    @Override
1867
    @Override
1336
    public void clear() {
1868
    public void clear() {
1337
      setSuccessIsSet(false);
1869
      setSuccessIsSet(false);
Line 1434... Line 1966...
1434
 
1966
 
1435
    @Override
1967
    @Override
1436
    public boolean equals(Object that) {
1968
    public boolean equals(Object that) {
1437
      if (that == null)
1969
      if (that == null)
1438
        return false;
1970
        return false;
1439
      if (that instanceof createPurchaseOrder_result)
1971
      if (that instanceof createSerializedInventoryItem_result)
1440
        return this.equals((createPurchaseOrder_result)that);
1972
        return this.equals((createSerializedInventoryItem_result)that);
1441
      return false;
1973
      return false;
1442
    }
1974
    }
1443
 
1975
 
1444
    public boolean equals(createPurchaseOrder_result that) {
1976
    public boolean equals(createSerializedInventoryItem_result that) {
1445
      if (that == null)
1977
      if (that == null)
1446
        return false;
1978
        return false;
1447
 
1979
 
1448
      boolean this_present_success = true;
1980
      boolean this_present_success = true;
1449
      boolean that_present_success = true;
1981
      boolean that_present_success = true;
Line 1469... Line 2001...
1469
    @Override
2001
    @Override
1470
    public int hashCode() {
2002
    public int hashCode() {
1471
      return 0;
2003
      return 0;
1472
    }
2004
    }
1473
 
2005
 
1474
    public int compareTo(createPurchaseOrder_result other) {
2006
    public int compareTo(createSerializedInventoryItem_result other) {
1475
      if (!getClass().equals(other.getClass())) {
2007
      if (!getClass().equals(other.getClass())) {
1476
        return getClass().getName().compareTo(other.getClass().getName());
2008
        return getClass().getName().compareTo(other.getClass().getName());
1477
      }
2009
      }
1478
 
2010
 
1479
      int lastComparison = 0;
2011
      int lastComparison = 0;
1480
      createPurchaseOrder_result typedOther = (createPurchaseOrder_result)other;
2012
      createSerializedInventoryItem_result typedOther = (createSerializedInventoryItem_result)other;
1481
 
2013
 
1482
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2014
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1483
      if (lastComparison != 0) {
2015
      if (lastComparison != 0) {
1484
        return lastComparison;
2016
        return lastComparison;
1485
      }
2017
      }
Line 1557... Line 2089...
1557
      oprot.writeStructEnd();
2089
      oprot.writeStructEnd();
1558
    }
2090
    }
1559
 
2091
 
1560
    @Override
2092
    @Override
1561
    public String toString() {
2093
    public String toString() {
1562
      StringBuilder sb = new StringBuilder("createPurchaseOrder_result(");
2094
      StringBuilder sb = new StringBuilder("createSerializedInventoryItem_result(");
1563
      boolean first = true;
2095
      boolean first = true;
1564
 
2096
 
1565
      sb.append("success:");
2097
      sb.append("success:");
1566
      sb.append(this.success);
2098
      sb.append(this.success);
1567
      first = false;
2099
      first = false;
Line 1597... Line 2129...
1597
      }
2129
      }
1598
    }
2130
    }
1599
 
2131
 
1600
  }
2132
  }
1601
 
2133
 
1602
  public static class getPurchaseOrder_args implements org.apache.thrift.TBase<getPurchaseOrder_args, getPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
2134
  public static class createSerializedInventoryItemFromItemNumber_args implements org.apache.thrift.TBase<createSerializedInventoryItemFromItemNumber_args, createSerializedInventoryItemFromItemNumber_args._Fields>, java.io.Serializable, Cloneable   {
1603
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseOrder_args");
2135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItemFromItemNumber_args");
1604
 
2136
 
-
 
2137
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
2138
    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)2);
1605
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
2139
    private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)3);
1606
 
2140
 
-
 
2141
    private String itemNumber; // required
-
 
2142
    private String serialNumber; // required
1607
    private long id; // required
2143
    private long purchaseId; // required
1608
 
2144
 
1609
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1610
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
2147
      ITEM_NUMBER((short)1, "itemNumber"),
-
 
2148
      SERIAL_NUMBER((short)2, "serialNumber"),
1611
      ID((short)1, "id");
2149
      PURCHASE_ID((short)3, "purchaseId");
1612
 
2150
 
1613
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2151
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1614
 
2152
 
1615
      static {
2153
      static {
1616
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2154
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 1621... Line 2159...
1621
      /**
2159
      /**
1622
       * Find the _Fields constant that matches fieldId, or null if its not found.
2160
       * Find the _Fields constant that matches fieldId, or null if its not found.
1623
       */
2161
       */
1624
      public static _Fields findByThriftId(int fieldId) {
2162
      public static _Fields findByThriftId(int fieldId) {
1625
        switch(fieldId) {
2163
        switch(fieldId) {
1626
          case 1: // ID
2164
          case 1: // ITEM_NUMBER
-
 
2165
            return ITEM_NUMBER;
-
 
2166
          case 2: // SERIAL_NUMBER
-
 
2167
            return SERIAL_NUMBER;
-
 
2168
          case 3: // PURCHASE_ID
1627
            return ID;
2169
            return PURCHASE_ID;
1628
          default:
2170
          default:
1629
            return null;
2171
            return null;
1630
        }
2172
        }
1631
      }
2173
      }
1632
 
2174
 
Line 1663... Line 2205...
1663
        return _fieldName;
2205
        return _fieldName;
1664
      }
2206
      }
1665
    }
2207
    }
1666
 
2208
 
1667
    // isset id assignments
2209
    // isset id assignments
1668
    private static final int __ID_ISSET_ID = 0;
2210
    private static final int __PURCHASEID_ISSET_ID = 0;
1669
    private BitSet __isset_bit_vector = new BitSet(1);
2211
    private BitSet __isset_bit_vector = new BitSet(1);
1670
 
2212
 
1671
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1672
    static {
2214
    static {
1673
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2216
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
2218
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1674
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2220
      tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1675
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2221
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1676
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2222
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1677
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseOrder_args.class, metaDataMap);
2223
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItemFromItemNumber_args.class, metaDataMap);
1678
    }
2224
    }
1679
 
2225
 
1680
    public getPurchaseOrder_args() {
2226
    public createSerializedInventoryItemFromItemNumber_args() {
1681
    }
2227
    }
1682
 
2228
 
1683
    public getPurchaseOrder_args(
2229
    public createSerializedInventoryItemFromItemNumber_args(
-
 
2230
      String itemNumber,
-
 
2231
      String serialNumber,
1684
      long id)
2232
      long purchaseId)
1685
    {
2233
    {
1686
      this();
2234
      this();
-
 
2235
      this.itemNumber = itemNumber;
-
 
2236
      this.serialNumber = serialNumber;
1687
      this.id = id;
2237
      this.purchaseId = purchaseId;
1688
      setIdIsSet(true);
2238
      setPurchaseIdIsSet(true);
1689
    }
2239
    }
1690
 
2240
 
1691
    /**
2241
    /**
1692
     * Performs a deep copy on <i>other</i>.
2242
     * Performs a deep copy on <i>other</i>.
1693
     */
2243
     */
1694
    public getPurchaseOrder_args(getPurchaseOrder_args other) {
2244
    public createSerializedInventoryItemFromItemNumber_args(createSerializedInventoryItemFromItemNumber_args other) {
1695
      __isset_bit_vector.clear();
2245
      __isset_bit_vector.clear();
1696
      __isset_bit_vector.or(other.__isset_bit_vector);
2246
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
2247
      if (other.isSetItemNumber()) {
-
 
2248
        this.itemNumber = other.itemNumber;
-
 
2249
      }
-
 
2250
      if (other.isSetSerialNumber()) {
-
 
2251
        this.serialNumber = other.serialNumber;
-
 
2252
      }
1697
      this.id = other.id;
2253
      this.purchaseId = other.purchaseId;
1698
    }
2254
    }
1699
 
2255
 
1700
    public getPurchaseOrder_args deepCopy() {
2256
    public createSerializedInventoryItemFromItemNumber_args deepCopy() {
1701
      return new getPurchaseOrder_args(this);
2257
      return new createSerializedInventoryItemFromItemNumber_args(this);
1702
    }
2258
    }
1703
 
2259
 
1704
    @Override
2260
    @Override
1705
    public void clear() {
2261
    public void clear() {
-
 
2262
      this.itemNumber = null;
-
 
2263
      this.serialNumber = null;
1706
      setIdIsSet(false);
2264
      setPurchaseIdIsSet(false);
1707
      this.id = 0;
2265
      this.purchaseId = 0;
1708
    }
2266
    }
1709
 
2267
 
1710
    public long getId() {
2268
    public String getItemNumber() {
1711
      return this.id;
2269
      return this.itemNumber;
1712
    }
2270
    }
1713
 
2271
 
1714
    public void setId(long id) {
2272
    public void setItemNumber(String itemNumber) {
1715
      this.id = id;
2273
      this.itemNumber = itemNumber;
1716
      setIdIsSet(true);
-
 
1717
    }
2274
    }
1718
 
2275
 
1719
    public void unsetId() {
2276
    public void unsetItemNumber() {
1720
      __isset_bit_vector.clear(__ID_ISSET_ID);
2277
      this.itemNumber = null;
1721
    }
2278
    }
1722
 
2279
 
1723
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
2280
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
1724
    public boolean isSetId() {
2281
    public boolean isSetItemNumber() {
1725
      return __isset_bit_vector.get(__ID_ISSET_ID);
2282
      return this.itemNumber != null;
1726
    }
2283
    }
1727
 
2284
 
-
 
2285
    public void setItemNumberIsSet(boolean value) {
-
 
2286
      if (!value) {
-
 
2287
        this.itemNumber = null;
-
 
2288
      }
-
 
2289
    }
-
 
2290
 
-
 
2291
    public String getSerialNumber() {
-
 
2292
      return this.serialNumber;
-
 
2293
    }
-
 
2294
 
-
 
2295
    public void setSerialNumber(String serialNumber) {
-
 
2296
      this.serialNumber = serialNumber;
-
 
2297
    }
-
 
2298
 
-
 
2299
    public void unsetSerialNumber() {
-
 
2300
      this.serialNumber = null;
-
 
2301
    }
-
 
2302
 
-
 
2303
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
-
 
2304
    public boolean isSetSerialNumber() {
-
 
2305
      return this.serialNumber != null;
-
 
2306
    }
-
 
2307
 
-
 
2308
    public void setSerialNumberIsSet(boolean value) {
-
 
2309
      if (!value) {
-
 
2310
        this.serialNumber = null;
-
 
2311
      }
-
 
2312
    }
-
 
2313
 
-
 
2314
    public long getPurchaseId() {
-
 
2315
      return this.purchaseId;
-
 
2316
    }
-
 
2317
 
-
 
2318
    public void setPurchaseId(long purchaseId) {
-
 
2319
      this.purchaseId = purchaseId;
-
 
2320
      setPurchaseIdIsSet(true);
-
 
2321
    }
-
 
2322
 
-
 
2323
    public void unsetPurchaseId() {
-
 
2324
      __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
-
 
2325
    }
-
 
2326
 
-
 
2327
    /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
-
 
2328
    public boolean isSetPurchaseId() {
-
 
2329
      return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
-
 
2330
    }
-
 
2331
 
1728
    public void setIdIsSet(boolean value) {
2332
    public void setPurchaseIdIsSet(boolean value) {
1729
      __isset_bit_vector.set(__ID_ISSET_ID, value);
2333
      __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
1730
    }
2334
    }
1731
 
2335
 
1732
    public void setFieldValue(_Fields field, Object value) {
2336
    public void setFieldValue(_Fields field, Object value) {
1733
      switch (field) {
2337
      switch (field) {
-
 
2338
      case ITEM_NUMBER:
-
 
2339
        if (value == null) {
-
 
2340
          unsetItemNumber();
-
 
2341
        } else {
-
 
2342
          setItemNumber((String)value);
-
 
2343
        }
-
 
2344
        break;
-
 
2345
 
-
 
2346
      case SERIAL_NUMBER:
-
 
2347
        if (value == null) {
-
 
2348
          unsetSerialNumber();
-
 
2349
        } else {
-
 
2350
          setSerialNumber((String)value);
-
 
2351
        }
-
 
2352
        break;
-
 
2353
 
1734
      case ID:
2354
      case PURCHASE_ID:
1735
        if (value == null) {
2355
        if (value == null) {
1736
          unsetId();
2356
          unsetPurchaseId();
1737
        } else {
2357
        } else {
1738
          setId((Long)value);
2358
          setPurchaseId((Long)value);
1739
        }
2359
        }
1740
        break;
2360
        break;
1741
 
2361
 
1742
      }
2362
      }
1743
    }
2363
    }
1744
 
2364
 
1745
    public Object getFieldValue(_Fields field) {
2365
    public Object getFieldValue(_Fields field) {
1746
      switch (field) {
2366
      switch (field) {
-
 
2367
      case ITEM_NUMBER:
-
 
2368
        return getItemNumber();
-
 
2369
 
-
 
2370
      case SERIAL_NUMBER:
-
 
2371
        return getSerialNumber();
-
 
2372
 
1747
      case ID:
2373
      case PURCHASE_ID:
1748
        return Long.valueOf(getId());
2374
        return Long.valueOf(getPurchaseId());
1749
 
2375
 
1750
      }
2376
      }
1751
      throw new IllegalStateException();
2377
      throw new IllegalStateException();
1752
    }
2378
    }
1753
 
2379
 
Line 1756... Line 2382...
1756
      if (field == null) {
2382
      if (field == null) {
1757
        throw new IllegalArgumentException();
2383
        throw new IllegalArgumentException();
1758
      }
2384
      }
1759
 
2385
 
1760
      switch (field) {
2386
      switch (field) {
-
 
2387
      case ITEM_NUMBER:
-
 
2388
        return isSetItemNumber();
-
 
2389
      case SERIAL_NUMBER:
-
 
2390
        return isSetSerialNumber();
1761
      case ID:
2391
      case PURCHASE_ID:
1762
        return isSetId();
2392
        return isSetPurchaseId();
1763
      }
2393
      }
1764
      throw new IllegalStateException();
2394
      throw new IllegalStateException();
1765
    }
2395
    }
1766
 
2396
 
1767
    @Override
2397
    @Override
1768
    public boolean equals(Object that) {
2398
    public boolean equals(Object that) {
1769
      if (that == null)
2399
      if (that == null)
1770
        return false;
2400
        return false;
1771
      if (that instanceof getPurchaseOrder_args)
2401
      if (that instanceof createSerializedInventoryItemFromItemNumber_args)
1772
        return this.equals((getPurchaseOrder_args)that);
2402
        return this.equals((createSerializedInventoryItemFromItemNumber_args)that);
1773
      return false;
2403
      return false;
1774
    }
2404
    }
1775
 
2405
 
1776
    public boolean equals(getPurchaseOrder_args that) {
2406
    public boolean equals(createSerializedInventoryItemFromItemNumber_args that) {
1777
      if (that == null)
2407
      if (that == null)
1778
        return false;
2408
        return false;
1779
 
2409
 
-
 
2410
      boolean this_present_itemNumber = true && this.isSetItemNumber();
-
 
2411
      boolean that_present_itemNumber = true && that.isSetItemNumber();
-
 
2412
      if (this_present_itemNumber || that_present_itemNumber) {
-
 
2413
        if (!(this_present_itemNumber && that_present_itemNumber))
-
 
2414
          return false;
-
 
2415
        if (!this.itemNumber.equals(that.itemNumber))
-
 
2416
          return false;
-
 
2417
      }
-
 
2418
 
-
 
2419
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
-
 
2420
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
-
 
2421
      if (this_present_serialNumber || that_present_serialNumber) {
-
 
2422
        if (!(this_present_serialNumber && that_present_serialNumber))
-
 
2423
          return false;
-
 
2424
        if (!this.serialNumber.equals(that.serialNumber))
-
 
2425
          return false;
-
 
2426
      }
-
 
2427
 
1780
      boolean this_present_id = true;
2428
      boolean this_present_purchaseId = true;
1781
      boolean that_present_id = true;
2429
      boolean that_present_purchaseId = true;
1782
      if (this_present_id || that_present_id) {
2430
      if (this_present_purchaseId || that_present_purchaseId) {
1783
        if (!(this_present_id && that_present_id))
2431
        if (!(this_present_purchaseId && that_present_purchaseId))
1784
          return false;
2432
          return false;
1785
        if (this.id != that.id)
2433
        if (this.purchaseId != that.purchaseId)
1786
          return false;
2434
          return false;
1787
      }
2435
      }
1788
 
2436
 
1789
      return true;
2437
      return true;
1790
    }
2438
    }
Line 1792... Line 2440...
1792
    @Override
2440
    @Override
1793
    public int hashCode() {
2441
    public int hashCode() {
1794
      return 0;
2442
      return 0;
1795
    }
2443
    }
1796
 
2444
 
1797
    public int compareTo(getPurchaseOrder_args other) {
2445
    public int compareTo(createSerializedInventoryItemFromItemNumber_args other) {
1798
      if (!getClass().equals(other.getClass())) {
2446
      if (!getClass().equals(other.getClass())) {
1799
        return getClass().getName().compareTo(other.getClass().getName());
2447
        return getClass().getName().compareTo(other.getClass().getName());
1800
      }
2448
      }
1801
 
2449
 
1802
      int lastComparison = 0;
2450
      int lastComparison = 0;
1803
      getPurchaseOrder_args typedOther = (getPurchaseOrder_args)other;
2451
      createSerializedInventoryItemFromItemNumber_args typedOther = (createSerializedInventoryItemFromItemNumber_args)other;
1804
 
2452
 
1805
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
2453
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
-
 
2454
      if (lastComparison != 0) {
-
 
2455
        return lastComparison;
-
 
2456
      }
-
 
2457
      if (isSetItemNumber()) {
-
 
2458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
-
 
2459
        if (lastComparison != 0) {
-
 
2460
          return lastComparison;
-
 
2461
        }
-
 
2462
      }
-
 
2463
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
1806
      if (lastComparison != 0) {
2464
      if (lastComparison != 0) {
1807
        return lastComparison;
2465
        return lastComparison;
1808
      }
2466
      }
-
 
2467
      if (isSetSerialNumber()) {
-
 
2468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
-
 
2469
        if (lastComparison != 0) {
-
 
2470
          return lastComparison;
-
 
2471
        }
-
 
2472
      }
-
 
2473
      lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
-
 
2474
      if (lastComparison != 0) {
-
 
2475
        return lastComparison;
-
 
2476
      }
1809
      if (isSetId()) {
2477
      if (isSetPurchaseId()) {
1810
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
2478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
1811
        if (lastComparison != 0) {
2479
        if (lastComparison != 0) {
1812
          return lastComparison;
2480
          return lastComparison;
1813
        }
2481
        }
1814
      }
2482
      }
1815
      return 0;
2483
      return 0;
Line 1827... Line 2495...
1827
        field = iprot.readFieldBegin();
2495
        field = iprot.readFieldBegin();
1828
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1829
          break;
2497
          break;
1830
        }
2498
        }
1831
        switch (field.id) {
2499
        switch (field.id) {
1832
          case 1: // ID
2500
          case 1: // ITEM_NUMBER
-
 
2501
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
2502
              this.itemNumber = iprot.readString();
-
 
2503
            } else { 
-
 
2504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2505
            }
-
 
2506
            break;
-
 
2507
          case 2: // SERIAL_NUMBER
-
 
2508
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
2509
              this.serialNumber = iprot.readString();
-
 
2510
            } else { 
-
 
2511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2512
            }
-
 
2513
            break;
-
 
2514
          case 3: // PURCHASE_ID
1833
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2515
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1834
              this.id = iprot.readI64();
2516
              this.purchaseId = iprot.readI64();
1835
              setIdIsSet(true);
2517
              setPurchaseIdIsSet(true);
1836
            } else { 
2518
            } else { 
1837
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1838
            }
2520
            }
1839
            break;
2521
            break;
1840
          default:
2522
          default:
Line 1848... Line 2530...
1848
 
2530
 
1849
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2531
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1850
      validate();
2532
      validate();
1851
 
2533
 
1852
      oprot.writeStructBegin(STRUCT_DESC);
2534
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2535
      if (this.itemNumber != null) {
-
 
2536
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
-
 
2537
        oprot.writeString(this.itemNumber);
-
 
2538
        oprot.writeFieldEnd();
-
 
2539
      }
-
 
2540
      if (this.serialNumber != null) {
-
 
2541
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
-
 
2542
        oprot.writeString(this.serialNumber);
-
 
2543
        oprot.writeFieldEnd();
-
 
2544
      }
1853
      oprot.writeFieldBegin(ID_FIELD_DESC);
2545
      oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
1854
      oprot.writeI64(this.id);
2546
      oprot.writeI64(this.purchaseId);
1855
      oprot.writeFieldEnd();
2547
      oprot.writeFieldEnd();
1856
      oprot.writeFieldStop();
2548
      oprot.writeFieldStop();
1857
      oprot.writeStructEnd();
2549
      oprot.writeStructEnd();
1858
    }
2550
    }
1859
 
2551
 
1860
    @Override
2552
    @Override
1861
    public String toString() {
2553
    public String toString() {
1862
      StringBuilder sb = new StringBuilder("getPurchaseOrder_args(");
2554
      StringBuilder sb = new StringBuilder("createSerializedInventoryItemFromItemNumber_args(");
1863
      boolean first = true;
2555
      boolean first = true;
1864
 
2556
 
-
 
2557
      sb.append("itemNumber:");
-
 
2558
      if (this.itemNumber == null) {
1865
      sb.append("id:");
2559
        sb.append("null");
-
 
2560
      } else {
-
 
2561
        sb.append(this.itemNumber);
-
 
2562
      }
-
 
2563
      first = false;
-
 
2564
      if (!first) sb.append(", ");
-
 
2565
      sb.append("serialNumber:");
-
 
2566
      if (this.serialNumber == null) {
-
 
2567
        sb.append("null");
-
 
2568
      } else {
-
 
2569
        sb.append(this.serialNumber);
-
 
2570
      }
-
 
2571
      first = false;
-
 
2572
      if (!first) sb.append(", ");
-
 
2573
      sb.append("purchaseId:");
1866
      sb.append(this.id);
2574
      sb.append(this.purchaseId);
1867
      first = false;
2575
      first = false;
1868
      sb.append(")");
2576
      sb.append(")");
1869
      return sb.toString();
2577
      return sb.toString();
1870
    }
2578
    }
1871
 
2579
 
Line 1881... Line 2589...
1881
      }
2589
      }
1882
    }
2590
    }
1883
 
2591
 
1884
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2592
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1885
      try {
2593
      try {
-
 
2594
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
2595
        __isset_bit_vector = new BitSet(1);
1886
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1887
      } catch (org.apache.thrift.TException te) {
2597
      } catch (org.apache.thrift.TException te) {
1888
        throw new java.io.IOException(te);
2598
        throw new java.io.IOException(te);
1889
      }
2599
      }
1890
    }
2600
    }
1891
 
2601
 
1892
  }
2602
  }
1893
 
2603
 
1894
  public static class getPurchaseOrder_result implements org.apache.thrift.TBase<getPurchaseOrder_result, getPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
2604
  public static class createSerializedInventoryItemFromItemNumber_result implements org.apache.thrift.TBase<createSerializedInventoryItemFromItemNumber_result, createSerializedInventoryItemFromItemNumber_result._Fields>, java.io.Serializable, Cloneable   {
1895
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseOrder_result");
2605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItemFromItemNumber_result");
1896
 
2606
 
1897
    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);
2607
    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);
1898
    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);
2608
    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);
1899
 
2609
 
1900
    private PurchaseOrder success; // required
2610
    private long success; // required
1901
    private WarehouseServiceException wex; // required
2611
    private WarehouseServiceException wex; // required
1902
 
2612
 
1903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1904
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1905
      SUCCESS((short)0, "success"),
2615
      SUCCESS((short)0, "success"),
Line 1960... Line 2670...
1960
        return _fieldName;
2670
        return _fieldName;
1961
      }
2671
      }
1962
    }
2672
    }
1963
 
2673
 
1964
    // isset id assignments
2674
    // isset id assignments
-
 
2675
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
2676
    private BitSet __isset_bit_vector = new BitSet(1);
1965
 
2677
 
1966
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1967
    static {
2679
    static {
1968
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1969
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2681
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1970
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseOrder.class)));
2682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1971
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2683
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2685
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseOrder_result.class, metaDataMap);
2686
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItemFromItemNumber_result.class, metaDataMap);
1975
    }
2687
    }
1976
 
2688
 
1977
    public getPurchaseOrder_result() {
2689
    public createSerializedInventoryItemFromItemNumber_result() {
1978
    }
2690
    }
1979
 
2691
 
1980
    public getPurchaseOrder_result(
2692
    public createSerializedInventoryItemFromItemNumber_result(
1981
      PurchaseOrder success,
2693
      long success,
1982
      WarehouseServiceException wex)
2694
      WarehouseServiceException wex)
1983
    {
2695
    {
1984
      this();
2696
      this();
1985
      this.success = success;
2697
      this.success = success;
-
 
2698
      setSuccessIsSet(true);
1986
      this.wex = wex;
2699
      this.wex = wex;
1987
    }
2700
    }
1988
 
2701
 
1989
    /**
2702
    /**
1990
     * Performs a deep copy on <i>other</i>.
2703
     * Performs a deep copy on <i>other</i>.
1991
     */
2704
     */
1992
    public getPurchaseOrder_result(getPurchaseOrder_result other) {
2705
    public createSerializedInventoryItemFromItemNumber_result(createSerializedInventoryItemFromItemNumber_result other) {
1993
      if (other.isSetSuccess()) {
2706
      __isset_bit_vector.clear();
1994
        this.success = new PurchaseOrder(other.success);
2707
      __isset_bit_vector.or(other.__isset_bit_vector);
1995
      }
2708
      this.success = other.success;
1996
      if (other.isSetWex()) {
2709
      if (other.isSetWex()) {
1997
        this.wex = new WarehouseServiceException(other.wex);
2710
        this.wex = new WarehouseServiceException(other.wex);
1998
      }
2711
      }
1999
    }
2712
    }
2000
 
2713
 
2001
    public getPurchaseOrder_result deepCopy() {
2714
    public createSerializedInventoryItemFromItemNumber_result deepCopy() {
2002
      return new getPurchaseOrder_result(this);
2715
      return new createSerializedInventoryItemFromItemNumber_result(this);
2003
    }
2716
    }
2004
 
2717
 
2005
    @Override
2718
    @Override
2006
    public void clear() {
2719
    public void clear() {
-
 
2720
      setSuccessIsSet(false);
2007
      this.success = null;
2721
      this.success = 0;
2008
      this.wex = null;
2722
      this.wex = null;
2009
    }
2723
    }
2010
 
2724
 
2011
    public PurchaseOrder getSuccess() {
2725
    public long getSuccess() {
2012
      return this.success;
2726
      return this.success;
2013
    }
2727
    }
2014
 
2728
 
2015
    public void setSuccess(PurchaseOrder success) {
2729
    public void setSuccess(long success) {
2016
      this.success = success;
2730
      this.success = success;
-
 
2731
      setSuccessIsSet(true);
2017
    }
2732
    }
2018
 
2733
 
2019
    public void unsetSuccess() {
2734
    public void unsetSuccess() {
2020
      this.success = null;
2735
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2021
    }
2736
    }
2022
 
2737
 
2023
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2738
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024
    public boolean isSetSuccess() {
2739
    public boolean isSetSuccess() {
2025
      return this.success != null;
2740
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2026
    }
2741
    }
2027
 
2742
 
2028
    public void setSuccessIsSet(boolean value) {
2743
    public void setSuccessIsSet(boolean value) {
2029
      if (!value) {
-
 
2030
        this.success = null;
2744
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2031
      }
-
 
2032
    }
2745
    }
2033
 
2746
 
2034
    public WarehouseServiceException getWex() {
2747
    public WarehouseServiceException getWex() {
2035
      return this.wex;
2748
      return this.wex;
2036
    }
2749
    }
Line 2058... Line 2771...
2058
      switch (field) {
2771
      switch (field) {
2059
      case SUCCESS:
2772
      case SUCCESS:
2060
        if (value == null) {
2773
        if (value == null) {
2061
          unsetSuccess();
2774
          unsetSuccess();
2062
        } else {
2775
        } else {
2063
          setSuccess((PurchaseOrder)value);
2776
          setSuccess((Long)value);
2064
        }
2777
        }
2065
        break;
2778
        break;
2066
 
2779
 
2067
      case WEX:
2780
      case WEX:
2068
        if (value == null) {
2781
        if (value == null) {
Line 2076... Line 2789...
2076
    }
2789
    }
2077
 
2790
 
2078
    public Object getFieldValue(_Fields field) {
2791
    public Object getFieldValue(_Fields field) {
2079
      switch (field) {
2792
      switch (field) {
2080
      case SUCCESS:
2793
      case SUCCESS:
2081
        return getSuccess();
2794
        return Long.valueOf(getSuccess());
2082
 
2795
 
2083
      case WEX:
2796
      case WEX:
2084
        return getWex();
2797
        return getWex();
2085
 
2798
 
2086
      }
2799
      }
Line 2104... Line 2817...
2104
 
2817
 
2105
    @Override
2818
    @Override
2106
    public boolean equals(Object that) {
2819
    public boolean equals(Object that) {
2107
      if (that == null)
2820
      if (that == null)
2108
        return false;
2821
        return false;
2109
      if (that instanceof getPurchaseOrder_result)
2822
      if (that instanceof createSerializedInventoryItemFromItemNumber_result)
2110
        return this.equals((getPurchaseOrder_result)that);
2823
        return this.equals((createSerializedInventoryItemFromItemNumber_result)that);
2111
      return false;
2824
      return false;
2112
    }
2825
    }
2113
 
2826
 
2114
    public boolean equals(getPurchaseOrder_result that) {
2827
    public boolean equals(createSerializedInventoryItemFromItemNumber_result that) {
2115
      if (that == null)
2828
      if (that == null)
2116
        return false;
2829
        return false;
2117
 
2830
 
2118
      boolean this_present_success = true && this.isSetSuccess();
2831
      boolean this_present_success = true;
2119
      boolean that_present_success = true && that.isSetSuccess();
2832
      boolean that_present_success = true;
2120
      if (this_present_success || that_present_success) {
2833
      if (this_present_success || that_present_success) {
2121
        if (!(this_present_success && that_present_success))
2834
        if (!(this_present_success && that_present_success))
2122
          return false;
2835
          return false;
2123
        if (!this.success.equals(that.success))
2836
        if (this.success != that.success)
2124
          return false;
2837
          return false;
2125
      }
2838
      }
2126
 
2839
 
2127
      boolean this_present_wex = true && this.isSetWex();
2840
      boolean this_present_wex = true && this.isSetWex();
2128
      boolean that_present_wex = true && that.isSetWex();
2841
      boolean that_present_wex = true && that.isSetWex();
Line 2139... Line 2852...
2139
    @Override
2852
    @Override
2140
    public int hashCode() {
2853
    public int hashCode() {
2141
      return 0;
2854
      return 0;
2142
    }
2855
    }
2143
 
2856
 
2144
    public int compareTo(getPurchaseOrder_result other) {
2857
    public int compareTo(createSerializedInventoryItemFromItemNumber_result other) {
2145
      if (!getClass().equals(other.getClass())) {
2858
      if (!getClass().equals(other.getClass())) {
2146
        return getClass().getName().compareTo(other.getClass().getName());
2859
        return getClass().getName().compareTo(other.getClass().getName());
2147
      }
2860
      }
2148
 
2861
 
2149
      int lastComparison = 0;
2862
      int lastComparison = 0;
2150
      getPurchaseOrder_result typedOther = (getPurchaseOrder_result)other;
2863
      createSerializedInventoryItemFromItemNumber_result typedOther = (createSerializedInventoryItemFromItemNumber_result)other;
2151
 
2864
 
2152
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2865
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2153
      if (lastComparison != 0) {
2866
      if (lastComparison != 0) {
2154
        return lastComparison;
2867
        return lastComparison;
2155
      }
2868
      }
Line 2185... Line 2898...
2185
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2898
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2186
          break;
2899
          break;
2187
        }
2900
        }
2188
        switch (field.id) {
2901
        switch (field.id) {
2189
          case 0: // SUCCESS
2902
          case 0: // SUCCESS
2190
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2903
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2191
              this.success = new PurchaseOrder();
2904
              this.success = iprot.readI64();
2192
              this.success.read(iprot);
2905
              setSuccessIsSet(true);
2193
            } else { 
2906
            } else { 
2194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2195
            }
2908
            }
2196
            break;
2909
            break;
2197
          case 1: // WEX
2910
          case 1: // WEX
Line 2214... Line 2927...
2214
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2927
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2215
      oprot.writeStructBegin(STRUCT_DESC);
2928
      oprot.writeStructBegin(STRUCT_DESC);
2216
 
2929
 
2217
      if (this.isSetSuccess()) {
2930
      if (this.isSetSuccess()) {
2218
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2931
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2219
        this.success.write(oprot);
2932
        oprot.writeI64(this.success);
2220
        oprot.writeFieldEnd();
2933
        oprot.writeFieldEnd();
2221
      } else if (this.isSetWex()) {
2934
      } else if (this.isSetWex()) {
2222
        oprot.writeFieldBegin(WEX_FIELD_DESC);
2935
        oprot.writeFieldBegin(WEX_FIELD_DESC);
2223
        this.wex.write(oprot);
2936
        this.wex.write(oprot);
2224
        oprot.writeFieldEnd();
2937
        oprot.writeFieldEnd();
Line 2227... Line 2940...
2227
      oprot.writeStructEnd();
2940
      oprot.writeStructEnd();
2228
    }
2941
    }
2229
 
2942
 
2230
    @Override
2943
    @Override
2231
    public String toString() {
2944
    public String toString() {
2232
      StringBuilder sb = new StringBuilder("getPurchaseOrder_result(");
2945
      StringBuilder sb = new StringBuilder("createSerializedInventoryItemFromItemNumber_result(");
2233
      boolean first = true;
2946
      boolean first = true;
2234
 
2947
 
2235
      sb.append("success:");
2948
      sb.append("success:");
2236
      if (this.success == null) {
-
 
2237
        sb.append("null");
-
 
2238
      } else {
-
 
2239
        sb.append(this.success);
2949
      sb.append(this.success);
2240
      }
-
 
2241
      first = false;
2950
      first = false;
2242
      if (!first) sb.append(", ");
2951
      if (!first) sb.append(", ");
2243
      sb.append("wex:");
2952
      sb.append("wex:");
2244
      if (this.wex == null) {
2953
      if (this.wex == null) {
2245
        sb.append("null");
2954
        sb.append("null");
Line 2271... Line 2980...
2271
      }
2980
      }
2272
    }
2981
    }
2273
 
2982
 
2274
  }
2983
  }
2275
 
2984
 
2276
  public static class getAllPurchaseOrders_args implements org.apache.thrift.TBase<getAllPurchaseOrders_args, getAllPurchaseOrders_args._Fields>, java.io.Serializable, Cloneable   {
2985
  public static class createInventoryItem_args implements org.apache.thrift.TBase<createInventoryItem_args, createInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
2277
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPurchaseOrders_args");
2986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInventoryItem_args");
2278
 
2987
 
2279
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)1);
2988
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
2989
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
2990
    private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)3);
2280
 
2991
 
-
 
2992
    private long itemId; // required
2281
    private POStatus status; // required
2993
    private long quantity; // required
-
 
2994
    private long purchaseId; // required
2282
 
2995
 
2283
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2996
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2284
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2997
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2285
      /**
-
 
2286
       * 
2998
      ITEM_ID((short)1, "itemId"),
2287
       * @see POStatus
2999
      QUANTITY((short)2, "quantity"),
2288
       */
-
 
2289
      STATUS((short)1, "status");
3000
      PURCHASE_ID((short)3, "purchaseId");
2290
 
3001
 
2291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2292
 
3003
 
2293
      static {
3004
      static {
2294
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 2299... Line 3010...
2299
      /**
3010
      /**
2300
       * Find the _Fields constant that matches fieldId, or null if its not found.
3011
       * Find the _Fields constant that matches fieldId, or null if its not found.
2301
       */
3012
       */
2302
      public static _Fields findByThriftId(int fieldId) {
3013
      public static _Fields findByThriftId(int fieldId) {
2303
        switch(fieldId) {
3014
        switch(fieldId) {
2304
          case 1: // STATUS
3015
          case 1: // ITEM_ID
-
 
3016
            return ITEM_ID;
-
 
3017
          case 2: // QUANTITY
2305
            return STATUS;
3018
            return QUANTITY;
-
 
3019
          case 3: // PURCHASE_ID
-
 
3020
            return PURCHASE_ID;
2306
          default:
3021
          default:
2307
            return null;
3022
            return null;
2308
        }
3023
        }
2309
      }
3024
      }
2310
 
3025
 
Line 2341... Line 3056...
2341
        return _fieldName;
3056
        return _fieldName;
2342
      }
3057
      }
2343
    }
3058
    }
2344
 
3059
 
2345
    // isset id assignments
3060
    // isset id assignments
-
 
3061
    private static final int __ITEMID_ISSET_ID = 0;
-
 
3062
    private static final int __QUANTITY_ISSET_ID = 1;
-
 
3063
    private static final int __PURCHASEID_ISSET_ID = 2;
-
 
3064
    private BitSet __isset_bit_vector = new BitSet(3);
2346
 
3065
 
2347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3066
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2348
    static {
3067
    static {
2349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3068
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2350
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3069
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3070
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3071
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3073
      tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2351
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, POStatus.class)));
3074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPurchaseOrders_args.class, metaDataMap);
3076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createInventoryItem_args.class, metaDataMap);
2354
    }
3077
    }
2355
 
3078
 
2356
    public getAllPurchaseOrders_args() {
3079
    public createInventoryItem_args() {
2357
    }
3080
    }
2358
 
3081
 
2359
    public getAllPurchaseOrders_args(
3082
    public createInventoryItem_args(
-
 
3083
      long itemId,
2360
      POStatus status)
3084
      long quantity,
-
 
3085
      long purchaseId)
2361
    {
3086
    {
2362
      this();
3087
      this();
2363
      this.status = status;
3088
      this.itemId = itemId;
-
 
3089
      setItemIdIsSet(true);
-
 
3090
      this.quantity = quantity;
-
 
3091
      setQuantityIsSet(true);
-
 
3092
      this.purchaseId = purchaseId;
-
 
3093
      setPurchaseIdIsSet(true);
2364
    }
3094
    }
2365
 
3095
 
2366
    /**
3096
    /**
2367
     * Performs a deep copy on <i>other</i>.
3097
     * Performs a deep copy on <i>other</i>.
2368
     */
3098
     */
2369
    public getAllPurchaseOrders_args(getAllPurchaseOrders_args other) {
3099
    public createInventoryItem_args(createInventoryItem_args other) {
2370
      if (other.isSetStatus()) {
3100
      __isset_bit_vector.clear();
-
 
3101
      __isset_bit_vector.or(other.__isset_bit_vector);
2371
        this.status = other.status;
3102
      this.itemId = other.itemId;
2372
      }
3103
      this.quantity = other.quantity;
-
 
3104
      this.purchaseId = other.purchaseId;
2373
    }
3105
    }
2374
 
3106
 
2375
    public getAllPurchaseOrders_args deepCopy() {
3107
    public createInventoryItem_args deepCopy() {
2376
      return new getAllPurchaseOrders_args(this);
3108
      return new createInventoryItem_args(this);
2377
    }
3109
    }
2378
 
3110
 
2379
    @Override
3111
    @Override
2380
    public void clear() {
3112
    public void clear() {
-
 
3113
      setItemIdIsSet(false);
2381
      this.status = null;
3114
      this.itemId = 0;
-
 
3115
      setQuantityIsSet(false);
-
 
3116
      this.quantity = 0;
-
 
3117
      setPurchaseIdIsSet(false);
-
 
3118
      this.purchaseId = 0;
2382
    }
3119
    }
2383
 
3120
 
2384
    /**
-
 
2385
     * 
-
 
2386
     * @see POStatus
-
 
2387
     */
-
 
2388
    public POStatus getStatus() {
3121
    public long getItemId() {
2389
      return this.status;
3122
      return this.itemId;
2390
    }
3123
    }
2391
 
3124
 
2392
    /**
-
 
2393
     * 
-
 
2394
     * @see POStatus
-
 
2395
     */
-
 
2396
    public void setStatus(POStatus status) {
3125
    public void setItemId(long itemId) {
2397
      this.status = status;
3126
      this.itemId = itemId;
-
 
3127
      setItemIdIsSet(true);
2398
    }
3128
    }
2399
 
3129
 
2400
    public void unsetStatus() {
3130
    public void unsetItemId() {
2401
      this.status = null;
3131
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2402
    }
3132
    }
2403
 
3133
 
2404
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
3134
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2405
    public boolean isSetStatus() {
3135
    public boolean isSetItemId() {
2406
      return this.status != null;
3136
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2407
    }
3137
    }
2408
 
3138
 
2409
    public void setStatusIsSet(boolean value) {
3139
    public void setItemIdIsSet(boolean value) {
-
 
3140
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
3141
    }
-
 
3142
 
-
 
3143
    public long getQuantity() {
2410
      if (!value) {
3144
      return this.quantity;
-
 
3145
    }
-
 
3146
 
-
 
3147
    public void setQuantity(long quantity) {
2411
        this.status = null;
3148
      this.quantity = quantity;
-
 
3149
      setQuantityIsSet(true);
-
 
3150
    }
-
 
3151
 
-
 
3152
    public void unsetQuantity() {
-
 
3153
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
3154
    }
-
 
3155
 
-
 
3156
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
3157
    public boolean isSetQuantity() {
-
 
3158
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
3159
    }
-
 
3160
 
-
 
3161
    public void setQuantityIsSet(boolean value) {
-
 
3162
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
3163
    }
-
 
3164
 
-
 
3165
    public long getPurchaseId() {
-
 
3166
      return this.purchaseId;
-
 
3167
    }
-
 
3168
 
-
 
3169
    public void setPurchaseId(long purchaseId) {
-
 
3170
      this.purchaseId = purchaseId;
-
 
3171
      setPurchaseIdIsSet(true);
-
 
3172
    }
-
 
3173
 
-
 
3174
    public void unsetPurchaseId() {
-
 
3175
      __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
-
 
3176
    }
-
 
3177
 
-
 
3178
    /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
-
 
3179
    public boolean isSetPurchaseId() {
-
 
3180
      return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
2412
      }
3181
    }
-
 
3182
 
-
 
3183
    public void setPurchaseIdIsSet(boolean value) {
-
 
3184
      __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
2413
    }
3185
    }
2414
 
3186
 
2415
    public void setFieldValue(_Fields field, Object value) {
3187
    public void setFieldValue(_Fields field, Object value) {
2416
      switch (field) {
3188
      switch (field) {
-
 
3189
      case ITEM_ID:
-
 
3190
        if (value == null) {
-
 
3191
          unsetItemId();
-
 
3192
        } else {
-
 
3193
          setItemId((Long)value);
-
 
3194
        }
-
 
3195
        break;
-
 
3196
 
2417
      case STATUS:
3197
      case QUANTITY:
2418
        if (value == null) {
3198
        if (value == null) {
2419
          unsetStatus();
3199
          unsetQuantity();
2420
        } else {
3200
        } else {
2421
          setStatus((POStatus)value);
3201
          setQuantity((Long)value);
-
 
3202
        }
-
 
3203
        break;
-
 
3204
 
-
 
3205
      case PURCHASE_ID:
-
 
3206
        if (value == null) {
-
 
3207
          unsetPurchaseId();
-
 
3208
        } else {
-
 
3209
          setPurchaseId((Long)value);
2422
        }
3210
        }
2423
        break;
3211
        break;
2424
 
3212
 
2425
      }
3213
      }
2426
    }
3214
    }
2427
 
3215
 
2428
    public Object getFieldValue(_Fields field) {
3216
    public Object getFieldValue(_Fields field) {
2429
      switch (field) {
3217
      switch (field) {
2430
      case STATUS:
3218
      case ITEM_ID:
2431
        return getStatus();
3219
        return Long.valueOf(getItemId());
-
 
3220
 
-
 
3221
      case QUANTITY:
-
 
3222
        return Long.valueOf(getQuantity());
-
 
3223
 
-
 
3224
      case PURCHASE_ID:
-
 
3225
        return Long.valueOf(getPurchaseId());
2432
 
3226
 
2433
      }
3227
      }
2434
      throw new IllegalStateException();
3228
      throw new IllegalStateException();
2435
    }
3229
    }
2436
 
3230
 
Line 2439... Line 3233...
2439
      if (field == null) {
3233
      if (field == null) {
2440
        throw new IllegalArgumentException();
3234
        throw new IllegalArgumentException();
2441
      }
3235
      }
2442
 
3236
 
2443
      switch (field) {
3237
      switch (field) {
2444
      case STATUS:
3238
      case ITEM_ID:
2445
        return isSetStatus();
3239
        return isSetItemId();
-
 
3240
      case QUANTITY:
-
 
3241
        return isSetQuantity();
-
 
3242
      case PURCHASE_ID:
-
 
3243
        return isSetPurchaseId();
2446
      }
3244
      }
2447
      throw new IllegalStateException();
3245
      throw new IllegalStateException();
2448
    }
3246
    }
2449
 
3247
 
2450
    @Override
3248
    @Override
2451
    public boolean equals(Object that) {
3249
    public boolean equals(Object that) {
2452
      if (that == null)
3250
      if (that == null)
2453
        return false;
3251
        return false;
2454
      if (that instanceof getAllPurchaseOrders_args)
3252
      if (that instanceof createInventoryItem_args)
2455
        return this.equals((getAllPurchaseOrders_args)that);
3253
        return this.equals((createInventoryItem_args)that);
2456
      return false;
3254
      return false;
2457
    }
3255
    }
2458
 
3256
 
2459
    public boolean equals(getAllPurchaseOrders_args that) {
3257
    public boolean equals(createInventoryItem_args that) {
2460
      if (that == null)
3258
      if (that == null)
2461
        return false;
3259
        return false;
2462
 
3260
 
2463
      boolean this_present_status = true && this.isSetStatus();
3261
      boolean this_present_itemId = true;
2464
      boolean that_present_status = true && that.isSetStatus();
3262
      boolean that_present_itemId = true;
2465
      if (this_present_status || that_present_status) {
3263
      if (this_present_itemId || that_present_itemId) {
2466
        if (!(this_present_status && that_present_status))
3264
        if (!(this_present_itemId && that_present_itemId))
-
 
3265
          return false;
-
 
3266
        if (this.itemId != that.itemId)
-
 
3267
          return false;
-
 
3268
      }
-
 
3269
 
-
 
3270
      boolean this_present_quantity = true;
-
 
3271
      boolean that_present_quantity = true;
-
 
3272
      if (this_present_quantity || that_present_quantity) {
-
 
3273
        if (!(this_present_quantity && that_present_quantity))
-
 
3274
          return false;
-
 
3275
        if (this.quantity != that.quantity)
-
 
3276
          return false;
-
 
3277
      }
-
 
3278
 
-
 
3279
      boolean this_present_purchaseId = true;
-
 
3280
      boolean that_present_purchaseId = true;
-
 
3281
      if (this_present_purchaseId || that_present_purchaseId) {
-
 
3282
        if (!(this_present_purchaseId && that_present_purchaseId))
2467
          return false;
3283
          return false;
2468
        if (!this.status.equals(that.status))
3284
        if (this.purchaseId != that.purchaseId)
2469
          return false;
3285
          return false;
2470
      }
3286
      }
2471
 
3287
 
2472
      return true;
3288
      return true;
2473
    }
3289
    }
Line 2475... Line 3291...
2475
    @Override
3291
    @Override
2476
    public int hashCode() {
3292
    public int hashCode() {
2477
      return 0;
3293
      return 0;
2478
    }
3294
    }
2479
 
3295
 
2480
    public int compareTo(getAllPurchaseOrders_args other) {
3296
    public int compareTo(createInventoryItem_args other) {
2481
      if (!getClass().equals(other.getClass())) {
3297
      if (!getClass().equals(other.getClass())) {
2482
        return getClass().getName().compareTo(other.getClass().getName());
3298
        return getClass().getName().compareTo(other.getClass().getName());
2483
      }
3299
      }
2484
 
3300
 
2485
      int lastComparison = 0;
3301
      int lastComparison = 0;
2486
      getAllPurchaseOrders_args typedOther = (getAllPurchaseOrders_args)other;
3302
      createInventoryItem_args typedOther = (createInventoryItem_args)other;
2487
 
3303
 
2488
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
3304
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
3305
      if (lastComparison != 0) {
-
 
3306
        return lastComparison;
-
 
3307
      }
-
 
3308
      if (isSetItemId()) {
-
 
3309
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
3310
        if (lastComparison != 0) {
-
 
3311
          return lastComparison;
-
 
3312
        }
-
 
3313
      }
-
 
3314
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
2489
      if (lastComparison != 0) {
3315
      if (lastComparison != 0) {
2490
        return lastComparison;
3316
        return lastComparison;
2491
      }
3317
      }
2492
      if (isSetStatus()) {
3318
      if (isSetQuantity()) {
2493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
3319
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
3320
        if (lastComparison != 0) {
-
 
3321
          return lastComparison;
-
 
3322
        }
-
 
3323
      }
-
 
3324
      lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
-
 
3325
      if (lastComparison != 0) {
-
 
3326
        return lastComparison;
-
 
3327
      }
-
 
3328
      if (isSetPurchaseId()) {
-
 
3329
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
2494
        if (lastComparison != 0) {
3330
        if (lastComparison != 0) {
2495
          return lastComparison;
3331
          return lastComparison;
2496
        }
3332
        }
2497
      }
3333
      }
2498
      return 0;
3334
      return 0;
Line 2510... Line 3346...
2510
        field = iprot.readFieldBegin();
3346
        field = iprot.readFieldBegin();
2511
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3347
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2512
          break;
3348
          break;
2513
        }
3349
        }
2514
        switch (field.id) {
3350
        switch (field.id) {
2515
          case 1: // STATUS
3351
          case 1: // ITEM_ID
-
 
3352
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
3353
              this.itemId = iprot.readI64();
-
 
3354
              setItemIdIsSet(true);
-
 
3355
            } else { 
-
 
3356
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3357
            }
-
 
3358
            break;
-
 
3359
          case 2: // QUANTITY
-
 
3360
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
3361
              this.quantity = iprot.readI64();
-
 
3362
              setQuantityIsSet(true);
-
 
3363
            } else { 
-
 
3364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3365
            }
-
 
3366
            break;
-
 
3367
          case 3: // PURCHASE_ID
2516
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3368
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2517
              this.status = POStatus.findByValue(iprot.readI32());
3369
              this.purchaseId = iprot.readI64();
-
 
3370
              setPurchaseIdIsSet(true);
2518
            } else { 
3371
            } else { 
2519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2520
            }
3373
            }
2521
            break;
3374
            break;
2522
          default:
3375
          default:
Line 2530... Line 3383...
2530
 
3383
 
2531
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2532
      validate();
3385
      validate();
2533
 
3386
 
2534
      oprot.writeStructBegin(STRUCT_DESC);
3387
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3388
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
3389
      oprot.writeI64(this.itemId);
2535
      if (this.status != null) {
3390
      oprot.writeFieldEnd();
2536
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
3391
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
2537
        oprot.writeI32(this.status.getValue());
3392
      oprot.writeI64(this.quantity);
2538
        oprot.writeFieldEnd();
3393
      oprot.writeFieldEnd();
-
 
3394
      oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
-
 
3395
      oprot.writeI64(this.purchaseId);
2539
      }
3396
      oprot.writeFieldEnd();
2540
      oprot.writeFieldStop();
3397
      oprot.writeFieldStop();
2541
      oprot.writeStructEnd();
3398
      oprot.writeStructEnd();
2542
    }
3399
    }
2543
 
3400
 
2544
    @Override
3401
    @Override
2545
    public String toString() {
3402
    public String toString() {
2546
      StringBuilder sb = new StringBuilder("getAllPurchaseOrders_args(");
3403
      StringBuilder sb = new StringBuilder("createInventoryItem_args(");
2547
      boolean first = true;
3404
      boolean first = true;
2548
 
3405
 
2549
      sb.append("status:");
3406
      sb.append("itemId:");
-
 
3407
      sb.append(this.itemId);
-
 
3408
      first = false;
2550
      if (this.status == null) {
3409
      if (!first) sb.append(", ");
2551
        sb.append("null");
3410
      sb.append("quantity:");
-
 
3411
      sb.append(this.quantity);
2552
      } else {
3412
      first = false;
-
 
3413
      if (!first) sb.append(", ");
2553
        sb.append(this.status);
3414
      sb.append("purchaseId:");
2554
      }
3415
      sb.append(this.purchaseId);
2555
      first = false;
3416
      first = false;
2556
      sb.append(")");
3417
      sb.append(")");
2557
      return sb.toString();
3418
      return sb.toString();
2558
    }
3419
    }
2559
 
3420
 
Line 2569... Line 3430...
2569
      }
3430
      }
2570
    }
3431
    }
2571
 
3432
 
2572
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3433
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2573
      try {
3434
      try {
-
 
3435
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
3436
        __isset_bit_vector = new BitSet(1);
2574
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2575
      } catch (org.apache.thrift.TException te) {
3438
      } catch (org.apache.thrift.TException te) {
2576
        throw new java.io.IOException(te);
3439
        throw new java.io.IOException(te);
2577
      }
3440
      }
2578
    }
3441
    }
2579
 
3442
 
2580
  }
3443
  }
2581
 
3444
 
2582
  public static class getAllPurchaseOrders_result implements org.apache.thrift.TBase<getAllPurchaseOrders_result, getAllPurchaseOrders_result._Fields>, java.io.Serializable, Cloneable   {
3445
  public static class createInventoryItem_result implements org.apache.thrift.TBase<createInventoryItem_result, createInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
2583
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPurchaseOrders_result");
3446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInventoryItem_result");
2584
 
3447
 
2585
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
3448
    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);
2586
    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);
3449
    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);
2587
 
3450
 
2588
    private List<PurchaseOrder> success; // required
3451
    private long success; // required
2589
    private WarehouseServiceException wex; // required
3452
    private WarehouseServiceException wex; // required
2590
 
3453
 
2591
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3454
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2592
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3455
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2593
      SUCCESS((short)0, "success"),
3456
      SUCCESS((short)0, "success"),
Line 2648... Line 3511...
2648
        return _fieldName;
3511
        return _fieldName;
2649
      }
3512
      }
2650
    }
3513
    }
2651
 
3514
 
2652
    // isset id assignments
3515
    // isset id assignments
-
 
3516
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
3517
    private BitSet __isset_bit_vector = new BitSet(1);
2653
 
3518
 
2654
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3519
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2655
    static {
3520
    static {
2656
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3521
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2657
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3522
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2658
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3523
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2659
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseOrder.class))));
-
 
2660
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3524
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3525
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2662
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3526
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2663
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPurchaseOrders_result.class, metaDataMap);
3527
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createInventoryItem_result.class, metaDataMap);
2664
    }
3528
    }
2665
 
3529
 
2666
    public getAllPurchaseOrders_result() {
3530
    public createInventoryItem_result() {
2667
    }
3531
    }
2668
 
3532
 
2669
    public getAllPurchaseOrders_result(
3533
    public createInventoryItem_result(
2670
      List<PurchaseOrder> success,
3534
      long success,
2671
      WarehouseServiceException wex)
3535
      WarehouseServiceException wex)
2672
    {
3536
    {
2673
      this();
3537
      this();
2674
      this.success = success;
3538
      this.success = success;
-
 
3539
      setSuccessIsSet(true);
2675
      this.wex = wex;
3540
      this.wex = wex;
2676
    }
3541
    }
2677
 
3542
 
2678
    /**
3543
    /**
2679
     * Performs a deep copy on <i>other</i>.
3544
     * Performs a deep copy on <i>other</i>.
2680
     */
3545
     */
2681
    public getAllPurchaseOrders_result(getAllPurchaseOrders_result other) {
3546
    public createInventoryItem_result(createInventoryItem_result other) {
2682
      if (other.isSetSuccess()) {
3547
      __isset_bit_vector.clear();
2683
        List<PurchaseOrder> __this__success = new ArrayList<PurchaseOrder>();
-
 
2684
        for (PurchaseOrder other_element : other.success) {
3548
      __isset_bit_vector.or(other.__isset_bit_vector);
2685
          __this__success.add(new PurchaseOrder(other_element));
-
 
2686
        }
-
 
2687
        this.success = __this__success;
3549
      this.success = other.success;
2688
      }
-
 
2689
      if (other.isSetWex()) {
3550
      if (other.isSetWex()) {
2690
        this.wex = new WarehouseServiceException(other.wex);
3551
        this.wex = new WarehouseServiceException(other.wex);
2691
      }
3552
      }
2692
    }
3553
    }
2693
 
3554
 
2694
    public getAllPurchaseOrders_result deepCopy() {
3555
    public createInventoryItem_result deepCopy() {
2695
      return new getAllPurchaseOrders_result(this);
3556
      return new createInventoryItem_result(this);
2696
    }
3557
    }
2697
 
3558
 
2698
    @Override
3559
    @Override
2699
    public void clear() {
3560
    public void clear() {
-
 
3561
      setSuccessIsSet(false);
2700
      this.success = null;
3562
      this.success = 0;
2701
      this.wex = null;
3563
      this.wex = null;
2702
    }
3564
    }
2703
 
3565
 
2704
    public int getSuccessSize() {
3566
    public long getSuccess() {
2705
      return (this.success == null) ? 0 : this.success.size();
-
 
2706
    }
-
 
2707
 
-
 
2708
    public java.util.Iterator<PurchaseOrder> getSuccessIterator() {
-
 
2709
      return (this.success == null) ? null : this.success.iterator();
-
 
2710
    }
-
 
2711
 
-
 
2712
    public void addToSuccess(PurchaseOrder elem) {
-
 
2713
      if (this.success == null) {
-
 
2714
        this.success = new ArrayList<PurchaseOrder>();
-
 
2715
      }
-
 
2716
      this.success.add(elem);
-
 
2717
    }
-
 
2718
 
-
 
2719
    public List<PurchaseOrder> getSuccess() {
-
 
2720
      return this.success;
3567
      return this.success;
2721
    }
3568
    }
2722
 
3569
 
2723
    public void setSuccess(List<PurchaseOrder> success) {
3570
    public void setSuccess(long success) {
2724
      this.success = success;
3571
      this.success = success;
-
 
3572
      setSuccessIsSet(true);
2725
    }
3573
    }
2726
 
3574
 
2727
    public void unsetSuccess() {
3575
    public void unsetSuccess() {
2728
      this.success = null;
3576
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2729
    }
3577
    }
2730
 
3578
 
2731
    /** 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 */
2732
    public boolean isSetSuccess() {
3580
    public boolean isSetSuccess() {
2733
      return this.success != null;
3581
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2734
    }
3582
    }
2735
 
3583
 
2736
    public void setSuccessIsSet(boolean value) {
3584
    public void setSuccessIsSet(boolean value) {
2737
      if (!value) {
-
 
2738
        this.success = null;
3585
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2739
      }
-
 
2740
    }
3586
    }
2741
 
3587
 
2742
    public WarehouseServiceException getWex() {
3588
    public WarehouseServiceException getWex() {
2743
      return this.wex;
3589
      return this.wex;
2744
    }
3590
    }
Line 2766... Line 3612...
2766
      switch (field) {
3612
      switch (field) {
2767
      case SUCCESS:
3613
      case SUCCESS:
2768
        if (value == null) {
3614
        if (value == null) {
2769
          unsetSuccess();
3615
          unsetSuccess();
2770
        } else {
3616
        } else {
2771
          setSuccess((List<PurchaseOrder>)value);
3617
          setSuccess((Long)value);
2772
        }
3618
        }
2773
        break;
3619
        break;
2774
 
3620
 
2775
      case WEX:
3621
      case WEX:
2776
        if (value == null) {
3622
        if (value == null) {
Line 2784... Line 3630...
2784
    }
3630
    }
2785
 
3631
 
2786
    public Object getFieldValue(_Fields field) {
3632
    public Object getFieldValue(_Fields field) {
2787
      switch (field) {
3633
      switch (field) {
2788
      case SUCCESS:
3634
      case SUCCESS:
2789
        return getSuccess();
3635
        return Long.valueOf(getSuccess());
2790
 
3636
 
2791
      case WEX:
3637
      case WEX:
2792
        return getWex();
3638
        return getWex();
2793
 
3639
 
2794
      }
3640
      }
Line 2812... Line 3658...
2812
 
3658
 
2813
    @Override
3659
    @Override
2814
    public boolean equals(Object that) {
3660
    public boolean equals(Object that) {
2815
      if (that == null)
3661
      if (that == null)
2816
        return false;
3662
        return false;
2817
      if (that instanceof getAllPurchaseOrders_result)
3663
      if (that instanceof createInventoryItem_result)
2818
        return this.equals((getAllPurchaseOrders_result)that);
3664
        return this.equals((createInventoryItem_result)that);
2819
      return false;
3665
      return false;
2820
    }
3666
    }
2821
 
3667
 
2822
    public boolean equals(getAllPurchaseOrders_result that) {
3668
    public boolean equals(createInventoryItem_result that) {
2823
      if (that == null)
3669
      if (that == null)
2824
        return false;
3670
        return false;
2825
 
3671
 
2826
      boolean this_present_success = true && this.isSetSuccess();
3672
      boolean this_present_success = true;
2827
      boolean that_present_success = true && that.isSetSuccess();
3673
      boolean that_present_success = true;
2828
      if (this_present_success || that_present_success) {
3674
      if (this_present_success || that_present_success) {
2829
        if (!(this_present_success && that_present_success))
3675
        if (!(this_present_success && that_present_success))
2830
          return false;
3676
          return false;
2831
        if (!this.success.equals(that.success))
3677
        if (this.success != that.success)
2832
          return false;
3678
          return false;
2833
      }
3679
      }
2834
 
3680
 
2835
      boolean this_present_wex = true && this.isSetWex();
3681
      boolean this_present_wex = true && this.isSetWex();
2836
      boolean that_present_wex = true && that.isSetWex();
3682
      boolean that_present_wex = true && that.isSetWex();
Line 2847... Line 3693...
2847
    @Override
3693
    @Override
2848
    public int hashCode() {
3694
    public int hashCode() {
2849
      return 0;
3695
      return 0;
2850
    }
3696
    }
2851
 
3697
 
2852
    public int compareTo(getAllPurchaseOrders_result other) {
3698
    public int compareTo(createInventoryItem_result other) {
2853
      if (!getClass().equals(other.getClass())) {
3699
      if (!getClass().equals(other.getClass())) {
2854
        return getClass().getName().compareTo(other.getClass().getName());
3700
        return getClass().getName().compareTo(other.getClass().getName());
2855
      }
3701
      }
2856
 
3702
 
2857
      int lastComparison = 0;
3703
      int lastComparison = 0;
2858
      getAllPurchaseOrders_result typedOther = (getAllPurchaseOrders_result)other;
3704
      createInventoryItem_result typedOther = (createInventoryItem_result)other;
2859
 
3705
 
2860
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3706
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2861
      if (lastComparison != 0) {
3707
      if (lastComparison != 0) {
2862
        return lastComparison;
3708
        return lastComparison;
2863
      }
3709
      }
Line 2893... Line 3739...
2893
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3739
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2894
          break;
3740
          break;
2895
        }
3741
        }
2896
        switch (field.id) {
3742
        switch (field.id) {
2897
          case 0: // SUCCESS
3743
          case 0: // SUCCESS
2898
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3744
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2899
              {
-
 
2900
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
-
 
2901
                this.success = new ArrayList<PurchaseOrder>(_list4.size);
-
 
2902
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
-
 
2903
                {
-
 
2904
                  PurchaseOrder _elem6; // required
-
 
2905
                  _elem6 = new PurchaseOrder();
-
 
2906
                  _elem6.read(iprot);
-
 
2907
                  this.success.add(_elem6);
3745
              this.success = iprot.readI64();
2908
                }
-
 
2909
                iprot.readListEnd();
3746
              setSuccessIsSet(true);
2910
              }
-
 
2911
            } else { 
3747
            } else { 
2912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3748
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2913
            }
3749
            }
2914
            break;
3750
            break;
2915
          case 1: // WEX
3751
          case 1: // WEX
Line 2932... Line 3768...
2932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3768
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2933
      oprot.writeStructBegin(STRUCT_DESC);
3769
      oprot.writeStructBegin(STRUCT_DESC);
2934
 
3770
 
2935
      if (this.isSetSuccess()) {
3771
      if (this.isSetSuccess()) {
2936
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3772
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2937
        {
-
 
2938
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
2939
          for (PurchaseOrder _iter7 : this.success)
-
 
2940
          {
-
 
2941
            _iter7.write(oprot);
-
 
2942
          }
-
 
2943
          oprot.writeListEnd();
3773
        oprot.writeI64(this.success);
2944
        }
-
 
2945
        oprot.writeFieldEnd();
3774
        oprot.writeFieldEnd();
2946
      } else if (this.isSetWex()) {
3775
      } else if (this.isSetWex()) {
2947
        oprot.writeFieldBegin(WEX_FIELD_DESC);
3776
        oprot.writeFieldBegin(WEX_FIELD_DESC);
2948
        this.wex.write(oprot);
3777
        this.wex.write(oprot);
2949
        oprot.writeFieldEnd();
3778
        oprot.writeFieldEnd();
Line 2952... Line 3781...
2952
      oprot.writeStructEnd();
3781
      oprot.writeStructEnd();
2953
    }
3782
    }
2954
 
3783
 
2955
    @Override
3784
    @Override
2956
    public String toString() {
3785
    public String toString() {
2957
      StringBuilder sb = new StringBuilder("getAllPurchaseOrders_result(");
3786
      StringBuilder sb = new StringBuilder("createInventoryItem_result(");
2958
      boolean first = true;
3787
      boolean first = true;
2959
 
3788
 
2960
      sb.append("success:");
3789
      sb.append("success:");
2961
      if (this.success == null) {
-
 
2962
        sb.append("null");
-
 
2963
      } else {
-
 
2964
        sb.append(this.success);
3790
      sb.append(this.success);
2965
      }
-
 
2966
      first = false;
3791
      first = false;
2967
      if (!first) sb.append(", ");
3792
      if (!first) sb.append(", ");
2968
      sb.append("wex:");
3793
      sb.append("wex:");
2969
      if (this.wex == null) {
3794
      if (this.wex == null) {
2970
        sb.append("null");
3795
        sb.append("null");
Line 2996... Line 3821...
2996
      }
3821
      }
2997
    }
3822
    }
2998
 
3823
 
2999
  }
3824
  }
3000
 
3825
 
3001
  public static class getSupplier_args implements org.apache.thrift.TBase<getSupplier_args, getSupplier_args._Fields>, java.io.Serializable, Cloneable   {
3826
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
3002
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSupplier_args");
3827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
3003
 
3828
 
3004
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
3829
    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);
3005
 
3830
 
3006
    private long id; // required
3831
    private String serialNumber; // required
3007
 
3832
 
3008
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3833
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3009
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3834
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010
      ID((short)1, "id");
3835
      SERIAL_NUMBER((short)1, "serialNumber");
3011
 
3836
 
3012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3013
 
3838
 
3014
      static {
3839
      static {
3015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 3020... Line 3845...
3020
      /**
3845
      /**
3021
       * Find the _Fields constant that matches fieldId, or null if its not found.
3846
       * Find the _Fields constant that matches fieldId, or null if its not found.
3022
       */
3847
       */
3023
      public static _Fields findByThriftId(int fieldId) {
3848
      public static _Fields findByThriftId(int fieldId) {
3024
        switch(fieldId) {
3849
        switch(fieldId) {
3025
          case 1: // ID
3850
          case 1: // SERIAL_NUMBER
3026
            return ID;
3851
            return SERIAL_NUMBER;
3027
          default:
3852
          default:
3028
            return null;
3853
            return null;
3029
        }
3854
        }
3030
      }
3855
      }
3031
 
3856
 
Line 3062... Line 3887...
3062
        return _fieldName;
3887
        return _fieldName;
3063
      }
3888
      }
3064
    }
3889
    }
3065
 
3890
 
3066
    // isset id assignments
3891
    // isset id assignments
3067
    private static final int __ID_ISSET_ID = 0;
-
 
3068
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
3069
 
3892
 
3070
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3893
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3071
    static {
3894
    static {
3072
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3895
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3073
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3896
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3897
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3898
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSupplier_args.class, metaDataMap);
3899
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
3077
    }
3900
    }
3078
 
3901
 
3079
    public getSupplier_args() {
3902
    public getInventoryItem_args() {
3080
    }
3903
    }
3081
 
3904
 
3082
    public getSupplier_args(
3905
    public getInventoryItem_args(
3083
      long id)
3906
      String serialNumber)
3084
    {
3907
    {
3085
      this();
3908
      this();
3086
      this.id = id;
3909
      this.serialNumber = serialNumber;
3087
      setIdIsSet(true);
-
 
3088
    }
3910
    }
3089
 
3911
 
3090
    /**
3912
    /**
3091
     * Performs a deep copy on <i>other</i>.
3913
     * Performs a deep copy on <i>other</i>.
3092
     */
3914
     */
3093
    public getSupplier_args(getSupplier_args other) {
3915
    public getInventoryItem_args(getInventoryItem_args other) {
3094
      __isset_bit_vector.clear();
3916
      if (other.isSetSerialNumber()) {
3095
      __isset_bit_vector.or(other.__isset_bit_vector);
3917
        this.serialNumber = other.serialNumber;
3096
      this.id = other.id;
3918
      }
3097
    }
3919
    }
3098
 
3920
 
3099
    public getSupplier_args deepCopy() {
3921
    public getInventoryItem_args deepCopy() {
3100
      return new getSupplier_args(this);
3922
      return new getInventoryItem_args(this);
3101
    }
3923
    }
3102
 
3924
 
3103
    @Override
3925
    @Override
3104
    public void clear() {
3926
    public void clear() {
3105
      setIdIsSet(false);
-
 
3106
      this.id = 0;
3927
      this.serialNumber = null;
3107
    }
3928
    }
3108
 
3929
 
3109
    public long getId() {
3930
    public String getSerialNumber() {
3110
      return this.id;
3931
      return this.serialNumber;
3111
    }
3932
    }
3112
 
3933
 
3113
    public void setId(long id) {
3934
    public void setSerialNumber(String serialNumber) {
3114
      this.id = id;
3935
      this.serialNumber = serialNumber;
3115
      setIdIsSet(true);
-
 
3116
    }
3936
    }
3117
 
3937
 
3118
    public void unsetId() {
3938
    public void unsetSerialNumber() {
3119
      __isset_bit_vector.clear(__ID_ISSET_ID);
3939
      this.serialNumber = null;
3120
    }
3940
    }
3121
 
3941
 
3122
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
3942
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
3123
    public boolean isSetId() {
3943
    public boolean isSetSerialNumber() {
3124
      return __isset_bit_vector.get(__ID_ISSET_ID);
3944
      return this.serialNumber != null;
3125
    }
3945
    }
3126
 
3946
 
3127
    public void setIdIsSet(boolean value) {
3947
    public void setSerialNumberIsSet(boolean value) {
-
 
3948
      if (!value) {
3128
      __isset_bit_vector.set(__ID_ISSET_ID, value);
3949
        this.serialNumber = null;
-
 
3950
      }
3129
    }
3951
    }
3130
 
3952
 
3131
    public void setFieldValue(_Fields field, Object value) {
3953
    public void setFieldValue(_Fields field, Object value) {
3132
      switch (field) {
3954
      switch (field) {
3133
      case ID:
3955
      case SERIAL_NUMBER:
3134
        if (value == null) {
3956
        if (value == null) {
3135
          unsetId();
3957
          unsetSerialNumber();
3136
        } else {
3958
        } else {
3137
          setId((Long)value);
3959
          setSerialNumber((String)value);
3138
        }
3960
        }
3139
        break;
3961
        break;
3140
 
3962
 
3141
      }
3963
      }
3142
    }
3964
    }
3143
 
3965
 
3144
    public Object getFieldValue(_Fields field) {
3966
    public Object getFieldValue(_Fields field) {
3145
      switch (field) {
3967
      switch (field) {
3146
      case ID:
3968
      case SERIAL_NUMBER:
3147
        return Long.valueOf(getId());
3969
        return getSerialNumber();
3148
 
3970
 
3149
      }
3971
      }
3150
      throw new IllegalStateException();
3972
      throw new IllegalStateException();
3151
    }
3973
    }
3152
 
3974
 
Line 3155... Line 3977...
3155
      if (field == null) {
3977
      if (field == null) {
3156
        throw new IllegalArgumentException();
3978
        throw new IllegalArgumentException();
3157
      }
3979
      }
3158
 
3980
 
3159
      switch (field) {
3981
      switch (field) {
3160
      case ID:
3982
      case SERIAL_NUMBER:
3161
        return isSetId();
3983
        return isSetSerialNumber();
3162
      }
3984
      }
3163
      throw new IllegalStateException();
3985
      throw new IllegalStateException();
3164
    }
3986
    }
3165
 
3987
 
3166
    @Override
3988
    @Override
3167
    public boolean equals(Object that) {
3989
    public boolean equals(Object that) {
3168
      if (that == null)
3990
      if (that == null)
3169
        return false;
3991
        return false;
3170
      if (that instanceof getSupplier_args)
3992
      if (that instanceof getInventoryItem_args)
3171
        return this.equals((getSupplier_args)that);
3993
        return this.equals((getInventoryItem_args)that);
3172
      return false;
3994
      return false;
3173
    }
3995
    }
3174
 
3996
 
3175
    public boolean equals(getSupplier_args that) {
3997
    public boolean equals(getInventoryItem_args that) {
3176
      if (that == null)
3998
      if (that == null)
3177
        return false;
3999
        return false;
3178
 
4000
 
3179
      boolean this_present_id = true;
4001
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
3180
      boolean that_present_id = true;
4002
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
3181
      if (this_present_id || that_present_id) {
4003
      if (this_present_serialNumber || that_present_serialNumber) {
3182
        if (!(this_present_id && that_present_id))
4004
        if (!(this_present_serialNumber && that_present_serialNumber))
3183
          return false;
4005
          return false;
3184
        if (this.id != that.id)
4006
        if (!this.serialNumber.equals(that.serialNumber))
3185
          return false;
4007
          return false;
3186
      }
4008
      }
3187
 
4009
 
3188
      return true;
4010
      return true;
3189
    }
4011
    }
Line 3191... Line 4013...
3191
    @Override
4013
    @Override
3192
    public int hashCode() {
4014
    public int hashCode() {
3193
      return 0;
4015
      return 0;
3194
    }
4016
    }
3195
 
4017
 
3196
    public int compareTo(getSupplier_args other) {
4018
    public int compareTo(getInventoryItem_args other) {
3197
      if (!getClass().equals(other.getClass())) {
4019
      if (!getClass().equals(other.getClass())) {
3198
        return getClass().getName().compareTo(other.getClass().getName());
4020
        return getClass().getName().compareTo(other.getClass().getName());
3199
      }
4021
      }
3200
 
4022
 
3201
      int lastComparison = 0;
4023
      int lastComparison = 0;
3202
      getSupplier_args typedOther = (getSupplier_args)other;
4024
      getInventoryItem_args typedOther = (getInventoryItem_args)other;
3203
 
4025
 
3204
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
4026
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
3205
      if (lastComparison != 0) {
4027
      if (lastComparison != 0) {
3206
        return lastComparison;
4028
        return lastComparison;
3207
      }
4029
      }
3208
      if (isSetId()) {
4030
      if (isSetSerialNumber()) {
3209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
4031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3210
        if (lastComparison != 0) {
4032
        if (lastComparison != 0) {
3211
          return lastComparison;
4033
          return lastComparison;
3212
        }
4034
        }
3213
      }
4035
      }
3214
      return 0;
4036
      return 0;
Line 3226... Line 4048...
3226
        field = iprot.readFieldBegin();
4048
        field = iprot.readFieldBegin();
3227
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4049
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3228
          break;
4050
          break;
3229
        }
4051
        }
3230
        switch (field.id) {
4052
        switch (field.id) {
3231
          case 1: // ID
4053
          case 1: // SERIAL_NUMBER
3232
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4054
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3233
              this.id = iprot.readI64();
4055
              this.serialNumber = iprot.readString();
3234
              setIdIsSet(true);
-
 
3235
            } else { 
4056
            } else { 
3236
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3237
            }
4058
            }
3238
            break;
4059
            break;
3239
          default:
4060
          default:
Line 3247... Line 4068...
3247
 
4068
 
3248
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4069
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3249
      validate();
4070
      validate();
3250
 
4071
 
3251
      oprot.writeStructBegin(STRUCT_DESC);
4072
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4073
      if (this.serialNumber != null) {
3252
      oprot.writeFieldBegin(ID_FIELD_DESC);
4074
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
3253
      oprot.writeI64(this.id);
4075
        oprot.writeString(this.serialNumber);
3254
      oprot.writeFieldEnd();
4076
        oprot.writeFieldEnd();
-
 
4077
      }
3255
      oprot.writeFieldStop();
4078
      oprot.writeFieldStop();
3256
      oprot.writeStructEnd();
4079
      oprot.writeStructEnd();
3257
    }
4080
    }
3258
 
4081
 
3259
    @Override
4082
    @Override
3260
    public String toString() {
4083
    public String toString() {
3261
      StringBuilder sb = new StringBuilder("getSupplier_args(");
4084
      StringBuilder sb = new StringBuilder("getInventoryItem_args(");
3262
      boolean first = true;
4085
      boolean first = true;
3263
 
4086
 
-
 
4087
      sb.append("serialNumber:");
-
 
4088
      if (this.serialNumber == null) {
3264
      sb.append("id:");
4089
        sb.append("null");
-
 
4090
      } else {
3265
      sb.append(this.id);
4091
        sb.append(this.serialNumber);
-
 
4092
      }
3266
      first = false;
4093
      first = false;
3267
      sb.append(")");
4094
      sb.append(")");
3268
      return sb.toString();
4095
      return sb.toString();
3269
    }
4096
    }
3270
 
4097
 
Line 3280... Line 4107...
3280
      }
4107
      }
3281
    }
4108
    }
3282
 
4109
 
3283
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4110
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3284
      try {
4111
      try {
3285
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
3286
        __isset_bit_vector = new BitSet(1);
-
 
3287
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3288
      } catch (org.apache.thrift.TException te) {
4113
      } catch (org.apache.thrift.TException te) {
3289
        throw new java.io.IOException(te);
4114
        throw new java.io.IOException(te);
3290
      }
4115
      }
3291
    }
4116
    }
3292
 
4117
 
3293
  }
4118
  }
3294
 
4119
 
3295
  public static class getSupplier_result implements org.apache.thrift.TBase<getSupplier_result, getSupplier_result._Fields>, java.io.Serializable, Cloneable   {
4120
  public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
3296
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSupplier_result");
4121
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
3297
 
4122
 
3298
    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);
4123
    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);
3299
    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);
-
 
3300
 
4124
 
3301
    private Supplier success; // required
4125
    private InventoryItem success; // required
3302
    private WarehouseServiceException wex; // required
-
 
3303
 
4126
 
3304
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3305
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3306
      SUCCESS((short)0, "success"),
4129
      SUCCESS((short)0, "success");
3307
      WEX((short)1, "wex");
-
 
3308
 
4130
 
3309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4131
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3310
 
4132
 
3311
      static {
4133
      static {
3312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4134
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 3319... Line 4141...
3319
       */
4141
       */
3320
      public static _Fields findByThriftId(int fieldId) {
4142
      public static _Fields findByThriftId(int fieldId) {
3321
        switch(fieldId) {
4143
        switch(fieldId) {
3322
          case 0: // SUCCESS
4144
          case 0: // SUCCESS
3323
            return SUCCESS;
4145
            return SUCCESS;
3324
          case 1: // WEX
-
 
3325
            return WEX;
-
 
3326
          default:
4146
          default:
3327
            return null;
4147
            return null;
3328
        }
4148
        }
3329
      }
4149
      }
3330
 
4150
 
Line 3366... Line 4186...
3366
 
4186
 
3367
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4187
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3368
    static {
4188
    static {
3369
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4189
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3370
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4190
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3371
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Supplier.class)));
4191
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3372
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
3374
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4192
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3375
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSupplier_result.class, metaDataMap);
4193
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
3376
    }
4194
    }
3377
 
4195
 
3378
    public getSupplier_result() {
4196
    public getInventoryItem_result() {
3379
    }
4197
    }
3380
 
4198
 
3381
    public getSupplier_result(
4199
    public getInventoryItem_result(
3382
      Supplier success,
4200
      InventoryItem success)
3383
      WarehouseServiceException wex)
-
 
3384
    {
4201
    {
3385
      this();
4202
      this();
3386
      this.success = success;
4203
      this.success = success;
3387
      this.wex = wex;
-
 
3388
    }
4204
    }
3389
 
4205
 
3390
    /**
4206
    /**
3391
     * Performs a deep copy on <i>other</i>.
4207
     * Performs a deep copy on <i>other</i>.
3392
     */
4208
     */
3393
    public getSupplier_result(getSupplier_result other) {
4209
    public getInventoryItem_result(getInventoryItem_result other) {
3394
      if (other.isSetSuccess()) {
4210
      if (other.isSetSuccess()) {
3395
        this.success = new Supplier(other.success);
4211
        this.success = new InventoryItem(other.success);
3396
      }
-
 
3397
      if (other.isSetWex()) {
-
 
3398
        this.wex = new WarehouseServiceException(other.wex);
-
 
3399
      }
4212
      }
3400
    }
4213
    }
3401
 
4214
 
3402
    public getSupplier_result deepCopy() {
4215
    public getInventoryItem_result deepCopy() {
3403
      return new getSupplier_result(this);
4216
      return new getInventoryItem_result(this);
3404
    }
4217
    }
3405
 
4218
 
3406
    @Override
4219
    @Override
3407
    public void clear() {
4220
    public void clear() {
3408
      this.success = null;
4221
      this.success = null;
3409
      this.wex = null;
-
 
3410
    }
4222
    }
3411
 
4223
 
3412
    public Supplier getSuccess() {
4224
    public InventoryItem getSuccess() {
3413
      return this.success;
4225
      return this.success;
3414
    }
4226
    }
3415
 
4227
 
3416
    public void setSuccess(Supplier success) {
4228
    public void setSuccess(InventoryItem success) {
3417
      this.success = success;
4229
      this.success = success;
3418
    }
4230
    }
3419
 
4231
 
3420
    public void unsetSuccess() {
4232
    public void unsetSuccess() {
3421
      this.success = null;
4233
      this.success = null;
Line 3430... Line 4242...
3430
      if (!value) {
4242
      if (!value) {
3431
        this.success = null;
4243
        this.success = null;
3432
      }
4244
      }
3433
    }
4245
    }
3434
 
4246
 
3435
    public WarehouseServiceException getWex() {
-
 
3436
      return this.wex;
-
 
3437
    }
-
 
3438
 
-
 
3439
    public void setWex(WarehouseServiceException wex) {
-
 
3440
      this.wex = wex;
-
 
3441
    }
-
 
3442
 
-
 
3443
    public void unsetWex() {
-
 
3444
      this.wex = null;
-
 
3445
    }
-
 
3446
 
-
 
3447
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
3448
    public boolean isSetWex() {
-
 
3449
      return this.wex != null;
-
 
3450
    }
-
 
3451
 
-
 
3452
    public void setWexIsSet(boolean value) {
-
 
3453
      if (!value) {
-
 
3454
        this.wex = null;
-
 
3455
      }
-
 
3456
    }
-
 
3457
 
-
 
3458
    public void setFieldValue(_Fields field, Object value) {
4247
    public void setFieldValue(_Fields field, Object value) {
3459
      switch (field) {
4248
      switch (field) {
3460
      case SUCCESS:
4249
      case SUCCESS:
3461
        if (value == null) {
4250
        if (value == null) {
3462
          unsetSuccess();
4251
          unsetSuccess();
3463
        } else {
4252
        } else {
3464
          setSuccess((Supplier)value);
4253
          setSuccess((InventoryItem)value);
3465
        }
-
 
3466
        break;
-
 
3467
 
-
 
3468
      case WEX:
-
 
3469
        if (value == null) {
-
 
3470
          unsetWex();
-
 
3471
        } else {
-
 
3472
          setWex((WarehouseServiceException)value);
-
 
3473
        }
4254
        }
3474
        break;
4255
        break;
3475
 
4256
 
3476
      }
4257
      }
3477
    }
4258
    }
Line 3479... Line 4260...
3479
    public Object getFieldValue(_Fields field) {
4260
    public Object getFieldValue(_Fields field) {
3480
      switch (field) {
4261
      switch (field) {
3481
      case SUCCESS:
4262
      case SUCCESS:
3482
        return getSuccess();
4263
        return getSuccess();
3483
 
4264
 
3484
      case WEX:
-
 
3485
        return getWex();
-
 
3486
 
-
 
3487
      }
4265
      }
3488
      throw new IllegalStateException();
4266
      throw new IllegalStateException();
3489
    }
4267
    }
3490
 
4268
 
3491
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4269
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 3495... Line 4273...
3495
      }
4273
      }
3496
 
4274
 
3497
      switch (field) {
4275
      switch (field) {
3498
      case SUCCESS:
4276
      case SUCCESS:
3499
        return isSetSuccess();
4277
        return isSetSuccess();
3500
      case WEX:
-
 
3501
        return isSetWex();
-
 
3502
      }
4278
      }
3503
      throw new IllegalStateException();
4279
      throw new IllegalStateException();
3504
    }
4280
    }
3505
 
4281
 
3506
    @Override
4282
    @Override
3507
    public boolean equals(Object that) {
4283
    public boolean equals(Object that) {
3508
      if (that == null)
4284
      if (that == null)
3509
        return false;
4285
        return false;
3510
      if (that instanceof getSupplier_result)
4286
      if (that instanceof getInventoryItem_result)
3511
        return this.equals((getSupplier_result)that);
4287
        return this.equals((getInventoryItem_result)that);
3512
      return false;
4288
      return false;
3513
    }
4289
    }
3514
 
4290
 
3515
    public boolean equals(getSupplier_result that) {
4291
    public boolean equals(getInventoryItem_result that) {
3516
      if (that == null)
4292
      if (that == null)
3517
        return false;
4293
        return false;
3518
 
4294
 
3519
      boolean this_present_success = true && this.isSetSuccess();
4295
      boolean this_present_success = true && this.isSetSuccess();
3520
      boolean that_present_success = true && that.isSetSuccess();
4296
      boolean that_present_success = true && that.isSetSuccess();
Line 3523... Line 4299...
3523
          return false;
4299
          return false;
3524
        if (!this.success.equals(that.success))
4300
        if (!this.success.equals(that.success))
3525
          return false;
4301
          return false;
3526
      }
4302
      }
3527
 
4303
 
3528
      boolean this_present_wex = true && this.isSetWex();
-
 
3529
      boolean that_present_wex = true && that.isSetWex();
-
 
3530
      if (this_present_wex || that_present_wex) {
-
 
3531
        if (!(this_present_wex && that_present_wex))
-
 
3532
          return false;
-
 
3533
        if (!this.wex.equals(that.wex))
-
 
3534
          return false;
-
 
3535
      }
-
 
3536
 
-
 
3537
      return true;
4304
      return true;
3538
    }
4305
    }
3539
 
4306
 
3540
    @Override
4307
    @Override
3541
    public int hashCode() {
4308
    public int hashCode() {
3542
      return 0;
4309
      return 0;
3543
    }
4310
    }
3544
 
4311
 
3545
    public int compareTo(getSupplier_result other) {
4312
    public int compareTo(getInventoryItem_result other) {
3546
      if (!getClass().equals(other.getClass())) {
4313
      if (!getClass().equals(other.getClass())) {
3547
        return getClass().getName().compareTo(other.getClass().getName());
4314
        return getClass().getName().compareTo(other.getClass().getName());
3548
      }
4315
      }
3549
 
4316
 
3550
      int lastComparison = 0;
4317
      int lastComparison = 0;
3551
      getSupplier_result typedOther = (getSupplier_result)other;
4318
      getInventoryItem_result typedOther = (getInventoryItem_result)other;
3552
 
4319
 
3553
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4320
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3554
      if (lastComparison != 0) {
4321
      if (lastComparison != 0) {
3555
        return lastComparison;
4322
        return lastComparison;
3556
      }
4323
      }
Line 3558... Line 4325...
3558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4325
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3559
        if (lastComparison != 0) {
4326
        if (lastComparison != 0) {
3560
          return lastComparison;
4327
          return lastComparison;
3561
        }
4328
        }
3562
      }
4329
      }
3563
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
3564
      if (lastComparison != 0) {
-
 
3565
        return lastComparison;
-
 
3566
      }
-
 
3567
      if (isSetWex()) {
-
 
3568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
3569
        if (lastComparison != 0) {
-
 
3570
          return lastComparison;
-
 
3571
        }
-
 
3572
      }
-
 
3573
      return 0;
4330
      return 0;
3574
    }
4331
    }
3575
 
4332
 
3576
    public _Fields fieldForId(int fieldId) {
4333
    public _Fields fieldForId(int fieldId) {
3577
      return _Fields.findByThriftId(fieldId);
4334
      return _Fields.findByThriftId(fieldId);
Line 3587... Line 4344...
3587
          break;
4344
          break;
3588
        }
4345
        }
3589
        switch (field.id) {
4346
        switch (field.id) {
3590
          case 0: // SUCCESS
4347
          case 0: // SUCCESS
3591
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4348
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3592
              this.success = new Supplier();
4349
              this.success = new InventoryItem();
3593
              this.success.read(iprot);
4350
              this.success.read(iprot);
3594
            } else { 
4351
            } else { 
3595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3596
            }
4353
            }
3597
            break;
4354
            break;
3598
          case 1: // WEX
-
 
3599
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
3600
              this.wex = new WarehouseServiceException();
-
 
3601
              this.wex.read(iprot);
-
 
3602
            } else { 
-
 
3603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3604
            }
-
 
3605
            break;
-
 
3606
          default:
4355
          default:
3607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3608
        }
4357
        }
3609
        iprot.readFieldEnd();
4358
        iprot.readFieldEnd();
3610
      }
4359
      }
Line 3617... Line 4366...
3617
 
4366
 
3618
      if (this.isSetSuccess()) {
4367
      if (this.isSetSuccess()) {
3619
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4368
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3620
        this.success.write(oprot);
4369
        this.success.write(oprot);
3621
        oprot.writeFieldEnd();
4370
        oprot.writeFieldEnd();
3622
      } else if (this.isSetWex()) {
-
 
3623
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
3624
        this.wex.write(oprot);
-
 
3625
        oprot.writeFieldEnd();
-
 
3626
      }
4371
      }
3627
      oprot.writeFieldStop();
4372
      oprot.writeFieldStop();
3628
      oprot.writeStructEnd();
4373
      oprot.writeStructEnd();
3629
    }
4374
    }
3630
 
4375
 
3631
    @Override
4376
    @Override
3632
    public String toString() {
4377
    public String toString() {
3633
      StringBuilder sb = new StringBuilder("getSupplier_result(");
4378
      StringBuilder sb = new StringBuilder("getInventoryItem_result(");
3634
      boolean first = true;
4379
      boolean first = true;
3635
 
4380
 
3636
      sb.append("success:");
4381
      sb.append("success:");
3637
      if (this.success == null) {
4382
      if (this.success == null) {
3638
        sb.append("null");
4383
        sb.append("null");
3639
      } else {
4384
      } else {
3640
        sb.append(this.success);
4385
        sb.append(this.success);
3641
      }
4386
      }
3642
      first = false;
4387
      first = false;
3643
      if (!first) sb.append(", ");
-
 
3644
      sb.append("wex:");
-
 
3645
      if (this.wex == null) {
-
 
3646
        sb.append("null");
-
 
3647
      } else {
-
 
3648
        sb.append(this.wex);
-
 
3649
      }
-
 
3650
      first = false;
-
 
3651
      sb.append(")");
4388
      sb.append(")");
3652
      return sb.toString();
4389
      return sb.toString();
3653
    }
4390
    }
3654
 
4391
 
3655
    public void validate() throws org.apache.thrift.TException {
4392
    public void validate() throws org.apache.thrift.TException {
Line 3672... Line 4409...
3672
      }
4409
      }
3673
    }
4410
    }
3674
 
4411
 
3675
  }
4412
  }
3676
 
4413
 
3677
  public static class startPurchase_args implements org.apache.thrift.TBase<startPurchase_args, startPurchase_args._Fields>, java.io.Serializable, Cloneable   {
4414
  public static class getNonSeralizedInventoryItems_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItems_args, getNonSeralizedInventoryItems_args._Fields>, java.io.Serializable, Cloneable   {
3678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startPurchase_args");
4415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItems_args");
3679
 
4416
 
3680
    private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
4417
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
3681
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
4418
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)2);
3682
    private static final org.apache.thrift.protocol.TField FREIGHT_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("freightCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
4419
    private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)3);
3683
 
4420
 
3684
    private long purchaseOrderId; // required
4421
    private long itemId; // required
3685
    private String invoiceNumber; // required
4422
    private long quantity; // required
3686
    private double freightCharges; // required
4423
    private long supplierId; // required
3687
 
4424
 
3688
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4425
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3689
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4426
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3690
      PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
4427
      ITEM_ID((short)1, "itemId"),
3691
      INVOICE_NUMBER((short)2, "invoiceNumber"),
4428
      QUANTITY((short)2, "quantity"),
3692
      FREIGHT_CHARGES((short)3, "freightCharges");
4429
      SUPPLIER_ID((short)3, "supplierId");
3693
 
4430
 
3694
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4431
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3695
 
4432
 
3696
      static {
4433
      static {
3697
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4434
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 3702... Line 4439...
3702
      /**
4439
      /**
3703
       * Find the _Fields constant that matches fieldId, or null if its not found.
4440
       * Find the _Fields constant that matches fieldId, or null if its not found.
3704
       */
4441
       */
3705
      public static _Fields findByThriftId(int fieldId) {
4442
      public static _Fields findByThriftId(int fieldId) {
3706
        switch(fieldId) {
4443
        switch(fieldId) {
3707
          case 1: // PURCHASE_ORDER_ID
4444
          case 1: // ITEM_ID
3708
            return PURCHASE_ORDER_ID;
4445
            return ITEM_ID;
3709
          case 2: // INVOICE_NUMBER
4446
          case 2: // QUANTITY
3710
            return INVOICE_NUMBER;
4447
            return QUANTITY;
3711
          case 3: // FREIGHT_CHARGES
4448
          case 3: // SUPPLIER_ID
3712
            return FREIGHT_CHARGES;
4449
            return SUPPLIER_ID;
3713
          default:
4450
          default:
3714
            return null;
4451
            return null;
3715
        }
4452
        }
3716
      }
4453
      }
3717
 
4454
 
Line 3748... Line 4485...
3748
        return _fieldName;
4485
        return _fieldName;
3749
      }
4486
      }
3750
    }
4487
    }
3751
 
4488
 
3752
    // isset id assignments
4489
    // isset id assignments
3753
    private static final int __PURCHASEORDERID_ISSET_ID = 0;
4490
    private static final int __ITEMID_ISSET_ID = 0;
3754
    private static final int __FREIGHTCHARGES_ISSET_ID = 1;
4491
    private static final int __QUANTITY_ISSET_ID = 1;
-
 
4492
    private static final int __SUPPLIERID_ISSET_ID = 2;
3755
    private BitSet __isset_bit_vector = new BitSet(2);
4493
    private BitSet __isset_bit_vector = new BitSet(3);
3756
 
4494
 
3757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4495
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3758
    static {
4496
    static {
3759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4497
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4498
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4500
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4501
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3760
      tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4502
      tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4503
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3762
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
3764
      tmpMap.put(_Fields.FREIGHT_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("freightCharges", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
3766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4504
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startPurchase_args.class, metaDataMap);
4505
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItems_args.class, metaDataMap);
3768
    }
4506
    }
3769
 
4507
 
3770
    public startPurchase_args() {
4508
    public getNonSeralizedInventoryItems_args() {
3771
    }
4509
    }
3772
 
4510
 
3773
    public startPurchase_args(
4511
    public getNonSeralizedInventoryItems_args(
3774
      long purchaseOrderId,
4512
      long itemId,
3775
      String invoiceNumber,
4513
      long quantity,
3776
      double freightCharges)
4514
      long supplierId)
3777
    {
4515
    {
3778
      this();
4516
      this();
3779
      this.purchaseOrderId = purchaseOrderId;
4517
      this.itemId = itemId;
3780
      setPurchaseOrderIdIsSet(true);
4518
      setItemIdIsSet(true);
3781
      this.invoiceNumber = invoiceNumber;
4519
      this.quantity = quantity;
-
 
4520
      setQuantityIsSet(true);
3782
      this.freightCharges = freightCharges;
4521
      this.supplierId = supplierId;
3783
      setFreightChargesIsSet(true);
4522
      setSupplierIdIsSet(true);
3784
    }
4523
    }
3785
 
4524
 
3786
    /**
4525
    /**
3787
     * Performs a deep copy on <i>other</i>.
4526
     * Performs a deep copy on <i>other</i>.
3788
     */
4527
     */
3789
    public startPurchase_args(startPurchase_args other) {
4528
    public getNonSeralizedInventoryItems_args(getNonSeralizedInventoryItems_args other) {
3790
      __isset_bit_vector.clear();
4529
      __isset_bit_vector.clear();
3791
      __isset_bit_vector.or(other.__isset_bit_vector);
4530
      __isset_bit_vector.or(other.__isset_bit_vector);
3792
      this.purchaseOrderId = other.purchaseOrderId;
4531
      this.itemId = other.itemId;
3793
      if (other.isSetInvoiceNumber()) {
-
 
3794
        this.invoiceNumber = other.invoiceNumber;
4532
      this.quantity = other.quantity;
3795
      }
-
 
3796
      this.freightCharges = other.freightCharges;
4533
      this.supplierId = other.supplierId;
3797
    }
4534
    }
3798
 
4535
 
3799
    public startPurchase_args deepCopy() {
4536
    public getNonSeralizedInventoryItems_args deepCopy() {
3800
      return new startPurchase_args(this);
4537
      return new getNonSeralizedInventoryItems_args(this);
3801
    }
4538
    }
3802
 
4539
 
3803
    @Override
4540
    @Override
3804
    public void clear() {
4541
    public void clear() {
3805
      setPurchaseOrderIdIsSet(false);
4542
      setItemIdIsSet(false);
3806
      this.purchaseOrderId = 0;
4543
      this.itemId = 0;
-
 
4544
      setQuantityIsSet(false);
3807
      this.invoiceNumber = null;
4545
      this.quantity = 0;
3808
      setFreightChargesIsSet(false);
4546
      setSupplierIdIsSet(false);
3809
      this.freightCharges = 0.0;
4547
      this.supplierId = 0;
3810
    }
4548
    }
3811
 
4549
 
3812
    public long getPurchaseOrderId() {
4550
    public long getItemId() {
3813
      return this.purchaseOrderId;
4551
      return this.itemId;
3814
    }
4552
    }
3815
 
4553
 
3816
    public void setPurchaseOrderId(long purchaseOrderId) {
4554
    public void setItemId(long itemId) {
3817
      this.purchaseOrderId = purchaseOrderId;
4555
      this.itemId = itemId;
3818
      setPurchaseOrderIdIsSet(true);
4556
      setItemIdIsSet(true);
3819
    }
4557
    }
3820
 
4558
 
3821
    public void unsetPurchaseOrderId() {
4559
    public void unsetItemId() {
3822
      __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
4560
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3823
    }
4561
    }
3824
 
4562
 
3825
    /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
4563
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
3826
    public boolean isSetPurchaseOrderId() {
4564
    public boolean isSetItemId() {
3827
      return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
4565
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3828
    }
4566
    }
3829
 
4567
 
3830
    public void setPurchaseOrderIdIsSet(boolean value) {
4568
    public void setItemIdIsSet(boolean value) {
3831
      __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
4569
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3832
    }
4570
    }
3833
 
4571
 
3834
    public String getInvoiceNumber() {
4572
    public long getQuantity() {
3835
      return this.invoiceNumber;
4573
      return this.quantity;
3836
    }
4574
    }
3837
 
4575
 
3838
    public void setInvoiceNumber(String invoiceNumber) {
4576
    public void setQuantity(long quantity) {
3839
      this.invoiceNumber = invoiceNumber;
4577
      this.quantity = quantity;
-
 
4578
      setQuantityIsSet(true);
3840
    }
4579
    }
3841
 
4580
 
3842
    public void unsetInvoiceNumber() {
4581
    public void unsetQuantity() {
3843
      this.invoiceNumber = null;
4582
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
3844
    }
4583
    }
3845
 
4584
 
3846
    /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
4585
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
3847
    public boolean isSetInvoiceNumber() {
4586
    public boolean isSetQuantity() {
3848
      return this.invoiceNumber != null;
4587
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
3849
    }
4588
    }
3850
 
4589
 
3851
    public void setInvoiceNumberIsSet(boolean value) {
4590
    public void setQuantityIsSet(boolean value) {
3852
      if (!value) {
-
 
3853
        this.invoiceNumber = null;
4591
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
3854
      }
-
 
3855
    }
4592
    }
3856
 
4593
 
3857
    public double getFreightCharges() {
4594
    public long getSupplierId() {
3858
      return this.freightCharges;
4595
      return this.supplierId;
3859
    }
4596
    }
3860
 
4597
 
3861
    public void setFreightCharges(double freightCharges) {
4598
    public void setSupplierId(long supplierId) {
3862
      this.freightCharges = freightCharges;
4599
      this.supplierId = supplierId;
3863
      setFreightChargesIsSet(true);
4600
      setSupplierIdIsSet(true);
3864
    }
4601
    }
3865
 
4602
 
3866
    public void unsetFreightCharges() {
4603
    public void unsetSupplierId() {
3867
      __isset_bit_vector.clear(__FREIGHTCHARGES_ISSET_ID);
4604
      __isset_bit_vector.clear(__SUPPLIERID_ISSET_ID);
3868
    }
4605
    }
3869
 
4606
 
3870
    /** Returns true if field freightCharges is set (has been assigned a value) and false otherwise */
4607
    /** Returns true if field supplierId is set (has been assigned a value) and false otherwise */
3871
    public boolean isSetFreightCharges() {
4608
    public boolean isSetSupplierId() {
3872
      return __isset_bit_vector.get(__FREIGHTCHARGES_ISSET_ID);
4609
      return __isset_bit_vector.get(__SUPPLIERID_ISSET_ID);
3873
    }
4610
    }
3874
 
4611
 
3875
    public void setFreightChargesIsSet(boolean value) {
4612
    public void setSupplierIdIsSet(boolean value) {
3876
      __isset_bit_vector.set(__FREIGHTCHARGES_ISSET_ID, value);
4613
      __isset_bit_vector.set(__SUPPLIERID_ISSET_ID, value);
3877
    }
4614
    }
3878
 
4615
 
3879
    public void setFieldValue(_Fields field, Object value) {
4616
    public void setFieldValue(_Fields field, Object value) {
3880
      switch (field) {
4617
      switch (field) {
3881
      case PURCHASE_ORDER_ID:
4618
      case ITEM_ID:
3882
        if (value == null) {
4619
        if (value == null) {
3883
          unsetPurchaseOrderId();
4620
          unsetItemId();
3884
        } else {
4621
        } else {
3885
          setPurchaseOrderId((Long)value);
4622
          setItemId((Long)value);
3886
        }
4623
        }
3887
        break;
4624
        break;
3888
 
4625
 
3889
      case INVOICE_NUMBER:
4626
      case QUANTITY:
3890
        if (value == null) {
4627
        if (value == null) {
3891
          unsetInvoiceNumber();
4628
          unsetQuantity();
3892
        } else {
4629
        } else {
3893
          setInvoiceNumber((String)value);
4630
          setQuantity((Long)value);
3894
        }
4631
        }
3895
        break;
4632
        break;
3896
 
4633
 
3897
      case FREIGHT_CHARGES:
4634
      case SUPPLIER_ID:
3898
        if (value == null) {
4635
        if (value == null) {
3899
          unsetFreightCharges();
4636
          unsetSupplierId();
3900
        } else {
4637
        } else {
3901
          setFreightCharges((Double)value);
4638
          setSupplierId((Long)value);
3902
        }
4639
        }
3903
        break;
4640
        break;
3904
 
4641
 
3905
      }
4642
      }
3906
    }
4643
    }
3907
 
4644
 
3908
    public Object getFieldValue(_Fields field) {
4645
    public Object getFieldValue(_Fields field) {
3909
      switch (field) {
4646
      switch (field) {
3910
      case PURCHASE_ORDER_ID:
4647
      case ITEM_ID:
3911
        return Long.valueOf(getPurchaseOrderId());
4648
        return Long.valueOf(getItemId());
3912
 
4649
 
3913
      case INVOICE_NUMBER:
4650
      case QUANTITY:
3914
        return getInvoiceNumber();
4651
        return Long.valueOf(getQuantity());
3915
 
4652
 
3916
      case FREIGHT_CHARGES:
4653
      case SUPPLIER_ID:
3917
        return Double.valueOf(getFreightCharges());
4654
        return Long.valueOf(getSupplierId());
3918
 
4655
 
3919
      }
4656
      }
3920
      throw new IllegalStateException();
4657
      throw new IllegalStateException();
3921
    }
4658
    }
3922
 
4659
 
Line 3925... Line 4662...
3925
      if (field == null) {
4662
      if (field == null) {
3926
        throw new IllegalArgumentException();
4663
        throw new IllegalArgumentException();
3927
      }
4664
      }
3928
 
4665
 
3929
      switch (field) {
4666
      switch (field) {
3930
      case PURCHASE_ORDER_ID:
4667
      case ITEM_ID:
3931
        return isSetPurchaseOrderId();
4668
        return isSetItemId();
3932
      case INVOICE_NUMBER:
4669
      case QUANTITY:
3933
        return isSetInvoiceNumber();
4670
        return isSetQuantity();
3934
      case FREIGHT_CHARGES:
4671
      case SUPPLIER_ID:
3935
        return isSetFreightCharges();
4672
        return isSetSupplierId();
3936
      }
4673
      }
3937
      throw new IllegalStateException();
4674
      throw new IllegalStateException();
3938
    }
4675
    }
3939
 
4676
 
3940
    @Override
4677
    @Override
3941
    public boolean equals(Object that) {
4678
    public boolean equals(Object that) {
3942
      if (that == null)
4679
      if (that == null)
3943
        return false;
4680
        return false;
3944
      if (that instanceof startPurchase_args)
4681
      if (that instanceof getNonSeralizedInventoryItems_args)
3945
        return this.equals((startPurchase_args)that);
4682
        return this.equals((getNonSeralizedInventoryItems_args)that);
3946
      return false;
4683
      return false;
3947
    }
4684
    }
3948
 
4685
 
3949
    public boolean equals(startPurchase_args that) {
4686
    public boolean equals(getNonSeralizedInventoryItems_args that) {
3950
      if (that == null)
4687
      if (that == null)
3951
        return false;
4688
        return false;
3952
 
4689
 
3953
      boolean this_present_purchaseOrderId = true;
4690
      boolean this_present_itemId = true;
3954
      boolean that_present_purchaseOrderId = true;
4691
      boolean that_present_itemId = true;
3955
      if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
4692
      if (this_present_itemId || that_present_itemId) {
3956
        if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
4693
        if (!(this_present_itemId && that_present_itemId))
3957
          return false;
4694
          return false;
3958
        if (this.purchaseOrderId != that.purchaseOrderId)
4695
        if (this.itemId != that.itemId)
3959
          return false;
4696
          return false;
3960
      }
4697
      }
3961
 
4698
 
3962
      boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
4699
      boolean this_present_quantity = true;
3963
      boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
4700
      boolean that_present_quantity = true;
3964
      if (this_present_invoiceNumber || that_present_invoiceNumber) {
4701
      if (this_present_quantity || that_present_quantity) {
3965
        if (!(this_present_invoiceNumber && that_present_invoiceNumber))
4702
        if (!(this_present_quantity && that_present_quantity))
3966
          return false;
4703
          return false;
3967
        if (!this.invoiceNumber.equals(that.invoiceNumber))
4704
        if (this.quantity != that.quantity)
3968
          return false;
4705
          return false;
3969
      }
4706
      }
3970
 
4707
 
3971
      boolean this_present_freightCharges = true;
4708
      boolean this_present_supplierId = true;
3972
      boolean that_present_freightCharges = true;
4709
      boolean that_present_supplierId = true;
3973
      if (this_present_freightCharges || that_present_freightCharges) {
4710
      if (this_present_supplierId || that_present_supplierId) {
3974
        if (!(this_present_freightCharges && that_present_freightCharges))
4711
        if (!(this_present_supplierId && that_present_supplierId))
3975
          return false;
4712
          return false;
3976
        if (this.freightCharges != that.freightCharges)
4713
        if (this.supplierId != that.supplierId)
3977
          return false;
4714
          return false;
3978
      }
4715
      }
3979
 
4716
 
3980
      return true;
4717
      return true;
3981
    }
4718
    }
Line 3983... Line 4720...
3983
    @Override
4720
    @Override
3984
    public int hashCode() {
4721
    public int hashCode() {
3985
      return 0;
4722
      return 0;
3986
    }
4723
    }
3987
 
4724
 
3988
    public int compareTo(startPurchase_args other) {
4725
    public int compareTo(getNonSeralizedInventoryItems_args other) {
3989
      if (!getClass().equals(other.getClass())) {
4726
      if (!getClass().equals(other.getClass())) {
3990
        return getClass().getName().compareTo(other.getClass().getName());
4727
        return getClass().getName().compareTo(other.getClass().getName());
3991
      }
4728
      }
3992
 
4729
 
3993
      int lastComparison = 0;
4730
      int lastComparison = 0;
3994
      startPurchase_args typedOther = (startPurchase_args)other;
4731
      getNonSeralizedInventoryItems_args typedOther = (getNonSeralizedInventoryItems_args)other;
3995
 
4732
 
3996
      lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
4733
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
3997
      if (lastComparison != 0) {
4734
      if (lastComparison != 0) {
3998
        return lastComparison;
4735
        return lastComparison;
3999
      }
4736
      }
4000
      if (isSetPurchaseOrderId()) {
4737
      if (isSetItemId()) {
4001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
4738
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4002
        if (lastComparison != 0) {
4739
        if (lastComparison != 0) {
4003
          return lastComparison;
4740
          return lastComparison;
4004
        }
4741
        }
4005
      }
4742
      }
4006
      lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
4743
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
4007
      if (lastComparison != 0) {
4744
      if (lastComparison != 0) {
4008
        return lastComparison;
4745
        return lastComparison;
4009
      }
4746
      }
4010
      if (isSetInvoiceNumber()) {
4747
      if (isSetQuantity()) {
4011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
4748
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
4012
        if (lastComparison != 0) {
4749
        if (lastComparison != 0) {
4013
          return lastComparison;
4750
          return lastComparison;
4014
        }
4751
        }
4015
      }
4752
      }
4016
      lastComparison = Boolean.valueOf(isSetFreightCharges()).compareTo(typedOther.isSetFreightCharges());
4753
      lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
4017
      if (lastComparison != 0) {
4754
      if (lastComparison != 0) {
4018
        return lastComparison;
4755
        return lastComparison;
4019
      }
4756
      }
4020
      if (isSetFreightCharges()) {
4757
      if (isSetSupplierId()) {
4021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freightCharges, typedOther.freightCharges);
4758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierId, typedOther.supplierId);
4022
        if (lastComparison != 0) {
4759
        if (lastComparison != 0) {
4023
          return lastComparison;
4760
          return lastComparison;
4024
        }
4761
        }
4025
      }
4762
      }
4026
      return 0;
4763
      return 0;
Line 4038... Line 4775...
4038
        field = iprot.readFieldBegin();
4775
        field = iprot.readFieldBegin();
4039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4040
          break;
4777
          break;
4041
        }
4778
        }
4042
        switch (field.id) {
4779
        switch (field.id) {
4043
          case 1: // PURCHASE_ORDER_ID
4780
          case 1: // ITEM_ID
4044
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4781
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4045
              this.purchaseOrderId = iprot.readI64();
4782
              this.itemId = iprot.readI64();
4046
              setPurchaseOrderIdIsSet(true);
4783
              setItemIdIsSet(true);
4047
            } else { 
4784
            } else { 
4048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4049
            }
4786
            }
4050
            break;
4787
            break;
4051
          case 2: // INVOICE_NUMBER
4788
          case 2: // QUANTITY
4052
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4789
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4053
              this.invoiceNumber = iprot.readString();
4790
              this.quantity = iprot.readI64();
-
 
4791
              setQuantityIsSet(true);
4054
            } else { 
4792
            } else { 
4055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4056
            }
4794
            }
4057
            break;
4795
            break;
4058
          case 3: // FREIGHT_CHARGES
4796
          case 3: // SUPPLIER_ID
4059
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
4797
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4060
              this.freightCharges = iprot.readDouble();
4798
              this.supplierId = iprot.readI64();
4061
              setFreightChargesIsSet(true);
4799
              setSupplierIdIsSet(true);
4062
            } else { 
4800
            } else { 
4063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4064
            }
4802
            }
4065
            break;
4803
            break;
4066
          default:
4804
          default:
Line 4074... Line 4812...
4074
 
4812
 
4075
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4813
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4076
      validate();
4814
      validate();
4077
 
4815
 
4078
      oprot.writeStructBegin(STRUCT_DESC);
4816
      oprot.writeStructBegin(STRUCT_DESC);
4079
      oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
4817
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4080
      oprot.writeI64(this.purchaseOrderId);
4818
      oprot.writeI64(this.itemId);
4081
      oprot.writeFieldEnd();
4819
      oprot.writeFieldEnd();
4082
      if (this.invoiceNumber != null) {
-
 
4083
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
4820
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
4084
        oprot.writeString(this.invoiceNumber);
4821
      oprot.writeI64(this.quantity);
4085
        oprot.writeFieldEnd();
4822
      oprot.writeFieldEnd();
4086
      }
-
 
4087
      oprot.writeFieldBegin(FREIGHT_CHARGES_FIELD_DESC);
4823
      oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
4088
      oprot.writeDouble(this.freightCharges);
4824
      oprot.writeI64(this.supplierId);
4089
      oprot.writeFieldEnd();
4825
      oprot.writeFieldEnd();
4090
      oprot.writeFieldStop();
4826
      oprot.writeFieldStop();
4091
      oprot.writeStructEnd();
4827
      oprot.writeStructEnd();
4092
    }
4828
    }
4093
 
4829
 
4094
    @Override
4830
    @Override
4095
    public String toString() {
4831
    public String toString() {
4096
      StringBuilder sb = new StringBuilder("startPurchase_args(");
4832
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItems_args(");
4097
      boolean first = true;
4833
      boolean first = true;
4098
 
4834
 
4099
      sb.append("purchaseOrderId:");
4835
      sb.append("itemId:");
4100
      sb.append(this.purchaseOrderId);
4836
      sb.append(this.itemId);
4101
      first = false;
4837
      first = false;
4102
      if (!first) sb.append(", ");
4838
      if (!first) sb.append(", ");
4103
      sb.append("invoiceNumber:");
-
 
4104
      if (this.invoiceNumber == null) {
-
 
4105
        sb.append("null");
4839
      sb.append("quantity:");
4106
      } else {
-
 
4107
        sb.append(this.invoiceNumber);
4840
      sb.append(this.quantity);
4108
      }
-
 
4109
      first = false;
4841
      first = false;
4110
      if (!first) sb.append(", ");
4842
      if (!first) sb.append(", ");
4111
      sb.append("freightCharges:");
4843
      sb.append("supplierId:");
4112
      sb.append(this.freightCharges);
4844
      sb.append(this.supplierId);
4113
      first = false;
4845
      first = false;
4114
      sb.append(")");
4846
      sb.append(")");
4115
      return sb.toString();
4847
      return sb.toString();
4116
    }
4848
    }
4117
 
4849
 
Line 4127... Line 4859...
4127
      }
4859
      }
4128
    }
4860
    }
4129
 
4861
 
4130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4862
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4131
      try {
4863
      try {
-
 
4864
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
4865
        __isset_bit_vector = new BitSet(1);
4132
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4866
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4133
      } catch (org.apache.thrift.TException te) {
4867
      } catch (org.apache.thrift.TException te) {
4134
        throw new java.io.IOException(te);
4868
        throw new java.io.IOException(te);
4135
      }
4869
      }
4136
    }
4870
    }
4137
 
4871
 
4138
  }
4872
  }
4139
 
4873
 
4140
  public static class startPurchase_result implements org.apache.thrift.TBase<startPurchase_result, startPurchase_result._Fields>, java.io.Serializable, Cloneable   {
4874
  public static class getNonSeralizedInventoryItems_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItems_result, getNonSeralizedInventoryItems_result._Fields>, java.io.Serializable, Cloneable   {
4141
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startPurchase_result");
4875
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItems_result");
4142
 
4876
 
4143
    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);
4877
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
4144
    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);
-
 
4145
 
4878
 
4146
    private long success; // required
4879
    private List<InventoryItem> success; // required
4147
    private WarehouseServiceException wex; // required
-
 
4148
 
4880
 
4149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4881
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4882
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4151
      SUCCESS((short)0, "success"),
4883
      SUCCESS((short)0, "success");
4152
      WEX((short)1, "wex");
-
 
4153
 
4884
 
4154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4885
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4155
 
4886
 
4156
      static {
4887
      static {
4157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4888
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 4164... Line 4895...
4164
       */
4895
       */
4165
      public static _Fields findByThriftId(int fieldId) {
4896
      public static _Fields findByThriftId(int fieldId) {
4166
        switch(fieldId) {
4897
        switch(fieldId) {
4167
          case 0: // SUCCESS
4898
          case 0: // SUCCESS
4168
            return SUCCESS;
4899
            return SUCCESS;
4169
          case 1: // WEX
-
 
4170
            return WEX;
-
 
4171
          default:
4900
          default:
4172
            return null;
4901
            return null;
4173
        }
4902
        }
4174
      }
4903
      }
4175
 
4904
 
Line 4206... Line 4935...
4206
        return _fieldName;
4935
        return _fieldName;
4207
      }
4936
      }
4208
    }
4937
    }
4209
 
4938
 
4210
    // isset id assignments
4939
    // isset id assignments
4211
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
4212
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
4213
 
4940
 
4214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4941
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4215
    static {
4942
    static {
4216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4943
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4217
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4944
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4945
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4219
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4946
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
4221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startPurchase_result.class, metaDataMap);
4948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItems_result.class, metaDataMap);
4223
    }
4949
    }
4224
 
4950
 
4225
    public startPurchase_result() {
4951
    public getNonSeralizedInventoryItems_result() {
4226
    }
4952
    }
4227
 
4953
 
4228
    public startPurchase_result(
4954
    public getNonSeralizedInventoryItems_result(
4229
      long success,
4955
      List<InventoryItem> success)
4230
      WarehouseServiceException wex)
-
 
4231
    {
4956
    {
4232
      this();
4957
      this();
4233
      this.success = success;
4958
      this.success = success;
4234
      setSuccessIsSet(true);
-
 
4235
      this.wex = wex;
-
 
4236
    }
4959
    }
4237
 
4960
 
4238
    /**
4961
    /**
4239
     * Performs a deep copy on <i>other</i>.
4962
     * Performs a deep copy on <i>other</i>.
4240
     */
4963
     */
4241
    public startPurchase_result(startPurchase_result other) {
4964
    public getNonSeralizedInventoryItems_result(getNonSeralizedInventoryItems_result other) {
4242
      __isset_bit_vector.clear();
4965
      if (other.isSetSuccess()) {
-
 
4966
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
4243
      __isset_bit_vector.or(other.__isset_bit_vector);
4967
        for (InventoryItem other_element : other.success) {
4244
      this.success = other.success;
4968
          __this__success.add(new InventoryItem(other_element));
4245
      if (other.isSetWex()) {
4969
        }
4246
        this.wex = new WarehouseServiceException(other.wex);
4970
        this.success = __this__success;
4247
      }
4971
      }
4248
    }
4972
    }
4249
 
4973
 
4250
    public startPurchase_result deepCopy() {
4974
    public getNonSeralizedInventoryItems_result deepCopy() {
4251
      return new startPurchase_result(this);
4975
      return new getNonSeralizedInventoryItems_result(this);
4252
    }
4976
    }
4253
 
4977
 
4254
    @Override
4978
    @Override
4255
    public void clear() {
4979
    public void clear() {
4256
      setSuccessIsSet(false);
-
 
4257
      this.success = 0;
4980
      this.success = null;
4258
      this.wex = null;
-
 
4259
    }
4981
    }
4260
 
4982
 
4261
    public long getSuccess() {
4983
    public int getSuccessSize() {
-
 
4984
      return (this.success == null) ? 0 : this.success.size();
-
 
4985
    }
-
 
4986
 
-
 
4987
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
-
 
4988
      return (this.success == null) ? null : this.success.iterator();
-
 
4989
    }
-
 
4990
 
-
 
4991
    public void addToSuccess(InventoryItem elem) {
-
 
4992
      if (this.success == null) {
-
 
4993
        this.success = new ArrayList<InventoryItem>();
-
 
4994
      }
-
 
4995
      this.success.add(elem);
-
 
4996
    }
-
 
4997
 
-
 
4998
    public List<InventoryItem> getSuccess() {
4262
      return this.success;
4999
      return this.success;
4263
    }
5000
    }
4264
 
5001
 
4265
    public void setSuccess(long success) {
5002
    public void setSuccess(List<InventoryItem> success) {
4266
      this.success = success;
5003
      this.success = success;
4267
      setSuccessIsSet(true);
-
 
4268
    }
5004
    }
4269
 
5005
 
4270
    public void unsetSuccess() {
5006
    public void unsetSuccess() {
4271
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5007
      this.success = null;
4272
    }
5008
    }
4273
 
5009
 
4274
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5010
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4275
    public boolean isSetSuccess() {
5011
    public boolean isSetSuccess() {
4276
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5012
      return this.success != null;
4277
    }
5013
    }
4278
 
5014
 
4279
    public void setSuccessIsSet(boolean value) {
5015
    public void setSuccessIsSet(boolean value) {
-
 
5016
      if (!value) {
4280
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5017
        this.success = null;
-
 
5018
      }
4281
    }
5019
    }
4282
 
5020
 
4283
    public WarehouseServiceException getWex() {
5021
    public void setFieldValue(_Fields field, Object value) {
4284
      return this.wex;
5022
      switch (field) {
-
 
5023
      case SUCCESS:
-
 
5024
        if (value == null) {
-
 
5025
          unsetSuccess();
-
 
5026
        } else {
-
 
5027
          setSuccess((List<InventoryItem>)value);
-
 
5028
        }
-
 
5029
        break;
-
 
5030
 
-
 
5031
      }
4285
    }
5032
    }
4286
 
5033
 
4287
    public void setWex(WarehouseServiceException wex) {
5034
    public Object getFieldValue(_Fields field) {
-
 
5035
      switch (field) {
4288
      this.wex = wex;
5036
      case SUCCESS:
-
 
5037
        return getSuccess();
-
 
5038
 
-
 
5039
      }
-
 
5040
      throw new IllegalStateException();
4289
    }
5041
    }
4290
 
5042
 
-
 
5043
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4291
    public void unsetWex() {
5044
    public boolean isSet(_Fields field) {
4292
      this.wex = null;
5045
      if (field == null) {
-
 
5046
        throw new IllegalArgumentException();
-
 
5047
      }
-
 
5048
 
-
 
5049
      switch (field) {
-
 
5050
      case SUCCESS:
-
 
5051
        return isSetSuccess();
-
 
5052
      }
-
 
5053
      throw new IllegalStateException();
4293
    }
5054
    }
4294
 
5055
 
-
 
5056
    @Override
4295
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
5057
    public boolean equals(Object that) {
4296
    public boolean isSetWex() {
5058
      if (that == null)
-
 
5059
        return false;
-
 
5060
      if (that instanceof getNonSeralizedInventoryItems_result)
-
 
5061
        return this.equals((getNonSeralizedInventoryItems_result)that);
4297
      return this.wex != null;
5062
      return false;
4298
    }
5063
    }
4299
 
5064
 
-
 
5065
    public boolean equals(getNonSeralizedInventoryItems_result that) {
-
 
5066
      if (that == null)
-
 
5067
        return false;
-
 
5068
 
-
 
5069
      boolean this_present_success = true && this.isSetSuccess();
-
 
5070
      boolean that_present_success = true && that.isSetSuccess();
-
 
5071
      if (this_present_success || that_present_success) {
-
 
5072
        if (!(this_present_success && that_present_success))
-
 
5073
          return false;
-
 
5074
        if (!this.success.equals(that.success))
-
 
5075
          return false;
-
 
5076
      }
-
 
5077
 
-
 
5078
      return true;
-
 
5079
    }
-
 
5080
 
-
 
5081
    @Override
-
 
5082
    public int hashCode() {
-
 
5083
      return 0;
-
 
5084
    }
-
 
5085
 
-
 
5086
    public int compareTo(getNonSeralizedInventoryItems_result other) {
-
 
5087
      if (!getClass().equals(other.getClass())) {
-
 
5088
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5089
      }
-
 
5090
 
-
 
5091
      int lastComparison = 0;
-
 
5092
      getNonSeralizedInventoryItems_result typedOther = (getNonSeralizedInventoryItems_result)other;
-
 
5093
 
-
 
5094
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
5095
      if (lastComparison != 0) {
-
 
5096
        return lastComparison;
-
 
5097
      }
-
 
5098
      if (isSetSuccess()) {
-
 
5099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
5100
        if (lastComparison != 0) {
-
 
5101
          return lastComparison;
-
 
5102
        }
-
 
5103
      }
-
 
5104
      return 0;
-
 
5105
    }
-
 
5106
 
4300
    public void setWexIsSet(boolean value) {
5107
    public _Fields fieldForId(int fieldId) {
-
 
5108
      return _Fields.findByThriftId(fieldId);
-
 
5109
    }
-
 
5110
 
-
 
5111
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
5112
      org.apache.thrift.protocol.TField field;
-
 
5113
      iprot.readStructBegin();
4301
      if (!value) {
5114
      while (true)
-
 
5115
      {
-
 
5116
        field = iprot.readFieldBegin();
-
 
5117
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
5118
          break;
-
 
5119
        }
-
 
5120
        switch (field.id) {
-
 
5121
          case 0: // SUCCESS
-
 
5122
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
5123
              {
-
 
5124
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
-
 
5125
                this.success = new ArrayList<InventoryItem>(_list0.size);
-
 
5126
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
-
 
5127
                {
-
 
5128
                  InventoryItem _elem2; // required
-
 
5129
                  _elem2 = new InventoryItem();
-
 
5130
                  _elem2.read(iprot);
-
 
5131
                  this.success.add(_elem2);
-
 
5132
                }
-
 
5133
                iprot.readListEnd();
-
 
5134
              }
-
 
5135
            } else { 
-
 
5136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5137
            }
-
 
5138
            break;
-
 
5139
          default:
-
 
5140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5141
        }
-
 
5142
        iprot.readFieldEnd();
-
 
5143
      }
-
 
5144
      iprot.readStructEnd();
-
 
5145
      validate();
-
 
5146
    }
-
 
5147
 
-
 
5148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
5149
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5150
 
-
 
5151
      if (this.isSetSuccess()) {
-
 
5152
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5153
        {
-
 
5154
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
5155
          for (InventoryItem _iter3 : this.success)
-
 
5156
          {
-
 
5157
            _iter3.write(oprot);
-
 
5158
          }
-
 
5159
          oprot.writeListEnd();
-
 
5160
        }
-
 
5161
        oprot.writeFieldEnd();
-
 
5162
      }
-
 
5163
      oprot.writeFieldStop();
-
 
5164
      oprot.writeStructEnd();
-
 
5165
    }
-
 
5166
 
-
 
5167
    @Override
-
 
5168
    public String toString() {
-
 
5169
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItems_result(");
-
 
5170
      boolean first = true;
-
 
5171
 
-
 
5172
      sb.append("success:");
4302
        this.wex = null;
5173
      if (this.success == null) {
-
 
5174
        sb.append("null");
-
 
5175
      } else {
-
 
5176
        sb.append(this.success);
-
 
5177
      }
-
 
5178
      first = false;
-
 
5179
      sb.append(")");
-
 
5180
      return sb.toString();
-
 
5181
    }
-
 
5182
 
-
 
5183
    public void validate() throws org.apache.thrift.TException {
-
 
5184
      // check for required fields
-
 
5185
    }
-
 
5186
 
-
 
5187
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5188
      try {
-
 
5189
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5190
      } catch (org.apache.thrift.TException te) {
-
 
5191
        throw new java.io.IOException(te);
4303
      }
5192
      }
4304
    }
5193
    }
4305
 
5194
 
-
 
5195
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5196
      try {
-
 
5197
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5198
      } catch (org.apache.thrift.TException te) {
-
 
5199
        throw new java.io.IOException(te);
-
 
5200
      }
-
 
5201
    }
-
 
5202
 
-
 
5203
  }
-
 
5204
 
-
 
5205
  public static class getInventoryItems_args implements org.apache.thrift.TBase<getInventoryItems_args, getInventoryItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
5206
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItems_args");
-
 
5207
 
-
 
5208
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
5209
 
-
 
5210
    private long itemId; // required
-
 
5211
 
-
 
5212
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5213
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
5214
      ITEM_ID((short)1, "itemId");
-
 
5215
 
-
 
5216
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5217
 
-
 
5218
      static {
-
 
5219
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5220
          byName.put(field.getFieldName(), field);
-
 
5221
        }
-
 
5222
      }
-
 
5223
 
-
 
5224
      /**
-
 
5225
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5226
       */
-
 
5227
      public static _Fields findByThriftId(int fieldId) {
-
 
5228
        switch(fieldId) {
-
 
5229
          case 1: // ITEM_ID
-
 
5230
            return ITEM_ID;
-
 
5231
          default:
-
 
5232
            return null;
-
 
5233
        }
-
 
5234
      }
-
 
5235
 
-
 
5236
      /**
-
 
5237
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5238
       * if it is not found.
-
 
5239
       */
-
 
5240
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5241
        _Fields fields = findByThriftId(fieldId);
-
 
5242
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5243
        return fields;
-
 
5244
      }
-
 
5245
 
-
 
5246
      /**
-
 
5247
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5248
       */
-
 
5249
      public static _Fields findByName(String name) {
-
 
5250
        return byName.get(name);
-
 
5251
      }
-
 
5252
 
-
 
5253
      private final short _thriftId;
-
 
5254
      private final String _fieldName;
-
 
5255
 
-
 
5256
      _Fields(short thriftId, String fieldName) {
-
 
5257
        _thriftId = thriftId;
-
 
5258
        _fieldName = fieldName;
-
 
5259
      }
-
 
5260
 
-
 
5261
      public short getThriftFieldId() {
-
 
5262
        return _thriftId;
-
 
5263
      }
-
 
5264
 
-
 
5265
      public String getFieldName() {
-
 
5266
        return _fieldName;
-
 
5267
      }
-
 
5268
    }
-
 
5269
 
-
 
5270
    // isset id assignments
-
 
5271
    private static final int __ITEMID_ISSET_ID = 0;
-
 
5272
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
5273
 
-
 
5274
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
5275
    static {
-
 
5276
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5277
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5278
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5279
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
5280
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItems_args.class, metaDataMap);
-
 
5281
    }
-
 
5282
 
-
 
5283
    public getInventoryItems_args() {
-
 
5284
    }
-
 
5285
 
-
 
5286
    public getInventoryItems_args(
-
 
5287
      long itemId)
-
 
5288
    {
-
 
5289
      this();
-
 
5290
      this.itemId = itemId;
-
 
5291
      setItemIdIsSet(true);
-
 
5292
    }
-
 
5293
 
-
 
5294
    /**
-
 
5295
     * Performs a deep copy on <i>other</i>.
-
 
5296
     */
-
 
5297
    public getInventoryItems_args(getInventoryItems_args other) {
-
 
5298
      __isset_bit_vector.clear();
-
 
5299
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5300
      this.itemId = other.itemId;
-
 
5301
    }
-
 
5302
 
-
 
5303
    public getInventoryItems_args deepCopy() {
-
 
5304
      return new getInventoryItems_args(this);
-
 
5305
    }
-
 
5306
 
-
 
5307
    @Override
-
 
5308
    public void clear() {
-
 
5309
      setItemIdIsSet(false);
-
 
5310
      this.itemId = 0;
-
 
5311
    }
-
 
5312
 
-
 
5313
    public long getItemId() {
-
 
5314
      return this.itemId;
-
 
5315
    }
-
 
5316
 
-
 
5317
    public void setItemId(long itemId) {
-
 
5318
      this.itemId = itemId;
-
 
5319
      setItemIdIsSet(true);
-
 
5320
    }
-
 
5321
 
-
 
5322
    public void unsetItemId() {
-
 
5323
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
5324
    }
-
 
5325
 
-
 
5326
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
5327
    public boolean isSetItemId() {
-
 
5328
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
5329
    }
-
 
5330
 
-
 
5331
    public void setItemIdIsSet(boolean value) {
-
 
5332
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
5333
    }
-
 
5334
 
4306
    public void setFieldValue(_Fields field, Object value) {
5335
    public void setFieldValue(_Fields field, Object value) {
4307
      switch (field) {
5336
      switch (field) {
4308
      case SUCCESS:
5337
      case ITEM_ID:
4309
        if (value == null) {
5338
        if (value == null) {
4310
          unsetSuccess();
5339
          unsetItemId();
4311
        } else {
5340
        } else {
4312
          setSuccess((Long)value);
5341
          setItemId((Long)value);
4313
        }
5342
        }
4314
        break;
5343
        break;
4315
 
5344
 
-
 
5345
      }
-
 
5346
    }
-
 
5347
 
-
 
5348
    public Object getFieldValue(_Fields field) {
-
 
5349
      switch (field) {
4316
      case WEX:
5350
      case ITEM_ID:
-
 
5351
        return Long.valueOf(getItemId());
-
 
5352
 
-
 
5353
      }
-
 
5354
      throw new IllegalStateException();
-
 
5355
    }
-
 
5356
 
-
 
5357
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
5358
    public boolean isSet(_Fields field) {
-
 
5359
      if (field == null) {
-
 
5360
        throw new IllegalArgumentException();
-
 
5361
      }
-
 
5362
 
-
 
5363
      switch (field) {
-
 
5364
      case ITEM_ID:
-
 
5365
        return isSetItemId();
-
 
5366
      }
-
 
5367
      throw new IllegalStateException();
-
 
5368
    }
-
 
5369
 
-
 
5370
    @Override
-
 
5371
    public boolean equals(Object that) {
-
 
5372
      if (that == null)
-
 
5373
        return false;
-
 
5374
      if (that instanceof getInventoryItems_args)
-
 
5375
        return this.equals((getInventoryItems_args)that);
-
 
5376
      return false;
-
 
5377
    }
-
 
5378
 
-
 
5379
    public boolean equals(getInventoryItems_args that) {
-
 
5380
      if (that == null)
-
 
5381
        return false;
-
 
5382
 
-
 
5383
      boolean this_present_itemId = true;
-
 
5384
      boolean that_present_itemId = true;
-
 
5385
      if (this_present_itemId || that_present_itemId) {
-
 
5386
        if (!(this_present_itemId && that_present_itemId))
-
 
5387
          return false;
-
 
5388
        if (this.itemId != that.itemId)
-
 
5389
          return false;
-
 
5390
      }
-
 
5391
 
-
 
5392
      return true;
-
 
5393
    }
-
 
5394
 
-
 
5395
    @Override
-
 
5396
    public int hashCode() {
-
 
5397
      return 0;
-
 
5398
    }
-
 
5399
 
-
 
5400
    public int compareTo(getInventoryItems_args other) {
-
 
5401
      if (!getClass().equals(other.getClass())) {
-
 
5402
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5403
      }
-
 
5404
 
-
 
5405
      int lastComparison = 0;
-
 
5406
      getInventoryItems_args typedOther = (getInventoryItems_args)other;
-
 
5407
 
-
 
5408
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
5409
      if (lastComparison != 0) {
-
 
5410
        return lastComparison;
-
 
5411
      }
-
 
5412
      if (isSetItemId()) {
-
 
5413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
5414
        if (lastComparison != 0) {
-
 
5415
          return lastComparison;
-
 
5416
        }
-
 
5417
      }
-
 
5418
      return 0;
-
 
5419
    }
-
 
5420
 
-
 
5421
    public _Fields fieldForId(int fieldId) {
-
 
5422
      return _Fields.findByThriftId(fieldId);
-
 
5423
    }
-
 
5424
 
-
 
5425
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
5426
      org.apache.thrift.protocol.TField field;
-
 
5427
      iprot.readStructBegin();
-
 
5428
      while (true)
-
 
5429
      {
-
 
5430
        field = iprot.readFieldBegin();
-
 
5431
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
5432
          break;
-
 
5433
        }
-
 
5434
        switch (field.id) {
-
 
5435
          case 1: // ITEM_ID
-
 
5436
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5437
              this.itemId = iprot.readI64();
-
 
5438
              setItemIdIsSet(true);
-
 
5439
            } else { 
-
 
5440
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5441
            }
-
 
5442
            break;
-
 
5443
          default:
-
 
5444
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5445
        }
-
 
5446
        iprot.readFieldEnd();
-
 
5447
      }
-
 
5448
      iprot.readStructEnd();
-
 
5449
      validate();
-
 
5450
    }
-
 
5451
 
-
 
5452
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
5453
      validate();
-
 
5454
 
-
 
5455
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5456
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
5457
      oprot.writeI64(this.itemId);
-
 
5458
      oprot.writeFieldEnd();
-
 
5459
      oprot.writeFieldStop();
-
 
5460
      oprot.writeStructEnd();
-
 
5461
    }
-
 
5462
 
-
 
5463
    @Override
-
 
5464
    public String toString() {
-
 
5465
      StringBuilder sb = new StringBuilder("getInventoryItems_args(");
-
 
5466
      boolean first = true;
-
 
5467
 
-
 
5468
      sb.append("itemId:");
-
 
5469
      sb.append(this.itemId);
-
 
5470
      first = false;
-
 
5471
      sb.append(")");
-
 
5472
      return sb.toString();
-
 
5473
    }
-
 
5474
 
-
 
5475
    public void validate() throws org.apache.thrift.TException {
-
 
5476
      // check for required fields
-
 
5477
    }
-
 
5478
 
-
 
5479
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5480
      try {
-
 
5481
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5482
      } catch (org.apache.thrift.TException te) {
-
 
5483
        throw new java.io.IOException(te);
-
 
5484
      }
-
 
5485
    }
-
 
5486
 
-
 
5487
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5488
      try {
-
 
5489
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
5490
        __isset_bit_vector = new BitSet(1);
-
 
5491
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5492
      } catch (org.apache.thrift.TException te) {
-
 
5493
        throw new java.io.IOException(te);
-
 
5494
      }
-
 
5495
    }
-
 
5496
 
-
 
5497
  }
-
 
5498
 
-
 
5499
  public static class getInventoryItems_result implements org.apache.thrift.TBase<getInventoryItems_result, getInventoryItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
5500
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItems_result");
-
 
5501
 
-
 
5502
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
5503
 
-
 
5504
    private List<InventoryItem> success; // required
-
 
5505
 
-
 
5506
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5507
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
5508
      SUCCESS((short)0, "success");
-
 
5509
 
-
 
5510
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5511
 
-
 
5512
      static {
-
 
5513
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5514
          byName.put(field.getFieldName(), field);
-
 
5515
        }
-
 
5516
      }
-
 
5517
 
-
 
5518
      /**
-
 
5519
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5520
       */
-
 
5521
      public static _Fields findByThriftId(int fieldId) {
-
 
5522
        switch(fieldId) {
-
 
5523
          case 0: // SUCCESS
-
 
5524
            return SUCCESS;
-
 
5525
          default:
-
 
5526
            return null;
-
 
5527
        }
-
 
5528
      }
-
 
5529
 
-
 
5530
      /**
-
 
5531
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5532
       * if it is not found.
-
 
5533
       */
-
 
5534
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5535
        _Fields fields = findByThriftId(fieldId);
-
 
5536
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5537
        return fields;
-
 
5538
      }
-
 
5539
 
-
 
5540
      /**
-
 
5541
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5542
       */
-
 
5543
      public static _Fields findByName(String name) {
-
 
5544
        return byName.get(name);
-
 
5545
      }
-
 
5546
 
-
 
5547
      private final short _thriftId;
-
 
5548
      private final String _fieldName;
-
 
5549
 
-
 
5550
      _Fields(short thriftId, String fieldName) {
-
 
5551
        _thriftId = thriftId;
-
 
5552
        _fieldName = fieldName;
-
 
5553
      }
-
 
5554
 
-
 
5555
      public short getThriftFieldId() {
-
 
5556
        return _thriftId;
-
 
5557
      }
-
 
5558
 
-
 
5559
      public String getFieldName() {
-
 
5560
        return _fieldName;
-
 
5561
      }
-
 
5562
    }
-
 
5563
 
-
 
5564
    // isset id assignments
-
 
5565
 
-
 
5566
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
5567
    static {
-
 
5568
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5569
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5570
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
5571
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
5572
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
5573
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItems_result.class, metaDataMap);
-
 
5574
    }
-
 
5575
 
-
 
5576
    public getInventoryItems_result() {
-
 
5577
    }
-
 
5578
 
-
 
5579
    public getInventoryItems_result(
-
 
5580
      List<InventoryItem> success)
-
 
5581
    {
-
 
5582
      this();
-
 
5583
      this.success = success;
-
 
5584
    }
-
 
5585
 
-
 
5586
    /**
-
 
5587
     * Performs a deep copy on <i>other</i>.
-
 
5588
     */
-
 
5589
    public getInventoryItems_result(getInventoryItems_result other) {
-
 
5590
      if (other.isSetSuccess()) {
-
 
5591
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
-
 
5592
        for (InventoryItem other_element : other.success) {
-
 
5593
          __this__success.add(new InventoryItem(other_element));
-
 
5594
        }
-
 
5595
        this.success = __this__success;
-
 
5596
      }
-
 
5597
    }
-
 
5598
 
-
 
5599
    public getInventoryItems_result deepCopy() {
-
 
5600
      return new getInventoryItems_result(this);
-
 
5601
    }
-
 
5602
 
-
 
5603
    @Override
-
 
5604
    public void clear() {
-
 
5605
      this.success = null;
-
 
5606
    }
-
 
5607
 
-
 
5608
    public int getSuccessSize() {
-
 
5609
      return (this.success == null) ? 0 : this.success.size();
-
 
5610
    }
-
 
5611
 
-
 
5612
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
-
 
5613
      return (this.success == null) ? null : this.success.iterator();
-
 
5614
    }
-
 
5615
 
-
 
5616
    public void addToSuccess(InventoryItem elem) {
-
 
5617
      if (this.success == null) {
-
 
5618
        this.success = new ArrayList<InventoryItem>();
-
 
5619
      }
-
 
5620
      this.success.add(elem);
-
 
5621
    }
-
 
5622
 
-
 
5623
    public List<InventoryItem> getSuccess() {
-
 
5624
      return this.success;
-
 
5625
    }
-
 
5626
 
-
 
5627
    public void setSuccess(List<InventoryItem> success) {
-
 
5628
      this.success = success;
-
 
5629
    }
-
 
5630
 
-
 
5631
    public void unsetSuccess() {
-
 
5632
      this.success = null;
-
 
5633
    }
-
 
5634
 
-
 
5635
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
5636
    public boolean isSetSuccess() {
-
 
5637
      return this.success != null;
-
 
5638
    }
-
 
5639
 
-
 
5640
    public void setSuccessIsSet(boolean value) {
-
 
5641
      if (!value) {
-
 
5642
        this.success = null;
-
 
5643
      }
-
 
5644
    }
-
 
5645
 
-
 
5646
    public void setFieldValue(_Fields field, Object value) {
-
 
5647
      switch (field) {
-
 
5648
      case SUCCESS:
4317
        if (value == null) {
5649
        if (value == null) {
4318
          unsetWex();
5650
          unsetSuccess();
4319
        } else {
5651
        } else {
4320
          setWex((WarehouseServiceException)value);
5652
          setSuccess((List<InventoryItem>)value);
4321
        }
5653
        }
4322
        break;
5654
        break;
4323
 
5655
 
4324
      }
5656
      }
4325
    }
5657
    }
4326
 
5658
 
4327
    public Object getFieldValue(_Fields field) {
5659
    public Object getFieldValue(_Fields field) {
4328
      switch (field) {
5660
      switch (field) {
4329
      case SUCCESS:
5661
      case SUCCESS:
4330
        return Long.valueOf(getSuccess());
-
 
4331
 
-
 
4332
      case WEX:
-
 
4333
        return getWex();
5662
        return getSuccess();
4334
 
5663
 
4335
      }
5664
      }
4336
      throw new IllegalStateException();
5665
      throw new IllegalStateException();
4337
    }
5666
    }
4338
 
5667
 
Line 4343... Line 5672...
4343
      }
5672
      }
4344
 
5673
 
4345
      switch (field) {
5674
      switch (field) {
4346
      case SUCCESS:
5675
      case SUCCESS:
4347
        return isSetSuccess();
5676
        return isSetSuccess();
4348
      case WEX:
-
 
4349
        return isSetWex();
-
 
4350
      }
5677
      }
4351
      throw new IllegalStateException();
5678
      throw new IllegalStateException();
4352
    }
5679
    }
4353
 
5680
 
4354
    @Override
5681
    @Override
4355
    public boolean equals(Object that) {
5682
    public boolean equals(Object that) {
4356
      if (that == null)
5683
      if (that == null)
4357
        return false;
5684
        return false;
4358
      if (that instanceof startPurchase_result)
5685
      if (that instanceof getInventoryItems_result)
4359
        return this.equals((startPurchase_result)that);
5686
        return this.equals((getInventoryItems_result)that);
4360
      return false;
5687
      return false;
4361
    }
5688
    }
4362
 
5689
 
4363
    public boolean equals(startPurchase_result that) {
5690
    public boolean equals(getInventoryItems_result that) {
4364
      if (that == null)
5691
      if (that == null)
4365
        return false;
5692
        return false;
4366
 
5693
 
4367
      boolean this_present_success = true;
5694
      boolean this_present_success = true && this.isSetSuccess();
4368
      boolean that_present_success = true;
5695
      boolean that_present_success = true && that.isSetSuccess();
4369
      if (this_present_success || that_present_success) {
5696
      if (this_present_success || that_present_success) {
4370
        if (!(this_present_success && that_present_success))
5697
        if (!(this_present_success && that_present_success))
4371
          return false;
5698
          return false;
4372
        if (this.success != that.success)
5699
        if (!this.success.equals(that.success))
4373
          return false;
-
 
4374
      }
-
 
4375
 
-
 
4376
      boolean this_present_wex = true && this.isSetWex();
-
 
4377
      boolean that_present_wex = true && that.isSetWex();
-
 
4378
      if (this_present_wex || that_present_wex) {
-
 
4379
        if (!(this_present_wex && that_present_wex))
-
 
4380
          return false;
-
 
4381
        if (!this.wex.equals(that.wex))
-
 
4382
          return false;
5700
          return false;
4383
      }
5701
      }
4384
 
5702
 
4385
      return true;
5703
      return true;
4386
    }
5704
    }
Line 4388... Line 5706...
4388
    @Override
5706
    @Override
4389
    public int hashCode() {
5707
    public int hashCode() {
4390
      return 0;
5708
      return 0;
4391
    }
5709
    }
4392
 
5710
 
4393
    public int compareTo(startPurchase_result other) {
5711
    public int compareTo(getInventoryItems_result other) {
4394
      if (!getClass().equals(other.getClass())) {
5712
      if (!getClass().equals(other.getClass())) {
4395
        return getClass().getName().compareTo(other.getClass().getName());
5713
        return getClass().getName().compareTo(other.getClass().getName());
4396
      }
5714
      }
4397
 
5715
 
4398
      int lastComparison = 0;
5716
      int lastComparison = 0;
4399
      startPurchase_result typedOther = (startPurchase_result)other;
5717
      getInventoryItems_result typedOther = (getInventoryItems_result)other;
4400
 
5718
 
4401
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5719
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4402
      if (lastComparison != 0) {
5720
      if (lastComparison != 0) {
4403
        return lastComparison;
5721
        return lastComparison;
4404
      }
5722
      }
Line 4406... Line 5724...
4406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4407
        if (lastComparison != 0) {
5725
        if (lastComparison != 0) {
4408
          return lastComparison;
5726
          return lastComparison;
4409
        }
5727
        }
4410
      }
5728
      }
-
 
5729
      return 0;
-
 
5730
    }
-
 
5731
 
-
 
5732
    public _Fields fieldForId(int fieldId) {
-
 
5733
      return _Fields.findByThriftId(fieldId);
-
 
5734
    }
-
 
5735
 
-
 
5736
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
5737
      org.apache.thrift.protocol.TField field;
-
 
5738
      iprot.readStructBegin();
-
 
5739
      while (true)
-
 
5740
      {
-
 
5741
        field = iprot.readFieldBegin();
-
 
5742
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
5743
          break;
-
 
5744
        }
-
 
5745
        switch (field.id) {
-
 
5746
          case 0: // SUCCESS
-
 
5747
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
5748
              {
-
 
5749
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
-
 
5750
                this.success = new ArrayList<InventoryItem>(_list4.size);
-
 
5751
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
-
 
5752
                {
-
 
5753
                  InventoryItem _elem6; // required
-
 
5754
                  _elem6 = new InventoryItem();
-
 
5755
                  _elem6.read(iprot);
-
 
5756
                  this.success.add(_elem6);
-
 
5757
                }
-
 
5758
                iprot.readListEnd();
-
 
5759
              }
-
 
5760
            } else { 
-
 
5761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5762
            }
-
 
5763
            break;
-
 
5764
          default:
-
 
5765
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5766
        }
-
 
5767
        iprot.readFieldEnd();
-
 
5768
      }
-
 
5769
      iprot.readStructEnd();
-
 
5770
      validate();
-
 
5771
    }
-
 
5772
 
-
 
5773
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
5774
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5775
 
-
 
5776
      if (this.isSetSuccess()) {
-
 
5777
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5778
        {
-
 
5779
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
5780
          for (InventoryItem _iter7 : this.success)
-
 
5781
          {
-
 
5782
            _iter7.write(oprot);
-
 
5783
          }
-
 
5784
          oprot.writeListEnd();
-
 
5785
        }
-
 
5786
        oprot.writeFieldEnd();
-
 
5787
      }
-
 
5788
      oprot.writeFieldStop();
-
 
5789
      oprot.writeStructEnd();
-
 
5790
    }
-
 
5791
 
-
 
5792
    @Override
-
 
5793
    public String toString() {
-
 
5794
      StringBuilder sb = new StringBuilder("getInventoryItems_result(");
-
 
5795
      boolean first = true;
-
 
5796
 
-
 
5797
      sb.append("success:");
-
 
5798
      if (this.success == null) {
-
 
5799
        sb.append("null");
-
 
5800
      } else {
-
 
5801
        sb.append(this.success);
-
 
5802
      }
-
 
5803
      first = false;
-
 
5804
      sb.append(")");
-
 
5805
      return sb.toString();
-
 
5806
    }
-
 
5807
 
-
 
5808
    public void validate() throws org.apache.thrift.TException {
-
 
5809
      // check for required fields
-
 
5810
    }
-
 
5811
 
-
 
5812
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5813
      try {
-
 
5814
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5815
      } catch (org.apache.thrift.TException te) {
-
 
5816
        throw new java.io.IOException(te);
-
 
5817
      }
-
 
5818
    }
-
 
5819
 
-
 
5820
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5821
      try {
-
 
5822
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5823
      } catch (org.apache.thrift.TException te) {
-
 
5824
        throw new java.io.IOException(te);
-
 
5825
      }
-
 
5826
    }
-
 
5827
 
-
 
5828
  }
-
 
5829
 
-
 
5830
  public static class getScanForOrder_args implements org.apache.thrift.TBase<getScanForOrder_args, getScanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
5831
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanForOrder_args");
-
 
5832
 
-
 
5833
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
5834
 
-
 
5835
    private long orderId; // required
-
 
5836
 
-
 
5837
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5838
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
5839
      ORDER_ID((short)1, "orderId");
-
 
5840
 
-
 
5841
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5842
 
-
 
5843
      static {
-
 
5844
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5845
          byName.put(field.getFieldName(), field);
-
 
5846
        }
-
 
5847
      }
-
 
5848
 
-
 
5849
      /**
-
 
5850
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5851
       */
-
 
5852
      public static _Fields findByThriftId(int fieldId) {
-
 
5853
        switch(fieldId) {
-
 
5854
          case 1: // ORDER_ID
-
 
5855
            return ORDER_ID;
-
 
5856
          default:
-
 
5857
            return null;
-
 
5858
        }
-
 
5859
      }
-
 
5860
 
-
 
5861
      /**
-
 
5862
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5863
       * if it is not found.
-
 
5864
       */
-
 
5865
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5866
        _Fields fields = findByThriftId(fieldId);
-
 
5867
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5868
        return fields;
-
 
5869
      }
-
 
5870
 
-
 
5871
      /**
-
 
5872
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5873
       */
-
 
5874
      public static _Fields findByName(String name) {
-
 
5875
        return byName.get(name);
-
 
5876
      }
-
 
5877
 
-
 
5878
      private final short _thriftId;
-
 
5879
      private final String _fieldName;
-
 
5880
 
-
 
5881
      _Fields(short thriftId, String fieldName) {
-
 
5882
        _thriftId = thriftId;
-
 
5883
        _fieldName = fieldName;
-
 
5884
      }
-
 
5885
 
-
 
5886
      public short getThriftFieldId() {
-
 
5887
        return _thriftId;
-
 
5888
      }
-
 
5889
 
-
 
5890
      public String getFieldName() {
-
 
5891
        return _fieldName;
-
 
5892
      }
-
 
5893
    }
-
 
5894
 
-
 
5895
    // isset id assignments
-
 
5896
    private static final int __ORDERID_ISSET_ID = 0;
-
 
5897
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
5898
 
-
 
5899
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
5900
    static {
-
 
5901
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5902
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5903
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5904
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
5905
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanForOrder_args.class, metaDataMap);
-
 
5906
    }
-
 
5907
 
-
 
5908
    public getScanForOrder_args() {
-
 
5909
    }
-
 
5910
 
-
 
5911
    public getScanForOrder_args(
-
 
5912
      long orderId)
-
 
5913
    {
-
 
5914
      this();
-
 
5915
      this.orderId = orderId;
-
 
5916
      setOrderIdIsSet(true);
-
 
5917
    }
-
 
5918
 
-
 
5919
    /**
-
 
5920
     * Performs a deep copy on <i>other</i>.
-
 
5921
     */
-
 
5922
    public getScanForOrder_args(getScanForOrder_args other) {
-
 
5923
      __isset_bit_vector.clear();
-
 
5924
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5925
      this.orderId = other.orderId;
-
 
5926
    }
-
 
5927
 
-
 
5928
    public getScanForOrder_args deepCopy() {
-
 
5929
      return new getScanForOrder_args(this);
-
 
5930
    }
-
 
5931
 
-
 
5932
    @Override
-
 
5933
    public void clear() {
-
 
5934
      setOrderIdIsSet(false);
-
 
5935
      this.orderId = 0;
-
 
5936
    }
-
 
5937
 
-
 
5938
    public long getOrderId() {
-
 
5939
      return this.orderId;
-
 
5940
    }
-
 
5941
 
-
 
5942
    public void setOrderId(long orderId) {
-
 
5943
      this.orderId = orderId;
-
 
5944
      setOrderIdIsSet(true);
-
 
5945
    }
-
 
5946
 
-
 
5947
    public void unsetOrderId() {
-
 
5948
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
5949
    }
-
 
5950
 
-
 
5951
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
5952
    public boolean isSetOrderId() {
-
 
5953
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
5954
    }
-
 
5955
 
-
 
5956
    public void setOrderIdIsSet(boolean value) {
-
 
5957
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
5958
    }
-
 
5959
 
-
 
5960
    public void setFieldValue(_Fields field, Object value) {
-
 
5961
      switch (field) {
-
 
5962
      case ORDER_ID:
-
 
5963
        if (value == null) {
-
 
5964
          unsetOrderId();
-
 
5965
        } else {
-
 
5966
          setOrderId((Long)value);
-
 
5967
        }
-
 
5968
        break;
-
 
5969
 
-
 
5970
      }
-
 
5971
    }
-
 
5972
 
-
 
5973
    public Object getFieldValue(_Fields field) {
-
 
5974
      switch (field) {
-
 
5975
      case ORDER_ID:
-
 
5976
        return Long.valueOf(getOrderId());
-
 
5977
 
-
 
5978
      }
-
 
5979
      throw new IllegalStateException();
-
 
5980
    }
-
 
5981
 
-
 
5982
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
5983
    public boolean isSet(_Fields field) {
-
 
5984
      if (field == null) {
-
 
5985
        throw new IllegalArgumentException();
-
 
5986
      }
-
 
5987
 
-
 
5988
      switch (field) {
-
 
5989
      case ORDER_ID:
-
 
5990
        return isSetOrderId();
-
 
5991
      }
-
 
5992
      throw new IllegalStateException();
-
 
5993
    }
-
 
5994
 
-
 
5995
    @Override
-
 
5996
    public boolean equals(Object that) {
-
 
5997
      if (that == null)
-
 
5998
        return false;
-
 
5999
      if (that instanceof getScanForOrder_args)
-
 
6000
        return this.equals((getScanForOrder_args)that);
-
 
6001
      return false;
-
 
6002
    }
-
 
6003
 
-
 
6004
    public boolean equals(getScanForOrder_args that) {
-
 
6005
      if (that == null)
-
 
6006
        return false;
-
 
6007
 
-
 
6008
      boolean this_present_orderId = true;
-
 
6009
      boolean that_present_orderId = true;
-
 
6010
      if (this_present_orderId || that_present_orderId) {
-
 
6011
        if (!(this_present_orderId && that_present_orderId))
-
 
6012
          return false;
-
 
6013
        if (this.orderId != that.orderId)
-
 
6014
          return false;
-
 
6015
      }
-
 
6016
 
-
 
6017
      return true;
-
 
6018
    }
-
 
6019
 
-
 
6020
    @Override
-
 
6021
    public int hashCode() {
-
 
6022
      return 0;
-
 
6023
    }
-
 
6024
 
-
 
6025
    public int compareTo(getScanForOrder_args other) {
-
 
6026
      if (!getClass().equals(other.getClass())) {
-
 
6027
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6028
      }
-
 
6029
 
-
 
6030
      int lastComparison = 0;
-
 
6031
      getScanForOrder_args typedOther = (getScanForOrder_args)other;
-
 
6032
 
4411
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
6033
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
4412
      if (lastComparison != 0) {
6034
      if (lastComparison != 0) {
4413
        return lastComparison;
6035
        return lastComparison;
4414
      }
6036
      }
4415
      if (isSetWex()) {
6037
      if (isSetOrderId()) {
4416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
6038
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
4417
        if (lastComparison != 0) {
6039
        if (lastComparison != 0) {
4418
          return lastComparison;
6040
          return lastComparison;
4419
        }
6041
        }
4420
      }
6042
      }
4421
      return 0;
6043
      return 0;
Line 4433... Line 6055...
4433
        field = iprot.readFieldBegin();
6055
        field = iprot.readFieldBegin();
4434
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6056
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4435
          break;
6057
          break;
4436
        }
6058
        }
4437
        switch (field.id) {
6059
        switch (field.id) {
4438
          case 0: // SUCCESS
6060
          case 1: // ORDER_ID
4439
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6061
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4440
              this.success = iprot.readI64();
6062
              this.orderId = iprot.readI64();
4441
              setSuccessIsSet(true);
6063
              setOrderIdIsSet(true);
4442
            } else { 
6064
            } else { 
4443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4444
            }
6066
            }
4445
            break;
6067
            break;
-
 
6068
          default:
-
 
6069
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6070
        }
-
 
6071
        iprot.readFieldEnd();
-
 
6072
      }
-
 
6073
      iprot.readStructEnd();
-
 
6074
      validate();
-
 
6075
    }
-
 
6076
 
-
 
6077
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
6078
      validate();
-
 
6079
 
-
 
6080
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6081
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
6082
      oprot.writeI64(this.orderId);
-
 
6083
      oprot.writeFieldEnd();
-
 
6084
      oprot.writeFieldStop();
-
 
6085
      oprot.writeStructEnd();
-
 
6086
    }
-
 
6087
 
-
 
6088
    @Override
-
 
6089
    public String toString() {
-
 
6090
      StringBuilder sb = new StringBuilder("getScanForOrder_args(");
-
 
6091
      boolean first = true;
-
 
6092
 
-
 
6093
      sb.append("orderId:");
-
 
6094
      sb.append(this.orderId);
-
 
6095
      first = false;
-
 
6096
      sb.append(")");
-
 
6097
      return sb.toString();
-
 
6098
    }
-
 
6099
 
-
 
6100
    public void validate() throws org.apache.thrift.TException {
-
 
6101
      // check for required fields
-
 
6102
    }
-
 
6103
 
-
 
6104
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6105
      try {
-
 
6106
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6107
      } catch (org.apache.thrift.TException te) {
-
 
6108
        throw new java.io.IOException(te);
-
 
6109
      }
-
 
6110
    }
-
 
6111
 
-
 
6112
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6113
      try {
-
 
6114
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
6115
        __isset_bit_vector = new BitSet(1);
-
 
6116
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6117
      } catch (org.apache.thrift.TException te) {
-
 
6118
        throw new java.io.IOException(te);
-
 
6119
      }
-
 
6120
    }
-
 
6121
 
-
 
6122
  }
-
 
6123
 
-
 
6124
  public static class getScanForOrder_result implements org.apache.thrift.TBase<getScanForOrder_result, getScanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
6125
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanForOrder_result");
-
 
6126
 
-
 
6127
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
6128
 
-
 
6129
    private List<Scan> success; // required
-
 
6130
 
-
 
6131
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6132
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6133
      SUCCESS((short)0, "success");
-
 
6134
 
-
 
6135
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6136
 
-
 
6137
      static {
-
 
6138
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6139
          byName.put(field.getFieldName(), field);
-
 
6140
        }
-
 
6141
      }
-
 
6142
 
-
 
6143
      /**
-
 
6144
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6145
       */
-
 
6146
      public static _Fields findByThriftId(int fieldId) {
-
 
6147
        switch(fieldId) {
4446
          case 1: // WEX
6148
          case 0: // SUCCESS
-
 
6149
            return SUCCESS;
-
 
6150
          default:
-
 
6151
            return null;
-
 
6152
        }
-
 
6153
      }
-
 
6154
 
-
 
6155
      /**
-
 
6156
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6157
       * if it is not found.
-
 
6158
       */
-
 
6159
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6160
        _Fields fields = findByThriftId(fieldId);
-
 
6161
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6162
        return fields;
-
 
6163
      }
-
 
6164
 
-
 
6165
      /**
-
 
6166
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6167
       */
-
 
6168
      public static _Fields findByName(String name) {
-
 
6169
        return byName.get(name);
-
 
6170
      }
-
 
6171
 
-
 
6172
      private final short _thriftId;
-
 
6173
      private final String _fieldName;
-
 
6174
 
-
 
6175
      _Fields(short thriftId, String fieldName) {
-
 
6176
        _thriftId = thriftId;
-
 
6177
        _fieldName = fieldName;
-
 
6178
      }
-
 
6179
 
-
 
6180
      public short getThriftFieldId() {
-
 
6181
        return _thriftId;
-
 
6182
      }
-
 
6183
 
-
 
6184
      public String getFieldName() {
-
 
6185
        return _fieldName;
-
 
6186
      }
-
 
6187
    }
-
 
6188
 
-
 
6189
    // isset id assignments
-
 
6190
 
-
 
6191
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6192
    static {
-
 
6193
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6194
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6195
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
6196
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
-
 
6197
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6198
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanForOrder_result.class, metaDataMap);
-
 
6199
    }
-
 
6200
 
-
 
6201
    public getScanForOrder_result() {
-
 
6202
    }
-
 
6203
 
-
 
6204
    public getScanForOrder_result(
-
 
6205
      List<Scan> success)
-
 
6206
    {
-
 
6207
      this();
-
 
6208
      this.success = success;
-
 
6209
    }
-
 
6210
 
-
 
6211
    /**
-
 
6212
     * Performs a deep copy on <i>other</i>.
-
 
6213
     */
-
 
6214
    public getScanForOrder_result(getScanForOrder_result other) {
-
 
6215
      if (other.isSetSuccess()) {
-
 
6216
        List<Scan> __this__success = new ArrayList<Scan>();
-
 
6217
        for (Scan other_element : other.success) {
-
 
6218
          __this__success.add(new Scan(other_element));
-
 
6219
        }
-
 
6220
        this.success = __this__success;
-
 
6221
      }
-
 
6222
    }
-
 
6223
 
-
 
6224
    public getScanForOrder_result deepCopy() {
-
 
6225
      return new getScanForOrder_result(this);
-
 
6226
    }
-
 
6227
 
-
 
6228
    @Override
-
 
6229
    public void clear() {
-
 
6230
      this.success = null;
-
 
6231
    }
-
 
6232
 
-
 
6233
    public int getSuccessSize() {
-
 
6234
      return (this.success == null) ? 0 : this.success.size();
-
 
6235
    }
-
 
6236
 
-
 
6237
    public java.util.Iterator<Scan> getSuccessIterator() {
-
 
6238
      return (this.success == null) ? null : this.success.iterator();
-
 
6239
    }
-
 
6240
 
-
 
6241
    public void addToSuccess(Scan elem) {
-
 
6242
      if (this.success == null) {
-
 
6243
        this.success = new ArrayList<Scan>();
-
 
6244
      }
-
 
6245
      this.success.add(elem);
-
 
6246
    }
-
 
6247
 
-
 
6248
    public List<Scan> getSuccess() {
-
 
6249
      return this.success;
-
 
6250
    }
-
 
6251
 
-
 
6252
    public void setSuccess(List<Scan> success) {
-
 
6253
      this.success = success;
-
 
6254
    }
-
 
6255
 
-
 
6256
    public void unsetSuccess() {
-
 
6257
      this.success = null;
-
 
6258
    }
-
 
6259
 
-
 
6260
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
6261
    public boolean isSetSuccess() {
-
 
6262
      return this.success != null;
-
 
6263
    }
-
 
6264
 
-
 
6265
    public void setSuccessIsSet(boolean value) {
-
 
6266
      if (!value) {
-
 
6267
        this.success = null;
-
 
6268
      }
-
 
6269
    }
-
 
6270
 
-
 
6271
    public void setFieldValue(_Fields field, Object value) {
-
 
6272
      switch (field) {
-
 
6273
      case SUCCESS:
-
 
6274
        if (value == null) {
-
 
6275
          unsetSuccess();
-
 
6276
        } else {
-
 
6277
          setSuccess((List<Scan>)value);
-
 
6278
        }
-
 
6279
        break;
-
 
6280
 
-
 
6281
      }
-
 
6282
    }
-
 
6283
 
-
 
6284
    public Object getFieldValue(_Fields field) {
-
 
6285
      switch (field) {
-
 
6286
      case SUCCESS:
-
 
6287
        return getSuccess();
-
 
6288
 
-
 
6289
      }
-
 
6290
      throw new IllegalStateException();
-
 
6291
    }
-
 
6292
 
-
 
6293
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6294
    public boolean isSet(_Fields field) {
-
 
6295
      if (field == null) {
-
 
6296
        throw new IllegalArgumentException();
-
 
6297
      }
-
 
6298
 
-
 
6299
      switch (field) {
-
 
6300
      case SUCCESS:
-
 
6301
        return isSetSuccess();
-
 
6302
      }
-
 
6303
      throw new IllegalStateException();
-
 
6304
    }
-
 
6305
 
-
 
6306
    @Override
-
 
6307
    public boolean equals(Object that) {
-
 
6308
      if (that == null)
-
 
6309
        return false;
-
 
6310
      if (that instanceof getScanForOrder_result)
-
 
6311
        return this.equals((getScanForOrder_result)that);
-
 
6312
      return false;
-
 
6313
    }
-
 
6314
 
-
 
6315
    public boolean equals(getScanForOrder_result that) {
-
 
6316
      if (that == null)
-
 
6317
        return false;
-
 
6318
 
-
 
6319
      boolean this_present_success = true && this.isSetSuccess();
-
 
6320
      boolean that_present_success = true && that.isSetSuccess();
-
 
6321
      if (this_present_success || that_present_success) {
-
 
6322
        if (!(this_present_success && that_present_success))
-
 
6323
          return false;
-
 
6324
        if (!this.success.equals(that.success))
-
 
6325
          return false;
-
 
6326
      }
-
 
6327
 
-
 
6328
      return true;
-
 
6329
    }
-
 
6330
 
-
 
6331
    @Override
-
 
6332
    public int hashCode() {
-
 
6333
      return 0;
-
 
6334
    }
-
 
6335
 
-
 
6336
    public int compareTo(getScanForOrder_result other) {
-
 
6337
      if (!getClass().equals(other.getClass())) {
-
 
6338
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6339
      }
-
 
6340
 
-
 
6341
      int lastComparison = 0;
-
 
6342
      getScanForOrder_result typedOther = (getScanForOrder_result)other;
-
 
6343
 
-
 
6344
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
6345
      if (lastComparison != 0) {
-
 
6346
        return lastComparison;
-
 
6347
      }
-
 
6348
      if (isSetSuccess()) {
-
 
6349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
6350
        if (lastComparison != 0) {
-
 
6351
          return lastComparison;
-
 
6352
        }
-
 
6353
      }
-
 
6354
      return 0;
-
 
6355
    }
-
 
6356
 
-
 
6357
    public _Fields fieldForId(int fieldId) {
-
 
6358
      return _Fields.findByThriftId(fieldId);
-
 
6359
    }
-
 
6360
 
-
 
6361
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6362
      org.apache.thrift.protocol.TField field;
-
 
6363
      iprot.readStructBegin();
-
 
6364
      while (true)
-
 
6365
      {
-
 
6366
        field = iprot.readFieldBegin();
-
 
6367
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6368
          break;
-
 
6369
        }
-
 
6370
        switch (field.id) {
-
 
6371
          case 0: // SUCCESS
4447
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6372
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
6373
              {
-
 
6374
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
4448
              this.wex = new WarehouseServiceException();
6375
                this.success = new ArrayList<Scan>(_list8.size);
-
 
6376
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
6377
                {
-
 
6378
                  Scan _elem10; // required
-
 
6379
                  _elem10 = new Scan();
4449
              this.wex.read(iprot);
6380
                  _elem10.read(iprot);
-
 
6381
                  this.success.add(_elem10);
-
 
6382
                }
-
 
6383
                iprot.readListEnd();
-
 
6384
              }
4450
            } else { 
6385
            } else { 
4451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4452
            }
6387
            }
4453
            break;
6388
            break;
4454
          default:
6389
          default:
Line 4463... Line 6398...
4463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6398
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4464
      oprot.writeStructBegin(STRUCT_DESC);
6399
      oprot.writeStructBegin(STRUCT_DESC);
4465
 
6400
 
4466
      if (this.isSetSuccess()) {
6401
      if (this.isSetSuccess()) {
4467
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6402
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6403
        {
-
 
6404
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4468
        oprot.writeI64(this.success);
6405
          for (Scan _iter11 : this.success)
-
 
6406
          {
4469
        oprot.writeFieldEnd();
6407
            _iter11.write(oprot);
4470
      } else if (this.isSetWex()) {
6408
          }
4471
        oprot.writeFieldBegin(WEX_FIELD_DESC);
6409
          oprot.writeListEnd();
4472
        this.wex.write(oprot);
6410
        }
4473
        oprot.writeFieldEnd();
6411
        oprot.writeFieldEnd();
4474
      }
6412
      }
4475
      oprot.writeFieldStop();
6413
      oprot.writeFieldStop();
4476
      oprot.writeStructEnd();
6414
      oprot.writeStructEnd();
4477
    }
6415
    }
4478
 
6416
 
4479
    @Override
6417
    @Override
4480
    public String toString() {
6418
    public String toString() {
4481
      StringBuilder sb = new StringBuilder("startPurchase_result(");
6419
      StringBuilder sb = new StringBuilder("getScanForOrder_result(");
4482
      boolean first = true;
6420
      boolean first = true;
4483
 
6421
 
4484
      sb.append("success:");
6422
      sb.append("success:");
4485
      sb.append(this.success);
-
 
4486
      first = false;
-
 
4487
      if (!first) sb.append(", ");
-
 
4488
      sb.append("wex:");
-
 
4489
      if (this.wex == null) {
6423
      if (this.success == null) {
4490
        sb.append("null");
6424
        sb.append("null");
4491
      } else {
6425
      } else {
4492
        sb.append(this.wex);
6426
        sb.append(this.success);
4493
      }
6427
      }
4494
      first = false;
6428
      first = false;
4495
      sb.append(")");
6429
      sb.append(")");
4496
      return sb.toString();
6430
      return sb.toString();
4497
    }
6431
    }
Line 4516... Line 6450...
4516
      }
6450
      }
4517
    }
6451
    }
4518
 
6452
 
4519
  }
6453
  }
4520
 
6454
 
4521
  public static class closePurchase_args implements org.apache.thrift.TBase<closePurchase_args, closePurchase_args._Fields>, java.io.Serializable, Cloneable   {
6455
  public static class getScan_args implements org.apache.thrift.TBase<getScan_args, getScan_args._Fields>, java.io.Serializable, Cloneable   {
4522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closePurchase_args");
6456
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScan_args");
4523
 
6457
 
4524
    private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)1);
6458
    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);
4525
 
6459
 
4526
    private long purchaseId; // required
6460
    private long inventoryItemId; // required
4527
 
6461
 
4528
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6462
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4529
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6463
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4530
      PURCHASE_ID((short)1, "purchaseId");
6464
      INVENTORY_ITEM_ID((short)1, "inventoryItemId");
4531
 
6465
 
4532
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6466
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4533
 
6467
 
4534
      static {
6468
      static {
4535
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6469
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 4540... Line 6474...
4540
      /**
6474
      /**
4541
       * Find the _Fields constant that matches fieldId, or null if its not found.
6475
       * Find the _Fields constant that matches fieldId, or null if its not found.
4542
       */
6476
       */
4543
      public static _Fields findByThriftId(int fieldId) {
6477
      public static _Fields findByThriftId(int fieldId) {
4544
        switch(fieldId) {
6478
        switch(fieldId) {
4545
          case 1: // PURCHASE_ID
6479
          case 1: // INVENTORY_ITEM_ID
4546
            return PURCHASE_ID;
6480
            return INVENTORY_ITEM_ID;
4547
          default:
6481
          default:
4548
            return null;
6482
            return null;
4549
        }
6483
        }
4550
      }
6484
      }
4551
 
6485
 
Line 4582... Line 6516...
4582
        return _fieldName;
6516
        return _fieldName;
4583
      }
6517
      }
4584
    }
6518
    }
4585
 
6519
 
4586
    // isset id assignments
6520
    // isset id assignments
4587
    private static final int __PURCHASEID_ISSET_ID = 0;
6521
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
4588
    private BitSet __isset_bit_vector = new BitSet(1);
6522
    private BitSet __isset_bit_vector = new BitSet(1);
4589
 
6523
 
4590
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6524
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4591
    static {
6525
    static {
4592
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6526
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4593
      tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6527
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4594
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6528
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4595
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6529
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4596
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closePurchase_args.class, metaDataMap);
6530
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScan_args.class, metaDataMap);
4597
    }
6531
    }
4598
 
6532
 
4599
    public closePurchase_args() {
6533
    public getScan_args() {
4600
    }
6534
    }
4601
 
6535
 
4602
    public closePurchase_args(
6536
    public getScan_args(
4603
      long purchaseId)
6537
      long inventoryItemId)
4604
    {
6538
    {
4605
      this();
6539
      this();
4606
      this.purchaseId = purchaseId;
6540
      this.inventoryItemId = inventoryItemId;
4607
      setPurchaseIdIsSet(true);
6541
      setInventoryItemIdIsSet(true);
4608
    }
6542
    }
4609
 
6543
 
4610
    /**
6544
    /**
4611
     * Performs a deep copy on <i>other</i>.
6545
     * Performs a deep copy on <i>other</i>.
4612
     */
6546
     */
4613
    public closePurchase_args(closePurchase_args other) {
6547
    public getScan_args(getScan_args other) {
4614
      __isset_bit_vector.clear();
6548
      __isset_bit_vector.clear();
4615
      __isset_bit_vector.or(other.__isset_bit_vector);
6549
      __isset_bit_vector.or(other.__isset_bit_vector);
4616
      this.purchaseId = other.purchaseId;
6550
      this.inventoryItemId = other.inventoryItemId;
4617
    }
6551
    }
4618
 
6552
 
4619
    public closePurchase_args deepCopy() {
6553
    public getScan_args deepCopy() {
4620
      return new closePurchase_args(this);
6554
      return new getScan_args(this);
4621
    }
6555
    }
4622
 
6556
 
4623
    @Override
6557
    @Override
4624
    public void clear() {
6558
    public void clear() {
4625
      setPurchaseIdIsSet(false);
6559
      setInventoryItemIdIsSet(false);
4626
      this.purchaseId = 0;
6560
      this.inventoryItemId = 0;
4627
    }
6561
    }
4628
 
6562
 
4629
    public long getPurchaseId() {
6563
    public long getInventoryItemId() {
4630
      return this.purchaseId;
6564
      return this.inventoryItemId;
4631
    }
6565
    }
4632
 
6566
 
4633
    public void setPurchaseId(long purchaseId) {
6567
    public void setInventoryItemId(long inventoryItemId) {
4634
      this.purchaseId = purchaseId;
6568
      this.inventoryItemId = inventoryItemId;
4635
      setPurchaseIdIsSet(true);
6569
      setInventoryItemIdIsSet(true);
4636
    }
6570
    }
4637
 
6571
 
4638
    public void unsetPurchaseId() {
6572
    public void unsetInventoryItemId() {
4639
      __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
6573
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
4640
    }
6574
    }
4641
 
6575
 
4642
    /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
6576
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
4643
    public boolean isSetPurchaseId() {
6577
    public boolean isSetInventoryItemId() {
4644
      return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
6578
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
4645
    }
6579
    }
4646
 
6580
 
4647
    public void setPurchaseIdIsSet(boolean value) {
6581
    public void setInventoryItemIdIsSet(boolean value) {
4648
      __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
6582
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
4649
    }
6583
    }
4650
 
6584
 
4651
    public void setFieldValue(_Fields field, Object value) {
6585
    public void setFieldValue(_Fields field, Object value) {
4652
      switch (field) {
6586
      switch (field) {
4653
      case PURCHASE_ID:
6587
      case INVENTORY_ITEM_ID:
4654
        if (value == null) {
6588
        if (value == null) {
4655
          unsetPurchaseId();
6589
          unsetInventoryItemId();
4656
        } else {
6590
        } else {
4657
          setPurchaseId((Long)value);
6591
          setInventoryItemId((Long)value);
4658
        }
6592
        }
4659
        break;
6593
        break;
4660
 
6594
 
4661
      }
6595
      }
4662
    }
6596
    }
4663
 
6597
 
4664
    public Object getFieldValue(_Fields field) {
6598
    public Object getFieldValue(_Fields field) {
4665
      switch (field) {
6599
      switch (field) {
4666
      case PURCHASE_ID:
6600
      case INVENTORY_ITEM_ID:
4667
        return Long.valueOf(getPurchaseId());
6601
        return Long.valueOf(getInventoryItemId());
4668
 
6602
 
4669
      }
6603
      }
4670
      throw new IllegalStateException();
6604
      throw new IllegalStateException();
4671
    }
6605
    }
4672
 
6606
 
Line 4675... Line 6609...
4675
      if (field == null) {
6609
      if (field == null) {
4676
        throw new IllegalArgumentException();
6610
        throw new IllegalArgumentException();
4677
      }
6611
      }
4678
 
6612
 
4679
      switch (field) {
6613
      switch (field) {
4680
      case PURCHASE_ID:
6614
      case INVENTORY_ITEM_ID:
4681
        return isSetPurchaseId();
6615
        return isSetInventoryItemId();
4682
      }
6616
      }
4683
      throw new IllegalStateException();
6617
      throw new IllegalStateException();
4684
    }
6618
    }
4685
 
6619
 
4686
    @Override
6620
    @Override
4687
    public boolean equals(Object that) {
6621
    public boolean equals(Object that) {
4688
      if (that == null)
6622
      if (that == null)
4689
        return false;
6623
        return false;
4690
      if (that instanceof closePurchase_args)
6624
      if (that instanceof getScan_args)
4691
        return this.equals((closePurchase_args)that);
6625
        return this.equals((getScan_args)that);
4692
      return false;
6626
      return false;
4693
    }
6627
    }
4694
 
6628
 
4695
    public boolean equals(closePurchase_args that) {
6629
    public boolean equals(getScan_args that) {
4696
      if (that == null)
6630
      if (that == null)
4697
        return false;
6631
        return false;
4698
 
6632
 
4699
      boolean this_present_purchaseId = true;
6633
      boolean this_present_inventoryItemId = true;
4700
      boolean that_present_purchaseId = true;
6634
      boolean that_present_inventoryItemId = true;
4701
      if (this_present_purchaseId || that_present_purchaseId) {
6635
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
4702
        if (!(this_present_purchaseId && that_present_purchaseId))
6636
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
4703
          return false;
6637
          return false;
4704
        if (this.purchaseId != that.purchaseId)
6638
        if (this.inventoryItemId != that.inventoryItemId)
4705
          return false;
6639
          return false;
4706
      }
6640
      }
4707
 
6641
 
4708
      return true;
6642
      return true;
4709
    }
6643
    }
Line 4711... Line 6645...
4711
    @Override
6645
    @Override
4712
    public int hashCode() {
6646
    public int hashCode() {
4713
      return 0;
6647
      return 0;
4714
    }
6648
    }
4715
 
6649
 
4716
    public int compareTo(closePurchase_args other) {
6650
    public int compareTo(getScan_args other) {
4717
      if (!getClass().equals(other.getClass())) {
6651
      if (!getClass().equals(other.getClass())) {
4718
        return getClass().getName().compareTo(other.getClass().getName());
6652
        return getClass().getName().compareTo(other.getClass().getName());
4719
      }
6653
      }
4720
 
6654
 
4721
      int lastComparison = 0;
6655
      int lastComparison = 0;
4722
      closePurchase_args typedOther = (closePurchase_args)other;
6656
      getScan_args typedOther = (getScan_args)other;
4723
 
6657
 
4724
      lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
6658
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
4725
      if (lastComparison != 0) {
6659
      if (lastComparison != 0) {
4726
        return lastComparison;
6660
        return lastComparison;
4727
      }
6661
      }
4728
      if (isSetPurchaseId()) {
6662
      if (isSetInventoryItemId()) {
4729
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
6663
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
4730
        if (lastComparison != 0) {
6664
        if (lastComparison != 0) {
4731
          return lastComparison;
6665
          return lastComparison;
4732
        }
6666
        }
4733
      }
6667
      }
4734
      return 0;
6668
      return 0;
Line 4746... Line 6680...
4746
        field = iprot.readFieldBegin();
6680
        field = iprot.readFieldBegin();
4747
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6681
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4748
          break;
6682
          break;
4749
        }
6683
        }
4750
        switch (field.id) {
6684
        switch (field.id) {
4751
          case 1: // PURCHASE_ID
6685
          case 1: // INVENTORY_ITEM_ID
4752
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6686
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4753
              this.purchaseId = iprot.readI64();
6687
              this.inventoryItemId = iprot.readI64();
4754
              setPurchaseIdIsSet(true);
6688
              setInventoryItemIdIsSet(true);
4755
            } else { 
6689
            } else { 
4756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6690
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4757
            }
6691
            }
4758
            break;
6692
            break;
4759
          default:
6693
          default:
Line 4767... Line 6701...
4767
 
6701
 
4768
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6702
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4769
      validate();
6703
      validate();
4770
 
6704
 
4771
      oprot.writeStructBegin(STRUCT_DESC);
6705
      oprot.writeStructBegin(STRUCT_DESC);
4772
      oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
6706
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
4773
      oprot.writeI64(this.purchaseId);
6707
      oprot.writeI64(this.inventoryItemId);
4774
      oprot.writeFieldEnd();
6708
      oprot.writeFieldEnd();
4775
      oprot.writeFieldStop();
6709
      oprot.writeFieldStop();
4776
      oprot.writeStructEnd();
6710
      oprot.writeStructEnd();
4777
    }
6711
    }
4778
 
6712
 
4779
    @Override
6713
    @Override
4780
    public String toString() {
6714
    public String toString() {
4781
      StringBuilder sb = new StringBuilder("closePurchase_args(");
6715
      StringBuilder sb = new StringBuilder("getScan_args(");
4782
      boolean first = true;
6716
      boolean first = true;
4783
 
6717
 
4784
      sb.append("purchaseId:");
6718
      sb.append("inventoryItemId:");
4785
      sb.append(this.purchaseId);
6719
      sb.append(this.inventoryItemId);
4786
      first = false;
6720
      first = false;
4787
      sb.append(")");
6721
      sb.append(")");
4788
      return sb.toString();
6722
      return sb.toString();
4789
    }
6723
    }
4790
 
6724
 
Line 4800... Line 6734...
4800
      }
6734
      }
4801
    }
6735
    }
4802
 
6736
 
4803
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6737
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4804
      try {
6738
      try {
-
 
6739
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
6740
        __isset_bit_vector = new BitSet(1);
4805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6741
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4806
      } catch (org.apache.thrift.TException te) {
6742
      } catch (org.apache.thrift.TException te) {
4807
        throw new java.io.IOException(te);
6743
        throw new java.io.IOException(te);
4808
      }
6744
      }
4809
    }
6745
    }
4810
 
6746
 
4811
  }
6747
  }
4812
 
6748
 
4813
  public static class closePurchase_result implements org.apache.thrift.TBase<closePurchase_result, closePurchase_result._Fields>, java.io.Serializable, Cloneable   {
6749
  public static class getScan_result implements org.apache.thrift.TBase<getScan_result, getScan_result._Fields>, java.io.Serializable, Cloneable   {
4814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closePurchase_result");
6750
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScan_result");
4815
 
6751
 
4816
    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);
6752
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
4817
    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);
-
 
4818
 
6753
 
4819
    private long success; // required
6754
    private List<Scan> success; // required
4820
    private WarehouseServiceException wex; // required
-
 
4821
 
6755
 
4822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6756
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6757
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4824
      SUCCESS((short)0, "success"),
6758
      SUCCESS((short)0, "success");
4825
      WEX((short)1, "wex");
-
 
4826
 
6759
 
4827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6760
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4828
 
6761
 
4829
      static {
6762
      static {
4830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6763
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 4837... Line 6770...
4837
       */
6770
       */
4838
      public static _Fields findByThriftId(int fieldId) {
6771
      public static _Fields findByThriftId(int fieldId) {
4839
        switch(fieldId) {
6772
        switch(fieldId) {
4840
          case 0: // SUCCESS
6773
          case 0: // SUCCESS
4841
            return SUCCESS;
6774
            return SUCCESS;
4842
          case 1: // WEX
-
 
4843
            return WEX;
-
 
4844
          default:
6775
          default:
4845
            return null;
6776
            return null;
4846
        }
6777
        }
4847
      }
6778
      }
4848
 
6779
 
Line 4879... Line 6810...
4879
        return _fieldName;
6810
        return _fieldName;
4880
      }
6811
      }
4881
    }
6812
    }
4882
 
6813
 
4883
    // isset id assignments
6814
    // isset id assignments
4884
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
4885
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
4886
 
6815
 
4887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6816
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4888
    static {
6817
    static {
4889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6818
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4890
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6819
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6820
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4892
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4893
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6821
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
4894
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6822
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4895
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closePurchase_result.class, metaDataMap);
6823
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScan_result.class, metaDataMap);
4896
    }
6824
    }
4897
 
6825
 
4898
    public closePurchase_result() {
6826
    public getScan_result() {
4899
    }
6827
    }
4900
 
6828
 
4901
    public closePurchase_result(
6829
    public getScan_result(
4902
      long success,
6830
      List<Scan> success)
4903
      WarehouseServiceException wex)
-
 
4904
    {
6831
    {
4905
      this();
6832
      this();
4906
      this.success = success;
6833
      this.success = success;
4907
      setSuccessIsSet(true);
-
 
4908
      this.wex = wex;
-
 
4909
    }
6834
    }
4910
 
6835
 
4911
    /**
6836
    /**
4912
     * Performs a deep copy on <i>other</i>.
6837
     * Performs a deep copy on <i>other</i>.
4913
     */
6838
     */
4914
    public closePurchase_result(closePurchase_result other) {
6839
    public getScan_result(getScan_result other) {
4915
      __isset_bit_vector.clear();
6840
      if (other.isSetSuccess()) {
4916
      __isset_bit_vector.or(other.__isset_bit_vector);
6841
        List<Scan> __this__success = new ArrayList<Scan>();
4917
      this.success = other.success;
6842
        for (Scan other_element : other.success) {
4918
      if (other.isSetWex()) {
6843
          __this__success.add(new Scan(other_element));
-
 
6844
        }
4919
        this.wex = new WarehouseServiceException(other.wex);
6845
        this.success = __this__success;
4920
      }
6846
      }
4921
    }
6847
    }
4922
 
6848
 
4923
    public closePurchase_result deepCopy() {
6849
    public getScan_result deepCopy() {
4924
      return new closePurchase_result(this);
6850
      return new getScan_result(this);
4925
    }
6851
    }
4926
 
6852
 
4927
    @Override
6853
    @Override
4928
    public void clear() {
6854
    public void clear() {
4929
      setSuccessIsSet(false);
-
 
4930
      this.success = 0;
6855
      this.success = null;
4931
      this.wex = null;
-
 
4932
    }
6856
    }
4933
 
6857
 
4934
    public long getSuccess() {
6858
    public int getSuccessSize() {
-
 
6859
      return (this.success == null) ? 0 : this.success.size();
-
 
6860
    }
-
 
6861
 
-
 
6862
    public java.util.Iterator<Scan> getSuccessIterator() {
-
 
6863
      return (this.success == null) ? null : this.success.iterator();
-
 
6864
    }
-
 
6865
 
-
 
6866
    public void addToSuccess(Scan elem) {
-
 
6867
      if (this.success == null) {
-
 
6868
        this.success = new ArrayList<Scan>();
-
 
6869
      }
-
 
6870
      this.success.add(elem);
-
 
6871
    }
-
 
6872
 
-
 
6873
    public List<Scan> getSuccess() {
4935
      return this.success;
6874
      return this.success;
4936
    }
6875
    }
4937
 
6876
 
4938
    public void setSuccess(long success) {
6877
    public void setSuccess(List<Scan> success) {
4939
      this.success = success;
6878
      this.success = success;
4940
      setSuccessIsSet(true);
-
 
4941
    }
6879
    }
4942
 
6880
 
4943
    public void unsetSuccess() {
6881
    public void unsetSuccess() {
4944
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6882
      this.success = null;
4945
    }
6883
    }
4946
 
6884
 
4947
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6885
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4948
    public boolean isSetSuccess() {
6886
    public boolean isSetSuccess() {
4949
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6887
      return this.success != null;
4950
    }
6888
    }
4951
 
6889
 
4952
    public void setSuccessIsSet(boolean value) {
6890
    public void setSuccessIsSet(boolean value) {
-
 
6891
      if (!value) {
-
 
6892
        this.success = null;
-
 
6893
      }
-
 
6894
    }
-
 
6895
 
-
 
6896
    public void setFieldValue(_Fields field, Object value) {
-
 
6897
      switch (field) {
-
 
6898
      case SUCCESS:
-
 
6899
        if (value == null) {
-
 
6900
          unsetSuccess();
-
 
6901
        } else {
-
 
6902
          setSuccess((List<Scan>)value);
-
 
6903
        }
-
 
6904
        break;
-
 
6905
 
-
 
6906
      }
-
 
6907
    }
-
 
6908
 
-
 
6909
    public Object getFieldValue(_Fields field) {
-
 
6910
      switch (field) {
-
 
6911
      case SUCCESS:
-
 
6912
        return getSuccess();
-
 
6913
 
-
 
6914
      }
-
 
6915
      throw new IllegalStateException();
-
 
6916
    }
-
 
6917
 
-
 
6918
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6919
    public boolean isSet(_Fields field) {
-
 
6920
      if (field == null) {
-
 
6921
        throw new IllegalArgumentException();
-
 
6922
      }
-
 
6923
 
-
 
6924
      switch (field) {
-
 
6925
      case SUCCESS:
-
 
6926
        return isSetSuccess();
-
 
6927
      }
-
 
6928
      throw new IllegalStateException();
-
 
6929
    }
-
 
6930
 
-
 
6931
    @Override
-
 
6932
    public boolean equals(Object that) {
-
 
6933
      if (that == null)
-
 
6934
        return false;
-
 
6935
      if (that instanceof getScan_result)
-
 
6936
        return this.equals((getScan_result)that);
-
 
6937
      return false;
-
 
6938
    }
-
 
6939
 
-
 
6940
    public boolean equals(getScan_result that) {
-
 
6941
      if (that == null)
-
 
6942
        return false;
-
 
6943
 
-
 
6944
      boolean this_present_success = true && this.isSetSuccess();
-
 
6945
      boolean that_present_success = true && that.isSetSuccess();
-
 
6946
      if (this_present_success || that_present_success) {
-
 
6947
        if (!(this_present_success && that_present_success))
-
 
6948
          return false;
-
 
6949
        if (!this.success.equals(that.success))
-
 
6950
          return false;
-
 
6951
      }
-
 
6952
 
-
 
6953
      return true;
-
 
6954
    }
-
 
6955
 
-
 
6956
    @Override
-
 
6957
    public int hashCode() {
-
 
6958
      return 0;
-
 
6959
    }
-
 
6960
 
-
 
6961
    public int compareTo(getScan_result other) {
-
 
6962
      if (!getClass().equals(other.getClass())) {
-
 
6963
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6964
      }
-
 
6965
 
-
 
6966
      int lastComparison = 0;
-
 
6967
      getScan_result typedOther = (getScan_result)other;
-
 
6968
 
-
 
6969
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
6970
      if (lastComparison != 0) {
-
 
6971
        return lastComparison;
-
 
6972
      }
-
 
6973
      if (isSetSuccess()) {
-
 
6974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
6975
        if (lastComparison != 0) {
-
 
6976
          return lastComparison;
-
 
6977
        }
-
 
6978
      }
-
 
6979
      return 0;
-
 
6980
    }
-
 
6981
 
-
 
6982
    public _Fields fieldForId(int fieldId) {
-
 
6983
      return _Fields.findByThriftId(fieldId);
-
 
6984
    }
-
 
6985
 
-
 
6986
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6987
      org.apache.thrift.protocol.TField field;
-
 
6988
      iprot.readStructBegin();
-
 
6989
      while (true)
-
 
6990
      {
-
 
6991
        field = iprot.readFieldBegin();
-
 
6992
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6993
          break;
-
 
6994
        }
-
 
6995
        switch (field.id) {
-
 
6996
          case 0: // SUCCESS
-
 
6997
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
6998
              {
-
 
6999
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
-
 
7000
                this.success = new ArrayList<Scan>(_list12.size);
-
 
7001
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
-
 
7002
                {
-
 
7003
                  Scan _elem14; // required
-
 
7004
                  _elem14 = new Scan();
-
 
7005
                  _elem14.read(iprot);
-
 
7006
                  this.success.add(_elem14);
-
 
7007
                }
-
 
7008
                iprot.readListEnd();
-
 
7009
              }
-
 
7010
            } else { 
-
 
7011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7012
            }
-
 
7013
            break;
-
 
7014
          default:
-
 
7015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7016
        }
-
 
7017
        iprot.readFieldEnd();
-
 
7018
      }
-
 
7019
      iprot.readStructEnd();
-
 
7020
      validate();
-
 
7021
    }
-
 
7022
 
-
 
7023
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7024
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7025
 
-
 
7026
      if (this.isSetSuccess()) {
-
 
7027
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7028
        {
-
 
7029
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
7030
          for (Scan _iter15 : this.success)
-
 
7031
          {
-
 
7032
            _iter15.write(oprot);
-
 
7033
          }
-
 
7034
          oprot.writeListEnd();
-
 
7035
        }
-
 
7036
        oprot.writeFieldEnd();
-
 
7037
      }
-
 
7038
      oprot.writeFieldStop();
-
 
7039
      oprot.writeStructEnd();
-
 
7040
    }
-
 
7041
 
-
 
7042
    @Override
-
 
7043
    public String toString() {
-
 
7044
      StringBuilder sb = new StringBuilder("getScan_result(");
-
 
7045
      boolean first = true;
-
 
7046
 
-
 
7047
      sb.append("success:");
-
 
7048
      if (this.success == null) {
-
 
7049
        sb.append("null");
-
 
7050
      } else {
-
 
7051
        sb.append(this.success);
-
 
7052
      }
-
 
7053
      first = false;
-
 
7054
      sb.append(")");
-
 
7055
      return sb.toString();
-
 
7056
    }
-
 
7057
 
-
 
7058
    public void validate() throws org.apache.thrift.TException {
-
 
7059
      // check for required fields
-
 
7060
    }
-
 
7061
 
-
 
7062
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7063
      try {
-
 
7064
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7065
      } catch (org.apache.thrift.TException te) {
-
 
7066
        throw new java.io.IOException(te);
-
 
7067
      }
-
 
7068
    }
-
 
7069
 
-
 
7070
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7071
      try {
-
 
7072
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7073
      } catch (org.apache.thrift.TException te) {
-
 
7074
        throw new java.io.IOException(te);
-
 
7075
      }
-
 
7076
    }
-
 
7077
 
-
 
7078
  }
-
 
7079
 
-
 
7080
  public static class scanSerializedItem_args implements org.apache.thrift.TBase<scanSerializedItem_args, scanSerializedItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
7081
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_args");
-
 
7082
 
-
 
7083
    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);
-
 
7084
    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);
-
 
7085
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
7086
 
-
 
7087
    private long inventoryItemId; // required
-
 
7088
    private ScanType type; // required
-
 
7089
    private long warehouseId; // required
-
 
7090
 
-
 
7091
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7092
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7093
      INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
-
 
7094
      /**
-
 
7095
       * 
-
 
7096
       * @see ScanType
-
 
7097
       */
-
 
7098
      TYPE((short)2, "type"),
-
 
7099
      WAREHOUSE_ID((short)3, "warehouseId");
-
 
7100
 
-
 
7101
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7102
 
-
 
7103
      static {
-
 
7104
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7105
          byName.put(field.getFieldName(), field);
-
 
7106
        }
-
 
7107
      }
-
 
7108
 
-
 
7109
      /**
-
 
7110
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7111
       */
-
 
7112
      public static _Fields findByThriftId(int fieldId) {
-
 
7113
        switch(fieldId) {
-
 
7114
          case 1: // INVENTORY_ITEM_ID
-
 
7115
            return INVENTORY_ITEM_ID;
-
 
7116
          case 2: // TYPE
-
 
7117
            return TYPE;
-
 
7118
          case 3: // WAREHOUSE_ID
-
 
7119
            return WAREHOUSE_ID;
-
 
7120
          default:
-
 
7121
            return null;
-
 
7122
        }
-
 
7123
      }
-
 
7124
 
-
 
7125
      /**
-
 
7126
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7127
       * if it is not found.
-
 
7128
       */
-
 
7129
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7130
        _Fields fields = findByThriftId(fieldId);
-
 
7131
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7132
        return fields;
-
 
7133
      }
-
 
7134
 
-
 
7135
      /**
-
 
7136
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7137
       */
-
 
7138
      public static _Fields findByName(String name) {
-
 
7139
        return byName.get(name);
-
 
7140
      }
-
 
7141
 
-
 
7142
      private final short _thriftId;
-
 
7143
      private final String _fieldName;
-
 
7144
 
-
 
7145
      _Fields(short thriftId, String fieldName) {
-
 
7146
        _thriftId = thriftId;
-
 
7147
        _fieldName = fieldName;
-
 
7148
      }
-
 
7149
 
-
 
7150
      public short getThriftFieldId() {
-
 
7151
        return _thriftId;
-
 
7152
      }
-
 
7153
 
-
 
7154
      public String getFieldName() {
-
 
7155
        return _fieldName;
-
 
7156
      }
-
 
7157
    }
-
 
7158
 
-
 
7159
    // isset id assignments
-
 
7160
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
-
 
7161
    private static final int __WAREHOUSEID_ISSET_ID = 1;
-
 
7162
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
7163
 
-
 
7164
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7165
    static {
-
 
7166
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7167
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
7169
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7170
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
7171
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
7173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_args.class, metaDataMap);
-
 
7175
    }
-
 
7176
 
-
 
7177
    public scanSerializedItem_args() {
-
 
7178
    }
-
 
7179
 
-
 
7180
    public scanSerializedItem_args(
-
 
7181
      long inventoryItemId,
-
 
7182
      ScanType type,
-
 
7183
      long warehouseId)
-
 
7184
    {
-
 
7185
      this();
-
 
7186
      this.inventoryItemId = inventoryItemId;
-
 
7187
      setInventoryItemIdIsSet(true);
-
 
7188
      this.type = type;
-
 
7189
      this.warehouseId = warehouseId;
-
 
7190
      setWarehouseIdIsSet(true);
-
 
7191
    }
-
 
7192
 
-
 
7193
    /**
-
 
7194
     * Performs a deep copy on <i>other</i>.
-
 
7195
     */
-
 
7196
    public scanSerializedItem_args(scanSerializedItem_args other) {
-
 
7197
      __isset_bit_vector.clear();
-
 
7198
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7199
      this.inventoryItemId = other.inventoryItemId;
-
 
7200
      if (other.isSetType()) {
-
 
7201
        this.type = other.type;
-
 
7202
      }
-
 
7203
      this.warehouseId = other.warehouseId;
-
 
7204
    }
-
 
7205
 
-
 
7206
    public scanSerializedItem_args deepCopy() {
-
 
7207
      return new scanSerializedItem_args(this);
-
 
7208
    }
-
 
7209
 
-
 
7210
    @Override
-
 
7211
    public void clear() {
-
 
7212
      setInventoryItemIdIsSet(false);
-
 
7213
      this.inventoryItemId = 0;
-
 
7214
      this.type = null;
-
 
7215
      setWarehouseIdIsSet(false);
-
 
7216
      this.warehouseId = 0;
-
 
7217
    }
-
 
7218
 
-
 
7219
    public long getInventoryItemId() {
-
 
7220
      return this.inventoryItemId;
-
 
7221
    }
-
 
7222
 
-
 
7223
    public void setInventoryItemId(long inventoryItemId) {
-
 
7224
      this.inventoryItemId = inventoryItemId;
-
 
7225
      setInventoryItemIdIsSet(true);
-
 
7226
    }
-
 
7227
 
-
 
7228
    public void unsetInventoryItemId() {
-
 
7229
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
-
 
7230
    }
-
 
7231
 
-
 
7232
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
-
 
7233
    public boolean isSetInventoryItemId() {
-
 
7234
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
-
 
7235
    }
-
 
7236
 
-
 
7237
    public void setInventoryItemIdIsSet(boolean value) {
-
 
7238
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
-
 
7239
    }
-
 
7240
 
-
 
7241
    /**
-
 
7242
     * 
-
 
7243
     * @see ScanType
-
 
7244
     */
-
 
7245
    public ScanType getType() {
-
 
7246
      return this.type;
-
 
7247
    }
-
 
7248
 
-
 
7249
    /**
-
 
7250
     * 
-
 
7251
     * @see ScanType
-
 
7252
     */
-
 
7253
    public void setType(ScanType type) {
-
 
7254
      this.type = type;
-
 
7255
    }
-
 
7256
 
-
 
7257
    public void unsetType() {
-
 
7258
      this.type = null;
-
 
7259
    }
-
 
7260
 
-
 
7261
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
7262
    public boolean isSetType() {
-
 
7263
      return this.type != null;
-
 
7264
    }
-
 
7265
 
-
 
7266
    public void setTypeIsSet(boolean value) {
-
 
7267
      if (!value) {
-
 
7268
        this.type = null;
-
 
7269
      }
-
 
7270
    }
-
 
7271
 
-
 
7272
    public long getWarehouseId() {
-
 
7273
      return this.warehouseId;
-
 
7274
    }
-
 
7275
 
-
 
7276
    public void setWarehouseId(long warehouseId) {
-
 
7277
      this.warehouseId = warehouseId;
-
 
7278
      setWarehouseIdIsSet(true);
-
 
7279
    }
-
 
7280
 
-
 
7281
    public void unsetWarehouseId() {
-
 
7282
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
7283
    }
-
 
7284
 
-
 
7285
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
7286
    public boolean isSetWarehouseId() {
-
 
7287
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
7288
    }
-
 
7289
 
-
 
7290
    public void setWarehouseIdIsSet(boolean value) {
4953
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
7291
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
7292
    }
-
 
7293
 
-
 
7294
    public void setFieldValue(_Fields field, Object value) {
-
 
7295
      switch (field) {
-
 
7296
      case INVENTORY_ITEM_ID:
-
 
7297
        if (value == null) {
-
 
7298
          unsetInventoryItemId();
-
 
7299
        } else {
-
 
7300
          setInventoryItemId((Long)value);
-
 
7301
        }
-
 
7302
        break;
-
 
7303
 
-
 
7304
      case TYPE:
-
 
7305
        if (value == null) {
-
 
7306
          unsetType();
-
 
7307
        } else {
-
 
7308
          setType((ScanType)value);
-
 
7309
        }
-
 
7310
        break;
-
 
7311
 
-
 
7312
      case WAREHOUSE_ID:
-
 
7313
        if (value == null) {
-
 
7314
          unsetWarehouseId();
-
 
7315
        } else {
-
 
7316
          setWarehouseId((Long)value);
-
 
7317
        }
-
 
7318
        break;
-
 
7319
 
-
 
7320
      }
-
 
7321
    }
-
 
7322
 
-
 
7323
    public Object getFieldValue(_Fields field) {
-
 
7324
      switch (field) {
-
 
7325
      case INVENTORY_ITEM_ID:
-
 
7326
        return Long.valueOf(getInventoryItemId());
-
 
7327
 
-
 
7328
      case TYPE:
-
 
7329
        return getType();
-
 
7330
 
-
 
7331
      case WAREHOUSE_ID:
-
 
7332
        return Long.valueOf(getWarehouseId());
-
 
7333
 
-
 
7334
      }
-
 
7335
      throw new IllegalStateException();
-
 
7336
    }
-
 
7337
 
-
 
7338
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7339
    public boolean isSet(_Fields field) {
-
 
7340
      if (field == null) {
-
 
7341
        throw new IllegalArgumentException();
-
 
7342
      }
-
 
7343
 
-
 
7344
      switch (field) {
-
 
7345
      case INVENTORY_ITEM_ID:
-
 
7346
        return isSetInventoryItemId();
-
 
7347
      case TYPE:
-
 
7348
        return isSetType();
-
 
7349
      case WAREHOUSE_ID:
-
 
7350
        return isSetWarehouseId();
-
 
7351
      }
-
 
7352
      throw new IllegalStateException();
-
 
7353
    }
-
 
7354
 
-
 
7355
    @Override
-
 
7356
    public boolean equals(Object that) {
-
 
7357
      if (that == null)
-
 
7358
        return false;
-
 
7359
      if (that instanceof scanSerializedItem_args)
-
 
7360
        return this.equals((scanSerializedItem_args)that);
-
 
7361
      return false;
-
 
7362
    }
-
 
7363
 
-
 
7364
    public boolean equals(scanSerializedItem_args that) {
-
 
7365
      if (that == null)
-
 
7366
        return false;
-
 
7367
 
-
 
7368
      boolean this_present_inventoryItemId = true;
-
 
7369
      boolean that_present_inventoryItemId = true;
-
 
7370
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
-
 
7371
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
-
 
7372
          return false;
-
 
7373
        if (this.inventoryItemId != that.inventoryItemId)
-
 
7374
          return false;
-
 
7375
      }
-
 
7376
 
-
 
7377
      boolean this_present_type = true && this.isSetType();
-
 
7378
      boolean that_present_type = true && that.isSetType();
-
 
7379
      if (this_present_type || that_present_type) {
-
 
7380
        if (!(this_present_type && that_present_type))
-
 
7381
          return false;
-
 
7382
        if (!this.type.equals(that.type))
-
 
7383
          return false;
-
 
7384
      }
-
 
7385
 
-
 
7386
      boolean this_present_warehouseId = true;
-
 
7387
      boolean that_present_warehouseId = true;
-
 
7388
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
7389
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
7390
          return false;
-
 
7391
        if (this.warehouseId != that.warehouseId)
-
 
7392
          return false;
-
 
7393
      }
-
 
7394
 
-
 
7395
      return true;
-
 
7396
    }
-
 
7397
 
-
 
7398
    @Override
-
 
7399
    public int hashCode() {
-
 
7400
      return 0;
-
 
7401
    }
-
 
7402
 
-
 
7403
    public int compareTo(scanSerializedItem_args other) {
-
 
7404
      if (!getClass().equals(other.getClass())) {
-
 
7405
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7406
      }
-
 
7407
 
-
 
7408
      int lastComparison = 0;
-
 
7409
      scanSerializedItem_args typedOther = (scanSerializedItem_args)other;
-
 
7410
 
-
 
7411
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
-
 
7412
      if (lastComparison != 0) {
-
 
7413
        return lastComparison;
-
 
7414
      }
-
 
7415
      if (isSetInventoryItemId()) {
-
 
7416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
-
 
7417
        if (lastComparison != 0) {
-
 
7418
          return lastComparison;
-
 
7419
        }
-
 
7420
      }
-
 
7421
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
7422
      if (lastComparison != 0) {
-
 
7423
        return lastComparison;
-
 
7424
      }
-
 
7425
      if (isSetType()) {
-
 
7426
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
7427
        if (lastComparison != 0) {
-
 
7428
          return lastComparison;
-
 
7429
        }
-
 
7430
      }
-
 
7431
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
7432
      if (lastComparison != 0) {
-
 
7433
        return lastComparison;
-
 
7434
      }
-
 
7435
      if (isSetWarehouseId()) {
-
 
7436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
7437
        if (lastComparison != 0) {
-
 
7438
          return lastComparison;
-
 
7439
        }
-
 
7440
      }
-
 
7441
      return 0;
-
 
7442
    }
-
 
7443
 
-
 
7444
    public _Fields fieldForId(int fieldId) {
-
 
7445
      return _Fields.findByThriftId(fieldId);
-
 
7446
    }
-
 
7447
 
-
 
7448
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7449
      org.apache.thrift.protocol.TField field;
-
 
7450
      iprot.readStructBegin();
-
 
7451
      while (true)
-
 
7452
      {
-
 
7453
        field = iprot.readFieldBegin();
-
 
7454
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
7455
          break;
-
 
7456
        }
-
 
7457
        switch (field.id) {
-
 
7458
          case 1: // INVENTORY_ITEM_ID
-
 
7459
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
7460
              this.inventoryItemId = iprot.readI64();
-
 
7461
              setInventoryItemIdIsSet(true);
-
 
7462
            } else { 
-
 
7463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7464
            }
-
 
7465
            break;
-
 
7466
          case 2: // TYPE
-
 
7467
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
7468
              this.type = ScanType.findByValue(iprot.readI32());
-
 
7469
            } else { 
-
 
7470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7471
            }
-
 
7472
            break;
-
 
7473
          case 3: // WAREHOUSE_ID
-
 
7474
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
7475
              this.warehouseId = iprot.readI64();
-
 
7476
              setWarehouseIdIsSet(true);
-
 
7477
            } else { 
-
 
7478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7479
            }
-
 
7480
            break;
-
 
7481
          default:
-
 
7482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7483
        }
-
 
7484
        iprot.readFieldEnd();
-
 
7485
      }
-
 
7486
      iprot.readStructEnd();
-
 
7487
      validate();
-
 
7488
    }
-
 
7489
 
-
 
7490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7491
      validate();
-
 
7492
 
-
 
7493
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7494
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
-
 
7495
      oprot.writeI64(this.inventoryItemId);
-
 
7496
      oprot.writeFieldEnd();
-
 
7497
      if (this.type != null) {
-
 
7498
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
7499
        oprot.writeI32(this.type.getValue());
-
 
7500
        oprot.writeFieldEnd();
-
 
7501
      }
-
 
7502
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
7503
      oprot.writeI64(this.warehouseId);
-
 
7504
      oprot.writeFieldEnd();
-
 
7505
      oprot.writeFieldStop();
-
 
7506
      oprot.writeStructEnd();
-
 
7507
    }
-
 
7508
 
-
 
7509
    @Override
-
 
7510
    public String toString() {
-
 
7511
      StringBuilder sb = new StringBuilder("scanSerializedItem_args(");
-
 
7512
      boolean first = true;
-
 
7513
 
-
 
7514
      sb.append("inventoryItemId:");
-
 
7515
      sb.append(this.inventoryItemId);
-
 
7516
      first = false;
-
 
7517
      if (!first) sb.append(", ");
-
 
7518
      sb.append("type:");
-
 
7519
      if (this.type == null) {
-
 
7520
        sb.append("null");
-
 
7521
      } else {
-
 
7522
        sb.append(this.type);
-
 
7523
      }
-
 
7524
      first = false;
-
 
7525
      if (!first) sb.append(", ");
-
 
7526
      sb.append("warehouseId:");
-
 
7527
      sb.append(this.warehouseId);
-
 
7528
      first = false;
-
 
7529
      sb.append(")");
-
 
7530
      return sb.toString();
-
 
7531
    }
-
 
7532
 
-
 
7533
    public void validate() throws org.apache.thrift.TException {
-
 
7534
      // check for required fields
-
 
7535
    }
-
 
7536
 
-
 
7537
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7538
      try {
-
 
7539
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7540
      } catch (org.apache.thrift.TException te) {
-
 
7541
        throw new java.io.IOException(te);
-
 
7542
      }
-
 
7543
    }
-
 
7544
 
-
 
7545
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7546
      try {
-
 
7547
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
7548
        __isset_bit_vector = new BitSet(1);
-
 
7549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7550
      } catch (org.apache.thrift.TException te) {
-
 
7551
        throw new java.io.IOException(te);
-
 
7552
      }
-
 
7553
    }
-
 
7554
 
-
 
7555
  }
-
 
7556
 
-
 
7557
  public static class scanSerializedItem_result implements org.apache.thrift.TBase<scanSerializedItem_result, scanSerializedItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
7558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_result");
-
 
7559
 
-
 
7560
    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);
-
 
7561
 
-
 
7562
    private WarehouseServiceException wex; // required
-
 
7563
 
-
 
7564
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7565
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7566
      WEX((short)1, "wex");
-
 
7567
 
-
 
7568
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7569
 
-
 
7570
      static {
-
 
7571
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7572
          byName.put(field.getFieldName(), field);
-
 
7573
        }
-
 
7574
      }
-
 
7575
 
-
 
7576
      /**
-
 
7577
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7578
       */
-
 
7579
      public static _Fields findByThriftId(int fieldId) {
-
 
7580
        switch(fieldId) {
-
 
7581
          case 1: // WEX
-
 
7582
            return WEX;
-
 
7583
          default:
-
 
7584
            return null;
-
 
7585
        }
-
 
7586
      }
-
 
7587
 
-
 
7588
      /**
-
 
7589
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7590
       * if it is not found.
-
 
7591
       */
-
 
7592
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7593
        _Fields fields = findByThriftId(fieldId);
-
 
7594
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7595
        return fields;
-
 
7596
      }
-
 
7597
 
-
 
7598
      /**
-
 
7599
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7600
       */
-
 
7601
      public static _Fields findByName(String name) {
-
 
7602
        return byName.get(name);
-
 
7603
      }
-
 
7604
 
-
 
7605
      private final short _thriftId;
-
 
7606
      private final String _fieldName;
-
 
7607
 
-
 
7608
      _Fields(short thriftId, String fieldName) {
-
 
7609
        _thriftId = thriftId;
-
 
7610
        _fieldName = fieldName;
-
 
7611
      }
-
 
7612
 
-
 
7613
      public short getThriftFieldId() {
-
 
7614
        return _thriftId;
-
 
7615
      }
-
 
7616
 
-
 
7617
      public String getFieldName() {
-
 
7618
        return _fieldName;
-
 
7619
      }
-
 
7620
    }
-
 
7621
 
-
 
7622
    // isset id assignments
-
 
7623
 
-
 
7624
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7625
    static {
-
 
7626
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7627
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7628
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
7629
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7630
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_result.class, metaDataMap);
-
 
7631
    }
-
 
7632
 
-
 
7633
    public scanSerializedItem_result() {
-
 
7634
    }
-
 
7635
 
-
 
7636
    public scanSerializedItem_result(
-
 
7637
      WarehouseServiceException wex)
-
 
7638
    {
-
 
7639
      this();
-
 
7640
      this.wex = wex;
-
 
7641
    }
-
 
7642
 
-
 
7643
    /**
-
 
7644
     * Performs a deep copy on <i>other</i>.
-
 
7645
     */
-
 
7646
    public scanSerializedItem_result(scanSerializedItem_result other) {
-
 
7647
      if (other.isSetWex()) {
-
 
7648
        this.wex = new WarehouseServiceException(other.wex);
-
 
7649
      }
-
 
7650
    }
-
 
7651
 
-
 
7652
    public scanSerializedItem_result deepCopy() {
-
 
7653
      return new scanSerializedItem_result(this);
-
 
7654
    }
-
 
7655
 
-
 
7656
    @Override
-
 
7657
    public void clear() {
-
 
7658
      this.wex = null;
4954
    }
7659
    }
4955
 
7660
 
4956
    public WarehouseServiceException getWex() {
7661
    public WarehouseServiceException getWex() {
4957
      return this.wex;
7662
      return this.wex;
4958
    }
7663
    }
Line 4976... Line 7681...
4976
      }
7681
      }
4977
    }
7682
    }
4978
 
7683
 
4979
    public void setFieldValue(_Fields field, Object value) {
7684
    public void setFieldValue(_Fields field, Object value) {
4980
      switch (field) {
7685
      switch (field) {
4981
      case SUCCESS:
-
 
4982
        if (value == null) {
-
 
4983
          unsetSuccess();
-
 
4984
        } else {
-
 
4985
          setSuccess((Long)value);
-
 
4986
        }
-
 
4987
        break;
-
 
4988
 
-
 
4989
      case WEX:
7686
      case WEX:
4990
        if (value == null) {
7687
        if (value == null) {
4991
          unsetWex();
7688
          unsetWex();
4992
        } else {
7689
        } else {
4993
          setWex((WarehouseServiceException)value);
7690
          setWex((WarehouseServiceException)value);
Line 4997... Line 7694...
4997
      }
7694
      }
4998
    }
7695
    }
4999
 
7696
 
5000
    public Object getFieldValue(_Fields field) {
7697
    public Object getFieldValue(_Fields field) {
5001
      switch (field) {
7698
      switch (field) {
5002
      case SUCCESS:
-
 
5003
        return Long.valueOf(getSuccess());
-
 
5004
 
-
 
5005
      case WEX:
7699
      case WEX:
5006
        return getWex();
7700
        return getWex();
5007
 
7701
 
5008
      }
7702
      }
5009
      throw new IllegalStateException();
7703
      throw new IllegalStateException();
Line 5014... Line 7708...
5014
      if (field == null) {
7708
      if (field == null) {
5015
        throw new IllegalArgumentException();
7709
        throw new IllegalArgumentException();
5016
      }
7710
      }
5017
 
7711
 
5018
      switch (field) {
7712
      switch (field) {
5019
      case SUCCESS:
-
 
5020
        return isSetSuccess();
-
 
5021
      case WEX:
7713
      case WEX:
5022
        return isSetWex();
7714
        return isSetWex();
5023
      }
7715
      }
5024
      throw new IllegalStateException();
7716
      throw new IllegalStateException();
5025
    }
7717
    }
5026
 
7718
 
5027
    @Override
7719
    @Override
5028
    public boolean equals(Object that) {
7720
    public boolean equals(Object that) {
5029
      if (that == null)
7721
      if (that == null)
5030
        return false;
7722
        return false;
5031
      if (that instanceof closePurchase_result)
7723
      if (that instanceof scanSerializedItem_result)
5032
        return this.equals((closePurchase_result)that);
7724
        return this.equals((scanSerializedItem_result)that);
5033
      return false;
7725
      return false;
5034
    }
7726
    }
5035
 
7727
 
5036
    public boolean equals(closePurchase_result that) {
7728
    public boolean equals(scanSerializedItem_result that) {
5037
      if (that == null)
7729
      if (that == null)
5038
        return false;
7730
        return false;
5039
 
7731
 
5040
      boolean this_present_success = true;
-
 
5041
      boolean that_present_success = true;
-
 
5042
      if (this_present_success || that_present_success) {
-
 
5043
        if (!(this_present_success && that_present_success))
-
 
5044
          return false;
-
 
5045
        if (this.success != that.success)
-
 
5046
          return false;
-
 
5047
      }
-
 
5048
 
-
 
5049
      boolean this_present_wex = true && this.isSetWex();
7732
      boolean this_present_wex = true && this.isSetWex();
5050
      boolean that_present_wex = true && that.isSetWex();
7733
      boolean that_present_wex = true && that.isSetWex();
5051
      if (this_present_wex || that_present_wex) {
7734
      if (this_present_wex || that_present_wex) {
5052
        if (!(this_present_wex && that_present_wex))
7735
        if (!(this_present_wex && that_present_wex))
5053
          return false;
7736
          return false;
Line 5061... Line 7744...
5061
    @Override
7744
    @Override
5062
    public int hashCode() {
7745
    public int hashCode() {
5063
      return 0;
7746
      return 0;
5064
    }
7747
    }
5065
 
7748
 
5066
    public int compareTo(closePurchase_result other) {
7749
    public int compareTo(scanSerializedItem_result other) {
5067
      if (!getClass().equals(other.getClass())) {
7750
      if (!getClass().equals(other.getClass())) {
5068
        return getClass().getName().compareTo(other.getClass().getName());
7751
        return getClass().getName().compareTo(other.getClass().getName());
5069
      }
7752
      }
5070
 
7753
 
5071
      int lastComparison = 0;
7754
      int lastComparison = 0;
5072
      closePurchase_result typedOther = (closePurchase_result)other;
7755
      scanSerializedItem_result typedOther = (scanSerializedItem_result)other;
5073
 
7756
 
5074
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
5075
      if (lastComparison != 0) {
-
 
5076
        return lastComparison;
-
 
5077
      }
-
 
5078
      if (isSetSuccess()) {
-
 
5079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
5080
        if (lastComparison != 0) {
-
 
5081
          return lastComparison;
-
 
5082
        }
-
 
5083
      }
-
 
5084
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
7757
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
5085
      if (lastComparison != 0) {
7758
      if (lastComparison != 0) {
5086
        return lastComparison;
7759
        return lastComparison;
5087
      }
7760
      }
5088
      if (isSetWex()) {
7761
      if (isSetWex()) {
Line 5106... Line 7779...
5106
        field = iprot.readFieldBegin();
7779
        field = iprot.readFieldBegin();
5107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7780
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5108
          break;
7781
          break;
5109
        }
7782
        }
5110
        switch (field.id) {
7783
        switch (field.id) {
5111
          case 0: // SUCCESS
-
 
5112
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5113
              this.success = iprot.readI64();
-
 
5114
              setSuccessIsSet(true);
-
 
5115
            } else { 
-
 
5116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5117
            }
-
 
5118
            break;
-
 
5119
          case 1: // WEX
7784
          case 1: // WEX
5120
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7785
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5121
              this.wex = new WarehouseServiceException();
7786
              this.wex = new WarehouseServiceException();
5122
              this.wex.read(iprot);
7787
              this.wex.read(iprot);
5123
            } else { 
7788
            } else { 
Line 5134... Line 7799...
5134
    }
7799
    }
5135
 
7800
 
5136
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7801
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5137
      oprot.writeStructBegin(STRUCT_DESC);
7802
      oprot.writeStructBegin(STRUCT_DESC);
5138
 
7803
 
5139
      if (this.isSetSuccess()) {
7804
      if (this.isSetWex()) {
5140
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5141
        oprot.writeI64(this.success);
-
 
5142
        oprot.writeFieldEnd();
-
 
5143
      } else if (this.isSetWex()) {
-
 
5144
        oprot.writeFieldBegin(WEX_FIELD_DESC);
7805
        oprot.writeFieldBegin(WEX_FIELD_DESC);
5145
        this.wex.write(oprot);
7806
        this.wex.write(oprot);
5146
        oprot.writeFieldEnd();
7807
        oprot.writeFieldEnd();
5147
      }
7808
      }
5148
      oprot.writeFieldStop();
7809
      oprot.writeFieldStop();
5149
      oprot.writeStructEnd();
7810
      oprot.writeStructEnd();
5150
    }
7811
    }
5151
 
7812
 
5152
    @Override
7813
    @Override
5153
    public String toString() {
7814
    public String toString() {
5154
      StringBuilder sb = new StringBuilder("closePurchase_result(");
7815
      StringBuilder sb = new StringBuilder("scanSerializedItem_result(");
5155
      boolean first = true;
7816
      boolean first = true;
5156
 
7817
 
5157
      sb.append("success:");
-
 
5158
      sb.append(this.success);
-
 
5159
      first = false;
-
 
5160
      if (!first) sb.append(", ");
-
 
5161
      sb.append("wex:");
7818
      sb.append("wex:");
5162
      if (this.wex == null) {
7819
      if (this.wex == null) {
5163
        sb.append("null");
7820
        sb.append("null");
5164
      } else {
7821
      } else {
5165
        sb.append(this.wex);
7822
        sb.append(this.wex);
Line 5189... Line 7846...
5189
      }
7846
      }
5190
    }
7847
    }
5191
 
7848
 
5192
  }
7849
  }
5193
 
7850
 
5194
  public static class getAllPurchases_args implements org.apache.thrift.TBase<getAllPurchases_args, getAllPurchases_args._Fields>, java.io.Serializable, Cloneable   {
7851
  public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable   {
5195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPurchases_args");
7852
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
5196
 
7853
 
5197
    private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
7854
    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);
5198
    private static final org.apache.thrift.protocol.TField OPEN_FIELD_DESC = new org.apache.thrift.protocol.TField("open", org.apache.thrift.protocol.TType.BOOL, (short)2);
7855
    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);
-
 
7856
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
7857
    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);
5199
 
7858
 
5200
    private long purchaseOrderId; // required
7859
    private long inventoryItemId; // required
5201
    private boolean open; // required
7860
    private ScanType type; // required
-
 
7861
    private long quantity; // required
-
 
7862
    private long warehouseId; // required
5202
 
7863
 
5203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7864
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7865
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5205
      PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
7866
      INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
-
 
7867
      /**
-
 
7868
       * 
-
 
7869
       * @see ScanType
-
 
7870
       */
5206
      OPEN((short)2, "open");
7871
      TYPE((short)2, "type"),
-
 
7872
      QUANTITY((short)3, "quantity"),
-
 
7873
      WAREHOUSE_ID((short)4, "warehouseId");
5207
 
7874
 
5208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5209
 
7876
 
5210
      static {
7877
      static {
5211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 5216... Line 7883...
5216
      /**
7883
      /**
5217
       * Find the _Fields constant that matches fieldId, or null if its not found.
7884
       * Find the _Fields constant that matches fieldId, or null if its not found.
5218
       */
7885
       */
5219
      public static _Fields findByThriftId(int fieldId) {
7886
      public static _Fields findByThriftId(int fieldId) {
5220
        switch(fieldId) {
7887
        switch(fieldId) {
5221
          case 1: // PURCHASE_ORDER_ID
7888
          case 1: // INVENTORY_ITEM_ID
5222
            return PURCHASE_ORDER_ID;
7889
            return INVENTORY_ITEM_ID;
5223
          case 2: // OPEN
7890
          case 2: // TYPE
5224
            return OPEN;
7891
            return TYPE;
-
 
7892
          case 3: // QUANTITY
-
 
7893
            return QUANTITY;
-
 
7894
          case 4: // WAREHOUSE_ID
-
 
7895
            return WAREHOUSE_ID;
5225
          default:
7896
          default:
5226
            return null;
7897
            return null;
5227
        }
7898
        }
5228
      }
7899
      }
5229
 
7900
 
Line 5260... Line 7931...
5260
        return _fieldName;
7931
        return _fieldName;
5261
      }
7932
      }
5262
    }
7933
    }
5263
 
7934
 
5264
    // isset id assignments
7935
    // isset id assignments
5265
    private static final int __PURCHASEORDERID_ISSET_ID = 0;
7936
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
5266
    private static final int __OPEN_ISSET_ID = 1;
7937
    private static final int __QUANTITY_ISSET_ID = 1;
-
 
7938
    private static final int __WAREHOUSEID_ISSET_ID = 2;
5267
    private BitSet __isset_bit_vector = new BitSet(2);
7939
    private BitSet __isset_bit_vector = new BitSet(3);
5268
 
7940
 
5269
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7941
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5270
    static {
7942
    static {
5271
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7943
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7944
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7945
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
7946
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7947
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
7948
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7949
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5272
      tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7950
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5274
      tmpMap.put(_Fields.OPEN, new org.apache.thrift.meta_data.FieldMetaData("open", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
5276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7952
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPurchases_args.class, metaDataMap);
7953
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
5278
    }
7954
    }
5279
 
7955
 
5280
    public getAllPurchases_args() {
7956
    public scan_args() {
5281
    }
7957
    }
5282
 
7958
 
5283
    public getAllPurchases_args(
7959
    public scan_args(
5284
      long purchaseOrderId,
7960
      long inventoryItemId,
-
 
7961
      ScanType type,
-
 
7962
      long quantity,
5285
      boolean open)
7963
      long warehouseId)
5286
    {
7964
    {
5287
      this();
7965
      this();
5288
      this.purchaseOrderId = purchaseOrderId;
7966
      this.inventoryItemId = inventoryItemId;
5289
      setPurchaseOrderIdIsSet(true);
7967
      setInventoryItemIdIsSet(true);
5290
      this.open = open;
7968
      this.type = type;
-
 
7969
      this.quantity = quantity;
5291
      setOpenIsSet(true);
7970
      setQuantityIsSet(true);
-
 
7971
      this.warehouseId = warehouseId;
-
 
7972
      setWarehouseIdIsSet(true);
5292
    }
7973
    }
5293
 
7974
 
5294
    /**
7975
    /**
5295
     * Performs a deep copy on <i>other</i>.
7976
     * Performs a deep copy on <i>other</i>.
5296
     */
7977
     */
5297
    public getAllPurchases_args(getAllPurchases_args other) {
7978
    public scan_args(scan_args other) {
5298
      __isset_bit_vector.clear();
7979
      __isset_bit_vector.clear();
5299
      __isset_bit_vector.or(other.__isset_bit_vector);
7980
      __isset_bit_vector.or(other.__isset_bit_vector);
5300
      this.purchaseOrderId = other.purchaseOrderId;
7981
      this.inventoryItemId = other.inventoryItemId;
-
 
7982
      if (other.isSetType()) {
5301
      this.open = other.open;
7983
        this.type = other.type;
-
 
7984
      }
-
 
7985
      this.quantity = other.quantity;
-
 
7986
      this.warehouseId = other.warehouseId;
5302
    }
7987
    }
5303
 
7988
 
5304
    public getAllPurchases_args deepCopy() {
7989
    public scan_args deepCopy() {
5305
      return new getAllPurchases_args(this);
7990
      return new scan_args(this);
5306
    }
7991
    }
5307
 
7992
 
5308
    @Override
7993
    @Override
5309
    public void clear() {
7994
    public void clear() {
5310
      setPurchaseOrderIdIsSet(false);
7995
      setInventoryItemIdIsSet(false);
5311
      this.purchaseOrderId = 0;
7996
      this.inventoryItemId = 0;
-
 
7997
      this.type = null;
5312
      setOpenIsSet(false);
7998
      setQuantityIsSet(false);
-
 
7999
      this.quantity = 0;
-
 
8000
      setWarehouseIdIsSet(false);
-
 
8001
      this.warehouseId = 0;
-
 
8002
    }
-
 
8003
 
-
 
8004
    public long getInventoryItemId() {
-
 
8005
      return this.inventoryItemId;
-
 
8006
    }
-
 
8007
 
-
 
8008
    public void setInventoryItemId(long inventoryItemId) {
-
 
8009
      this.inventoryItemId = inventoryItemId;
-
 
8010
      setInventoryItemIdIsSet(true);
-
 
8011
    }
-
 
8012
 
-
 
8013
    public void unsetInventoryItemId() {
-
 
8014
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
-
 
8015
    }
-
 
8016
 
-
 
8017
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
-
 
8018
    public boolean isSetInventoryItemId() {
-
 
8019
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
-
 
8020
    }
-
 
8021
 
-
 
8022
    public void setInventoryItemIdIsSet(boolean value) {
-
 
8023
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
-
 
8024
    }
-
 
8025
 
-
 
8026
    /**
-
 
8027
     * 
-
 
8028
     * @see ScanType
-
 
8029
     */
-
 
8030
    public ScanType getType() {
-
 
8031
      return this.type;
-
 
8032
    }
-
 
8033
 
-
 
8034
    /**
-
 
8035
     * 
-
 
8036
     * @see ScanType
-
 
8037
     */
-
 
8038
    public void setType(ScanType type) {
-
 
8039
      this.type = type;
-
 
8040
    }
-
 
8041
 
-
 
8042
    public void unsetType() {
5313
      this.open = false;
8043
      this.type = null;
-
 
8044
    }
-
 
8045
 
-
 
8046
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
8047
    public boolean isSetType() {
-
 
8048
      return this.type != null;
-
 
8049
    }
-
 
8050
 
-
 
8051
    public void setTypeIsSet(boolean value) {
-
 
8052
      if (!value) {
-
 
8053
        this.type = null;
-
 
8054
      }
5314
    }
8055
    }
5315
 
8056
 
5316
    public long getPurchaseOrderId() {
8057
    public long getQuantity() {
5317
      return this.purchaseOrderId;
8058
      return this.quantity;
5318
    }
8059
    }
5319
 
8060
 
5320
    public void setPurchaseOrderId(long purchaseOrderId) {
8061
    public void setQuantity(long quantity) {
5321
      this.purchaseOrderId = purchaseOrderId;
8062
      this.quantity = quantity;
5322
      setPurchaseOrderIdIsSet(true);
8063
      setQuantityIsSet(true);
5323
    }
8064
    }
5324
 
8065
 
5325
    public void unsetPurchaseOrderId() {
8066
    public void unsetQuantity() {
5326
      __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
8067
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
5327
    }
8068
    }
5328
 
8069
 
5329
    /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
8070
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
5330
    public boolean isSetPurchaseOrderId() {
8071
    public boolean isSetQuantity() {
5331
      return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
8072
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
5332
    }
8073
    }
5333
 
8074
 
5334
    public void setPurchaseOrderIdIsSet(boolean value) {
8075
    public void setQuantityIsSet(boolean value) {
5335
      __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
8076
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
5336
    }
8077
    }
5337
 
8078
 
5338
    public boolean isOpen() {
8079
    public long getWarehouseId() {
5339
      return this.open;
8080
      return this.warehouseId;
5340
    }
8081
    }
5341
 
8082
 
5342
    public void setOpen(boolean open) {
8083
    public void setWarehouseId(long warehouseId) {
5343
      this.open = open;
8084
      this.warehouseId = warehouseId;
5344
      setOpenIsSet(true);
8085
      setWarehouseIdIsSet(true);
5345
    }
8086
    }
5346
 
8087
 
5347
    public void unsetOpen() {
8088
    public void unsetWarehouseId() {
5348
      __isset_bit_vector.clear(__OPEN_ISSET_ID);
8089
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
5349
    }
8090
    }
5350
 
8091
 
5351
    /** Returns true if field open is set (has been assigned a value) and false otherwise */
8092
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
5352
    public boolean isSetOpen() {
8093
    public boolean isSetWarehouseId() {
5353
      return __isset_bit_vector.get(__OPEN_ISSET_ID);
8094
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
5354
    }
8095
    }
5355
 
8096
 
5356
    public void setOpenIsSet(boolean value) {
8097
    public void setWarehouseIdIsSet(boolean value) {
5357
      __isset_bit_vector.set(__OPEN_ISSET_ID, value);
8098
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
5358
    }
8099
    }
5359
 
8100
 
5360
    public void setFieldValue(_Fields field, Object value) {
8101
    public void setFieldValue(_Fields field, Object value) {
5361
      switch (field) {
8102
      switch (field) {
5362
      case PURCHASE_ORDER_ID:
8103
      case INVENTORY_ITEM_ID:
5363
        if (value == null) {
8104
        if (value == null) {
5364
          unsetPurchaseOrderId();
8105
          unsetInventoryItemId();
5365
        } else {
8106
        } else {
5366
          setPurchaseOrderId((Long)value);
8107
          setInventoryItemId((Long)value);
-
 
8108
        }
-
 
8109
        break;
-
 
8110
 
-
 
8111
      case TYPE:
-
 
8112
        if (value == null) {
-
 
8113
          unsetType();
-
 
8114
        } else {
-
 
8115
          setType((ScanType)value);
5367
        }
8116
        }
5368
        break;
8117
        break;
5369
 
8118
 
5370
      case OPEN:
8119
      case QUANTITY:
5371
        if (value == null) {
8120
        if (value == null) {
5372
          unsetOpen();
8121
          unsetQuantity();
5373
        } else {
8122
        } else {
5374
          setOpen((Boolean)value);
8123
          setQuantity((Long)value);
-
 
8124
        }
-
 
8125
        break;
-
 
8126
 
-
 
8127
      case WAREHOUSE_ID:
-
 
8128
        if (value == null) {
-
 
8129
          unsetWarehouseId();
-
 
8130
        } else {
-
 
8131
          setWarehouseId((Long)value);
5375
        }
8132
        }
5376
        break;
8133
        break;
5377
 
8134
 
5378
      }
8135
      }
5379
    }
8136
    }
5380
 
8137
 
5381
    public Object getFieldValue(_Fields field) {
8138
    public Object getFieldValue(_Fields field) {
5382
      switch (field) {
8139
      switch (field) {
5383
      case PURCHASE_ORDER_ID:
8140
      case INVENTORY_ITEM_ID:
5384
        return Long.valueOf(getPurchaseOrderId());
8141
        return Long.valueOf(getInventoryItemId());
-
 
8142
 
-
 
8143
      case TYPE:
-
 
8144
        return getType();
5385
 
8145
 
5386
      case OPEN:
8146
      case QUANTITY:
5387
        return Boolean.valueOf(isOpen());
8147
        return Long.valueOf(getQuantity());
-
 
8148
 
-
 
8149
      case WAREHOUSE_ID:
-
 
8150
        return Long.valueOf(getWarehouseId());
5388
 
8151
 
5389
      }
8152
      }
5390
      throw new IllegalStateException();
8153
      throw new IllegalStateException();
5391
    }
8154
    }
5392
 
8155
 
Line 5395... Line 8158...
5395
      if (field == null) {
8158
      if (field == null) {
5396
        throw new IllegalArgumentException();
8159
        throw new IllegalArgumentException();
5397
      }
8160
      }
5398
 
8161
 
5399
      switch (field) {
8162
      switch (field) {
5400
      case PURCHASE_ORDER_ID:
8163
      case INVENTORY_ITEM_ID:
5401
        return isSetPurchaseOrderId();
8164
        return isSetInventoryItemId();
5402
      case OPEN:
8165
      case TYPE:
5403
        return isSetOpen();
8166
        return isSetType();
-
 
8167
      case QUANTITY:
-
 
8168
        return isSetQuantity();
-
 
8169
      case WAREHOUSE_ID:
-
 
8170
        return isSetWarehouseId();
5404
      }
8171
      }
5405
      throw new IllegalStateException();
8172
      throw new IllegalStateException();
5406
    }
8173
    }
5407
 
8174
 
5408
    @Override
8175
    @Override
5409
    public boolean equals(Object that) {
8176
    public boolean equals(Object that) {
5410
      if (that == null)
8177
      if (that == null)
5411
        return false;
8178
        return false;
5412
      if (that instanceof getAllPurchases_args)
8179
      if (that instanceof scan_args)
5413
        return this.equals((getAllPurchases_args)that);
8180
        return this.equals((scan_args)that);
5414
      return false;
8181
      return false;
5415
    }
8182
    }
5416
 
8183
 
5417
    public boolean equals(getAllPurchases_args that) {
8184
    public boolean equals(scan_args that) {
5418
      if (that == null)
8185
      if (that == null)
5419
        return false;
8186
        return false;
5420
 
8187
 
5421
      boolean this_present_purchaseOrderId = true;
8188
      boolean this_present_inventoryItemId = true;
5422
      boolean that_present_purchaseOrderId = true;
8189
      boolean that_present_inventoryItemId = true;
5423
      if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
8190
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
5424
        if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
8191
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
-
 
8192
          return false;
-
 
8193
        if (this.inventoryItemId != that.inventoryItemId)
-
 
8194
          return false;
-
 
8195
      }
-
 
8196
 
-
 
8197
      boolean this_present_type = true && this.isSetType();
-
 
8198
      boolean that_present_type = true && that.isSetType();
-
 
8199
      if (this_present_type || that_present_type) {
-
 
8200
        if (!(this_present_type && that_present_type))
-
 
8201
          return false;
-
 
8202
        if (!this.type.equals(that.type))
-
 
8203
          return false;
-
 
8204
      }
-
 
8205
 
-
 
8206
      boolean this_present_quantity = true;
-
 
8207
      boolean that_present_quantity = true;
-
 
8208
      if (this_present_quantity || that_present_quantity) {
-
 
8209
        if (!(this_present_quantity && that_present_quantity))
5425
          return false;
8210
          return false;
5426
        if (this.purchaseOrderId != that.purchaseOrderId)
8211
        if (this.quantity != that.quantity)
5427
          return false;
8212
          return false;
5428
      }
8213
      }
5429
 
8214
 
5430
      boolean this_present_open = true;
8215
      boolean this_present_warehouseId = true;
5431
      boolean that_present_open = true;
8216
      boolean that_present_warehouseId = true;
5432
      if (this_present_open || that_present_open) {
8217
      if (this_present_warehouseId || that_present_warehouseId) {
5433
        if (!(this_present_open && that_present_open))
8218
        if (!(this_present_warehouseId && that_present_warehouseId))
5434
          return false;
8219
          return false;
5435
        if (this.open != that.open)
8220
        if (this.warehouseId != that.warehouseId)
5436
          return false;
8221
          return false;
5437
      }
8222
      }
5438
 
8223
 
5439
      return true;
8224
      return true;
5440
    }
8225
    }
Line 5442... Line 8227...
5442
    @Override
8227
    @Override
5443
    public int hashCode() {
8228
    public int hashCode() {
5444
      return 0;
8229
      return 0;
5445
    }
8230
    }
5446
 
8231
 
5447
    public int compareTo(getAllPurchases_args other) {
8232
    public int compareTo(scan_args other) {
5448
      if (!getClass().equals(other.getClass())) {
8233
      if (!getClass().equals(other.getClass())) {
5449
        return getClass().getName().compareTo(other.getClass().getName());
8234
        return getClass().getName().compareTo(other.getClass().getName());
5450
      }
8235
      }
5451
 
8236
 
5452
      int lastComparison = 0;
8237
      int lastComparison = 0;
5453
      getAllPurchases_args typedOther = (getAllPurchases_args)other;
8238
      scan_args typedOther = (scan_args)other;
5454
 
8239
 
5455
      lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
8240
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
-
 
8241
      if (lastComparison != 0) {
-
 
8242
        return lastComparison;
-
 
8243
      }
-
 
8244
      if (isSetInventoryItemId()) {
-
 
8245
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
-
 
8246
        if (lastComparison != 0) {
-
 
8247
          return lastComparison;
-
 
8248
        }
-
 
8249
      }
-
 
8250
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
5456
      if (lastComparison != 0) {
8251
      if (lastComparison != 0) {
5457
        return lastComparison;
8252
        return lastComparison;
5458
      }
8253
      }
-
 
8254
      if (isSetType()) {
-
 
8255
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
8256
        if (lastComparison != 0) {
-
 
8257
          return lastComparison;
-
 
8258
        }
-
 
8259
      }
-
 
8260
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
8261
      if (lastComparison != 0) {
-
 
8262
        return lastComparison;
-
 
8263
      }
5459
      if (isSetPurchaseOrderId()) {
8264
      if (isSetQuantity()) {
5460
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
8265
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
5461
        if (lastComparison != 0) {
8266
        if (lastComparison != 0) {
5462
          return lastComparison;
8267
          return lastComparison;
5463
        }
8268
        }
5464
      }
8269
      }
5465
      lastComparison = Boolean.valueOf(isSetOpen()).compareTo(typedOther.isSetOpen());
8270
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
5466
      if (lastComparison != 0) {
8271
      if (lastComparison != 0) {
5467
        return lastComparison;
8272
        return lastComparison;
5468
      }
8273
      }
5469
      if (isSetOpen()) {
8274
      if (isSetWarehouseId()) {
5470
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open, typedOther.open);
8275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
5471
        if (lastComparison != 0) {
8276
        if (lastComparison != 0) {
5472
          return lastComparison;
8277
          return lastComparison;
5473
        }
8278
        }
5474
      }
8279
      }
5475
      return 0;
8280
      return 0;
Line 5487... Line 8292...
5487
        field = iprot.readFieldBegin();
8292
        field = iprot.readFieldBegin();
5488
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5489
          break;
8294
          break;
5490
        }
8295
        }
5491
        switch (field.id) {
8296
        switch (field.id) {
5492
          case 1: // PURCHASE_ORDER_ID
8297
          case 1: // INVENTORY_ITEM_ID
-
 
8298
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8299
              this.inventoryItemId = iprot.readI64();
-
 
8300
              setInventoryItemIdIsSet(true);
-
 
8301
            } else { 
-
 
8302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8303
            }
-
 
8304
            break;
-
 
8305
          case 2: // TYPE
-
 
8306
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
8307
              this.type = ScanType.findByValue(iprot.readI32());
-
 
8308
            } else { 
-
 
8309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8310
            }
-
 
8311
            break;
-
 
8312
          case 3: // QUANTITY
5493
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8313
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5494
              this.purchaseOrderId = iprot.readI64();
8314
              this.quantity = iprot.readI64();
5495
              setPurchaseOrderIdIsSet(true);
8315
              setQuantityIsSet(true);
5496
            } else { 
8316
            } else { 
5497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5498
            }
8318
            }
5499
            break;
8319
            break;
5500
          case 2: // OPEN
8320
          case 4: // WAREHOUSE_ID
5501
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
8321
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5502
              this.open = iprot.readBool();
8322
              this.warehouseId = iprot.readI64();
5503
              setOpenIsSet(true);
8323
              setWarehouseIdIsSet(true);
5504
            } else { 
8324
            } else { 
5505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5506
            }
8326
            }
5507
            break;
8327
            break;
5508
          default:
8328
          default:
Line 5516... Line 8336...
5516
 
8336
 
5517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8337
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5518
      validate();
8338
      validate();
5519
 
8339
 
5520
      oprot.writeStructBegin(STRUCT_DESC);
8340
      oprot.writeStructBegin(STRUCT_DESC);
5521
      oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
8341
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
5522
      oprot.writeI64(this.purchaseOrderId);
8342
      oprot.writeI64(this.inventoryItemId);
-
 
8343
      oprot.writeFieldEnd();
-
 
8344
      if (this.type != null) {
-
 
8345
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
8346
        oprot.writeI32(this.type.getValue());
-
 
8347
        oprot.writeFieldEnd();
-
 
8348
      }
-
 
8349
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
8350
      oprot.writeI64(this.quantity);
5523
      oprot.writeFieldEnd();
8351
      oprot.writeFieldEnd();
5524
      oprot.writeFieldBegin(OPEN_FIELD_DESC);
8352
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
5525
      oprot.writeBool(this.open);
8353
      oprot.writeI64(this.warehouseId);
5526
      oprot.writeFieldEnd();
8354
      oprot.writeFieldEnd();
5527
      oprot.writeFieldStop();
8355
      oprot.writeFieldStop();
5528
      oprot.writeStructEnd();
8356
      oprot.writeStructEnd();
5529
    }
8357
    }
5530
 
8358
 
5531
    @Override
8359
    @Override
5532
    public String toString() {
8360
    public String toString() {
5533
      StringBuilder sb = new StringBuilder("getAllPurchases_args(");
8361
      StringBuilder sb = new StringBuilder("scan_args(");
5534
      boolean first = true;
8362
      boolean first = true;
5535
 
8363
 
5536
      sb.append("purchaseOrderId:");
8364
      sb.append("inventoryItemId:");
5537
      sb.append(this.purchaseOrderId);
8365
      sb.append(this.inventoryItemId);
-
 
8366
      first = false;
-
 
8367
      if (!first) sb.append(", ");
-
 
8368
      sb.append("type:");
-
 
8369
      if (this.type == null) {
-
 
8370
        sb.append("null");
-
 
8371
      } else {
-
 
8372
        sb.append(this.type);
-
 
8373
      }
-
 
8374
      first = false;
-
 
8375
      if (!first) sb.append(", ");
-
 
8376
      sb.append("quantity:");
-
 
8377
      sb.append(this.quantity);
5538
      first = false;
8378
      first = false;
5539
      if (!first) sb.append(", ");
8379
      if (!first) sb.append(", ");
5540
      sb.append("open:");
8380
      sb.append("warehouseId:");
5541
      sb.append(this.open);
8381
      sb.append(this.warehouseId);
5542
      first = false;
8382
      first = false;
5543
      sb.append(")");
8383
      sb.append(")");
5544
      return sb.toString();
8384
      return sb.toString();
5545
    }
8385
    }
5546
 
8386
 
Line 5556... Line 8396...
5556
      }
8396
      }
5557
    }
8397
    }
5558
 
8398
 
5559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5560
      try {
8400
      try {
-
 
8401
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8402
        __isset_bit_vector = new BitSet(1);
5561
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8403
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5562
      } catch (org.apache.thrift.TException te) {
8404
      } catch (org.apache.thrift.TException te) {
5563
        throw new java.io.IOException(te);
8405
        throw new java.io.IOException(te);
5564
      }
8406
      }
5565
    }
8407
    }
5566
 
8408
 
5567
  }
8409
  }
5568
 
8410
 
5569
  public static class getAllPurchases_result implements org.apache.thrift.TBase<getAllPurchases_result, getAllPurchases_result._Fields>, java.io.Serializable, Cloneable   {
8411
  public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable   {
5570
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPurchases_result");
8412
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
5571
 
8413
 
5572
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
5573
    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);
8414
    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);
5574
 
8415
 
5575
    private List<Purchase> success; // required
-
 
5576
    private WarehouseServiceException wex; // required
8416
    private WarehouseServiceException wex; // required
5577
 
8417
 
5578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8418
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8419
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5580
      SUCCESS((short)0, "success"),
-
 
5581
      WEX((short)1, "wex");
8420
      WEX((short)1, "wex");
5582
 
8421
 
5583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8422
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5584
 
8423
 
5585
      static {
8424
      static {
Line 5591... Line 8430...
5591
      /**
8430
      /**
5592
       * Find the _Fields constant that matches fieldId, or null if its not found.
8431
       * Find the _Fields constant that matches fieldId, or null if its not found.
5593
       */
8432
       */
5594
      public static _Fields findByThriftId(int fieldId) {
8433
      public static _Fields findByThriftId(int fieldId) {
5595
        switch(fieldId) {
8434
        switch(fieldId) {
5596
          case 0: // SUCCESS
-
 
5597
            return SUCCESS;
-
 
5598
          case 1: // WEX
8435
          case 1: // WEX
5599
            return WEX;
8436
            return WEX;
5600
          default:
8437
          default:
5601
            return null;
8438
            return null;
5602
        }
8439
        }
Line 5639... Line 8476...
5639
    // isset id assignments
8476
    // isset id assignments
5640
 
8477
 
5641
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8478
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5642
    static {
8479
    static {
5643
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8480
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5644
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5645
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
5646
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Purchase.class))));
-
 
5647
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8481
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8482
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8483
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPurchases_result.class, metaDataMap);
8484
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
5651
    }
8485
    }
5652
 
8486
 
5653
    public getAllPurchases_result() {
8487
    public scan_result() {
5654
    }
8488
    }
5655
 
8489
 
5656
    public getAllPurchases_result(
8490
    public scan_result(
5657
      List<Purchase> success,
-
 
5658
      WarehouseServiceException wex)
8491
      WarehouseServiceException wex)
5659
    {
8492
    {
5660
      this();
8493
      this();
5661
      this.success = success;
-
 
5662
      this.wex = wex;
8494
      this.wex = wex;
5663
    }
8495
    }
5664
 
8496
 
5665
    /**
8497
    /**
5666
     * Performs a deep copy on <i>other</i>.
8498
     * Performs a deep copy on <i>other</i>.
5667
     */
8499
     */
5668
    public getAllPurchases_result(getAllPurchases_result other) {
8500
    public scan_result(scan_result other) {
5669
      if (other.isSetSuccess()) {
-
 
5670
        List<Purchase> __this__success = new ArrayList<Purchase>();
-
 
5671
        for (Purchase other_element : other.success) {
-
 
5672
          __this__success.add(new Purchase(other_element));
-
 
5673
        }
-
 
5674
        this.success = __this__success;
-
 
5675
      }
-
 
5676
      if (other.isSetWex()) {
8501
      if (other.isSetWex()) {
5677
        this.wex = new WarehouseServiceException(other.wex);
8502
        this.wex = new WarehouseServiceException(other.wex);
5678
      }
8503
      }
5679
    }
8504
    }
5680
 
8505
 
5681
    public getAllPurchases_result deepCopy() {
8506
    public scan_result deepCopy() {
5682
      return new getAllPurchases_result(this);
8507
      return new scan_result(this);
5683
    }
8508
    }
5684
 
8509
 
5685
    @Override
8510
    @Override
5686
    public void clear() {
8511
    public void clear() {
5687
      this.success = null;
-
 
5688
      this.wex = null;
8512
      this.wex = null;
5689
    }
8513
    }
5690
 
8514
 
5691
    public int getSuccessSize() {
-
 
5692
      return (this.success == null) ? 0 : this.success.size();
-
 
5693
    }
-
 
5694
 
-
 
5695
    public java.util.Iterator<Purchase> getSuccessIterator() {
-
 
5696
      return (this.success == null) ? null : this.success.iterator();
-
 
5697
    }
-
 
5698
 
-
 
5699
    public void addToSuccess(Purchase elem) {
-
 
5700
      if (this.success == null) {
-
 
5701
        this.success = new ArrayList<Purchase>();
-
 
5702
      }
-
 
5703
      this.success.add(elem);
-
 
5704
    }
-
 
5705
 
-
 
5706
    public List<Purchase> getSuccess() {
-
 
5707
      return this.success;
-
 
5708
    }
-
 
5709
 
-
 
5710
    public void setSuccess(List<Purchase> success) {
-
 
5711
      this.success = success;
-
 
5712
    }
-
 
5713
 
-
 
5714
    public void unsetSuccess() {
-
 
5715
      this.success = null;
-
 
5716
    }
-
 
5717
 
-
 
5718
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
5719
    public boolean isSetSuccess() {
-
 
5720
      return this.success != null;
-
 
5721
    }
-
 
5722
 
-
 
5723
    public void setSuccessIsSet(boolean value) {
-
 
5724
      if (!value) {
-
 
5725
        this.success = null;
-
 
5726
      }
-
 
5727
    }
-
 
5728
 
-
 
5729
    public WarehouseServiceException getWex() {
8515
    public WarehouseServiceException getWex() {
5730
      return this.wex;
8516
      return this.wex;
5731
    }
8517
    }
5732
 
8518
 
5733
    public void setWex(WarehouseServiceException wex) {
8519
    public void setWex(WarehouseServiceException wex) {
Line 5749... Line 8535...
5749
      }
8535
      }
5750
    }
8536
    }
5751
 
8537
 
5752
    public void setFieldValue(_Fields field, Object value) {
8538
    public void setFieldValue(_Fields field, Object value) {
5753
      switch (field) {
8539
      switch (field) {
5754
      case SUCCESS:
-
 
5755
        if (value == null) {
-
 
5756
          unsetSuccess();
-
 
5757
        } else {
-
 
5758
          setSuccess((List<Purchase>)value);
-
 
5759
        }
-
 
5760
        break;
-
 
5761
 
-
 
5762
      case WEX:
8540
      case WEX:
5763
        if (value == null) {
8541
        if (value == null) {
5764
          unsetWex();
8542
          unsetWex();
5765
        } else {
8543
        } else {
5766
          setWex((WarehouseServiceException)value);
8544
          setWex((WarehouseServiceException)value);
Line 5770... Line 8548...
5770
      }
8548
      }
5771
    }
8549
    }
5772
 
8550
 
5773
    public Object getFieldValue(_Fields field) {
8551
    public Object getFieldValue(_Fields field) {
5774
      switch (field) {
8552
      switch (field) {
5775
      case SUCCESS:
-
 
5776
        return getSuccess();
-
 
5777
 
-
 
5778
      case WEX:
8553
      case WEX:
5779
        return getWex();
8554
        return getWex();
5780
 
8555
 
5781
      }
8556
      }
5782
      throw new IllegalStateException();
8557
      throw new IllegalStateException();
Line 5787... Line 8562...
5787
      if (field == null) {
8562
      if (field == null) {
5788
        throw new IllegalArgumentException();
8563
        throw new IllegalArgumentException();
5789
      }
8564
      }
5790
 
8565
 
5791
      switch (field) {
8566
      switch (field) {
5792
      case SUCCESS:
-
 
5793
        return isSetSuccess();
-
 
5794
      case WEX:
8567
      case WEX:
5795
        return isSetWex();
8568
        return isSetWex();
5796
      }
8569
      }
5797
      throw new IllegalStateException();
8570
      throw new IllegalStateException();
5798
    }
8571
    }
5799
 
8572
 
5800
    @Override
8573
    @Override
5801
    public boolean equals(Object that) {
8574
    public boolean equals(Object that) {
5802
      if (that == null)
8575
      if (that == null)
5803
        return false;
8576
        return false;
5804
      if (that instanceof getAllPurchases_result)
8577
      if (that instanceof scan_result)
5805
        return this.equals((getAllPurchases_result)that);
8578
        return this.equals((scan_result)that);
5806
      return false;
8579
      return false;
5807
    }
8580
    }
5808
 
8581
 
5809
    public boolean equals(getAllPurchases_result that) {
8582
    public boolean equals(scan_result that) {
5810
      if (that == null)
8583
      if (that == null)
5811
        return false;
8584
        return false;
5812
 
8585
 
5813
      boolean this_present_success = true && this.isSetSuccess();
-
 
5814
      boolean that_present_success = true && that.isSetSuccess();
-
 
5815
      if (this_present_success || that_present_success) {
-
 
5816
        if (!(this_present_success && that_present_success))
-
 
5817
          return false;
-
 
5818
        if (!this.success.equals(that.success))
-
 
5819
          return false;
-
 
5820
      }
-
 
5821
 
-
 
5822
      boolean this_present_wex = true && this.isSetWex();
8586
      boolean this_present_wex = true && this.isSetWex();
5823
      boolean that_present_wex = true && that.isSetWex();
8587
      boolean that_present_wex = true && that.isSetWex();
5824
      if (this_present_wex || that_present_wex) {
8588
      if (this_present_wex || that_present_wex) {
5825
        if (!(this_present_wex && that_present_wex))
8589
        if (!(this_present_wex && that_present_wex))
5826
          return false;
8590
          return false;
Line 5834... Line 8598...
5834
    @Override
8598
    @Override
5835
    public int hashCode() {
8599
    public int hashCode() {
5836
      return 0;
8600
      return 0;
5837
    }
8601
    }
5838
 
8602
 
5839
    public int compareTo(getAllPurchases_result other) {
8603
    public int compareTo(scan_result other) {
5840
      if (!getClass().equals(other.getClass())) {
8604
      if (!getClass().equals(other.getClass())) {
5841
        return getClass().getName().compareTo(other.getClass().getName());
8605
        return getClass().getName().compareTo(other.getClass().getName());
5842
      }
8606
      }
5843
 
8607
 
5844
      int lastComparison = 0;
8608
      int lastComparison = 0;
5845
      getAllPurchases_result typedOther = (getAllPurchases_result)other;
8609
      scan_result typedOther = (scan_result)other;
5846
 
8610
 
5847
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
5848
      if (lastComparison != 0) {
-
 
5849
        return lastComparison;
-
 
5850
      }
-
 
5851
      if (isSetSuccess()) {
-
 
5852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
5853
        if (lastComparison != 0) {
-
 
5854
          return lastComparison;
-
 
5855
        }
-
 
5856
      }
-
 
5857
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
8611
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
5858
      if (lastComparison != 0) {
8612
      if (lastComparison != 0) {
5859
        return lastComparison;
8613
        return lastComparison;
5860
      }
8614
      }
5861
      if (isSetWex()) {
8615
      if (isSetWex()) {
Line 5879... Line 8633...
5879
        field = iprot.readFieldBegin();
8633
        field = iprot.readFieldBegin();
5880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8634
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5881
          break;
8635
          break;
5882
        }
8636
        }
5883
        switch (field.id) {
8637
        switch (field.id) {
5884
          case 0: // SUCCESS
-
 
5885
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
5886
              {
-
 
5887
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
-
 
5888
                this.success = new ArrayList<Purchase>(_list8.size);
-
 
5889
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
5890
                {
-
 
5891
                  Purchase _elem10; // required
-
 
5892
                  _elem10 = new Purchase();
-
 
5893
                  _elem10.read(iprot);
-
 
5894
                  this.success.add(_elem10);
-
 
5895
                }
-
 
5896
                iprot.readListEnd();
-
 
5897
              }
-
 
5898
            } else { 
-
 
5899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5900
            }
-
 
5901
            break;
-
 
5902
          case 1: // WEX
8638
          case 1: // WEX
5903
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8639
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5904
              this.wex = new WarehouseServiceException();
8640
              this.wex = new WarehouseServiceException();
5905
              this.wex.read(iprot);
8641
              this.wex.read(iprot);
5906
            } else { 
8642
            } else { 
Line 5917... Line 8653...
5917
    }
8653
    }
5918
 
8654
 
5919
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8655
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5920
      oprot.writeStructBegin(STRUCT_DESC);
8656
      oprot.writeStructBegin(STRUCT_DESC);
5921
 
8657
 
5922
      if (this.isSetSuccess()) {
8658
      if (this.isSetWex()) {
5923
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5924
        {
-
 
5925
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
5926
          for (Purchase _iter11 : this.success)
-
 
5927
          {
-
 
5928
            _iter11.write(oprot);
-
 
5929
          }
-
 
5930
          oprot.writeListEnd();
-
 
5931
        }
-
 
5932
        oprot.writeFieldEnd();
-
 
5933
      } else if (this.isSetWex()) {
-
 
5934
        oprot.writeFieldBegin(WEX_FIELD_DESC);
8659
        oprot.writeFieldBegin(WEX_FIELD_DESC);
5935
        this.wex.write(oprot);
8660
        this.wex.write(oprot);
5936
        oprot.writeFieldEnd();
8661
        oprot.writeFieldEnd();
5937
      }
8662
      }
5938
      oprot.writeFieldStop();
8663
      oprot.writeFieldStop();
5939
      oprot.writeStructEnd();
8664
      oprot.writeStructEnd();
5940
    }
8665
    }
5941
 
8666
 
5942
    @Override
8667
    @Override
5943
    public String toString() {
8668
    public String toString() {
5944
      StringBuilder sb = new StringBuilder("getAllPurchases_result(");
8669
      StringBuilder sb = new StringBuilder("scan_result(");
5945
      boolean first = true;
8670
      boolean first = true;
5946
 
8671
 
5947
      sb.append("success:");
-
 
5948
      if (this.success == null) {
-
 
5949
        sb.append("null");
-
 
5950
      } else {
-
 
5951
        sb.append(this.success);
-
 
5952
      }
-
 
5953
      first = false;
-
 
5954
      if (!first) sb.append(", ");
-
 
5955
      sb.append("wex:");
8672
      sb.append("wex:");
5956
      if (this.wex == null) {
8673
      if (this.wex == null) {
5957
        sb.append("null");
8674
        sb.append("null");
5958
      } else {
8675
      } else {
5959
        sb.append(this.wex);
8676
        sb.append(this.wex);
Line 5983... Line 8700...
5983
      }
8700
      }
5984
    }
8701
    }
5985
 
8702
 
5986
  }
8703
  }
5987
 
8704
 
5988
  public static class scanIn_args implements org.apache.thrift.TBase<scanIn_args, scanIn_args._Fields>, java.io.Serializable, Cloneable   {
8705
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
5989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanIn_args");
8706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
5990
 
8707
 
5991
    private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)1);
8708
    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);
5992
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
8709
    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);
5993
    private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imeiNumber", org.apache.thrift.protocol.TType.STRING, (short)3);
8710
    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);
5994
    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)4);
8711
    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);
5995
 
8712
 
5996
    private long purchaseId; // required
8713
    private long inventoryItemId; // required
5997
    private String itemNumber; // required
-
 
5998
    private String imeiNumber; // required
-
 
5999
    private ScanType type; // required
8714
    private ScanType type; // required
-
 
8715
    private long orderId; // required
-
 
8716
    private long warehouseId; // required
6000
 
8717
 
6001
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8718
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6002
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8719
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6003
      PURCHASE_ID((short)1, "purchaseId"),
8720
      INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
6004
      ITEM_NUMBER((short)2, "itemNumber"),
-
 
6005
      IMEI_NUMBER((short)3, "imeiNumber"),
-
 
6006
      /**
8721
      /**
6007
       * 
8722
       * 
6008
       * @see ScanType
8723
       * @see ScanType
6009
       */
8724
       */
6010
      TYPE((short)4, "type");
8725
      TYPE((short)2, "type"),
-
 
8726
      ORDER_ID((short)3, "orderId"),
-
 
8727
      WAREHOUSE_ID((short)4, "warehouseId");
6011
 
8728
 
6012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6013
 
8730
 
6014
      static {
8731
      static {
6015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 6020... Line 8737...
6020
      /**
8737
      /**
6021
       * Find the _Fields constant that matches fieldId, or null if its not found.
8738
       * Find the _Fields constant that matches fieldId, or null if its not found.
6022
       */
8739
       */
6023
      public static _Fields findByThriftId(int fieldId) {
8740
      public static _Fields findByThriftId(int fieldId) {
6024
        switch(fieldId) {
8741
        switch(fieldId) {
6025
          case 1: // PURCHASE_ID
8742
          case 1: // INVENTORY_ITEM_ID
6026
            return PURCHASE_ID;
8743
            return INVENTORY_ITEM_ID;
6027
          case 2: // ITEM_NUMBER
-
 
6028
            return ITEM_NUMBER;
-
 
6029
          case 3: // IMEI_NUMBER
-
 
6030
            return IMEI_NUMBER;
-
 
6031
          case 4: // TYPE
8744
          case 2: // TYPE
6032
            return TYPE;
8745
            return TYPE;
-
 
8746
          case 3: // ORDER_ID
-
 
8747
            return ORDER_ID;
-
 
8748
          case 4: // WAREHOUSE_ID
-
 
8749
            return WAREHOUSE_ID;
6033
          default:
8750
          default:
6034
            return null;
8751
            return null;
6035
        }
8752
        }
6036
      }
8753
      }
6037
 
8754
 
Line 6068... Line 8785...
6068
        return _fieldName;
8785
        return _fieldName;
6069
      }
8786
      }
6070
    }
8787
    }
6071
 
8788
 
6072
    // isset id assignments
8789
    // isset id assignments
-
 
8790
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
-
 
8791
    private static final int __ORDERID_ISSET_ID = 1;
6073
    private static final int __PURCHASEID_ISSET_ID = 0;
8792
    private static final int __WAREHOUSEID_ISSET_ID = 2;
6074
    private BitSet __isset_bit_vector = new BitSet(1);
8793
    private BitSet __isset_bit_vector = new BitSet(3);
6075
 
8794
 
6076
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8795
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6077
    static {
8796
    static {
6078
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8797
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6079
      tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8798
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6080
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6081
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6082
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6083
      tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6084
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6085
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8800
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6086
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
8801
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
8802
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8804
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8806
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanIn_args.class, metaDataMap);
8807
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
6089
    }
8808
    }
6090
 
8809
 
6091
    public scanIn_args() {
8810
    public scanSerializedItemForOrder_args() {
6092
    }
8811
    }
6093
 
8812
 
6094
    public scanIn_args(
8813
    public scanSerializedItemForOrder_args(
6095
      long purchaseId,
8814
      long inventoryItemId,
6096
      String itemNumber,
8815
      ScanType type,
6097
      String imeiNumber,
8816
      long orderId,
6098
      ScanType type)
8817
      long warehouseId)
6099
    {
8818
    {
6100
      this();
8819
      this();
6101
      this.purchaseId = purchaseId;
8820
      this.inventoryItemId = inventoryItemId;
6102
      setPurchaseIdIsSet(true);
8821
      setInventoryItemIdIsSet(true);
6103
      this.itemNumber = itemNumber;
-
 
6104
      this.imeiNumber = imeiNumber;
-
 
6105
      this.type = type;
8822
      this.type = type;
-
 
8823
      this.orderId = orderId;
-
 
8824
      setOrderIdIsSet(true);
-
 
8825
      this.warehouseId = warehouseId;
-
 
8826
      setWarehouseIdIsSet(true);
6106
    }
8827
    }
6107
 
8828
 
6108
    /**
8829
    /**
6109
     * Performs a deep copy on <i>other</i>.
8830
     * Performs a deep copy on <i>other</i>.
6110
     */
8831
     */
6111
    public scanIn_args(scanIn_args other) {
8832
    public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
6112
      __isset_bit_vector.clear();
8833
      __isset_bit_vector.clear();
6113
      __isset_bit_vector.or(other.__isset_bit_vector);
8834
      __isset_bit_vector.or(other.__isset_bit_vector);
6114
      this.purchaseId = other.purchaseId;
8835
      this.inventoryItemId = other.inventoryItemId;
6115
      if (other.isSetItemNumber()) {
-
 
6116
        this.itemNumber = other.itemNumber;
-
 
6117
      }
-
 
6118
      if (other.isSetImeiNumber()) {
-
 
6119
        this.imeiNumber = other.imeiNumber;
-
 
6120
      }
-
 
6121
      if (other.isSetType()) {
8836
      if (other.isSetType()) {
6122
        this.type = other.type;
8837
        this.type = other.type;
6123
      }
8838
      }
-
 
8839
      this.orderId = other.orderId;
-
 
8840
      this.warehouseId = other.warehouseId;
6124
    }
8841
    }
6125
 
8842
 
6126
    public scanIn_args deepCopy() {
8843
    public scanSerializedItemForOrder_args deepCopy() {
6127
      return new scanIn_args(this);
8844
      return new scanSerializedItemForOrder_args(this);
6128
    }
8845
    }
6129
 
8846
 
6130
    @Override
8847
    @Override
6131
    public void clear() {
8848
    public void clear() {
6132
      setPurchaseIdIsSet(false);
8849
      setInventoryItemIdIsSet(false);
6133
      this.purchaseId = 0;
8850
      this.inventoryItemId = 0;
6134
      this.itemNumber = null;
-
 
6135
      this.imeiNumber = null;
-
 
6136
      this.type = null;
8851
      this.type = null;
-
 
8852
      setOrderIdIsSet(false);
-
 
8853
      this.orderId = 0;
-
 
8854
      setWarehouseIdIsSet(false);
-
 
8855
      this.warehouseId = 0;
6137
    }
8856
    }
6138
 
8857
 
6139
    public long getPurchaseId() {
8858
    public long getInventoryItemId() {
6140
      return this.purchaseId;
8859
      return this.inventoryItemId;
6141
    }
8860
    }
6142
 
8861
 
6143
    public void setPurchaseId(long purchaseId) {
8862
    public void setInventoryItemId(long inventoryItemId) {
6144
      this.purchaseId = purchaseId;
8863
      this.inventoryItemId = inventoryItemId;
6145
      setPurchaseIdIsSet(true);
8864
      setInventoryItemIdIsSet(true);
6146
    }
8865
    }
6147
 
8866
 
6148
    public void unsetPurchaseId() {
8867
    public void unsetInventoryItemId() {
6149
      __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
8868
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
6150
    }
8869
    }
6151
 
8870
 
6152
    /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
8871
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
6153
    public boolean isSetPurchaseId() {
8872
    public boolean isSetInventoryItemId() {
6154
      return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
8873
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
6155
    }
8874
    }
6156
 
8875
 
6157
    public void setPurchaseIdIsSet(boolean value) {
8876
    public void setInventoryItemIdIsSet(boolean value) {
6158
      __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
8877
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
6159
    }
8878
    }
6160
 
8879
 
-
 
8880
    /**
-
 
8881
     * 
-
 
8882
     * @see ScanType
-
 
8883
     */
6161
    public String getItemNumber() {
8884
    public ScanType getType() {
6162
      return this.itemNumber;
8885
      return this.type;
6163
    }
8886
    }
6164
 
8887
 
-
 
8888
    /**
-
 
8889
     * 
-
 
8890
     * @see ScanType
-
 
8891
     */
6165
    public void setItemNumber(String itemNumber) {
8892
    public void setType(ScanType type) {
6166
      this.itemNumber = itemNumber;
8893
      this.type = type;
6167
    }
8894
    }
6168
 
8895
 
6169
    public void unsetItemNumber() {
8896
    public void unsetType() {
6170
      this.itemNumber = null;
8897
      this.type = null;
6171
    }
8898
    }
6172
 
8899
 
6173
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
8900
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6174
    public boolean isSetItemNumber() {
8901
    public boolean isSetType() {
6175
      return this.itemNumber != null;
8902
      return this.type != null;
6176
    }
8903
    }
6177
 
8904
 
6178
    public void setItemNumberIsSet(boolean value) {
8905
    public void setTypeIsSet(boolean value) {
6179
      if (!value) {
8906
      if (!value) {
6180
        this.itemNumber = null;
8907
        this.type = null;
6181
      }
8908
      }
6182
    }
8909
    }
6183
 
8910
 
6184
    public String getImeiNumber() {
8911
    public long getOrderId() {
6185
      return this.imeiNumber;
8912
      return this.orderId;
6186
    }
8913
    }
6187
 
8914
 
6188
    public void setImeiNumber(String imeiNumber) {
8915
    public void setOrderId(long orderId) {
6189
      this.imeiNumber = imeiNumber;
8916
      this.orderId = orderId;
-
 
8917
      setOrderIdIsSet(true);
6190
    }
8918
    }
6191
 
8919
 
6192
    public void unsetImeiNumber() {
8920
    public void unsetOrderId() {
6193
      this.imeiNumber = null;
8921
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
6194
    }
8922
    }
6195
 
8923
 
6196
    /** Returns true if field imeiNumber is set (has been assigned a value) and false otherwise */
8924
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
6197
    public boolean isSetImeiNumber() {
8925
    public boolean isSetOrderId() {
6198
      return this.imeiNumber != null;
8926
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
6199
    }
8927
    }
6200
 
8928
 
6201
    public void setImeiNumberIsSet(boolean value) {
8929
    public void setOrderIdIsSet(boolean value) {
6202
      if (!value) {
-
 
6203
        this.imeiNumber = null;
8930
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
6204
      }
-
 
6205
    }
8931
    }
6206
 
8932
 
6207
    /**
-
 
6208
     * 
-
 
6209
     * @see ScanType
-
 
6210
     */
-
 
6211
    public ScanType getType() {
8933
    public long getWarehouseId() {
6212
      return this.type;
8934
      return this.warehouseId;
6213
    }
8935
    }
6214
 
8936
 
6215
    /**
-
 
6216
     * 
-
 
6217
     * @see ScanType
8937
    public void setWarehouseId(long warehouseId) {
6218
     */
-
 
6219
    public void setType(ScanType type) {
8938
      this.warehouseId = warehouseId;
6220
      this.type = type;
8939
      setWarehouseIdIsSet(true);
6221
    }
8940
    }
6222
 
8941
 
6223
    public void unsetType() {
8942
    public void unsetWarehouseId() {
6224
      this.type = null;
8943
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
6225
    }
8944
    }
6226
 
8945
 
6227
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
8946
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
6228
    public boolean isSetType() {
8947
    public boolean isSetWarehouseId() {
6229
      return this.type != null;
8948
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
6230
    }
8949
    }
6231
 
8950
 
6232
    public void setTypeIsSet(boolean value) {
8951
    public void setWarehouseIdIsSet(boolean value) {
6233
      if (!value) {
-
 
6234
        this.type = null;
8952
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
6235
      }
-
 
6236
    }
8953
    }
6237
 
8954
 
6238
    public void setFieldValue(_Fields field, Object value) {
8955
    public void setFieldValue(_Fields field, Object value) {
6239
      switch (field) {
8956
      switch (field) {
6240
      case PURCHASE_ID:
8957
      case INVENTORY_ITEM_ID:
6241
        if (value == null) {
8958
        if (value == null) {
6242
          unsetPurchaseId();
8959
          unsetInventoryItemId();
6243
        } else {
8960
        } else {
6244
          setPurchaseId((Long)value);
8961
          setInventoryItemId((Long)value);
6245
        }
8962
        }
6246
        break;
8963
        break;
6247
 
8964
 
6248
      case ITEM_NUMBER:
8965
      case TYPE:
6249
        if (value == null) {
8966
        if (value == null) {
6250
          unsetItemNumber();
8967
          unsetType();
6251
        } else {
8968
        } else {
6252
          setItemNumber((String)value);
8969
          setType((ScanType)value);
6253
        }
8970
        }
6254
        break;
8971
        break;
6255
 
8972
 
6256
      case IMEI_NUMBER:
8973
      case ORDER_ID:
6257
        if (value == null) {
8974
        if (value == null) {
6258
          unsetImeiNumber();
8975
          unsetOrderId();
6259
        } else {
8976
        } else {
6260
          setImeiNumber((String)value);
8977
          setOrderId((Long)value);
6261
        }
8978
        }
6262
        break;
8979
        break;
6263
 
8980
 
6264
      case TYPE:
8981
      case WAREHOUSE_ID:
6265
        if (value == null) {
8982
        if (value == null) {
6266
          unsetType();
8983
          unsetWarehouseId();
6267
        } else {
8984
        } else {
6268
          setType((ScanType)value);
8985
          setWarehouseId((Long)value);
6269
        }
8986
        }
6270
        break;
8987
        break;
6271
 
8988
 
6272
      }
8989
      }
6273
    }
8990
    }
6274
 
8991
 
6275
    public Object getFieldValue(_Fields field) {
8992
    public Object getFieldValue(_Fields field) {
6276
      switch (field) {
8993
      switch (field) {
6277
      case PURCHASE_ID:
8994
      case INVENTORY_ITEM_ID:
6278
        return Long.valueOf(getPurchaseId());
8995
        return Long.valueOf(getInventoryItemId());
6279
 
-
 
6280
      case ITEM_NUMBER:
-
 
6281
        return getItemNumber();
-
 
6282
 
-
 
6283
      case IMEI_NUMBER:
-
 
6284
        return getImeiNumber();
-
 
6285
 
8996
 
6286
      case TYPE:
8997
      case TYPE:
6287
        return getType();
8998
        return getType();
6288
 
8999
 
-
 
9000
      case ORDER_ID:
-
 
9001
        return Long.valueOf(getOrderId());
-
 
9002
 
-
 
9003
      case WAREHOUSE_ID:
-
 
9004
        return Long.valueOf(getWarehouseId());
-
 
9005
 
6289
      }
9006
      }
6290
      throw new IllegalStateException();
9007
      throw new IllegalStateException();
6291
    }
9008
    }
6292
 
9009
 
6293
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9010
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 6295... Line 9012...
6295
      if (field == null) {
9012
      if (field == null) {
6296
        throw new IllegalArgumentException();
9013
        throw new IllegalArgumentException();
6297
      }
9014
      }
6298
 
9015
 
6299
      switch (field) {
9016
      switch (field) {
6300
      case PURCHASE_ID:
9017
      case INVENTORY_ITEM_ID:
6301
        return isSetPurchaseId();
-
 
6302
      case ITEM_NUMBER:
-
 
6303
        return isSetItemNumber();
-
 
6304
      case IMEI_NUMBER:
-
 
6305
        return isSetImeiNumber();
9018
        return isSetInventoryItemId();
6306
      case TYPE:
9019
      case TYPE:
6307
        return isSetType();
9020
        return isSetType();
-
 
9021
      case ORDER_ID:
-
 
9022
        return isSetOrderId();
-
 
9023
      case WAREHOUSE_ID:
-
 
9024
        return isSetWarehouseId();
6308
      }
9025
      }
6309
      throw new IllegalStateException();
9026
      throw new IllegalStateException();
6310
    }
9027
    }
6311
 
9028
 
6312
    @Override
9029
    @Override
6313
    public boolean equals(Object that) {
9030
    public boolean equals(Object that) {
6314
      if (that == null)
9031
      if (that == null)
6315
        return false;
9032
        return false;
6316
      if (that instanceof scanIn_args)
9033
      if (that instanceof scanSerializedItemForOrder_args)
6317
        return this.equals((scanIn_args)that);
9034
        return this.equals((scanSerializedItemForOrder_args)that);
6318
      return false;
9035
      return false;
6319
    }
9036
    }
6320
 
9037
 
6321
    public boolean equals(scanIn_args that) {
9038
    public boolean equals(scanSerializedItemForOrder_args that) {
6322
      if (that == null)
9039
      if (that == null)
6323
        return false;
9040
        return false;
6324
 
9041
 
6325
      boolean this_present_purchaseId = true;
9042
      boolean this_present_inventoryItemId = true;
6326
      boolean that_present_purchaseId = true;
9043
      boolean that_present_inventoryItemId = true;
6327
      if (this_present_purchaseId || that_present_purchaseId) {
9044
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
6328
        if (!(this_present_purchaseId && that_present_purchaseId))
9045
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
6329
          return false;
9046
          return false;
6330
        if (this.purchaseId != that.purchaseId)
9047
        if (this.inventoryItemId != that.inventoryItemId)
6331
          return false;
9048
          return false;
6332
      }
9049
      }
6333
 
9050
 
6334
      boolean this_present_itemNumber = true && this.isSetItemNumber();
9051
      boolean this_present_type = true && this.isSetType();
6335
      boolean that_present_itemNumber = true && that.isSetItemNumber();
9052
      boolean that_present_type = true && that.isSetType();
6336
      if (this_present_itemNumber || that_present_itemNumber) {
9053
      if (this_present_type || that_present_type) {
6337
        if (!(this_present_itemNumber && that_present_itemNumber))
9054
        if (!(this_present_type && that_present_type))
6338
          return false;
9055
          return false;
6339
        if (!this.itemNumber.equals(that.itemNumber))
9056
        if (!this.type.equals(that.type))
6340
          return false;
9057
          return false;
6341
      }
9058
      }
6342
 
9059
 
6343
      boolean this_present_imeiNumber = true && this.isSetImeiNumber();
9060
      boolean this_present_orderId = true;
6344
      boolean that_present_imeiNumber = true && that.isSetImeiNumber();
9061
      boolean that_present_orderId = true;
6345
      if (this_present_imeiNumber || that_present_imeiNumber) {
9062
      if (this_present_orderId || that_present_orderId) {
6346
        if (!(this_present_imeiNumber && that_present_imeiNumber))
9063
        if (!(this_present_orderId && that_present_orderId))
6347
          return false;
9064
          return false;
6348
        if (!this.imeiNumber.equals(that.imeiNumber))
9065
        if (this.orderId != that.orderId)
6349
          return false;
9066
          return false;
6350
      }
9067
      }
6351
 
9068
 
6352
      boolean this_present_type = true && this.isSetType();
9069
      boolean this_present_warehouseId = true;
6353
      boolean that_present_type = true && that.isSetType();
9070
      boolean that_present_warehouseId = true;
6354
      if (this_present_type || that_present_type) {
9071
      if (this_present_warehouseId || that_present_warehouseId) {
6355
        if (!(this_present_type && that_present_type))
9072
        if (!(this_present_warehouseId && that_present_warehouseId))
6356
          return false;
9073
          return false;
6357
        if (!this.type.equals(that.type))
9074
        if (this.warehouseId != that.warehouseId)
6358
          return false;
9075
          return false;
6359
      }
9076
      }
6360
 
9077
 
6361
      return true;
9078
      return true;
6362
    }
9079
    }
Line 6364... Line 9081...
6364
    @Override
9081
    @Override
6365
    public int hashCode() {
9082
    public int hashCode() {
6366
      return 0;
9083
      return 0;
6367
    }
9084
    }
6368
 
9085
 
6369
    public int compareTo(scanIn_args other) {
9086
    public int compareTo(scanSerializedItemForOrder_args other) {
6370
      if (!getClass().equals(other.getClass())) {
9087
      if (!getClass().equals(other.getClass())) {
6371
        return getClass().getName().compareTo(other.getClass().getName());
9088
        return getClass().getName().compareTo(other.getClass().getName());
6372
      }
9089
      }
6373
 
9090
 
6374
      int lastComparison = 0;
9091
      int lastComparison = 0;
6375
      scanIn_args typedOther = (scanIn_args)other;
9092
      scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
6376
 
9093
 
6377
      lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
9094
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
6378
      if (lastComparison != 0) {
9095
      if (lastComparison != 0) {
6379
        return lastComparison;
9096
        return lastComparison;
6380
      }
9097
      }
6381
      if (isSetPurchaseId()) {
9098
      if (isSetInventoryItemId()) {
6382
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
9099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
6383
        if (lastComparison != 0) {
9100
        if (lastComparison != 0) {
6384
          return lastComparison;
9101
          return lastComparison;
6385
        }
9102
        }
6386
      }
9103
      }
6387
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
9104
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6388
      if (lastComparison != 0) {
9105
      if (lastComparison != 0) {
6389
        return lastComparison;
9106
        return lastComparison;
6390
      }
9107
      }
6391
      if (isSetItemNumber()) {
9108
      if (isSetType()) {
6392
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
9109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6393
        if (lastComparison != 0) {
9110
        if (lastComparison != 0) {
6394
          return lastComparison;
9111
          return lastComparison;
6395
        }
9112
        }
6396
      }
9113
      }
6397
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
9114
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
6398
      if (lastComparison != 0) {
9115
      if (lastComparison != 0) {
6399
        return lastComparison;
9116
        return lastComparison;
6400
      }
9117
      }
6401
      if (isSetImeiNumber()) {
9118
      if (isSetOrderId()) {
6402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeiNumber, typedOther.imeiNumber);
9119
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
6403
        if (lastComparison != 0) {
9120
        if (lastComparison != 0) {
6404
          return lastComparison;
9121
          return lastComparison;
6405
        }
9122
        }
6406
      }
9123
      }
6407
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
9124
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
6408
      if (lastComparison != 0) {
9125
      if (lastComparison != 0) {
6409
        return lastComparison;
9126
        return lastComparison;
6410
      }
9127
      }
6411
      if (isSetType()) {
9128
      if (isSetWarehouseId()) {
6412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
6413
        if (lastComparison != 0) {
9130
        if (lastComparison != 0) {
6414
          return lastComparison;
9131
          return lastComparison;
6415
        }
9132
        }
6416
      }
9133
      }
6417
      return 0;
9134
      return 0;
Line 6429... Line 9146...
6429
        field = iprot.readFieldBegin();
9146
        field = iprot.readFieldBegin();
6430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9147
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6431
          break;
9148
          break;
6432
        }
9149
        }
6433
        switch (field.id) {
9150
        switch (field.id) {
6434
          case 1: // PURCHASE_ID
9151
          case 1: // INVENTORY_ITEM_ID
6435
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9152
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6436
              this.purchaseId = iprot.readI64();
9153
              this.inventoryItemId = iprot.readI64();
6437
              setPurchaseIdIsSet(true);
9154
              setInventoryItemIdIsSet(true);
6438
            } else { 
9155
            } else { 
6439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6440
            }
9157
            }
6441
            break;
9158
            break;
6442
          case 2: // ITEM_NUMBER
9159
          case 2: // TYPE
6443
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9160
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6444
              this.itemNumber = iprot.readString();
9161
              this.type = ScanType.findByValue(iprot.readI32());
6445
            } else { 
9162
            } else { 
6446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9163
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6447
            }
9164
            }
6448
            break;
9165
            break;
6449
          case 3: // IMEI_NUMBER
9166
          case 3: // ORDER_ID
6450
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9167
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6451
              this.imeiNumber = iprot.readString();
9168
              this.orderId = iprot.readI64();
-
 
9169
              setOrderIdIsSet(true);
6452
            } else { 
9170
            } else { 
6453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6454
            }
9172
            }
6455
            break;
9173
            break;
6456
          case 4: // TYPE
9174
          case 4: // WAREHOUSE_ID
6457
            if (field.type == org.apache.thrift.protocol.TType.I32) {
9175
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6458
              this.type = ScanType.findByValue(iprot.readI32());
9176
              this.warehouseId = iprot.readI64();
-
 
9177
              setWarehouseIdIsSet(true);
6459
            } else { 
9178
            } else { 
6460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9179
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6461
            }
9180
            }
6462
            break;
9181
            break;
6463
          default:
9182
          default:
Line 6471... Line 9190...
6471
 
9190
 
6472
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9191
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6473
      validate();
9192
      validate();
6474
 
9193
 
6475
      oprot.writeStructBegin(STRUCT_DESC);
9194
      oprot.writeStructBegin(STRUCT_DESC);
6476
      oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
9195
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
6477
      oprot.writeI64(this.purchaseId);
9196
      oprot.writeI64(this.inventoryItemId);
6478
      oprot.writeFieldEnd();
9197
      oprot.writeFieldEnd();
6479
      if (this.itemNumber != null) {
-
 
6480
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
-
 
6481
        oprot.writeString(this.itemNumber);
-
 
6482
        oprot.writeFieldEnd();
-
 
6483
      }
-
 
6484
      if (this.imeiNumber != null) {
-
 
6485
        oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
-
 
6486
        oprot.writeString(this.imeiNumber);
-
 
6487
        oprot.writeFieldEnd();
-
 
6488
      }
-
 
6489
      if (this.type != null) {
9198
      if (this.type != null) {
6490
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9199
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6491
        oprot.writeI32(this.type.getValue());
9200
        oprot.writeI32(this.type.getValue());
6492
        oprot.writeFieldEnd();
9201
        oprot.writeFieldEnd();
6493
      }
9202
      }
-
 
9203
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
9204
      oprot.writeI64(this.orderId);
-
 
9205
      oprot.writeFieldEnd();
-
 
9206
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
9207
      oprot.writeI64(this.warehouseId);
-
 
9208
      oprot.writeFieldEnd();
6494
      oprot.writeFieldStop();
9209
      oprot.writeFieldStop();
6495
      oprot.writeStructEnd();
9210
      oprot.writeStructEnd();
6496
    }
9211
    }
6497
 
9212
 
6498
    @Override
9213
    @Override
6499
    public String toString() {
9214
    public String toString() {
6500
      StringBuilder sb = new StringBuilder("scanIn_args(");
9215
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
6501
      boolean first = true;
9216
      boolean first = true;
6502
 
9217
 
6503
      sb.append("purchaseId:");
9218
      sb.append("inventoryItemId:");
6504
      sb.append(this.purchaseId);
9219
      sb.append(this.inventoryItemId);
6505
      first = false;
9220
      first = false;
6506
      if (!first) sb.append(", ");
9221
      if (!first) sb.append(", ");
6507
      sb.append("itemNumber:");
9222
      sb.append("type:");
6508
      if (this.itemNumber == null) {
9223
      if (this.type == null) {
6509
        sb.append("null");
9224
        sb.append("null");
6510
      } else {
9225
      } else {
6511
        sb.append(this.itemNumber);
9226
        sb.append(this.type);
6512
      }
9227
      }
6513
      first = false;
9228
      first = false;
6514
      if (!first) sb.append(", ");
9229
      if (!first) sb.append(", ");
6515
      sb.append("imeiNumber:");
9230
      sb.append("orderId:");
6516
      if (this.imeiNumber == null) {
-
 
6517
        sb.append("null");
-
 
6518
      } else {
-
 
6519
        sb.append(this.imeiNumber);
9231
      sb.append(this.orderId);
6520
      }
-
 
6521
      first = false;
9232
      first = false;
6522
      if (!first) sb.append(", ");
9233
      if (!first) sb.append(", ");
6523
      sb.append("type:");
9234
      sb.append("warehouseId:");
6524
      if (this.type == null) {
-
 
6525
        sb.append("null");
-
 
6526
      } else {
-
 
6527
        sb.append(this.type);
9235
      sb.append(this.warehouseId);
6528
      }
-
 
6529
      first = false;
9236
      first = false;
6530
      sb.append(")");
9237
      sb.append(")");
6531
      return sb.toString();
9238
      return sb.toString();
6532
    }
9239
    }
6533
 
9240
 
Line 6551... Line 9258...
6551
      }
9258
      }
6552
    }
9259
    }
6553
 
9260
 
6554
  }
9261
  }
6555
 
9262
 
6556
  public static class scanIn_result implements org.apache.thrift.TBase<scanIn_result, scanIn_result._Fields>, java.io.Serializable, Cloneable   {
9263
  public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable   {
6557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanIn_result");
9264
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
6558
 
9265
 
-
 
9266
    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);
6559
    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);
9267
    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);
6560
 
9268
 
-
 
9269
    private long success; // required
6561
    private WarehouseServiceException wex; // required
9270
    private WarehouseServiceException wex; // required
6562
 
9271
 
6563
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9272
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6564
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9273
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9274
      SUCCESS((short)0, "success"),
6565
      WEX((short)1, "wex");
9275
      WEX((short)1, "wex");
6566
 
9276
 
6567
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9277
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6568
 
9278
 
6569
      static {
9279
      static {
Line 6575... Line 9285...
6575
      /**
9285
      /**
6576
       * Find the _Fields constant that matches fieldId, or null if its not found.
9286
       * Find the _Fields constant that matches fieldId, or null if its not found.
6577
       */
9287
       */
6578
      public static _Fields findByThriftId(int fieldId) {
9288
      public static _Fields findByThriftId(int fieldId) {
6579
        switch(fieldId) {
9289
        switch(fieldId) {
-
 
9290
          case 0: // SUCCESS
-
 
9291
            return SUCCESS;
6580
          case 1: // WEX
9292
          case 1: // WEX
6581
            return WEX;
9293
            return WEX;
6582
          default:
9294
          default:
6583
            return null;
9295
            return null;
6584
        }
9296
        }
Line 6617... Line 9329...
6617
        return _fieldName;
9329
        return _fieldName;
6618
      }
9330
      }
6619
    }
9331
    }
6620
 
9332
 
6621
    // isset id assignments
9333
    // isset id assignments
-
 
9334
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
9335
    private BitSet __isset_bit_vector = new BitSet(1);
6622
 
9336
 
6623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9337
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6624
    static {
9338
    static {
6625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9339
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9340
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9341
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6626
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9342
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6627
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6628
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6629
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanIn_result.class, metaDataMap);
9345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
6630
    }
9346
    }
6631
 
9347
 
6632
    public scanIn_result() {
9348
    public scanSerializedItemForOrder_result() {
6633
    }
9349
    }
6634
 
9350
 
6635
    public scanIn_result(
9351
    public scanSerializedItemForOrder_result(
-
 
9352
      long success,
6636
      WarehouseServiceException wex)
9353
      WarehouseServiceException wex)
6637
    {
9354
    {
6638
      this();
9355
      this();
-
 
9356
      this.success = success;
-
 
9357
      setSuccessIsSet(true);
6639
      this.wex = wex;
9358
      this.wex = wex;
6640
    }
9359
    }
6641
 
9360
 
6642
    /**
9361
    /**
6643
     * Performs a deep copy on <i>other</i>.
9362
     * Performs a deep copy on <i>other</i>.
6644
     */
9363
     */
6645
    public scanIn_result(scanIn_result other) {
9364
    public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
-
 
9365
      __isset_bit_vector.clear();
-
 
9366
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9367
      this.success = other.success;
6646
      if (other.isSetWex()) {
9368
      if (other.isSetWex()) {
6647
        this.wex = new WarehouseServiceException(other.wex);
9369
        this.wex = new WarehouseServiceException(other.wex);
6648
      }
9370
      }
6649
    }
9371
    }
6650
 
9372
 
6651
    public scanIn_result deepCopy() {
9373
    public scanSerializedItemForOrder_result deepCopy() {
6652
      return new scanIn_result(this);
9374
      return new scanSerializedItemForOrder_result(this);
6653
    }
9375
    }
6654
 
9376
 
6655
    @Override
9377
    @Override
6656
    public void clear() {
9378
    public void clear() {
-
 
9379
      setSuccessIsSet(false);
-
 
9380
      this.success = 0;
6657
      this.wex = null;
9381
      this.wex = null;
6658
    }
9382
    }
6659
 
9383
 
-
 
9384
    public long getSuccess() {
-
 
9385
      return this.success;
-
 
9386
    }
-
 
9387
 
-
 
9388
    public void setSuccess(long success) {
-
 
9389
      this.success = success;
-
 
9390
      setSuccessIsSet(true);
-
 
9391
    }
-
 
9392
 
-
 
9393
    public void unsetSuccess() {
-
 
9394
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
9395
    }
-
 
9396
 
-
 
9397
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
9398
    public boolean isSetSuccess() {
-
 
9399
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
9400
    }
-
 
9401
 
-
 
9402
    public void setSuccessIsSet(boolean value) {
-
 
9403
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
9404
    }
-
 
9405
 
6660
    public WarehouseServiceException getWex() {
9406
    public WarehouseServiceException getWex() {
6661
      return this.wex;
9407
      return this.wex;
6662
    }
9408
    }
6663
 
9409
 
6664
    public void setWex(WarehouseServiceException wex) {
9410
    public void setWex(WarehouseServiceException wex) {
Line 6680... Line 9426...
6680
      }
9426
      }
6681
    }
9427
    }
6682
 
9428
 
6683
    public void setFieldValue(_Fields field, Object value) {
9429
    public void setFieldValue(_Fields field, Object value) {
6684
      switch (field) {
9430
      switch (field) {
-
 
9431
      case SUCCESS:
-
 
9432
        if (value == null) {
-
 
9433
          unsetSuccess();
-
 
9434
        } else {
-
 
9435
          setSuccess((Long)value);
-
 
9436
        }
-
 
9437
        break;
-
 
9438
 
6685
      case WEX:
9439
      case WEX:
6686
        if (value == null) {
9440
        if (value == null) {
6687
          unsetWex();
9441
          unsetWex();
6688
        } else {
9442
        } else {
6689
          setWex((WarehouseServiceException)value);
9443
          setWex((WarehouseServiceException)value);
Line 6693... Line 9447...
6693
      }
9447
      }
6694
    }
9448
    }
6695
 
9449
 
6696
    public Object getFieldValue(_Fields field) {
9450
    public Object getFieldValue(_Fields field) {
6697
      switch (field) {
9451
      switch (field) {
-
 
9452
      case SUCCESS:
-
 
9453
        return Long.valueOf(getSuccess());
-
 
9454
 
6698
      case WEX:
9455
      case WEX:
6699
        return getWex();
9456
        return getWex();
6700
 
9457
 
6701
      }
9458
      }
6702
      throw new IllegalStateException();
9459
      throw new IllegalStateException();
Line 6707... Line 9464...
6707
      if (field == null) {
9464
      if (field == null) {
6708
        throw new IllegalArgumentException();
9465
        throw new IllegalArgumentException();
6709
      }
9466
      }
6710
 
9467
 
6711
      switch (field) {
9468
      switch (field) {
-
 
9469
      case SUCCESS:
-
 
9470
        return isSetSuccess();
6712
      case WEX:
9471
      case WEX:
6713
        return isSetWex();
9472
        return isSetWex();
6714
      }
9473
      }
6715
      throw new IllegalStateException();
9474
      throw new IllegalStateException();
6716
    }
9475
    }
6717
 
9476
 
6718
    @Override
9477
    @Override
6719
    public boolean equals(Object that) {
9478
    public boolean equals(Object that) {
6720
      if (that == null)
9479
      if (that == null)
6721
        return false;
9480
        return false;
6722
      if (that instanceof scanIn_result)
9481
      if (that instanceof scanSerializedItemForOrder_result)
6723
        return this.equals((scanIn_result)that);
9482
        return this.equals((scanSerializedItemForOrder_result)that);
6724
      return false;
9483
      return false;
6725
    }
9484
    }
6726
 
9485
 
6727
    public boolean equals(scanIn_result that) {
9486
    public boolean equals(scanSerializedItemForOrder_result that) {
6728
      if (that == null)
9487
      if (that == null)
6729
        return false;
9488
        return false;
6730
 
9489
 
-
 
9490
      boolean this_present_success = true;
-
 
9491
      boolean that_present_success = true;
-
 
9492
      if (this_present_success || that_present_success) {
-
 
9493
        if (!(this_present_success && that_present_success))
-
 
9494
          return false;
-
 
9495
        if (this.success != that.success)
-
 
9496
          return false;
-
 
9497
      }
-
 
9498
 
6731
      boolean this_present_wex = true && this.isSetWex();
9499
      boolean this_present_wex = true && this.isSetWex();
6732
      boolean that_present_wex = true && that.isSetWex();
9500
      boolean that_present_wex = true && that.isSetWex();
6733
      if (this_present_wex || that_present_wex) {
9501
      if (this_present_wex || that_present_wex) {
6734
        if (!(this_present_wex && that_present_wex))
9502
        if (!(this_present_wex && that_present_wex))
6735
          return false;
9503
          return false;
Line 6743... Line 9511...
6743
    @Override
9511
    @Override
6744
    public int hashCode() {
9512
    public int hashCode() {
6745
      return 0;
9513
      return 0;
6746
    }
9514
    }
6747
 
9515
 
6748
    public int compareTo(scanIn_result other) {
9516
    public int compareTo(scanSerializedItemForOrder_result other) {
6749
      if (!getClass().equals(other.getClass())) {
9517
      if (!getClass().equals(other.getClass())) {
6750
        return getClass().getName().compareTo(other.getClass().getName());
9518
        return getClass().getName().compareTo(other.getClass().getName());
6751
      }
9519
      }
6752
 
9520
 
6753
      int lastComparison = 0;
9521
      int lastComparison = 0;
6754
      scanIn_result typedOther = (scanIn_result)other;
9522
      scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
6755
 
9523
 
-
 
9524
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9525
      if (lastComparison != 0) {
-
 
9526
        return lastComparison;
-
 
9527
      }
-
 
9528
      if (isSetSuccess()) {
-
 
9529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9530
        if (lastComparison != 0) {
-
 
9531
          return lastComparison;
-
 
9532
        }
-
 
9533
      }
6756
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
9534
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
6757
      if (lastComparison != 0) {
9535
      if (lastComparison != 0) {
6758
        return lastComparison;
9536
        return lastComparison;
6759
      }
9537
      }
6760
      if (isSetWex()) {
9538
      if (isSetWex()) {
Line 6778... Line 9556...
6778
        field = iprot.readFieldBegin();
9556
        field = iprot.readFieldBegin();
6779
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9557
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6780
          break;
9558
          break;
6781
        }
9559
        }
6782
        switch (field.id) {
9560
        switch (field.id) {
-
 
9561
          case 0: // SUCCESS
-
 
9562
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
9563
              this.success = iprot.readI64();
-
 
9564
              setSuccessIsSet(true);
-
 
9565
            } else { 
-
 
9566
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9567
            }
-
 
9568
            break;
6783
          case 1: // WEX
9569
          case 1: // WEX
6784
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9570
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6785
              this.wex = new WarehouseServiceException();
9571
              this.wex = new WarehouseServiceException();
6786
              this.wex.read(iprot);
9572
              this.wex.read(iprot);
6787
            } else { 
9573
            } else { 
Line 6798... Line 9584...
6798
    }
9584
    }
6799
 
9585
 
6800
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9586
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6801
      oprot.writeStructBegin(STRUCT_DESC);
9587
      oprot.writeStructBegin(STRUCT_DESC);
6802
 
9588
 
6803
      if (this.isSetWex()) {
9589
      if (this.isSetSuccess()) {
-
 
9590
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9591
        oprot.writeI64(this.success);
-
 
9592
        oprot.writeFieldEnd();
-
 
9593
      } else if (this.isSetWex()) {
6804
        oprot.writeFieldBegin(WEX_FIELD_DESC);
9594
        oprot.writeFieldBegin(WEX_FIELD_DESC);
6805
        this.wex.write(oprot);
9595
        this.wex.write(oprot);
6806
        oprot.writeFieldEnd();
9596
        oprot.writeFieldEnd();
6807
      }
9597
      }
6808
      oprot.writeFieldStop();
9598
      oprot.writeFieldStop();
6809
      oprot.writeStructEnd();
9599
      oprot.writeStructEnd();
6810
    }
9600
    }
6811
 
9601
 
6812
    @Override
9602
    @Override
6813
    public String toString() {
9603
    public String toString() {
6814
      StringBuilder sb = new StringBuilder("scanIn_result(");
9604
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
6815
      boolean first = true;
9605
      boolean first = true;
6816
 
9606
 
-
 
9607
      sb.append("success:");
-
 
9608
      sb.append(this.success);
-
 
9609
      first = false;
-
 
9610
      if (!first) sb.append(", ");
6817
      sb.append("wex:");
9611
      sb.append("wex:");
6818
      if (this.wex == null) {
9612
      if (this.wex == null) {
6819
        sb.append("null");
9613
        sb.append("null");
6820
      } else {
9614
      } else {
6821
        sb.append(this.wex);
9615
        sb.append(this.wex);
Line 6845... Line 9639...
6845
      }
9639
      }
6846
    }
9640
    }
6847
 
9641
 
6848
  }
9642
  }
6849
 
9643
 
6850
  public static class scanOut_args implements org.apache.thrift.TBase<scanOut_args, scanOut_args._Fields>, java.io.Serializable, Cloneable   {
9644
  public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
6851
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanOut_args");
9645
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
6852
 
9646
 
-
 
9647
    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);
6853
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
9648
    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);
6854
    private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imeiNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
9649
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
6855
    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)3);
9650
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
9651
    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)5);
6856
 
9652
 
6857
    private String itemNumber; // required
-
 
6858
    private String imeiNumber; // required
9653
    private long inventoryItemId; // required
6859
    private ScanType type; // required
9654
    private ScanType type; // required
-
 
9655
    private long quantity; // required
-
 
9656
    private long orderId; // required
-
 
9657
    private long warehouseId; // required
6860
 
9658
 
6861
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6862
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9660
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6863
      ITEM_NUMBER((short)1, "itemNumber"),
9661
      INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
6864
      IMEI_NUMBER((short)2, "imeiNumber"),
-
 
6865
      /**
9662
      /**
6866
       * 
9663
       * 
6867
       * @see ScanType
9664
       * @see ScanType
6868
       */
9665
       */
6869
      TYPE((short)3, "type");
9666
      TYPE((short)2, "type"),
-
 
9667
      QUANTITY((short)3, "quantity"),
-
 
9668
      ORDER_ID((short)4, "orderId"),
-
 
9669
      WAREHOUSE_ID((short)5, "warehouseId");
6870
 
9670
 
6871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9671
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6872
 
9672
 
6873
      static {
9673
      static {
6874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9674
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 6879... Line 9679...
6879
      /**
9679
      /**
6880
       * Find the _Fields constant that matches fieldId, or null if its not found.
9680
       * Find the _Fields constant that matches fieldId, or null if its not found.
6881
       */
9681
       */
6882
      public static _Fields findByThriftId(int fieldId) {
9682
      public static _Fields findByThriftId(int fieldId) {
6883
        switch(fieldId) {
9683
        switch(fieldId) {
6884
          case 1: // ITEM_NUMBER
9684
          case 1: // INVENTORY_ITEM_ID
6885
            return ITEM_NUMBER;
9685
            return INVENTORY_ITEM_ID;
6886
          case 2: // IMEI_NUMBER
-
 
6887
            return IMEI_NUMBER;
-
 
6888
          case 3: // TYPE
9686
          case 2: // TYPE
6889
            return TYPE;
9687
            return TYPE;
-
 
9688
          case 3: // QUANTITY
-
 
9689
            return QUANTITY;
-
 
9690
          case 4: // ORDER_ID
-
 
9691
            return ORDER_ID;
-
 
9692
          case 5: // WAREHOUSE_ID
-
 
9693
            return WAREHOUSE_ID;
6890
          default:
9694
          default:
6891
            return null;
9695
            return null;
6892
        }
9696
        }
6893
      }
9697
      }
6894
 
9698
 
Line 6925... Line 9729...
6925
        return _fieldName;
9729
        return _fieldName;
6926
      }
9730
      }
6927
    }
9731
    }
6928
 
9732
 
6929
    // isset id assignments
9733
    // isset id assignments
-
 
9734
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
-
 
9735
    private static final int __QUANTITY_ISSET_ID = 1;
-
 
9736
    private static final int __ORDERID_ISSET_ID = 2;
-
 
9737
    private static final int __WAREHOUSEID_ISSET_ID = 3;
-
 
9738
    private BitSet __isset_bit_vector = new BitSet(4);
6930
 
9739
 
6931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9740
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6932
    static {
9741
    static {
6933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9742
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6934
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9743
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6935
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6936
      tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6937
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9744
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6938
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9745
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6939
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
9746
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
9747
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
9749
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9750
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
9751
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9752
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6940
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9753
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6941
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanOut_args.class, metaDataMap);
9754
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
6942
    }
9755
    }
6943
 
9756
 
6944
    public scanOut_args() {
9757
    public scanForOrder_args() {
6945
    }
9758
    }
6946
 
9759
 
6947
    public scanOut_args(
9760
    public scanForOrder_args(
6948
      String itemNumber,
9761
      long inventoryItemId,
6949
      String imeiNumber,
9762
      ScanType type,
6950
      ScanType type)
9763
      long quantity,
-
 
9764
      long orderId,
-
 
9765
      long warehouseId)
6951
    {
9766
    {
6952
      this();
9767
      this();
6953
      this.itemNumber = itemNumber;
9768
      this.inventoryItemId = inventoryItemId;
6954
      this.imeiNumber = imeiNumber;
9769
      setInventoryItemIdIsSet(true);
6955
      this.type = type;
9770
      this.type = type;
-
 
9771
      this.quantity = quantity;
-
 
9772
      setQuantityIsSet(true);
-
 
9773
      this.orderId = orderId;
-
 
9774
      setOrderIdIsSet(true);
-
 
9775
      this.warehouseId = warehouseId;
-
 
9776
      setWarehouseIdIsSet(true);
6956
    }
9777
    }
6957
 
9778
 
6958
    /**
9779
    /**
6959
     * Performs a deep copy on <i>other</i>.
9780
     * Performs a deep copy on <i>other</i>.
6960
     */
9781
     */
6961
    public scanOut_args(scanOut_args other) {
9782
    public scanForOrder_args(scanForOrder_args other) {
6962
      if (other.isSetItemNumber()) {
9783
      __isset_bit_vector.clear();
6963
        this.itemNumber = other.itemNumber;
9784
      __isset_bit_vector.or(other.__isset_bit_vector);
6964
      }
-
 
6965
      if (other.isSetImeiNumber()) {
-
 
6966
        this.imeiNumber = other.imeiNumber;
9785
      this.inventoryItemId = other.inventoryItemId;
6967
      }
-
 
6968
      if (other.isSetType()) {
9786
      if (other.isSetType()) {
6969
        this.type = other.type;
9787
        this.type = other.type;
6970
      }
9788
      }
-
 
9789
      this.quantity = other.quantity;
-
 
9790
      this.orderId = other.orderId;
-
 
9791
      this.warehouseId = other.warehouseId;
6971
    }
9792
    }
6972
 
9793
 
6973
    public scanOut_args deepCopy() {
9794
    public scanForOrder_args deepCopy() {
6974
      return new scanOut_args(this);
9795
      return new scanForOrder_args(this);
6975
    }
9796
    }
6976
 
9797
 
6977
    @Override
9798
    @Override
6978
    public void clear() {
9799
    public void clear() {
6979
      this.itemNumber = null;
9800
      setInventoryItemIdIsSet(false);
6980
      this.imeiNumber = null;
9801
      this.inventoryItemId = 0;
6981
      this.type = null;
9802
      this.type = null;
-
 
9803
      setQuantityIsSet(false);
-
 
9804
      this.quantity = 0;
-
 
9805
      setOrderIdIsSet(false);
-
 
9806
      this.orderId = 0;
-
 
9807
      setWarehouseIdIsSet(false);
-
 
9808
      this.warehouseId = 0;
6982
    }
9809
    }
6983
 
9810
 
6984
    public String getItemNumber() {
9811
    public long getInventoryItemId() {
6985
      return this.itemNumber;
9812
      return this.inventoryItemId;
6986
    }
-
 
6987
 
-
 
6988
    public void setItemNumber(String itemNumber) {
-
 
6989
      this.itemNumber = itemNumber;
-
 
6990
    }
-
 
6991
 
-
 
6992
    public void unsetItemNumber() {
-
 
6993
      this.itemNumber = null;
-
 
6994
    }
-
 
6995
 
-
 
6996
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
-
 
6997
    public boolean isSetItemNumber() {
-
 
6998
      return this.itemNumber != null;
-
 
6999
    }
-
 
7000
 
-
 
7001
    public void setItemNumberIsSet(boolean value) {
-
 
7002
      if (!value) {
-
 
7003
        this.itemNumber = null;
-
 
7004
      }
-
 
7005
    }
-
 
7006
 
-
 
7007
    public String getImeiNumber() {
-
 
7008
      return this.imeiNumber;
-
 
7009
    }
9813
    }
7010
 
9814
 
7011
    public void setImeiNumber(String imeiNumber) {
9815
    public void setInventoryItemId(long inventoryItemId) {
7012
      this.imeiNumber = imeiNumber;
9816
      this.inventoryItemId = inventoryItemId;
-
 
9817
      setInventoryItemIdIsSet(true);
7013
    }
9818
    }
7014
 
9819
 
7015
    public void unsetImeiNumber() {
9820
    public void unsetInventoryItemId() {
7016
      this.imeiNumber = null;
9821
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
7017
    }
9822
    }
7018
 
9823
 
7019
    /** Returns true if field imeiNumber is set (has been assigned a value) and false otherwise */
9824
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
7020
    public boolean isSetImeiNumber() {
9825
    public boolean isSetInventoryItemId() {
7021
      return this.imeiNumber != null;
9826
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
7022
    }
9827
    }
7023
 
9828
 
7024
    public void setImeiNumberIsSet(boolean value) {
9829
    public void setInventoryItemIdIsSet(boolean value) {
7025
      if (!value) {
-
 
7026
        this.imeiNumber = null;
9830
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
7027
      }
-
 
7028
    }
9831
    }
7029
 
9832
 
7030
    /**
9833
    /**
7031
     * 
9834
     * 
7032
     * @see ScanType
9835
     * @see ScanType
Line 7056... Line 9859...
7056
      if (!value) {
9859
      if (!value) {
7057
        this.type = null;
9860
        this.type = null;
7058
      }
9861
      }
7059
    }
9862
    }
7060
 
9863
 
-
 
9864
    public long getQuantity() {
-
 
9865
      return this.quantity;
-
 
9866
    }
-
 
9867
 
-
 
9868
    public void setQuantity(long quantity) {
-
 
9869
      this.quantity = quantity;
-
 
9870
      setQuantityIsSet(true);
-
 
9871
    }
-
 
9872
 
-
 
9873
    public void unsetQuantity() {
-
 
9874
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
9875
    }
-
 
9876
 
-
 
9877
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
9878
    public boolean isSetQuantity() {
-
 
9879
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
9880
    }
-
 
9881
 
-
 
9882
    public void setQuantityIsSet(boolean value) {
-
 
9883
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
9884
    }
-
 
9885
 
-
 
9886
    public long getOrderId() {
-
 
9887
      return this.orderId;
-
 
9888
    }
-
 
9889
 
-
 
9890
    public void setOrderId(long orderId) {
-
 
9891
      this.orderId = orderId;
-
 
9892
      setOrderIdIsSet(true);
-
 
9893
    }
-
 
9894
 
-
 
9895
    public void unsetOrderId() {
-
 
9896
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
9897
    }
-
 
9898
 
-
 
9899
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
9900
    public boolean isSetOrderId() {
-
 
9901
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
9902
    }
-
 
9903
 
-
 
9904
    public void setOrderIdIsSet(boolean value) {
-
 
9905
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
9906
    }
-
 
9907
 
-
 
9908
    public long getWarehouseId() {
-
 
9909
      return this.warehouseId;
-
 
9910
    }
-
 
9911
 
-
 
9912
    public void setWarehouseId(long warehouseId) {
-
 
9913
      this.warehouseId = warehouseId;
-
 
9914
      setWarehouseIdIsSet(true);
-
 
9915
    }
-
 
9916
 
-
 
9917
    public void unsetWarehouseId() {
-
 
9918
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
9919
    }
-
 
9920
 
-
 
9921
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
9922
    public boolean isSetWarehouseId() {
-
 
9923
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
9924
    }
-
 
9925
 
-
 
9926
    public void setWarehouseIdIsSet(boolean value) {
-
 
9927
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
9928
    }
-
 
9929
 
7061
    public void setFieldValue(_Fields field, Object value) {
9930
    public void setFieldValue(_Fields field, Object value) {
7062
      switch (field) {
9931
      switch (field) {
7063
      case ITEM_NUMBER:
9932
      case INVENTORY_ITEM_ID:
7064
        if (value == null) {
9933
        if (value == null) {
7065
          unsetItemNumber();
9934
          unsetInventoryItemId();
7066
        } else {
9935
        } else {
7067
          setItemNumber((String)value);
9936
          setInventoryItemId((Long)value);
7068
        }
9937
        }
7069
        break;
9938
        break;
7070
 
9939
 
7071
      case IMEI_NUMBER:
9940
      case TYPE:
7072
        if (value == null) {
9941
        if (value == null) {
7073
          unsetImeiNumber();
9942
          unsetType();
7074
        } else {
9943
        } else {
7075
          setImeiNumber((String)value);
9944
          setType((ScanType)value);
7076
        }
9945
        }
7077
        break;
9946
        break;
7078
 
9947
 
7079
      case TYPE:
9948
      case QUANTITY:
7080
        if (value == null) {
9949
        if (value == null) {
7081
          unsetType();
9950
          unsetQuantity();
7082
        } else {
9951
        } else {
-
 
9952
          setQuantity((Long)value);
-
 
9953
        }
-
 
9954
        break;
-
 
9955
 
-
 
9956
      case ORDER_ID:
-
 
9957
        if (value == null) {
-
 
9958
          unsetOrderId();
-
 
9959
        } else {
7083
          setType((ScanType)value);
9960
          setOrderId((Long)value);
-
 
9961
        }
-
 
9962
        break;
-
 
9963
 
-
 
9964
      case WAREHOUSE_ID:
-
 
9965
        if (value == null) {
-
 
9966
          unsetWarehouseId();
-
 
9967
        } else {
-
 
9968
          setWarehouseId((Long)value);
7084
        }
9969
        }
7085
        break;
9970
        break;
7086
 
9971
 
7087
      }
9972
      }
7088
    }
9973
    }
7089
 
9974
 
7090
    public Object getFieldValue(_Fields field) {
9975
    public Object getFieldValue(_Fields field) {
7091
      switch (field) {
9976
      switch (field) {
7092
      case ITEM_NUMBER:
9977
      case INVENTORY_ITEM_ID:
7093
        return getItemNumber();
9978
        return Long.valueOf(getInventoryItemId());
7094
 
-
 
7095
      case IMEI_NUMBER:
-
 
7096
        return getImeiNumber();
-
 
7097
 
9979
 
7098
      case TYPE:
9980
      case TYPE:
7099
        return getType();
9981
        return getType();
7100
 
9982
 
-
 
9983
      case QUANTITY:
-
 
9984
        return Long.valueOf(getQuantity());
-
 
9985
 
-
 
9986
      case ORDER_ID:
-
 
9987
        return Long.valueOf(getOrderId());
-
 
9988
 
-
 
9989
      case WAREHOUSE_ID:
-
 
9990
        return Long.valueOf(getWarehouseId());
-
 
9991
 
7101
      }
9992
      }
7102
      throw new IllegalStateException();
9993
      throw new IllegalStateException();
7103
    }
9994
    }
7104
 
9995
 
7105
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9996
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 7107... Line 9998...
7107
      if (field == null) {
9998
      if (field == null) {
7108
        throw new IllegalArgumentException();
9999
        throw new IllegalArgumentException();
7109
      }
10000
      }
7110
 
10001
 
7111
      switch (field) {
10002
      switch (field) {
7112
      case ITEM_NUMBER:
-
 
7113
        return isSetItemNumber();
-
 
7114
      case IMEI_NUMBER:
10003
      case INVENTORY_ITEM_ID:
7115
        return isSetImeiNumber();
10004
        return isSetInventoryItemId();
7116
      case TYPE:
10005
      case TYPE:
7117
        return isSetType();
10006
        return isSetType();
-
 
10007
      case QUANTITY:
-
 
10008
        return isSetQuantity();
-
 
10009
      case ORDER_ID:
-
 
10010
        return isSetOrderId();
-
 
10011
      case WAREHOUSE_ID:
-
 
10012
        return isSetWarehouseId();
7118
      }
10013
      }
7119
      throw new IllegalStateException();
10014
      throw new IllegalStateException();
7120
    }
10015
    }
7121
 
10016
 
7122
    @Override
10017
    @Override
7123
    public boolean equals(Object that) {
10018
    public boolean equals(Object that) {
7124
      if (that == null)
10019
      if (that == null)
7125
        return false;
10020
        return false;
7126
      if (that instanceof scanOut_args)
10021
      if (that instanceof scanForOrder_args)
7127
        return this.equals((scanOut_args)that);
10022
        return this.equals((scanForOrder_args)that);
7128
      return false;
10023
      return false;
7129
    }
10024
    }
7130
 
10025
 
7131
    public boolean equals(scanOut_args that) {
10026
    public boolean equals(scanForOrder_args that) {
7132
      if (that == null)
10027
      if (that == null)
7133
        return false;
10028
        return false;
7134
 
10029
 
7135
      boolean this_present_itemNumber = true && this.isSetItemNumber();
10030
      boolean this_present_inventoryItemId = true;
7136
      boolean that_present_itemNumber = true && that.isSetItemNumber();
10031
      boolean that_present_inventoryItemId = true;
7137
      if (this_present_itemNumber || that_present_itemNumber) {
10032
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
7138
        if (!(this_present_itemNumber && that_present_itemNumber))
-
 
7139
          return false;
-
 
7140
        if (!this.itemNumber.equals(that.itemNumber))
-
 
7141
          return false;
-
 
7142
      }
-
 
7143
 
-
 
7144
      boolean this_present_imeiNumber = true && this.isSetImeiNumber();
-
 
7145
      boolean that_present_imeiNumber = true && that.isSetImeiNumber();
-
 
7146
      if (this_present_imeiNumber || that_present_imeiNumber) {
-
 
7147
        if (!(this_present_imeiNumber && that_present_imeiNumber))
10033
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
7148
          return false;
10034
          return false;
7149
        if (!this.imeiNumber.equals(that.imeiNumber))
10035
        if (this.inventoryItemId != that.inventoryItemId)
7150
          return false;
10036
          return false;
7151
      }
10037
      }
7152
 
10038
 
7153
      boolean this_present_type = true && this.isSetType();
10039
      boolean this_present_type = true && this.isSetType();
7154
      boolean that_present_type = true && that.isSetType();
10040
      boolean that_present_type = true && that.isSetType();
Line 7157... Line 10043...
7157
          return false;
10043
          return false;
7158
        if (!this.type.equals(that.type))
10044
        if (!this.type.equals(that.type))
7159
          return false;
10045
          return false;
7160
      }
10046
      }
7161
 
10047
 
-
 
10048
      boolean this_present_quantity = true;
-
 
10049
      boolean that_present_quantity = true;
-
 
10050
      if (this_present_quantity || that_present_quantity) {
-
 
10051
        if (!(this_present_quantity && that_present_quantity))
-
 
10052
          return false;
-
 
10053
        if (this.quantity != that.quantity)
-
 
10054
          return false;
-
 
10055
      }
-
 
10056
 
-
 
10057
      boolean this_present_orderId = true;
-
 
10058
      boolean that_present_orderId = true;
-
 
10059
      if (this_present_orderId || that_present_orderId) {
-
 
10060
        if (!(this_present_orderId && that_present_orderId))
-
 
10061
          return false;
-
 
10062
        if (this.orderId != that.orderId)
-
 
10063
          return false;
-
 
10064
      }
-
 
10065
 
-
 
10066
      boolean this_present_warehouseId = true;
-
 
10067
      boolean that_present_warehouseId = true;
-
 
10068
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
10069
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
10070
          return false;
-
 
10071
        if (this.warehouseId != that.warehouseId)
-
 
10072
          return false;
-
 
10073
      }
-
 
10074
 
7162
      return true;
10075
      return true;
7163
    }
10076
    }
7164
 
10077
 
7165
    @Override
10078
    @Override
7166
    public int hashCode() {
10079
    public int hashCode() {
7167
      return 0;
10080
      return 0;
7168
    }
10081
    }
7169
 
10082
 
7170
    public int compareTo(scanOut_args other) {
10083
    public int compareTo(scanForOrder_args other) {
7171
      if (!getClass().equals(other.getClass())) {
10084
      if (!getClass().equals(other.getClass())) {
7172
        return getClass().getName().compareTo(other.getClass().getName());
10085
        return getClass().getName().compareTo(other.getClass().getName());
7173
      }
10086
      }
7174
 
10087
 
7175
      int lastComparison = 0;
10088
      int lastComparison = 0;
7176
      scanOut_args typedOther = (scanOut_args)other;
10089
      scanForOrder_args typedOther = (scanForOrder_args)other;
7177
 
10090
 
7178
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
10091
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
7179
      if (lastComparison != 0) {
10092
      if (lastComparison != 0) {
7180
        return lastComparison;
10093
        return lastComparison;
7181
      }
10094
      }
7182
      if (isSetItemNumber()) {
10095
      if (isSetInventoryItemId()) {
7183
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
10096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
7184
        if (lastComparison != 0) {
10097
        if (lastComparison != 0) {
7185
          return lastComparison;
10098
          return lastComparison;
7186
        }
10099
        }
7187
      }
10100
      }
7188
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
10101
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
7189
      if (lastComparison != 0) {
10102
      if (lastComparison != 0) {
7190
        return lastComparison;
10103
        return lastComparison;
7191
      }
10104
      }
7192
      if (isSetImeiNumber()) {
10105
      if (isSetType()) {
7193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeiNumber, typedOther.imeiNumber);
10106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
7194
        if (lastComparison != 0) {
10107
        if (lastComparison != 0) {
7195
          return lastComparison;
10108
          return lastComparison;
7196
        }
10109
        }
7197
      }
10110
      }
7198
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10111
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
7199
      if (lastComparison != 0) {
10112
      if (lastComparison != 0) {
7200
        return lastComparison;
10113
        return lastComparison;
7201
      }
10114
      }
-
 
10115
      if (isSetQuantity()) {
-
 
10116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
10117
        if (lastComparison != 0) {
-
 
10118
          return lastComparison;
-
 
10119
        }
-
 
10120
      }
-
 
10121
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
10122
      if (lastComparison != 0) {
-
 
10123
        return lastComparison;
-
 
10124
      }
7202
      if (isSetType()) {
10125
      if (isSetOrderId()) {
7203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10126
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
10127
        if (lastComparison != 0) {
-
 
10128
          return lastComparison;
-
 
10129
        }
-
 
10130
      }
-
 
10131
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
10132
      if (lastComparison != 0) {
-
 
10133
        return lastComparison;
-
 
10134
      }
-
 
10135
      if (isSetWarehouseId()) {
-
 
10136
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
7204
        if (lastComparison != 0) {
10137
        if (lastComparison != 0) {
7205
          return lastComparison;
10138
          return lastComparison;
7206
        }
10139
        }
7207
      }
10140
      }
7208
      return 0;
10141
      return 0;
Line 7220... Line 10153...
7220
        field = iprot.readFieldBegin();
10153
        field = iprot.readFieldBegin();
7221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10154
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7222
          break;
10155
          break;
7223
        }
10156
        }
7224
        switch (field.id) {
10157
        switch (field.id) {
7225
          case 1: // ITEM_NUMBER
10158
          case 1: // INVENTORY_ITEM_ID
7226
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10159
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7227
              this.itemNumber = iprot.readString();
10160
              this.inventoryItemId = iprot.readI64();
-
 
10161
              setInventoryItemIdIsSet(true);
7228
            } else { 
10162
            } else { 
7229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10163
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7230
            }
10164
            }
7231
            break;
10165
            break;
7232
          case 2: // IMEI_NUMBER
10166
          case 2: // TYPE
7233
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10167
            if (field.type == org.apache.thrift.protocol.TType.I32) {
7234
              this.imeiNumber = iprot.readString();
10168
              this.type = ScanType.findByValue(iprot.readI32());
7235
            } else { 
10169
            } else { 
7236
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10170
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7237
            }
10171
            }
7238
            break;
10172
            break;
7239
          case 3: // TYPE
10173
          case 3: // QUANTITY
7240
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10174
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7241
              this.type = ScanType.findByValue(iprot.readI32());
10175
              this.quantity = iprot.readI64();
-
 
10176
              setQuantityIsSet(true);
-
 
10177
            } else { 
-
 
10178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10179
            }
-
 
10180
            break;
-
 
10181
          case 4: // ORDER_ID
-
 
10182
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
10183
              this.orderId = iprot.readI64();
-
 
10184
              setOrderIdIsSet(true);
-
 
10185
            } else { 
-
 
10186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10187
            }
-
 
10188
            break;
-
 
10189
          case 5: // WAREHOUSE_ID
-
 
10190
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
10191
              this.warehouseId = iprot.readI64();
-
 
10192
              setWarehouseIdIsSet(true);
7242
            } else { 
10193
            } else { 
7243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7244
            }
10195
            }
7245
            break;
10196
            break;
7246
          default:
10197
          default:
Line 7254... Line 10205...
7254
 
10205
 
7255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10206
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7256
      validate();
10207
      validate();
7257
 
10208
 
7258
      oprot.writeStructBegin(STRUCT_DESC);
10209
      oprot.writeStructBegin(STRUCT_DESC);
7259
      if (this.itemNumber != null) {
-
 
7260
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
10210
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
7261
        oprot.writeString(this.itemNumber);
-
 
7262
        oprot.writeFieldEnd();
-
 
7263
      }
-
 
7264
      if (this.imeiNumber != null) {
-
 
7265
        oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
-
 
7266
        oprot.writeString(this.imeiNumber);
10211
      oprot.writeI64(this.inventoryItemId);
7267
        oprot.writeFieldEnd();
10212
      oprot.writeFieldEnd();
7268
      }
-
 
7269
      if (this.type != null) {
10213
      if (this.type != null) {
7270
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10214
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
7271
        oprot.writeI32(this.type.getValue());
10215
        oprot.writeI32(this.type.getValue());
7272
        oprot.writeFieldEnd();
10216
        oprot.writeFieldEnd();
7273
      }
10217
      }
-
 
10218
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
10219
      oprot.writeI64(this.quantity);
-
 
10220
      oprot.writeFieldEnd();
-
 
10221
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
10222
      oprot.writeI64(this.orderId);
-
 
10223
      oprot.writeFieldEnd();
-
 
10224
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
10225
      oprot.writeI64(this.warehouseId);
-
 
10226
      oprot.writeFieldEnd();
7274
      oprot.writeFieldStop();
10227
      oprot.writeFieldStop();
7275
      oprot.writeStructEnd();
10228
      oprot.writeStructEnd();
7276
    }
10229
    }
7277
 
10230
 
7278
    @Override
10231
    @Override
7279
    public String toString() {
10232
    public String toString() {
7280
      StringBuilder sb = new StringBuilder("scanOut_args(");
10233
      StringBuilder sb = new StringBuilder("scanForOrder_args(");
7281
      boolean first = true;
10234
      boolean first = true;
7282
 
10235
 
7283
      sb.append("itemNumber:");
10236
      sb.append("inventoryItemId:");
7284
      if (this.itemNumber == null) {
-
 
7285
        sb.append("null");
-
 
7286
      } else {
-
 
7287
        sb.append(this.itemNumber);
-
 
7288
      }
-
 
7289
      first = false;
-
 
7290
      if (!first) sb.append(", ");
-
 
7291
      sb.append("imeiNumber:");
-
 
7292
      if (this.imeiNumber == null) {
-
 
7293
        sb.append("null");
-
 
7294
      } else {
-
 
7295
        sb.append(this.imeiNumber);
10237
      sb.append(this.inventoryItemId);
7296
      }
-
 
7297
      first = false;
10238
      first = false;
7298
      if (!first) sb.append(", ");
10239
      if (!first) sb.append(", ");
7299
      sb.append("type:");
10240
      sb.append("type:");
7300
      if (this.type == null) {
10241
      if (this.type == null) {
7301
        sb.append("null");
10242
        sb.append("null");
7302
      } else {
10243
      } else {
7303
        sb.append(this.type);
10244
        sb.append(this.type);
7304
      }
10245
      }
7305
      first = false;
10246
      first = false;
-
 
10247
      if (!first) sb.append(", ");
-
 
10248
      sb.append("quantity:");
-
 
10249
      sb.append(this.quantity);
-
 
10250
      first = false;
-
 
10251
      if (!first) sb.append(", ");
-
 
10252
      sb.append("orderId:");
-
 
10253
      sb.append(this.orderId);
-
 
10254
      first = false;
-
 
10255
      if (!first) sb.append(", ");
-
 
10256
      sb.append("warehouseId:");
-
 
10257
      sb.append(this.warehouseId);
-
 
10258
      first = false;
7306
      sb.append(")");
10259
      sb.append(")");
7307
      return sb.toString();
10260
      return sb.toString();
7308
    }
10261
    }
7309
 
10262
 
7310
    public void validate() throws org.apache.thrift.TException {
10263
    public void validate() throws org.apache.thrift.TException {
Line 7319... Line 10272...
7319
      }
10272
      }
7320
    }
10273
    }
7321
 
10274
 
7322
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7323
      try {
10276
      try {
-
 
10277
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
10278
        __isset_bit_vector = new BitSet(1);
7324
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10279
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7325
      } catch (org.apache.thrift.TException te) {
10280
      } catch (org.apache.thrift.TException te) {
7326
        throw new java.io.IOException(te);
10281
        throw new java.io.IOException(te);
7327
      }
10282
      }
7328
    }
10283
    }
7329
 
10284
 
7330
  }
10285
  }
7331
 
10286
 
7332
  public static class scanOut_result implements org.apache.thrift.TBase<scanOut_result, scanOut_result._Fields>, java.io.Serializable, Cloneable   {
10287
  public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
7333
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanOut_result");
10288
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
7334
 
10289
 
7335
    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);
10290
    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);
7336
 
10291
 
7337
    private WarehouseServiceException wex; // required
10292
    private WarehouseServiceException wex; // required
7338
 
10293
 
Line 7400... Line 10355...
7400
    static {
10355
    static {
7401
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10356
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7402
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10357
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7404
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10359
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7405
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanOut_result.class, metaDataMap);
10360
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
7406
    }
10361
    }
7407
 
10362
 
7408
    public scanOut_result() {
10363
    public scanForOrder_result() {
7409
    }
10364
    }
7410
 
10365
 
7411
    public scanOut_result(
10366
    public scanForOrder_result(
7412
      WarehouseServiceException wex)
10367
      WarehouseServiceException wex)
7413
    {
10368
    {
7414
      this();
10369
      this();
7415
      this.wex = wex;
10370
      this.wex = wex;
7416
    }
10371
    }
7417
 
10372
 
7418
    /**
10373
    /**
7419
     * Performs a deep copy on <i>other</i>.
10374
     * Performs a deep copy on <i>other</i>.
7420
     */
10375
     */
7421
    public scanOut_result(scanOut_result other) {
10376
    public scanForOrder_result(scanForOrder_result other) {
7422
      if (other.isSetWex()) {
10377
      if (other.isSetWex()) {
7423
        this.wex = new WarehouseServiceException(other.wex);
10378
        this.wex = new WarehouseServiceException(other.wex);
7424
      }
10379
      }
7425
    }
10380
    }
7426
 
10381
 
7427
    public scanOut_result deepCopy() {
10382
    public scanForOrder_result deepCopy() {
7428
      return new scanOut_result(this);
10383
      return new scanForOrder_result(this);
7429
    }
10384
    }
7430
 
10385
 
7431
    @Override
10386
    @Override
7432
    public void clear() {
10387
    public void clear() {
7433
      this.wex = null;
10388
      this.wex = null;
Line 7493... Line 10448...
7493
 
10448
 
7494
    @Override
10449
    @Override
7495
    public boolean equals(Object that) {
10450
    public boolean equals(Object that) {
7496
      if (that == null)
10451
      if (that == null)
7497
        return false;
10452
        return false;
7498
      if (that instanceof scanOut_result)
10453
      if (that instanceof scanForOrder_result)
7499
        return this.equals((scanOut_result)that);
10454
        return this.equals((scanForOrder_result)that);
7500
      return false;
10455
      return false;
7501
    }
10456
    }
7502
 
10457
 
7503
    public boolean equals(scanOut_result that) {
10458
    public boolean equals(scanForOrder_result that) {
7504
      if (that == null)
10459
      if (that == null)
7505
        return false;
10460
        return false;
7506
 
10461
 
7507
      boolean this_present_wex = true && this.isSetWex();
10462
      boolean this_present_wex = true && this.isSetWex();
7508
      boolean that_present_wex = true && that.isSetWex();
10463
      boolean that_present_wex = true && that.isSetWex();
Line 7519... Line 10474...
7519
    @Override
10474
    @Override
7520
    public int hashCode() {
10475
    public int hashCode() {
7521
      return 0;
10476
      return 0;
7522
    }
10477
    }
7523
 
10478
 
7524
    public int compareTo(scanOut_result other) {
10479
    public int compareTo(scanForOrder_result other) {
7525
      if (!getClass().equals(other.getClass())) {
10480
      if (!getClass().equals(other.getClass())) {
7526
        return getClass().getName().compareTo(other.getClass().getName());
10481
        return getClass().getName().compareTo(other.getClass().getName());
7527
      }
10482
      }
7528
 
10483
 
7529
      int lastComparison = 0;
10484
      int lastComparison = 0;
7530
      scanOut_result typedOther = (scanOut_result)other;
10485
      scanForOrder_result typedOther = (scanForOrder_result)other;
7531
 
10486
 
7532
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
10487
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
7533
      if (lastComparison != 0) {
10488
      if (lastComparison != 0) {
7534
        return lastComparison;
10489
        return lastComparison;
7535
      }
10490
      }
Line 7585... Line 10540...
7585
      oprot.writeStructEnd();
10540
      oprot.writeStructEnd();
7586
    }
10541
    }
7587
 
10542
 
7588
    @Override
10543
    @Override
7589
    public String toString() {
10544
    public String toString() {
7590
      StringBuilder sb = new StringBuilder("scanOut_result(");
10545
      StringBuilder sb = new StringBuilder("scanForOrder_result(");
7591
      boolean first = true;
10546
      boolean first = true;
7592
 
10547
 
7593
      sb.append("wex:");
10548
      sb.append("wex:");
7594
      if (this.wex == null) {
10549
      if (this.wex == null) {
7595
        sb.append("null");
10550
        sb.append("null");
Line 7600... Line 10555...
7600
      sb.append(")");
10555
      sb.append(")");
7601
      return sb.toString();
10556
      return sb.toString();
7602
    }
10557
    }
7603
 
10558
 
7604
    public void validate() throws org.apache.thrift.TException {
10559
    public void validate() throws org.apache.thrift.TException {
-
 
10560
      // check for required fields
-
 
10561
    }
-
 
10562
 
-
 
10563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10564
      try {
-
 
10565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10566
      } catch (org.apache.thrift.TException te) {
-
 
10567
        throw new java.io.IOException(te);
-
 
10568
      }
-
 
10569
    }
-
 
10570
 
-
 
10571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10572
      try {
-
 
10573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10574
      } catch (org.apache.thrift.TException te) {
-
 
10575
        throw new java.io.IOException(te);
-
 
10576
      }
-
 
10577
    }
-
 
10578
 
-
 
10579
  }
-
 
10580
 
-
 
10581
  public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
-
 
10583
 
-
 
10584
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
10585
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
10586
 
-
 
10587
    private String itemNumber; // required
-
 
10588
    private long itemId; // required
-
 
10589
 
-
 
10590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10592
      ITEM_NUMBER((short)1, "itemNumber"),
-
 
10593
      ITEM_ID((short)2, "itemId");
-
 
10594
 
-
 
10595
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10596
 
-
 
10597
      static {
-
 
10598
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10599
          byName.put(field.getFieldName(), field);
-
 
10600
        }
-
 
10601
      }
-
 
10602
 
-
 
10603
      /**
-
 
10604
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10605
       */
-
 
10606
      public static _Fields findByThriftId(int fieldId) {
-
 
10607
        switch(fieldId) {
-
 
10608
          case 1: // ITEM_NUMBER
-
 
10609
            return ITEM_NUMBER;
-
 
10610
          case 2: // ITEM_ID
-
 
10611
            return ITEM_ID;
-
 
10612
          default:
-
 
10613
            return null;
-
 
10614
        }
-
 
10615
      }
-
 
10616
 
-
 
10617
      /**
-
 
10618
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10619
       * if it is not found.
-
 
10620
       */
-
 
10621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10622
        _Fields fields = findByThriftId(fieldId);
-
 
10623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10624
        return fields;
-
 
10625
      }
-
 
10626
 
-
 
10627
      /**
-
 
10628
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10629
       */
-
 
10630
      public static _Fields findByName(String name) {
-
 
10631
        return byName.get(name);
-
 
10632
      }
-
 
10633
 
-
 
10634
      private final short _thriftId;
-
 
10635
      private final String _fieldName;
-
 
10636
 
-
 
10637
      _Fields(short thriftId, String fieldName) {
-
 
10638
        _thriftId = thriftId;
-
 
10639
        _fieldName = fieldName;
-
 
10640
      }
-
 
10641
 
-
 
10642
      public short getThriftFieldId() {
-
 
10643
        return _thriftId;
-
 
10644
      }
-
 
10645
 
-
 
10646
      public String getFieldName() {
-
 
10647
        return _fieldName;
-
 
10648
      }
-
 
10649
    }
-
 
10650
 
-
 
10651
    // isset id assignments
-
 
10652
    private static final int __ITEMID_ISSET_ID = 0;
-
 
10653
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10654
 
-
 
10655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10656
    static {
-
 
10657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10658
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
10660
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
10662
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10663
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
-
 
10664
    }
-
 
10665
 
-
 
10666
    public createItemNumberMapping_args() {
-
 
10667
    }
-
 
10668
 
-
 
10669
    public createItemNumberMapping_args(
-
 
10670
      String itemNumber,
-
 
10671
      long itemId)
-
 
10672
    {
-
 
10673
      this();
-
 
10674
      this.itemNumber = itemNumber;
-
 
10675
      this.itemId = itemId;
-
 
10676
      setItemIdIsSet(true);
-
 
10677
    }
-
 
10678
 
-
 
10679
    /**
-
 
10680
     * Performs a deep copy on <i>other</i>.
-
 
10681
     */
-
 
10682
    public createItemNumberMapping_args(createItemNumberMapping_args other) {
-
 
10683
      __isset_bit_vector.clear();
-
 
10684
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10685
      if (other.isSetItemNumber()) {
-
 
10686
        this.itemNumber = other.itemNumber;
-
 
10687
      }
-
 
10688
      this.itemId = other.itemId;
-
 
10689
    }
-
 
10690
 
-
 
10691
    public createItemNumberMapping_args deepCopy() {
-
 
10692
      return new createItemNumberMapping_args(this);
-
 
10693
    }
-
 
10694
 
-
 
10695
    @Override
-
 
10696
    public void clear() {
-
 
10697
      this.itemNumber = null;
-
 
10698
      setItemIdIsSet(false);
-
 
10699
      this.itemId = 0;
-
 
10700
    }
-
 
10701
 
-
 
10702
    public String getItemNumber() {
-
 
10703
      return this.itemNumber;
-
 
10704
    }
-
 
10705
 
-
 
10706
    public void setItemNumber(String itemNumber) {
-
 
10707
      this.itemNumber = itemNumber;
-
 
10708
    }
-
 
10709
 
-
 
10710
    public void unsetItemNumber() {
-
 
10711
      this.itemNumber = null;
-
 
10712
    }
-
 
10713
 
-
 
10714
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
-
 
10715
    public boolean isSetItemNumber() {
-
 
10716
      return this.itemNumber != null;
-
 
10717
    }
-
 
10718
 
-
 
10719
    public void setItemNumberIsSet(boolean value) {
-
 
10720
      if (!value) {
-
 
10721
        this.itemNumber = null;
-
 
10722
      }
-
 
10723
    }
-
 
10724
 
-
 
10725
    public long getItemId() {
-
 
10726
      return this.itemId;
-
 
10727
    }
-
 
10728
 
-
 
10729
    public void setItemId(long itemId) {
-
 
10730
      this.itemId = itemId;
-
 
10731
      setItemIdIsSet(true);
-
 
10732
    }
-
 
10733
 
-
 
10734
    public void unsetItemId() {
-
 
10735
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
10736
    }
-
 
10737
 
-
 
10738
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
10739
    public boolean isSetItemId() {
-
 
10740
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
10741
    }
-
 
10742
 
-
 
10743
    public void setItemIdIsSet(boolean value) {
-
 
10744
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
10745
    }
-
 
10746
 
-
 
10747
    public void setFieldValue(_Fields field, Object value) {
-
 
10748
      switch (field) {
-
 
10749
      case ITEM_NUMBER:
-
 
10750
        if (value == null) {
-
 
10751
          unsetItemNumber();
-
 
10752
        } else {
-
 
10753
          setItemNumber((String)value);
-
 
10754
        }
-
 
10755
        break;
-
 
10756
 
-
 
10757
      case ITEM_ID:
-
 
10758
        if (value == null) {
-
 
10759
          unsetItemId();
-
 
10760
        } else {
-
 
10761
          setItemId((Long)value);
-
 
10762
        }
-
 
10763
        break;
-
 
10764
 
-
 
10765
      }
-
 
10766
    }
-
 
10767
 
-
 
10768
    public Object getFieldValue(_Fields field) {
-
 
10769
      switch (field) {
-
 
10770
      case ITEM_NUMBER:
-
 
10771
        return getItemNumber();
-
 
10772
 
-
 
10773
      case ITEM_ID:
-
 
10774
        return Long.valueOf(getItemId());
-
 
10775
 
-
 
10776
      }
-
 
10777
      throw new IllegalStateException();
-
 
10778
    }
-
 
10779
 
-
 
10780
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10781
    public boolean isSet(_Fields field) {
-
 
10782
      if (field == null) {
-
 
10783
        throw new IllegalArgumentException();
-
 
10784
      }
-
 
10785
 
-
 
10786
      switch (field) {
-
 
10787
      case ITEM_NUMBER:
-
 
10788
        return isSetItemNumber();
-
 
10789
      case ITEM_ID:
-
 
10790
        return isSetItemId();
-
 
10791
      }
-
 
10792
      throw new IllegalStateException();
-
 
10793
    }
-
 
10794
 
-
 
10795
    @Override
-
 
10796
    public boolean equals(Object that) {
-
 
10797
      if (that == null)
-
 
10798
        return false;
-
 
10799
      if (that instanceof createItemNumberMapping_args)
-
 
10800
        return this.equals((createItemNumberMapping_args)that);
-
 
10801
      return false;
-
 
10802
    }
-
 
10803
 
-
 
10804
    public boolean equals(createItemNumberMapping_args that) {
-
 
10805
      if (that == null)
-
 
10806
        return false;
-
 
10807
 
-
 
10808
      boolean this_present_itemNumber = true && this.isSetItemNumber();
-
 
10809
      boolean that_present_itemNumber = true && that.isSetItemNumber();
-
 
10810
      if (this_present_itemNumber || that_present_itemNumber) {
-
 
10811
        if (!(this_present_itemNumber && that_present_itemNumber))
-
 
10812
          return false;
-
 
10813
        if (!this.itemNumber.equals(that.itemNumber))
-
 
10814
          return false;
-
 
10815
      }
-
 
10816
 
-
 
10817
      boolean this_present_itemId = true;
-
 
10818
      boolean that_present_itemId = true;
-
 
10819
      if (this_present_itemId || that_present_itemId) {
-
 
10820
        if (!(this_present_itemId && that_present_itemId))
-
 
10821
          return false;
-
 
10822
        if (this.itemId != that.itemId)
-
 
10823
          return false;
-
 
10824
      }
-
 
10825
 
-
 
10826
      return true;
-
 
10827
    }
-
 
10828
 
-
 
10829
    @Override
-
 
10830
    public int hashCode() {
-
 
10831
      return 0;
-
 
10832
    }
-
 
10833
 
-
 
10834
    public int compareTo(createItemNumberMapping_args other) {
-
 
10835
      if (!getClass().equals(other.getClass())) {
-
 
10836
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10837
      }
-
 
10838
 
-
 
10839
      int lastComparison = 0;
-
 
10840
      createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
-
 
10841
 
-
 
10842
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
-
 
10843
      if (lastComparison != 0) {
-
 
10844
        return lastComparison;
-
 
10845
      }
-
 
10846
      if (isSetItemNumber()) {
-
 
10847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
-
 
10848
        if (lastComparison != 0) {
-
 
10849
          return lastComparison;
-
 
10850
        }
-
 
10851
      }
-
 
10852
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
10853
      if (lastComparison != 0) {
-
 
10854
        return lastComparison;
-
 
10855
      }
-
 
10856
      if (isSetItemId()) {
-
 
10857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
10858
        if (lastComparison != 0) {
-
 
10859
          return lastComparison;
-
 
10860
        }
-
 
10861
      }
-
 
10862
      return 0;
-
 
10863
    }
-
 
10864
 
-
 
10865
    public _Fields fieldForId(int fieldId) {
-
 
10866
      return _Fields.findByThriftId(fieldId);
-
 
10867
    }
-
 
10868
 
-
 
10869
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10870
      org.apache.thrift.protocol.TField field;
-
 
10871
      iprot.readStructBegin();
-
 
10872
      while (true)
-
 
10873
      {
-
 
10874
        field = iprot.readFieldBegin();
-
 
10875
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10876
          break;
-
 
10877
        }
-
 
10878
        switch (field.id) {
-
 
10879
          case 1: // ITEM_NUMBER
-
 
10880
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
10881
              this.itemNumber = iprot.readString();
-
 
10882
            } else { 
-
 
10883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10884
            }
-
 
10885
            break;
-
 
10886
          case 2: // ITEM_ID
-
 
10887
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
10888
              this.itemId = iprot.readI64();
-
 
10889
              setItemIdIsSet(true);
-
 
10890
            } else { 
-
 
10891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10892
            }
-
 
10893
            break;
-
 
10894
          default:
-
 
10895
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10896
        }
-
 
10897
        iprot.readFieldEnd();
-
 
10898
      }
-
 
10899
      iprot.readStructEnd();
-
 
10900
      validate();
-
 
10901
    }
-
 
10902
 
-
 
10903
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10904
      validate();
-
 
10905
 
-
 
10906
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10907
      if (this.itemNumber != null) {
-
 
10908
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
-
 
10909
        oprot.writeString(this.itemNumber);
-
 
10910
        oprot.writeFieldEnd();
-
 
10911
      }
-
 
10912
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
10913
      oprot.writeI64(this.itemId);
-
 
10914
      oprot.writeFieldEnd();
-
 
10915
      oprot.writeFieldStop();
-
 
10916
      oprot.writeStructEnd();
-
 
10917
    }
-
 
10918
 
-
 
10919
    @Override
-
 
10920
    public String toString() {
-
 
10921
      StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
-
 
10922
      boolean first = true;
-
 
10923
 
-
 
10924
      sb.append("itemNumber:");
-
 
10925
      if (this.itemNumber == null) {
-
 
10926
        sb.append("null");
-
 
10927
      } else {
-
 
10928
        sb.append(this.itemNumber);
-
 
10929
      }
-
 
10930
      first = false;
-
 
10931
      if (!first) sb.append(", ");
-
 
10932
      sb.append("itemId:");
-
 
10933
      sb.append(this.itemId);
-
 
10934
      first = false;
-
 
10935
      sb.append(")");
-
 
10936
      return sb.toString();
-
 
10937
    }
-
 
10938
 
-
 
10939
    public void validate() throws org.apache.thrift.TException {
-
 
10940
      // check for required fields
-
 
10941
    }
-
 
10942
 
-
 
10943
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10944
      try {
-
 
10945
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10946
      } catch (org.apache.thrift.TException te) {
-
 
10947
        throw new java.io.IOException(te);
-
 
10948
      }
-
 
10949
    }
-
 
10950
 
-
 
10951
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10952
      try {
-
 
10953
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
10954
        __isset_bit_vector = new BitSet(1);
-
 
10955
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10956
      } catch (org.apache.thrift.TException te) {
-
 
10957
        throw new java.io.IOException(te);
-
 
10958
      }
-
 
10959
    }
-
 
10960
 
-
 
10961
  }
-
 
10962
 
-
 
10963
  public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable   {
-
 
10964
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
-
 
10965
 
-
 
10966
 
-
 
10967
 
-
 
10968
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10969
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10970
;
-
 
10971
 
-
 
10972
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10973
 
-
 
10974
      static {
-
 
10975
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10976
          byName.put(field.getFieldName(), field);
-
 
10977
        }
-
 
10978
      }
-
 
10979
 
-
 
10980
      /**
-
 
10981
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10982
       */
-
 
10983
      public static _Fields findByThriftId(int fieldId) {
-
 
10984
        switch(fieldId) {
-
 
10985
          default:
-
 
10986
            return null;
-
 
10987
        }
-
 
10988
      }
-
 
10989
 
-
 
10990
      /**
-
 
10991
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10992
       * if it is not found.
-
 
10993
       */
-
 
10994
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10995
        _Fields fields = findByThriftId(fieldId);
-
 
10996
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10997
        return fields;
-
 
10998
      }
-
 
10999
 
-
 
11000
      /**
-
 
11001
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11002
       */
-
 
11003
      public static _Fields findByName(String name) {
-
 
11004
        return byName.get(name);
-
 
11005
      }
-
 
11006
 
-
 
11007
      private final short _thriftId;
-
 
11008
      private final String _fieldName;
-
 
11009
 
-
 
11010
      _Fields(short thriftId, String fieldName) {
-
 
11011
        _thriftId = thriftId;
-
 
11012
        _fieldName = fieldName;
-
 
11013
      }
-
 
11014
 
-
 
11015
      public short getThriftFieldId() {
-
 
11016
        return _thriftId;
-
 
11017
      }
-
 
11018
 
-
 
11019
      public String getFieldName() {
-
 
11020
        return _fieldName;
-
 
11021
      }
-
 
11022
    }
-
 
11023
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11024
    static {
-
 
11025
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11026
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11027
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
-
 
11028
    }
-
 
11029
 
-
 
11030
    public createItemNumberMapping_result() {
-
 
11031
    }
-
 
11032
 
-
 
11033
    /**
-
 
11034
     * Performs a deep copy on <i>other</i>.
-
 
11035
     */
-
 
11036
    public createItemNumberMapping_result(createItemNumberMapping_result other) {
-
 
11037
    }
-
 
11038
 
-
 
11039
    public createItemNumberMapping_result deepCopy() {
-
 
11040
      return new createItemNumberMapping_result(this);
-
 
11041
    }
-
 
11042
 
-
 
11043
    @Override
-
 
11044
    public void clear() {
-
 
11045
    }
-
 
11046
 
-
 
11047
    public void setFieldValue(_Fields field, Object value) {
-
 
11048
      switch (field) {
-
 
11049
      }
-
 
11050
    }
-
 
11051
 
-
 
11052
    public Object getFieldValue(_Fields field) {
-
 
11053
      switch (field) {
-
 
11054
      }
-
 
11055
      throw new IllegalStateException();
-
 
11056
    }
-
 
11057
 
-
 
11058
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11059
    public boolean isSet(_Fields field) {
-
 
11060
      if (field == null) {
-
 
11061
        throw new IllegalArgumentException();
-
 
11062
      }
-
 
11063
 
-
 
11064
      switch (field) {
-
 
11065
      }
-
 
11066
      throw new IllegalStateException();
-
 
11067
    }
-
 
11068
 
-
 
11069
    @Override
-
 
11070
    public boolean equals(Object that) {
-
 
11071
      if (that == null)
-
 
11072
        return false;
-
 
11073
      if (that instanceof createItemNumberMapping_result)
-
 
11074
        return this.equals((createItemNumberMapping_result)that);
-
 
11075
      return false;
-
 
11076
    }
-
 
11077
 
-
 
11078
    public boolean equals(createItemNumberMapping_result that) {
-
 
11079
      if (that == null)
-
 
11080
        return false;
-
 
11081
 
-
 
11082
      return true;
-
 
11083
    }
-
 
11084
 
-
 
11085
    @Override
-
 
11086
    public int hashCode() {
-
 
11087
      return 0;
-
 
11088
    }
-
 
11089
 
-
 
11090
    public int compareTo(createItemNumberMapping_result other) {
-
 
11091
      if (!getClass().equals(other.getClass())) {
-
 
11092
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11093
      }
-
 
11094
 
-
 
11095
      int lastComparison = 0;
-
 
11096
      createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
-
 
11097
 
-
 
11098
      return 0;
-
 
11099
    }
-
 
11100
 
-
 
11101
    public _Fields fieldForId(int fieldId) {
-
 
11102
      return _Fields.findByThriftId(fieldId);
-
 
11103
    }
-
 
11104
 
-
 
11105
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11106
      org.apache.thrift.protocol.TField field;
-
 
11107
      iprot.readStructBegin();
-
 
11108
      while (true)
-
 
11109
      {
-
 
11110
        field = iprot.readFieldBegin();
-
 
11111
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11112
          break;
-
 
11113
        }
-
 
11114
        switch (field.id) {
-
 
11115
          default:
-
 
11116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11117
        }
-
 
11118
        iprot.readFieldEnd();
-
 
11119
      }
-
 
11120
      iprot.readStructEnd();
-
 
11121
      validate();
-
 
11122
    }
-
 
11123
 
-
 
11124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11125
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11126
 
-
 
11127
      oprot.writeFieldStop();
-
 
11128
      oprot.writeStructEnd();
-
 
11129
    }
-
 
11130
 
-
 
11131
    @Override
-
 
11132
    public String toString() {
-
 
11133
      StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
-
 
11134
      boolean first = true;
-
 
11135
 
-
 
11136
      sb.append(")");
-
 
11137
      return sb.toString();
-
 
11138
    }
-
 
11139
 
-
 
11140
    public void validate() throws org.apache.thrift.TException {
7605
      // check for required fields
11141
      // check for required fields
7606
    }
11142
    }
7607
 
11143
 
7608
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11144
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7609
      try {
11145
      try {