| Line 90... |
Line 90... |
| 90 |
public List<Scan> getScan(long inventoryItemId) throws org.apache.thrift.TException;
|
90 |
public List<Scan> getScan(long inventoryItemId) throws org.apache.thrift.TException;
|
| 91 |
|
91 |
|
| 92 |
/**
|
92 |
/**
|
| 93 |
* Scan serialized items.
|
93 |
* Scan serialized items.
|
| 94 |
*
|
94 |
*
|
| 95 |
* @param inventoryItemId
|
95 |
* @param inventoryItem
|
| 96 |
* @param type
|
96 |
* @param type
|
| 97 |
* @param warehouseId
|
97 |
* @param warehouseId
|
| 98 |
*/
|
98 |
*/
|
| 99 |
public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
99 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 100 |
|
100 |
|
| 101 |
/**
|
101 |
/**
|
| 102 |
* Scan non-serialized items.
|
102 |
* Scan non-serialized items.
|
| 103 |
*
|
103 |
*
|
| 104 |
* @param inventoryItemId
|
104 |
* @param inventoryItemId
|
| Line 112... |
Line 112... |
| 112 |
* Scan serialized items linked with an order. Returns its price.
|
112 |
* Scan serialized items linked with an order. Returns its price.
|
| 113 |
*
|
113 |
*
|
| 114 |
* @param serialNumber
|
114 |
* @param serialNumber
|
| 115 |
* @param type
|
115 |
* @param type
|
| 116 |
* @param orderId
|
116 |
* @param orderId
|
| - |
|
117 |
* @param fulfilmentWarehouseId
|
| - |
|
118 |
* @param quantity
|
| 117 |
* @param warehouseId
|
119 |
* @param billingWarehouseId
|
| 118 |
*/
|
120 |
*/
|
| 119 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
121 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 120 |
|
122 |
|
| 121 |
/**
|
123 |
/**
|
| 122 |
* Scan non-serialized items linked with an order.
|
124 |
* Scan non-serialized items linked with an order.
|
| 123 |
*
|
125 |
*
|
| 124 |
* @param inventoryItemId
|
126 |
* @param inventoryItemId
|
| 125 |
* @param type
|
127 |
* @param type
|
| 126 |
* @param quantity
|
128 |
* @param quantity
|
| 127 |
* @param orderId
|
129 |
* @param orderId
|
| 128 |
* @param warehouseId
|
130 |
* @param fulfilmentWarehouseId
|
| 129 |
*/
|
131 |
*/
|
| 130 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
132 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 131 |
|
133 |
|
| 132 |
/**
|
134 |
/**
|
| 133 |
* Created item number to item id mapping
|
135 |
* Created item number to item id mapping
|
| 134 |
*
|
136 |
*
|
| 135 |
* @param itemNumber
|
137 |
* @param itemNumber
|
| Line 142... |
Line 144... |
| 142 |
*
|
144 |
*
|
| 143 |
* @param itemId
|
145 |
* @param itemId
|
| 144 |
*/
|
146 |
*/
|
| 145 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException;
|
147 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException;
|
| 146 |
|
148 |
|
| - |
|
149 |
/**
|
| - |
|
150 |
* Gets item ids for a given item number
|
| - |
|
151 |
*
|
| - |
|
152 |
* @param itemNumber
|
| - |
|
153 |
*/
|
| - |
|
154 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException;
|
| - |
|
155 |
|
| 147 |
}
|
156 |
}
|
| 148 |
|
157 |
|
| 149 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
158 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 150 |
|
159 |
|
| 151 |
public void createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSerializedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
160 |
public void createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSerializedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| Line 162... |
Line 171... |
| 162 |
|
171 |
|
| 163 |
public void getScanForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
172 |
public void getScanForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 164 |
|
173 |
|
| 165 |
public void getScan(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScan_call> resultHandler) throws org.apache.thrift.TException;
|
174 |
public void getScan(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScan_call> resultHandler) throws org.apache.thrift.TException;
|
| 166 |
|
175 |
|
| 167 |
public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
|
176 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 168 |
|
177 |
|
| 169 |
public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
|
178 |
public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
|
| 170 |
|
179 |
|
| 171 |
public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
180 |
public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 172 |
|
181 |
|
| 173 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
182 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 174 |
|
183 |
|
| 175 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
|
184 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
|
| 176 |
|
185 |
|
| 177 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
|
186 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
|
| 178 |
|
187 |
|
| - |
|
188 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
189 |
|
| 179 |
}
|
190 |
}
|
| 180 |
|
191 |
|
| 181 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
192 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 182 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
193 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| 183 |
public Factory() {}
|
194 |
public Factory() {}
|
| Line 401... |
Line 412... |
| 401 |
return result.success;
|
412 |
return result.success;
|
| 402 |
}
|
413 |
}
|
| 403 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScan failed: unknown result");
|
414 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScan failed: unknown result");
|
| 404 |
}
|
415 |
}
|
| 405 |
|
416 |
|
| 406 |
public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
417 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 407 |
{
|
418 |
{
|
| 408 |
send_scanSerializedItem(inventoryItemId, type, warehouseId);
|
419 |
send_scanSerializedItem(inventoryItem, type, warehouseId);
|
| 409 |
recv_scanSerializedItem();
|
420 |
recv_scanSerializedItem();
|
| 410 |
}
|
421 |
}
|
| 411 |
|
422 |
|
| 412 |
public void send_scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId) throws org.apache.thrift.TException
|
423 |
public void send_scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws org.apache.thrift.TException
|
| 413 |
{
|
424 |
{
|
| 414 |
scanSerializedItem_args args = new scanSerializedItem_args();
|
425 |
scanSerializedItem_args args = new scanSerializedItem_args();
|
| 415 |
args.setInventoryItemId(inventoryItemId);
|
426 |
args.setInventoryItem(inventoryItem);
|
| 416 |
args.setType(type);
|
427 |
args.setType(type);
|
| 417 |
args.setWarehouseId(warehouseId);
|
428 |
args.setWarehouseId(warehouseId);
|
| 418 |
sendBase("scanSerializedItem", args);
|
429 |
sendBase("scanSerializedItem", args);
|
| 419 |
}
|
430 |
}
|
| 420 |
|
431 |
|
| Line 452... |
Line 463... |
| 452 |
throw result.wex;
|
463 |
throw result.wex;
|
| 453 |
}
|
464 |
}
|
| 454 |
return;
|
465 |
return;
|
| 455 |
}
|
466 |
}
|
| 456 |
|
467 |
|
| 457 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
468 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 458 |
{
|
469 |
{
|
| 459 |
send_scanSerializedItemForOrder(serialNumber, type, orderId, warehouseId);
|
470 |
send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
|
| 460 |
return recv_scanSerializedItemForOrder();
|
471 |
return recv_scanSerializedItemForOrder();
|
| 461 |
}
|
472 |
}
|
| 462 |
|
473 |
|
| 463 |
public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId) throws org.apache.thrift.TException
|
474 |
public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 464 |
{
|
475 |
{
|
| 465 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
476 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 466 |
args.setSerialNumber(serialNumber);
|
477 |
args.setSerialNumber(serialNumber);
|
| 467 |
args.setType(type);
|
478 |
args.setType(type);
|
| 468 |
args.setOrderId(orderId);
|
479 |
args.setOrderId(orderId);
|
| - |
|
480 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| - |
|
481 |
args.setQuantity(quantity);
|
| 469 |
args.setWarehouseId(warehouseId);
|
482 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 470 |
sendBase("scanSerializedItemForOrder", args);
|
483 |
sendBase("scanSerializedItemForOrder", args);
|
| 471 |
}
|
484 |
}
|
| 472 |
|
485 |
|
| 473 |
public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
486 |
public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 474 |
{
|
487 |
{
|
| Line 481... |
Line 494... |
| 481 |
throw result.wex;
|
494 |
throw result.wex;
|
| 482 |
}
|
495 |
}
|
| 483 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
496 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
| 484 |
}
|
497 |
}
|
| 485 |
|
498 |
|
| 486 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
499 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 487 |
{
|
500 |
{
|
| 488 |
send_scanForOrder(inventoryItemId, type, quantity, orderId, warehouseId);
|
501 |
send_scanForOrder(inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId);
|
| 489 |
recv_scanForOrder();
|
502 |
recv_scanForOrder();
|
| 490 |
}
|
503 |
}
|
| 491 |
|
504 |
|
| 492 |
public void send_scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId) throws org.apache.thrift.TException
|
505 |
public void send_scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
|
| 493 |
{
|
506 |
{
|
| 494 |
scanForOrder_args args = new scanForOrder_args();
|
507 |
scanForOrder_args args = new scanForOrder_args();
|
| 495 |
args.setInventoryItemId(inventoryItemId);
|
508 |
args.setInventoryItemId(inventoryItemId);
|
| 496 |
args.setType(type);
|
509 |
args.setType(type);
|
| 497 |
args.setQuantity(quantity);
|
510 |
args.setQuantity(quantity);
|
| 498 |
args.setOrderId(orderId);
|
511 |
args.setOrderId(orderId);
|
| 499 |
args.setWarehouseId(warehouseId);
|
512 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 500 |
sendBase("scanForOrder", args);
|
513 |
sendBase("scanForOrder", args);
|
| 501 |
}
|
514 |
}
|
| 502 |
|
515 |
|
| 503 |
public void recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
516 |
public void recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 504 |
{
|
517 |
{
|
| Line 552... |
Line 565... |
| 552 |
return result.success;
|
565 |
return result.success;
|
| 553 |
}
|
566 |
}
|
| 554 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
567 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
| 555 |
}
|
568 |
}
|
| 556 |
|
569 |
|
| - |
|
570 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
|
| - |
|
571 |
{
|
| - |
|
572 |
send_getItemIds(itemNumber);
|
| - |
|
573 |
return recv_getItemIds();
|
| - |
|
574 |
}
|
| - |
|
575 |
|
| - |
|
576 |
public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
|
| - |
|
577 |
{
|
| - |
|
578 |
getItemIds_args args = new getItemIds_args();
|
| - |
|
579 |
args.setItemNumber(itemNumber);
|
| - |
|
580 |
sendBase("getItemIds", args);
|
| - |
|
581 |
}
|
| - |
|
582 |
|
| - |
|
583 |
public List<Long> recv_getItemIds() throws org.apache.thrift.TException
|
| - |
|
584 |
{
|
| - |
|
585 |
getItemIds_result result = new getItemIds_result();
|
| - |
|
586 |
receiveBase(result, "getItemIds");
|
| - |
|
587 |
if (result.isSetSuccess()) {
|
| - |
|
588 |
return result.success;
|
| - |
|
589 |
}
|
| - |
|
590 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
| - |
|
591 |
}
|
| - |
|
592 |
|
| 557 |
}
|
593 |
}
|
| 558 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
594 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
| 559 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
595 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
| 560 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
596 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
| 561 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
597 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
| Line 853... |
Line 889... |
| 853 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
889 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 854 |
return (new Client(prot)).recv_getScan();
|
890 |
return (new Client(prot)).recv_getScan();
|
| 855 |
}
|
891 |
}
|
| 856 |
}
|
892 |
}
|
| 857 |
|
893 |
|
| 858 |
public void scanSerializedItem(long inventoryItemId, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException {
|
894 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 859 |
checkReady();
|
895 |
checkReady();
|
| 860 |
scanSerializedItem_call method_call = new scanSerializedItem_call(inventoryItemId, type, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
896 |
scanSerializedItem_call method_call = new scanSerializedItem_call(inventoryItem, type, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 861 |
this.___currentMethod = method_call;
|
897 |
this.___currentMethod = method_call;
|
| 862 |
___manager.call(method_call);
|
898 |
___manager.call(method_call);
|
| 863 |
}
|
899 |
}
|
| 864 |
|
900 |
|
| 865 |
public static class scanSerializedItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
901 |
public static class scanSerializedItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 866 |
private long inventoryItemId;
|
902 |
private InventoryItem inventoryItem;
|
| 867 |
private ScanType type;
|
903 |
private ScanType type;
|
| 868 |
private long warehouseId;
|
904 |
private long warehouseId;
|
| 869 |
public scanSerializedItem_call(long inventoryItemId, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
905 |
public scanSerializedItem_call(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 870 |
super(client, protocolFactory, transport, resultHandler, false);
|
906 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 871 |
this.inventoryItemId = inventoryItemId;
|
907 |
this.inventoryItem = inventoryItem;
|
| 872 |
this.type = type;
|
908 |
this.type = type;
|
| 873 |
this.warehouseId = warehouseId;
|
909 |
this.warehouseId = warehouseId;
|
| 874 |
}
|
910 |
}
|
| 875 |
|
911 |
|
| 876 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
912 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 877 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
913 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 878 |
scanSerializedItem_args args = new scanSerializedItem_args();
|
914 |
scanSerializedItem_args args = new scanSerializedItem_args();
|
| 879 |
args.setInventoryItemId(inventoryItemId);
|
915 |
args.setInventoryItem(inventoryItem);
|
| 880 |
args.setType(type);
|
916 |
args.setType(type);
|
| 881 |
args.setWarehouseId(warehouseId);
|
917 |
args.setWarehouseId(warehouseId);
|
| 882 |
args.write(prot);
|
918 |
args.write(prot);
|
| 883 |
prot.writeMessageEnd();
|
919 |
prot.writeMessageEnd();
|
| 884 |
}
|
920 |
}
|
| Line 932... |
Line 968... |
| 932 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
968 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 933 |
(new Client(prot)).recv_scan();
|
969 |
(new Client(prot)).recv_scan();
|
| 934 |
}
|
970 |
}
|
| 935 |
}
|
971 |
}
|
| 936 |
|
972 |
|
| 937 |
public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException {
|
973 |
public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException {
|
| 938 |
checkReady();
|
974 |
checkReady();
|
| 939 |
scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
975 |
scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 940 |
this.___currentMethod = method_call;
|
976 |
this.___currentMethod = method_call;
|
| 941 |
___manager.call(method_call);
|
977 |
___manager.call(method_call);
|
| 942 |
}
|
978 |
}
|
| 943 |
|
979 |
|
| 944 |
public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
980 |
public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 945 |
private String serialNumber;
|
981 |
private String serialNumber;
|
| 946 |
private ScanType type;
|
982 |
private ScanType type;
|
| 947 |
private long orderId;
|
983 |
private long orderId;
|
| - |
|
984 |
private long fulfilmentWarehouseId;
|
| - |
|
985 |
private double quantity;
|
| 948 |
private long warehouseId;
|
986 |
private long billingWarehouseId;
|
| 949 |
public scanSerializedItemForOrder_call(String serialNumber, ScanType type, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
987 |
public scanSerializedItemForOrder_call(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 950 |
super(client, protocolFactory, transport, resultHandler, false);
|
988 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 951 |
this.serialNumber = serialNumber;
|
989 |
this.serialNumber = serialNumber;
|
| 952 |
this.type = type;
|
990 |
this.type = type;
|
| 953 |
this.orderId = orderId;
|
991 |
this.orderId = orderId;
|
| - |
|
992 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| - |
|
993 |
this.quantity = quantity;
|
| 954 |
this.warehouseId = warehouseId;
|
994 |
this.billingWarehouseId = billingWarehouseId;
|
| 955 |
}
|
995 |
}
|
| 956 |
|
996 |
|
| 957 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
997 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 958 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
998 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 959 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
999 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 960 |
args.setSerialNumber(serialNumber);
|
1000 |
args.setSerialNumber(serialNumber);
|
| 961 |
args.setType(type);
|
1001 |
args.setType(type);
|
| 962 |
args.setOrderId(orderId);
|
1002 |
args.setOrderId(orderId);
|
| - |
|
1003 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| - |
|
1004 |
args.setQuantity(quantity);
|
| 963 |
args.setWarehouseId(warehouseId);
|
1005 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 964 |
args.write(prot);
|
1006 |
args.write(prot);
|
| 965 |
prot.writeMessageEnd();
|
1007 |
prot.writeMessageEnd();
|
| 966 |
}
|
1008 |
}
|
| 967 |
|
1009 |
|
| 968 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
1010 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| Line 973... |
Line 1015... |
| 973 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
1015 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 974 |
return (new Client(prot)).recv_scanSerializedItemForOrder();
|
1016 |
return (new Client(prot)).recv_scanSerializedItemForOrder();
|
| 975 |
}
|
1017 |
}
|
| 976 |
}
|
1018 |
}
|
| 977 |
|
1019 |
|
| 978 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
|
1020 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
|
| 979 |
checkReady();
|
1021 |
checkReady();
|
| 980 |
scanForOrder_call method_call = new scanForOrder_call(inventoryItemId, type, quantity, orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
1022 |
scanForOrder_call method_call = new scanForOrder_call(inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 981 |
this.___currentMethod = method_call;
|
1023 |
this.___currentMethod = method_call;
|
| 982 |
___manager.call(method_call);
|
1024 |
___manager.call(method_call);
|
| 983 |
}
|
1025 |
}
|
| 984 |
|
1026 |
|
| 985 |
public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
1027 |
public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 986 |
private long inventoryItemId;
|
1028 |
private long inventoryItemId;
|
| 987 |
private ScanType type;
|
1029 |
private ScanType type;
|
| 988 |
private long quantity;
|
1030 |
private long quantity;
|
| 989 |
private long orderId;
|
1031 |
private long orderId;
|
| 990 |
private long warehouseId;
|
1032 |
private long fulfilmentWarehouseId;
|
| 991 |
public scanForOrder_call(long inventoryItemId, ScanType type, long quantity, long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
1033 |
public scanForOrder_call(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 992 |
super(client, protocolFactory, transport, resultHandler, false);
|
1034 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 993 |
this.inventoryItemId = inventoryItemId;
|
1035 |
this.inventoryItemId = inventoryItemId;
|
| 994 |
this.type = type;
|
1036 |
this.type = type;
|
| 995 |
this.quantity = quantity;
|
1037 |
this.quantity = quantity;
|
| 996 |
this.orderId = orderId;
|
1038 |
this.orderId = orderId;
|
| 997 |
this.warehouseId = warehouseId;
|
1039 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 998 |
}
|
1040 |
}
|
| 999 |
|
1041 |
|
| 1000 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
1042 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 1001 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
1043 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 1002 |
scanForOrder_args args = new scanForOrder_args();
|
1044 |
scanForOrder_args args = new scanForOrder_args();
|
| 1003 |
args.setInventoryItemId(inventoryItemId);
|
1045 |
args.setInventoryItemId(inventoryItemId);
|
| 1004 |
args.setType(type);
|
1046 |
args.setType(type);
|
| 1005 |
args.setQuantity(quantity);
|
1047 |
args.setQuantity(quantity);
|
| 1006 |
args.setOrderId(orderId);
|
1048 |
args.setOrderId(orderId);
|
| 1007 |
args.setWarehouseId(warehouseId);
|
1049 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 1008 |
args.write(prot);
|
1050 |
args.write(prot);
|
| 1009 |
prot.writeMessageEnd();
|
1051 |
prot.writeMessageEnd();
|
| 1010 |
}
|
1052 |
}
|
| 1011 |
|
1053 |
|
| 1012 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
1054 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| Line 1084... |
Line 1126... |
| 1084 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
1126 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 1085 |
return (new Client(prot)).recv_getItemNumbers();
|
1127 |
return (new Client(prot)).recv_getItemNumbers();
|
| 1086 |
}
|
1128 |
}
|
| 1087 |
}
|
1129 |
}
|
| 1088 |
|
1130 |
|
| - |
|
1131 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
1132 |
checkReady();
|
| - |
|
1133 |
getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
1134 |
this.___currentMethod = method_call;
|
| - |
|
1135 |
___manager.call(method_call);
|
| - |
|
1136 |
}
|
| - |
|
1137 |
|
| - |
|
1138 |
public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
1139 |
private String itemNumber;
|
| - |
|
1140 |
public getItemIds_call(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_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 {
|
| - |
|
1141 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
1142 |
this.itemNumber = itemNumber;
|
| - |
|
1143 |
}
|
| - |
|
1144 |
|
| - |
|
1145 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
1146 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
1147 |
getItemIds_args args = new getItemIds_args();
|
| - |
|
1148 |
args.setItemNumber(itemNumber);
|
| - |
|
1149 |
args.write(prot);
|
| - |
|
1150 |
prot.writeMessageEnd();
|
| - |
|
1151 |
}
|
| - |
|
1152 |
|
| - |
|
1153 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
| - |
|
1154 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
1155 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
1156 |
}
|
| - |
|
1157 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
1158 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
1159 |
return (new Client(prot)).recv_getItemIds();
|
| - |
|
1160 |
}
|
| - |
|
1161 |
}
|
| - |
|
1162 |
|
| 1089 |
}
|
1163 |
}
|
| 1090 |
|
1164 |
|
| 1091 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
1165 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
| 1092 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
1166 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
| 1093 |
public Processor(I iface) {
|
1167 |
public Processor(I iface) {
|
| Line 1111... |
Line 1185... |
| 1111 |
processMap.put("scan", new scan());
|
1185 |
processMap.put("scan", new scan());
|
| 1112 |
processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
|
1186 |
processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
|
| 1113 |
processMap.put("scanForOrder", new scanForOrder());
|
1187 |
processMap.put("scanForOrder", new scanForOrder());
|
| 1114 |
processMap.put("createItemNumberMapping", new createItemNumberMapping());
|
1188 |
processMap.put("createItemNumberMapping", new createItemNumberMapping());
|
| 1115 |
processMap.put("getItemNumbers", new getItemNumbers());
|
1189 |
processMap.put("getItemNumbers", new getItemNumbers());
|
| - |
|
1190 |
processMap.put("getItemIds", new getItemIds());
|
| 1116 |
return processMap;
|
1191 |
return processMap;
|
| 1117 |
}
|
1192 |
}
|
| 1118 |
|
1193 |
|
| 1119 |
private static class createSerializedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSerializedInventoryItem_args> {
|
1194 |
private static class createSerializedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSerializedInventoryItem_args> {
|
| 1120 |
public createSerializedInventoryItem() {
|
1195 |
public createSerializedInventoryItem() {
|
| Line 1270... |
Line 1345... |
| 1270 |
}
|
1345 |
}
|
| 1271 |
|
1346 |
|
| 1272 |
protected scanSerializedItem_result getResult(I iface, scanSerializedItem_args args) throws org.apache.thrift.TException {
|
1347 |
protected scanSerializedItem_result getResult(I iface, scanSerializedItem_args args) throws org.apache.thrift.TException {
|
| 1273 |
scanSerializedItem_result result = new scanSerializedItem_result();
|
1348 |
scanSerializedItem_result result = new scanSerializedItem_result();
|
| 1274 |
try {
|
1349 |
try {
|
| 1275 |
iface.scanSerializedItem(args.inventoryItemId, args.type, args.warehouseId);
|
1350 |
iface.scanSerializedItem(args.inventoryItem, args.type, args.warehouseId);
|
| 1276 |
} catch (WarehouseServiceException wex) {
|
1351 |
} catch (WarehouseServiceException wex) {
|
| 1277 |
result.wex = wex;
|
1352 |
result.wex = wex;
|
| 1278 |
}
|
1353 |
}
|
| 1279 |
return result;
|
1354 |
return result;
|
| 1280 |
}
|
1355 |
}
|
| Line 1310... |
Line 1385... |
| 1310 |
}
|
1385 |
}
|
| 1311 |
|
1386 |
|
| 1312 |
protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
|
1387 |
protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
|
| 1313 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
1388 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
| 1314 |
try {
|
1389 |
try {
|
| 1315 |
result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.warehouseId);
|
1390 |
result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
|
| 1316 |
} catch (WarehouseServiceException wex) {
|
1391 |
} catch (WarehouseServiceException wex) {
|
| 1317 |
result.wex = wex;
|
1392 |
result.wex = wex;
|
| 1318 |
}
|
1393 |
}
|
| 1319 |
return result;
|
1394 |
return result;
|
| 1320 |
}
|
1395 |
}
|
| Line 1330... |
Line 1405... |
| 1330 |
}
|
1405 |
}
|
| 1331 |
|
1406 |
|
| 1332 |
protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
|
1407 |
protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
|
| 1333 |
scanForOrder_result result = new scanForOrder_result();
|
1408 |
scanForOrder_result result = new scanForOrder_result();
|
| 1334 |
try {
|
1409 |
try {
|
| 1335 |
iface.scanForOrder(args.inventoryItemId, args.type, args.quantity, args.orderId, args.warehouseId);
|
1410 |
iface.scanForOrder(args.inventoryItemId, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId);
|
| 1336 |
} catch (WarehouseServiceException wex) {
|
1411 |
} catch (WarehouseServiceException wex) {
|
| 1337 |
result.wex = wex;
|
1412 |
result.wex = wex;
|
| 1338 |
}
|
1413 |
}
|
| 1339 |
return result;
|
1414 |
return result;
|
| 1340 |
}
|
1415 |
}
|
| Line 1370... |
Line 1445... |
| 1370 |
result.success = iface.getItemNumbers(args.itemId);
|
1445 |
result.success = iface.getItemNumbers(args.itemId);
|
| 1371 |
return result;
|
1446 |
return result;
|
| 1372 |
}
|
1447 |
}
|
| 1373 |
}
|
1448 |
}
|
| 1374 |
|
1449 |
|
| - |
|
1450 |
private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
|
| - |
|
1451 |
public getItemIds() {
|
| - |
|
1452 |
super("getItemIds");
|
| - |
|
1453 |
}
|
| - |
|
1454 |
|
| - |
|
1455 |
protected getItemIds_args getEmptyArgsInstance() {
|
| - |
|
1456 |
return new getItemIds_args();
|
| - |
|
1457 |
}
|
| - |
|
1458 |
|
| - |
|
1459 |
protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
|
| - |
|
1460 |
getItemIds_result result = new getItemIds_result();
|
| - |
|
1461 |
result.success = iface.getItemIds(args.itemNumber);
|
| - |
|
1462 |
return result;
|
| - |
|
1463 |
}
|
| - |
|
1464 |
}
|
| - |
|
1465 |
|
| 1375 |
}
|
1466 |
}
|
| 1376 |
|
1467 |
|
| 1377 |
public static class createSerializedInventoryItem_args implements org.apache.thrift.TBase<createSerializedInventoryItem_args, createSerializedInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
1468 |
public static class createSerializedInventoryItem_args implements org.apache.thrift.TBase<createSerializedInventoryItem_args, createSerializedInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
| 1378 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_args");
|
1469 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_args");
|
| 1379 |
|
1470 |
|
| Line 7346... |
Line 7437... |
| 7346 |
}
|
7437 |
}
|
| 7347 |
|
7438 |
|
| 7348 |
public static class scanSerializedItem_args implements org.apache.thrift.TBase<scanSerializedItem_args, scanSerializedItem_args._Fields>, java.io.Serializable, Cloneable {
|
7439 |
public static class scanSerializedItem_args implements org.apache.thrift.TBase<scanSerializedItem_args, scanSerializedItem_args._Fields>, java.io.Serializable, Cloneable {
|
| 7349 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_args");
|
7440 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_args");
|
| 7350 |
|
7441 |
|
| 7351 |
private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
7442 |
private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 7352 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
|
7443 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
|
| 7353 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
7444 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 7354 |
|
7445 |
|
| 7355 |
private long inventoryItemId; // required
|
7446 |
private InventoryItem inventoryItem; // required
|
| 7356 |
private ScanType type; // required
|
7447 |
private ScanType type; // required
|
| 7357 |
private long warehouseId; // required
|
7448 |
private long warehouseId; // required
|
| 7358 |
|
7449 |
|
| 7359 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
7450 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 7360 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
7451 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 7361 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
|
7452 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 7362 |
/**
|
7453 |
/**
|
| 7363 |
*
|
7454 |
*
|
| 7364 |
* @see ScanType
|
7455 |
* @see ScanType
|
| 7365 |
*/
|
7456 |
*/
|
| 7366 |
TYPE((short)2, "type"),
|
7457 |
TYPE((short)2, "type"),
|
| Line 7377... |
Line 7468... |
| 7377 |
/**
|
7468 |
/**
|
| 7378 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
7469 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| 7379 |
*/
|
7470 |
*/
|
| 7380 |
public static _Fields findByThriftId(int fieldId) {
|
7471 |
public static _Fields findByThriftId(int fieldId) {
|
| 7381 |
switch(fieldId) {
|
7472 |
switch(fieldId) {
|
| 7382 |
case 1: // INVENTORY_ITEM_ID
|
7473 |
case 1: // INVENTORY_ITEM
|
| 7383 |
return INVENTORY_ITEM_ID;
|
7474 |
return INVENTORY_ITEM;
|
| 7384 |
case 2: // TYPE
|
7475 |
case 2: // TYPE
|
| 7385 |
return TYPE;
|
7476 |
return TYPE;
|
| 7386 |
case 3: // WAREHOUSE_ID
|
7477 |
case 3: // WAREHOUSE_ID
|
| 7387 |
return WAREHOUSE_ID;
|
7478 |
return WAREHOUSE_ID;
|
| 7388 |
default:
|
7479 |
default:
|
| Line 7423... |
Line 7514... |
| 7423 |
return _fieldName;
|
7514 |
return _fieldName;
|
| 7424 |
}
|
7515 |
}
|
| 7425 |
}
|
7516 |
}
|
| 7426 |
|
7517 |
|
| 7427 |
// isset id assignments
|
7518 |
// isset id assignments
|
| 7428 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
- |
|
| 7429 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
7519 |
private static final int __WAREHOUSEID_ISSET_ID = 0;
|
| 7430 |
private BitSet __isset_bit_vector = new BitSet(2);
|
7520 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 7431 |
|
7521 |
|
| 7432 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
7522 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 7433 |
static {
|
7523 |
static {
|
| 7434 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
7524 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 7435 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
7525 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 7436 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
7526 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 7437 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
7527 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 7438 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
7528 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 7439 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
7529 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 7440 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
7530 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 7441 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
7531 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| Line 7444... |
Line 7534... |
| 7444 |
|
7534 |
|
| 7445 |
public scanSerializedItem_args() {
|
7535 |
public scanSerializedItem_args() {
|
| 7446 |
}
|
7536 |
}
|
| 7447 |
|
7537 |
|
| 7448 |
public scanSerializedItem_args(
|
7538 |
public scanSerializedItem_args(
|
| 7449 |
long inventoryItemId,
|
7539 |
InventoryItem inventoryItem,
|
| 7450 |
ScanType type,
|
7540 |
ScanType type,
|
| 7451 |
long warehouseId)
|
7541 |
long warehouseId)
|
| 7452 |
{
|
7542 |
{
|
| 7453 |
this();
|
7543 |
this();
|
| 7454 |
this.inventoryItemId = inventoryItemId;
|
7544 |
this.inventoryItem = inventoryItem;
|
| 7455 |
setInventoryItemIdIsSet(true);
|
- |
|
| 7456 |
this.type = type;
|
7545 |
this.type = type;
|
| 7457 |
this.warehouseId = warehouseId;
|
7546 |
this.warehouseId = warehouseId;
|
| 7458 |
setWarehouseIdIsSet(true);
|
7547 |
setWarehouseIdIsSet(true);
|
| 7459 |
}
|
7548 |
}
|
| 7460 |
|
7549 |
|
| Line 7462... |
Line 7551... |
| 7462 |
* Performs a deep copy on <i>other</i>.
|
7551 |
* Performs a deep copy on <i>other</i>.
|
| 7463 |
*/
|
7552 |
*/
|
| 7464 |
public scanSerializedItem_args(scanSerializedItem_args other) {
|
7553 |
public scanSerializedItem_args(scanSerializedItem_args other) {
|
| 7465 |
__isset_bit_vector.clear();
|
7554 |
__isset_bit_vector.clear();
|
| 7466 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
7555 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
7556 |
if (other.isSetInventoryItem()) {
|
| 7467 |
this.inventoryItemId = other.inventoryItemId;
|
7557 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
| - |
|
7558 |
}
|
| 7468 |
if (other.isSetType()) {
|
7559 |
if (other.isSetType()) {
|
| 7469 |
this.type = other.type;
|
7560 |
this.type = other.type;
|
| 7470 |
}
|
7561 |
}
|
| 7471 |
this.warehouseId = other.warehouseId;
|
7562 |
this.warehouseId = other.warehouseId;
|
| 7472 |
}
|
7563 |
}
|
| Line 7475... |
Line 7566... |
| 7475 |
return new scanSerializedItem_args(this);
|
7566 |
return new scanSerializedItem_args(this);
|
| 7476 |
}
|
7567 |
}
|
| 7477 |
|
7568 |
|
| 7478 |
@Override
|
7569 |
@Override
|
| 7479 |
public void clear() {
|
7570 |
public void clear() {
|
| 7480 |
setInventoryItemIdIsSet(false);
|
- |
|
| 7481 |
this.inventoryItemId = 0;
|
7571 |
this.inventoryItem = null;
|
| 7482 |
this.type = null;
|
7572 |
this.type = null;
|
| 7483 |
setWarehouseIdIsSet(false);
|
7573 |
setWarehouseIdIsSet(false);
|
| 7484 |
this.warehouseId = 0;
|
7574 |
this.warehouseId = 0;
|
| 7485 |
}
|
7575 |
}
|
| 7486 |
|
7576 |
|
| 7487 |
public long getInventoryItemId() {
|
7577 |
public InventoryItem getInventoryItem() {
|
| 7488 |
return this.inventoryItemId;
|
7578 |
return this.inventoryItem;
|
| 7489 |
}
|
7579 |
}
|
| 7490 |
|
7580 |
|
| 7491 |
public void setInventoryItemId(long inventoryItemId) {
|
7581 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
| 7492 |
this.inventoryItemId = inventoryItemId;
|
7582 |
this.inventoryItem = inventoryItem;
|
| 7493 |
setInventoryItemIdIsSet(true);
|
- |
|
| 7494 |
}
|
7583 |
}
|
| 7495 |
|
7584 |
|
| 7496 |
public void unsetInventoryItemId() {
|
7585 |
public void unsetInventoryItem() {
|
| 7497 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
7586 |
this.inventoryItem = null;
|
| 7498 |
}
|
7587 |
}
|
| 7499 |
|
7588 |
|
| 7500 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
7589 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
| 7501 |
public boolean isSetInventoryItemId() {
|
7590 |
public boolean isSetInventoryItem() {
|
| 7502 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
7591 |
return this.inventoryItem != null;
|
| 7503 |
}
|
7592 |
}
|
| 7504 |
|
7593 |
|
| 7505 |
public void setInventoryItemIdIsSet(boolean value) {
|
7594 |
public void setInventoryItemIsSet(boolean value) {
|
| - |
|
7595 |
if (!value) {
|
| 7506 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
7596 |
this.inventoryItem = null;
|
| - |
|
7597 |
}
|
| 7507 |
}
|
7598 |
}
|
| 7508 |
|
7599 |
|
| 7509 |
/**
|
7600 |
/**
|
| 7510 |
*
|
7601 |
*
|
| 7511 |
* @see ScanType
|
7602 |
* @see ScanType
|
| Line 7559... |
Line 7650... |
| 7559 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
7650 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
| 7560 |
}
|
7651 |
}
|
| 7561 |
|
7652 |
|
| 7562 |
public void setFieldValue(_Fields field, Object value) {
|
7653 |
public void setFieldValue(_Fields field, Object value) {
|
| 7563 |
switch (field) {
|
7654 |
switch (field) {
|
| 7564 |
case INVENTORY_ITEM_ID:
|
7655 |
case INVENTORY_ITEM:
|
| 7565 |
if (value == null) {
|
7656 |
if (value == null) {
|
| 7566 |
unsetInventoryItemId();
|
7657 |
unsetInventoryItem();
|
| 7567 |
} else {
|
7658 |
} else {
|
| 7568 |
setInventoryItemId((Long)value);
|
7659 |
setInventoryItem((InventoryItem)value);
|
| 7569 |
}
|
7660 |
}
|
| 7570 |
break;
|
7661 |
break;
|
| 7571 |
|
7662 |
|
| 7572 |
case TYPE:
|
7663 |
case TYPE:
|
| 7573 |
if (value == null) {
|
7664 |
if (value == null) {
|
| Line 7588... |
Line 7679... |
| 7588 |
}
|
7679 |
}
|
| 7589 |
}
|
7680 |
}
|
| 7590 |
|
7681 |
|
| 7591 |
public Object getFieldValue(_Fields field) {
|
7682 |
public Object getFieldValue(_Fields field) {
|
| 7592 |
switch (field) {
|
7683 |
switch (field) {
|
| 7593 |
case INVENTORY_ITEM_ID:
|
7684 |
case INVENTORY_ITEM:
|
| 7594 |
return Long.valueOf(getInventoryItemId());
|
7685 |
return getInventoryItem();
|
| 7595 |
|
7686 |
|
| 7596 |
case TYPE:
|
7687 |
case TYPE:
|
| 7597 |
return getType();
|
7688 |
return getType();
|
| 7598 |
|
7689 |
|
| 7599 |
case WAREHOUSE_ID:
|
7690 |
case WAREHOUSE_ID:
|
| Line 7608... |
Line 7699... |
| 7608 |
if (field == null) {
|
7699 |
if (field == null) {
|
| 7609 |
throw new IllegalArgumentException();
|
7700 |
throw new IllegalArgumentException();
|
| 7610 |
}
|
7701 |
}
|
| 7611 |
|
7702 |
|
| 7612 |
switch (field) {
|
7703 |
switch (field) {
|
| 7613 |
case INVENTORY_ITEM_ID:
|
7704 |
case INVENTORY_ITEM:
|
| 7614 |
return isSetInventoryItemId();
|
7705 |
return isSetInventoryItem();
|
| 7615 |
case TYPE:
|
7706 |
case TYPE:
|
| 7616 |
return isSetType();
|
7707 |
return isSetType();
|
| 7617 |
case WAREHOUSE_ID:
|
7708 |
case WAREHOUSE_ID:
|
| 7618 |
return isSetWarehouseId();
|
7709 |
return isSetWarehouseId();
|
| 7619 |
}
|
7710 |
}
|
| Line 7631... |
Line 7722... |
| 7631 |
|
7722 |
|
| 7632 |
public boolean equals(scanSerializedItem_args that) {
|
7723 |
public boolean equals(scanSerializedItem_args that) {
|
| 7633 |
if (that == null)
|
7724 |
if (that == null)
|
| 7634 |
return false;
|
7725 |
return false;
|
| 7635 |
|
7726 |
|
| 7636 |
boolean this_present_inventoryItemId = true;
|
7727 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
| 7637 |
boolean that_present_inventoryItemId = true;
|
7728 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
| 7638 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
7729 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
| 7639 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
7730 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 7640 |
return false;
|
7731 |
return false;
|
| 7641 |
if (this.inventoryItemId != that.inventoryItemId)
|
7732 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 7642 |
return false;
|
7733 |
return false;
|
| 7643 |
}
|
7734 |
}
|
| 7644 |
|
7735 |
|
| 7645 |
boolean this_present_type = true && this.isSetType();
|
7736 |
boolean this_present_type = true && this.isSetType();
|
| 7646 |
boolean that_present_type = true && that.isSetType();
|
7737 |
boolean that_present_type = true && that.isSetType();
|
| Line 7674... |
Line 7765... |
| 7674 |
}
|
7765 |
}
|
| 7675 |
|
7766 |
|
| 7676 |
int lastComparison = 0;
|
7767 |
int lastComparison = 0;
|
| 7677 |
scanSerializedItem_args typedOther = (scanSerializedItem_args)other;
|
7768 |
scanSerializedItem_args typedOther = (scanSerializedItem_args)other;
|
| 7678 |
|
7769 |
|
| 7679 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
7770 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 7680 |
if (lastComparison != 0) {
|
7771 |
if (lastComparison != 0) {
|
| 7681 |
return lastComparison;
|
7772 |
return lastComparison;
|
| 7682 |
}
|
7773 |
}
|
| 7683 |
if (isSetInventoryItemId()) {
|
7774 |
if (isSetInventoryItem()) {
|
| 7684 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
7775 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 7685 |
if (lastComparison != 0) {
|
7776 |
if (lastComparison != 0) {
|
| 7686 |
return lastComparison;
|
7777 |
return lastComparison;
|
| 7687 |
}
|
7778 |
}
|
| 7688 |
}
|
7779 |
}
|
| 7689 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
7780 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| Line 7721... |
Line 7812... |
| 7721 |
field = iprot.readFieldBegin();
|
7812 |
field = iprot.readFieldBegin();
|
| 7722 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
7813 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 7723 |
break;
|
7814 |
break;
|
| 7724 |
}
|
7815 |
}
|
| 7725 |
switch (field.id) {
|
7816 |
switch (field.id) {
|
| 7726 |
case 1: // INVENTORY_ITEM_ID
|
7817 |
case 1: // INVENTORY_ITEM
|
| 7727 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
7818 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| 7728 |
this.inventoryItemId = iprot.readI64();
|
7819 |
this.inventoryItem = new InventoryItem();
|
| 7729 |
setInventoryItemIdIsSet(true);
|
7820 |
this.inventoryItem.read(iprot);
|
| 7730 |
} else {
|
7821 |
} else {
|
| 7731 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
7822 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 7732 |
}
|
7823 |
}
|
| 7733 |
break;
|
7824 |
break;
|
| 7734 |
case 2: // TYPE
|
7825 |
case 2: // TYPE
|
| Line 7757... |
Line 7848... |
| 7757 |
|
7848 |
|
| 7758 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
7849 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 7759 |
validate();
|
7850 |
validate();
|
| 7760 |
|
7851 |
|
| 7761 |
oprot.writeStructBegin(STRUCT_DESC);
|
7852 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
7853 |
if (this.inventoryItem != null) {
|
| 7762 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
7854 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
| 7763 |
oprot.writeI64(this.inventoryItemId);
|
7855 |
this.inventoryItem.write(oprot);
|
| 7764 |
oprot.writeFieldEnd();
|
7856 |
oprot.writeFieldEnd();
|
| - |
|
7857 |
}
|
| 7765 |
if (this.type != null) {
|
7858 |
if (this.type != null) {
|
| 7766 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
7859 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
| 7767 |
oprot.writeI32(this.type.getValue());
|
7860 |
oprot.writeI32(this.type.getValue());
|
| 7768 |
oprot.writeFieldEnd();
|
7861 |
oprot.writeFieldEnd();
|
| 7769 |
}
|
7862 |
}
|
| Line 7777... |
Line 7870... |
| 7777 |
@Override
|
7870 |
@Override
|
| 7778 |
public String toString() {
|
7871 |
public String toString() {
|
| 7779 |
StringBuilder sb = new StringBuilder("scanSerializedItem_args(");
|
7872 |
StringBuilder sb = new StringBuilder("scanSerializedItem_args(");
|
| 7780 |
boolean first = true;
|
7873 |
boolean first = true;
|
| 7781 |
|
7874 |
|
| 7782 |
sb.append("inventoryItemId:");
|
7875 |
sb.append("inventoryItem:");
|
| - |
|
7876 |
if (this.inventoryItem == null) {
|
| - |
|
7877 |
sb.append("null");
|
| - |
|
7878 |
} else {
|
| 7783 |
sb.append(this.inventoryItemId);
|
7879 |
sb.append(this.inventoryItem);
|
| - |
|
7880 |
}
|
| 7784 |
first = false;
|
7881 |
first = false;
|
| 7785 |
if (!first) sb.append(", ");
|
7882 |
if (!first) sb.append(", ");
|
| 7786 |
sb.append("type:");
|
7883 |
sb.append("type:");
|
| 7787 |
if (this.type == null) {
|
7884 |
if (this.type == null) {
|
| 7788 |
sb.append("null");
|
7885 |
sb.append("null");
|
| Line 8974... |
Line 9071... |
| 8974 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
|
9071 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
|
| 8975 |
|
9072 |
|
| 8976 |
private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
|
9073 |
private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
|
| 8977 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
|
9074 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
|
| 8978 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)3);
|
9075 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| - |
|
9076 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
|
| - |
|
9077 |
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);
|
| 8979 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
|
9078 |
private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)6);
|
| 8980 |
|
9079 |
|
| 8981 |
private String serialNumber; // required
|
9080 |
private String serialNumber; // required
|
| 8982 |
private ScanType type; // required
|
9081 |
private ScanType type; // required
|
| 8983 |
private long orderId; // required
|
9082 |
private long orderId; // required
|
| - |
|
9083 |
private long fulfilmentWarehouseId; // required
|
| - |
|
9084 |
private double quantity; // required
|
| 8984 |
private long warehouseId; // required
|
9085 |
private long billingWarehouseId; // required
|
| 8985 |
|
9086 |
|
| 8986 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
9087 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 8987 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
9088 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 8988 |
SERIAL_NUMBER((short)1, "serialNumber"),
|
9089 |
SERIAL_NUMBER((short)1, "serialNumber"),
|
| 8989 |
/**
|
9090 |
/**
|
| 8990 |
*
|
9091 |
*
|
| 8991 |
* @see ScanType
|
9092 |
* @see ScanType
|
| 8992 |
*/
|
9093 |
*/
|
| 8993 |
TYPE((short)2, "type"),
|
9094 |
TYPE((short)2, "type"),
|
| 8994 |
ORDER_ID((short)3, "orderId"),
|
9095 |
ORDER_ID((short)3, "orderId"),
|
| - |
|
9096 |
FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
|
| - |
|
9097 |
QUANTITY((short)5, "quantity"),
|
| 8995 |
WAREHOUSE_ID((short)4, "warehouseId");
|
9098 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 8996 |
|
9099 |
|
| 8997 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
9100 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 8998 |
|
9101 |
|
| 8999 |
static {
|
9102 |
static {
|
| 9000 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
9103 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 9011... |
Line 9114... |
| 9011 |
return SERIAL_NUMBER;
|
9114 |
return SERIAL_NUMBER;
|
| 9012 |
case 2: // TYPE
|
9115 |
case 2: // TYPE
|
| 9013 |
return TYPE;
|
9116 |
return TYPE;
|
| 9014 |
case 3: // ORDER_ID
|
9117 |
case 3: // ORDER_ID
|
| 9015 |
return ORDER_ID;
|
9118 |
return ORDER_ID;
|
| - |
|
9119 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| - |
|
9120 |
return FULFILMENT_WAREHOUSE_ID;
|
| - |
|
9121 |
case 5: // QUANTITY
|
| - |
|
9122 |
return QUANTITY;
|
| 9016 |
case 4: // WAREHOUSE_ID
|
9123 |
case 6: // BILLING_WAREHOUSE_ID
|
| 9017 |
return WAREHOUSE_ID;
|
9124 |
return BILLING_WAREHOUSE_ID;
|
| 9018 |
default:
|
9125 |
default:
|
| 9019 |
return null;
|
9126 |
return null;
|
| 9020 |
}
|
9127 |
}
|
| 9021 |
}
|
9128 |
}
|
| 9022 |
|
9129 |
|
| Line 9054... |
Line 9161... |
| 9054 |
}
|
9161 |
}
|
| 9055 |
}
|
9162 |
}
|
| 9056 |
|
9163 |
|
| 9057 |
// isset id assignments
|
9164 |
// isset id assignments
|
| 9058 |
private static final int __ORDERID_ISSET_ID = 0;
|
9165 |
private static final int __ORDERID_ISSET_ID = 0;
|
| - |
|
9166 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
| - |
|
9167 |
private static final int __QUANTITY_ISSET_ID = 2;
|
| 9059 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
9168 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
| 9060 |
private BitSet __isset_bit_vector = new BitSet(2);
|
9169 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 9061 |
|
9170 |
|
| 9062 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
9171 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 9063 |
static {
|
9172 |
static {
|
| 9064 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
9173 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 9065 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
9174 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 9066 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
9175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 9067 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
9176 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 9068 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
9177 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 9069 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
9178 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 9070 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
9179 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
9180 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
9181 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
9182 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
9183 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 9071 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
9184 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 9072 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
9185 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 9073 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
9186 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 9074 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
|
9187 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
|
| 9075 |
}
|
9188 |
}
|
| 9076 |
|
9189 |
|
| Line 9079... |
Line 9192... |
| 9079 |
|
9192 |
|
| 9080 |
public scanSerializedItemForOrder_args(
|
9193 |
public scanSerializedItemForOrder_args(
|
| 9081 |
String serialNumber,
|
9194 |
String serialNumber,
|
| 9082 |
ScanType type,
|
9195 |
ScanType type,
|
| 9083 |
long orderId,
|
9196 |
long orderId,
|
| - |
|
9197 |
long fulfilmentWarehouseId,
|
| - |
|
9198 |
double quantity,
|
| 9084 |
long warehouseId)
|
9199 |
long billingWarehouseId)
|
| 9085 |
{
|
9200 |
{
|
| 9086 |
this();
|
9201 |
this();
|
| 9087 |
this.serialNumber = serialNumber;
|
9202 |
this.serialNumber = serialNumber;
|
| 9088 |
this.type = type;
|
9203 |
this.type = type;
|
| 9089 |
this.orderId = orderId;
|
9204 |
this.orderId = orderId;
|
| 9090 |
setOrderIdIsSet(true);
|
9205 |
setOrderIdIsSet(true);
|
| - |
|
9206 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| - |
|
9207 |
setFulfilmentWarehouseIdIsSet(true);
|
| - |
|
9208 |
this.quantity = quantity;
|
| - |
|
9209 |
setQuantityIsSet(true);
|
| 9091 |
this.warehouseId = warehouseId;
|
9210 |
this.billingWarehouseId = billingWarehouseId;
|
| 9092 |
setWarehouseIdIsSet(true);
|
9211 |
setBillingWarehouseIdIsSet(true);
|
| 9093 |
}
|
9212 |
}
|
| 9094 |
|
9213 |
|
| 9095 |
/**
|
9214 |
/**
|
| 9096 |
* Performs a deep copy on <i>other</i>.
|
9215 |
* Performs a deep copy on <i>other</i>.
|
| 9097 |
*/
|
9216 |
*/
|
| Line 9103... |
Line 9222... |
| 9103 |
}
|
9222 |
}
|
| 9104 |
if (other.isSetType()) {
|
9223 |
if (other.isSetType()) {
|
| 9105 |
this.type = other.type;
|
9224 |
this.type = other.type;
|
| 9106 |
}
|
9225 |
}
|
| 9107 |
this.orderId = other.orderId;
|
9226 |
this.orderId = other.orderId;
|
| - |
|
9227 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| - |
|
9228 |
this.quantity = other.quantity;
|
| 9108 |
this.warehouseId = other.warehouseId;
|
9229 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 9109 |
}
|
9230 |
}
|
| 9110 |
|
9231 |
|
| 9111 |
public scanSerializedItemForOrder_args deepCopy() {
|
9232 |
public scanSerializedItemForOrder_args deepCopy() {
|
| 9112 |
return new scanSerializedItemForOrder_args(this);
|
9233 |
return new scanSerializedItemForOrder_args(this);
|
| 9113 |
}
|
9234 |
}
|
| Line 9116... |
Line 9237... |
| 9116 |
public void clear() {
|
9237 |
public void clear() {
|
| 9117 |
this.serialNumber = null;
|
9238 |
this.serialNumber = null;
|
| 9118 |
this.type = null;
|
9239 |
this.type = null;
|
| 9119 |
setOrderIdIsSet(false);
|
9240 |
setOrderIdIsSet(false);
|
| 9120 |
this.orderId = 0;
|
9241 |
this.orderId = 0;
|
| - |
|
9242 |
setFulfilmentWarehouseIdIsSet(false);
|
| - |
|
9243 |
this.fulfilmentWarehouseId = 0;
|
| - |
|
9244 |
setQuantityIsSet(false);
|
| - |
|
9245 |
this.quantity = 0.0;
|
| 9121 |
setWarehouseIdIsSet(false);
|
9246 |
setBillingWarehouseIdIsSet(false);
|
| 9122 |
this.warehouseId = 0;
|
9247 |
this.billingWarehouseId = 0;
|
| 9123 |
}
|
9248 |
}
|
| 9124 |
|
9249 |
|
| 9125 |
public String getSerialNumber() {
|
9250 |
public String getSerialNumber() {
|
| 9126 |
return this.serialNumber;
|
9251 |
return this.serialNumber;
|
| 9127 |
}
|
9252 |
}
|
| Line 9196... |
Line 9321... |
| 9196 |
|
9321 |
|
| 9197 |
public void setOrderIdIsSet(boolean value) {
|
9322 |
public void setOrderIdIsSet(boolean value) {
|
| 9198 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
9323 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 9199 |
}
|
9324 |
}
|
| 9200 |
|
9325 |
|
| 9201 |
public long getWarehouseId() {
|
9326 |
public long getFulfilmentWarehouseId() {
|
| 9202 |
return this.warehouseId;
|
9327 |
return this.fulfilmentWarehouseId;
|
| 9203 |
}
|
9328 |
}
|
| 9204 |
|
9329 |
|
| 9205 |
public void setWarehouseId(long warehouseId) {
|
9330 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
| 9206 |
this.warehouseId = warehouseId;
|
9331 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 9207 |
setWarehouseIdIsSet(true);
|
9332 |
setFulfilmentWarehouseIdIsSet(true);
|
| 9208 |
}
|
9333 |
}
|
| 9209 |
|
9334 |
|
| 9210 |
public void unsetWarehouseId() {
|
9335 |
public void unsetFulfilmentWarehouseId() {
|
| 9211 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
9336 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 9212 |
}
|
9337 |
}
|
| 9213 |
|
9338 |
|
| 9214 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
9339 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
| 9215 |
public boolean isSetWarehouseId() {
|
9340 |
public boolean isSetFulfilmentWarehouseId() {
|
| 9216 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
9341 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 9217 |
}
|
9342 |
}
|
| 9218 |
|
9343 |
|
| - |
|
9344 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
| - |
|
9345 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| - |
|
9346 |
}
|
| - |
|
9347 |
|
| - |
|
9348 |
public double getQuantity() {
|
| - |
|
9349 |
return this.quantity;
|
| - |
|
9350 |
}
|
| - |
|
9351 |
|
| - |
|
9352 |
public void setQuantity(double quantity) {
|
| - |
|
9353 |
this.quantity = quantity;
|
| - |
|
9354 |
setQuantityIsSet(true);
|
| - |
|
9355 |
}
|
| - |
|
9356 |
|
| - |
|
9357 |
public void unsetQuantity() {
|
| - |
|
9358 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
| - |
|
9359 |
}
|
| - |
|
9360 |
|
| - |
|
9361 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
| - |
|
9362 |
public boolean isSetQuantity() {
|
| - |
|
9363 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
| - |
|
9364 |
}
|
| - |
|
9365 |
|
| - |
|
9366 |
public void setQuantityIsSet(boolean value) {
|
| - |
|
9367 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
| - |
|
9368 |
}
|
| - |
|
9369 |
|
| - |
|
9370 |
public long getBillingWarehouseId() {
|
| - |
|
9371 |
return this.billingWarehouseId;
|
| - |
|
9372 |
}
|
| - |
|
9373 |
|
| - |
|
9374 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
| - |
|
9375 |
this.billingWarehouseId = billingWarehouseId;
|
| - |
|
9376 |
setBillingWarehouseIdIsSet(true);
|
| - |
|
9377 |
}
|
| - |
|
9378 |
|
| - |
|
9379 |
public void unsetBillingWarehouseId() {
|
| - |
|
9380 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| - |
|
9381 |
}
|
| - |
|
9382 |
|
| - |
|
9383 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
| - |
|
9384 |
public boolean isSetBillingWarehouseId() {
|
| - |
|
9385 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| - |
|
9386 |
}
|
| - |
|
9387 |
|
| 9219 |
public void setWarehouseIdIsSet(boolean value) {
|
9388 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
| 9220 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
9389 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| 9221 |
}
|
9390 |
}
|
| 9222 |
|
9391 |
|
| 9223 |
public void setFieldValue(_Fields field, Object value) {
|
9392 |
public void setFieldValue(_Fields field, Object value) {
|
| 9224 |
switch (field) {
|
9393 |
switch (field) {
|
| 9225 |
case SERIAL_NUMBER:
|
9394 |
case SERIAL_NUMBER:
|
| Line 9244... |
Line 9413... |
| 9244 |
} else {
|
9413 |
} else {
|
| 9245 |
setOrderId((Long)value);
|
9414 |
setOrderId((Long)value);
|
| 9246 |
}
|
9415 |
}
|
| 9247 |
break;
|
9416 |
break;
|
| 9248 |
|
9417 |
|
| 9249 |
case WAREHOUSE_ID:
|
9418 |
case FULFILMENT_WAREHOUSE_ID:
|
| 9250 |
if (value == null) {
|
9419 |
if (value == null) {
|
| 9251 |
unsetWarehouseId();
|
9420 |
unsetFulfilmentWarehouseId();
|
| 9252 |
} else {
|
9421 |
} else {
|
| - |
|
9422 |
setFulfilmentWarehouseId((Long)value);
|
| - |
|
9423 |
}
|
| - |
|
9424 |
break;
|
| - |
|
9425 |
|
| - |
|
9426 |
case QUANTITY:
|
| - |
|
9427 |
if (value == null) {
|
| - |
|
9428 |
unsetQuantity();
|
| - |
|
9429 |
} else {
|
| - |
|
9430 |
setQuantity((Double)value);
|
| - |
|
9431 |
}
|
| - |
|
9432 |
break;
|
| - |
|
9433 |
|
| - |
|
9434 |
case BILLING_WAREHOUSE_ID:
|
| - |
|
9435 |
if (value == null) {
|
| - |
|
9436 |
unsetBillingWarehouseId();
|
| - |
|
9437 |
} else {
|
| 9253 |
setWarehouseId((Long)value);
|
9438 |
setBillingWarehouseId((Long)value);
|
| 9254 |
}
|
9439 |
}
|
| 9255 |
break;
|
9440 |
break;
|
| 9256 |
|
9441 |
|
| 9257 |
}
|
9442 |
}
|
| 9258 |
}
|
9443 |
}
|
| Line 9266... |
Line 9451... |
| 9266 |
return getType();
|
9451 |
return getType();
|
| 9267 |
|
9452 |
|
| 9268 |
case ORDER_ID:
|
9453 |
case ORDER_ID:
|
| 9269 |
return Long.valueOf(getOrderId());
|
9454 |
return Long.valueOf(getOrderId());
|
| 9270 |
|
9455 |
|
| - |
|
9456 |
case FULFILMENT_WAREHOUSE_ID:
|
| - |
|
9457 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| - |
|
9458 |
|
| - |
|
9459 |
case QUANTITY:
|
| - |
|
9460 |
return Double.valueOf(getQuantity());
|
| - |
|
9461 |
|
| 9271 |
case WAREHOUSE_ID:
|
9462 |
case BILLING_WAREHOUSE_ID:
|
| 9272 |
return Long.valueOf(getWarehouseId());
|
9463 |
return Long.valueOf(getBillingWarehouseId());
|
| 9273 |
|
9464 |
|
| 9274 |
}
|
9465 |
}
|
| 9275 |
throw new IllegalStateException();
|
9466 |
throw new IllegalStateException();
|
| 9276 |
}
|
9467 |
}
|
| 9277 |
|
9468 |
|
| Line 9286... |
Line 9477... |
| 9286 |
return isSetSerialNumber();
|
9477 |
return isSetSerialNumber();
|
| 9287 |
case TYPE:
|
9478 |
case TYPE:
|
| 9288 |
return isSetType();
|
9479 |
return isSetType();
|
| 9289 |
case ORDER_ID:
|
9480 |
case ORDER_ID:
|
| 9290 |
return isSetOrderId();
|
9481 |
return isSetOrderId();
|
| - |
|
9482 |
case FULFILMENT_WAREHOUSE_ID:
|
| - |
|
9483 |
return isSetFulfilmentWarehouseId();
|
| - |
|
9484 |
case QUANTITY:
|
| - |
|
9485 |
return isSetQuantity();
|
| 9291 |
case WAREHOUSE_ID:
|
9486 |
case BILLING_WAREHOUSE_ID:
|
| 9292 |
return isSetWarehouseId();
|
9487 |
return isSetBillingWarehouseId();
|
| 9293 |
}
|
9488 |
}
|
| 9294 |
throw new IllegalStateException();
|
9489 |
throw new IllegalStateException();
|
| 9295 |
}
|
9490 |
}
|
| 9296 |
|
9491 |
|
| 9297 |
@Override
|
9492 |
@Override
|
| Line 9332... |
Line 9527... |
| 9332 |
return false;
|
9527 |
return false;
|
| 9333 |
if (this.orderId != that.orderId)
|
9528 |
if (this.orderId != that.orderId)
|
| 9334 |
return false;
|
9529 |
return false;
|
| 9335 |
}
|
9530 |
}
|
| 9336 |
|
9531 |
|
| 9337 |
boolean this_present_warehouseId = true;
|
9532 |
boolean this_present_fulfilmentWarehouseId = true;
|
| 9338 |
boolean that_present_warehouseId = true;
|
9533 |
boolean that_present_fulfilmentWarehouseId = true;
|
| 9339 |
if (this_present_warehouseId || that_present_warehouseId) {
|
9534 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
| 9340 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
9535 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 9341 |
return false;
|
9536 |
return false;
|
| - |
|
9537 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| - |
|
9538 |
return false;
|
| - |
|
9539 |
}
|
| - |
|
9540 |
|
| - |
|
9541 |
boolean this_present_quantity = true;
|
| - |
|
9542 |
boolean that_present_quantity = true;
|
| - |
|
9543 |
if (this_present_quantity || that_present_quantity) {
|
| - |
|
9544 |
if (!(this_present_quantity && that_present_quantity))
|
| - |
|
9545 |
return false;
|
| - |
|
9546 |
if (this.quantity != that.quantity)
|
| - |
|
9547 |
return false;
|
| - |
|
9548 |
}
|
| - |
|
9549 |
|
| - |
|
9550 |
boolean this_present_billingWarehouseId = true;
|
| - |
|
9551 |
boolean that_present_billingWarehouseId = true;
|
| - |
|
9552 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
| - |
|
9553 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| - |
|
9554 |
return false;
|
| 9342 |
if (this.warehouseId != that.warehouseId)
|
9555 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| 9343 |
return false;
|
9556 |
return false;
|
| 9344 |
}
|
9557 |
}
|
| 9345 |
|
9558 |
|
| 9346 |
return true;
|
9559 |
return true;
|
| 9347 |
}
|
9560 |
}
|
| Line 9387... |
Line 9600... |
| 9387 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
9600 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 9388 |
if (lastComparison != 0) {
|
9601 |
if (lastComparison != 0) {
|
| 9389 |
return lastComparison;
|
9602 |
return lastComparison;
|
| 9390 |
}
|
9603 |
}
|
| 9391 |
}
|
9604 |
}
|
| 9392 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
9605 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 9393 |
if (lastComparison != 0) {
|
9606 |
if (lastComparison != 0) {
|
| 9394 |
return lastComparison;
|
9607 |
return lastComparison;
|
| 9395 |
}
|
9608 |
}
|
| - |
|
9609 |
if (isSetFulfilmentWarehouseId()) {
|
| - |
|
9610 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| - |
|
9611 |
if (lastComparison != 0) {
|
| - |
|
9612 |
return lastComparison;
|
| - |
|
9613 |
}
|
| - |
|
9614 |
}
|
| - |
|
9615 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| - |
|
9616 |
if (lastComparison != 0) {
|
| - |
|
9617 |
return lastComparison;
|
| - |
|
9618 |
}
|
| - |
|
9619 |
if (isSetQuantity()) {
|
| - |
|
9620 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| - |
|
9621 |
if (lastComparison != 0) {
|
| - |
|
9622 |
return lastComparison;
|
| - |
|
9623 |
}
|
| - |
|
9624 |
}
|
| - |
|
9625 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| - |
|
9626 |
if (lastComparison != 0) {
|
| - |
|
9627 |
return lastComparison;
|
| - |
|
9628 |
}
|
| 9396 |
if (isSetWarehouseId()) {
|
9629 |
if (isSetBillingWarehouseId()) {
|
| 9397 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
9630 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| 9398 |
if (lastComparison != 0) {
|
9631 |
if (lastComparison != 0) {
|
| 9399 |
return lastComparison;
|
9632 |
return lastComparison;
|
| 9400 |
}
|
9633 |
}
|
| 9401 |
}
|
9634 |
}
|
| 9402 |
return 0;
|
9635 |
return 0;
|
| Line 9436... |
Line 9669... |
| 9436 |
setOrderIdIsSet(true);
|
9669 |
setOrderIdIsSet(true);
|
| 9437 |
} else {
|
9670 |
} else {
|
| 9438 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
9671 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 9439 |
}
|
9672 |
}
|
| 9440 |
break;
|
9673 |
break;
|
| 9441 |
case 4: // WAREHOUSE_ID
|
9674 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| 9442 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
9675 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
9676 |
this.fulfilmentWarehouseId = iprot.readI64();
|
| - |
|
9677 |
setFulfilmentWarehouseIdIsSet(true);
|
| - |
|
9678 |
} else {
|
| - |
|
9679 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
9680 |
}
|
| - |
|
9681 |
break;
|
| - |
|
9682 |
case 5: // QUANTITY
|
| - |
|
9683 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| - |
|
9684 |
this.quantity = iprot.readDouble();
|
| - |
|
9685 |
setQuantityIsSet(true);
|
| - |
|
9686 |
} else {
|
| - |
|
9687 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
9688 |
}
|
| - |
|
9689 |
break;
|
| - |
|
9690 |
case 6: // BILLING_WAREHOUSE_ID
|
| - |
|
9691 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 9443 |
this.warehouseId = iprot.readI64();
|
9692 |
this.billingWarehouseId = iprot.readI64();
|
| 9444 |
setWarehouseIdIsSet(true);
|
9693 |
setBillingWarehouseIdIsSet(true);
|
| 9445 |
} else {
|
9694 |
} else {
|
| 9446 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
9695 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 9447 |
}
|
9696 |
}
|
| 9448 |
break;
|
9697 |
break;
|
| 9449 |
default:
|
9698 |
default:
|
| Line 9470... |
Line 9719... |
| 9470 |
oprot.writeFieldEnd();
|
9719 |
oprot.writeFieldEnd();
|
| 9471 |
}
|
9720 |
}
|
| 9472 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
9721 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
| 9473 |
oprot.writeI64(this.orderId);
|
9722 |
oprot.writeI64(this.orderId);
|
| 9474 |
oprot.writeFieldEnd();
|
9723 |
oprot.writeFieldEnd();
|
| - |
|
9724 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
| - |
|
9725 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| - |
|
9726 |
oprot.writeFieldEnd();
|
| - |
|
9727 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
| - |
|
9728 |
oprot.writeDouble(this.quantity);
|
| - |
|
9729 |
oprot.writeFieldEnd();
|
| 9475 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
9730 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
| 9476 |
oprot.writeI64(this.warehouseId);
|
9731 |
oprot.writeI64(this.billingWarehouseId);
|
| 9477 |
oprot.writeFieldEnd();
|
9732 |
oprot.writeFieldEnd();
|
| 9478 |
oprot.writeFieldStop();
|
9733 |
oprot.writeFieldStop();
|
| 9479 |
oprot.writeStructEnd();
|
9734 |
oprot.writeStructEnd();
|
| 9480 |
}
|
9735 |
}
|
| 9481 |
|
9736 |
|
| Line 9502... |
Line 9757... |
| 9502 |
if (!first) sb.append(", ");
|
9757 |
if (!first) sb.append(", ");
|
| 9503 |
sb.append("orderId:");
|
9758 |
sb.append("orderId:");
|
| 9504 |
sb.append(this.orderId);
|
9759 |
sb.append(this.orderId);
|
| 9505 |
first = false;
|
9760 |
first = false;
|
| 9506 |
if (!first) sb.append(", ");
|
9761 |
if (!first) sb.append(", ");
|
| - |
|
9762 |
sb.append("fulfilmentWarehouseId:");
|
| - |
|
9763 |
sb.append(this.fulfilmentWarehouseId);
|
| - |
|
9764 |
first = false;
|
| - |
|
9765 |
if (!first) sb.append(", ");
|
| - |
|
9766 |
sb.append("quantity:");
|
| - |
|
9767 |
sb.append(this.quantity);
|
| - |
|
9768 |
first = false;
|
| - |
|
9769 |
if (!first) sb.append(", ");
|
| 9507 |
sb.append("warehouseId:");
|
9770 |
sb.append("billingWarehouseId:");
|
| 9508 |
sb.append(this.warehouseId);
|
9771 |
sb.append(this.billingWarehouseId);
|
| 9509 |
first = false;
|
9772 |
first = false;
|
| 9510 |
sb.append(")");
|
9773 |
sb.append(")");
|
| 9511 |
return sb.toString();
|
9774 |
return sb.toString();
|
| 9512 |
}
|
9775 |
}
|
| 9513 |
|
9776 |
|
| Line 9920... |
Line 10183... |
| 9920 |
|
10183 |
|
| 9921 |
private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
10184 |
private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 9922 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
|
10185 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
|
| 9923 |
private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
|
10186 |
private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 9924 |
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);
|
10187 |
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);
|
| 9925 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
|
10188 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 9926 |
|
10189 |
|
| 9927 |
private long inventoryItemId; // required
|
10190 |
private long inventoryItemId; // required
|
| 9928 |
private ScanType type; // required
|
10191 |
private ScanType type; // required
|
| 9929 |
private long quantity; // required
|
10192 |
private long quantity; // required
|
| 9930 |
private long orderId; // required
|
10193 |
private long orderId; // required
|
| 9931 |
private long warehouseId; // required
|
10194 |
private long fulfilmentWarehouseId; // required
|
| 9932 |
|
10195 |
|
| 9933 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
10196 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 9934 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
10197 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 9935 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
|
10198 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
|
| 9936 |
/**
|
10199 |
/**
|
| Line 9938... |
Line 10201... |
| 9938 |
* @see ScanType
|
10201 |
* @see ScanType
|
| 9939 |
*/
|
10202 |
*/
|
| 9940 |
TYPE((short)2, "type"),
|
10203 |
TYPE((short)2, "type"),
|
| 9941 |
QUANTITY((short)3, "quantity"),
|
10204 |
QUANTITY((short)3, "quantity"),
|
| 9942 |
ORDER_ID((short)4, "orderId"),
|
10205 |
ORDER_ID((short)4, "orderId"),
|
| 9943 |
WAREHOUSE_ID((short)5, "warehouseId");
|
10206 |
FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId");
|
| 9944 |
|
10207 |
|
| 9945 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
10208 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 9946 |
|
10209 |
|
| 9947 |
static {
|
10210 |
static {
|
| 9948 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
10211 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 9961... |
Line 10224... |
| 9961 |
return TYPE;
|
10224 |
return TYPE;
|
| 9962 |
case 3: // QUANTITY
|
10225 |
case 3: // QUANTITY
|
| 9963 |
return QUANTITY;
|
10226 |
return QUANTITY;
|
| 9964 |
case 4: // ORDER_ID
|
10227 |
case 4: // ORDER_ID
|
| 9965 |
return ORDER_ID;
|
10228 |
return ORDER_ID;
|
| 9966 |
case 5: // WAREHOUSE_ID
|
10229 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
| 9967 |
return WAREHOUSE_ID;
|
10230 |
return FULFILMENT_WAREHOUSE_ID;
|
| 9968 |
default:
|
10231 |
default:
|
| 9969 |
return null;
|
10232 |
return null;
|
| 9970 |
}
|
10233 |
}
|
| 9971 |
}
|
10234 |
}
|
| 9972 |
|
10235 |
|
| Line 10006... |
Line 10269... |
| 10006 |
|
10269 |
|
| 10007 |
// isset id assignments
|
10270 |
// isset id assignments
|
| 10008 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
10271 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
| 10009 |
private static final int __QUANTITY_ISSET_ID = 1;
|
10272 |
private static final int __QUANTITY_ISSET_ID = 1;
|
| 10010 |
private static final int __ORDERID_ISSET_ID = 2;
|
10273 |
private static final int __ORDERID_ISSET_ID = 2;
|
| 10011 |
private static final int __WAREHOUSEID_ISSET_ID = 3;
|
10274 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 3;
|
| 10012 |
private BitSet __isset_bit_vector = new BitSet(4);
|
10275 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 10013 |
|
10276 |
|
| 10014 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
10277 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 10015 |
static {
|
10278 |
static {
|
| 10016 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
10279 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| Line 10020... |
Line 10283... |
| 10020 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
10283 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 10021 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
10284 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 10022 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
10285 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 10023 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
10286 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 10024 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
10287 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 10025 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
10288 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 10026 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
10289 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 10027 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
10290 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 10028 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
|
10291 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
|
| 10029 |
}
|
10292 |
}
|
| 10030 |
|
10293 |
|
| Line 10034... |
Line 10297... |
| 10034 |
public scanForOrder_args(
|
10297 |
public scanForOrder_args(
|
| 10035 |
long inventoryItemId,
|
10298 |
long inventoryItemId,
|
| 10036 |
ScanType type,
|
10299 |
ScanType type,
|
| 10037 |
long quantity,
|
10300 |
long quantity,
|
| 10038 |
long orderId,
|
10301 |
long orderId,
|
| 10039 |
long warehouseId)
|
10302 |
long fulfilmentWarehouseId)
|
| 10040 |
{
|
10303 |
{
|
| 10041 |
this();
|
10304 |
this();
|
| 10042 |
this.inventoryItemId = inventoryItemId;
|
10305 |
this.inventoryItemId = inventoryItemId;
|
| 10043 |
setInventoryItemIdIsSet(true);
|
10306 |
setInventoryItemIdIsSet(true);
|
| 10044 |
this.type = type;
|
10307 |
this.type = type;
|
| 10045 |
this.quantity = quantity;
|
10308 |
this.quantity = quantity;
|
| 10046 |
setQuantityIsSet(true);
|
10309 |
setQuantityIsSet(true);
|
| 10047 |
this.orderId = orderId;
|
10310 |
this.orderId = orderId;
|
| 10048 |
setOrderIdIsSet(true);
|
10311 |
setOrderIdIsSet(true);
|
| 10049 |
this.warehouseId = warehouseId;
|
10312 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 10050 |
setWarehouseIdIsSet(true);
|
10313 |
setFulfilmentWarehouseIdIsSet(true);
|
| 10051 |
}
|
10314 |
}
|
| 10052 |
|
10315 |
|
| 10053 |
/**
|
10316 |
/**
|
| 10054 |
* Performs a deep copy on <i>other</i>.
|
10317 |
* Performs a deep copy on <i>other</i>.
|
| 10055 |
*/
|
10318 |
*/
|
| Line 10060... |
Line 10323... |
| 10060 |
if (other.isSetType()) {
|
10323 |
if (other.isSetType()) {
|
| 10061 |
this.type = other.type;
|
10324 |
this.type = other.type;
|
| 10062 |
}
|
10325 |
}
|
| 10063 |
this.quantity = other.quantity;
|
10326 |
this.quantity = other.quantity;
|
| 10064 |
this.orderId = other.orderId;
|
10327 |
this.orderId = other.orderId;
|
| 10065 |
this.warehouseId = other.warehouseId;
|
10328 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 10066 |
}
|
10329 |
}
|
| 10067 |
|
10330 |
|
| 10068 |
public scanForOrder_args deepCopy() {
|
10331 |
public scanForOrder_args deepCopy() {
|
| 10069 |
return new scanForOrder_args(this);
|
10332 |
return new scanForOrder_args(this);
|
| 10070 |
}
|
10333 |
}
|
| Line 10076... |
Line 10339... |
| 10076 |
this.type = null;
|
10339 |
this.type = null;
|
| 10077 |
setQuantityIsSet(false);
|
10340 |
setQuantityIsSet(false);
|
| 10078 |
this.quantity = 0;
|
10341 |
this.quantity = 0;
|
| 10079 |
setOrderIdIsSet(false);
|
10342 |
setOrderIdIsSet(false);
|
| 10080 |
this.orderId = 0;
|
10343 |
this.orderId = 0;
|
| 10081 |
setWarehouseIdIsSet(false);
|
10344 |
setFulfilmentWarehouseIdIsSet(false);
|
| 10082 |
this.warehouseId = 0;
|
10345 |
this.fulfilmentWarehouseId = 0;
|
| 10083 |
}
|
10346 |
}
|
| 10084 |
|
10347 |
|
| 10085 |
public long getInventoryItemId() {
|
10348 |
public long getInventoryItemId() {
|
| 10086 |
return this.inventoryItemId;
|
10349 |
return this.inventoryItemId;
|
| 10087 |
}
|
10350 |
}
|
| Line 10177... |
Line 10440... |
| 10177 |
|
10440 |
|
| 10178 |
public void setOrderIdIsSet(boolean value) {
|
10441 |
public void setOrderIdIsSet(boolean value) {
|
| 10179 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
10442 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 10180 |
}
|
10443 |
}
|
| 10181 |
|
10444 |
|
| 10182 |
public long getWarehouseId() {
|
10445 |
public long getFulfilmentWarehouseId() {
|
| 10183 |
return this.warehouseId;
|
10446 |
return this.fulfilmentWarehouseId;
|
| 10184 |
}
|
10447 |
}
|
| 10185 |
|
10448 |
|
| 10186 |
public void setWarehouseId(long warehouseId) {
|
10449 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
| 10187 |
this.warehouseId = warehouseId;
|
10450 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 10188 |
setWarehouseIdIsSet(true);
|
10451 |
setFulfilmentWarehouseIdIsSet(true);
|
| 10189 |
}
|
10452 |
}
|
| 10190 |
|
10453 |
|
| 10191 |
public void unsetWarehouseId() {
|
10454 |
public void unsetFulfilmentWarehouseId() {
|
| 10192 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
10455 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 10193 |
}
|
10456 |
}
|
| 10194 |
|
10457 |
|
| 10195 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
10458 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
| 10196 |
public boolean isSetWarehouseId() {
|
10459 |
public boolean isSetFulfilmentWarehouseId() {
|
| 10197 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
10460 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 10198 |
}
|
10461 |
}
|
| 10199 |
|
10462 |
|
| 10200 |
public void setWarehouseIdIsSet(boolean value) {
|
10463 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
| 10201 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
10464 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 10202 |
}
|
10465 |
}
|
| 10203 |
|
10466 |
|
| 10204 |
public void setFieldValue(_Fields field, Object value) {
|
10467 |
public void setFieldValue(_Fields field, Object value) {
|
| 10205 |
switch (field) {
|
10468 |
switch (field) {
|
| 10206 |
case INVENTORY_ITEM_ID:
|
10469 |
case INVENTORY_ITEM_ID:
|
| Line 10233... |
Line 10496... |
| 10233 |
} else {
|
10496 |
} else {
|
| 10234 |
setOrderId((Long)value);
|
10497 |
setOrderId((Long)value);
|
| 10235 |
}
|
10498 |
}
|
| 10236 |
break;
|
10499 |
break;
|
| 10237 |
|
10500 |
|
| 10238 |
case WAREHOUSE_ID:
|
10501 |
case FULFILMENT_WAREHOUSE_ID:
|
| 10239 |
if (value == null) {
|
10502 |
if (value == null) {
|
| 10240 |
unsetWarehouseId();
|
10503 |
unsetFulfilmentWarehouseId();
|
| 10241 |
} else {
|
10504 |
} else {
|
| 10242 |
setWarehouseId((Long)value);
|
10505 |
setFulfilmentWarehouseId((Long)value);
|
| 10243 |
}
|
10506 |
}
|
| 10244 |
break;
|
10507 |
break;
|
| 10245 |
|
10508 |
|
| 10246 |
}
|
10509 |
}
|
| 10247 |
}
|
10510 |
}
|
| Line 10258... |
Line 10521... |
| 10258 |
return Long.valueOf(getQuantity());
|
10521 |
return Long.valueOf(getQuantity());
|
| 10259 |
|
10522 |
|
| 10260 |
case ORDER_ID:
|
10523 |
case ORDER_ID:
|
| 10261 |
return Long.valueOf(getOrderId());
|
10524 |
return Long.valueOf(getOrderId());
|
| 10262 |
|
10525 |
|
| 10263 |
case WAREHOUSE_ID:
|
10526 |
case FULFILMENT_WAREHOUSE_ID:
|
| 10264 |
return Long.valueOf(getWarehouseId());
|
10527 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 10265 |
|
10528 |
|
| 10266 |
}
|
10529 |
}
|
| 10267 |
throw new IllegalStateException();
|
10530 |
throw new IllegalStateException();
|
| 10268 |
}
|
10531 |
}
|
| 10269 |
|
10532 |
|
| Line 10280... |
Line 10543... |
| 10280 |
return isSetType();
|
10543 |
return isSetType();
|
| 10281 |
case QUANTITY:
|
10544 |
case QUANTITY:
|
| 10282 |
return isSetQuantity();
|
10545 |
return isSetQuantity();
|
| 10283 |
case ORDER_ID:
|
10546 |
case ORDER_ID:
|
| 10284 |
return isSetOrderId();
|
10547 |
return isSetOrderId();
|
| 10285 |
case WAREHOUSE_ID:
|
10548 |
case FULFILMENT_WAREHOUSE_ID:
|
| 10286 |
return isSetWarehouseId();
|
10549 |
return isSetFulfilmentWarehouseId();
|
| 10287 |
}
|
10550 |
}
|
| 10288 |
throw new IllegalStateException();
|
10551 |
throw new IllegalStateException();
|
| 10289 |
}
|
10552 |
}
|
| 10290 |
|
10553 |
|
| 10291 |
@Override
|
10554 |
@Override
|
| Line 10335... |
Line 10598... |
| 10335 |
return false;
|
10598 |
return false;
|
| 10336 |
if (this.orderId != that.orderId)
|
10599 |
if (this.orderId != that.orderId)
|
| 10337 |
return false;
|
10600 |
return false;
|
| 10338 |
}
|
10601 |
}
|
| 10339 |
|
10602 |
|
| 10340 |
boolean this_present_warehouseId = true;
|
10603 |
boolean this_present_fulfilmentWarehouseId = true;
|
| 10341 |
boolean that_present_warehouseId = true;
|
10604 |
boolean that_present_fulfilmentWarehouseId = true;
|
| 10342 |
if (this_present_warehouseId || that_present_warehouseId) {
|
10605 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
| 10343 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
10606 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 10344 |
return false;
|
10607 |
return false;
|
| 10345 |
if (this.warehouseId != that.warehouseId)
|
10608 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 10346 |
return false;
|
10609 |
return false;
|
| 10347 |
}
|
10610 |
}
|
| 10348 |
|
10611 |
|
| 10349 |
return true;
|
10612 |
return true;
|
| 10350 |
}
|
10613 |
}
|
| Line 10400... |
Line 10663... |
| 10400 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
10663 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 10401 |
if (lastComparison != 0) {
|
10664 |
if (lastComparison != 0) {
|
| 10402 |
return lastComparison;
|
10665 |
return lastComparison;
|
| 10403 |
}
|
10666 |
}
|
| 10404 |
}
|
10667 |
}
|
| 10405 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
10668 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 10406 |
if (lastComparison != 0) {
|
10669 |
if (lastComparison != 0) {
|
| 10407 |
return lastComparison;
|
10670 |
return lastComparison;
|
| 10408 |
}
|
10671 |
}
|
| 10409 |
if (isSetWarehouseId()) {
|
10672 |
if (isSetFulfilmentWarehouseId()) {
|
| 10410 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
10673 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 10411 |
if (lastComparison != 0) {
|
10674 |
if (lastComparison != 0) {
|
| 10412 |
return lastComparison;
|
10675 |
return lastComparison;
|
| 10413 |
}
|
10676 |
}
|
| 10414 |
}
|
10677 |
}
|
| 10415 |
return 0;
|
10678 |
return 0;
|
| Line 10458... |
Line 10721... |
| 10458 |
setOrderIdIsSet(true);
|
10721 |
setOrderIdIsSet(true);
|
| 10459 |
} else {
|
10722 |
} else {
|
| 10460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
10723 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 10461 |
}
|
10724 |
}
|
| 10462 |
break;
|
10725 |
break;
|
| 10463 |
case 5: // WAREHOUSE_ID
|
10726 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
| 10464 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
10727 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 10465 |
this.warehouseId = iprot.readI64();
|
10728 |
this.fulfilmentWarehouseId = iprot.readI64();
|
| 10466 |
setWarehouseIdIsSet(true);
|
10729 |
setFulfilmentWarehouseIdIsSet(true);
|
| 10467 |
} else {
|
10730 |
} else {
|
| 10468 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
10731 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 10469 |
}
|
10732 |
}
|
| 10470 |
break;
|
10733 |
break;
|
| 10471 |
default:
|
10734 |
default:
|
| Line 10493... |
Line 10756... |
| 10493 |
oprot.writeI64(this.quantity);
|
10756 |
oprot.writeI64(this.quantity);
|
| 10494 |
oprot.writeFieldEnd();
|
10757 |
oprot.writeFieldEnd();
|
| 10495 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
10758 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
| 10496 |
oprot.writeI64(this.orderId);
|
10759 |
oprot.writeI64(this.orderId);
|
| 10497 |
oprot.writeFieldEnd();
|
10760 |
oprot.writeFieldEnd();
|
| 10498 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
10761 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
| 10499 |
oprot.writeI64(this.warehouseId);
|
10762 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 10500 |
oprot.writeFieldEnd();
|
10763 |
oprot.writeFieldEnd();
|
| 10501 |
oprot.writeFieldStop();
|
10764 |
oprot.writeFieldStop();
|
| 10502 |
oprot.writeStructEnd();
|
10765 |
oprot.writeStructEnd();
|
| 10503 |
}
|
10766 |
}
|
| 10504 |
|
10767 |
|
| Line 10525... |
Line 10788... |
| 10525 |
if (!first) sb.append(", ");
|
10788 |
if (!first) sb.append(", ");
|
| 10526 |
sb.append("orderId:");
|
10789 |
sb.append("orderId:");
|
| 10527 |
sb.append(this.orderId);
|
10790 |
sb.append(this.orderId);
|
| 10528 |
first = false;
|
10791 |
first = false;
|
| 10529 |
if (!first) sb.append(", ");
|
10792 |
if (!first) sb.append(", ");
|
| 10530 |
sb.append("warehouseId:");
|
10793 |
sb.append("fulfilmentWarehouseId:");
|
| 10531 |
sb.append(this.warehouseId);
|
10794 |
sb.append(this.fulfilmentWarehouseId);
|
| 10532 |
first = false;
|
10795 |
first = false;
|
| 10533 |
sb.append(")");
|
10796 |
sb.append(")");
|
| 10534 |
return sb.toString();
|
10797 |
return sb.toString();
|
| 10535 |
}
|
10798 |
}
|
| 10536 |
|
10799 |
|
| Line 12025... |
Line 12288... |
| 12025 |
boolean first = true;
|
12288 |
boolean first = true;
|
| 12026 |
|
12289 |
|
| 12027 |
sb.append("success:");
|
12290 |
sb.append("success:");
|
| 12028 |
if (this.success == null) {
|
12291 |
if (this.success == null) {
|
| 12029 |
sb.append("null");
|
12292 |
sb.append("null");
|
| - |
|
12293 |
} else {
|
| - |
|
12294 |
sb.append(this.success);
|
| - |
|
12295 |
}
|
| - |
|
12296 |
first = false;
|
| - |
|
12297 |
sb.append(")");
|
| - |
|
12298 |
return sb.toString();
|
| - |
|
12299 |
}
|
| - |
|
12300 |
|
| - |
|
12301 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
12302 |
// check for required fields
|
| - |
|
12303 |
}
|
| - |
|
12304 |
|
| - |
|
12305 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
12306 |
try {
|
| - |
|
12307 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
12308 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12309 |
throw new java.io.IOException(te);
|
| - |
|
12310 |
}
|
| - |
|
12311 |
}
|
| - |
|
12312 |
|
| - |
|
12313 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
12314 |
try {
|
| - |
|
12315 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
12316 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12317 |
throw new java.io.IOException(te);
|
| - |
|
12318 |
}
|
| - |
|
12319 |
}
|
| - |
|
12320 |
|
| - |
|
12321 |
}
|
| - |
|
12322 |
|
| - |
|
12323 |
public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
12324 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
|
| - |
|
12325 |
|
| - |
|
12326 |
private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
|
| - |
|
12327 |
|
| - |
|
12328 |
private String itemNumber; // required
|
| - |
|
12329 |
|
| - |
|
12330 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
12331 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
12332 |
ITEM_NUMBER((short)1, "itemNumber");
|
| - |
|
12333 |
|
| - |
|
12334 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
12335 |
|
| - |
|
12336 |
static {
|
| - |
|
12337 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
12338 |
byName.put(field.getFieldName(), field);
|
| - |
|
12339 |
}
|
| - |
|
12340 |
}
|
| - |
|
12341 |
|
| - |
|
12342 |
/**
|
| - |
|
12343 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
12344 |
*/
|
| - |
|
12345 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
12346 |
switch(fieldId) {
|
| - |
|
12347 |
case 1: // ITEM_NUMBER
|
| - |
|
12348 |
return ITEM_NUMBER;
|
| - |
|
12349 |
default:
|
| - |
|
12350 |
return null;
|
| - |
|
12351 |
}
|
| - |
|
12352 |
}
|
| - |
|
12353 |
|
| - |
|
12354 |
/**
|
| - |
|
12355 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
12356 |
* if it is not found.
|
| - |
|
12357 |
*/
|
| - |
|
12358 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
12359 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
12360 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
12361 |
return fields;
|
| - |
|
12362 |
}
|
| - |
|
12363 |
|
| - |
|
12364 |
/**
|
| - |
|
12365 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
12366 |
*/
|
| - |
|
12367 |
public static _Fields findByName(String name) {
|
| - |
|
12368 |
return byName.get(name);
|
| - |
|
12369 |
}
|
| - |
|
12370 |
|
| - |
|
12371 |
private final short _thriftId;
|
| - |
|
12372 |
private final String _fieldName;
|
| - |
|
12373 |
|
| - |
|
12374 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
12375 |
_thriftId = thriftId;
|
| - |
|
12376 |
_fieldName = fieldName;
|
| - |
|
12377 |
}
|
| - |
|
12378 |
|
| - |
|
12379 |
public short getThriftFieldId() {
|
| - |
|
12380 |
return _thriftId;
|
| - |
|
12381 |
}
|
| - |
|
12382 |
|
| - |
|
12383 |
public String getFieldName() {
|
| - |
|
12384 |
return _fieldName;
|
| - |
|
12385 |
}
|
| - |
|
12386 |
}
|
| - |
|
12387 |
|
| - |
|
12388 |
// isset id assignments
|
| - |
|
12389 |
|
| - |
|
12390 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
12391 |
static {
|
| - |
|
12392 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
12393 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12394 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| - |
|
12395 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
12396 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
|
| - |
|
12397 |
}
|
| - |
|
12398 |
|
| - |
|
12399 |
public getItemIds_args() {
|
| - |
|
12400 |
}
|
| - |
|
12401 |
|
| - |
|
12402 |
public getItemIds_args(
|
| - |
|
12403 |
String itemNumber)
|
| - |
|
12404 |
{
|
| - |
|
12405 |
this();
|
| - |
|
12406 |
this.itemNumber = itemNumber;
|
| - |
|
12407 |
}
|
| - |
|
12408 |
|
| - |
|
12409 |
/**
|
| - |
|
12410 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
12411 |
*/
|
| - |
|
12412 |
public getItemIds_args(getItemIds_args other) {
|
| - |
|
12413 |
if (other.isSetItemNumber()) {
|
| - |
|
12414 |
this.itemNumber = other.itemNumber;
|
| - |
|
12415 |
}
|
| - |
|
12416 |
}
|
| - |
|
12417 |
|
| - |
|
12418 |
public getItemIds_args deepCopy() {
|
| - |
|
12419 |
return new getItemIds_args(this);
|
| - |
|
12420 |
}
|
| - |
|
12421 |
|
| - |
|
12422 |
@Override
|
| - |
|
12423 |
public void clear() {
|
| - |
|
12424 |
this.itemNumber = null;
|
| - |
|
12425 |
}
|
| - |
|
12426 |
|
| - |
|
12427 |
public String getItemNumber() {
|
| - |
|
12428 |
return this.itemNumber;
|
| - |
|
12429 |
}
|
| - |
|
12430 |
|
| - |
|
12431 |
public void setItemNumber(String itemNumber) {
|
| - |
|
12432 |
this.itemNumber = itemNumber;
|
| - |
|
12433 |
}
|
| - |
|
12434 |
|
| - |
|
12435 |
public void unsetItemNumber() {
|
| - |
|
12436 |
this.itemNumber = null;
|
| - |
|
12437 |
}
|
| - |
|
12438 |
|
| - |
|
12439 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
| - |
|
12440 |
public boolean isSetItemNumber() {
|
| - |
|
12441 |
return this.itemNumber != null;
|
| - |
|
12442 |
}
|
| - |
|
12443 |
|
| - |
|
12444 |
public void setItemNumberIsSet(boolean value) {
|
| - |
|
12445 |
if (!value) {
|
| - |
|
12446 |
this.itemNumber = null;
|
| - |
|
12447 |
}
|
| - |
|
12448 |
}
|
| - |
|
12449 |
|
| - |
|
12450 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
12451 |
switch (field) {
|
| - |
|
12452 |
case ITEM_NUMBER:
|
| - |
|
12453 |
if (value == null) {
|
| - |
|
12454 |
unsetItemNumber();
|
| - |
|
12455 |
} else {
|
| - |
|
12456 |
setItemNumber((String)value);
|
| - |
|
12457 |
}
|
| - |
|
12458 |
break;
|
| - |
|
12459 |
|
| - |
|
12460 |
}
|
| - |
|
12461 |
}
|
| - |
|
12462 |
|
| - |
|
12463 |
public Object getFieldValue(_Fields field) {
|
| - |
|
12464 |
switch (field) {
|
| - |
|
12465 |
case ITEM_NUMBER:
|
| - |
|
12466 |
return getItemNumber();
|
| - |
|
12467 |
|
| - |
|
12468 |
}
|
| - |
|
12469 |
throw new IllegalStateException();
|
| - |
|
12470 |
}
|
| - |
|
12471 |
|
| - |
|
12472 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
12473 |
public boolean isSet(_Fields field) {
|
| - |
|
12474 |
if (field == null) {
|
| - |
|
12475 |
throw new IllegalArgumentException();
|
| - |
|
12476 |
}
|
| - |
|
12477 |
|
| - |
|
12478 |
switch (field) {
|
| - |
|
12479 |
case ITEM_NUMBER:
|
| - |
|
12480 |
return isSetItemNumber();
|
| - |
|
12481 |
}
|
| - |
|
12482 |
throw new IllegalStateException();
|
| - |
|
12483 |
}
|
| - |
|
12484 |
|
| - |
|
12485 |
@Override
|
| - |
|
12486 |
public boolean equals(Object that) {
|
| - |
|
12487 |
if (that == null)
|
| - |
|
12488 |
return false;
|
| - |
|
12489 |
if (that instanceof getItemIds_args)
|
| - |
|
12490 |
return this.equals((getItemIds_args)that);
|
| - |
|
12491 |
return false;
|
| - |
|
12492 |
}
|
| - |
|
12493 |
|
| - |
|
12494 |
public boolean equals(getItemIds_args that) {
|
| - |
|
12495 |
if (that == null)
|
| - |
|
12496 |
return false;
|
| - |
|
12497 |
|
| - |
|
12498 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
| - |
|
12499 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
| - |
|
12500 |
if (this_present_itemNumber || that_present_itemNumber) {
|
| - |
|
12501 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
| - |
|
12502 |
return false;
|
| - |
|
12503 |
if (!this.itemNumber.equals(that.itemNumber))
|
| - |
|
12504 |
return false;
|
| - |
|
12505 |
}
|
| - |
|
12506 |
|
| - |
|
12507 |
return true;
|
| - |
|
12508 |
}
|
| - |
|
12509 |
|
| - |
|
12510 |
@Override
|
| - |
|
12511 |
public int hashCode() {
|
| - |
|
12512 |
return 0;
|
| - |
|
12513 |
}
|
| - |
|
12514 |
|
| - |
|
12515 |
public int compareTo(getItemIds_args other) {
|
| - |
|
12516 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
12517 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
12518 |
}
|
| - |
|
12519 |
|
| - |
|
12520 |
int lastComparison = 0;
|
| - |
|
12521 |
getItemIds_args typedOther = (getItemIds_args)other;
|
| - |
|
12522 |
|
| - |
|
12523 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
| - |
|
12524 |
if (lastComparison != 0) {
|
| - |
|
12525 |
return lastComparison;
|
| - |
|
12526 |
}
|
| - |
|
12527 |
if (isSetItemNumber()) {
|
| - |
|
12528 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
| - |
|
12529 |
if (lastComparison != 0) {
|
| - |
|
12530 |
return lastComparison;
|
| - |
|
12531 |
}
|
| - |
|
12532 |
}
|
| - |
|
12533 |
return 0;
|
| - |
|
12534 |
}
|
| - |
|
12535 |
|
| - |
|
12536 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
12537 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
12538 |
}
|
| - |
|
12539 |
|
| - |
|
12540 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
12541 |
org.apache.thrift.protocol.TField field;
|
| - |
|
12542 |
iprot.readStructBegin();
|
| - |
|
12543 |
while (true)
|
| - |
|
12544 |
{
|
| - |
|
12545 |
field = iprot.readFieldBegin();
|
| - |
|
12546 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
12547 |
break;
|
| - |
|
12548 |
}
|
| - |
|
12549 |
switch (field.id) {
|
| - |
|
12550 |
case 1: // ITEM_NUMBER
|
| - |
|
12551 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| - |
|
12552 |
this.itemNumber = iprot.readString();
|
| - |
|
12553 |
} else {
|
| - |
|
12554 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12555 |
}
|
| - |
|
12556 |
break;
|
| - |
|
12557 |
default:
|
| - |
|
12558 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12559 |
}
|
| - |
|
12560 |
iprot.readFieldEnd();
|
| - |
|
12561 |
}
|
| - |
|
12562 |
iprot.readStructEnd();
|
| - |
|
12563 |
validate();
|
| - |
|
12564 |
}
|
| - |
|
12565 |
|
| - |
|
12566 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
12567 |
validate();
|
| - |
|
12568 |
|
| - |
|
12569 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
12570 |
if (this.itemNumber != null) {
|
| - |
|
12571 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
| - |
|
12572 |
oprot.writeString(this.itemNumber);
|
| - |
|
12573 |
oprot.writeFieldEnd();
|
| - |
|
12574 |
}
|
| - |
|
12575 |
oprot.writeFieldStop();
|
| - |
|
12576 |
oprot.writeStructEnd();
|
| - |
|
12577 |
}
|
| - |
|
12578 |
|
| - |
|
12579 |
@Override
|
| - |
|
12580 |
public String toString() {
|
| - |
|
12581 |
StringBuilder sb = new StringBuilder("getItemIds_args(");
|
| - |
|
12582 |
boolean first = true;
|
| - |
|
12583 |
|
| - |
|
12584 |
sb.append("itemNumber:");
|
| - |
|
12585 |
if (this.itemNumber == null) {
|
| - |
|
12586 |
sb.append("null");
|
| - |
|
12587 |
} else {
|
| - |
|
12588 |
sb.append(this.itemNumber);
|
| - |
|
12589 |
}
|
| - |
|
12590 |
first = false;
|
| - |
|
12591 |
sb.append(")");
|
| - |
|
12592 |
return sb.toString();
|
| - |
|
12593 |
}
|
| - |
|
12594 |
|
| - |
|
12595 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
12596 |
// check for required fields
|
| - |
|
12597 |
}
|
| - |
|
12598 |
|
| - |
|
12599 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
12600 |
try {
|
| - |
|
12601 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
12602 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12603 |
throw new java.io.IOException(te);
|
| - |
|
12604 |
}
|
| - |
|
12605 |
}
|
| - |
|
12606 |
|
| - |
|
12607 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
12608 |
try {
|
| - |
|
12609 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
12610 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12611 |
throw new java.io.IOException(te);
|
| - |
|
12612 |
}
|
| - |
|
12613 |
}
|
| - |
|
12614 |
|
| - |
|
12615 |
}
|
| - |
|
12616 |
|
| - |
|
12617 |
public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
12618 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
|
| - |
|
12619 |
|
| - |
|
12620 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
| - |
|
12621 |
|
| - |
|
12622 |
private List<Long> success; // required
|
| - |
|
12623 |
|
| - |
|
12624 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
12625 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
12626 |
SUCCESS((short)0, "success");
|
| - |
|
12627 |
|
| - |
|
12628 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
12629 |
|
| - |
|
12630 |
static {
|
| - |
|
12631 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
12632 |
byName.put(field.getFieldName(), field);
|
| - |
|
12633 |
}
|
| - |
|
12634 |
}
|
| - |
|
12635 |
|
| - |
|
12636 |
/**
|
| - |
|
12637 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
12638 |
*/
|
| - |
|
12639 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
12640 |
switch(fieldId) {
|
| - |
|
12641 |
case 0: // SUCCESS
|
| - |
|
12642 |
return SUCCESS;
|
| - |
|
12643 |
default:
|
| - |
|
12644 |
return null;
|
| - |
|
12645 |
}
|
| - |
|
12646 |
}
|
| - |
|
12647 |
|
| - |
|
12648 |
/**
|
| - |
|
12649 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
12650 |
* if it is not found.
|
| - |
|
12651 |
*/
|
| - |
|
12652 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
12653 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
12654 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
12655 |
return fields;
|
| - |
|
12656 |
}
|
| - |
|
12657 |
|
| - |
|
12658 |
/**
|
| - |
|
12659 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
12660 |
*/
|
| - |
|
12661 |
public static _Fields findByName(String name) {
|
| - |
|
12662 |
return byName.get(name);
|
| - |
|
12663 |
}
|
| - |
|
12664 |
|
| - |
|
12665 |
private final short _thriftId;
|
| - |
|
12666 |
private final String _fieldName;
|
| - |
|
12667 |
|
| - |
|
12668 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
12669 |
_thriftId = thriftId;
|
| - |
|
12670 |
_fieldName = fieldName;
|
| - |
|
12671 |
}
|
| - |
|
12672 |
|
| - |
|
12673 |
public short getThriftFieldId() {
|
| - |
|
12674 |
return _thriftId;
|
| - |
|
12675 |
}
|
| - |
|
12676 |
|
| - |
|
12677 |
public String getFieldName() {
|
| - |
|
12678 |
return _fieldName;
|
| - |
|
12679 |
}
|
| - |
|
12680 |
}
|
| - |
|
12681 |
|
| - |
|
12682 |
// isset id assignments
|
| - |
|
12683 |
|
| - |
|
12684 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
12685 |
static {
|
| - |
|
12686 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
12687 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12688 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| - |
|
12689 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
| - |
|
12690 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
12691 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
|
| - |
|
12692 |
}
|
| - |
|
12693 |
|
| - |
|
12694 |
public getItemIds_result() {
|
| - |
|
12695 |
}
|
| - |
|
12696 |
|
| - |
|
12697 |
public getItemIds_result(
|
| - |
|
12698 |
List<Long> success)
|
| - |
|
12699 |
{
|
| - |
|
12700 |
this();
|
| - |
|
12701 |
this.success = success;
|
| - |
|
12702 |
}
|
| - |
|
12703 |
|
| - |
|
12704 |
/**
|
| - |
|
12705 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
12706 |
*/
|
| - |
|
12707 |
public getItemIds_result(getItemIds_result other) {
|
| - |
|
12708 |
if (other.isSetSuccess()) {
|
| - |
|
12709 |
List<Long> __this__success = new ArrayList<Long>();
|
| - |
|
12710 |
for (Long other_element : other.success) {
|
| - |
|
12711 |
__this__success.add(other_element);
|
| - |
|
12712 |
}
|
| - |
|
12713 |
this.success = __this__success;
|
| - |
|
12714 |
}
|
| - |
|
12715 |
}
|
| - |
|
12716 |
|
| - |
|
12717 |
public getItemIds_result deepCopy() {
|
| - |
|
12718 |
return new getItemIds_result(this);
|
| - |
|
12719 |
}
|
| - |
|
12720 |
|
| - |
|
12721 |
@Override
|
| - |
|
12722 |
public void clear() {
|
| - |
|
12723 |
this.success = null;
|
| - |
|
12724 |
}
|
| - |
|
12725 |
|
| - |
|
12726 |
public int getSuccessSize() {
|
| - |
|
12727 |
return (this.success == null) ? 0 : this.success.size();
|
| - |
|
12728 |
}
|
| - |
|
12729 |
|
| - |
|
12730 |
public java.util.Iterator<Long> getSuccessIterator() {
|
| - |
|
12731 |
return (this.success == null) ? null : this.success.iterator();
|
| - |
|
12732 |
}
|
| - |
|
12733 |
|
| - |
|
12734 |
public void addToSuccess(long elem) {
|
| - |
|
12735 |
if (this.success == null) {
|
| - |
|
12736 |
this.success = new ArrayList<Long>();
|
| - |
|
12737 |
}
|
| - |
|
12738 |
this.success.add(elem);
|
| - |
|
12739 |
}
|
| - |
|
12740 |
|
| - |
|
12741 |
public List<Long> getSuccess() {
|
| - |
|
12742 |
return this.success;
|
| - |
|
12743 |
}
|
| - |
|
12744 |
|
| - |
|
12745 |
public void setSuccess(List<Long> success) {
|
| - |
|
12746 |
this.success = success;
|
| - |
|
12747 |
}
|
| - |
|
12748 |
|
| - |
|
12749 |
public void unsetSuccess() {
|
| - |
|
12750 |
this.success = null;
|
| - |
|
12751 |
}
|
| - |
|
12752 |
|
| - |
|
12753 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
12754 |
public boolean isSetSuccess() {
|
| - |
|
12755 |
return this.success != null;
|
| - |
|
12756 |
}
|
| - |
|
12757 |
|
| - |
|
12758 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
12759 |
if (!value) {
|
| - |
|
12760 |
this.success = null;
|
| - |
|
12761 |
}
|
| - |
|
12762 |
}
|
| - |
|
12763 |
|
| - |
|
12764 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
12765 |
switch (field) {
|
| - |
|
12766 |
case SUCCESS:
|
| - |
|
12767 |
if (value == null) {
|
| - |
|
12768 |
unsetSuccess();
|
| - |
|
12769 |
} else {
|
| - |
|
12770 |
setSuccess((List<Long>)value);
|
| - |
|
12771 |
}
|
| - |
|
12772 |
break;
|
| - |
|
12773 |
|
| - |
|
12774 |
}
|
| - |
|
12775 |
}
|
| - |
|
12776 |
|
| - |
|
12777 |
public Object getFieldValue(_Fields field) {
|
| - |
|
12778 |
switch (field) {
|
| - |
|
12779 |
case SUCCESS:
|
| - |
|
12780 |
return getSuccess();
|
| - |
|
12781 |
|
| - |
|
12782 |
}
|
| - |
|
12783 |
throw new IllegalStateException();
|
| - |
|
12784 |
}
|
| - |
|
12785 |
|
| - |
|
12786 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
12787 |
public boolean isSet(_Fields field) {
|
| - |
|
12788 |
if (field == null) {
|
| - |
|
12789 |
throw new IllegalArgumentException();
|
| - |
|
12790 |
}
|
| - |
|
12791 |
|
| - |
|
12792 |
switch (field) {
|
| - |
|
12793 |
case SUCCESS:
|
| - |
|
12794 |
return isSetSuccess();
|
| - |
|
12795 |
}
|
| - |
|
12796 |
throw new IllegalStateException();
|
| - |
|
12797 |
}
|
| - |
|
12798 |
|
| - |
|
12799 |
@Override
|
| - |
|
12800 |
public boolean equals(Object that) {
|
| - |
|
12801 |
if (that == null)
|
| - |
|
12802 |
return false;
|
| - |
|
12803 |
if (that instanceof getItemIds_result)
|
| - |
|
12804 |
return this.equals((getItemIds_result)that);
|
| - |
|
12805 |
return false;
|
| - |
|
12806 |
}
|
| - |
|
12807 |
|
| - |
|
12808 |
public boolean equals(getItemIds_result that) {
|
| - |
|
12809 |
if (that == null)
|
| - |
|
12810 |
return false;
|
| - |
|
12811 |
|
| - |
|
12812 |
boolean this_present_success = true && this.isSetSuccess();
|
| - |
|
12813 |
boolean that_present_success = true && that.isSetSuccess();
|
| - |
|
12814 |
if (this_present_success || that_present_success) {
|
| - |
|
12815 |
if (!(this_present_success && that_present_success))
|
| - |
|
12816 |
return false;
|
| - |
|
12817 |
if (!this.success.equals(that.success))
|
| - |
|
12818 |
return false;
|
| - |
|
12819 |
}
|
| - |
|
12820 |
|
| - |
|
12821 |
return true;
|
| - |
|
12822 |
}
|
| - |
|
12823 |
|
| - |
|
12824 |
@Override
|
| - |
|
12825 |
public int hashCode() {
|
| - |
|
12826 |
return 0;
|
| - |
|
12827 |
}
|
| - |
|
12828 |
|
| - |
|
12829 |
public int compareTo(getItemIds_result other) {
|
| - |
|
12830 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
12831 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
12832 |
}
|
| - |
|
12833 |
|
| - |
|
12834 |
int lastComparison = 0;
|
| - |
|
12835 |
getItemIds_result typedOther = (getItemIds_result)other;
|
| - |
|
12836 |
|
| - |
|
12837 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
12838 |
if (lastComparison != 0) {
|
| - |
|
12839 |
return lastComparison;
|
| - |
|
12840 |
}
|
| - |
|
12841 |
if (isSetSuccess()) {
|
| - |
|
12842 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
12843 |
if (lastComparison != 0) {
|
| - |
|
12844 |
return lastComparison;
|
| - |
|
12845 |
}
|
| - |
|
12846 |
}
|
| - |
|
12847 |
return 0;
|
| - |
|
12848 |
}
|
| - |
|
12849 |
|
| - |
|
12850 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
12851 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
12852 |
}
|
| - |
|
12853 |
|
| - |
|
12854 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
12855 |
org.apache.thrift.protocol.TField field;
|
| - |
|
12856 |
iprot.readStructBegin();
|
| - |
|
12857 |
while (true)
|
| - |
|
12858 |
{
|
| - |
|
12859 |
field = iprot.readFieldBegin();
|
| - |
|
12860 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
12861 |
break;
|
| - |
|
12862 |
}
|
| - |
|
12863 |
switch (field.id) {
|
| - |
|
12864 |
case 0: // SUCCESS
|
| - |
|
12865 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
| - |
|
12866 |
{
|
| - |
|
12867 |
org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
|
| - |
|
12868 |
this.success = new ArrayList<Long>(_list20.size);
|
| - |
|
12869 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
| - |
|
12870 |
{
|
| - |
|
12871 |
long _elem22; // required
|
| - |
|
12872 |
_elem22 = iprot.readI64();
|
| - |
|
12873 |
this.success.add(_elem22);
|
| - |
|
12874 |
}
|
| - |
|
12875 |
iprot.readListEnd();
|
| - |
|
12876 |
}
|
| - |
|
12877 |
} else {
|
| - |
|
12878 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12879 |
}
|
| - |
|
12880 |
break;
|
| - |
|
12881 |
default:
|
| - |
|
12882 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12883 |
}
|
| - |
|
12884 |
iprot.readFieldEnd();
|
| - |
|
12885 |
}
|
| - |
|
12886 |
iprot.readStructEnd();
|
| - |
|
12887 |
validate();
|
| - |
|
12888 |
}
|
| - |
|
12889 |
|
| - |
|
12890 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
12891 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
12892 |
|
| - |
|
12893 |
if (this.isSetSuccess()) {
|
| - |
|
12894 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
12895 |
{
|
| - |
|
12896 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| - |
|
12897 |
for (long _iter23 : this.success)
|
| - |
|
12898 |
{
|
| - |
|
12899 |
oprot.writeI64(_iter23);
|
| - |
|
12900 |
}
|
| - |
|
12901 |
oprot.writeListEnd();
|
| - |
|
12902 |
}
|
| - |
|
12903 |
oprot.writeFieldEnd();
|
| - |
|
12904 |
}
|
| - |
|
12905 |
oprot.writeFieldStop();
|
| - |
|
12906 |
oprot.writeStructEnd();
|
| - |
|
12907 |
}
|
| - |
|
12908 |
|
| - |
|
12909 |
@Override
|
| - |
|
12910 |
public String toString() {
|
| - |
|
12911 |
StringBuilder sb = new StringBuilder("getItemIds_result(");
|
| - |
|
12912 |
boolean first = true;
|
| - |
|
12913 |
|
| - |
|
12914 |
sb.append("success:");
|
| - |
|
12915 |
if (this.success == null) {
|
| - |
|
12916 |
sb.append("null");
|
| 12030 |
} else {
|
12917 |
} else {
|
| 12031 |
sb.append(this.success);
|
12918 |
sb.append(this.success);
|
| 12032 |
}
|
12919 |
}
|
| 12033 |
first = false;
|
12920 |
first = false;
|
| 12034 |
sb.append(")");
|
12921 |
sb.append(")");
|