| Line 91... |
Line 91... |
| 91 |
public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
|
91 |
public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
|
| 92 |
|
92 |
|
| 93 |
public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
|
93 |
public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
|
| 94 |
|
94 |
|
| 95 |
/**
|
95 |
/**
|
| - |
|
96 |
* Depending on reservation in the table, verify wether we can bill this order or not.
|
| - |
|
97 |
*
|
| - |
|
98 |
* @param itemId
|
| - |
|
99 |
* @param warehouseId
|
| - |
|
100 |
* @param sourceId
|
| - |
|
101 |
* @param orderId
|
| - |
|
102 |
*/
|
| - |
|
103 |
public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException;
|
| - |
|
104 |
|
| - |
|
105 |
/**
|
| 96 |
* Increases the reservation count for an item in a warehouse. Should always succeed normally.
|
106 |
* Increases the reservation count for an item in a warehouse. Should always succeed normally.
|
| 97 |
*
|
107 |
*
|
| 98 |
* @param itemId
|
108 |
* @param itemId
|
| 99 |
* @param warehouseId
|
109 |
* @param warehouseId
|
| - |
|
110 |
* @param sourceId
|
| - |
|
111 |
* @param orderId
|
| - |
|
112 |
* @param createdTimestamp
|
| - |
|
113 |
* @param promisedShippingTimestamp
|
| 100 |
* @param quantity
|
114 |
* @param quantity
|
| 101 |
*/
|
115 |
*/
|
| 102 |
public boolean reserveItemInWarehouse(long itemId, long warehouseId, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
|
116 |
public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
|
| 103 |
|
117 |
|
| 104 |
/**
|
118 |
/**
|
| 105 |
* Decreases the reservation count for an item in a warehouse. Should always succeed normally.
|
119 |
* Decreases the reservation count for an item in a warehouse. Should always succeed normally.
|
| 106 |
*
|
120 |
*
|
| 107 |
* @param itemId
|
121 |
* @param itemId
|
| 108 |
* @param warehouseId
|
122 |
* @param warehouseId
|
| - |
|
123 |
* @param sourceId
|
| - |
|
124 |
* @param orderId
|
| 109 |
* @param quantity
|
125 |
* @param quantity
|
| 110 |
*/
|
126 |
*/
|
| 111 |
public boolean reduceReservationCount(long itemId, long warehouseId, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
|
127 |
public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
|
| 112 |
|
128 |
|
| 113 |
/**
|
129 |
/**
|
| 114 |
* Returns the pricing information of an item associated with the vendor of the given warehouse.
|
130 |
* Returns the pricing information of an item associated with the vendor of the given warehouse.
|
| 115 |
* Raises an exception if either the item, vendor or the associated pricing information can't be found.
|
131 |
* Raises an exception if either the item, vendor or the associated pricing information can't be found.
|
| 116 |
*
|
132 |
*
|
| Line 286... |
Line 302... |
| 286 |
|
302 |
|
| 287 |
public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
303 |
public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| 288 |
|
304 |
|
| 289 |
public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
305 |
public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| 290 |
|
306 |
|
| 291 |
public void reserveItemInWarehouse(long itemId, long warehouseId, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reserveItemInWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
307 |
public void isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isOrderBillable_call> resultHandler) throws org.apache.thrift.TException;
|
| 292 |
|
308 |
|
| 293 |
public void reduceReservationCount(long itemId, long warehouseId, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException;
|
309 |
public void reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reserveItemInWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
310 |
|
| - |
|
311 |
public void reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException;
|
| 294 |
|
312 |
|
| 295 |
public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
|
313 |
public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
|
| 296 |
|
314 |
|
| 297 |
public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
|
315 |
public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
|
| 298 |
|
316 |
|
| Line 659... |
Line 677... |
| 659 |
throw result.cex;
|
677 |
throw result.cex;
|
| 660 |
}
|
678 |
}
|
| 661 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
|
679 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
|
| 662 |
}
|
680 |
}
|
| 663 |
|
681 |
|
| 664 |
public boolean reserveItemInWarehouse(long itemId, long warehouseId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
|
682 |
public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
|
| - |
|
683 |
{
|
| - |
|
684 |
send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
|
| - |
|
685 |
return recv_isOrderBillable();
|
| - |
|
686 |
}
|
| - |
|
687 |
|
| - |
|
688 |
public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
|
| - |
|
689 |
{
|
| - |
|
690 |
isOrderBillable_args args = new isOrderBillable_args();
|
| - |
|
691 |
args.setItemId(itemId);
|
| - |
|
692 |
args.setWarehouseId(warehouseId);
|
| - |
|
693 |
args.setSourceId(sourceId);
|
| - |
|
694 |
args.setOrderId(orderId);
|
| - |
|
695 |
sendBase("isOrderBillable", args);
|
| - |
|
696 |
}
|
| - |
|
697 |
|
| - |
|
698 |
public boolean recv_isOrderBillable() throws org.apache.thrift.TException
|
| - |
|
699 |
{
|
| - |
|
700 |
isOrderBillable_result result = new isOrderBillable_result();
|
| - |
|
701 |
receiveBase(result, "isOrderBillable");
|
| - |
|
702 |
if (result.isSetSuccess()) {
|
| - |
|
703 |
return result.success;
|
| - |
|
704 |
}
|
| - |
|
705 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
|
| - |
|
706 |
}
|
| - |
|
707 |
|
| - |
|
708 |
public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
|
| 665 |
{
|
709 |
{
|
| 666 |
send_reserveItemInWarehouse(itemId, warehouseId, quantity);
|
710 |
send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
|
| 667 |
return recv_reserveItemInWarehouse();
|
711 |
return recv_reserveItemInWarehouse();
|
| 668 |
}
|
712 |
}
|
| 669 |
|
713 |
|
| 670 |
public void send_reserveItemInWarehouse(long itemId, long warehouseId, double quantity) throws org.apache.thrift.TException
|
714 |
public void send_reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws org.apache.thrift.TException
|
| 671 |
{
|
715 |
{
|
| 672 |
reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
|
716 |
reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
|
| 673 |
args.setItemId(itemId);
|
717 |
args.setItemId(itemId);
|
| 674 |
args.setWarehouseId(warehouseId);
|
718 |
args.setWarehouseId(warehouseId);
|
| - |
|
719 |
args.setSourceId(sourceId);
|
| - |
|
720 |
args.setOrderId(orderId);
|
| - |
|
721 |
args.setCreatedTimestamp(createdTimestamp);
|
| - |
|
722 |
args.setPromisedShippingTimestamp(promisedShippingTimestamp);
|
| 675 |
args.setQuantity(quantity);
|
723 |
args.setQuantity(quantity);
|
| 676 |
sendBase("reserveItemInWarehouse", args);
|
724 |
sendBase("reserveItemInWarehouse", args);
|
| 677 |
}
|
725 |
}
|
| 678 |
|
726 |
|
| 679 |
public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
|
727 |
public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
|
| Line 687... |
Line 735... |
| 687 |
throw result.cex;
|
735 |
throw result.cex;
|
| 688 |
}
|
736 |
}
|
| 689 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
|
737 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
|
| 690 |
}
|
738 |
}
|
| 691 |
|
739 |
|
| 692 |
public boolean reduceReservationCount(long itemId, long warehouseId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
|
740 |
public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
|
| 693 |
{
|
741 |
{
|
| 694 |
send_reduceReservationCount(itemId, warehouseId, quantity);
|
742 |
send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
|
| 695 |
return recv_reduceReservationCount();
|
743 |
return recv_reduceReservationCount();
|
| 696 |
}
|
744 |
}
|
| 697 |
|
745 |
|
| 698 |
public void send_reduceReservationCount(long itemId, long warehouseId, double quantity) throws org.apache.thrift.TException
|
746 |
public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
|
| 699 |
{
|
747 |
{
|
| 700 |
reduceReservationCount_args args = new reduceReservationCount_args();
|
748 |
reduceReservationCount_args args = new reduceReservationCount_args();
|
| 701 |
args.setItemId(itemId);
|
749 |
args.setItemId(itemId);
|
| 702 |
args.setWarehouseId(warehouseId);
|
750 |
args.setWarehouseId(warehouseId);
|
| - |
|
751 |
args.setSourceId(sourceId);
|
| - |
|
752 |
args.setOrderId(orderId);
|
| 703 |
args.setQuantity(quantity);
|
753 |
args.setQuantity(quantity);
|
| 704 |
sendBase("reduceReservationCount", args);
|
754 |
sendBase("reduceReservationCount", args);
|
| 705 |
}
|
755 |
}
|
| 706 |
|
756 |
|
| 707 |
public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
|
757 |
public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
|
| Line 1606... |
Line 1656... |
| 1606 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
1656 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 1607 |
return (new Client(prot)).recv_getAllItemsForWarehouse();
|
1657 |
return (new Client(prot)).recv_getAllItemsForWarehouse();
|
| 1608 |
}
|
1658 |
}
|
| 1609 |
}
|
1659 |
}
|
| 1610 |
|
1660 |
|
| 1611 |
public void reserveItemInWarehouse(long itemId, long warehouseId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reserveItemInWarehouse_call> resultHandler) throws org.apache.thrift.TException {
|
1661 |
public void isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId, org.apache.thrift.async.AsyncMethodCallback<isOrderBillable_call> resultHandler) throws org.apache.thrift.TException {
|
| 1612 |
checkReady();
|
1662 |
checkReady();
|
| - |
|
1663 |
isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
1664 |
this.___currentMethod = method_call;
|
| - |
|
1665 |
___manager.call(method_call);
|
| - |
|
1666 |
}
|
| - |
|
1667 |
|
| - |
|
1668 |
public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
1669 |
private long itemId;
|
| - |
|
1670 |
private long warehouseId;
|
| - |
|
1671 |
private long sourceId;
|
| - |
|
1672 |
private long orderId;
|
| 1613 |
reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
|
1673 |
public isOrderBillable_call(long itemId, long warehouseId, long sourceId, long orderId, org.apache.thrift.async.AsyncMethodCallback<isOrderBillable_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 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
1675 |
this.itemId = itemId;
|
| - |
|
1676 |
this.warehouseId = warehouseId;
|
| - |
|
1677 |
this.sourceId = sourceId;
|
| - |
|
1678 |
this.orderId = orderId;
|
| - |
|
1679 |
}
|
| - |
|
1680 |
|
| - |
|
1681 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
1682 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
1683 |
isOrderBillable_args args = new isOrderBillable_args();
|
| - |
|
1684 |
args.setItemId(itemId);
|
| - |
|
1685 |
args.setWarehouseId(warehouseId);
|
| - |
|
1686 |
args.setSourceId(sourceId);
|
| - |
|
1687 |
args.setOrderId(orderId);
|
| - |
|
1688 |
args.write(prot);
|
| - |
|
1689 |
prot.writeMessageEnd();
|
| - |
|
1690 |
}
|
| - |
|
1691 |
|
| - |
|
1692 |
public boolean getResult() throws org.apache.thrift.TException {
|
| - |
|
1693 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
1694 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
1695 |
}
|
| - |
|
1696 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
1697 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
1698 |
return (new Client(prot)).recv_isOrderBillable();
|
| - |
|
1699 |
}
|
| - |
|
1700 |
}
|
| - |
|
1701 |
|
| - |
|
1702 |
public void reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<reserveItemInWarehouse_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
1703 |
checkReady();
|
| - |
|
1704 |
reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
|
| 1614 |
this.___currentMethod = method_call;
|
1705 |
this.___currentMethod = method_call;
|
| 1615 |
___manager.call(method_call);
|
1706 |
___manager.call(method_call);
|
| 1616 |
}
|
1707 |
}
|
| 1617 |
|
1708 |
|
| 1618 |
public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
|
1709 |
public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 1619 |
private long itemId;
|
1710 |
private long itemId;
|
| 1620 |
private long warehouseId;
|
1711 |
private long warehouseId;
|
| - |
|
1712 |
private long sourceId;
|
| - |
|
1713 |
private long orderId;
|
| - |
|
1714 |
private long createdTimestamp;
|
| - |
|
1715 |
private long promisedShippingTimestamp;
|
| 1621 |
private double quantity;
|
1716 |
private double quantity;
|
| 1622 |
public reserveItemInWarehouse_call(long itemId, long warehouseId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reserveItemInWarehouse_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 {
|
1717 |
public reserveItemInWarehouse_call(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<reserveItemInWarehouse_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 {
|
| 1623 |
super(client, protocolFactory, transport, resultHandler, false);
|
1718 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 1624 |
this.itemId = itemId;
|
1719 |
this.itemId = itemId;
|
| 1625 |
this.warehouseId = warehouseId;
|
1720 |
this.warehouseId = warehouseId;
|
| - |
|
1721 |
this.sourceId = sourceId;
|
| - |
|
1722 |
this.orderId = orderId;
|
| - |
|
1723 |
this.createdTimestamp = createdTimestamp;
|
| - |
|
1724 |
this.promisedShippingTimestamp = promisedShippingTimestamp;
|
| 1626 |
this.quantity = quantity;
|
1725 |
this.quantity = quantity;
|
| 1627 |
}
|
1726 |
}
|
| 1628 |
|
1727 |
|
| 1629 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
1728 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 1630 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
1729 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 1631 |
reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
|
1730 |
reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
|
| 1632 |
args.setItemId(itemId);
|
1731 |
args.setItemId(itemId);
|
| 1633 |
args.setWarehouseId(warehouseId);
|
1732 |
args.setWarehouseId(warehouseId);
|
| - |
|
1733 |
args.setSourceId(sourceId);
|
| - |
|
1734 |
args.setOrderId(orderId);
|
| - |
|
1735 |
args.setCreatedTimestamp(createdTimestamp);
|
| - |
|
1736 |
args.setPromisedShippingTimestamp(promisedShippingTimestamp);
|
| 1634 |
args.setQuantity(quantity);
|
1737 |
args.setQuantity(quantity);
|
| 1635 |
args.write(prot);
|
1738 |
args.write(prot);
|
| 1636 |
prot.writeMessageEnd();
|
1739 |
prot.writeMessageEnd();
|
| 1637 |
}
|
1740 |
}
|
| 1638 |
|
1741 |
|
| Line 1644... |
Line 1747... |
| 1644 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
1747 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 1645 |
return (new Client(prot)).recv_reserveItemInWarehouse();
|
1748 |
return (new Client(prot)).recv_reserveItemInWarehouse();
|
| 1646 |
}
|
1749 |
}
|
| 1647 |
}
|
1750 |
}
|
| 1648 |
|
1751 |
|
| 1649 |
public void reduceReservationCount(long itemId, long warehouseId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException {
|
1752 |
public void reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException {
|
| 1650 |
checkReady();
|
1753 |
checkReady();
|
| 1651 |
reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
|
1754 |
reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
|
| 1652 |
this.___currentMethod = method_call;
|
1755 |
this.___currentMethod = method_call;
|
| 1653 |
___manager.call(method_call);
|
1756 |
___manager.call(method_call);
|
| 1654 |
}
|
1757 |
}
|
| 1655 |
|
1758 |
|
| 1656 |
public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
|
1759 |
public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 1657 |
private long itemId;
|
1760 |
private long itemId;
|
| 1658 |
private long warehouseId;
|
1761 |
private long warehouseId;
|
| - |
|
1762 |
private long sourceId;
|
| - |
|
1763 |
private long orderId;
|
| 1659 |
private double quantity;
|
1764 |
private double quantity;
|
| 1660 |
public reduceReservationCount_call(long itemId, long warehouseId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reduceReservationCount_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 {
|
1765 |
public reduceReservationCount_call(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reduceReservationCount_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 {
|
| 1661 |
super(client, protocolFactory, transport, resultHandler, false);
|
1766 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 1662 |
this.itemId = itemId;
|
1767 |
this.itemId = itemId;
|
| 1663 |
this.warehouseId = warehouseId;
|
1768 |
this.warehouseId = warehouseId;
|
| - |
|
1769 |
this.sourceId = sourceId;
|
| - |
|
1770 |
this.orderId = orderId;
|
| 1664 |
this.quantity = quantity;
|
1771 |
this.quantity = quantity;
|
| 1665 |
}
|
1772 |
}
|
| 1666 |
|
1773 |
|
| 1667 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
1774 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 1668 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
1775 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 1669 |
reduceReservationCount_args args = new reduceReservationCount_args();
|
1776 |
reduceReservationCount_args args = new reduceReservationCount_args();
|
| 1670 |
args.setItemId(itemId);
|
1777 |
args.setItemId(itemId);
|
| 1671 |
args.setWarehouseId(warehouseId);
|
1778 |
args.setWarehouseId(warehouseId);
|
| - |
|
1779 |
args.setSourceId(sourceId);
|
| - |
|
1780 |
args.setOrderId(orderId);
|
| 1672 |
args.setQuantity(quantity);
|
1781 |
args.setQuantity(quantity);
|
| 1673 |
args.write(prot);
|
1782 |
args.write(prot);
|
| 1674 |
prot.writeMessageEnd();
|
1783 |
prot.writeMessageEnd();
|
| 1675 |
}
|
1784 |
}
|
| 1676 |
|
1785 |
|
| Line 2371... |
Line 2480... |
| 2371 |
processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
|
2480 |
processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
|
| 2372 |
processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
|
2481 |
processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
|
| 2373 |
processMap.put("getAllWarehouses", new getAllWarehouses());
|
2482 |
processMap.put("getAllWarehouses", new getAllWarehouses());
|
| 2374 |
processMap.put("getWarehouse", new getWarehouse());
|
2483 |
processMap.put("getWarehouse", new getWarehouse());
|
| 2375 |
processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
|
2484 |
processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
|
| - |
|
2485 |
processMap.put("isOrderBillable", new isOrderBillable());
|
| 2376 |
processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
|
2486 |
processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
|
| 2377 |
processMap.put("reduceReservationCount", new reduceReservationCount());
|
2487 |
processMap.put("reduceReservationCount", new reduceReservationCount());
|
| 2378 |
processMap.put("getItemPricing", new getItemPricing());
|
2488 |
processMap.put("getItemPricing", new getItemPricing());
|
| 2379 |
processMap.put("getAllItemPricing", new getAllItemPricing());
|
2489 |
processMap.put("getAllItemPricing", new getAllItemPricing());
|
| 2380 |
processMap.put("addVendorItemPricing", new addVendorItemPricing());
|
2490 |
processMap.put("addVendorItemPricing", new addVendorItemPricing());
|
| Line 2639... |
Line 2749... |
| 2639 |
}
|
2749 |
}
|
| 2640 |
return result;
|
2750 |
return result;
|
| 2641 |
}
|
2751 |
}
|
| 2642 |
}
|
2752 |
}
|
| 2643 |
|
2753 |
|
| - |
|
2754 |
private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
|
| - |
|
2755 |
public isOrderBillable() {
|
| - |
|
2756 |
super("isOrderBillable");
|
| - |
|
2757 |
}
|
| - |
|
2758 |
|
| - |
|
2759 |
protected isOrderBillable_args getEmptyArgsInstance() {
|
| - |
|
2760 |
return new isOrderBillable_args();
|
| - |
|
2761 |
}
|
| - |
|
2762 |
|
| - |
|
2763 |
protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
|
| - |
|
2764 |
isOrderBillable_result result = new isOrderBillable_result();
|
| - |
|
2765 |
result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
|
| - |
|
2766 |
result.setSuccessIsSet(true);
|
| - |
|
2767 |
return result;
|
| - |
|
2768 |
}
|
| - |
|
2769 |
}
|
| - |
|
2770 |
|
| 2644 |
private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
|
2771 |
private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
|
| 2645 |
public reserveItemInWarehouse() {
|
2772 |
public reserveItemInWarehouse() {
|
| 2646 |
super("reserveItemInWarehouse");
|
2773 |
super("reserveItemInWarehouse");
|
| 2647 |
}
|
2774 |
}
|
| 2648 |
|
2775 |
|
| Line 2651... |
Line 2778... |
| 2651 |
}
|
2778 |
}
|
| 2652 |
|
2779 |
|
| 2653 |
protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
|
2780 |
protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
|
| 2654 |
reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
|
2781 |
reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
|
| 2655 |
try {
|
2782 |
try {
|
| 2656 |
result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.quantity);
|
2783 |
result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
|
| 2657 |
result.setSuccessIsSet(true);
|
2784 |
result.setSuccessIsSet(true);
|
| 2658 |
} catch (InventoryServiceException cex) {
|
2785 |
} catch (InventoryServiceException cex) {
|
| 2659 |
result.cex = cex;
|
2786 |
result.cex = cex;
|
| 2660 |
}
|
2787 |
}
|
| 2661 |
return result;
|
2788 |
return result;
|
| Line 2672... |
Line 2799... |
| 2672 |
}
|
2799 |
}
|
| 2673 |
|
2800 |
|
| 2674 |
protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
|
2801 |
protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
|
| 2675 |
reduceReservationCount_result result = new reduceReservationCount_result();
|
2802 |
reduceReservationCount_result result = new reduceReservationCount_result();
|
| 2676 |
try {
|
2803 |
try {
|
| 2677 |
result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.quantity);
|
2804 |
result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
|
| 2678 |
result.setSuccessIsSet(true);
|
2805 |
result.setSuccessIsSet(true);
|
| 2679 |
} catch (InventoryServiceException cex) {
|
2806 |
} catch (InventoryServiceException cex) {
|
| 2680 |
result.cex = cex;
|
2807 |
result.cex = cex;
|
| 2681 |
}
|
2808 |
}
|
| 2682 |
return result;
|
2809 |
return result;
|
| Line 11592... |
Line 11719... |
| 11592 |
}
|
11719 |
}
|
| 11593 |
}
|
11720 |
}
|
| 11594 |
|
11721 |
|
| 11595 |
}
|
11722 |
}
|
| 11596 |
|
11723 |
|
| - |
|
11724 |
public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
11725 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
|
| - |
|
11726 |
|
| - |
|
11727 |
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);
|
| - |
|
11728 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
| - |
|
11729 |
private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| - |
|
11730 |
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);
|
| - |
|
11731 |
|
| - |
|
11732 |
private long itemId; // required
|
| - |
|
11733 |
private long warehouseId; // required
|
| - |
|
11734 |
private long sourceId; // required
|
| - |
|
11735 |
private long orderId; // required
|
| - |
|
11736 |
|
| - |
|
11737 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
11738 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
11739 |
ITEM_ID((short)1, "itemId"),
|
| - |
|
11740 |
WAREHOUSE_ID((short)2, "warehouseId"),
|
| - |
|
11741 |
SOURCE_ID((short)3, "sourceId"),
|
| - |
|
11742 |
ORDER_ID((short)4, "orderId");
|
| - |
|
11743 |
|
| - |
|
11744 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
11745 |
|
| - |
|
11746 |
static {
|
| - |
|
11747 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
11748 |
byName.put(field.getFieldName(), field);
|
| - |
|
11749 |
}
|
| - |
|
11750 |
}
|
| - |
|
11751 |
|
| - |
|
11752 |
/**
|
| - |
|
11753 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
11754 |
*/
|
| - |
|
11755 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
11756 |
switch(fieldId) {
|
| - |
|
11757 |
case 1: // ITEM_ID
|
| - |
|
11758 |
return ITEM_ID;
|
| - |
|
11759 |
case 2: // WAREHOUSE_ID
|
| - |
|
11760 |
return WAREHOUSE_ID;
|
| - |
|
11761 |
case 3: // SOURCE_ID
|
| - |
|
11762 |
return SOURCE_ID;
|
| - |
|
11763 |
case 4: // ORDER_ID
|
| - |
|
11764 |
return ORDER_ID;
|
| - |
|
11765 |
default:
|
| - |
|
11766 |
return null;
|
| - |
|
11767 |
}
|
| - |
|
11768 |
}
|
| - |
|
11769 |
|
| - |
|
11770 |
/**
|
| - |
|
11771 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
11772 |
* if it is not found.
|
| - |
|
11773 |
*/
|
| - |
|
11774 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
11775 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
11776 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
11777 |
return fields;
|
| - |
|
11778 |
}
|
| - |
|
11779 |
|
| - |
|
11780 |
/**
|
| - |
|
11781 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
11782 |
*/
|
| - |
|
11783 |
public static _Fields findByName(String name) {
|
| - |
|
11784 |
return byName.get(name);
|
| - |
|
11785 |
}
|
| - |
|
11786 |
|
| - |
|
11787 |
private final short _thriftId;
|
| - |
|
11788 |
private final String _fieldName;
|
| - |
|
11789 |
|
| - |
|
11790 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
11791 |
_thriftId = thriftId;
|
| - |
|
11792 |
_fieldName = fieldName;
|
| - |
|
11793 |
}
|
| - |
|
11794 |
|
| - |
|
11795 |
public short getThriftFieldId() {
|
| - |
|
11796 |
return _thriftId;
|
| - |
|
11797 |
}
|
| - |
|
11798 |
|
| - |
|
11799 |
public String getFieldName() {
|
| - |
|
11800 |
return _fieldName;
|
| - |
|
11801 |
}
|
| - |
|
11802 |
}
|
| - |
|
11803 |
|
| - |
|
11804 |
// isset id assignments
|
| - |
|
11805 |
private static final int __ITEMID_ISSET_ID = 0;
|
| - |
|
11806 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
| - |
|
11807 |
private static final int __SOURCEID_ISSET_ID = 2;
|
| - |
|
11808 |
private static final int __ORDERID_ISSET_ID = 3;
|
| - |
|
11809 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| - |
|
11810 |
|
| - |
|
11811 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
11812 |
static {
|
| - |
|
11813 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
11814 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
11815 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
11816 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
11817 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
11818 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
11819 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
11820 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
11821 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
11822 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
11823 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
|
| - |
|
11824 |
}
|
| - |
|
11825 |
|
| - |
|
11826 |
public isOrderBillable_args() {
|
| - |
|
11827 |
}
|
| - |
|
11828 |
|
| - |
|
11829 |
public isOrderBillable_args(
|
| - |
|
11830 |
long itemId,
|
| - |
|
11831 |
long warehouseId,
|
| - |
|
11832 |
long sourceId,
|
| - |
|
11833 |
long orderId)
|
| - |
|
11834 |
{
|
| - |
|
11835 |
this();
|
| - |
|
11836 |
this.itemId = itemId;
|
| - |
|
11837 |
setItemIdIsSet(true);
|
| - |
|
11838 |
this.warehouseId = warehouseId;
|
| - |
|
11839 |
setWarehouseIdIsSet(true);
|
| - |
|
11840 |
this.sourceId = sourceId;
|
| - |
|
11841 |
setSourceIdIsSet(true);
|
| - |
|
11842 |
this.orderId = orderId;
|
| - |
|
11843 |
setOrderIdIsSet(true);
|
| - |
|
11844 |
}
|
| - |
|
11845 |
|
| - |
|
11846 |
/**
|
| - |
|
11847 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
11848 |
*/
|
| - |
|
11849 |
public isOrderBillable_args(isOrderBillable_args other) {
|
| - |
|
11850 |
__isset_bit_vector.clear();
|
| - |
|
11851 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
11852 |
this.itemId = other.itemId;
|
| - |
|
11853 |
this.warehouseId = other.warehouseId;
|
| - |
|
11854 |
this.sourceId = other.sourceId;
|
| - |
|
11855 |
this.orderId = other.orderId;
|
| - |
|
11856 |
}
|
| - |
|
11857 |
|
| - |
|
11858 |
public isOrderBillable_args deepCopy() {
|
| - |
|
11859 |
return new isOrderBillable_args(this);
|
| - |
|
11860 |
}
|
| - |
|
11861 |
|
| - |
|
11862 |
@Override
|
| - |
|
11863 |
public void clear() {
|
| - |
|
11864 |
setItemIdIsSet(false);
|
| - |
|
11865 |
this.itemId = 0;
|
| - |
|
11866 |
setWarehouseIdIsSet(false);
|
| - |
|
11867 |
this.warehouseId = 0;
|
| - |
|
11868 |
setSourceIdIsSet(false);
|
| - |
|
11869 |
this.sourceId = 0;
|
| - |
|
11870 |
setOrderIdIsSet(false);
|
| - |
|
11871 |
this.orderId = 0;
|
| - |
|
11872 |
}
|
| - |
|
11873 |
|
| - |
|
11874 |
public long getItemId() {
|
| - |
|
11875 |
return this.itemId;
|
| - |
|
11876 |
}
|
| - |
|
11877 |
|
| - |
|
11878 |
public void setItemId(long itemId) {
|
| - |
|
11879 |
this.itemId = itemId;
|
| - |
|
11880 |
setItemIdIsSet(true);
|
| - |
|
11881 |
}
|
| - |
|
11882 |
|
| - |
|
11883 |
public void unsetItemId() {
|
| - |
|
11884 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| - |
|
11885 |
}
|
| - |
|
11886 |
|
| - |
|
11887 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
| - |
|
11888 |
public boolean isSetItemId() {
|
| - |
|
11889 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| - |
|
11890 |
}
|
| - |
|
11891 |
|
| - |
|
11892 |
public void setItemIdIsSet(boolean value) {
|
| - |
|
11893 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| - |
|
11894 |
}
|
| - |
|
11895 |
|
| - |
|
11896 |
public long getWarehouseId() {
|
| - |
|
11897 |
return this.warehouseId;
|
| - |
|
11898 |
}
|
| - |
|
11899 |
|
| - |
|
11900 |
public void setWarehouseId(long warehouseId) {
|
| - |
|
11901 |
this.warehouseId = warehouseId;
|
| - |
|
11902 |
setWarehouseIdIsSet(true);
|
| - |
|
11903 |
}
|
| - |
|
11904 |
|
| - |
|
11905 |
public void unsetWarehouseId() {
|
| - |
|
11906 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
| - |
|
11907 |
}
|
| - |
|
11908 |
|
| - |
|
11909 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
| - |
|
11910 |
public boolean isSetWarehouseId() {
|
| - |
|
11911 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
| - |
|
11912 |
}
|
| - |
|
11913 |
|
| - |
|
11914 |
public void setWarehouseIdIsSet(boolean value) {
|
| - |
|
11915 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
| - |
|
11916 |
}
|
| - |
|
11917 |
|
| - |
|
11918 |
public long getSourceId() {
|
| - |
|
11919 |
return this.sourceId;
|
| - |
|
11920 |
}
|
| - |
|
11921 |
|
| - |
|
11922 |
public void setSourceId(long sourceId) {
|
| - |
|
11923 |
this.sourceId = sourceId;
|
| - |
|
11924 |
setSourceIdIsSet(true);
|
| - |
|
11925 |
}
|
| - |
|
11926 |
|
| - |
|
11927 |
public void unsetSourceId() {
|
| - |
|
11928 |
__isset_bit_vector.clear(__SOURCEID_ISSET_ID);
|
| - |
|
11929 |
}
|
| - |
|
11930 |
|
| - |
|
11931 |
/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
|
| - |
|
11932 |
public boolean isSetSourceId() {
|
| - |
|
11933 |
return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
|
| - |
|
11934 |
}
|
| - |
|
11935 |
|
| - |
|
11936 |
public void setSourceIdIsSet(boolean value) {
|
| - |
|
11937 |
__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
|
| - |
|
11938 |
}
|
| - |
|
11939 |
|
| - |
|
11940 |
public long getOrderId() {
|
| - |
|
11941 |
return this.orderId;
|
| - |
|
11942 |
}
|
| - |
|
11943 |
|
| - |
|
11944 |
public void setOrderId(long orderId) {
|
| - |
|
11945 |
this.orderId = orderId;
|
| - |
|
11946 |
setOrderIdIsSet(true);
|
| - |
|
11947 |
}
|
| - |
|
11948 |
|
| - |
|
11949 |
public void unsetOrderId() {
|
| - |
|
11950 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| - |
|
11951 |
}
|
| - |
|
11952 |
|
| - |
|
11953 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
| - |
|
11954 |
public boolean isSetOrderId() {
|
| - |
|
11955 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| - |
|
11956 |
}
|
| - |
|
11957 |
|
| - |
|
11958 |
public void setOrderIdIsSet(boolean value) {
|
| - |
|
11959 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| - |
|
11960 |
}
|
| - |
|
11961 |
|
| - |
|
11962 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
11963 |
switch (field) {
|
| - |
|
11964 |
case ITEM_ID:
|
| - |
|
11965 |
if (value == null) {
|
| - |
|
11966 |
unsetItemId();
|
| - |
|
11967 |
} else {
|
| - |
|
11968 |
setItemId((Long)value);
|
| - |
|
11969 |
}
|
| - |
|
11970 |
break;
|
| - |
|
11971 |
|
| - |
|
11972 |
case WAREHOUSE_ID:
|
| - |
|
11973 |
if (value == null) {
|
| - |
|
11974 |
unsetWarehouseId();
|
| - |
|
11975 |
} else {
|
| - |
|
11976 |
setWarehouseId((Long)value);
|
| - |
|
11977 |
}
|
| - |
|
11978 |
break;
|
| - |
|
11979 |
|
| - |
|
11980 |
case SOURCE_ID:
|
| - |
|
11981 |
if (value == null) {
|
| - |
|
11982 |
unsetSourceId();
|
| - |
|
11983 |
} else {
|
| - |
|
11984 |
setSourceId((Long)value);
|
| - |
|
11985 |
}
|
| - |
|
11986 |
break;
|
| - |
|
11987 |
|
| - |
|
11988 |
case ORDER_ID:
|
| - |
|
11989 |
if (value == null) {
|
| - |
|
11990 |
unsetOrderId();
|
| - |
|
11991 |
} else {
|
| - |
|
11992 |
setOrderId((Long)value);
|
| - |
|
11993 |
}
|
| - |
|
11994 |
break;
|
| - |
|
11995 |
|
| - |
|
11996 |
}
|
| - |
|
11997 |
}
|
| - |
|
11998 |
|
| - |
|
11999 |
public Object getFieldValue(_Fields field) {
|
| - |
|
12000 |
switch (field) {
|
| - |
|
12001 |
case ITEM_ID:
|
| - |
|
12002 |
return Long.valueOf(getItemId());
|
| - |
|
12003 |
|
| - |
|
12004 |
case WAREHOUSE_ID:
|
| - |
|
12005 |
return Long.valueOf(getWarehouseId());
|
| - |
|
12006 |
|
| - |
|
12007 |
case SOURCE_ID:
|
| - |
|
12008 |
return Long.valueOf(getSourceId());
|
| - |
|
12009 |
|
| - |
|
12010 |
case ORDER_ID:
|
| - |
|
12011 |
return Long.valueOf(getOrderId());
|
| - |
|
12012 |
|
| - |
|
12013 |
}
|
| - |
|
12014 |
throw new IllegalStateException();
|
| - |
|
12015 |
}
|
| - |
|
12016 |
|
| - |
|
12017 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
12018 |
public boolean isSet(_Fields field) {
|
| - |
|
12019 |
if (field == null) {
|
| - |
|
12020 |
throw new IllegalArgumentException();
|
| - |
|
12021 |
}
|
| - |
|
12022 |
|
| - |
|
12023 |
switch (field) {
|
| - |
|
12024 |
case ITEM_ID:
|
| - |
|
12025 |
return isSetItemId();
|
| - |
|
12026 |
case WAREHOUSE_ID:
|
| - |
|
12027 |
return isSetWarehouseId();
|
| - |
|
12028 |
case SOURCE_ID:
|
| - |
|
12029 |
return isSetSourceId();
|
| - |
|
12030 |
case ORDER_ID:
|
| - |
|
12031 |
return isSetOrderId();
|
| - |
|
12032 |
}
|
| - |
|
12033 |
throw new IllegalStateException();
|
| - |
|
12034 |
}
|
| - |
|
12035 |
|
| - |
|
12036 |
@Override
|
| - |
|
12037 |
public boolean equals(Object that) {
|
| - |
|
12038 |
if (that == null)
|
| - |
|
12039 |
return false;
|
| - |
|
12040 |
if (that instanceof isOrderBillable_args)
|
| - |
|
12041 |
return this.equals((isOrderBillable_args)that);
|
| - |
|
12042 |
return false;
|
| - |
|
12043 |
}
|
| - |
|
12044 |
|
| - |
|
12045 |
public boolean equals(isOrderBillable_args that) {
|
| - |
|
12046 |
if (that == null)
|
| - |
|
12047 |
return false;
|
| - |
|
12048 |
|
| - |
|
12049 |
boolean this_present_itemId = true;
|
| - |
|
12050 |
boolean that_present_itemId = true;
|
| - |
|
12051 |
if (this_present_itemId || that_present_itemId) {
|
| - |
|
12052 |
if (!(this_present_itemId && that_present_itemId))
|
| - |
|
12053 |
return false;
|
| - |
|
12054 |
if (this.itemId != that.itemId)
|
| - |
|
12055 |
return false;
|
| - |
|
12056 |
}
|
| - |
|
12057 |
|
| - |
|
12058 |
boolean this_present_warehouseId = true;
|
| - |
|
12059 |
boolean that_present_warehouseId = true;
|
| - |
|
12060 |
if (this_present_warehouseId || that_present_warehouseId) {
|
| - |
|
12061 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
| - |
|
12062 |
return false;
|
| - |
|
12063 |
if (this.warehouseId != that.warehouseId)
|
| - |
|
12064 |
return false;
|
| - |
|
12065 |
}
|
| - |
|
12066 |
|
| - |
|
12067 |
boolean this_present_sourceId = true;
|
| - |
|
12068 |
boolean that_present_sourceId = true;
|
| - |
|
12069 |
if (this_present_sourceId || that_present_sourceId) {
|
| - |
|
12070 |
if (!(this_present_sourceId && that_present_sourceId))
|
| - |
|
12071 |
return false;
|
| - |
|
12072 |
if (this.sourceId != that.sourceId)
|
| - |
|
12073 |
return false;
|
| - |
|
12074 |
}
|
| - |
|
12075 |
|
| - |
|
12076 |
boolean this_present_orderId = true;
|
| - |
|
12077 |
boolean that_present_orderId = true;
|
| - |
|
12078 |
if (this_present_orderId || that_present_orderId) {
|
| - |
|
12079 |
if (!(this_present_orderId && that_present_orderId))
|
| - |
|
12080 |
return false;
|
| - |
|
12081 |
if (this.orderId != that.orderId)
|
| - |
|
12082 |
return false;
|
| - |
|
12083 |
}
|
| - |
|
12084 |
|
| - |
|
12085 |
return true;
|
| - |
|
12086 |
}
|
| - |
|
12087 |
|
| - |
|
12088 |
@Override
|
| - |
|
12089 |
public int hashCode() {
|
| - |
|
12090 |
return 0;
|
| - |
|
12091 |
}
|
| - |
|
12092 |
|
| - |
|
12093 |
public int compareTo(isOrderBillable_args other) {
|
| - |
|
12094 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
12095 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
12096 |
}
|
| - |
|
12097 |
|
| - |
|
12098 |
int lastComparison = 0;
|
| - |
|
12099 |
isOrderBillable_args typedOther = (isOrderBillable_args)other;
|
| - |
|
12100 |
|
| - |
|
12101 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| - |
|
12102 |
if (lastComparison != 0) {
|
| - |
|
12103 |
return lastComparison;
|
| - |
|
12104 |
}
|
| - |
|
12105 |
if (isSetItemId()) {
|
| - |
|
12106 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| - |
|
12107 |
if (lastComparison != 0) {
|
| - |
|
12108 |
return lastComparison;
|
| - |
|
12109 |
}
|
| - |
|
12110 |
}
|
| - |
|
12111 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
| - |
|
12112 |
if (lastComparison != 0) {
|
| - |
|
12113 |
return lastComparison;
|
| - |
|
12114 |
}
|
| - |
|
12115 |
if (isSetWarehouseId()) {
|
| - |
|
12116 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
| - |
|
12117 |
if (lastComparison != 0) {
|
| - |
|
12118 |
return lastComparison;
|
| - |
|
12119 |
}
|
| - |
|
12120 |
}
|
| - |
|
12121 |
lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
|
| - |
|
12122 |
if (lastComparison != 0) {
|
| - |
|
12123 |
return lastComparison;
|
| - |
|
12124 |
}
|
| - |
|
12125 |
if (isSetSourceId()) {
|
| - |
|
12126 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
|
| - |
|
12127 |
if (lastComparison != 0) {
|
| - |
|
12128 |
return lastComparison;
|
| - |
|
12129 |
}
|
| - |
|
12130 |
}
|
| - |
|
12131 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| - |
|
12132 |
if (lastComparison != 0) {
|
| - |
|
12133 |
return lastComparison;
|
| - |
|
12134 |
}
|
| - |
|
12135 |
if (isSetOrderId()) {
|
| - |
|
12136 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| - |
|
12137 |
if (lastComparison != 0) {
|
| - |
|
12138 |
return lastComparison;
|
| - |
|
12139 |
}
|
| - |
|
12140 |
}
|
| - |
|
12141 |
return 0;
|
| - |
|
12142 |
}
|
| - |
|
12143 |
|
| - |
|
12144 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
12145 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
12146 |
}
|
| - |
|
12147 |
|
| - |
|
12148 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
12149 |
org.apache.thrift.protocol.TField field;
|
| - |
|
12150 |
iprot.readStructBegin();
|
| - |
|
12151 |
while (true)
|
| - |
|
12152 |
{
|
| - |
|
12153 |
field = iprot.readFieldBegin();
|
| - |
|
12154 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
12155 |
break;
|
| - |
|
12156 |
}
|
| - |
|
12157 |
switch (field.id) {
|
| - |
|
12158 |
case 1: // ITEM_ID
|
| - |
|
12159 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
12160 |
this.itemId = iprot.readI64();
|
| - |
|
12161 |
setItemIdIsSet(true);
|
| - |
|
12162 |
} else {
|
| - |
|
12163 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12164 |
}
|
| - |
|
12165 |
break;
|
| - |
|
12166 |
case 2: // WAREHOUSE_ID
|
| - |
|
12167 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
12168 |
this.warehouseId = iprot.readI64();
|
| - |
|
12169 |
setWarehouseIdIsSet(true);
|
| - |
|
12170 |
} else {
|
| - |
|
12171 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12172 |
}
|
| - |
|
12173 |
break;
|
| - |
|
12174 |
case 3: // SOURCE_ID
|
| - |
|
12175 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
12176 |
this.sourceId = iprot.readI64();
|
| - |
|
12177 |
setSourceIdIsSet(true);
|
| - |
|
12178 |
} else {
|
| - |
|
12179 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12180 |
}
|
| - |
|
12181 |
break;
|
| - |
|
12182 |
case 4: // ORDER_ID
|
| - |
|
12183 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
12184 |
this.orderId = iprot.readI64();
|
| - |
|
12185 |
setOrderIdIsSet(true);
|
| - |
|
12186 |
} else {
|
| - |
|
12187 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12188 |
}
|
| - |
|
12189 |
break;
|
| - |
|
12190 |
default:
|
| - |
|
12191 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12192 |
}
|
| - |
|
12193 |
iprot.readFieldEnd();
|
| - |
|
12194 |
}
|
| - |
|
12195 |
iprot.readStructEnd();
|
| - |
|
12196 |
validate();
|
| - |
|
12197 |
}
|
| - |
|
12198 |
|
| - |
|
12199 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
12200 |
validate();
|
| - |
|
12201 |
|
| - |
|
12202 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
12203 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
| - |
|
12204 |
oprot.writeI64(this.itemId);
|
| - |
|
12205 |
oprot.writeFieldEnd();
|
| - |
|
12206 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
| - |
|
12207 |
oprot.writeI64(this.warehouseId);
|
| - |
|
12208 |
oprot.writeFieldEnd();
|
| - |
|
12209 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
| - |
|
12210 |
oprot.writeI64(this.sourceId);
|
| - |
|
12211 |
oprot.writeFieldEnd();
|
| - |
|
12212 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
| - |
|
12213 |
oprot.writeI64(this.orderId);
|
| - |
|
12214 |
oprot.writeFieldEnd();
|
| - |
|
12215 |
oprot.writeFieldStop();
|
| - |
|
12216 |
oprot.writeStructEnd();
|
| - |
|
12217 |
}
|
| - |
|
12218 |
|
| - |
|
12219 |
@Override
|
| - |
|
12220 |
public String toString() {
|
| - |
|
12221 |
StringBuilder sb = new StringBuilder("isOrderBillable_args(");
|
| - |
|
12222 |
boolean first = true;
|
| - |
|
12223 |
|
| - |
|
12224 |
sb.append("itemId:");
|
| - |
|
12225 |
sb.append(this.itemId);
|
| - |
|
12226 |
first = false;
|
| - |
|
12227 |
if (!first) sb.append(", ");
|
| - |
|
12228 |
sb.append("warehouseId:");
|
| - |
|
12229 |
sb.append(this.warehouseId);
|
| - |
|
12230 |
first = false;
|
| - |
|
12231 |
if (!first) sb.append(", ");
|
| - |
|
12232 |
sb.append("sourceId:");
|
| - |
|
12233 |
sb.append(this.sourceId);
|
| - |
|
12234 |
first = false;
|
| - |
|
12235 |
if (!first) sb.append(", ");
|
| - |
|
12236 |
sb.append("orderId:");
|
| - |
|
12237 |
sb.append(this.orderId);
|
| - |
|
12238 |
first = false;
|
| - |
|
12239 |
sb.append(")");
|
| - |
|
12240 |
return sb.toString();
|
| - |
|
12241 |
}
|
| - |
|
12242 |
|
| - |
|
12243 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
12244 |
// check for required fields
|
| - |
|
12245 |
}
|
| - |
|
12246 |
|
| - |
|
12247 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
12248 |
try {
|
| - |
|
12249 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
12250 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12251 |
throw new java.io.IOException(te);
|
| - |
|
12252 |
}
|
| - |
|
12253 |
}
|
| - |
|
12254 |
|
| - |
|
12255 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
12256 |
try {
|
| - |
|
12257 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
12258 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12259 |
throw new java.io.IOException(te);
|
| - |
|
12260 |
}
|
| - |
|
12261 |
}
|
| - |
|
12262 |
|
| - |
|
12263 |
}
|
| - |
|
12264 |
|
| - |
|
12265 |
public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
12266 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
|
| - |
|
12267 |
|
| - |
|
12268 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
|
| - |
|
12269 |
|
| - |
|
12270 |
private boolean success; // required
|
| - |
|
12271 |
|
| - |
|
12272 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
12273 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
12274 |
SUCCESS((short)0, "success");
|
| - |
|
12275 |
|
| - |
|
12276 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
12277 |
|
| - |
|
12278 |
static {
|
| - |
|
12279 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
12280 |
byName.put(field.getFieldName(), field);
|
| - |
|
12281 |
}
|
| - |
|
12282 |
}
|
| - |
|
12283 |
|
| - |
|
12284 |
/**
|
| - |
|
12285 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
12286 |
*/
|
| - |
|
12287 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
12288 |
switch(fieldId) {
|
| - |
|
12289 |
case 0: // SUCCESS
|
| - |
|
12290 |
return SUCCESS;
|
| - |
|
12291 |
default:
|
| - |
|
12292 |
return null;
|
| - |
|
12293 |
}
|
| - |
|
12294 |
}
|
| - |
|
12295 |
|
| - |
|
12296 |
/**
|
| - |
|
12297 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
12298 |
* if it is not found.
|
| - |
|
12299 |
*/
|
| - |
|
12300 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
12301 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
12302 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
12303 |
return fields;
|
| - |
|
12304 |
}
|
| - |
|
12305 |
|
| - |
|
12306 |
/**
|
| - |
|
12307 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
12308 |
*/
|
| - |
|
12309 |
public static _Fields findByName(String name) {
|
| - |
|
12310 |
return byName.get(name);
|
| - |
|
12311 |
}
|
| - |
|
12312 |
|
| - |
|
12313 |
private final short _thriftId;
|
| - |
|
12314 |
private final String _fieldName;
|
| - |
|
12315 |
|
| - |
|
12316 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
12317 |
_thriftId = thriftId;
|
| - |
|
12318 |
_fieldName = fieldName;
|
| - |
|
12319 |
}
|
| - |
|
12320 |
|
| - |
|
12321 |
public short getThriftFieldId() {
|
| - |
|
12322 |
return _thriftId;
|
| - |
|
12323 |
}
|
| - |
|
12324 |
|
| - |
|
12325 |
public String getFieldName() {
|
| - |
|
12326 |
return _fieldName;
|
| - |
|
12327 |
}
|
| - |
|
12328 |
}
|
| - |
|
12329 |
|
| - |
|
12330 |
// isset id assignments
|
| - |
|
12331 |
private static final int __SUCCESS_ISSET_ID = 0;
|
| - |
|
12332 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| - |
|
12333 |
|
| - |
|
12334 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
12335 |
static {
|
| - |
|
12336 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
12337 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12338 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| - |
|
12339 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
12340 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
|
| - |
|
12341 |
}
|
| - |
|
12342 |
|
| - |
|
12343 |
public isOrderBillable_result() {
|
| - |
|
12344 |
}
|
| - |
|
12345 |
|
| - |
|
12346 |
public isOrderBillable_result(
|
| - |
|
12347 |
boolean success)
|
| - |
|
12348 |
{
|
| - |
|
12349 |
this();
|
| - |
|
12350 |
this.success = success;
|
| - |
|
12351 |
setSuccessIsSet(true);
|
| - |
|
12352 |
}
|
| - |
|
12353 |
|
| - |
|
12354 |
/**
|
| - |
|
12355 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
12356 |
*/
|
| - |
|
12357 |
public isOrderBillable_result(isOrderBillable_result other) {
|
| - |
|
12358 |
__isset_bit_vector.clear();
|
| - |
|
12359 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
12360 |
this.success = other.success;
|
| - |
|
12361 |
}
|
| - |
|
12362 |
|
| - |
|
12363 |
public isOrderBillable_result deepCopy() {
|
| - |
|
12364 |
return new isOrderBillable_result(this);
|
| - |
|
12365 |
}
|
| - |
|
12366 |
|
| - |
|
12367 |
@Override
|
| - |
|
12368 |
public void clear() {
|
| - |
|
12369 |
setSuccessIsSet(false);
|
| - |
|
12370 |
this.success = false;
|
| - |
|
12371 |
}
|
| - |
|
12372 |
|
| - |
|
12373 |
public boolean isSuccess() {
|
| - |
|
12374 |
return this.success;
|
| - |
|
12375 |
}
|
| - |
|
12376 |
|
| - |
|
12377 |
public void setSuccess(boolean success) {
|
| - |
|
12378 |
this.success = success;
|
| - |
|
12379 |
setSuccessIsSet(true);
|
| - |
|
12380 |
}
|
| - |
|
12381 |
|
| - |
|
12382 |
public void unsetSuccess() {
|
| - |
|
12383 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
| - |
|
12384 |
}
|
| - |
|
12385 |
|
| - |
|
12386 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
12387 |
public boolean isSetSuccess() {
|
| - |
|
12388 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
| - |
|
12389 |
}
|
| - |
|
12390 |
|
| - |
|
12391 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
12392 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
| - |
|
12393 |
}
|
| - |
|
12394 |
|
| - |
|
12395 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
12396 |
switch (field) {
|
| - |
|
12397 |
case SUCCESS:
|
| - |
|
12398 |
if (value == null) {
|
| - |
|
12399 |
unsetSuccess();
|
| - |
|
12400 |
} else {
|
| - |
|
12401 |
setSuccess((Boolean)value);
|
| - |
|
12402 |
}
|
| - |
|
12403 |
break;
|
| - |
|
12404 |
|
| - |
|
12405 |
}
|
| - |
|
12406 |
}
|
| - |
|
12407 |
|
| - |
|
12408 |
public Object getFieldValue(_Fields field) {
|
| - |
|
12409 |
switch (field) {
|
| - |
|
12410 |
case SUCCESS:
|
| - |
|
12411 |
return Boolean.valueOf(isSuccess());
|
| - |
|
12412 |
|
| - |
|
12413 |
}
|
| - |
|
12414 |
throw new IllegalStateException();
|
| - |
|
12415 |
}
|
| - |
|
12416 |
|
| - |
|
12417 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
12418 |
public boolean isSet(_Fields field) {
|
| - |
|
12419 |
if (field == null) {
|
| - |
|
12420 |
throw new IllegalArgumentException();
|
| - |
|
12421 |
}
|
| - |
|
12422 |
|
| - |
|
12423 |
switch (field) {
|
| - |
|
12424 |
case SUCCESS:
|
| - |
|
12425 |
return isSetSuccess();
|
| - |
|
12426 |
}
|
| - |
|
12427 |
throw new IllegalStateException();
|
| - |
|
12428 |
}
|
| - |
|
12429 |
|
| - |
|
12430 |
@Override
|
| - |
|
12431 |
public boolean equals(Object that) {
|
| - |
|
12432 |
if (that == null)
|
| - |
|
12433 |
return false;
|
| - |
|
12434 |
if (that instanceof isOrderBillable_result)
|
| - |
|
12435 |
return this.equals((isOrderBillable_result)that);
|
| - |
|
12436 |
return false;
|
| - |
|
12437 |
}
|
| - |
|
12438 |
|
| - |
|
12439 |
public boolean equals(isOrderBillable_result that) {
|
| - |
|
12440 |
if (that == null)
|
| - |
|
12441 |
return false;
|
| - |
|
12442 |
|
| - |
|
12443 |
boolean this_present_success = true;
|
| - |
|
12444 |
boolean that_present_success = true;
|
| - |
|
12445 |
if (this_present_success || that_present_success) {
|
| - |
|
12446 |
if (!(this_present_success && that_present_success))
|
| - |
|
12447 |
return false;
|
| - |
|
12448 |
if (this.success != that.success)
|
| - |
|
12449 |
return false;
|
| - |
|
12450 |
}
|
| - |
|
12451 |
|
| - |
|
12452 |
return true;
|
| - |
|
12453 |
}
|
| - |
|
12454 |
|
| - |
|
12455 |
@Override
|
| - |
|
12456 |
public int hashCode() {
|
| - |
|
12457 |
return 0;
|
| - |
|
12458 |
}
|
| - |
|
12459 |
|
| - |
|
12460 |
public int compareTo(isOrderBillable_result other) {
|
| - |
|
12461 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
12462 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
12463 |
}
|
| - |
|
12464 |
|
| - |
|
12465 |
int lastComparison = 0;
|
| - |
|
12466 |
isOrderBillable_result typedOther = (isOrderBillable_result)other;
|
| - |
|
12467 |
|
| - |
|
12468 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
12469 |
if (lastComparison != 0) {
|
| - |
|
12470 |
return lastComparison;
|
| - |
|
12471 |
}
|
| - |
|
12472 |
if (isSetSuccess()) {
|
| - |
|
12473 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
12474 |
if (lastComparison != 0) {
|
| - |
|
12475 |
return lastComparison;
|
| - |
|
12476 |
}
|
| - |
|
12477 |
}
|
| - |
|
12478 |
return 0;
|
| - |
|
12479 |
}
|
| - |
|
12480 |
|
| - |
|
12481 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
12482 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
12483 |
}
|
| - |
|
12484 |
|
| - |
|
12485 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
12486 |
org.apache.thrift.protocol.TField field;
|
| - |
|
12487 |
iprot.readStructBegin();
|
| - |
|
12488 |
while (true)
|
| - |
|
12489 |
{
|
| - |
|
12490 |
field = iprot.readFieldBegin();
|
| - |
|
12491 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
12492 |
break;
|
| - |
|
12493 |
}
|
| - |
|
12494 |
switch (field.id) {
|
| - |
|
12495 |
case 0: // SUCCESS
|
| - |
|
12496 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
| - |
|
12497 |
this.success = iprot.readBool();
|
| - |
|
12498 |
setSuccessIsSet(true);
|
| - |
|
12499 |
} else {
|
| - |
|
12500 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12501 |
}
|
| - |
|
12502 |
break;
|
| - |
|
12503 |
default:
|
| - |
|
12504 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12505 |
}
|
| - |
|
12506 |
iprot.readFieldEnd();
|
| - |
|
12507 |
}
|
| - |
|
12508 |
iprot.readStructEnd();
|
| - |
|
12509 |
validate();
|
| - |
|
12510 |
}
|
| - |
|
12511 |
|
| - |
|
12512 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
12513 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
12514 |
|
| - |
|
12515 |
if (this.isSetSuccess()) {
|
| - |
|
12516 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
12517 |
oprot.writeBool(this.success);
|
| - |
|
12518 |
oprot.writeFieldEnd();
|
| - |
|
12519 |
}
|
| - |
|
12520 |
oprot.writeFieldStop();
|
| - |
|
12521 |
oprot.writeStructEnd();
|
| - |
|
12522 |
}
|
| - |
|
12523 |
|
| - |
|
12524 |
@Override
|
| - |
|
12525 |
public String toString() {
|
| - |
|
12526 |
StringBuilder sb = new StringBuilder("isOrderBillable_result(");
|
| - |
|
12527 |
boolean first = true;
|
| - |
|
12528 |
|
| - |
|
12529 |
sb.append("success:");
|
| - |
|
12530 |
sb.append(this.success);
|
| - |
|
12531 |
first = false;
|
| - |
|
12532 |
sb.append(")");
|
| - |
|
12533 |
return sb.toString();
|
| - |
|
12534 |
}
|
| - |
|
12535 |
|
| - |
|
12536 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
12537 |
// check for required fields
|
| - |
|
12538 |
}
|
| - |
|
12539 |
|
| - |
|
12540 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
12541 |
try {
|
| - |
|
12542 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
12543 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12544 |
throw new java.io.IOException(te);
|
| - |
|
12545 |
}
|
| - |
|
12546 |
}
|
| - |
|
12547 |
|
| - |
|
12548 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
12549 |
try {
|
| - |
|
12550 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
12551 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12552 |
throw new java.io.IOException(te);
|
| - |
|
12553 |
}
|
| - |
|
12554 |
}
|
| - |
|
12555 |
|
| - |
|
12556 |
}
|
| - |
|
12557 |
|
| 11597 |
public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable {
|
12558 |
public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable {
|
| 11598 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
|
12559 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
|
| 11599 |
|
12560 |
|
| 11600 |
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);
|
12561 |
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);
|
| 11601 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
12562 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
| - |
|
12563 |
private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| - |
|
12564 |
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);
|
| - |
|
12565 |
private static final org.apache.thrift.protocol.TField CREATED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("createdTimestamp", org.apache.thrift.protocol.TType.I64, (short)5);
|
| - |
|
12566 |
private static final org.apache.thrift.protocol.TField PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("promisedShippingTimestamp", org.apache.thrift.protocol.TType.I64, (short)6);
|
| 11602 |
private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
|
12567 |
private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
|
| 11603 |
|
12568 |
|
| 11604 |
private long itemId; // required
|
12569 |
private long itemId; // required
|
| 11605 |
private long warehouseId; // required
|
12570 |
private long warehouseId; // required
|
| - |
|
12571 |
private long sourceId; // required
|
| - |
|
12572 |
private long orderId; // required
|
| - |
|
12573 |
private long createdTimestamp; // required
|
| - |
|
12574 |
private long promisedShippingTimestamp; // required
|
| 11606 |
private double quantity; // required
|
12575 |
private double quantity; // required
|
| 11607 |
|
12576 |
|
| 11608 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
12577 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 11609 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
12578 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 11610 |
ITEM_ID((short)1, "itemId"),
|
12579 |
ITEM_ID((short)1, "itemId"),
|
| 11611 |
WAREHOUSE_ID((short)2, "warehouseId"),
|
12580 |
WAREHOUSE_ID((short)2, "warehouseId"),
|
| - |
|
12581 |
SOURCE_ID((short)3, "sourceId"),
|
| - |
|
12582 |
ORDER_ID((short)4, "orderId"),
|
| - |
|
12583 |
CREATED_TIMESTAMP((short)5, "createdTimestamp"),
|
| - |
|
12584 |
PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
|
| 11612 |
QUANTITY((short)3, "quantity");
|
12585 |
QUANTITY((short)7, "quantity");
|
| 11613 |
|
12586 |
|
| 11614 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
12587 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 11615 |
|
12588 |
|
| 11616 |
static {
|
12589 |
static {
|
| 11617 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
12590 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 11626... |
Line 12599... |
| 11626 |
switch(fieldId) {
|
12599 |
switch(fieldId) {
|
| 11627 |
case 1: // ITEM_ID
|
12600 |
case 1: // ITEM_ID
|
| 11628 |
return ITEM_ID;
|
12601 |
return ITEM_ID;
|
| 11629 |
case 2: // WAREHOUSE_ID
|
12602 |
case 2: // WAREHOUSE_ID
|
| 11630 |
return WAREHOUSE_ID;
|
12603 |
return WAREHOUSE_ID;
|
| - |
|
12604 |
case 3: // SOURCE_ID
|
| - |
|
12605 |
return SOURCE_ID;
|
| - |
|
12606 |
case 4: // ORDER_ID
|
| - |
|
12607 |
return ORDER_ID;
|
| - |
|
12608 |
case 5: // CREATED_TIMESTAMP
|
| - |
|
12609 |
return CREATED_TIMESTAMP;
|
| - |
|
12610 |
case 6: // PROMISED_SHIPPING_TIMESTAMP
|
| - |
|
12611 |
return PROMISED_SHIPPING_TIMESTAMP;
|
| 11631 |
case 3: // QUANTITY
|
12612 |
case 7: // QUANTITY
|
| 11632 |
return QUANTITY;
|
12613 |
return QUANTITY;
|
| 11633 |
default:
|
12614 |
default:
|
| 11634 |
return null;
|
12615 |
return null;
|
| 11635 |
}
|
12616 |
}
|
| 11636 |
}
|
12617 |
}
|
| Line 11670... |
Line 12651... |
| 11670 |
}
|
12651 |
}
|
| 11671 |
|
12652 |
|
| 11672 |
// isset id assignments
|
12653 |
// isset id assignments
|
| 11673 |
private static final int __ITEMID_ISSET_ID = 0;
|
12654 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 11674 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
12655 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
| - |
|
12656 |
private static final int __SOURCEID_ISSET_ID = 2;
|
| - |
|
12657 |
private static final int __ORDERID_ISSET_ID = 3;
|
| - |
|
12658 |
private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
|
| - |
|
12659 |
private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
|
| 11675 |
private static final int __QUANTITY_ISSET_ID = 2;
|
12660 |
private static final int __QUANTITY_ISSET_ID = 6;
|
| 11676 |
private BitSet __isset_bit_vector = new BitSet(3);
|
12661 |
private BitSet __isset_bit_vector = new BitSet(7);
|
| 11677 |
|
12662 |
|
| 11678 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
12663 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 11679 |
static {
|
12664 |
static {
|
| 11680 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
12665 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 11681 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
12666 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 11682 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
12667 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 11683 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
12668 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 11684 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
12669 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
12670 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12671 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
12672 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12673 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
12674 |
tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12675 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
12676 |
tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12677 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 11685 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
12678 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 11686 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
12679 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 11687 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
12680 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 11688 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
|
12681 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
|
| 11689 |
}
|
12682 |
}
|
| Line 11692... |
Line 12685... |
| 11692 |
}
|
12685 |
}
|
| 11693 |
|
12686 |
|
| 11694 |
public reserveItemInWarehouse_args(
|
12687 |
public reserveItemInWarehouse_args(
|
| 11695 |
long itemId,
|
12688 |
long itemId,
|
| 11696 |
long warehouseId,
|
12689 |
long warehouseId,
|
| - |
|
12690 |
long sourceId,
|
| - |
|
12691 |
long orderId,
|
| - |
|
12692 |
long createdTimestamp,
|
| - |
|
12693 |
long promisedShippingTimestamp,
|
| 11697 |
double quantity)
|
12694 |
double quantity)
|
| 11698 |
{
|
12695 |
{
|
| 11699 |
this();
|
12696 |
this();
|
| 11700 |
this.itemId = itemId;
|
12697 |
this.itemId = itemId;
|
| 11701 |
setItemIdIsSet(true);
|
12698 |
setItemIdIsSet(true);
|
| 11702 |
this.warehouseId = warehouseId;
|
12699 |
this.warehouseId = warehouseId;
|
| 11703 |
setWarehouseIdIsSet(true);
|
12700 |
setWarehouseIdIsSet(true);
|
| - |
|
12701 |
this.sourceId = sourceId;
|
| - |
|
12702 |
setSourceIdIsSet(true);
|
| - |
|
12703 |
this.orderId = orderId;
|
| - |
|
12704 |
setOrderIdIsSet(true);
|
| - |
|
12705 |
this.createdTimestamp = createdTimestamp;
|
| - |
|
12706 |
setCreatedTimestampIsSet(true);
|
| - |
|
12707 |
this.promisedShippingTimestamp = promisedShippingTimestamp;
|
| - |
|
12708 |
setPromisedShippingTimestampIsSet(true);
|
| 11704 |
this.quantity = quantity;
|
12709 |
this.quantity = quantity;
|
| 11705 |
setQuantityIsSet(true);
|
12710 |
setQuantityIsSet(true);
|
| 11706 |
}
|
12711 |
}
|
| 11707 |
|
12712 |
|
| 11708 |
/**
|
12713 |
/**
|
| Line 11711... |
Line 12716... |
| 11711 |
public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
|
12716 |
public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
|
| 11712 |
__isset_bit_vector.clear();
|
12717 |
__isset_bit_vector.clear();
|
| 11713 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
12718 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 11714 |
this.itemId = other.itemId;
|
12719 |
this.itemId = other.itemId;
|
| 11715 |
this.warehouseId = other.warehouseId;
|
12720 |
this.warehouseId = other.warehouseId;
|
| - |
|
12721 |
this.sourceId = other.sourceId;
|
| - |
|
12722 |
this.orderId = other.orderId;
|
| - |
|
12723 |
this.createdTimestamp = other.createdTimestamp;
|
| - |
|
12724 |
this.promisedShippingTimestamp = other.promisedShippingTimestamp;
|
| 11716 |
this.quantity = other.quantity;
|
12725 |
this.quantity = other.quantity;
|
| 11717 |
}
|
12726 |
}
|
| 11718 |
|
12727 |
|
| 11719 |
public reserveItemInWarehouse_args deepCopy() {
|
12728 |
public reserveItemInWarehouse_args deepCopy() {
|
| 11720 |
return new reserveItemInWarehouse_args(this);
|
12729 |
return new reserveItemInWarehouse_args(this);
|
| Line 11724... |
Line 12733... |
| 11724 |
public void clear() {
|
12733 |
public void clear() {
|
| 11725 |
setItemIdIsSet(false);
|
12734 |
setItemIdIsSet(false);
|
| 11726 |
this.itemId = 0;
|
12735 |
this.itemId = 0;
|
| 11727 |
setWarehouseIdIsSet(false);
|
12736 |
setWarehouseIdIsSet(false);
|
| 11728 |
this.warehouseId = 0;
|
12737 |
this.warehouseId = 0;
|
| - |
|
12738 |
setSourceIdIsSet(false);
|
| - |
|
12739 |
this.sourceId = 0;
|
| - |
|
12740 |
setOrderIdIsSet(false);
|
| - |
|
12741 |
this.orderId = 0;
|
| - |
|
12742 |
setCreatedTimestampIsSet(false);
|
| - |
|
12743 |
this.createdTimestamp = 0;
|
| - |
|
12744 |
setPromisedShippingTimestampIsSet(false);
|
| - |
|
12745 |
this.promisedShippingTimestamp = 0;
|
| 11729 |
setQuantityIsSet(false);
|
12746 |
setQuantityIsSet(false);
|
| 11730 |
this.quantity = 0.0;
|
12747 |
this.quantity = 0.0;
|
| 11731 |
}
|
12748 |
}
|
| 11732 |
|
12749 |
|
| 11733 |
public long getItemId() {
|
12750 |
public long getItemId() {
|
| Line 11772... |
Line 12789... |
| 11772 |
|
12789 |
|
| 11773 |
public void setWarehouseIdIsSet(boolean value) {
|
12790 |
public void setWarehouseIdIsSet(boolean value) {
|
| 11774 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
12791 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
| 11775 |
}
|
12792 |
}
|
| 11776 |
|
12793 |
|
| - |
|
12794 |
public long getSourceId() {
|
| - |
|
12795 |
return this.sourceId;
|
| - |
|
12796 |
}
|
| - |
|
12797 |
|
| - |
|
12798 |
public void setSourceId(long sourceId) {
|
| - |
|
12799 |
this.sourceId = sourceId;
|
| - |
|
12800 |
setSourceIdIsSet(true);
|
| - |
|
12801 |
}
|
| - |
|
12802 |
|
| - |
|
12803 |
public void unsetSourceId() {
|
| - |
|
12804 |
__isset_bit_vector.clear(__SOURCEID_ISSET_ID);
|
| - |
|
12805 |
}
|
| - |
|
12806 |
|
| - |
|
12807 |
/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
|
| - |
|
12808 |
public boolean isSetSourceId() {
|
| - |
|
12809 |
return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
|
| - |
|
12810 |
}
|
| - |
|
12811 |
|
| - |
|
12812 |
public void setSourceIdIsSet(boolean value) {
|
| - |
|
12813 |
__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
|
| - |
|
12814 |
}
|
| - |
|
12815 |
|
| - |
|
12816 |
public long getOrderId() {
|
| - |
|
12817 |
return this.orderId;
|
| - |
|
12818 |
}
|
| - |
|
12819 |
|
| - |
|
12820 |
public void setOrderId(long orderId) {
|
| - |
|
12821 |
this.orderId = orderId;
|
| - |
|
12822 |
setOrderIdIsSet(true);
|
| - |
|
12823 |
}
|
| - |
|
12824 |
|
| - |
|
12825 |
public void unsetOrderId() {
|
| - |
|
12826 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| - |
|
12827 |
}
|
| - |
|
12828 |
|
| - |
|
12829 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
| - |
|
12830 |
public boolean isSetOrderId() {
|
| - |
|
12831 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| - |
|
12832 |
}
|
| - |
|
12833 |
|
| - |
|
12834 |
public void setOrderIdIsSet(boolean value) {
|
| - |
|
12835 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| - |
|
12836 |
}
|
| - |
|
12837 |
|
| - |
|
12838 |
public long getCreatedTimestamp() {
|
| - |
|
12839 |
return this.createdTimestamp;
|
| - |
|
12840 |
}
|
| - |
|
12841 |
|
| - |
|
12842 |
public void setCreatedTimestamp(long createdTimestamp) {
|
| - |
|
12843 |
this.createdTimestamp = createdTimestamp;
|
| - |
|
12844 |
setCreatedTimestampIsSet(true);
|
| - |
|
12845 |
}
|
| - |
|
12846 |
|
| - |
|
12847 |
public void unsetCreatedTimestamp() {
|
| - |
|
12848 |
__isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
|
| - |
|
12849 |
}
|
| - |
|
12850 |
|
| - |
|
12851 |
/** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
|
| - |
|
12852 |
public boolean isSetCreatedTimestamp() {
|
| - |
|
12853 |
return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
|
| - |
|
12854 |
}
|
| - |
|
12855 |
|
| - |
|
12856 |
public void setCreatedTimestampIsSet(boolean value) {
|
| - |
|
12857 |
__isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
|
| - |
|
12858 |
}
|
| - |
|
12859 |
|
| - |
|
12860 |
public long getPromisedShippingTimestamp() {
|
| - |
|
12861 |
return this.promisedShippingTimestamp;
|
| - |
|
12862 |
}
|
| - |
|
12863 |
|
| - |
|
12864 |
public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
|
| - |
|
12865 |
this.promisedShippingTimestamp = promisedShippingTimestamp;
|
| - |
|
12866 |
setPromisedShippingTimestampIsSet(true);
|
| - |
|
12867 |
}
|
| - |
|
12868 |
|
| - |
|
12869 |
public void unsetPromisedShippingTimestamp() {
|
| - |
|
12870 |
__isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
|
| - |
|
12871 |
}
|
| - |
|
12872 |
|
| - |
|
12873 |
/** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
|
| - |
|
12874 |
public boolean isSetPromisedShippingTimestamp() {
|
| - |
|
12875 |
return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
|
| - |
|
12876 |
}
|
| - |
|
12877 |
|
| - |
|
12878 |
public void setPromisedShippingTimestampIsSet(boolean value) {
|
| - |
|
12879 |
__isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
|
| - |
|
12880 |
}
|
| - |
|
12881 |
|
| 11777 |
public double getQuantity() {
|
12882 |
public double getQuantity() {
|
| 11778 |
return this.quantity;
|
12883 |
return this.quantity;
|
| 11779 |
}
|
12884 |
}
|
| 11780 |
|
12885 |
|
| 11781 |
public void setQuantity(double quantity) {
|
12886 |
public void setQuantity(double quantity) {
|
| Line 11812... |
Line 12917... |
| 11812 |
} else {
|
12917 |
} else {
|
| 11813 |
setWarehouseId((Long)value);
|
12918 |
setWarehouseId((Long)value);
|
| 11814 |
}
|
12919 |
}
|
| 11815 |
break;
|
12920 |
break;
|
| 11816 |
|
12921 |
|
| - |
|
12922 |
case SOURCE_ID:
|
| - |
|
12923 |
if (value == null) {
|
| - |
|
12924 |
unsetSourceId();
|
| - |
|
12925 |
} else {
|
| - |
|
12926 |
setSourceId((Long)value);
|
| - |
|
12927 |
}
|
| - |
|
12928 |
break;
|
| - |
|
12929 |
|
| - |
|
12930 |
case ORDER_ID:
|
| - |
|
12931 |
if (value == null) {
|
| - |
|
12932 |
unsetOrderId();
|
| - |
|
12933 |
} else {
|
| - |
|
12934 |
setOrderId((Long)value);
|
| - |
|
12935 |
}
|
| - |
|
12936 |
break;
|
| - |
|
12937 |
|
| - |
|
12938 |
case CREATED_TIMESTAMP:
|
| - |
|
12939 |
if (value == null) {
|
| - |
|
12940 |
unsetCreatedTimestamp();
|
| - |
|
12941 |
} else {
|
| - |
|
12942 |
setCreatedTimestamp((Long)value);
|
| - |
|
12943 |
}
|
| - |
|
12944 |
break;
|
| - |
|
12945 |
|
| - |
|
12946 |
case PROMISED_SHIPPING_TIMESTAMP:
|
| - |
|
12947 |
if (value == null) {
|
| - |
|
12948 |
unsetPromisedShippingTimestamp();
|
| - |
|
12949 |
} else {
|
| - |
|
12950 |
setPromisedShippingTimestamp((Long)value);
|
| - |
|
12951 |
}
|
| - |
|
12952 |
break;
|
| - |
|
12953 |
|
| 11817 |
case QUANTITY:
|
12954 |
case QUANTITY:
|
| 11818 |
if (value == null) {
|
12955 |
if (value == null) {
|
| 11819 |
unsetQuantity();
|
12956 |
unsetQuantity();
|
| 11820 |
} else {
|
12957 |
} else {
|
| 11821 |
setQuantity((Double)value);
|
12958 |
setQuantity((Double)value);
|
| Line 11831... |
Line 12968... |
| 11831 |
return Long.valueOf(getItemId());
|
12968 |
return Long.valueOf(getItemId());
|
| 11832 |
|
12969 |
|
| 11833 |
case WAREHOUSE_ID:
|
12970 |
case WAREHOUSE_ID:
|
| 11834 |
return Long.valueOf(getWarehouseId());
|
12971 |
return Long.valueOf(getWarehouseId());
|
| 11835 |
|
12972 |
|
| - |
|
12973 |
case SOURCE_ID:
|
| - |
|
12974 |
return Long.valueOf(getSourceId());
|
| - |
|
12975 |
|
| - |
|
12976 |
case ORDER_ID:
|
| - |
|
12977 |
return Long.valueOf(getOrderId());
|
| - |
|
12978 |
|
| - |
|
12979 |
case CREATED_TIMESTAMP:
|
| - |
|
12980 |
return Long.valueOf(getCreatedTimestamp());
|
| - |
|
12981 |
|
| - |
|
12982 |
case PROMISED_SHIPPING_TIMESTAMP:
|
| - |
|
12983 |
return Long.valueOf(getPromisedShippingTimestamp());
|
| - |
|
12984 |
|
| 11836 |
case QUANTITY:
|
12985 |
case QUANTITY:
|
| 11837 |
return Double.valueOf(getQuantity());
|
12986 |
return Double.valueOf(getQuantity());
|
| 11838 |
|
12987 |
|
| 11839 |
}
|
12988 |
}
|
| 11840 |
throw new IllegalStateException();
|
12989 |
throw new IllegalStateException();
|
| Line 11849... |
Line 12998... |
| 11849 |
switch (field) {
|
12998 |
switch (field) {
|
| 11850 |
case ITEM_ID:
|
12999 |
case ITEM_ID:
|
| 11851 |
return isSetItemId();
|
13000 |
return isSetItemId();
|
| 11852 |
case WAREHOUSE_ID:
|
13001 |
case WAREHOUSE_ID:
|
| 11853 |
return isSetWarehouseId();
|
13002 |
return isSetWarehouseId();
|
| - |
|
13003 |
case SOURCE_ID:
|
| - |
|
13004 |
return isSetSourceId();
|
| - |
|
13005 |
case ORDER_ID:
|
| - |
|
13006 |
return isSetOrderId();
|
| - |
|
13007 |
case CREATED_TIMESTAMP:
|
| - |
|
13008 |
return isSetCreatedTimestamp();
|
| - |
|
13009 |
case PROMISED_SHIPPING_TIMESTAMP:
|
| - |
|
13010 |
return isSetPromisedShippingTimestamp();
|
| 11854 |
case QUANTITY:
|
13011 |
case QUANTITY:
|
| 11855 |
return isSetQuantity();
|
13012 |
return isSetQuantity();
|
| 11856 |
}
|
13013 |
}
|
| 11857 |
throw new IllegalStateException();
|
13014 |
throw new IllegalStateException();
|
| 11858 |
}
|
13015 |
}
|
| Line 11886... |
Line 13043... |
| 11886 |
return false;
|
13043 |
return false;
|
| 11887 |
if (this.warehouseId != that.warehouseId)
|
13044 |
if (this.warehouseId != that.warehouseId)
|
| 11888 |
return false;
|
13045 |
return false;
|
| 11889 |
}
|
13046 |
}
|
| 11890 |
|
13047 |
|
| - |
|
13048 |
boolean this_present_sourceId = true;
|
| - |
|
13049 |
boolean that_present_sourceId = true;
|
| - |
|
13050 |
if (this_present_sourceId || that_present_sourceId) {
|
| - |
|
13051 |
if (!(this_present_sourceId && that_present_sourceId))
|
| - |
|
13052 |
return false;
|
| - |
|
13053 |
if (this.sourceId != that.sourceId)
|
| - |
|
13054 |
return false;
|
| - |
|
13055 |
}
|
| - |
|
13056 |
|
| - |
|
13057 |
boolean this_present_orderId = true;
|
| - |
|
13058 |
boolean that_present_orderId = true;
|
| - |
|
13059 |
if (this_present_orderId || that_present_orderId) {
|
| - |
|
13060 |
if (!(this_present_orderId && that_present_orderId))
|
| - |
|
13061 |
return false;
|
| - |
|
13062 |
if (this.orderId != that.orderId)
|
| - |
|
13063 |
return false;
|
| - |
|
13064 |
}
|
| - |
|
13065 |
|
| - |
|
13066 |
boolean this_present_createdTimestamp = true;
|
| - |
|
13067 |
boolean that_present_createdTimestamp = true;
|
| - |
|
13068 |
if (this_present_createdTimestamp || that_present_createdTimestamp) {
|
| - |
|
13069 |
if (!(this_present_createdTimestamp && that_present_createdTimestamp))
|
| - |
|
13070 |
return false;
|
| - |
|
13071 |
if (this.createdTimestamp != that.createdTimestamp)
|
| - |
|
13072 |
return false;
|
| - |
|
13073 |
}
|
| - |
|
13074 |
|
| - |
|
13075 |
boolean this_present_promisedShippingTimestamp = true;
|
| - |
|
13076 |
boolean that_present_promisedShippingTimestamp = true;
|
| - |
|
13077 |
if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
|
| - |
|
13078 |
if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
|
| - |
|
13079 |
return false;
|
| - |
|
13080 |
if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
|
| - |
|
13081 |
return false;
|
| - |
|
13082 |
}
|
| - |
|
13083 |
|
| 11891 |
boolean this_present_quantity = true;
|
13084 |
boolean this_present_quantity = true;
|
| 11892 |
boolean that_present_quantity = true;
|
13085 |
boolean that_present_quantity = true;
|
| 11893 |
if (this_present_quantity || that_present_quantity) {
|
13086 |
if (this_present_quantity || that_present_quantity) {
|
| 11894 |
if (!(this_present_quantity && that_present_quantity))
|
13087 |
if (!(this_present_quantity && that_present_quantity))
|
| 11895 |
return false;
|
13088 |
return false;
|
| Line 11931... |
Line 13124... |
| 11931 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
13124 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
| 11932 |
if (lastComparison != 0) {
|
13125 |
if (lastComparison != 0) {
|
| 11933 |
return lastComparison;
|
13126 |
return lastComparison;
|
| 11934 |
}
|
13127 |
}
|
| 11935 |
}
|
13128 |
}
|
| - |
|
13129 |
lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
|
| - |
|
13130 |
if (lastComparison != 0) {
|
| - |
|
13131 |
return lastComparison;
|
| - |
|
13132 |
}
|
| - |
|
13133 |
if (isSetSourceId()) {
|
| - |
|
13134 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
|
| - |
|
13135 |
if (lastComparison != 0) {
|
| - |
|
13136 |
return lastComparison;
|
| - |
|
13137 |
}
|
| - |
|
13138 |
}
|
| - |
|
13139 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| - |
|
13140 |
if (lastComparison != 0) {
|
| - |
|
13141 |
return lastComparison;
|
| - |
|
13142 |
}
|
| - |
|
13143 |
if (isSetOrderId()) {
|
| - |
|
13144 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| - |
|
13145 |
if (lastComparison != 0) {
|
| - |
|
13146 |
return lastComparison;
|
| - |
|
13147 |
}
|
| - |
|
13148 |
}
|
| - |
|
13149 |
lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
|
| - |
|
13150 |
if (lastComparison != 0) {
|
| - |
|
13151 |
return lastComparison;
|
| - |
|
13152 |
}
|
| - |
|
13153 |
if (isSetCreatedTimestamp()) {
|
| - |
|
13154 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
|
| - |
|
13155 |
if (lastComparison != 0) {
|
| - |
|
13156 |
return lastComparison;
|
| - |
|
13157 |
}
|
| - |
|
13158 |
}
|
| - |
|
13159 |
lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
|
| - |
|
13160 |
if (lastComparison != 0) {
|
| - |
|
13161 |
return lastComparison;
|
| - |
|
13162 |
}
|
| - |
|
13163 |
if (isSetPromisedShippingTimestamp()) {
|
| - |
|
13164 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
|
| - |
|
13165 |
if (lastComparison != 0) {
|
| - |
|
13166 |
return lastComparison;
|
| - |
|
13167 |
}
|
| - |
|
13168 |
}
|
| 11936 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
13169 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 11937 |
if (lastComparison != 0) {
|
13170 |
if (lastComparison != 0) {
|
| 11938 |
return lastComparison;
|
13171 |
return lastComparison;
|
| 11939 |
}
|
13172 |
}
|
| 11940 |
if (isSetQuantity()) {
|
13173 |
if (isSetQuantity()) {
|
| Line 11974... |
Line 13207... |
| 11974 |
setWarehouseIdIsSet(true);
|
13207 |
setWarehouseIdIsSet(true);
|
| 11975 |
} else {
|
13208 |
} else {
|
| 11976 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
13209 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 11977 |
}
|
13210 |
}
|
| 11978 |
break;
|
13211 |
break;
|
| - |
|
13212 |
case 3: // SOURCE_ID
|
| - |
|
13213 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
13214 |
this.sourceId = iprot.readI64();
|
| - |
|
13215 |
setSourceIdIsSet(true);
|
| - |
|
13216 |
} else {
|
| - |
|
13217 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
13218 |
}
|
| - |
|
13219 |
break;
|
| - |
|
13220 |
case 4: // ORDER_ID
|
| - |
|
13221 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
13222 |
this.orderId = iprot.readI64();
|
| - |
|
13223 |
setOrderIdIsSet(true);
|
| - |
|
13224 |
} else {
|
| - |
|
13225 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
13226 |
}
|
| - |
|
13227 |
break;
|
| - |
|
13228 |
case 5: // CREATED_TIMESTAMP
|
| - |
|
13229 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
13230 |
this.createdTimestamp = iprot.readI64();
|
| - |
|
13231 |
setCreatedTimestampIsSet(true);
|
| - |
|
13232 |
} else {
|
| - |
|
13233 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
13234 |
}
|
| - |
|
13235 |
break;
|
| - |
|
13236 |
case 6: // PROMISED_SHIPPING_TIMESTAMP
|
| - |
|
13237 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
13238 |
this.promisedShippingTimestamp = iprot.readI64();
|
| - |
|
13239 |
setPromisedShippingTimestampIsSet(true);
|
| - |
|
13240 |
} else {
|
| - |
|
13241 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
13242 |
}
|
| - |
|
13243 |
break;
|
| 11979 |
case 3: // QUANTITY
|
13244 |
case 7: // QUANTITY
|
| 11980 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
13245 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| 11981 |
this.quantity = iprot.readDouble();
|
13246 |
this.quantity = iprot.readDouble();
|
| 11982 |
setQuantityIsSet(true);
|
13247 |
setQuantityIsSet(true);
|
| 11983 |
} else {
|
13248 |
} else {
|
| 11984 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
13249 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| Line 12001... |
Line 13266... |
| 12001 |
oprot.writeI64(this.itemId);
|
13266 |
oprot.writeI64(this.itemId);
|
| 12002 |
oprot.writeFieldEnd();
|
13267 |
oprot.writeFieldEnd();
|
| 12003 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
13268 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
| 12004 |
oprot.writeI64(this.warehouseId);
|
13269 |
oprot.writeI64(this.warehouseId);
|
| 12005 |
oprot.writeFieldEnd();
|
13270 |
oprot.writeFieldEnd();
|
| - |
|
13271 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
| - |
|
13272 |
oprot.writeI64(this.sourceId);
|
| - |
|
13273 |
oprot.writeFieldEnd();
|
| - |
|
13274 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
| - |
|
13275 |
oprot.writeI64(this.orderId);
|
| - |
|
13276 |
oprot.writeFieldEnd();
|
| - |
|
13277 |
oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
|
| - |
|
13278 |
oprot.writeI64(this.createdTimestamp);
|
| - |
|
13279 |
oprot.writeFieldEnd();
|
| - |
|
13280 |
oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
|
| - |
|
13281 |
oprot.writeI64(this.promisedShippingTimestamp);
|
| - |
|
13282 |
oprot.writeFieldEnd();
|
| 12006 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
13283 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
| 12007 |
oprot.writeDouble(this.quantity);
|
13284 |
oprot.writeDouble(this.quantity);
|
| 12008 |
oprot.writeFieldEnd();
|
13285 |
oprot.writeFieldEnd();
|
| 12009 |
oprot.writeFieldStop();
|
13286 |
oprot.writeFieldStop();
|
| 12010 |
oprot.writeStructEnd();
|
13287 |
oprot.writeStructEnd();
|
| Line 12021... |
Line 13298... |
| 12021 |
if (!first) sb.append(", ");
|
13298 |
if (!first) sb.append(", ");
|
| 12022 |
sb.append("warehouseId:");
|
13299 |
sb.append("warehouseId:");
|
| 12023 |
sb.append(this.warehouseId);
|
13300 |
sb.append(this.warehouseId);
|
| 12024 |
first = false;
|
13301 |
first = false;
|
| 12025 |
if (!first) sb.append(", ");
|
13302 |
if (!first) sb.append(", ");
|
| - |
|
13303 |
sb.append("sourceId:");
|
| - |
|
13304 |
sb.append(this.sourceId);
|
| - |
|
13305 |
first = false;
|
| - |
|
13306 |
if (!first) sb.append(", ");
|
| - |
|
13307 |
sb.append("orderId:");
|
| - |
|
13308 |
sb.append(this.orderId);
|
| - |
|
13309 |
first = false;
|
| - |
|
13310 |
if (!first) sb.append(", ");
|
| - |
|
13311 |
sb.append("createdTimestamp:");
|
| - |
|
13312 |
sb.append(this.createdTimestamp);
|
| - |
|
13313 |
first = false;
|
| - |
|
13314 |
if (!first) sb.append(", ");
|
| - |
|
13315 |
sb.append("promisedShippingTimestamp:");
|
| - |
|
13316 |
sb.append(this.promisedShippingTimestamp);
|
| - |
|
13317 |
first = false;
|
| - |
|
13318 |
if (!first) sb.append(", ");
|
| 12026 |
sb.append("quantity:");
|
13319 |
sb.append("quantity:");
|
| 12027 |
sb.append(this.quantity);
|
13320 |
sb.append(this.quantity);
|
| 12028 |
first = false;
|
13321 |
first = false;
|
| 12029 |
sb.append(")");
|
13322 |
sb.append(")");
|
| 12030 |
return sb.toString();
|
13323 |
return sb.toString();
|
| Line 12436... |
Line 13729... |
| 12436 |
public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable {
|
13729 |
public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable {
|
| 12437 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
|
13730 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
|
| 12438 |
|
13731 |
|
| 12439 |
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);
|
13732 |
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);
|
| 12440 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
13733 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
| - |
|
13734 |
private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| - |
|
13735 |
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);
|
| 12441 |
private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
|
13736 |
private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
|
| 12442 |
|
13737 |
|
| 12443 |
private long itemId; // required
|
13738 |
private long itemId; // required
|
| 12444 |
private long warehouseId; // required
|
13739 |
private long warehouseId; // required
|
| - |
|
13740 |
private long sourceId; // required
|
| - |
|
13741 |
private long orderId; // required
|
| 12445 |
private double quantity; // required
|
13742 |
private double quantity; // required
|
| 12446 |
|
13743 |
|
| 12447 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
13744 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 12448 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
13745 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 12449 |
ITEM_ID((short)1, "itemId"),
|
13746 |
ITEM_ID((short)1, "itemId"),
|
| 12450 |
WAREHOUSE_ID((short)2, "warehouseId"),
|
13747 |
WAREHOUSE_ID((short)2, "warehouseId"),
|
| - |
|
13748 |
SOURCE_ID((short)3, "sourceId"),
|
| - |
|
13749 |
ORDER_ID((short)4, "orderId"),
|
| 12451 |
QUANTITY((short)3, "quantity");
|
13750 |
QUANTITY((short)5, "quantity");
|
| 12452 |
|
13751 |
|
| 12453 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
13752 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 12454 |
|
13753 |
|
| 12455 |
static {
|
13754 |
static {
|
| 12456 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
13755 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 12465... |
Line 13764... |
| 12465 |
switch(fieldId) {
|
13764 |
switch(fieldId) {
|
| 12466 |
case 1: // ITEM_ID
|
13765 |
case 1: // ITEM_ID
|
| 12467 |
return ITEM_ID;
|
13766 |
return ITEM_ID;
|
| 12468 |
case 2: // WAREHOUSE_ID
|
13767 |
case 2: // WAREHOUSE_ID
|
| 12469 |
return WAREHOUSE_ID;
|
13768 |
return WAREHOUSE_ID;
|
| - |
|
13769 |
case 3: // SOURCE_ID
|
| - |
|
13770 |
return SOURCE_ID;
|
| - |
|
13771 |
case 4: // ORDER_ID
|
| - |
|
13772 |
return ORDER_ID;
|
| 12470 |
case 3: // QUANTITY
|
13773 |
case 5: // QUANTITY
|
| 12471 |
return QUANTITY;
|
13774 |
return QUANTITY;
|
| 12472 |
default:
|
13775 |
default:
|
| 12473 |
return null;
|
13776 |
return null;
|
| 12474 |
}
|
13777 |
}
|
| 12475 |
}
|
13778 |
}
|
| Line 12509... |
Line 13812... |
| 12509 |
}
|
13812 |
}
|
| 12510 |
|
13813 |
|
| 12511 |
// isset id assignments
|
13814 |
// isset id assignments
|
| 12512 |
private static final int __ITEMID_ISSET_ID = 0;
|
13815 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 12513 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
13816 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
| - |
|
13817 |
private static final int __SOURCEID_ISSET_ID = 2;
|
| - |
|
13818 |
private static final int __ORDERID_ISSET_ID = 3;
|
| 12514 |
private static final int __QUANTITY_ISSET_ID = 2;
|
13819 |
private static final int __QUANTITY_ISSET_ID = 4;
|
| 12515 |
private BitSet __isset_bit_vector = new BitSet(3);
|
13820 |
private BitSet __isset_bit_vector = new BitSet(5);
|
| 12516 |
|
13821 |
|
| 12517 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
13822 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 12518 |
static {
|
13823 |
static {
|
| 12519 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
13824 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 12520 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
13825 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 12521 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
13826 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 12522 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
13827 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 12523 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
13828 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
13829 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
13830 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
13831 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
13832 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 12524 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
13833 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 12525 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
13834 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 12526 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
13835 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 12527 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
|
13836 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
|
| 12528 |
}
|
13837 |
}
|
| Line 12531... |
Line 13840... |
| 12531 |
}
|
13840 |
}
|
| 12532 |
|
13841 |
|
| 12533 |
public reduceReservationCount_args(
|
13842 |
public reduceReservationCount_args(
|
| 12534 |
long itemId,
|
13843 |
long itemId,
|
| 12535 |
long warehouseId,
|
13844 |
long warehouseId,
|
| - |
|
13845 |
long sourceId,
|
| - |
|
13846 |
long orderId,
|
| 12536 |
double quantity)
|
13847 |
double quantity)
|
| 12537 |
{
|
13848 |
{
|
| 12538 |
this();
|
13849 |
this();
|
| 12539 |
this.itemId = itemId;
|
13850 |
this.itemId = itemId;
|
| 12540 |
setItemIdIsSet(true);
|
13851 |
setItemIdIsSet(true);
|
| 12541 |
this.warehouseId = warehouseId;
|
13852 |
this.warehouseId = warehouseId;
|
| 12542 |
setWarehouseIdIsSet(true);
|
13853 |
setWarehouseIdIsSet(true);
|
| - |
|
13854 |
this.sourceId = sourceId;
|
| - |
|
13855 |
setSourceIdIsSet(true);
|
| - |
|
13856 |
this.orderId = orderId;
|
| - |
|
13857 |
setOrderIdIsSet(true);
|
| 12543 |
this.quantity = quantity;
|
13858 |
this.quantity = quantity;
|
| 12544 |
setQuantityIsSet(true);
|
13859 |
setQuantityIsSet(true);
|
| 12545 |
}
|
13860 |
}
|
| 12546 |
|
13861 |
|
| 12547 |
/**
|
13862 |
/**
|
| Line 12550... |
Line 13865... |
| 12550 |
public reduceReservationCount_args(reduceReservationCount_args other) {
|
13865 |
public reduceReservationCount_args(reduceReservationCount_args other) {
|
| 12551 |
__isset_bit_vector.clear();
|
13866 |
__isset_bit_vector.clear();
|
| 12552 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
13867 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 12553 |
this.itemId = other.itemId;
|
13868 |
this.itemId = other.itemId;
|
| 12554 |
this.warehouseId = other.warehouseId;
|
13869 |
this.warehouseId = other.warehouseId;
|
| - |
|
13870 |
this.sourceId = other.sourceId;
|
| - |
|
13871 |
this.orderId = other.orderId;
|
| 12555 |
this.quantity = other.quantity;
|
13872 |
this.quantity = other.quantity;
|
| 12556 |
}
|
13873 |
}
|
| 12557 |
|
13874 |
|
| 12558 |
public reduceReservationCount_args deepCopy() {
|
13875 |
public reduceReservationCount_args deepCopy() {
|
| 12559 |
return new reduceReservationCount_args(this);
|
13876 |
return new reduceReservationCount_args(this);
|
| Line 12563... |
Line 13880... |
| 12563 |
public void clear() {
|
13880 |
public void clear() {
|
| 12564 |
setItemIdIsSet(false);
|
13881 |
setItemIdIsSet(false);
|
| 12565 |
this.itemId = 0;
|
13882 |
this.itemId = 0;
|
| 12566 |
setWarehouseIdIsSet(false);
|
13883 |
setWarehouseIdIsSet(false);
|
| 12567 |
this.warehouseId = 0;
|
13884 |
this.warehouseId = 0;
|
| - |
|
13885 |
setSourceIdIsSet(false);
|
| - |
|
13886 |
this.sourceId = 0;
|
| - |
|
13887 |
setOrderIdIsSet(false);
|
| - |
|
13888 |
this.orderId = 0;
|
| 12568 |
setQuantityIsSet(false);
|
13889 |
setQuantityIsSet(false);
|
| 12569 |
this.quantity = 0.0;
|
13890 |
this.quantity = 0.0;
|
| 12570 |
}
|
13891 |
}
|
| 12571 |
|
13892 |
|
| 12572 |
public long getItemId() {
|
13893 |
public long getItemId() {
|
| Line 12611... |
Line 13932... |
| 12611 |
|
13932 |
|
| 12612 |
public void setWarehouseIdIsSet(boolean value) {
|
13933 |
public void setWarehouseIdIsSet(boolean value) {
|
| 12613 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
13934 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
| 12614 |
}
|
13935 |
}
|
| 12615 |
|
13936 |
|
| - |
|
13937 |
public long getSourceId() {
|
| - |
|
13938 |
return this.sourceId;
|
| - |
|
13939 |
}
|
| - |
|
13940 |
|
| - |
|
13941 |
public void setSourceId(long sourceId) {
|
| - |
|
13942 |
this.sourceId = sourceId;
|
| - |
|
13943 |
setSourceIdIsSet(true);
|
| - |
|
13944 |
}
|
| - |
|
13945 |
|
| - |
|
13946 |
public void unsetSourceId() {
|
| - |
|
13947 |
__isset_bit_vector.clear(__SOURCEID_ISSET_ID);
|
| - |
|
13948 |
}
|
| - |
|
13949 |
|
| - |
|
13950 |
/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
|
| - |
|
13951 |
public boolean isSetSourceId() {
|
| - |
|
13952 |
return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
|
| - |
|
13953 |
}
|
| - |
|
13954 |
|
| - |
|
13955 |
public void setSourceIdIsSet(boolean value) {
|
| - |
|
13956 |
__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
|
| - |
|
13957 |
}
|
| - |
|
13958 |
|
| - |
|
13959 |
public long getOrderId() {
|
| - |
|
13960 |
return this.orderId;
|
| - |
|
13961 |
}
|
| - |
|
13962 |
|
| - |
|
13963 |
public void setOrderId(long orderId) {
|
| - |
|
13964 |
this.orderId = orderId;
|
| - |
|
13965 |
setOrderIdIsSet(true);
|
| - |
|
13966 |
}
|
| - |
|
13967 |
|
| - |
|
13968 |
public void unsetOrderId() {
|
| - |
|
13969 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| - |
|
13970 |
}
|
| - |
|
13971 |
|
| - |
|
13972 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
| - |
|
13973 |
public boolean isSetOrderId() {
|
| - |
|
13974 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| - |
|
13975 |
}
|
| - |
|
13976 |
|
| - |
|
13977 |
public void setOrderIdIsSet(boolean value) {
|
| - |
|
13978 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| - |
|
13979 |
}
|
| - |
|
13980 |
|
| 12616 |
public double getQuantity() {
|
13981 |
public double getQuantity() {
|
| 12617 |
return this.quantity;
|
13982 |
return this.quantity;
|
| 12618 |
}
|
13983 |
}
|
| 12619 |
|
13984 |
|
| 12620 |
public void setQuantity(double quantity) {
|
13985 |
public void setQuantity(double quantity) {
|
| Line 12651... |
Line 14016... |
| 12651 |
} else {
|
14016 |
} else {
|
| 12652 |
setWarehouseId((Long)value);
|
14017 |
setWarehouseId((Long)value);
|
| 12653 |
}
|
14018 |
}
|
| 12654 |
break;
|
14019 |
break;
|
| 12655 |
|
14020 |
|
| - |
|
14021 |
case SOURCE_ID:
|
| - |
|
14022 |
if (value == null) {
|
| - |
|
14023 |
unsetSourceId();
|
| - |
|
14024 |
} else {
|
| - |
|
14025 |
setSourceId((Long)value);
|
| - |
|
14026 |
}
|
| - |
|
14027 |
break;
|
| - |
|
14028 |
|
| - |
|
14029 |
case ORDER_ID:
|
| - |
|
14030 |
if (value == null) {
|
| - |
|
14031 |
unsetOrderId();
|
| - |
|
14032 |
} else {
|
| - |
|
14033 |
setOrderId((Long)value);
|
| - |
|
14034 |
}
|
| - |
|
14035 |
break;
|
| - |
|
14036 |
|
| 12656 |
case QUANTITY:
|
14037 |
case QUANTITY:
|
| 12657 |
if (value == null) {
|
14038 |
if (value == null) {
|
| 12658 |
unsetQuantity();
|
14039 |
unsetQuantity();
|
| 12659 |
} else {
|
14040 |
} else {
|
| 12660 |
setQuantity((Double)value);
|
14041 |
setQuantity((Double)value);
|
| Line 12670... |
Line 14051... |
| 12670 |
return Long.valueOf(getItemId());
|
14051 |
return Long.valueOf(getItemId());
|
| 12671 |
|
14052 |
|
| 12672 |
case WAREHOUSE_ID:
|
14053 |
case WAREHOUSE_ID:
|
| 12673 |
return Long.valueOf(getWarehouseId());
|
14054 |
return Long.valueOf(getWarehouseId());
|
| 12674 |
|
14055 |
|
| - |
|
14056 |
case SOURCE_ID:
|
| - |
|
14057 |
return Long.valueOf(getSourceId());
|
| - |
|
14058 |
|
| - |
|
14059 |
case ORDER_ID:
|
| - |
|
14060 |
return Long.valueOf(getOrderId());
|
| - |
|
14061 |
|
| 12675 |
case QUANTITY:
|
14062 |
case QUANTITY:
|
| 12676 |
return Double.valueOf(getQuantity());
|
14063 |
return Double.valueOf(getQuantity());
|
| 12677 |
|
14064 |
|
| 12678 |
}
|
14065 |
}
|
| 12679 |
throw new IllegalStateException();
|
14066 |
throw new IllegalStateException();
|
| Line 12688... |
Line 14075... |
| 12688 |
switch (field) {
|
14075 |
switch (field) {
|
| 12689 |
case ITEM_ID:
|
14076 |
case ITEM_ID:
|
| 12690 |
return isSetItemId();
|
14077 |
return isSetItemId();
|
| 12691 |
case WAREHOUSE_ID:
|
14078 |
case WAREHOUSE_ID:
|
| 12692 |
return isSetWarehouseId();
|
14079 |
return isSetWarehouseId();
|
| - |
|
14080 |
case SOURCE_ID:
|
| - |
|
14081 |
return isSetSourceId();
|
| - |
|
14082 |
case ORDER_ID:
|
| - |
|
14083 |
return isSetOrderId();
|
| 12693 |
case QUANTITY:
|
14084 |
case QUANTITY:
|
| 12694 |
return isSetQuantity();
|
14085 |
return isSetQuantity();
|
| 12695 |
}
|
14086 |
}
|
| 12696 |
throw new IllegalStateException();
|
14087 |
throw new IllegalStateException();
|
| 12697 |
}
|
14088 |
}
|
| Line 12725... |
Line 14116... |
| 12725 |
return false;
|
14116 |
return false;
|
| 12726 |
if (this.warehouseId != that.warehouseId)
|
14117 |
if (this.warehouseId != that.warehouseId)
|
| 12727 |
return false;
|
14118 |
return false;
|
| 12728 |
}
|
14119 |
}
|
| 12729 |
|
14120 |
|
| - |
|
14121 |
boolean this_present_sourceId = true;
|
| - |
|
14122 |
boolean that_present_sourceId = true;
|
| - |
|
14123 |
if (this_present_sourceId || that_present_sourceId) {
|
| - |
|
14124 |
if (!(this_present_sourceId && that_present_sourceId))
|
| - |
|
14125 |
return false;
|
| - |
|
14126 |
if (this.sourceId != that.sourceId)
|
| - |
|
14127 |
return false;
|
| - |
|
14128 |
}
|
| - |
|
14129 |
|
| - |
|
14130 |
boolean this_present_orderId = true;
|
| - |
|
14131 |
boolean that_present_orderId = true;
|
| - |
|
14132 |
if (this_present_orderId || that_present_orderId) {
|
| - |
|
14133 |
if (!(this_present_orderId && that_present_orderId))
|
| - |
|
14134 |
return false;
|
| - |
|
14135 |
if (this.orderId != that.orderId)
|
| - |
|
14136 |
return false;
|
| - |
|
14137 |
}
|
| - |
|
14138 |
|
| 12730 |
boolean this_present_quantity = true;
|
14139 |
boolean this_present_quantity = true;
|
| 12731 |
boolean that_present_quantity = true;
|
14140 |
boolean that_present_quantity = true;
|
| 12732 |
if (this_present_quantity || that_present_quantity) {
|
14141 |
if (this_present_quantity || that_present_quantity) {
|
| 12733 |
if (!(this_present_quantity && that_present_quantity))
|
14142 |
if (!(this_present_quantity && that_present_quantity))
|
| 12734 |
return false;
|
14143 |
return false;
|
| Line 12770... |
Line 14179... |
| 12770 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
14179 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
| 12771 |
if (lastComparison != 0) {
|
14180 |
if (lastComparison != 0) {
|
| 12772 |
return lastComparison;
|
14181 |
return lastComparison;
|
| 12773 |
}
|
14182 |
}
|
| 12774 |
}
|
14183 |
}
|
| - |
|
14184 |
lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
|
| - |
|
14185 |
if (lastComparison != 0) {
|
| - |
|
14186 |
return lastComparison;
|
| - |
|
14187 |
}
|
| - |
|
14188 |
if (isSetSourceId()) {
|
| - |
|
14189 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
|
| - |
|
14190 |
if (lastComparison != 0) {
|
| - |
|
14191 |
return lastComparison;
|
| - |
|
14192 |
}
|
| - |
|
14193 |
}
|
| - |
|
14194 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| - |
|
14195 |
if (lastComparison != 0) {
|
| - |
|
14196 |
return lastComparison;
|
| - |
|
14197 |
}
|
| - |
|
14198 |
if (isSetOrderId()) {
|
| - |
|
14199 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| - |
|
14200 |
if (lastComparison != 0) {
|
| - |
|
14201 |
return lastComparison;
|
| - |
|
14202 |
}
|
| - |
|
14203 |
}
|
| 12775 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
14204 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 12776 |
if (lastComparison != 0) {
|
14205 |
if (lastComparison != 0) {
|
| 12777 |
return lastComparison;
|
14206 |
return lastComparison;
|
| 12778 |
}
|
14207 |
}
|
| 12779 |
if (isSetQuantity()) {
|
14208 |
if (isSetQuantity()) {
|
| Line 12813... |
Line 14242... |
| 12813 |
setWarehouseIdIsSet(true);
|
14242 |
setWarehouseIdIsSet(true);
|
| 12814 |
} else {
|
14243 |
} else {
|
| 12815 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
14244 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 12816 |
}
|
14245 |
}
|
| 12817 |
break;
|
14246 |
break;
|
| - |
|
14247 |
case 3: // SOURCE_ID
|
| - |
|
14248 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
14249 |
this.sourceId = iprot.readI64();
|
| - |
|
14250 |
setSourceIdIsSet(true);
|
| - |
|
14251 |
} else {
|
| - |
|
14252 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
14253 |
}
|
| - |
|
14254 |
break;
|
| - |
|
14255 |
case 4: // ORDER_ID
|
| - |
|
14256 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
14257 |
this.orderId = iprot.readI64();
|
| - |
|
14258 |
setOrderIdIsSet(true);
|
| - |
|
14259 |
} else {
|
| - |
|
14260 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
14261 |
}
|
| - |
|
14262 |
break;
|
| 12818 |
case 3: // QUANTITY
|
14263 |
case 5: // QUANTITY
|
| 12819 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
14264 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| 12820 |
this.quantity = iprot.readDouble();
|
14265 |
this.quantity = iprot.readDouble();
|
| 12821 |
setQuantityIsSet(true);
|
14266 |
setQuantityIsSet(true);
|
| 12822 |
} else {
|
14267 |
} else {
|
| 12823 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
14268 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| Line 12840... |
Line 14285... |
| 12840 |
oprot.writeI64(this.itemId);
|
14285 |
oprot.writeI64(this.itemId);
|
| 12841 |
oprot.writeFieldEnd();
|
14286 |
oprot.writeFieldEnd();
|
| 12842 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
14287 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
| 12843 |
oprot.writeI64(this.warehouseId);
|
14288 |
oprot.writeI64(this.warehouseId);
|
| 12844 |
oprot.writeFieldEnd();
|
14289 |
oprot.writeFieldEnd();
|
| - |
|
14290 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
| - |
|
14291 |
oprot.writeI64(this.sourceId);
|
| - |
|
14292 |
oprot.writeFieldEnd();
|
| - |
|
14293 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
| - |
|
14294 |
oprot.writeI64(this.orderId);
|
| - |
|
14295 |
oprot.writeFieldEnd();
|
| 12845 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
14296 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
| 12846 |
oprot.writeDouble(this.quantity);
|
14297 |
oprot.writeDouble(this.quantity);
|
| 12847 |
oprot.writeFieldEnd();
|
14298 |
oprot.writeFieldEnd();
|
| 12848 |
oprot.writeFieldStop();
|
14299 |
oprot.writeFieldStop();
|
| 12849 |
oprot.writeStructEnd();
|
14300 |
oprot.writeStructEnd();
|
| Line 12860... |
Line 14311... |
| 12860 |
if (!first) sb.append(", ");
|
14311 |
if (!first) sb.append(", ");
|
| 12861 |
sb.append("warehouseId:");
|
14312 |
sb.append("warehouseId:");
|
| 12862 |
sb.append(this.warehouseId);
|
14313 |
sb.append(this.warehouseId);
|
| 12863 |
first = false;
|
14314 |
first = false;
|
| 12864 |
if (!first) sb.append(", ");
|
14315 |
if (!first) sb.append(", ");
|
| - |
|
14316 |
sb.append("sourceId:");
|
| - |
|
14317 |
sb.append(this.sourceId);
|
| - |
|
14318 |
first = false;
|
| - |
|
14319 |
if (!first) sb.append(", ");
|
| - |
|
14320 |
sb.append("orderId:");
|
| - |
|
14321 |
sb.append(this.orderId);
|
| - |
|
14322 |
first = false;
|
| - |
|
14323 |
if (!first) sb.append(", ");
|
| 12865 |
sb.append("quantity:");
|
14324 |
sb.append("quantity:");
|
| 12866 |
sb.append(this.quantity);
|
14325 |
sb.append(this.quantity);
|
| 12867 |
first = false;
|
14326 |
first = false;
|
| 12868 |
sb.append(")");
|
14327 |
sb.append(")");
|
| 12869 |
return sb.toString();
|
14328 |
return sb.toString();
|
| Line 25870... |
Line 27329... |
| 25870 |
}
|
27329 |
}
|
| 25871 |
}
|
27330 |
}
|
| 25872 |
|
27331 |
|
| 25873 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
27332 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 25874 |
try {
|
27333 |
try {
|
| - |
|
27334 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
27335 |
__isset_bit_vector = new BitSet(1);
|
| 25875 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
27336 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 25876 |
} catch (org.apache.thrift.TException te) {
|
27337 |
} catch (org.apache.thrift.TException te) {
|
| 25877 |
throw new java.io.IOException(te);
|
27338 |
throw new java.io.IOException(te);
|
| 25878 |
}
|
27339 |
}
|
| 25879 |
}
|
27340 |
}
|