| Line 35... |
Line 35... |
| 35 |
* Retrieves non-serialized inventory item from a given supplier
|
35 |
* Retrieves non-serialized inventory item from a given supplier
|
| 36 |
*
|
36 |
*
|
| 37 |
* @param itemNumber
|
37 |
* @param itemNumber
|
| 38 |
* @param itemId
|
38 |
* @param itemId
|
| 39 |
* @param fulfilmentWarehouseId
|
39 |
* @param fulfilmentWarehouseId
|
| - |
|
40 |
* @param billingWarehouseId
|
| 40 |
*/
|
41 |
*/
|
| 41 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
42 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 42 |
|
43 |
|
| 43 |
/**
|
44 |
/**
|
| 44 |
* Scan non-serialized items.
|
45 |
* Scan non-serialized items.
|
| 45 |
*
|
46 |
*
|
| 46 |
* @param inventoryItem
|
47 |
* @param inventoryItem
|
| Line 277... |
Line 278... |
| 277 |
*
|
278 |
*
|
| 278 |
* @param date
|
279 |
* @param date
|
| 279 |
*/
|
280 |
*/
|
| 280 |
public List<InventoryAvailability> getHistoricBadInventoryByScans(long date) throws WarehouseServiceException, org.apache.thrift.TException;
|
281 |
public List<InventoryAvailability> getHistoricBadInventoryByScans(long date) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 281 |
|
282 |
|
| - |
|
283 |
public void scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException;
|
| - |
|
284 |
|
| 282 |
}
|
285 |
}
|
| 283 |
|
286 |
|
| 284 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
287 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 285 |
|
288 |
|
| 286 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
289 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 287 |
|
290 |
|
| 288 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
291 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 289 |
|
292 |
|
| 290 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
|
293 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
|
| 291 |
|
294 |
|
| 292 |
public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
295 |
public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 293 |
|
296 |
|
| Line 375... |
Line 378... |
| 375 |
|
378 |
|
| 376 |
public void isItemAvailableForSale(long itemId, String serialNumber, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemAvailableForSale_call> resultHandler) throws org.apache.thrift.TException;
|
379 |
public void isItemAvailableForSale(long itemId, String serialNumber, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemAvailableForSale_call> resultHandler) throws org.apache.thrift.TException;
|
| 377 |
|
380 |
|
| 378 |
public void getHistoricBadInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricBadInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
381 |
public void getHistoricBadInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricBadInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
| 379 |
|
382 |
|
| - |
|
383 |
public void scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadSale_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
384 |
|
| 380 |
}
|
385 |
}
|
| 381 |
|
386 |
|
| 382 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
387 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 383 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
388 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| 384 |
public Factory() {}
|
389 |
public Factory() {}
|
| Line 423... |
Line 428... |
| 423 |
throw result.wex;
|
428 |
throw result.wex;
|
| 424 |
}
|
429 |
}
|
| 425 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
430 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
| 426 |
}
|
431 |
}
|
| 427 |
|
432 |
|
| 428 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
433 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 429 |
{
|
434 |
{
|
| 430 |
send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
|
435 |
send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId);
|
| 431 |
return recv_getNonSeralizedInventoryItem();
|
436 |
return recv_getNonSeralizedInventoryItem();
|
| 432 |
}
|
437 |
}
|
| 433 |
|
438 |
|
| 434 |
public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
|
439 |
public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
|
| 435 |
{
|
440 |
{
|
| 436 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
441 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 437 |
args.setItemNumber(itemNumber);
|
442 |
args.setItemNumber(itemNumber);
|
| 438 |
args.setItemId(itemId);
|
443 |
args.setItemId(itemId);
|
| 439 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
444 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| - |
|
445 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 440 |
sendBase("getNonSeralizedInventoryItem", args);
|
446 |
sendBase("getNonSeralizedInventoryItem", args);
|
| 441 |
}
|
447 |
}
|
| 442 |
|
448 |
|
| 443 |
public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
449 |
public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 444 |
{
|
450 |
{
|
| Line 1577... |
Line 1583... |
| 1577 |
throw result.wex;
|
1583 |
throw result.wex;
|
| 1578 |
}
|
1584 |
}
|
| 1579 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
|
1585 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
|
| 1580 |
}
|
1586 |
}
|
| 1581 |
|
1587 |
|
| - |
|
1588 |
public void scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
|
| - |
|
1589 |
{
|
| - |
|
1590 |
send_scanForBadSale(inventoryItem, orderId, quantity, fulfilmentWarehouseId, billingWarehouseId);
|
| - |
|
1591 |
recv_scanForBadSale();
|
| - |
|
1592 |
}
|
| - |
|
1593 |
|
| - |
|
1594 |
public void send_scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
|
| - |
|
1595 |
{
|
| - |
|
1596 |
scanForBadSale_args args = new scanForBadSale_args();
|
| - |
|
1597 |
args.setInventoryItem(inventoryItem);
|
| - |
|
1598 |
args.setOrderId(orderId);
|
| - |
|
1599 |
args.setQuantity(quantity);
|
| - |
|
1600 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| - |
|
1601 |
args.setBillingWarehouseId(billingWarehouseId);
|
| - |
|
1602 |
sendBase("scanForBadSale", args);
|
| - |
|
1603 |
}
|
| - |
|
1604 |
|
| - |
|
1605 |
public void recv_scanForBadSale() throws org.apache.thrift.TException
|
| - |
|
1606 |
{
|
| - |
|
1607 |
scanForBadSale_result result = new scanForBadSale_result();
|
| - |
|
1608 |
receiveBase(result, "scanForBadSale");
|
| - |
|
1609 |
return;
|
| - |
|
1610 |
}
|
| - |
|
1611 |
|
| 1582 |
}
|
1612 |
}
|
| 1583 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
1613 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
| 1584 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
1614 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
| 1585 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
1615 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
| 1586 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
1616 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
| Line 1627... |
Line 1657... |
| 1627 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
1657 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 1628 |
return (new Client(prot)).recv_getInventoryItem();
|
1658 |
return (new Client(prot)).recv_getInventoryItem();
|
| 1629 |
}
|
1659 |
}
|
| 1630 |
}
|
1660 |
}
|
| 1631 |
|
1661 |
|
| 1632 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
1662 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 1633 |
checkReady();
|
1663 |
checkReady();
|
| 1634 |
getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
1664 |
getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 1635 |
this.___currentMethod = method_call;
|
1665 |
this.___currentMethod = method_call;
|
| 1636 |
___manager.call(method_call);
|
1666 |
___manager.call(method_call);
|
| 1637 |
}
|
1667 |
}
|
| 1638 |
|
1668 |
|
| 1639 |
public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
1669 |
public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 1640 |
private String itemNumber;
|
1670 |
private String itemNumber;
|
| 1641 |
private long itemId;
|
1671 |
private long itemId;
|
| 1642 |
private long fulfilmentWarehouseId;
|
1672 |
private long fulfilmentWarehouseId;
|
| - |
|
1673 |
private long billingWarehouseId;
|
| 1643 |
public getNonSeralizedInventoryItem_call(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
1674 |
public getNonSeralizedInventoryItem_call(String itemNumber, long itemId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 1644 |
super(client, protocolFactory, transport, resultHandler, false);
|
1675 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 1645 |
this.itemNumber = itemNumber;
|
1676 |
this.itemNumber = itemNumber;
|
| 1646 |
this.itemId = itemId;
|
1677 |
this.itemId = itemId;
|
| 1647 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
1678 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| - |
|
1679 |
this.billingWarehouseId = billingWarehouseId;
|
| 1648 |
}
|
1680 |
}
|
| 1649 |
|
1681 |
|
| 1650 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
1682 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 1651 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
1683 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 1652 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
1684 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 1653 |
args.setItemNumber(itemNumber);
|
1685 |
args.setItemNumber(itemNumber);
|
| 1654 |
args.setItemId(itemId);
|
1686 |
args.setItemId(itemId);
|
| 1655 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
1687 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| - |
|
1688 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 1656 |
args.write(prot);
|
1689 |
args.write(prot);
|
| 1657 |
prot.writeMessageEnd();
|
1690 |
prot.writeMessageEnd();
|
| 1658 |
}
|
1691 |
}
|
| 1659 |
|
1692 |
|
| 1660 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
1693 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| Line 3261... |
Line 3294... |
| 3261 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
3294 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 3262 |
return (new Client(prot)).recv_getHistoricBadInventoryByScans();
|
3295 |
return (new Client(prot)).recv_getHistoricBadInventoryByScans();
|
| 3263 |
}
|
3296 |
}
|
| 3264 |
}
|
3297 |
}
|
| 3265 |
|
3298 |
|
| - |
|
3299 |
public void scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForBadSale_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
3300 |
checkReady();
|
| - |
|
3301 |
scanForBadSale_call method_call = new scanForBadSale_call(inventoryItem, orderId, quantity, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
3302 |
this.___currentMethod = method_call;
|
| - |
|
3303 |
___manager.call(method_call);
|
| - |
|
3304 |
}
|
| - |
|
3305 |
|
| - |
|
3306 |
public static class scanForBadSale_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
3307 |
private InventoryItem inventoryItem;
|
| - |
|
3308 |
private long orderId;
|
| - |
|
3309 |
private long quantity;
|
| - |
|
3310 |
private long fulfilmentWarehouseId;
|
| - |
|
3311 |
private long billingWarehouseId;
|
| - |
|
3312 |
public scanForBadSale_call(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForBadSale_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 {
|
| - |
|
3313 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
3314 |
this.inventoryItem = inventoryItem;
|
| - |
|
3315 |
this.orderId = orderId;
|
| - |
|
3316 |
this.quantity = quantity;
|
| - |
|
3317 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| - |
|
3318 |
this.billingWarehouseId = billingWarehouseId;
|
| - |
|
3319 |
}
|
| - |
|
3320 |
|
| - |
|
3321 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
3322 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForBadSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
3323 |
scanForBadSale_args args = new scanForBadSale_args();
|
| - |
|
3324 |
args.setInventoryItem(inventoryItem);
|
| - |
|
3325 |
args.setOrderId(orderId);
|
| - |
|
3326 |
args.setQuantity(quantity);
|
| - |
|
3327 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| - |
|
3328 |
args.setBillingWarehouseId(billingWarehouseId);
|
| - |
|
3329 |
args.write(prot);
|
| - |
|
3330 |
prot.writeMessageEnd();
|
| - |
|
3331 |
}
|
| - |
|
3332 |
|
| - |
|
3333 |
public void getResult() throws org.apache.thrift.TException {
|
| - |
|
3334 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
3335 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
3336 |
}
|
| - |
|
3337 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
3338 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
3339 |
(new Client(prot)).recv_scanForBadSale();
|
| - |
|
3340 |
}
|
| - |
|
3341 |
}
|
| - |
|
3342 |
|
| 3266 |
}
|
3343 |
}
|
| 3267 |
|
3344 |
|
| 3268 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
3345 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
| 3269 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
3346 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
| 3270 |
public Processor(I iface) {
|
3347 |
public Processor(I iface) {
|
| Line 3321... |
Line 3398... |
| 3321 |
processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
|
3398 |
processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
|
| 3322 |
processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
|
3399 |
processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
|
| 3323 |
processMap.put("getInTransitInventory", new getInTransitInventory());
|
3400 |
processMap.put("getInTransitInventory", new getInTransitInventory());
|
| 3324 |
processMap.put("isItemAvailableForSale", new isItemAvailableForSale());
|
3401 |
processMap.put("isItemAvailableForSale", new isItemAvailableForSale());
|
| 3325 |
processMap.put("getHistoricBadInventoryByScans", new getHistoricBadInventoryByScans());
|
3402 |
processMap.put("getHistoricBadInventoryByScans", new getHistoricBadInventoryByScans());
|
| - |
|
3403 |
processMap.put("scanForBadSale", new scanForBadSale());
|
| 3326 |
return processMap;
|
3404 |
return processMap;
|
| 3327 |
}
|
3405 |
}
|
| 3328 |
|
3406 |
|
| 3329 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
3407 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
| 3330 |
public getInventoryItem() {
|
3408 |
public getInventoryItem() {
|
| Line 3356... |
Line 3434... |
| 3356 |
}
|
3434 |
}
|
| 3357 |
|
3435 |
|
| 3358 |
protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
|
3436 |
protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
|
| 3359 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
3437 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
| 3360 |
try {
|
3438 |
try {
|
| 3361 |
result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
|
3439 |
result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId);
|
| 3362 |
} catch (WarehouseServiceException wex) {
|
3440 |
} catch (WarehouseServiceException wex) {
|
| 3363 |
result.wex = wex;
|
3441 |
result.wex = wex;
|
| 3364 |
}
|
3442 |
}
|
| 3365 |
return result;
|
3443 |
return result;
|
| 3366 |
}
|
3444 |
}
|
| Line 4184... |
Line 4262... |
| 4184 |
}
|
4262 |
}
|
| 4185 |
return result;
|
4263 |
return result;
|
| 4186 |
}
|
4264 |
}
|
| 4187 |
}
|
4265 |
}
|
| 4188 |
|
4266 |
|
| - |
|
4267 |
private static class scanForBadSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForBadSale_args> {
|
| - |
|
4268 |
public scanForBadSale() {
|
| - |
|
4269 |
super("scanForBadSale");
|
| - |
|
4270 |
}
|
| - |
|
4271 |
|
| - |
|
4272 |
protected scanForBadSale_args getEmptyArgsInstance() {
|
| - |
|
4273 |
return new scanForBadSale_args();
|
| - |
|
4274 |
}
|
| - |
|
4275 |
|
| - |
|
4276 |
protected scanForBadSale_result getResult(I iface, scanForBadSale_args args) throws org.apache.thrift.TException {
|
| - |
|
4277 |
scanForBadSale_result result = new scanForBadSale_result();
|
| - |
|
4278 |
iface.scanForBadSale(args.inventoryItem, args.orderId, args.quantity, args.fulfilmentWarehouseId, args.billingWarehouseId);
|
| - |
|
4279 |
return result;
|
| - |
|
4280 |
}
|
| - |
|
4281 |
}
|
| - |
|
4282 |
|
| 4189 |
}
|
4283 |
}
|
| 4190 |
|
4284 |
|
| 4191 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
4285 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
| 4192 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
4286 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
| 4193 |
|
4287 |
|
| Line 4868... |
Line 4962... |
| 4868 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
|
4962 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
|
| 4869 |
|
4963 |
|
| 4870 |
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);
|
4964 |
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);
|
| 4871 |
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);
|
4965 |
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);
|
| 4872 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
4966 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| - |
|
4967 |
private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 4873 |
|
4968 |
|
| 4874 |
private String itemNumber; // required
|
4969 |
private String itemNumber; // required
|
| 4875 |
private long itemId; // required
|
4970 |
private long itemId; // required
|
| 4876 |
private long fulfilmentWarehouseId; // required
|
4971 |
private long fulfilmentWarehouseId; // required
|
| - |
|
4972 |
private long billingWarehouseId; // required
|
| 4877 |
|
4973 |
|
| 4878 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
4974 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 4879 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
4975 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4880 |
ITEM_NUMBER((short)1, "itemNumber"),
|
4976 |
ITEM_NUMBER((short)1, "itemNumber"),
|
| 4881 |
ITEM_ID((short)2, "itemId"),
|
4977 |
ITEM_ID((short)2, "itemId"),
|
| 4882 |
FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
|
4978 |
FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId"),
|
| - |
|
4979 |
BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
|
| 4883 |
|
4980 |
|
| 4884 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
4981 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 4885 |
|
4982 |
|
| 4886 |
static {
|
4983 |
static {
|
| 4887 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
4984 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 4898... |
Line 4995... |
| 4898 |
return ITEM_NUMBER;
|
4995 |
return ITEM_NUMBER;
|
| 4899 |
case 2: // ITEM_ID
|
4996 |
case 2: // ITEM_ID
|
| 4900 |
return ITEM_ID;
|
4997 |
return ITEM_ID;
|
| 4901 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
4998 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
| 4902 |
return FULFILMENT_WAREHOUSE_ID;
|
4999 |
return FULFILMENT_WAREHOUSE_ID;
|
| - |
|
5000 |
case 4: // BILLING_WAREHOUSE_ID
|
| - |
|
5001 |
return BILLING_WAREHOUSE_ID;
|
| 4903 |
default:
|
5002 |
default:
|
| 4904 |
return null;
|
5003 |
return null;
|
| 4905 |
}
|
5004 |
}
|
| 4906 |
}
|
5005 |
}
|
| 4907 |
|
5006 |
|
| Line 4940... |
Line 5039... |
| 4940 |
}
|
5039 |
}
|
| 4941 |
|
5040 |
|
| 4942 |
// isset id assignments
|
5041 |
// isset id assignments
|
| 4943 |
private static final int __ITEMID_ISSET_ID = 0;
|
5042 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 4944 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
5043 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
| - |
|
5044 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 2;
|
| 4945 |
private BitSet __isset_bit_vector = new BitSet(2);
|
5045 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 4946 |
|
5046 |
|
| 4947 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
5047 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 4948 |
static {
|
5048 |
static {
|
| 4949 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
5049 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4950 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
5050 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4951 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
5051 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4952 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
5052 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4953 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
5053 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 4954 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
5054 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4955 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
5055 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
5056 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
5057 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 4956 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
5058 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4957 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
|
5059 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
|
| 4958 |
}
|
5060 |
}
|
| 4959 |
|
5061 |
|
| 4960 |
public getNonSeralizedInventoryItem_args() {
|
5062 |
public getNonSeralizedInventoryItem_args() {
|
| 4961 |
}
|
5063 |
}
|
| 4962 |
|
5064 |
|
| 4963 |
public getNonSeralizedInventoryItem_args(
|
5065 |
public getNonSeralizedInventoryItem_args(
|
| 4964 |
String itemNumber,
|
5066 |
String itemNumber,
|
| 4965 |
long itemId,
|
5067 |
long itemId,
|
| 4966 |
long fulfilmentWarehouseId)
|
5068 |
long fulfilmentWarehouseId,
|
| - |
|
5069 |
long billingWarehouseId)
|
| 4967 |
{
|
5070 |
{
|
| 4968 |
this();
|
5071 |
this();
|
| 4969 |
this.itemNumber = itemNumber;
|
5072 |
this.itemNumber = itemNumber;
|
| 4970 |
this.itemId = itemId;
|
5073 |
this.itemId = itemId;
|
| 4971 |
setItemIdIsSet(true);
|
5074 |
setItemIdIsSet(true);
|
| 4972 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
5075 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 4973 |
setFulfilmentWarehouseIdIsSet(true);
|
5076 |
setFulfilmentWarehouseIdIsSet(true);
|
| - |
|
5077 |
this.billingWarehouseId = billingWarehouseId;
|
| - |
|
5078 |
setBillingWarehouseIdIsSet(true);
|
| 4974 |
}
|
5079 |
}
|
| 4975 |
|
5080 |
|
| 4976 |
/**
|
5081 |
/**
|
| 4977 |
* Performs a deep copy on <i>other</i>.
|
5082 |
* Performs a deep copy on <i>other</i>.
|
| 4978 |
*/
|
5083 |
*/
|
| Line 4982... |
Line 5087... |
| 4982 |
if (other.isSetItemNumber()) {
|
5087 |
if (other.isSetItemNumber()) {
|
| 4983 |
this.itemNumber = other.itemNumber;
|
5088 |
this.itemNumber = other.itemNumber;
|
| 4984 |
}
|
5089 |
}
|
| 4985 |
this.itemId = other.itemId;
|
5090 |
this.itemId = other.itemId;
|
| 4986 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
5091 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| - |
|
5092 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 4987 |
}
|
5093 |
}
|
| 4988 |
|
5094 |
|
| 4989 |
public getNonSeralizedInventoryItem_args deepCopy() {
|
5095 |
public getNonSeralizedInventoryItem_args deepCopy() {
|
| 4990 |
return new getNonSeralizedInventoryItem_args(this);
|
5096 |
return new getNonSeralizedInventoryItem_args(this);
|
| 4991 |
}
|
5097 |
}
|
| Line 4995... |
Line 5101... |
| 4995 |
this.itemNumber = null;
|
5101 |
this.itemNumber = null;
|
| 4996 |
setItemIdIsSet(false);
|
5102 |
setItemIdIsSet(false);
|
| 4997 |
this.itemId = 0;
|
5103 |
this.itemId = 0;
|
| 4998 |
setFulfilmentWarehouseIdIsSet(false);
|
5104 |
setFulfilmentWarehouseIdIsSet(false);
|
| 4999 |
this.fulfilmentWarehouseId = 0;
|
5105 |
this.fulfilmentWarehouseId = 0;
|
| - |
|
5106 |
setBillingWarehouseIdIsSet(false);
|
| - |
|
5107 |
this.billingWarehouseId = 0;
|
| 5000 |
}
|
5108 |
}
|
| 5001 |
|
5109 |
|
| 5002 |
public String getItemNumber() {
|
5110 |
public String getItemNumber() {
|
| 5003 |
return this.itemNumber;
|
5111 |
return this.itemNumber;
|
| 5004 |
}
|
5112 |
}
|
| Line 5064... |
Line 5172... |
| 5064 |
|
5172 |
|
| 5065 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
5173 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
| 5066 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
5174 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 5067 |
}
|
5175 |
}
|
| 5068 |
|
5176 |
|
| - |
|
5177 |
public long getBillingWarehouseId() {
|
| - |
|
5178 |
return this.billingWarehouseId;
|
| - |
|
5179 |
}
|
| - |
|
5180 |
|
| - |
|
5181 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
| - |
|
5182 |
this.billingWarehouseId = billingWarehouseId;
|
| - |
|
5183 |
setBillingWarehouseIdIsSet(true);
|
| - |
|
5184 |
}
|
| - |
|
5185 |
|
| - |
|
5186 |
public void unsetBillingWarehouseId() {
|
| - |
|
5187 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| - |
|
5188 |
}
|
| - |
|
5189 |
|
| - |
|
5190 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
| - |
|
5191 |
public boolean isSetBillingWarehouseId() {
|
| - |
|
5192 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| - |
|
5193 |
}
|
| - |
|
5194 |
|
| - |
|
5195 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
| - |
|
5196 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| - |
|
5197 |
}
|
| - |
|
5198 |
|
| 5069 |
public void setFieldValue(_Fields field, Object value) {
|
5199 |
public void setFieldValue(_Fields field, Object value) {
|
| 5070 |
switch (field) {
|
5200 |
switch (field) {
|
| 5071 |
case ITEM_NUMBER:
|
5201 |
case ITEM_NUMBER:
|
| 5072 |
if (value == null) {
|
5202 |
if (value == null) {
|
| 5073 |
unsetItemNumber();
|
5203 |
unsetItemNumber();
|
| Line 5090... |
Line 5220... |
| 5090 |
} else {
|
5220 |
} else {
|
| 5091 |
setFulfilmentWarehouseId((Long)value);
|
5221 |
setFulfilmentWarehouseId((Long)value);
|
| 5092 |
}
|
5222 |
}
|
| 5093 |
break;
|
5223 |
break;
|
| 5094 |
|
5224 |
|
| - |
|
5225 |
case BILLING_WAREHOUSE_ID:
|
| - |
|
5226 |
if (value == null) {
|
| - |
|
5227 |
unsetBillingWarehouseId();
|
| - |
|
5228 |
} else {
|
| - |
|
5229 |
setBillingWarehouseId((Long)value);
|
| - |
|
5230 |
}
|
| - |
|
5231 |
break;
|
| - |
|
5232 |
|
| 5095 |
}
|
5233 |
}
|
| 5096 |
}
|
5234 |
}
|
| 5097 |
|
5235 |
|
| 5098 |
public Object getFieldValue(_Fields field) {
|
5236 |
public Object getFieldValue(_Fields field) {
|
| 5099 |
switch (field) {
|
5237 |
switch (field) {
|
| Line 5104... |
Line 5242... |
| 5104 |
return Long.valueOf(getItemId());
|
5242 |
return Long.valueOf(getItemId());
|
| 5105 |
|
5243 |
|
| 5106 |
case FULFILMENT_WAREHOUSE_ID:
|
5244 |
case FULFILMENT_WAREHOUSE_ID:
|
| 5107 |
return Long.valueOf(getFulfilmentWarehouseId());
|
5245 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 5108 |
|
5246 |
|
| - |
|
5247 |
case BILLING_WAREHOUSE_ID:
|
| - |
|
5248 |
return Long.valueOf(getBillingWarehouseId());
|
| - |
|
5249 |
|
| 5109 |
}
|
5250 |
}
|
| 5110 |
throw new IllegalStateException();
|
5251 |
throw new IllegalStateException();
|
| 5111 |
}
|
5252 |
}
|
| 5112 |
|
5253 |
|
| 5113 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
5254 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 5121... |
Line 5262... |
| 5121 |
return isSetItemNumber();
|
5262 |
return isSetItemNumber();
|
| 5122 |
case ITEM_ID:
|
5263 |
case ITEM_ID:
|
| 5123 |
return isSetItemId();
|
5264 |
return isSetItemId();
|
| 5124 |
case FULFILMENT_WAREHOUSE_ID:
|
5265 |
case FULFILMENT_WAREHOUSE_ID:
|
| 5125 |
return isSetFulfilmentWarehouseId();
|
5266 |
return isSetFulfilmentWarehouseId();
|
| - |
|
5267 |
case BILLING_WAREHOUSE_ID:
|
| - |
|
5268 |
return isSetBillingWarehouseId();
|
| 5126 |
}
|
5269 |
}
|
| 5127 |
throw new IllegalStateException();
|
5270 |
throw new IllegalStateException();
|
| 5128 |
}
|
5271 |
}
|
| 5129 |
|
5272 |
|
| 5130 |
@Override
|
5273 |
@Override
|
| Line 5165... |
Line 5308... |
| 5165 |
return false;
|
5308 |
return false;
|
| 5166 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
5309 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 5167 |
return false;
|
5310 |
return false;
|
| 5168 |
}
|
5311 |
}
|
| 5169 |
|
5312 |
|
| - |
|
5313 |
boolean this_present_billingWarehouseId = true;
|
| - |
|
5314 |
boolean that_present_billingWarehouseId = true;
|
| - |
|
5315 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
| - |
|
5316 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| - |
|
5317 |
return false;
|
| - |
|
5318 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| - |
|
5319 |
return false;
|
| - |
|
5320 |
}
|
| - |
|
5321 |
|
| 5170 |
return true;
|
5322 |
return true;
|
| 5171 |
}
|
5323 |
}
|
| 5172 |
|
5324 |
|
| 5173 |
@Override
|
5325 |
@Override
|
| 5174 |
public int hashCode() {
|
5326 |
public int hashCode() {
|
| Line 5211... |
Line 5363... |
| 5211 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
5363 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 5212 |
if (lastComparison != 0) {
|
5364 |
if (lastComparison != 0) {
|
| 5213 |
return lastComparison;
|
5365 |
return lastComparison;
|
| 5214 |
}
|
5366 |
}
|
| 5215 |
}
|
5367 |
}
|
| - |
|
5368 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| - |
|
5369 |
if (lastComparison != 0) {
|
| - |
|
5370 |
return lastComparison;
|
| - |
|
5371 |
}
|
| - |
|
5372 |
if (isSetBillingWarehouseId()) {
|
| - |
|
5373 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| - |
|
5374 |
if (lastComparison != 0) {
|
| - |
|
5375 |
return lastComparison;
|
| - |
|
5376 |
}
|
| - |
|
5377 |
}
|
| 5216 |
return 0;
|
5378 |
return 0;
|
| 5217 |
}
|
5379 |
}
|
| 5218 |
|
5380 |
|
| 5219 |
public _Fields fieldForId(int fieldId) {
|
5381 |
public _Fields fieldForId(int fieldId) {
|
| 5220 |
return _Fields.findByThriftId(fieldId);
|
5382 |
return _Fields.findByThriftId(fieldId);
|
| Line 5251... |
Line 5413... |
| 5251 |
setFulfilmentWarehouseIdIsSet(true);
|
5413 |
setFulfilmentWarehouseIdIsSet(true);
|
| 5252 |
} else {
|
5414 |
} else {
|
| 5253 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
5415 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 5254 |
}
|
5416 |
}
|
| 5255 |
break;
|
5417 |
break;
|
| - |
|
5418 |
case 4: // BILLING_WAREHOUSE_ID
|
| - |
|
5419 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
5420 |
this.billingWarehouseId = iprot.readI64();
|
| - |
|
5421 |
setBillingWarehouseIdIsSet(true);
|
| - |
|
5422 |
} else {
|
| - |
|
5423 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
5424 |
}
|
| - |
|
5425 |
break;
|
| 5256 |
default:
|
5426 |
default:
|
| 5257 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
5427 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 5258 |
}
|
5428 |
}
|
| 5259 |
iprot.readFieldEnd();
|
5429 |
iprot.readFieldEnd();
|
| 5260 |
}
|
5430 |
}
|
| Line 5275... |
Line 5445... |
| 5275 |
oprot.writeI64(this.itemId);
|
5445 |
oprot.writeI64(this.itemId);
|
| 5276 |
oprot.writeFieldEnd();
|
5446 |
oprot.writeFieldEnd();
|
| 5277 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
5447 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
| 5278 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
5448 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 5279 |
oprot.writeFieldEnd();
|
5449 |
oprot.writeFieldEnd();
|
| - |
|
5450 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
| - |
|
5451 |
oprot.writeI64(this.billingWarehouseId);
|
| - |
|
5452 |
oprot.writeFieldEnd();
|
| 5280 |
oprot.writeFieldStop();
|
5453 |
oprot.writeFieldStop();
|
| 5281 |
oprot.writeStructEnd();
|
5454 |
oprot.writeStructEnd();
|
| 5282 |
}
|
5455 |
}
|
| 5283 |
|
5456 |
|
| 5284 |
@Override
|
5457 |
@Override
|
| Line 5299... |
Line 5472... |
| 5299 |
first = false;
|
5472 |
first = false;
|
| 5300 |
if (!first) sb.append(", ");
|
5473 |
if (!first) sb.append(", ");
|
| 5301 |
sb.append("fulfilmentWarehouseId:");
|
5474 |
sb.append("fulfilmentWarehouseId:");
|
| 5302 |
sb.append(this.fulfilmentWarehouseId);
|
5475 |
sb.append(this.fulfilmentWarehouseId);
|
| 5303 |
first = false;
|
5476 |
first = false;
|
| - |
|
5477 |
if (!first) sb.append(", ");
|
| - |
|
5478 |
sb.append("billingWarehouseId:");
|
| - |
|
5479 |
sb.append(this.billingWarehouseId);
|
| - |
|
5480 |
first = false;
|
| 5304 |
sb.append(")");
|
5481 |
sb.append(")");
|
| 5305 |
return sb.toString();
|
5482 |
return sb.toString();
|
| 5306 |
}
|
5483 |
}
|
| 5307 |
|
5484 |
|
| 5308 |
public void validate() throws org.apache.thrift.TException {
|
5485 |
public void validate() throws org.apache.thrift.TException {
|
| Line 38794... |
Line 38971... |
| 38794 |
sb.append(")");
|
38971 |
sb.append(")");
|
| 38795 |
return sb.toString();
|
38972 |
return sb.toString();
|
| 38796 |
}
|
38973 |
}
|
| 38797 |
|
38974 |
|
| 38798 |
public void validate() throws org.apache.thrift.TException {
|
38975 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
38976 |
// check for required fields
|
| - |
|
38977 |
}
|
| - |
|
38978 |
|
| - |
|
38979 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
38980 |
try {
|
| - |
|
38981 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
38982 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
38983 |
throw new java.io.IOException(te);
|
| - |
|
38984 |
}
|
| - |
|
38985 |
}
|
| - |
|
38986 |
|
| - |
|
38987 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
38988 |
try {
|
| - |
|
38989 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
38990 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
38991 |
throw new java.io.IOException(te);
|
| - |
|
38992 |
}
|
| - |
|
38993 |
}
|
| - |
|
38994 |
|
| - |
|
38995 |
}
|
| - |
|
38996 |
|
| - |
|
38997 |
public static class scanForBadSale_args implements org.apache.thrift.TBase<scanForBadSale_args, scanForBadSale_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
38998 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForBadSale_args");
|
| - |
|
38999 |
|
| - |
|
39000 |
private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| - |
|
39001 |
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)2);
|
| - |
|
39002 |
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);
|
| - |
|
39003 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
|
| - |
|
39004 |
private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
|
| - |
|
39005 |
|
| - |
|
39006 |
private InventoryItem inventoryItem; // required
|
| - |
|
39007 |
private long orderId; // required
|
| - |
|
39008 |
private long quantity; // required
|
| - |
|
39009 |
private long fulfilmentWarehouseId; // required
|
| - |
|
39010 |
private long billingWarehouseId; // required
|
| - |
|
39011 |
|
| - |
|
39012 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
39013 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
39014 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| - |
|
39015 |
ORDER_ID((short)2, "orderId"),
|
| - |
|
39016 |
QUANTITY((short)3, "quantity"),
|
| - |
|
39017 |
FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
|
| - |
|
39018 |
BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId");
|
| - |
|
39019 |
|
| - |
|
39020 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
39021 |
|
| - |
|
39022 |
static {
|
| - |
|
39023 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
39024 |
byName.put(field.getFieldName(), field);
|
| - |
|
39025 |
}
|
| - |
|
39026 |
}
|
| - |
|
39027 |
|
| - |
|
39028 |
/**
|
| - |
|
39029 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
39030 |
*/
|
| - |
|
39031 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
39032 |
switch(fieldId) {
|
| - |
|
39033 |
case 1: // INVENTORY_ITEM
|
| - |
|
39034 |
return INVENTORY_ITEM;
|
| - |
|
39035 |
case 2: // ORDER_ID
|
| - |
|
39036 |
return ORDER_ID;
|
| - |
|
39037 |
case 3: // QUANTITY
|
| - |
|
39038 |
return QUANTITY;
|
| - |
|
39039 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| - |
|
39040 |
return FULFILMENT_WAREHOUSE_ID;
|
| - |
|
39041 |
case 5: // BILLING_WAREHOUSE_ID
|
| - |
|
39042 |
return BILLING_WAREHOUSE_ID;
|
| - |
|
39043 |
default:
|
| - |
|
39044 |
return null;
|
| - |
|
39045 |
}
|
| - |
|
39046 |
}
|
| - |
|
39047 |
|
| - |
|
39048 |
/**
|
| - |
|
39049 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
39050 |
* if it is not found.
|
| - |
|
39051 |
*/
|
| - |
|
39052 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
39053 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
39054 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
39055 |
return fields;
|
| - |
|
39056 |
}
|
| - |
|
39057 |
|
| - |
|
39058 |
/**
|
| - |
|
39059 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
39060 |
*/
|
| - |
|
39061 |
public static _Fields findByName(String name) {
|
| - |
|
39062 |
return byName.get(name);
|
| - |
|
39063 |
}
|
| - |
|
39064 |
|
| - |
|
39065 |
private final short _thriftId;
|
| - |
|
39066 |
private final String _fieldName;
|
| - |
|
39067 |
|
| - |
|
39068 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
39069 |
_thriftId = thriftId;
|
| - |
|
39070 |
_fieldName = fieldName;
|
| - |
|
39071 |
}
|
| - |
|
39072 |
|
| - |
|
39073 |
public short getThriftFieldId() {
|
| - |
|
39074 |
return _thriftId;
|
| - |
|
39075 |
}
|
| - |
|
39076 |
|
| - |
|
39077 |
public String getFieldName() {
|
| - |
|
39078 |
return _fieldName;
|
| - |
|
39079 |
}
|
| - |
|
39080 |
}
|
| - |
|
39081 |
|
| - |
|
39082 |
// isset id assignments
|
| - |
|
39083 |
private static final int __ORDERID_ISSET_ID = 0;
|
| - |
|
39084 |
private static final int __QUANTITY_ISSET_ID = 1;
|
| - |
|
39085 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
|
| - |
|
39086 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
| - |
|
39087 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| - |
|
39088 |
|
| - |
|
39089 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
39090 |
static {
|
| - |
|
39091 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
39092 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
39093 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| - |
|
39094 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
39095 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
39096 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
39097 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
39098 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
39099 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
39100 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
39101 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
39102 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
39103 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForBadSale_args.class, metaDataMap);
|
| - |
|
39104 |
}
|
| - |
|
39105 |
|
| - |
|
39106 |
public scanForBadSale_args() {
|
| - |
|
39107 |
}
|
| - |
|
39108 |
|
| - |
|
39109 |
public scanForBadSale_args(
|
| - |
|
39110 |
InventoryItem inventoryItem,
|
| - |
|
39111 |
long orderId,
|
| - |
|
39112 |
long quantity,
|
| - |
|
39113 |
long fulfilmentWarehouseId,
|
| - |
|
39114 |
long billingWarehouseId)
|
| - |
|
39115 |
{
|
| - |
|
39116 |
this();
|
| - |
|
39117 |
this.inventoryItem = inventoryItem;
|
| - |
|
39118 |
this.orderId = orderId;
|
| - |
|
39119 |
setOrderIdIsSet(true);
|
| - |
|
39120 |
this.quantity = quantity;
|
| - |
|
39121 |
setQuantityIsSet(true);
|
| - |
|
39122 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| - |
|
39123 |
setFulfilmentWarehouseIdIsSet(true);
|
| - |
|
39124 |
this.billingWarehouseId = billingWarehouseId;
|
| - |
|
39125 |
setBillingWarehouseIdIsSet(true);
|
| - |
|
39126 |
}
|
| - |
|
39127 |
|
| - |
|
39128 |
/**
|
| - |
|
39129 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
39130 |
*/
|
| - |
|
39131 |
public scanForBadSale_args(scanForBadSale_args other) {
|
| - |
|
39132 |
__isset_bit_vector.clear();
|
| - |
|
39133 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
39134 |
if (other.isSetInventoryItem()) {
|
| - |
|
39135 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
| - |
|
39136 |
}
|
| - |
|
39137 |
this.orderId = other.orderId;
|
| - |
|
39138 |
this.quantity = other.quantity;
|
| - |
|
39139 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| - |
|
39140 |
this.billingWarehouseId = other.billingWarehouseId;
|
| - |
|
39141 |
}
|
| - |
|
39142 |
|
| - |
|
39143 |
public scanForBadSale_args deepCopy() {
|
| - |
|
39144 |
return new scanForBadSale_args(this);
|
| - |
|
39145 |
}
|
| - |
|
39146 |
|
| - |
|
39147 |
@Override
|
| - |
|
39148 |
public void clear() {
|
| - |
|
39149 |
this.inventoryItem = null;
|
| - |
|
39150 |
setOrderIdIsSet(false);
|
| - |
|
39151 |
this.orderId = 0;
|
| - |
|
39152 |
setQuantityIsSet(false);
|
| - |
|
39153 |
this.quantity = 0;
|
| - |
|
39154 |
setFulfilmentWarehouseIdIsSet(false);
|
| - |
|
39155 |
this.fulfilmentWarehouseId = 0;
|
| - |
|
39156 |
setBillingWarehouseIdIsSet(false);
|
| - |
|
39157 |
this.billingWarehouseId = 0;
|
| - |
|
39158 |
}
|
| - |
|
39159 |
|
| - |
|
39160 |
public InventoryItem getInventoryItem() {
|
| - |
|
39161 |
return this.inventoryItem;
|
| - |
|
39162 |
}
|
| - |
|
39163 |
|
| - |
|
39164 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
| - |
|
39165 |
this.inventoryItem = inventoryItem;
|
| - |
|
39166 |
}
|
| - |
|
39167 |
|
| - |
|
39168 |
public void unsetInventoryItem() {
|
| - |
|
39169 |
this.inventoryItem = null;
|
| - |
|
39170 |
}
|
| - |
|
39171 |
|
| - |
|
39172 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
| - |
|
39173 |
public boolean isSetInventoryItem() {
|
| - |
|
39174 |
return this.inventoryItem != null;
|
| - |
|
39175 |
}
|
| - |
|
39176 |
|
| - |
|
39177 |
public void setInventoryItemIsSet(boolean value) {
|
| - |
|
39178 |
if (!value) {
|
| - |
|
39179 |
this.inventoryItem = null;
|
| - |
|
39180 |
}
|
| - |
|
39181 |
}
|
| - |
|
39182 |
|
| - |
|
39183 |
public long getOrderId() {
|
| - |
|
39184 |
return this.orderId;
|
| - |
|
39185 |
}
|
| - |
|
39186 |
|
| - |
|
39187 |
public void setOrderId(long orderId) {
|
| - |
|
39188 |
this.orderId = orderId;
|
| - |
|
39189 |
setOrderIdIsSet(true);
|
| - |
|
39190 |
}
|
| - |
|
39191 |
|
| - |
|
39192 |
public void unsetOrderId() {
|
| - |
|
39193 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| - |
|
39194 |
}
|
| - |
|
39195 |
|
| - |
|
39196 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
| - |
|
39197 |
public boolean isSetOrderId() {
|
| - |
|
39198 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| - |
|
39199 |
}
|
| - |
|
39200 |
|
| - |
|
39201 |
public void setOrderIdIsSet(boolean value) {
|
| - |
|
39202 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| - |
|
39203 |
}
|
| - |
|
39204 |
|
| - |
|
39205 |
public long getQuantity() {
|
| - |
|
39206 |
return this.quantity;
|
| - |
|
39207 |
}
|
| - |
|
39208 |
|
| - |
|
39209 |
public void setQuantity(long quantity) {
|
| - |
|
39210 |
this.quantity = quantity;
|
| - |
|
39211 |
setQuantityIsSet(true);
|
| - |
|
39212 |
}
|
| - |
|
39213 |
|
| - |
|
39214 |
public void unsetQuantity() {
|
| - |
|
39215 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
| - |
|
39216 |
}
|
| - |
|
39217 |
|
| - |
|
39218 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
| - |
|
39219 |
public boolean isSetQuantity() {
|
| - |
|
39220 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
| - |
|
39221 |
}
|
| - |
|
39222 |
|
| - |
|
39223 |
public void setQuantityIsSet(boolean value) {
|
| - |
|
39224 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
| - |
|
39225 |
}
|
| - |
|
39226 |
|
| - |
|
39227 |
public long getFulfilmentWarehouseId() {
|
| - |
|
39228 |
return this.fulfilmentWarehouseId;
|
| - |
|
39229 |
}
|
| - |
|
39230 |
|
| - |
|
39231 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
| - |
|
39232 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| - |
|
39233 |
setFulfilmentWarehouseIdIsSet(true);
|
| - |
|
39234 |
}
|
| - |
|
39235 |
|
| - |
|
39236 |
public void unsetFulfilmentWarehouseId() {
|
| - |
|
39237 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| - |
|
39238 |
}
|
| - |
|
39239 |
|
| - |
|
39240 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
| - |
|
39241 |
public boolean isSetFulfilmentWarehouseId() {
|
| - |
|
39242 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| - |
|
39243 |
}
|
| - |
|
39244 |
|
| - |
|
39245 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
| - |
|
39246 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| - |
|
39247 |
}
|
| - |
|
39248 |
|
| - |
|
39249 |
public long getBillingWarehouseId() {
|
| - |
|
39250 |
return this.billingWarehouseId;
|
| - |
|
39251 |
}
|
| - |
|
39252 |
|
| - |
|
39253 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
| - |
|
39254 |
this.billingWarehouseId = billingWarehouseId;
|
| - |
|
39255 |
setBillingWarehouseIdIsSet(true);
|
| - |
|
39256 |
}
|
| - |
|
39257 |
|
| - |
|
39258 |
public void unsetBillingWarehouseId() {
|
| - |
|
39259 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| - |
|
39260 |
}
|
| - |
|
39261 |
|
| - |
|
39262 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
| - |
|
39263 |
public boolean isSetBillingWarehouseId() {
|
| - |
|
39264 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| - |
|
39265 |
}
|
| - |
|
39266 |
|
| - |
|
39267 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
| - |
|
39268 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| - |
|
39269 |
}
|
| - |
|
39270 |
|
| - |
|
39271 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
39272 |
switch (field) {
|
| - |
|
39273 |
case INVENTORY_ITEM:
|
| - |
|
39274 |
if (value == null) {
|
| - |
|
39275 |
unsetInventoryItem();
|
| - |
|
39276 |
} else {
|
| - |
|
39277 |
setInventoryItem((InventoryItem)value);
|
| - |
|
39278 |
}
|
| - |
|
39279 |
break;
|
| - |
|
39280 |
|
| - |
|
39281 |
case ORDER_ID:
|
| - |
|
39282 |
if (value == null) {
|
| - |
|
39283 |
unsetOrderId();
|
| - |
|
39284 |
} else {
|
| - |
|
39285 |
setOrderId((Long)value);
|
| - |
|
39286 |
}
|
| - |
|
39287 |
break;
|
| - |
|
39288 |
|
| - |
|
39289 |
case QUANTITY:
|
| - |
|
39290 |
if (value == null) {
|
| - |
|
39291 |
unsetQuantity();
|
| - |
|
39292 |
} else {
|
| - |
|
39293 |
setQuantity((Long)value);
|
| - |
|
39294 |
}
|
| - |
|
39295 |
break;
|
| - |
|
39296 |
|
| - |
|
39297 |
case FULFILMENT_WAREHOUSE_ID:
|
| - |
|
39298 |
if (value == null) {
|
| - |
|
39299 |
unsetFulfilmentWarehouseId();
|
| - |
|
39300 |
} else {
|
| - |
|
39301 |
setFulfilmentWarehouseId((Long)value);
|
| - |
|
39302 |
}
|
| - |
|
39303 |
break;
|
| - |
|
39304 |
|
| - |
|
39305 |
case BILLING_WAREHOUSE_ID:
|
| - |
|
39306 |
if (value == null) {
|
| - |
|
39307 |
unsetBillingWarehouseId();
|
| - |
|
39308 |
} else {
|
| - |
|
39309 |
setBillingWarehouseId((Long)value);
|
| - |
|
39310 |
}
|
| - |
|
39311 |
break;
|
| - |
|
39312 |
|
| - |
|
39313 |
}
|
| - |
|
39314 |
}
|
| - |
|
39315 |
|
| - |
|
39316 |
public Object getFieldValue(_Fields field) {
|
| - |
|
39317 |
switch (field) {
|
| - |
|
39318 |
case INVENTORY_ITEM:
|
| - |
|
39319 |
return getInventoryItem();
|
| - |
|
39320 |
|
| - |
|
39321 |
case ORDER_ID:
|
| - |
|
39322 |
return Long.valueOf(getOrderId());
|
| - |
|
39323 |
|
| - |
|
39324 |
case QUANTITY:
|
| - |
|
39325 |
return Long.valueOf(getQuantity());
|
| - |
|
39326 |
|
| - |
|
39327 |
case FULFILMENT_WAREHOUSE_ID:
|
| - |
|
39328 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| - |
|
39329 |
|
| - |
|
39330 |
case BILLING_WAREHOUSE_ID:
|
| - |
|
39331 |
return Long.valueOf(getBillingWarehouseId());
|
| - |
|
39332 |
|
| - |
|
39333 |
}
|
| - |
|
39334 |
throw new IllegalStateException();
|
| - |
|
39335 |
}
|
| - |
|
39336 |
|
| - |
|
39337 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
39338 |
public boolean isSet(_Fields field) {
|
| - |
|
39339 |
if (field == null) {
|
| - |
|
39340 |
throw new IllegalArgumentException();
|
| - |
|
39341 |
}
|
| - |
|
39342 |
|
| - |
|
39343 |
switch (field) {
|
| - |
|
39344 |
case INVENTORY_ITEM:
|
| - |
|
39345 |
return isSetInventoryItem();
|
| - |
|
39346 |
case ORDER_ID:
|
| - |
|
39347 |
return isSetOrderId();
|
| - |
|
39348 |
case QUANTITY:
|
| - |
|
39349 |
return isSetQuantity();
|
| - |
|
39350 |
case FULFILMENT_WAREHOUSE_ID:
|
| - |
|
39351 |
return isSetFulfilmentWarehouseId();
|
| - |
|
39352 |
case BILLING_WAREHOUSE_ID:
|
| - |
|
39353 |
return isSetBillingWarehouseId();
|
| - |
|
39354 |
}
|
| - |
|
39355 |
throw new IllegalStateException();
|
| - |
|
39356 |
}
|
| - |
|
39357 |
|
| - |
|
39358 |
@Override
|
| - |
|
39359 |
public boolean equals(Object that) {
|
| - |
|
39360 |
if (that == null)
|
| - |
|
39361 |
return false;
|
| - |
|
39362 |
if (that instanceof scanForBadSale_args)
|
| - |
|
39363 |
return this.equals((scanForBadSale_args)that);
|
| - |
|
39364 |
return false;
|
| - |
|
39365 |
}
|
| - |
|
39366 |
|
| - |
|
39367 |
public boolean equals(scanForBadSale_args that) {
|
| - |
|
39368 |
if (that == null)
|
| - |
|
39369 |
return false;
|
| - |
|
39370 |
|
| - |
|
39371 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
| - |
|
39372 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
| - |
|
39373 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
| - |
|
39374 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| - |
|
39375 |
return false;
|
| - |
|
39376 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| - |
|
39377 |
return false;
|
| - |
|
39378 |
}
|
| - |
|
39379 |
|
| - |
|
39380 |
boolean this_present_orderId = true;
|
| - |
|
39381 |
boolean that_present_orderId = true;
|
| - |
|
39382 |
if (this_present_orderId || that_present_orderId) {
|
| - |
|
39383 |
if (!(this_present_orderId && that_present_orderId))
|
| - |
|
39384 |
return false;
|
| - |
|
39385 |
if (this.orderId != that.orderId)
|
| - |
|
39386 |
return false;
|
| - |
|
39387 |
}
|
| - |
|
39388 |
|
| - |
|
39389 |
boolean this_present_quantity = true;
|
| - |
|
39390 |
boolean that_present_quantity = true;
|
| - |
|
39391 |
if (this_present_quantity || that_present_quantity) {
|
| - |
|
39392 |
if (!(this_present_quantity && that_present_quantity))
|
| - |
|
39393 |
return false;
|
| - |
|
39394 |
if (this.quantity != that.quantity)
|
| - |
|
39395 |
return false;
|
| - |
|
39396 |
}
|
| - |
|
39397 |
|
| - |
|
39398 |
boolean this_present_fulfilmentWarehouseId = true;
|
| - |
|
39399 |
boolean that_present_fulfilmentWarehouseId = true;
|
| - |
|
39400 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
| - |
|
39401 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| - |
|
39402 |
return false;
|
| - |
|
39403 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| - |
|
39404 |
return false;
|
| - |
|
39405 |
}
|
| - |
|
39406 |
|
| - |
|
39407 |
boolean this_present_billingWarehouseId = true;
|
| - |
|
39408 |
boolean that_present_billingWarehouseId = true;
|
| - |
|
39409 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
| - |
|
39410 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| - |
|
39411 |
return false;
|
| - |
|
39412 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| - |
|
39413 |
return false;
|
| - |
|
39414 |
}
|
| - |
|
39415 |
|
| - |
|
39416 |
return true;
|
| - |
|
39417 |
}
|
| - |
|
39418 |
|
| - |
|
39419 |
@Override
|
| - |
|
39420 |
public int hashCode() {
|
| - |
|
39421 |
return 0;
|
| - |
|
39422 |
}
|
| - |
|
39423 |
|
| - |
|
39424 |
public int compareTo(scanForBadSale_args other) {
|
| - |
|
39425 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
39426 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
39427 |
}
|
| - |
|
39428 |
|
| - |
|
39429 |
int lastComparison = 0;
|
| - |
|
39430 |
scanForBadSale_args typedOther = (scanForBadSale_args)other;
|
| - |
|
39431 |
|
| - |
|
39432 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| - |
|
39433 |
if (lastComparison != 0) {
|
| - |
|
39434 |
return lastComparison;
|
| - |
|
39435 |
}
|
| - |
|
39436 |
if (isSetInventoryItem()) {
|
| - |
|
39437 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| - |
|
39438 |
if (lastComparison != 0) {
|
| - |
|
39439 |
return lastComparison;
|
| - |
|
39440 |
}
|
| - |
|
39441 |
}
|
| - |
|
39442 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| - |
|
39443 |
if (lastComparison != 0) {
|
| - |
|
39444 |
return lastComparison;
|
| - |
|
39445 |
}
|
| - |
|
39446 |
if (isSetOrderId()) {
|
| - |
|
39447 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| - |
|
39448 |
if (lastComparison != 0) {
|
| - |
|
39449 |
return lastComparison;
|
| - |
|
39450 |
}
|
| - |
|
39451 |
}
|
| - |
|
39452 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| - |
|
39453 |
if (lastComparison != 0) {
|
| - |
|
39454 |
return lastComparison;
|
| - |
|
39455 |
}
|
| - |
|
39456 |
if (isSetQuantity()) {
|
| - |
|
39457 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| - |
|
39458 |
if (lastComparison != 0) {
|
| - |
|
39459 |
return lastComparison;
|
| - |
|
39460 |
}
|
| - |
|
39461 |
}
|
| - |
|
39462 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| - |
|
39463 |
if (lastComparison != 0) {
|
| - |
|
39464 |
return lastComparison;
|
| - |
|
39465 |
}
|
| - |
|
39466 |
if (isSetFulfilmentWarehouseId()) {
|
| - |
|
39467 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| - |
|
39468 |
if (lastComparison != 0) {
|
| - |
|
39469 |
return lastComparison;
|
| - |
|
39470 |
}
|
| - |
|
39471 |
}
|
| - |
|
39472 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| - |
|
39473 |
if (lastComparison != 0) {
|
| - |
|
39474 |
return lastComparison;
|
| - |
|
39475 |
}
|
| - |
|
39476 |
if (isSetBillingWarehouseId()) {
|
| - |
|
39477 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| - |
|
39478 |
if (lastComparison != 0) {
|
| - |
|
39479 |
return lastComparison;
|
| - |
|
39480 |
}
|
| - |
|
39481 |
}
|
| - |
|
39482 |
return 0;
|
| - |
|
39483 |
}
|
| - |
|
39484 |
|
| - |
|
39485 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
39486 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
39487 |
}
|
| - |
|
39488 |
|
| - |
|
39489 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
39490 |
org.apache.thrift.protocol.TField field;
|
| - |
|
39491 |
iprot.readStructBegin();
|
| - |
|
39492 |
while (true)
|
| - |
|
39493 |
{
|
| - |
|
39494 |
field = iprot.readFieldBegin();
|
| - |
|
39495 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
39496 |
break;
|
| - |
|
39497 |
}
|
| - |
|
39498 |
switch (field.id) {
|
| - |
|
39499 |
case 1: // INVENTORY_ITEM
|
| - |
|
39500 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| - |
|
39501 |
this.inventoryItem = new InventoryItem();
|
| - |
|
39502 |
this.inventoryItem.read(iprot);
|
| - |
|
39503 |
} else {
|
| - |
|
39504 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
39505 |
}
|
| - |
|
39506 |
break;
|
| - |
|
39507 |
case 2: // ORDER_ID
|
| - |
|
39508 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
39509 |
this.orderId = iprot.readI64();
|
| - |
|
39510 |
setOrderIdIsSet(true);
|
| - |
|
39511 |
} else {
|
| - |
|
39512 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
39513 |
}
|
| - |
|
39514 |
break;
|
| - |
|
39515 |
case 3: // QUANTITY
|
| - |
|
39516 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
39517 |
this.quantity = iprot.readI64();
|
| - |
|
39518 |
setQuantityIsSet(true);
|
| - |
|
39519 |
} else {
|
| - |
|
39520 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
39521 |
}
|
| - |
|
39522 |
break;
|
| - |
|
39523 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| - |
|
39524 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
39525 |
this.fulfilmentWarehouseId = iprot.readI64();
|
| - |
|
39526 |
setFulfilmentWarehouseIdIsSet(true);
|
| - |
|
39527 |
} else {
|
| - |
|
39528 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
39529 |
}
|
| - |
|
39530 |
break;
|
| - |
|
39531 |
case 5: // BILLING_WAREHOUSE_ID
|
| - |
|
39532 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
39533 |
this.billingWarehouseId = iprot.readI64();
|
| - |
|
39534 |
setBillingWarehouseIdIsSet(true);
|
| - |
|
39535 |
} else {
|
| - |
|
39536 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
39537 |
}
|
| - |
|
39538 |
break;
|
| - |
|
39539 |
default:
|
| - |
|
39540 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
39541 |
}
|
| - |
|
39542 |
iprot.readFieldEnd();
|
| - |
|
39543 |
}
|
| - |
|
39544 |
iprot.readStructEnd();
|
| - |
|
39545 |
validate();
|
| - |
|
39546 |
}
|
| - |
|
39547 |
|
| - |
|
39548 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
39549 |
validate();
|
| - |
|
39550 |
|
| - |
|
39551 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
39552 |
if (this.inventoryItem != null) {
|
| - |
|
39553 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
| - |
|
39554 |
this.inventoryItem.write(oprot);
|
| - |
|
39555 |
oprot.writeFieldEnd();
|
| - |
|
39556 |
}
|
| - |
|
39557 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
| - |
|
39558 |
oprot.writeI64(this.orderId);
|
| - |
|
39559 |
oprot.writeFieldEnd();
|
| - |
|
39560 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
| - |
|
39561 |
oprot.writeI64(this.quantity);
|
| - |
|
39562 |
oprot.writeFieldEnd();
|
| - |
|
39563 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
| - |
|
39564 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| - |
|
39565 |
oprot.writeFieldEnd();
|
| - |
|
39566 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
| - |
|
39567 |
oprot.writeI64(this.billingWarehouseId);
|
| - |
|
39568 |
oprot.writeFieldEnd();
|
| - |
|
39569 |
oprot.writeFieldStop();
|
| - |
|
39570 |
oprot.writeStructEnd();
|
| - |
|
39571 |
}
|
| - |
|
39572 |
|
| - |
|
39573 |
@Override
|
| - |
|
39574 |
public String toString() {
|
| - |
|
39575 |
StringBuilder sb = new StringBuilder("scanForBadSale_args(");
|
| - |
|
39576 |
boolean first = true;
|
| - |
|
39577 |
|
| - |
|
39578 |
sb.append("inventoryItem:");
|
| - |
|
39579 |
if (this.inventoryItem == null) {
|
| - |
|
39580 |
sb.append("null");
|
| - |
|
39581 |
} else {
|
| - |
|
39582 |
sb.append(this.inventoryItem);
|
| - |
|
39583 |
}
|
| - |
|
39584 |
first = false;
|
| - |
|
39585 |
if (!first) sb.append(", ");
|
| - |
|
39586 |
sb.append("orderId:");
|
| - |
|
39587 |
sb.append(this.orderId);
|
| - |
|
39588 |
first = false;
|
| - |
|
39589 |
if (!first) sb.append(", ");
|
| - |
|
39590 |
sb.append("quantity:");
|
| - |
|
39591 |
sb.append(this.quantity);
|
| - |
|
39592 |
first = false;
|
| - |
|
39593 |
if (!first) sb.append(", ");
|
| - |
|
39594 |
sb.append("fulfilmentWarehouseId:");
|
| - |
|
39595 |
sb.append(this.fulfilmentWarehouseId);
|
| - |
|
39596 |
first = false;
|
| - |
|
39597 |
if (!first) sb.append(", ");
|
| - |
|
39598 |
sb.append("billingWarehouseId:");
|
| - |
|
39599 |
sb.append(this.billingWarehouseId);
|
| - |
|
39600 |
first = false;
|
| - |
|
39601 |
sb.append(")");
|
| - |
|
39602 |
return sb.toString();
|
| - |
|
39603 |
}
|
| - |
|
39604 |
|
| - |
|
39605 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
39606 |
// check for required fields
|
| - |
|
39607 |
}
|
| - |
|
39608 |
|
| - |
|
39609 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
39610 |
try {
|
| - |
|
39611 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
39612 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
39613 |
throw new java.io.IOException(te);
|
| - |
|
39614 |
}
|
| - |
|
39615 |
}
|
| - |
|
39616 |
|
| - |
|
39617 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
39618 |
try {
|
| - |
|
39619 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
39620 |
__isset_bit_vector = new BitSet(1);
|
| - |
|
39621 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
39622 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
39623 |
throw new java.io.IOException(te);
|
| - |
|
39624 |
}
|
| - |
|
39625 |
}
|
| - |
|
39626 |
|
| - |
|
39627 |
}
|
| - |
|
39628 |
|
| - |
|
39629 |
public static class scanForBadSale_result implements org.apache.thrift.TBase<scanForBadSale_result, scanForBadSale_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
39630 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForBadSale_result");
|
| - |
|
39631 |
|
| - |
|
39632 |
|
| - |
|
39633 |
|
| - |
|
39634 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
39635 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
39636 |
;
|
| - |
|
39637 |
|
| - |
|
39638 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
39639 |
|
| - |
|
39640 |
static {
|
| - |
|
39641 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
39642 |
byName.put(field.getFieldName(), field);
|
| - |
|
39643 |
}
|
| - |
|
39644 |
}
|
| - |
|
39645 |
|
| - |
|
39646 |
/**
|
| - |
|
39647 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
39648 |
*/
|
| - |
|
39649 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
39650 |
switch(fieldId) {
|
| - |
|
39651 |
default:
|
| - |
|
39652 |
return null;
|
| - |
|
39653 |
}
|
| - |
|
39654 |
}
|
| - |
|
39655 |
|
| - |
|
39656 |
/**
|
| - |
|
39657 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
39658 |
* if it is not found.
|
| - |
|
39659 |
*/
|
| - |
|
39660 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
39661 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
39662 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
39663 |
return fields;
|
| - |
|
39664 |
}
|
| - |
|
39665 |
|
| - |
|
39666 |
/**
|
| - |
|
39667 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
39668 |
*/
|
| - |
|
39669 |
public static _Fields findByName(String name) {
|
| - |
|
39670 |
return byName.get(name);
|
| - |
|
39671 |
}
|
| - |
|
39672 |
|
| - |
|
39673 |
private final short _thriftId;
|
| - |
|
39674 |
private final String _fieldName;
|
| - |
|
39675 |
|
| - |
|
39676 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
39677 |
_thriftId = thriftId;
|
| - |
|
39678 |
_fieldName = fieldName;
|
| - |
|
39679 |
}
|
| - |
|
39680 |
|
| - |
|
39681 |
public short getThriftFieldId() {
|
| - |
|
39682 |
return _thriftId;
|
| - |
|
39683 |
}
|
| - |
|
39684 |
|
| - |
|
39685 |
public String getFieldName() {
|
| - |
|
39686 |
return _fieldName;
|
| - |
|
39687 |
}
|
| - |
|
39688 |
}
|
| - |
|
39689 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
39690 |
static {
|
| - |
|
39691 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
39692 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
39693 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForBadSale_result.class, metaDataMap);
|
| - |
|
39694 |
}
|
| - |
|
39695 |
|
| - |
|
39696 |
public scanForBadSale_result() {
|
| - |
|
39697 |
}
|
| - |
|
39698 |
|
| - |
|
39699 |
/**
|
| - |
|
39700 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
39701 |
*/
|
| - |
|
39702 |
public scanForBadSale_result(scanForBadSale_result other) {
|
| - |
|
39703 |
}
|
| - |
|
39704 |
|
| - |
|
39705 |
public scanForBadSale_result deepCopy() {
|
| - |
|
39706 |
return new scanForBadSale_result(this);
|
| - |
|
39707 |
}
|
| - |
|
39708 |
|
| - |
|
39709 |
@Override
|
| - |
|
39710 |
public void clear() {
|
| - |
|
39711 |
}
|
| - |
|
39712 |
|
| - |
|
39713 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
39714 |
switch (field) {
|
| - |
|
39715 |
}
|
| - |
|
39716 |
}
|
| - |
|
39717 |
|
| - |
|
39718 |
public Object getFieldValue(_Fields field) {
|
| - |
|
39719 |
switch (field) {
|
| - |
|
39720 |
}
|
| - |
|
39721 |
throw new IllegalStateException();
|
| - |
|
39722 |
}
|
| - |
|
39723 |
|
| - |
|
39724 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
39725 |
public boolean isSet(_Fields field) {
|
| - |
|
39726 |
if (field == null) {
|
| - |
|
39727 |
throw new IllegalArgumentException();
|
| - |
|
39728 |
}
|
| - |
|
39729 |
|
| - |
|
39730 |
switch (field) {
|
| - |
|
39731 |
}
|
| - |
|
39732 |
throw new IllegalStateException();
|
| - |
|
39733 |
}
|
| - |
|
39734 |
|
| - |
|
39735 |
@Override
|
| - |
|
39736 |
public boolean equals(Object that) {
|
| - |
|
39737 |
if (that == null)
|
| - |
|
39738 |
return false;
|
| - |
|
39739 |
if (that instanceof scanForBadSale_result)
|
| - |
|
39740 |
return this.equals((scanForBadSale_result)that);
|
| - |
|
39741 |
return false;
|
| - |
|
39742 |
}
|
| - |
|
39743 |
|
| - |
|
39744 |
public boolean equals(scanForBadSale_result that) {
|
| - |
|
39745 |
if (that == null)
|
| - |
|
39746 |
return false;
|
| - |
|
39747 |
|
| - |
|
39748 |
return true;
|
| - |
|
39749 |
}
|
| - |
|
39750 |
|
| - |
|
39751 |
@Override
|
| - |
|
39752 |
public int hashCode() {
|
| - |
|
39753 |
return 0;
|
| - |
|
39754 |
}
|
| - |
|
39755 |
|
| - |
|
39756 |
public int compareTo(scanForBadSale_result other) {
|
| - |
|
39757 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
39758 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
39759 |
}
|
| - |
|
39760 |
|
| - |
|
39761 |
int lastComparison = 0;
|
| - |
|
39762 |
scanForBadSale_result typedOther = (scanForBadSale_result)other;
|
| - |
|
39763 |
|
| - |
|
39764 |
return 0;
|
| - |
|
39765 |
}
|
| - |
|
39766 |
|
| - |
|
39767 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
39768 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
39769 |
}
|
| - |
|
39770 |
|
| - |
|
39771 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
39772 |
org.apache.thrift.protocol.TField field;
|
| - |
|
39773 |
iprot.readStructBegin();
|
| - |
|
39774 |
while (true)
|
| - |
|
39775 |
{
|
| - |
|
39776 |
field = iprot.readFieldBegin();
|
| - |
|
39777 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
39778 |
break;
|
| - |
|
39779 |
}
|
| - |
|
39780 |
switch (field.id) {
|
| - |
|
39781 |
default:
|
| - |
|
39782 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
39783 |
}
|
| - |
|
39784 |
iprot.readFieldEnd();
|
| - |
|
39785 |
}
|
| - |
|
39786 |
iprot.readStructEnd();
|
| - |
|
39787 |
validate();
|
| - |
|
39788 |
}
|
| - |
|
39789 |
|
| - |
|
39790 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
39791 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
39792 |
|
| - |
|
39793 |
oprot.writeFieldStop();
|
| - |
|
39794 |
oprot.writeStructEnd();
|
| - |
|
39795 |
}
|
| - |
|
39796 |
|
| - |
|
39797 |
@Override
|
| - |
|
39798 |
public String toString() {
|
| - |
|
39799 |
StringBuilder sb = new StringBuilder("scanForBadSale_result(");
|
| - |
|
39800 |
boolean first = true;
|
| - |
|
39801 |
|
| - |
|
39802 |
sb.append(")");
|
| - |
|
39803 |
return sb.toString();
|
| - |
|
39804 |
}
|
| - |
|
39805 |
|
| - |
|
39806 |
public void validate() throws org.apache.thrift.TException {
|
| 38799 |
// check for required fields
|
39807 |
// check for required fields
|
| 38800 |
}
|
39808 |
}
|
| 38801 |
|
39809 |
|
| 38802 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
39810 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| 38803 |
try {
|
39811 |
try {
|