| 2820 |
chandransh |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 2820 |
chandransh |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.warehouse;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 2820 |
chandransh |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class WarehouseService {
|
|
|
24 |
|
| 3374 |
rajveer |
25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
| 2820 |
chandransh |
26 |
|
|
|
27 |
/**
|
| 4496 |
mandeep.dh |
28 |
* Retrieves serialized inventory item given a serial number
|
| 2832 |
chandransh |
29 |
*
|
| 4496 |
mandeep.dh |
30 |
* @param serialNumber
|
| 2832 |
chandransh |
31 |
*/
|
| 4541 |
mandeep.dh |
32 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2832 |
chandransh |
33 |
|
|
|
34 |
/**
|
| 5361 |
mandeep.dh |
35 |
* Retrieves non-serialized inventory item from a given supplier
|
| 2820 |
chandransh |
36 |
*
|
| 5530 |
mandeep.dh |
37 |
* @param itemNumber
|
| 4496 |
mandeep.dh |
38 |
* @param itemId
|
| 5530 |
mandeep.dh |
39 |
* @param fulfilmentWarehouseId
|
| 2820 |
chandransh |
40 |
*/
|
| 5530 |
mandeep.dh |
41 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
42 |
|
|
|
43 |
/**
|
| 4496 |
mandeep.dh |
44 |
* Scan non-serialized items.
|
| 2820 |
chandransh |
45 |
*
|
| 5361 |
mandeep.dh |
46 |
* @param inventoryItem
|
| 2820 |
chandransh |
47 |
* @param type
|
| 4496 |
mandeep.dh |
48 |
* @param quantity
|
| 5361 |
mandeep.dh |
49 |
* @param billingWarehouseId
|
| 2820 |
chandransh |
50 |
*/
|
| 5361 |
mandeep.dh |
51 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
52 |
|
| 4496 |
mandeep.dh |
53 |
/**
|
|
|
54 |
* Scan serialized items linked with an order. Returns its price.
|
|
|
55 |
*
|
| 4555 |
mandeep.dh |
56 |
* @param serialNumber
|
| 4496 |
mandeep.dh |
57 |
* @param type
|
|
|
58 |
* @param orderId
|
| 5110 |
mandeep.dh |
59 |
* @param fulfilmentWarehouseId
|
|
|
60 |
* @param quantity
|
|
|
61 |
* @param billingWarehouseId
|
| 4496 |
mandeep.dh |
62 |
*/
|
| 5110 |
mandeep.dh |
63 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
64 |
|
|
|
65 |
/**
|
|
|
66 |
* Scan non-serialized items linked with an order.
|
|
|
67 |
*
|
| 5361 |
mandeep.dh |
68 |
* @param inventoryItem
|
| 4496 |
mandeep.dh |
69 |
* @param type
|
|
|
70 |
* @param quantity
|
|
|
71 |
* @param orderId
|
| 5110 |
mandeep.dh |
72 |
* @param fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
73 |
* @param billingWarehouseId
|
| 4496 |
mandeep.dh |
74 |
*/
|
| 5361 |
mandeep.dh |
75 |
public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
76 |
|
|
|
77 |
/**
|
|
|
78 |
* Created item number to item id mapping
|
|
|
79 |
*
|
|
|
80 |
* @param itemNumber
|
|
|
81 |
* @param itemId
|
|
|
82 |
*/
|
|
|
83 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException;
|
|
|
84 |
|
| 4622 |
amit.gupta |
85 |
/**
|
|
|
86 |
* Get itemNumber mappings for itemId
|
|
|
87 |
*
|
|
|
88 |
* @param itemId
|
|
|
89 |
*/
|
|
|
90 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException;
|
|
|
91 |
|
| 5110 |
mandeep.dh |
92 |
/**
|
|
|
93 |
* Gets item ids for a given item number
|
|
|
94 |
*
|
|
|
95 |
* @param itemNumber
|
|
|
96 |
*/
|
|
|
97 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException;
|
|
|
98 |
|
| 5185 |
mandeep.dh |
99 |
/**
|
|
|
100 |
* Retrieves all inventory items given a last scan type
|
|
|
101 |
*
|
|
|
102 |
* @param lastScanType
|
|
|
103 |
*/
|
|
|
104 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
105 |
|
|
|
106 |
/**
|
|
|
107 |
* Retrieves inventory item given a inventoryItem id
|
|
|
108 |
*
|
|
|
109 |
* @param inventoryItemId
|
|
|
110 |
*/
|
|
|
111 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
112 |
|
| 5372 |
mandeep.dh |
113 |
/**
|
|
|
114 |
* Returns the purchase scans grouped by items for Purchase register reconciliation
|
|
|
115 |
*
|
|
|
116 |
* @param startDate
|
|
|
117 |
* @param endDate
|
|
|
118 |
*/
|
|
|
119 |
public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
120 |
|
| 5496 |
mandeep.dh |
121 |
/**
|
|
|
122 |
* Returns the invoices and the count of scans against on a given day.
|
|
|
123 |
*
|
|
|
124 |
* @param date
|
|
|
125 |
*/
|
|
|
126 |
public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException;
|
|
|
127 |
|
| 5620 |
mandeep.dh |
128 |
/**
|
|
|
129 |
* Returns inventory item for a given order
|
|
|
130 |
*
|
|
|
131 |
* @param orderId
|
|
|
132 |
*/
|
|
|
133 |
public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
134 |
|
| 2820 |
chandransh |
135 |
}
|
|
|
136 |
|
| 3430 |
rajveer |
137 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
138 |
|
| 4496 |
mandeep.dh |
139 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
140 |
|
| 5530 |
mandeep.dh |
141 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
142 |
|
| 5361 |
mandeep.dh |
143 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
144 |
|
| 5110 |
mandeep.dh |
145 |
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;
|
| 4496 |
mandeep.dh |
146 |
|
| 5361 |
mandeep.dh |
147 |
public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
148 |
|
|
|
149 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
150 |
|
| 4622 |
amit.gupta |
151 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
152 |
|
| 5110 |
mandeep.dh |
153 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
154 |
|
| 5185 |
mandeep.dh |
155 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
156 |
|
|
|
157 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
158 |
|
| 5372 |
mandeep.dh |
159 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
160 |
|
| 5496 |
mandeep.dh |
161 |
public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
162 |
|
| 5620 |
mandeep.dh |
163 |
public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
164 |
|
| 3430 |
rajveer |
165 |
}
|
|
|
166 |
|
| 3374 |
rajveer |
167 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
168 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
169 |
public Factory() {}
|
|
|
170 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
171 |
return new Client(prot);
|
|
|
172 |
}
|
|
|
173 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
174 |
return new Client(iprot, oprot);
|
|
|
175 |
}
|
|
|
176 |
}
|
|
|
177 |
|
|
|
178 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 2820 |
chandransh |
179 |
{
|
| 3430 |
rajveer |
180 |
super(prot, prot);
|
| 2820 |
chandransh |
181 |
}
|
|
|
182 |
|
| 3430 |
rajveer |
183 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
184 |
super(iprot, oprot);
|
| 2820 |
chandransh |
185 |
}
|
|
|
186 |
|
| 4541 |
mandeep.dh |
187 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
188 |
{
|
| 4496 |
mandeep.dh |
189 |
send_getInventoryItem(serialNumber);
|
|
|
190 |
return recv_getInventoryItem();
|
| 2832 |
chandransh |
191 |
}
|
|
|
192 |
|
| 4496 |
mandeep.dh |
193 |
public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
|
| 2832 |
chandransh |
194 |
{
|
| 4496 |
mandeep.dh |
195 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
196 |
args.setSerialNumber(serialNumber);
|
|
|
197 |
sendBase("getInventoryItem", args);
|
| 2832 |
chandransh |
198 |
}
|
|
|
199 |
|
| 4541 |
mandeep.dh |
200 |
public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
201 |
{
|
| 4496 |
mandeep.dh |
202 |
getInventoryItem_result result = new getInventoryItem_result();
|
|
|
203 |
receiveBase(result, "getInventoryItem");
|
| 2832 |
chandransh |
204 |
if (result.isSetSuccess()) {
|
|
|
205 |
return result.success;
|
|
|
206 |
}
|
| 4541 |
mandeep.dh |
207 |
if (result.wex != null) {
|
|
|
208 |
throw result.wex;
|
|
|
209 |
}
|
| 4496 |
mandeep.dh |
210 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
|
|
211 |
}
|
|
|
212 |
|
| 5530 |
mandeep.dh |
213 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
214 |
{
|
| 5530 |
mandeep.dh |
215 |
send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
216 |
return recv_getNonSeralizedInventoryItem();
|
| 4496 |
mandeep.dh |
217 |
}
|
|
|
218 |
|
| 5530 |
mandeep.dh |
219 |
public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
220 |
{
|
| 5361 |
mandeep.dh |
221 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 5530 |
mandeep.dh |
222 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
223 |
args.setItemId(itemId);
|
| 5530 |
mandeep.dh |
224 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
225 |
sendBase("getNonSeralizedInventoryItem", args);
|
| 4496 |
mandeep.dh |
226 |
}
|
|
|
227 |
|
| 5361 |
mandeep.dh |
228 |
public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
229 |
{
|
| 5361 |
mandeep.dh |
230 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
231 |
receiveBase(result, "getNonSeralizedInventoryItem");
|
| 4496 |
mandeep.dh |
232 |
if (result.isSetSuccess()) {
|
|
|
233 |
return result.success;
|
| 2832 |
chandransh |
234 |
}
|
| 5361 |
mandeep.dh |
235 |
if (result.wex != null) {
|
|
|
236 |
throw result.wex;
|
| 2820 |
chandransh |
237 |
}
|
| 5361 |
mandeep.dh |
238 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
|
| 4496 |
mandeep.dh |
239 |
}
|
|
|
240 |
|
| 5361 |
mandeep.dh |
241 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
242 |
{
|
| 5361 |
mandeep.dh |
243 |
send_scan(inventoryItem, type, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
244 |
recv_scan();
|
| 3383 |
chandransh |
245 |
}
|
|
|
246 |
|
| 5361 |
mandeep.dh |
247 |
public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
248 |
{
|
| 4496 |
mandeep.dh |
249 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
250 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
251 |
args.setType(type);
|
|
|
252 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
253 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
254 |
sendBase("scan", args);
|
| 3383 |
chandransh |
255 |
}
|
|
|
256 |
|
| 4496 |
mandeep.dh |
257 |
public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
258 |
{
|
| 4496 |
mandeep.dh |
259 |
scan_result result = new scan_result();
|
|
|
260 |
receiveBase(result, "scan");
|
|
|
261 |
if (result.wex != null) {
|
|
|
262 |
throw result.wex;
|
|
|
263 |
}
|
|
|
264 |
return;
|
|
|
265 |
}
|
|
|
266 |
|
| 5110 |
mandeep.dh |
267 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
268 |
{
|
| 5110 |
mandeep.dh |
269 |
send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
270 |
return recv_scanSerializedItemForOrder();
|
|
|
271 |
}
|
|
|
272 |
|
| 5110 |
mandeep.dh |
273 |
public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
274 |
{
|
|
|
275 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
276 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
277 |
args.setType(type);
|
|
|
278 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
279 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
280 |
args.setQuantity(quantity);
|
|
|
281 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
282 |
sendBase("scanSerializedItemForOrder", args);
|
|
|
283 |
}
|
|
|
284 |
|
| 4555 |
mandeep.dh |
285 |
public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
286 |
{
|
|
|
287 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
|
|
288 |
receiveBase(result, "scanSerializedItemForOrder");
|
| 3383 |
chandransh |
289 |
if (result.isSetSuccess()) {
|
|
|
290 |
return result.success;
|
|
|
291 |
}
|
|
|
292 |
if (result.wex != null) {
|
|
|
293 |
throw result.wex;
|
|
|
294 |
}
|
| 4496 |
mandeep.dh |
295 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
| 3383 |
chandransh |
296 |
}
|
|
|
297 |
|
| 5361 |
mandeep.dh |
298 |
public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
299 |
{
|
| 5361 |
mandeep.dh |
300 |
send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
|
|
|
301 |
return recv_scanForOrder();
|
| 2820 |
chandransh |
302 |
}
|
|
|
303 |
|
| 5361 |
mandeep.dh |
304 |
public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
305 |
{
|
| 4496 |
mandeep.dh |
306 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
307 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
308 |
args.setType(type);
|
| 4496 |
mandeep.dh |
309 |
args.setQuantity(quantity);
|
|
|
310 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
311 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
312 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
313 |
sendBase("scanForOrder", args);
|
| 2820 |
chandransh |
314 |
}
|
|
|
315 |
|
| 5361 |
mandeep.dh |
316 |
public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
317 |
{
|
| 4496 |
mandeep.dh |
318 |
scanForOrder_result result = new scanForOrder_result();
|
|
|
319 |
receiveBase(result, "scanForOrder");
|
| 5361 |
mandeep.dh |
320 |
if (result.isSetSuccess()) {
|
|
|
321 |
return result.success;
|
|
|
322 |
}
|
| 2820 |
chandransh |
323 |
if (result.wex != null) {
|
|
|
324 |
throw result.wex;
|
|
|
325 |
}
|
| 5361 |
mandeep.dh |
326 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
|
| 2820 |
chandransh |
327 |
}
|
|
|
328 |
|
| 4496 |
mandeep.dh |
329 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
330 |
{
|
| 4496 |
mandeep.dh |
331 |
send_createItemNumberMapping(itemNumber, itemId);
|
|
|
332 |
recv_createItemNumberMapping();
|
| 2820 |
chandransh |
333 |
}
|
|
|
334 |
|
| 4496 |
mandeep.dh |
335 |
public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
336 |
{
|
| 4496 |
mandeep.dh |
337 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
| 3430 |
rajveer |
338 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
339 |
args.setItemId(itemId);
|
|
|
340 |
sendBase("createItemNumberMapping", args);
|
| 2820 |
chandransh |
341 |
}
|
|
|
342 |
|
| 4496 |
mandeep.dh |
343 |
public void recv_createItemNumberMapping() throws org.apache.thrift.TException
|
| 2820 |
chandransh |
344 |
{
|
| 4496 |
mandeep.dh |
345 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
346 |
receiveBase(result, "createItemNumberMapping");
|
| 2820 |
chandransh |
347 |
return;
|
|
|
348 |
}
|
|
|
349 |
|
| 4622 |
amit.gupta |
350 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
351 |
{
|
|
|
352 |
send_getItemNumbers(itemId);
|
|
|
353 |
return recv_getItemNumbers();
|
|
|
354 |
}
|
|
|
355 |
|
|
|
356 |
public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
357 |
{
|
|
|
358 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
359 |
args.setItemId(itemId);
|
|
|
360 |
sendBase("getItemNumbers", args);
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
|
|
|
364 |
{
|
|
|
365 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
366 |
receiveBase(result, "getItemNumbers");
|
|
|
367 |
if (result.isSetSuccess()) {
|
|
|
368 |
return result.success;
|
|
|
369 |
}
|
|
|
370 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
|
|
371 |
}
|
|
|
372 |
|
| 5110 |
mandeep.dh |
373 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
374 |
{
|
|
|
375 |
send_getItemIds(itemNumber);
|
|
|
376 |
return recv_getItemIds();
|
|
|
377 |
}
|
|
|
378 |
|
|
|
379 |
public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
380 |
{
|
|
|
381 |
getItemIds_args args = new getItemIds_args();
|
|
|
382 |
args.setItemNumber(itemNumber);
|
|
|
383 |
sendBase("getItemIds", args);
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
public List<Long> recv_getItemIds() throws org.apache.thrift.TException
|
|
|
387 |
{
|
|
|
388 |
getItemIds_result result = new getItemIds_result();
|
|
|
389 |
receiveBase(result, "getItemIds");
|
|
|
390 |
if (result.isSetSuccess()) {
|
|
|
391 |
return result.success;
|
|
|
392 |
}
|
|
|
393 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
|
|
394 |
}
|
|
|
395 |
|
| 5185 |
mandeep.dh |
396 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
397 |
{
|
|
|
398 |
send_getInventoryItemsFromLastScanType(lastScanType);
|
|
|
399 |
return recv_getInventoryItemsFromLastScanType();
|
|
|
400 |
}
|
|
|
401 |
|
|
|
402 |
public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
|
|
|
403 |
{
|
|
|
404 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
405 |
args.setLastScanType(lastScanType);
|
|
|
406 |
sendBase("getInventoryItemsFromLastScanType", args);
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
410 |
{
|
|
|
411 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
412 |
receiveBase(result, "getInventoryItemsFromLastScanType");
|
|
|
413 |
if (result.isSetSuccess()) {
|
|
|
414 |
return result.success;
|
|
|
415 |
}
|
|
|
416 |
if (result.wex != null) {
|
|
|
417 |
throw result.wex;
|
|
|
418 |
}
|
|
|
419 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
|
|
|
420 |
}
|
|
|
421 |
|
|
|
422 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
423 |
{
|
|
|
424 |
send_getInventoryItemFromId(inventoryItemId);
|
|
|
425 |
return recv_getInventoryItemFromId();
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
|
|
|
429 |
{
|
|
|
430 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
431 |
args.setInventoryItemId(inventoryItemId);
|
|
|
432 |
sendBase("getInventoryItemFromId", args);
|
|
|
433 |
}
|
|
|
434 |
|
|
|
435 |
public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
436 |
{
|
|
|
437 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
438 |
receiveBase(result, "getInventoryItemFromId");
|
|
|
439 |
if (result.isSetSuccess()) {
|
|
|
440 |
return result.success;
|
|
|
441 |
}
|
|
|
442 |
if (result.wex != null) {
|
|
|
443 |
throw result.wex;
|
|
|
444 |
}
|
|
|
445 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
|
|
|
446 |
}
|
|
|
447 |
|
| 5372 |
mandeep.dh |
448 |
public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
449 |
{
|
|
|
450 |
send_getPurchaseScans(startDate, endDate);
|
|
|
451 |
return recv_getPurchaseScans();
|
|
|
452 |
}
|
|
|
453 |
|
|
|
454 |
public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
455 |
{
|
|
|
456 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
457 |
args.setStartDate(startDate);
|
|
|
458 |
args.setEndDate(endDate);
|
|
|
459 |
sendBase("getPurchaseScans", args);
|
|
|
460 |
}
|
|
|
461 |
|
|
|
462 |
public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
|
|
|
463 |
{
|
|
|
464 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
465 |
receiveBase(result, "getPurchaseScans");
|
|
|
466 |
if (result.isSetSuccess()) {
|
|
|
467 |
return result.success;
|
|
|
468 |
}
|
|
|
469 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
|
|
|
470 |
}
|
|
|
471 |
|
| 5496 |
mandeep.dh |
472 |
public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
|
|
|
473 |
{
|
|
|
474 |
send_fetchScansPerInvoiceNumber(date);
|
|
|
475 |
return recv_fetchScansPerInvoiceNumber();
|
|
|
476 |
}
|
|
|
477 |
|
|
|
478 |
public void send_fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
|
|
|
479 |
{
|
|
|
480 |
fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
|
|
|
481 |
args.setDate(date);
|
|
|
482 |
sendBase("fetchScansPerInvoiceNumber", args);
|
|
|
483 |
}
|
|
|
484 |
|
|
|
485 |
public List<InvoiceScan> recv_fetchScansPerInvoiceNumber() throws org.apache.thrift.TException
|
|
|
486 |
{
|
|
|
487 |
fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
|
|
|
488 |
receiveBase(result, "fetchScansPerInvoiceNumber");
|
|
|
489 |
if (result.isSetSuccess()) {
|
|
|
490 |
return result.success;
|
|
|
491 |
}
|
|
|
492 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
|
|
|
493 |
}
|
|
|
494 |
|
| 5620 |
mandeep.dh |
495 |
public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
496 |
{
|
|
|
497 |
send_getInventoryItemFromOrder(orderId);
|
|
|
498 |
return recv_getInventoryItemFromOrder();
|
|
|
499 |
}
|
|
|
500 |
|
|
|
501 |
public void send_getInventoryItemFromOrder(long orderId) throws org.apache.thrift.TException
|
|
|
502 |
{
|
|
|
503 |
getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
|
|
|
504 |
args.setOrderId(orderId);
|
|
|
505 |
sendBase("getInventoryItemFromOrder", args);
|
|
|
506 |
}
|
|
|
507 |
|
|
|
508 |
public InventoryItem recv_getInventoryItemFromOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
509 |
{
|
|
|
510 |
getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
|
|
|
511 |
receiveBase(result, "getInventoryItemFromOrder");
|
|
|
512 |
if (result.isSetSuccess()) {
|
|
|
513 |
return result.success;
|
|
|
514 |
}
|
|
|
515 |
if (result.we != null) {
|
|
|
516 |
throw result.we;
|
|
|
517 |
}
|
|
|
518 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
|
|
|
519 |
}
|
|
|
520 |
|
| 2820 |
chandransh |
521 |
}
|
| 3430 |
rajveer |
522 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
523 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
524 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
525 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
526 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
527 |
this.clientManager = clientManager;
|
|
|
528 |
this.protocolFactory = protocolFactory;
|
|
|
529 |
}
|
|
|
530 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
531 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
532 |
}
|
| 2820 |
chandransh |
533 |
}
|
|
|
534 |
|
| 3430 |
rajveer |
535 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
536 |
super(protocolFactory, clientManager, transport);
|
|
|
537 |
}
|
| 2820 |
chandransh |
538 |
|
| 4496 |
mandeep.dh |
539 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
540 |
checkReady();
|
| 4496 |
mandeep.dh |
541 |
getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
542 |
this.___currentMethod = method_call;
|
|
|
543 |
___manager.call(method_call);
|
|
|
544 |
}
|
|
|
545 |
|
| 4496 |
mandeep.dh |
546 |
public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
547 |
private String serialNumber;
|
|
|
548 |
public getInventoryItem_call(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
549 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
550 |
this.serialNumber = serialNumber;
|
| 3430 |
rajveer |
551 |
}
|
|
|
552 |
|
|
|
553 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
554 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
555 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
556 |
args.setSerialNumber(serialNumber);
|
| 3430 |
rajveer |
557 |
args.write(prot);
|
|
|
558 |
prot.writeMessageEnd();
|
|
|
559 |
}
|
|
|
560 |
|
| 4541 |
mandeep.dh |
561 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
562 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
563 |
throw new IllegalStateException("Method call not finished!");
|
|
|
564 |
}
|
|
|
565 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
566 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
567 |
return (new Client(prot)).recv_getInventoryItem();
|
| 3430 |
rajveer |
568 |
}
|
|
|
569 |
}
|
|
|
570 |
|
| 5530 |
mandeep.dh |
571 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
572 |
checkReady();
|
| 5530 |
mandeep.dh |
573 |
getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
574 |
this.___currentMethod = method_call;
|
|
|
575 |
___manager.call(method_call);
|
|
|
576 |
}
|
|
|
577 |
|
| 5361 |
mandeep.dh |
578 |
public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5530 |
mandeep.dh |
579 |
private String itemNumber;
|
| 4496 |
mandeep.dh |
580 |
private long itemId;
|
| 5530 |
mandeep.dh |
581 |
private long fulfilmentWarehouseId;
|
|
|
582 |
public getNonSeralizedInventoryItem_call(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
583 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5530 |
mandeep.dh |
584 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
585 |
this.itemId = itemId;
|
| 5530 |
mandeep.dh |
586 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 3430 |
rajveer |
587 |
}
|
|
|
588 |
|
|
|
589 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 5361 |
mandeep.dh |
590 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
591 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 5530 |
mandeep.dh |
592 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
593 |
args.setItemId(itemId);
|
| 5530 |
mandeep.dh |
594 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 3430 |
rajveer |
595 |
args.write(prot);
|
|
|
596 |
prot.writeMessageEnd();
|
|
|
597 |
}
|
|
|
598 |
|
| 5361 |
mandeep.dh |
599 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
600 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
601 |
throw new IllegalStateException("Method call not finished!");
|
|
|
602 |
}
|
|
|
603 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
604 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
605 |
return (new Client(prot)).recv_getNonSeralizedInventoryItem();
|
| 3430 |
rajveer |
606 |
}
|
|
|
607 |
}
|
|
|
608 |
|
| 5361 |
mandeep.dh |
609 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
610 |
checkReady();
|
| 5361 |
mandeep.dh |
611 |
scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
612 |
this.___currentMethod = method_call;
|
|
|
613 |
___manager.call(method_call);
|
|
|
614 |
}
|
|
|
615 |
|
| 4496 |
mandeep.dh |
616 |
public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
617 |
private InventoryItem inventoryItem;
|
| 3430 |
rajveer |
618 |
private ScanType type;
|
| 4496 |
mandeep.dh |
619 |
private long quantity;
|
| 5361 |
mandeep.dh |
620 |
private long billingWarehouseId;
|
|
|
621 |
public scan_call(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
622 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
623 |
this.inventoryItem = inventoryItem;
|
| 3430 |
rajveer |
624 |
this.type = type;
|
| 4496 |
mandeep.dh |
625 |
this.quantity = quantity;
|
| 5361 |
mandeep.dh |
626 |
this.billingWarehouseId = billingWarehouseId;
|
| 3430 |
rajveer |
627 |
}
|
|
|
628 |
|
|
|
629 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
630 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
631 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
632 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
633 |
args.setType(type);
|
| 4496 |
mandeep.dh |
634 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
635 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 3430 |
rajveer |
636 |
args.write(prot);
|
|
|
637 |
prot.writeMessageEnd();
|
|
|
638 |
}
|
|
|
639 |
|
|
|
640 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
641 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
642 |
throw new IllegalStateException("Method call not finished!");
|
|
|
643 |
}
|
|
|
644 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
645 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
646 |
(new Client(prot)).recv_scan();
|
| 3430 |
rajveer |
647 |
}
|
|
|
648 |
}
|
|
|
649 |
|
| 5110 |
mandeep.dh |
650 |
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 {
|
| 4496 |
mandeep.dh |
651 |
checkReady();
|
| 5110 |
mandeep.dh |
652 |
scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
653 |
this.___currentMethod = method_call;
|
|
|
654 |
___manager.call(method_call);
|
|
|
655 |
}
|
|
|
656 |
|
|
|
657 |
public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 4555 |
mandeep.dh |
658 |
private String serialNumber;
|
| 4496 |
mandeep.dh |
659 |
private ScanType type;
|
|
|
660 |
private long orderId;
|
| 5110 |
mandeep.dh |
661 |
private long fulfilmentWarehouseId;
|
|
|
662 |
private double quantity;
|
|
|
663 |
private long billingWarehouseId;
|
|
|
664 |
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 {
|
| 4496 |
mandeep.dh |
665 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4555 |
mandeep.dh |
666 |
this.serialNumber = serialNumber;
|
| 4496 |
mandeep.dh |
667 |
this.type = type;
|
|
|
668 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
669 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
670 |
this.quantity = quantity;
|
|
|
671 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
672 |
}
|
|
|
673 |
|
|
|
674 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
675 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
676 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
677 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
678 |
args.setType(type);
|
|
|
679 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
680 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
681 |
args.setQuantity(quantity);
|
|
|
682 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
683 |
args.write(prot);
|
|
|
684 |
prot.writeMessageEnd();
|
|
|
685 |
}
|
|
|
686 |
|
| 4555 |
mandeep.dh |
687 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
688 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
689 |
throw new IllegalStateException("Method call not finished!");
|
|
|
690 |
}
|
|
|
691 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
692 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
693 |
return (new Client(prot)).recv_scanSerializedItemForOrder();
|
|
|
694 |
}
|
|
|
695 |
}
|
|
|
696 |
|
| 5361 |
mandeep.dh |
697 |
public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
698 |
checkReady();
|
| 5361 |
mandeep.dh |
699 |
scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
700 |
this.___currentMethod = method_call;
|
|
|
701 |
___manager.call(method_call);
|
|
|
702 |
}
|
|
|
703 |
|
|
|
704 |
public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
705 |
private InventoryItem inventoryItem;
|
| 4496 |
mandeep.dh |
706 |
private ScanType type;
|
|
|
707 |
private long quantity;
|
|
|
708 |
private long orderId;
|
| 5110 |
mandeep.dh |
709 |
private long fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
710 |
private long billingWarehouseId;
|
|
|
711 |
public scanForOrder_call(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, 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 {
|
| 4496 |
mandeep.dh |
712 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
713 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
714 |
this.type = type;
|
|
|
715 |
this.quantity = quantity;
|
|
|
716 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
717 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
718 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
719 |
}
|
|
|
720 |
|
|
|
721 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
722 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
723 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
724 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
725 |
args.setType(type);
|
|
|
726 |
args.setQuantity(quantity);
|
|
|
727 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
728 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
729 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
730 |
args.write(prot);
|
|
|
731 |
prot.writeMessageEnd();
|
|
|
732 |
}
|
|
|
733 |
|
| 5361 |
mandeep.dh |
734 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
735 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
736 |
throw new IllegalStateException("Method call not finished!");
|
|
|
737 |
}
|
|
|
738 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
739 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
740 |
return (new Client(prot)).recv_scanForOrder();
|
| 4496 |
mandeep.dh |
741 |
}
|
|
|
742 |
}
|
|
|
743 |
|
|
|
744 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
745 |
checkReady();
|
|
|
746 |
createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
747 |
this.___currentMethod = method_call;
|
|
|
748 |
___manager.call(method_call);
|
|
|
749 |
}
|
|
|
750 |
|
|
|
751 |
public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
752 |
private String itemNumber;
|
|
|
753 |
private long itemId;
|
|
|
754 |
public createItemNumberMapping_call(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
755 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
756 |
this.itemNumber = itemNumber;
|
|
|
757 |
this.itemId = itemId;
|
|
|
758 |
}
|
|
|
759 |
|
|
|
760 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
761 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
762 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
|
|
763 |
args.setItemNumber(itemNumber);
|
|
|
764 |
args.setItemId(itemId);
|
|
|
765 |
args.write(prot);
|
|
|
766 |
prot.writeMessageEnd();
|
|
|
767 |
}
|
|
|
768 |
|
|
|
769 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
770 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
771 |
throw new IllegalStateException("Method call not finished!");
|
|
|
772 |
}
|
|
|
773 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
774 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
775 |
(new Client(prot)).recv_createItemNumberMapping();
|
|
|
776 |
}
|
|
|
777 |
}
|
|
|
778 |
|
| 4622 |
amit.gupta |
779 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
780 |
checkReady();
|
|
|
781 |
getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
782 |
this.___currentMethod = method_call;
|
|
|
783 |
___manager.call(method_call);
|
|
|
784 |
}
|
|
|
785 |
|
|
|
786 |
public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
787 |
private long itemId;
|
|
|
788 |
public getItemNumbers_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_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 {
|
|
|
789 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
790 |
this.itemId = itemId;
|
|
|
791 |
}
|
|
|
792 |
|
|
|
793 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
794 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
795 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
796 |
args.setItemId(itemId);
|
|
|
797 |
args.write(prot);
|
|
|
798 |
prot.writeMessageEnd();
|
|
|
799 |
}
|
|
|
800 |
|
|
|
801 |
public List<String> getResult() throws org.apache.thrift.TException {
|
|
|
802 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
803 |
throw new IllegalStateException("Method call not finished!");
|
|
|
804 |
}
|
|
|
805 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
806 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
807 |
return (new Client(prot)).recv_getItemNumbers();
|
|
|
808 |
}
|
|
|
809 |
}
|
|
|
810 |
|
| 5110 |
mandeep.dh |
811 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
812 |
checkReady();
|
|
|
813 |
getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
814 |
this.___currentMethod = method_call;
|
|
|
815 |
___manager.call(method_call);
|
|
|
816 |
}
|
|
|
817 |
|
|
|
818 |
public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
819 |
private String itemNumber;
|
|
|
820 |
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 {
|
|
|
821 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
822 |
this.itemNumber = itemNumber;
|
|
|
823 |
}
|
|
|
824 |
|
|
|
825 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
826 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
827 |
getItemIds_args args = new getItemIds_args();
|
|
|
828 |
args.setItemNumber(itemNumber);
|
|
|
829 |
args.write(prot);
|
|
|
830 |
prot.writeMessageEnd();
|
|
|
831 |
}
|
|
|
832 |
|
|
|
833 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
834 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
835 |
throw new IllegalStateException("Method call not finished!");
|
|
|
836 |
}
|
|
|
837 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
838 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
839 |
return (new Client(prot)).recv_getItemIds();
|
|
|
840 |
}
|
|
|
841 |
}
|
|
|
842 |
|
| 5185 |
mandeep.dh |
843 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
844 |
checkReady();
|
|
|
845 |
getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
846 |
this.___currentMethod = method_call;
|
|
|
847 |
___manager.call(method_call);
|
|
|
848 |
}
|
|
|
849 |
|
|
|
850 |
public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
851 |
private ScanType lastScanType;
|
|
|
852 |
public getInventoryItemsFromLastScanType_call(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_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 {
|
|
|
853 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
854 |
this.lastScanType = lastScanType;
|
|
|
855 |
}
|
|
|
856 |
|
|
|
857 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
858 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
859 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
860 |
args.setLastScanType(lastScanType);
|
|
|
861 |
args.write(prot);
|
|
|
862 |
prot.writeMessageEnd();
|
|
|
863 |
}
|
|
|
864 |
|
|
|
865 |
public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
866 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
867 |
throw new IllegalStateException("Method call not finished!");
|
|
|
868 |
}
|
|
|
869 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
870 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
871 |
return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
|
|
|
872 |
}
|
|
|
873 |
}
|
|
|
874 |
|
|
|
875 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
876 |
checkReady();
|
|
|
877 |
getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
878 |
this.___currentMethod = method_call;
|
|
|
879 |
___manager.call(method_call);
|
|
|
880 |
}
|
|
|
881 |
|
|
|
882 |
public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
883 |
private long inventoryItemId;
|
|
|
884 |
public getInventoryItemFromId_call(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_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 {
|
|
|
885 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
886 |
this.inventoryItemId = inventoryItemId;
|
|
|
887 |
}
|
|
|
888 |
|
|
|
889 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
890 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
891 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
892 |
args.setInventoryItemId(inventoryItemId);
|
|
|
893 |
args.write(prot);
|
|
|
894 |
prot.writeMessageEnd();
|
|
|
895 |
}
|
|
|
896 |
|
|
|
897 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
898 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
899 |
throw new IllegalStateException("Method call not finished!");
|
|
|
900 |
}
|
|
|
901 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
902 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
903 |
return (new Client(prot)).recv_getInventoryItemFromId();
|
|
|
904 |
}
|
|
|
905 |
}
|
|
|
906 |
|
| 5372 |
mandeep.dh |
907 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
908 |
checkReady();
|
|
|
909 |
getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
910 |
this.___currentMethod = method_call;
|
|
|
911 |
___manager.call(method_call);
|
|
|
912 |
}
|
|
|
913 |
|
|
|
914 |
public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
915 |
private long startDate;
|
|
|
916 |
private long endDate;
|
|
|
917 |
public getPurchaseScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_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 {
|
|
|
918 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
919 |
this.startDate = startDate;
|
|
|
920 |
this.endDate = endDate;
|
|
|
921 |
}
|
|
|
922 |
|
|
|
923 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
924 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
925 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
926 |
args.setStartDate(startDate);
|
|
|
927 |
args.setEndDate(endDate);
|
|
|
928 |
args.write(prot);
|
|
|
929 |
prot.writeMessageEnd();
|
|
|
930 |
}
|
|
|
931 |
|
|
|
932 |
public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
|
|
|
933 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
934 |
throw new IllegalStateException("Method call not finished!");
|
|
|
935 |
}
|
|
|
936 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
937 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
938 |
return (new Client(prot)).recv_getPurchaseScans();
|
|
|
939 |
}
|
|
|
940 |
}
|
|
|
941 |
|
| 5496 |
mandeep.dh |
942 |
public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
943 |
checkReady();
|
|
|
944 |
fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
945 |
this.___currentMethod = method_call;
|
|
|
946 |
___manager.call(method_call);
|
|
|
947 |
}
|
|
|
948 |
|
|
|
949 |
public static class fetchScansPerInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
950 |
private long date;
|
|
|
951 |
public fetchScansPerInvoiceNumber_call(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
952 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
953 |
this.date = date;
|
|
|
954 |
}
|
|
|
955 |
|
|
|
956 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
957 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
958 |
fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
|
|
|
959 |
args.setDate(date);
|
|
|
960 |
args.write(prot);
|
|
|
961 |
prot.writeMessageEnd();
|
|
|
962 |
}
|
|
|
963 |
|
|
|
964 |
public List<InvoiceScan> getResult() throws org.apache.thrift.TException {
|
|
|
965 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
966 |
throw new IllegalStateException("Method call not finished!");
|
|
|
967 |
}
|
|
|
968 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
969 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
970 |
return (new Client(prot)).recv_fetchScansPerInvoiceNumber();
|
|
|
971 |
}
|
|
|
972 |
}
|
|
|
973 |
|
| 5620 |
mandeep.dh |
974 |
public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
975 |
checkReady();
|
|
|
976 |
getInventoryItemFromOrder_call method_call = new getInventoryItemFromOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
977 |
this.___currentMethod = method_call;
|
|
|
978 |
___manager.call(method_call);
|
|
|
979 |
}
|
|
|
980 |
|
|
|
981 |
public static class getInventoryItemFromOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
982 |
private long orderId;
|
|
|
983 |
public getInventoryItemFromOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_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 {
|
|
|
984 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
985 |
this.orderId = orderId;
|
|
|
986 |
}
|
|
|
987 |
|
|
|
988 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
989 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
990 |
getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
|
|
|
991 |
args.setOrderId(orderId);
|
|
|
992 |
args.write(prot);
|
|
|
993 |
prot.writeMessageEnd();
|
|
|
994 |
}
|
|
|
995 |
|
|
|
996 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
997 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
998 |
throw new IllegalStateException("Method call not finished!");
|
|
|
999 |
}
|
|
|
1000 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1001 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1002 |
return (new Client(prot)).recv_getInventoryItemFromOrder();
|
|
|
1003 |
}
|
|
|
1004 |
}
|
|
|
1005 |
|
| 3430 |
rajveer |
1006 |
}
|
|
|
1007 |
|
|
|
1008 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
1009 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
1010 |
public Processor(I iface) {
|
|
|
1011 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
1012 |
}
|
|
|
1013 |
|
|
|
1014 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1015 |
super(iface, getProcessMap(processMap));
|
|
|
1016 |
}
|
|
|
1017 |
|
|
|
1018 |
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
| 4496 |
mandeep.dh |
1019 |
processMap.put("getInventoryItem", new getInventoryItem());
|
| 5361 |
mandeep.dh |
1020 |
processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
|
| 4496 |
mandeep.dh |
1021 |
processMap.put("scan", new scan());
|
|
|
1022 |
processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
|
|
|
1023 |
processMap.put("scanForOrder", new scanForOrder());
|
|
|
1024 |
processMap.put("createItemNumberMapping", new createItemNumberMapping());
|
| 4622 |
amit.gupta |
1025 |
processMap.put("getItemNumbers", new getItemNumbers());
|
| 5110 |
mandeep.dh |
1026 |
processMap.put("getItemIds", new getItemIds());
|
| 5185 |
mandeep.dh |
1027 |
processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
|
|
|
1028 |
processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
|
| 5372 |
mandeep.dh |
1029 |
processMap.put("getPurchaseScans", new getPurchaseScans());
|
| 5496 |
mandeep.dh |
1030 |
processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
|
| 5620 |
mandeep.dh |
1031 |
processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
|
| 3430 |
rajveer |
1032 |
return processMap;
|
|
|
1033 |
}
|
|
|
1034 |
|
| 4496 |
mandeep.dh |
1035 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
|
|
1036 |
public getInventoryItem() {
|
|
|
1037 |
super("getInventoryItem");
|
| 3430 |
rajveer |
1038 |
}
|
|
|
1039 |
|
| 4496 |
mandeep.dh |
1040 |
protected getInventoryItem_args getEmptyArgsInstance() {
|
|
|
1041 |
return new getInventoryItem_args();
|
| 3430 |
rajveer |
1042 |
}
|
|
|
1043 |
|
| 4496 |
mandeep.dh |
1044 |
protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1045 |
getInventoryItem_result result = new getInventoryItem_result();
|
| 4541 |
mandeep.dh |
1046 |
try {
|
|
|
1047 |
result.success = iface.getInventoryItem(args.serialNumber);
|
|
|
1048 |
} catch (WarehouseServiceException wex) {
|
|
|
1049 |
result.wex = wex;
|
|
|
1050 |
}
|
| 3430 |
rajveer |
1051 |
return result;
|
| 2832 |
chandransh |
1052 |
}
|
|
|
1053 |
}
|
|
|
1054 |
|
| 5361 |
mandeep.dh |
1055 |
private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
|
|
|
1056 |
public getNonSeralizedInventoryItem() {
|
|
|
1057 |
super("getNonSeralizedInventoryItem");
|
| 3430 |
rajveer |
1058 |
}
|
|
|
1059 |
|
| 5361 |
mandeep.dh |
1060 |
protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
|
|
|
1061 |
return new getNonSeralizedInventoryItem_args();
|
| 3430 |
rajveer |
1062 |
}
|
|
|
1063 |
|
| 5361 |
mandeep.dh |
1064 |
protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1065 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
1066 |
try {
|
| 5530 |
mandeep.dh |
1067 |
result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
1068 |
} catch (WarehouseServiceException wex) {
|
|
|
1069 |
result.wex = wex;
|
|
|
1070 |
}
|
| 3430 |
rajveer |
1071 |
return result;
|
| 2820 |
chandransh |
1072 |
}
|
|
|
1073 |
}
|
|
|
1074 |
|
| 4496 |
mandeep.dh |
1075 |
private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
|
|
|
1076 |
public scan() {
|
|
|
1077 |
super("scan");
|
| 3430 |
rajveer |
1078 |
}
|
|
|
1079 |
|
| 4496 |
mandeep.dh |
1080 |
protected scan_args getEmptyArgsInstance() {
|
|
|
1081 |
return new scan_args();
|
| 3430 |
rajveer |
1082 |
}
|
|
|
1083 |
|
| 4496 |
mandeep.dh |
1084 |
protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
|
|
|
1085 |
scan_result result = new scan_result();
|
| 3383 |
chandransh |
1086 |
try {
|
| 5361 |
mandeep.dh |
1087 |
iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId);
|
| 3383 |
chandransh |
1088 |
} catch (WarehouseServiceException wex) {
|
|
|
1089 |
result.wex = wex;
|
|
|
1090 |
}
|
| 3430 |
rajveer |
1091 |
return result;
|
| 3383 |
chandransh |
1092 |
}
|
|
|
1093 |
}
|
|
|
1094 |
|
| 4496 |
mandeep.dh |
1095 |
private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
|
|
|
1096 |
public scanSerializedItemForOrder() {
|
|
|
1097 |
super("scanSerializedItemForOrder");
|
| 3430 |
rajveer |
1098 |
}
|
|
|
1099 |
|
| 4496 |
mandeep.dh |
1100 |
protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
|
|
|
1101 |
return new scanSerializedItemForOrder_args();
|
| 3430 |
rajveer |
1102 |
}
|
|
|
1103 |
|
| 4496 |
mandeep.dh |
1104 |
protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1105 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
| 2820 |
chandransh |
1106 |
try {
|
| 5110 |
mandeep.dh |
1107 |
result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
|
| 2820 |
chandransh |
1108 |
} catch (WarehouseServiceException wex) {
|
|
|
1109 |
result.wex = wex;
|
|
|
1110 |
}
|
| 3430 |
rajveer |
1111 |
return result;
|
| 2820 |
chandransh |
1112 |
}
|
|
|
1113 |
}
|
|
|
1114 |
|
| 4496 |
mandeep.dh |
1115 |
private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
|
|
|
1116 |
public scanForOrder() {
|
|
|
1117 |
super("scanForOrder");
|
| 3430 |
rajveer |
1118 |
}
|
|
|
1119 |
|
| 4496 |
mandeep.dh |
1120 |
protected scanForOrder_args getEmptyArgsInstance() {
|
|
|
1121 |
return new scanForOrder_args();
|
| 3430 |
rajveer |
1122 |
}
|
|
|
1123 |
|
| 4496 |
mandeep.dh |
1124 |
protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1125 |
scanForOrder_result result = new scanForOrder_result();
|
| 2820 |
chandransh |
1126 |
try {
|
| 5361 |
mandeep.dh |
1127 |
result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
|
| 2820 |
chandransh |
1128 |
} catch (WarehouseServiceException wex) {
|
|
|
1129 |
result.wex = wex;
|
|
|
1130 |
}
|
| 3430 |
rajveer |
1131 |
return result;
|
| 2820 |
chandransh |
1132 |
}
|
|
|
1133 |
}
|
|
|
1134 |
|
| 4496 |
mandeep.dh |
1135 |
private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
|
|
|
1136 |
public createItemNumberMapping() {
|
|
|
1137 |
super("createItemNumberMapping");
|
|
|
1138 |
}
|
|
|
1139 |
|
|
|
1140 |
protected createItemNumberMapping_args getEmptyArgsInstance() {
|
|
|
1141 |
return new createItemNumberMapping_args();
|
|
|
1142 |
}
|
|
|
1143 |
|
|
|
1144 |
protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
|
|
|
1145 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
1146 |
iface.createItemNumberMapping(args.itemNumber, args.itemId);
|
|
|
1147 |
return result;
|
|
|
1148 |
}
|
|
|
1149 |
}
|
|
|
1150 |
|
| 4622 |
amit.gupta |
1151 |
private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
|
|
|
1152 |
public getItemNumbers() {
|
|
|
1153 |
super("getItemNumbers");
|
|
|
1154 |
}
|
|
|
1155 |
|
|
|
1156 |
protected getItemNumbers_args getEmptyArgsInstance() {
|
|
|
1157 |
return new getItemNumbers_args();
|
|
|
1158 |
}
|
|
|
1159 |
|
|
|
1160 |
protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
|
|
|
1161 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
1162 |
result.success = iface.getItemNumbers(args.itemId);
|
|
|
1163 |
return result;
|
|
|
1164 |
}
|
|
|
1165 |
}
|
|
|
1166 |
|
| 5110 |
mandeep.dh |
1167 |
private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
|
|
|
1168 |
public getItemIds() {
|
|
|
1169 |
super("getItemIds");
|
|
|
1170 |
}
|
|
|
1171 |
|
|
|
1172 |
protected getItemIds_args getEmptyArgsInstance() {
|
|
|
1173 |
return new getItemIds_args();
|
|
|
1174 |
}
|
|
|
1175 |
|
|
|
1176 |
protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
|
|
|
1177 |
getItemIds_result result = new getItemIds_result();
|
|
|
1178 |
result.success = iface.getItemIds(args.itemNumber);
|
|
|
1179 |
return result;
|
|
|
1180 |
}
|
|
|
1181 |
}
|
|
|
1182 |
|
| 5185 |
mandeep.dh |
1183 |
private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
|
|
|
1184 |
public getInventoryItemsFromLastScanType() {
|
|
|
1185 |
super("getInventoryItemsFromLastScanType");
|
|
|
1186 |
}
|
|
|
1187 |
|
|
|
1188 |
protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
|
|
|
1189 |
return new getInventoryItemsFromLastScanType_args();
|
|
|
1190 |
}
|
|
|
1191 |
|
|
|
1192 |
protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
|
|
|
1193 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
1194 |
try {
|
|
|
1195 |
result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
|
|
|
1196 |
} catch (WarehouseServiceException wex) {
|
|
|
1197 |
result.wex = wex;
|
|
|
1198 |
}
|
|
|
1199 |
return result;
|
|
|
1200 |
}
|
|
|
1201 |
}
|
|
|
1202 |
|
|
|
1203 |
private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
|
|
|
1204 |
public getInventoryItemFromId() {
|
|
|
1205 |
super("getInventoryItemFromId");
|
|
|
1206 |
}
|
|
|
1207 |
|
|
|
1208 |
protected getInventoryItemFromId_args getEmptyArgsInstance() {
|
|
|
1209 |
return new getInventoryItemFromId_args();
|
|
|
1210 |
}
|
|
|
1211 |
|
|
|
1212 |
protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
|
|
|
1213 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
1214 |
try {
|
|
|
1215 |
result.success = iface.getInventoryItemFromId(args.inventoryItemId);
|
|
|
1216 |
} catch (WarehouseServiceException wex) {
|
|
|
1217 |
result.wex = wex;
|
|
|
1218 |
}
|
|
|
1219 |
return result;
|
|
|
1220 |
}
|
|
|
1221 |
}
|
|
|
1222 |
|
| 5372 |
mandeep.dh |
1223 |
private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
|
|
|
1224 |
public getPurchaseScans() {
|
|
|
1225 |
super("getPurchaseScans");
|
|
|
1226 |
}
|
|
|
1227 |
|
|
|
1228 |
protected getPurchaseScans_args getEmptyArgsInstance() {
|
|
|
1229 |
return new getPurchaseScans_args();
|
|
|
1230 |
}
|
|
|
1231 |
|
|
|
1232 |
protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
|
|
|
1233 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
1234 |
result.success = iface.getPurchaseScans(args.startDate, args.endDate);
|
|
|
1235 |
return result;
|
|
|
1236 |
}
|
|
|
1237 |
}
|
|
|
1238 |
|
| 5496 |
mandeep.dh |
1239 |
private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
|
|
|
1240 |
public fetchScansPerInvoiceNumber() {
|
|
|
1241 |
super("fetchScansPerInvoiceNumber");
|
|
|
1242 |
}
|
|
|
1243 |
|
|
|
1244 |
protected fetchScansPerInvoiceNumber_args getEmptyArgsInstance() {
|
|
|
1245 |
return new fetchScansPerInvoiceNumber_args();
|
|
|
1246 |
}
|
|
|
1247 |
|
|
|
1248 |
protected fetchScansPerInvoiceNumber_result getResult(I iface, fetchScansPerInvoiceNumber_args args) throws org.apache.thrift.TException {
|
|
|
1249 |
fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
|
|
|
1250 |
result.success = iface.fetchScansPerInvoiceNumber(args.date);
|
|
|
1251 |
return result;
|
|
|
1252 |
}
|
|
|
1253 |
}
|
|
|
1254 |
|
| 5620 |
mandeep.dh |
1255 |
private static class getInventoryItemFromOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromOrder_args> {
|
|
|
1256 |
public getInventoryItemFromOrder() {
|
|
|
1257 |
super("getInventoryItemFromOrder");
|
|
|
1258 |
}
|
|
|
1259 |
|
|
|
1260 |
protected getInventoryItemFromOrder_args getEmptyArgsInstance() {
|
|
|
1261 |
return new getInventoryItemFromOrder_args();
|
|
|
1262 |
}
|
|
|
1263 |
|
|
|
1264 |
protected getInventoryItemFromOrder_result getResult(I iface, getInventoryItemFromOrder_args args) throws org.apache.thrift.TException {
|
|
|
1265 |
getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
|
|
|
1266 |
try {
|
|
|
1267 |
result.success = iface.getInventoryItemFromOrder(args.orderId);
|
|
|
1268 |
} catch (WarehouseServiceException we) {
|
|
|
1269 |
result.we = we;
|
|
|
1270 |
}
|
|
|
1271 |
return result;
|
|
|
1272 |
}
|
|
|
1273 |
}
|
|
|
1274 |
|
| 2820 |
chandransh |
1275 |
}
|
|
|
1276 |
|
| 4496 |
mandeep.dh |
1277 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1278 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
| 2832 |
chandransh |
1279 |
|
| 4496 |
mandeep.dh |
1280 |
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);
|
| 2832 |
chandransh |
1281 |
|
| 4496 |
mandeep.dh |
1282 |
private String serialNumber; // required
|
| 2832 |
chandransh |
1283 |
|
|
|
1284 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1285 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
1286 |
SERIAL_NUMBER((short)1, "serialNumber");
|
| 2832 |
chandransh |
1287 |
|
|
|
1288 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1289 |
|
|
|
1290 |
static {
|
|
|
1291 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1292 |
byName.put(field.getFieldName(), field);
|
|
|
1293 |
}
|
|
|
1294 |
}
|
|
|
1295 |
|
|
|
1296 |
/**
|
|
|
1297 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1298 |
*/
|
|
|
1299 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1300 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
1301 |
case 1: // SERIAL_NUMBER
|
|
|
1302 |
return SERIAL_NUMBER;
|
| 3430 |
rajveer |
1303 |
default:
|
|
|
1304 |
return null;
|
|
|
1305 |
}
|
| 2832 |
chandransh |
1306 |
}
|
|
|
1307 |
|
|
|
1308 |
/**
|
|
|
1309 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1310 |
* if it is not found.
|
|
|
1311 |
*/
|
|
|
1312 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1313 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1314 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1315 |
return fields;
|
|
|
1316 |
}
|
|
|
1317 |
|
|
|
1318 |
/**
|
|
|
1319 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1320 |
*/
|
|
|
1321 |
public static _Fields findByName(String name) {
|
|
|
1322 |
return byName.get(name);
|
|
|
1323 |
}
|
|
|
1324 |
|
|
|
1325 |
private final short _thriftId;
|
|
|
1326 |
private final String _fieldName;
|
|
|
1327 |
|
|
|
1328 |
_Fields(short thriftId, String fieldName) {
|
|
|
1329 |
_thriftId = thriftId;
|
|
|
1330 |
_fieldName = fieldName;
|
|
|
1331 |
}
|
|
|
1332 |
|
|
|
1333 |
public short getThriftFieldId() {
|
|
|
1334 |
return _thriftId;
|
|
|
1335 |
}
|
|
|
1336 |
|
|
|
1337 |
public String getFieldName() {
|
|
|
1338 |
return _fieldName;
|
|
|
1339 |
}
|
|
|
1340 |
}
|
|
|
1341 |
|
|
|
1342 |
// isset id assignments
|
|
|
1343 |
|
| 3430 |
rajveer |
1344 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
1345 |
static {
|
| 3430 |
rajveer |
1346 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
1347 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1348 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
1349 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
1350 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
|
| 2832 |
chandransh |
1351 |
}
|
|
|
1352 |
|
| 4496 |
mandeep.dh |
1353 |
public getInventoryItem_args() {
|
| 2832 |
chandransh |
1354 |
}
|
|
|
1355 |
|
| 4496 |
mandeep.dh |
1356 |
public getInventoryItem_args(
|
|
|
1357 |
String serialNumber)
|
| 2832 |
chandransh |
1358 |
{
|
|
|
1359 |
this();
|
| 4496 |
mandeep.dh |
1360 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
1361 |
}
|
|
|
1362 |
|
|
|
1363 |
/**
|
|
|
1364 |
* Performs a deep copy on <i>other</i>.
|
|
|
1365 |
*/
|
| 4496 |
mandeep.dh |
1366 |
public getInventoryItem_args(getInventoryItem_args other) {
|
|
|
1367 |
if (other.isSetSerialNumber()) {
|
|
|
1368 |
this.serialNumber = other.serialNumber;
|
|
|
1369 |
}
|
| 2832 |
chandransh |
1370 |
}
|
|
|
1371 |
|
| 4496 |
mandeep.dh |
1372 |
public getInventoryItem_args deepCopy() {
|
|
|
1373 |
return new getInventoryItem_args(this);
|
| 2832 |
chandransh |
1374 |
}
|
|
|
1375 |
|
| 3430 |
rajveer |
1376 |
@Override
|
|
|
1377 |
public void clear() {
|
| 4496 |
mandeep.dh |
1378 |
this.serialNumber = null;
|
| 2832 |
chandransh |
1379 |
}
|
|
|
1380 |
|
| 4496 |
mandeep.dh |
1381 |
public String getSerialNumber() {
|
|
|
1382 |
return this.serialNumber;
|
| 2832 |
chandransh |
1383 |
}
|
|
|
1384 |
|
| 4496 |
mandeep.dh |
1385 |
public void setSerialNumber(String serialNumber) {
|
|
|
1386 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
1387 |
}
|
|
|
1388 |
|
| 4496 |
mandeep.dh |
1389 |
public void unsetSerialNumber() {
|
|
|
1390 |
this.serialNumber = null;
|
| 2832 |
chandransh |
1391 |
}
|
|
|
1392 |
|
| 4496 |
mandeep.dh |
1393 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
1394 |
public boolean isSetSerialNumber() {
|
|
|
1395 |
return this.serialNumber != null;
|
| 2832 |
chandransh |
1396 |
}
|
|
|
1397 |
|
| 4496 |
mandeep.dh |
1398 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
1399 |
if (!value) {
|
|
|
1400 |
this.serialNumber = null;
|
|
|
1401 |
}
|
| 2832 |
chandransh |
1402 |
}
|
|
|
1403 |
|
|
|
1404 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1405 |
switch (field) {
|
| 4496 |
mandeep.dh |
1406 |
case SERIAL_NUMBER:
|
| 2832 |
chandransh |
1407 |
if (value == null) {
|
| 4496 |
mandeep.dh |
1408 |
unsetSerialNumber();
|
| 2832 |
chandransh |
1409 |
} else {
|
| 4496 |
mandeep.dh |
1410 |
setSerialNumber((String)value);
|
| 2832 |
chandransh |
1411 |
}
|
|
|
1412 |
break;
|
|
|
1413 |
|
|
|
1414 |
}
|
|
|
1415 |
}
|
|
|
1416 |
|
|
|
1417 |
public Object getFieldValue(_Fields field) {
|
|
|
1418 |
switch (field) {
|
| 4496 |
mandeep.dh |
1419 |
case SERIAL_NUMBER:
|
|
|
1420 |
return getSerialNumber();
|
| 2832 |
chandransh |
1421 |
|
|
|
1422 |
}
|
|
|
1423 |
throw new IllegalStateException();
|
|
|
1424 |
}
|
|
|
1425 |
|
| 3430 |
rajveer |
1426 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1427 |
public boolean isSet(_Fields field) {
|
|
|
1428 |
if (field == null) {
|
|
|
1429 |
throw new IllegalArgumentException();
|
|
|
1430 |
}
|
| 2832 |
chandransh |
1431 |
|
|
|
1432 |
switch (field) {
|
| 4496 |
mandeep.dh |
1433 |
case SERIAL_NUMBER:
|
|
|
1434 |
return isSetSerialNumber();
|
| 2832 |
chandransh |
1435 |
}
|
|
|
1436 |
throw new IllegalStateException();
|
|
|
1437 |
}
|
|
|
1438 |
|
|
|
1439 |
@Override
|
|
|
1440 |
public boolean equals(Object that) {
|
|
|
1441 |
if (that == null)
|
|
|
1442 |
return false;
|
| 4496 |
mandeep.dh |
1443 |
if (that instanceof getInventoryItem_args)
|
|
|
1444 |
return this.equals((getInventoryItem_args)that);
|
| 2832 |
chandransh |
1445 |
return false;
|
|
|
1446 |
}
|
|
|
1447 |
|
| 4496 |
mandeep.dh |
1448 |
public boolean equals(getInventoryItem_args that) {
|
| 2832 |
chandransh |
1449 |
if (that == null)
|
|
|
1450 |
return false;
|
|
|
1451 |
|
| 4496 |
mandeep.dh |
1452 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
1453 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
1454 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
1455 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2832 |
chandransh |
1456 |
return false;
|
| 4496 |
mandeep.dh |
1457 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2832 |
chandransh |
1458 |
return false;
|
|
|
1459 |
}
|
|
|
1460 |
|
|
|
1461 |
return true;
|
|
|
1462 |
}
|
|
|
1463 |
|
|
|
1464 |
@Override
|
|
|
1465 |
public int hashCode() {
|
|
|
1466 |
return 0;
|
|
|
1467 |
}
|
|
|
1468 |
|
| 4496 |
mandeep.dh |
1469 |
public int compareTo(getInventoryItem_args other) {
|
| 2832 |
chandransh |
1470 |
if (!getClass().equals(other.getClass())) {
|
|
|
1471 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1472 |
}
|
|
|
1473 |
|
|
|
1474 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
1475 |
getInventoryItem_args typedOther = (getInventoryItem_args)other;
|
| 2832 |
chandransh |
1476 |
|
| 4496 |
mandeep.dh |
1477 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2832 |
chandransh |
1478 |
if (lastComparison != 0) {
|
|
|
1479 |
return lastComparison;
|
|
|
1480 |
}
|
| 4496 |
mandeep.dh |
1481 |
if (isSetSerialNumber()) {
|
|
|
1482 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
1483 |
if (lastComparison != 0) {
|
|
|
1484 |
return lastComparison;
|
|
|
1485 |
}
|
| 2832 |
chandransh |
1486 |
}
|
|
|
1487 |
return 0;
|
|
|
1488 |
}
|
|
|
1489 |
|
| 3430 |
rajveer |
1490 |
public _Fields fieldForId(int fieldId) {
|
|
|
1491 |
return _Fields.findByThriftId(fieldId);
|
|
|
1492 |
}
|
|
|
1493 |
|
|
|
1494 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1495 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
1496 |
iprot.readStructBegin();
|
|
|
1497 |
while (true)
|
|
|
1498 |
{
|
|
|
1499 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1500 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
1501 |
break;
|
|
|
1502 |
}
|
| 3430 |
rajveer |
1503 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
1504 |
case 1: // SERIAL_NUMBER
|
|
|
1505 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1506 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
1507 |
} else {
|
|
|
1508 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1509 |
}
|
|
|
1510 |
break;
|
|
|
1511 |
default:
|
|
|
1512 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
1513 |
}
|
| 3430 |
rajveer |
1514 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
1515 |
}
|
|
|
1516 |
iprot.readStructEnd();
|
|
|
1517 |
validate();
|
|
|
1518 |
}
|
|
|
1519 |
|
| 3430 |
rajveer |
1520 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
1521 |
validate();
|
|
|
1522 |
|
|
|
1523 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
1524 |
if (this.serialNumber != null) {
|
|
|
1525 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
1526 |
oprot.writeString(this.serialNumber);
|
|
|
1527 |
oprot.writeFieldEnd();
|
|
|
1528 |
}
|
| 2832 |
chandransh |
1529 |
oprot.writeFieldStop();
|
|
|
1530 |
oprot.writeStructEnd();
|
|
|
1531 |
}
|
|
|
1532 |
|
|
|
1533 |
@Override
|
|
|
1534 |
public String toString() {
|
| 4496 |
mandeep.dh |
1535 |
StringBuilder sb = new StringBuilder("getInventoryItem_args(");
|
| 2832 |
chandransh |
1536 |
boolean first = true;
|
|
|
1537 |
|
| 4496 |
mandeep.dh |
1538 |
sb.append("serialNumber:");
|
|
|
1539 |
if (this.serialNumber == null) {
|
|
|
1540 |
sb.append("null");
|
|
|
1541 |
} else {
|
|
|
1542 |
sb.append(this.serialNumber);
|
|
|
1543 |
}
|
| 2832 |
chandransh |
1544 |
first = false;
|
|
|
1545 |
sb.append(")");
|
|
|
1546 |
return sb.toString();
|
|
|
1547 |
}
|
|
|
1548 |
|
| 3430 |
rajveer |
1549 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
1550 |
// check for required fields
|
|
|
1551 |
}
|
|
|
1552 |
|
| 3430 |
rajveer |
1553 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1554 |
try {
|
|
|
1555 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1556 |
} catch (org.apache.thrift.TException te) {
|
|
|
1557 |
throw new java.io.IOException(te);
|
|
|
1558 |
}
|
|
|
1559 |
}
|
|
|
1560 |
|
|
|
1561 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1562 |
try {
|
|
|
1563 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1564 |
} catch (org.apache.thrift.TException te) {
|
|
|
1565 |
throw new java.io.IOException(te);
|
|
|
1566 |
}
|
|
|
1567 |
}
|
|
|
1568 |
|
| 2832 |
chandransh |
1569 |
}
|
|
|
1570 |
|
| 4496 |
mandeep.dh |
1571 |
public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1572 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
|
| 2832 |
chandransh |
1573 |
|
| 3430 |
rajveer |
1574 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
| 4541 |
mandeep.dh |
1575 |
private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 2832 |
chandransh |
1576 |
|
| 4496 |
mandeep.dh |
1577 |
private InventoryItem success; // required
|
| 4541 |
mandeep.dh |
1578 |
private WarehouseServiceException wex; // required
|
| 2832 |
chandransh |
1579 |
|
|
|
1580 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1581 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4541 |
mandeep.dh |
1582 |
SUCCESS((short)0, "success"),
|
|
|
1583 |
WEX((short)1, "wex");
|
| 2832 |
chandransh |
1584 |
|
|
|
1585 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1586 |
|
|
|
1587 |
static {
|
|
|
1588 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1589 |
byName.put(field.getFieldName(), field);
|
|
|
1590 |
}
|
|
|
1591 |
}
|
|
|
1592 |
|
|
|
1593 |
/**
|
|
|
1594 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1595 |
*/
|
|
|
1596 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1597 |
switch(fieldId) {
|
|
|
1598 |
case 0: // SUCCESS
|
|
|
1599 |
return SUCCESS;
|
| 4541 |
mandeep.dh |
1600 |
case 1: // WEX
|
|
|
1601 |
return WEX;
|
| 3430 |
rajveer |
1602 |
default:
|
|
|
1603 |
return null;
|
|
|
1604 |
}
|
| 2832 |
chandransh |
1605 |
}
|
|
|
1606 |
|
|
|
1607 |
/**
|
|
|
1608 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1609 |
* if it is not found.
|
|
|
1610 |
*/
|
|
|
1611 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1612 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1613 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1614 |
return fields;
|
|
|
1615 |
}
|
|
|
1616 |
|
|
|
1617 |
/**
|
|
|
1618 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1619 |
*/
|
|
|
1620 |
public static _Fields findByName(String name) {
|
|
|
1621 |
return byName.get(name);
|
|
|
1622 |
}
|
|
|
1623 |
|
|
|
1624 |
private final short _thriftId;
|
|
|
1625 |
private final String _fieldName;
|
|
|
1626 |
|
|
|
1627 |
_Fields(short thriftId, String fieldName) {
|
|
|
1628 |
_thriftId = thriftId;
|
|
|
1629 |
_fieldName = fieldName;
|
|
|
1630 |
}
|
|
|
1631 |
|
|
|
1632 |
public short getThriftFieldId() {
|
|
|
1633 |
return _thriftId;
|
|
|
1634 |
}
|
|
|
1635 |
|
|
|
1636 |
public String getFieldName() {
|
|
|
1637 |
return _fieldName;
|
|
|
1638 |
}
|
|
|
1639 |
}
|
|
|
1640 |
|
|
|
1641 |
// isset id assignments
|
|
|
1642 |
|
| 3430 |
rajveer |
1643 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
1644 |
static {
|
| 3430 |
rajveer |
1645 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1646 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
1647 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4541 |
mandeep.dh |
1648 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1649 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
1650 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
1651 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
|
| 2832 |
chandransh |
1652 |
}
|
|
|
1653 |
|
| 4496 |
mandeep.dh |
1654 |
public getInventoryItem_result() {
|
| 2832 |
chandransh |
1655 |
}
|
|
|
1656 |
|
| 4496 |
mandeep.dh |
1657 |
public getInventoryItem_result(
|
| 4541 |
mandeep.dh |
1658 |
InventoryItem success,
|
|
|
1659 |
WarehouseServiceException wex)
|
| 2832 |
chandransh |
1660 |
{
|
|
|
1661 |
this();
|
|
|
1662 |
this.success = success;
|
| 4541 |
mandeep.dh |
1663 |
this.wex = wex;
|
| 2832 |
chandransh |
1664 |
}
|
|
|
1665 |
|
|
|
1666 |
/**
|
|
|
1667 |
* Performs a deep copy on <i>other</i>.
|
|
|
1668 |
*/
|
| 4496 |
mandeep.dh |
1669 |
public getInventoryItem_result(getInventoryItem_result other) {
|
| 2832 |
chandransh |
1670 |
if (other.isSetSuccess()) {
|
| 4496 |
mandeep.dh |
1671 |
this.success = new InventoryItem(other.success);
|
| 2832 |
chandransh |
1672 |
}
|
| 4541 |
mandeep.dh |
1673 |
if (other.isSetWex()) {
|
|
|
1674 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
1675 |
}
|
| 2832 |
chandransh |
1676 |
}
|
|
|
1677 |
|
| 4496 |
mandeep.dh |
1678 |
public getInventoryItem_result deepCopy() {
|
|
|
1679 |
return new getInventoryItem_result(this);
|
| 2832 |
chandransh |
1680 |
}
|
|
|
1681 |
|
| 3430 |
rajveer |
1682 |
@Override
|
|
|
1683 |
public void clear() {
|
|
|
1684 |
this.success = null;
|
| 4541 |
mandeep.dh |
1685 |
this.wex = null;
|
| 2832 |
chandransh |
1686 |
}
|
|
|
1687 |
|
| 4496 |
mandeep.dh |
1688 |
public InventoryItem getSuccess() {
|
| 2832 |
chandransh |
1689 |
return this.success;
|
|
|
1690 |
}
|
|
|
1691 |
|
| 4496 |
mandeep.dh |
1692 |
public void setSuccess(InventoryItem success) {
|
| 2832 |
chandransh |
1693 |
this.success = success;
|
|
|
1694 |
}
|
|
|
1695 |
|
|
|
1696 |
public void unsetSuccess() {
|
|
|
1697 |
this.success = null;
|
|
|
1698 |
}
|
|
|
1699 |
|
| 3430 |
rajveer |
1700 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
1701 |
public boolean isSetSuccess() {
|
|
|
1702 |
return this.success != null;
|
|
|
1703 |
}
|
|
|
1704 |
|
|
|
1705 |
public void setSuccessIsSet(boolean value) {
|
|
|
1706 |
if (!value) {
|
|
|
1707 |
this.success = null;
|
|
|
1708 |
}
|
|
|
1709 |
}
|
|
|
1710 |
|
| 4541 |
mandeep.dh |
1711 |
public WarehouseServiceException getWex() {
|
|
|
1712 |
return this.wex;
|
|
|
1713 |
}
|
|
|
1714 |
|
|
|
1715 |
public void setWex(WarehouseServiceException wex) {
|
|
|
1716 |
this.wex = wex;
|
|
|
1717 |
}
|
|
|
1718 |
|
|
|
1719 |
public void unsetWex() {
|
|
|
1720 |
this.wex = null;
|
|
|
1721 |
}
|
|
|
1722 |
|
|
|
1723 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
1724 |
public boolean isSetWex() {
|
|
|
1725 |
return this.wex != null;
|
|
|
1726 |
}
|
|
|
1727 |
|
|
|
1728 |
public void setWexIsSet(boolean value) {
|
|
|
1729 |
if (!value) {
|
|
|
1730 |
this.wex = null;
|
|
|
1731 |
}
|
|
|
1732 |
}
|
|
|
1733 |
|
| 2832 |
chandransh |
1734 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1735 |
switch (field) {
|
|
|
1736 |
case SUCCESS:
|
|
|
1737 |
if (value == null) {
|
|
|
1738 |
unsetSuccess();
|
|
|
1739 |
} else {
|
| 4496 |
mandeep.dh |
1740 |
setSuccess((InventoryItem)value);
|
| 2832 |
chandransh |
1741 |
}
|
|
|
1742 |
break;
|
|
|
1743 |
|
| 4541 |
mandeep.dh |
1744 |
case WEX:
|
|
|
1745 |
if (value == null) {
|
|
|
1746 |
unsetWex();
|
|
|
1747 |
} else {
|
|
|
1748 |
setWex((WarehouseServiceException)value);
|
|
|
1749 |
}
|
|
|
1750 |
break;
|
|
|
1751 |
|
| 2832 |
chandransh |
1752 |
}
|
|
|
1753 |
}
|
|
|
1754 |
|
|
|
1755 |
public Object getFieldValue(_Fields field) {
|
|
|
1756 |
switch (field) {
|
|
|
1757 |
case SUCCESS:
|
|
|
1758 |
return getSuccess();
|
|
|
1759 |
|
| 4541 |
mandeep.dh |
1760 |
case WEX:
|
|
|
1761 |
return getWex();
|
|
|
1762 |
|
| 2832 |
chandransh |
1763 |
}
|
|
|
1764 |
throw new IllegalStateException();
|
|
|
1765 |
}
|
|
|
1766 |
|
| 3430 |
rajveer |
1767 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1768 |
public boolean isSet(_Fields field) {
|
|
|
1769 |
if (field == null) {
|
|
|
1770 |
throw new IllegalArgumentException();
|
|
|
1771 |
}
|
| 2832 |
chandransh |
1772 |
|
|
|
1773 |
switch (field) {
|
|
|
1774 |
case SUCCESS:
|
|
|
1775 |
return isSetSuccess();
|
| 4541 |
mandeep.dh |
1776 |
case WEX:
|
|
|
1777 |
return isSetWex();
|
| 2832 |
chandransh |
1778 |
}
|
|
|
1779 |
throw new IllegalStateException();
|
|
|
1780 |
}
|
|
|
1781 |
|
|
|
1782 |
@Override
|
|
|
1783 |
public boolean equals(Object that) {
|
|
|
1784 |
if (that == null)
|
|
|
1785 |
return false;
|
| 4496 |
mandeep.dh |
1786 |
if (that instanceof getInventoryItem_result)
|
|
|
1787 |
return this.equals((getInventoryItem_result)that);
|
| 2832 |
chandransh |
1788 |
return false;
|
|
|
1789 |
}
|
|
|
1790 |
|
| 4496 |
mandeep.dh |
1791 |
public boolean equals(getInventoryItem_result that) {
|
| 2832 |
chandransh |
1792 |
if (that == null)
|
|
|
1793 |
return false;
|
|
|
1794 |
|
|
|
1795 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
1796 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
1797 |
if (this_present_success || that_present_success) {
|
|
|
1798 |
if (!(this_present_success && that_present_success))
|
|
|
1799 |
return false;
|
|
|
1800 |
if (!this.success.equals(that.success))
|
|
|
1801 |
return false;
|
|
|
1802 |
}
|
|
|
1803 |
|
| 4541 |
mandeep.dh |
1804 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
1805 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
1806 |
if (this_present_wex || that_present_wex) {
|
|
|
1807 |
if (!(this_present_wex && that_present_wex))
|
|
|
1808 |
return false;
|
|
|
1809 |
if (!this.wex.equals(that.wex))
|
|
|
1810 |
return false;
|
|
|
1811 |
}
|
|
|
1812 |
|
| 2832 |
chandransh |
1813 |
return true;
|
|
|
1814 |
}
|
|
|
1815 |
|
|
|
1816 |
@Override
|
|
|
1817 |
public int hashCode() {
|
|
|
1818 |
return 0;
|
|
|
1819 |
}
|
|
|
1820 |
|
| 4496 |
mandeep.dh |
1821 |
public int compareTo(getInventoryItem_result other) {
|
| 2832 |
chandransh |
1822 |
if (!getClass().equals(other.getClass())) {
|
|
|
1823 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1824 |
}
|
|
|
1825 |
|
|
|
1826 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
1827 |
getInventoryItem_result typedOther = (getInventoryItem_result)other;
|
| 2832 |
chandransh |
1828 |
|
| 3430 |
rajveer |
1829 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2832 |
chandransh |
1830 |
if (lastComparison != 0) {
|
|
|
1831 |
return lastComparison;
|
|
|
1832 |
}
|
| 3430 |
rajveer |
1833 |
if (isSetSuccess()) {
|
|
|
1834 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
1835 |
if (lastComparison != 0) {
|
|
|
1836 |
return lastComparison;
|
|
|
1837 |
}
|
| 2832 |
chandransh |
1838 |
}
|
| 4541 |
mandeep.dh |
1839 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
1840 |
if (lastComparison != 0) {
|
|
|
1841 |
return lastComparison;
|
|
|
1842 |
}
|
|
|
1843 |
if (isSetWex()) {
|
|
|
1844 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
1845 |
if (lastComparison != 0) {
|
|
|
1846 |
return lastComparison;
|
|
|
1847 |
}
|
|
|
1848 |
}
|
| 2832 |
chandransh |
1849 |
return 0;
|
|
|
1850 |
}
|
|
|
1851 |
|
| 3430 |
rajveer |
1852 |
public _Fields fieldForId(int fieldId) {
|
|
|
1853 |
return _Fields.findByThriftId(fieldId);
|
|
|
1854 |
}
|
|
|
1855 |
|
|
|
1856 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1857 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
1858 |
iprot.readStructBegin();
|
|
|
1859 |
while (true)
|
|
|
1860 |
{
|
|
|
1861 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1862 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
1863 |
break;
|
|
|
1864 |
}
|
| 3430 |
rajveer |
1865 |
switch (field.id) {
|
|
|
1866 |
case 0: // SUCCESS
|
|
|
1867 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| 4496 |
mandeep.dh |
1868 |
this.success = new InventoryItem();
|
| 3430 |
rajveer |
1869 |
this.success.read(iprot);
|
|
|
1870 |
} else {
|
|
|
1871 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1872 |
}
|
|
|
1873 |
break;
|
| 4541 |
mandeep.dh |
1874 |
case 1: // WEX
|
|
|
1875 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1876 |
this.wex = new WarehouseServiceException();
|
|
|
1877 |
this.wex.read(iprot);
|
|
|
1878 |
} else {
|
|
|
1879 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1880 |
}
|
|
|
1881 |
break;
|
| 3430 |
rajveer |
1882 |
default:
|
|
|
1883 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
1884 |
}
|
| 3430 |
rajveer |
1885 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
1886 |
}
|
|
|
1887 |
iprot.readStructEnd();
|
|
|
1888 |
validate();
|
|
|
1889 |
}
|
|
|
1890 |
|
| 3430 |
rajveer |
1891 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
1892 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1893 |
|
|
|
1894 |
if (this.isSetSuccess()) {
|
|
|
1895 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
1896 |
this.success.write(oprot);
|
|
|
1897 |
oprot.writeFieldEnd();
|
| 4541 |
mandeep.dh |
1898 |
} else if (this.isSetWex()) {
|
|
|
1899 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
1900 |
this.wex.write(oprot);
|
|
|
1901 |
oprot.writeFieldEnd();
|
| 2832 |
chandransh |
1902 |
}
|
|
|
1903 |
oprot.writeFieldStop();
|
|
|
1904 |
oprot.writeStructEnd();
|
|
|
1905 |
}
|
|
|
1906 |
|
|
|
1907 |
@Override
|
|
|
1908 |
public String toString() {
|
| 4496 |
mandeep.dh |
1909 |
StringBuilder sb = new StringBuilder("getInventoryItem_result(");
|
| 2832 |
chandransh |
1910 |
boolean first = true;
|
|
|
1911 |
|
|
|
1912 |
sb.append("success:");
|
|
|
1913 |
if (this.success == null) {
|
|
|
1914 |
sb.append("null");
|
|
|
1915 |
} else {
|
|
|
1916 |
sb.append(this.success);
|
|
|
1917 |
}
|
|
|
1918 |
first = false;
|
| 4541 |
mandeep.dh |
1919 |
if (!first) sb.append(", ");
|
|
|
1920 |
sb.append("wex:");
|
|
|
1921 |
if (this.wex == null) {
|
|
|
1922 |
sb.append("null");
|
|
|
1923 |
} else {
|
|
|
1924 |
sb.append(this.wex);
|
|
|
1925 |
}
|
|
|
1926 |
first = false;
|
| 2832 |
chandransh |
1927 |
sb.append(")");
|
|
|
1928 |
return sb.toString();
|
|
|
1929 |
}
|
|
|
1930 |
|
| 3430 |
rajveer |
1931 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
1932 |
// check for required fields
|
|
|
1933 |
}
|
|
|
1934 |
|
| 3430 |
rajveer |
1935 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1936 |
try {
|
|
|
1937 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1938 |
} catch (org.apache.thrift.TException te) {
|
|
|
1939 |
throw new java.io.IOException(te);
|
|
|
1940 |
}
|
|
|
1941 |
}
|
|
|
1942 |
|
|
|
1943 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1944 |
try {
|
|
|
1945 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1946 |
} catch (org.apache.thrift.TException te) {
|
|
|
1947 |
throw new java.io.IOException(te);
|
|
|
1948 |
}
|
|
|
1949 |
}
|
|
|
1950 |
|
| 2832 |
chandransh |
1951 |
}
|
|
|
1952 |
|
| 5361 |
mandeep.dh |
1953 |
public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1954 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
|
| 2820 |
chandransh |
1955 |
|
| 5530 |
mandeep.dh |
1956 |
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);
|
|
|
1957 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
1958 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 2820 |
chandransh |
1959 |
|
| 5530 |
mandeep.dh |
1960 |
private String itemNumber; // required
|
| 4496 |
mandeep.dh |
1961 |
private long itemId; // required
|
| 5530 |
mandeep.dh |
1962 |
private long fulfilmentWarehouseId; // required
|
| 2820 |
chandransh |
1963 |
|
|
|
1964 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1965 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5530 |
mandeep.dh |
1966 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
1967 |
ITEM_ID((short)2, "itemId"),
|
|
|
1968 |
FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
|
| 2820 |
chandransh |
1969 |
|
|
|
1970 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1971 |
|
|
|
1972 |
static {
|
|
|
1973 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1974 |
byName.put(field.getFieldName(), field);
|
|
|
1975 |
}
|
|
|
1976 |
}
|
|
|
1977 |
|
|
|
1978 |
/**
|
|
|
1979 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1980 |
*/
|
|
|
1981 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1982 |
switch(fieldId) {
|
| 5530 |
mandeep.dh |
1983 |
case 1: // ITEM_NUMBER
|
|
|
1984 |
return ITEM_NUMBER;
|
|
|
1985 |
case 2: // ITEM_ID
|
| 4496 |
mandeep.dh |
1986 |
return ITEM_ID;
|
| 5530 |
mandeep.dh |
1987 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
|
|
1988 |
return FULFILMENT_WAREHOUSE_ID;
|
| 3430 |
rajveer |
1989 |
default:
|
|
|
1990 |
return null;
|
|
|
1991 |
}
|
| 2820 |
chandransh |
1992 |
}
|
|
|
1993 |
|
|
|
1994 |
/**
|
|
|
1995 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1996 |
* if it is not found.
|
|
|
1997 |
*/
|
|
|
1998 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1999 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2000 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2001 |
return fields;
|
|
|
2002 |
}
|
|
|
2003 |
|
|
|
2004 |
/**
|
|
|
2005 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2006 |
*/
|
|
|
2007 |
public static _Fields findByName(String name) {
|
|
|
2008 |
return byName.get(name);
|
|
|
2009 |
}
|
|
|
2010 |
|
|
|
2011 |
private final short _thriftId;
|
|
|
2012 |
private final String _fieldName;
|
|
|
2013 |
|
|
|
2014 |
_Fields(short thriftId, String fieldName) {
|
|
|
2015 |
_thriftId = thriftId;
|
|
|
2016 |
_fieldName = fieldName;
|
|
|
2017 |
}
|
|
|
2018 |
|
|
|
2019 |
public short getThriftFieldId() {
|
|
|
2020 |
return _thriftId;
|
|
|
2021 |
}
|
|
|
2022 |
|
|
|
2023 |
public String getFieldName() {
|
|
|
2024 |
return _fieldName;
|
|
|
2025 |
}
|
|
|
2026 |
}
|
|
|
2027 |
|
|
|
2028 |
// isset id assignments
|
| 4496 |
mandeep.dh |
2029 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 5530 |
mandeep.dh |
2030 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
| 5361 |
mandeep.dh |
2031 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 2820 |
chandransh |
2032 |
|
| 3430 |
rajveer |
2033 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
2034 |
static {
|
| 3430 |
rajveer |
2035 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5530 |
mandeep.dh |
2036 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2037 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4496 |
mandeep.dh |
2038 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
2039 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5530 |
mandeep.dh |
2040 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
2041 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
2042 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
2043 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
|
| 2820 |
chandransh |
2044 |
}
|
|
|
2045 |
|
| 5361 |
mandeep.dh |
2046 |
public getNonSeralizedInventoryItem_args() {
|
| 2820 |
chandransh |
2047 |
}
|
|
|
2048 |
|
| 5361 |
mandeep.dh |
2049 |
public getNonSeralizedInventoryItem_args(
|
| 5530 |
mandeep.dh |
2050 |
String itemNumber,
|
| 4496 |
mandeep.dh |
2051 |
long itemId,
|
| 5530 |
mandeep.dh |
2052 |
long fulfilmentWarehouseId)
|
| 2820 |
chandransh |
2053 |
{
|
|
|
2054 |
this();
|
| 5530 |
mandeep.dh |
2055 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
2056 |
this.itemId = itemId;
|
|
|
2057 |
setItemIdIsSet(true);
|
| 5530 |
mandeep.dh |
2058 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
2059 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
2060 |
}
|
|
|
2061 |
|
|
|
2062 |
/**
|
|
|
2063 |
* Performs a deep copy on <i>other</i>.
|
|
|
2064 |
*/
|
| 5361 |
mandeep.dh |
2065 |
public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
2066 |
__isset_bit_vector.clear();
|
|
|
2067 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5530 |
mandeep.dh |
2068 |
if (other.isSetItemNumber()) {
|
|
|
2069 |
this.itemNumber = other.itemNumber;
|
|
|
2070 |
}
|
| 4496 |
mandeep.dh |
2071 |
this.itemId = other.itemId;
|
| 5530 |
mandeep.dh |
2072 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
2073 |
}
|
|
|
2074 |
|
| 5361 |
mandeep.dh |
2075 |
public getNonSeralizedInventoryItem_args deepCopy() {
|
|
|
2076 |
return new getNonSeralizedInventoryItem_args(this);
|
| 2820 |
chandransh |
2077 |
}
|
|
|
2078 |
|
| 3430 |
rajveer |
2079 |
@Override
|
|
|
2080 |
public void clear() {
|
| 5530 |
mandeep.dh |
2081 |
this.itemNumber = null;
|
| 4496 |
mandeep.dh |
2082 |
setItemIdIsSet(false);
|
|
|
2083 |
this.itemId = 0;
|
| 5530 |
mandeep.dh |
2084 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
2085 |
this.fulfilmentWarehouseId = 0;
|
| 2820 |
chandransh |
2086 |
}
|
|
|
2087 |
|
| 5530 |
mandeep.dh |
2088 |
public String getItemNumber() {
|
|
|
2089 |
return this.itemNumber;
|
|
|
2090 |
}
|
|
|
2091 |
|
|
|
2092 |
public void setItemNumber(String itemNumber) {
|
|
|
2093 |
this.itemNumber = itemNumber;
|
|
|
2094 |
}
|
|
|
2095 |
|
|
|
2096 |
public void unsetItemNumber() {
|
|
|
2097 |
this.itemNumber = null;
|
|
|
2098 |
}
|
|
|
2099 |
|
|
|
2100 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
2101 |
public boolean isSetItemNumber() {
|
|
|
2102 |
return this.itemNumber != null;
|
|
|
2103 |
}
|
|
|
2104 |
|
|
|
2105 |
public void setItemNumberIsSet(boolean value) {
|
|
|
2106 |
if (!value) {
|
|
|
2107 |
this.itemNumber = null;
|
|
|
2108 |
}
|
|
|
2109 |
}
|
|
|
2110 |
|
| 4496 |
mandeep.dh |
2111 |
public long getItemId() {
|
|
|
2112 |
return this.itemId;
|
| 2820 |
chandransh |
2113 |
}
|
|
|
2114 |
|
| 4496 |
mandeep.dh |
2115 |
public void setItemId(long itemId) {
|
|
|
2116 |
this.itemId = itemId;
|
|
|
2117 |
setItemIdIsSet(true);
|
| 2820 |
chandransh |
2118 |
}
|
|
|
2119 |
|
| 4496 |
mandeep.dh |
2120 |
public void unsetItemId() {
|
|
|
2121 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
2122 |
}
|
|
|
2123 |
|
| 4496 |
mandeep.dh |
2124 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
2125 |
public boolean isSetItemId() {
|
|
|
2126 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
2127 |
}
|
|
|
2128 |
|
| 4496 |
mandeep.dh |
2129 |
public void setItemIdIsSet(boolean value) {
|
|
|
2130 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| 2820 |
chandransh |
2131 |
}
|
|
|
2132 |
|
| 5530 |
mandeep.dh |
2133 |
public long getFulfilmentWarehouseId() {
|
|
|
2134 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
2135 |
}
|
|
|
2136 |
|
| 5530 |
mandeep.dh |
2137 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
2138 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
2139 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
2140 |
}
|
|
|
2141 |
|
| 5530 |
mandeep.dh |
2142 |
public void unsetFulfilmentWarehouseId() {
|
|
|
2143 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
2144 |
}
|
|
|
2145 |
|
| 5530 |
mandeep.dh |
2146 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
2147 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
2148 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
2149 |
}
|
|
|
2150 |
|
| 5530 |
mandeep.dh |
2151 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
2152 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
2153 |
}
|
|
|
2154 |
|
|
|
2155 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2156 |
switch (field) {
|
| 5530 |
mandeep.dh |
2157 |
case ITEM_NUMBER:
|
|
|
2158 |
if (value == null) {
|
|
|
2159 |
unsetItemNumber();
|
|
|
2160 |
} else {
|
|
|
2161 |
setItemNumber((String)value);
|
|
|
2162 |
}
|
|
|
2163 |
break;
|
|
|
2164 |
|
| 4496 |
mandeep.dh |
2165 |
case ITEM_ID:
|
| 2820 |
chandransh |
2166 |
if (value == null) {
|
| 4496 |
mandeep.dh |
2167 |
unsetItemId();
|
| 2820 |
chandransh |
2168 |
} else {
|
| 4496 |
mandeep.dh |
2169 |
setItemId((Long)value);
|
| 2820 |
chandransh |
2170 |
}
|
|
|
2171 |
break;
|
|
|
2172 |
|
| 5530 |
mandeep.dh |
2173 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
2174 |
if (value == null) {
|
| 5530 |
mandeep.dh |
2175 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
2176 |
} else {
|
| 5530 |
mandeep.dh |
2177 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
2178 |
}
|
|
|
2179 |
break;
|
|
|
2180 |
|
|
|
2181 |
}
|
|
|
2182 |
}
|
|
|
2183 |
|
|
|
2184 |
public Object getFieldValue(_Fields field) {
|
|
|
2185 |
switch (field) {
|
| 5530 |
mandeep.dh |
2186 |
case ITEM_NUMBER:
|
|
|
2187 |
return getItemNumber();
|
|
|
2188 |
|
| 4496 |
mandeep.dh |
2189 |
case ITEM_ID:
|
|
|
2190 |
return Long.valueOf(getItemId());
|
| 2820 |
chandransh |
2191 |
|
| 5530 |
mandeep.dh |
2192 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
2193 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 2820 |
chandransh |
2194 |
|
|
|
2195 |
}
|
|
|
2196 |
throw new IllegalStateException();
|
|
|
2197 |
}
|
|
|
2198 |
|
| 3430 |
rajveer |
2199 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2200 |
public boolean isSet(_Fields field) {
|
|
|
2201 |
if (field == null) {
|
|
|
2202 |
throw new IllegalArgumentException();
|
|
|
2203 |
}
|
| 2820 |
chandransh |
2204 |
|
|
|
2205 |
switch (field) {
|
| 5530 |
mandeep.dh |
2206 |
case ITEM_NUMBER:
|
|
|
2207 |
return isSetItemNumber();
|
| 4496 |
mandeep.dh |
2208 |
case ITEM_ID:
|
|
|
2209 |
return isSetItemId();
|
| 5530 |
mandeep.dh |
2210 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
2211 |
return isSetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
2212 |
}
|
|
|
2213 |
throw new IllegalStateException();
|
|
|
2214 |
}
|
|
|
2215 |
|
|
|
2216 |
@Override
|
|
|
2217 |
public boolean equals(Object that) {
|
|
|
2218 |
if (that == null)
|
|
|
2219 |
return false;
|
| 5361 |
mandeep.dh |
2220 |
if (that instanceof getNonSeralizedInventoryItem_args)
|
|
|
2221 |
return this.equals((getNonSeralizedInventoryItem_args)that);
|
| 2820 |
chandransh |
2222 |
return false;
|
|
|
2223 |
}
|
|
|
2224 |
|
| 5361 |
mandeep.dh |
2225 |
public boolean equals(getNonSeralizedInventoryItem_args that) {
|
| 2820 |
chandransh |
2226 |
if (that == null)
|
|
|
2227 |
return false;
|
|
|
2228 |
|
| 5530 |
mandeep.dh |
2229 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
2230 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
2231 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
2232 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
2233 |
return false;
|
|
|
2234 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
2235 |
return false;
|
|
|
2236 |
}
|
|
|
2237 |
|
| 4496 |
mandeep.dh |
2238 |
boolean this_present_itemId = true;
|
|
|
2239 |
boolean that_present_itemId = true;
|
|
|
2240 |
if (this_present_itemId || that_present_itemId) {
|
|
|
2241 |
if (!(this_present_itemId && that_present_itemId))
|
| 2820 |
chandransh |
2242 |
return false;
|
| 4496 |
mandeep.dh |
2243 |
if (this.itemId != that.itemId)
|
| 2820 |
chandransh |
2244 |
return false;
|
|
|
2245 |
}
|
|
|
2246 |
|
| 5530 |
mandeep.dh |
2247 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
2248 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
2249 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
2250 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
2251 |
return false;
|
| 5530 |
mandeep.dh |
2252 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
2253 |
return false;
|
|
|
2254 |
}
|
|
|
2255 |
|
|
|
2256 |
return true;
|
|
|
2257 |
}
|
|
|
2258 |
|
|
|
2259 |
@Override
|
|
|
2260 |
public int hashCode() {
|
|
|
2261 |
return 0;
|
|
|
2262 |
}
|
|
|
2263 |
|
| 5361 |
mandeep.dh |
2264 |
public int compareTo(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
2265 |
if (!getClass().equals(other.getClass())) {
|
|
|
2266 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2267 |
}
|
|
|
2268 |
|
|
|
2269 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
2270 |
getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
|
| 2820 |
chandransh |
2271 |
|
| 5530 |
mandeep.dh |
2272 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
2273 |
if (lastComparison != 0) {
|
|
|
2274 |
return lastComparison;
|
|
|
2275 |
}
|
|
|
2276 |
if (isSetItemNumber()) {
|
|
|
2277 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
2278 |
if (lastComparison != 0) {
|
|
|
2279 |
return lastComparison;
|
|
|
2280 |
}
|
|
|
2281 |
}
|
| 4496 |
mandeep.dh |
2282 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 2820 |
chandransh |
2283 |
if (lastComparison != 0) {
|
|
|
2284 |
return lastComparison;
|
|
|
2285 |
}
|
| 4496 |
mandeep.dh |
2286 |
if (isSetItemId()) {
|
|
|
2287 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 3430 |
rajveer |
2288 |
if (lastComparison != 0) {
|
|
|
2289 |
return lastComparison;
|
|
|
2290 |
}
|
| 2820 |
chandransh |
2291 |
}
|
| 5530 |
mandeep.dh |
2292 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
2293 |
if (lastComparison != 0) {
|
|
|
2294 |
return lastComparison;
|
|
|
2295 |
}
|
| 5530 |
mandeep.dh |
2296 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
2297 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
2298 |
if (lastComparison != 0) {
|
|
|
2299 |
return lastComparison;
|
|
|
2300 |
}
|
| 2820 |
chandransh |
2301 |
}
|
|
|
2302 |
return 0;
|
|
|
2303 |
}
|
|
|
2304 |
|
| 3430 |
rajveer |
2305 |
public _Fields fieldForId(int fieldId) {
|
|
|
2306 |
return _Fields.findByThriftId(fieldId);
|
|
|
2307 |
}
|
|
|
2308 |
|
|
|
2309 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2310 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2311 |
iprot.readStructBegin();
|
|
|
2312 |
while (true)
|
|
|
2313 |
{
|
|
|
2314 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2315 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2316 |
break;
|
|
|
2317 |
}
|
| 3430 |
rajveer |
2318 |
switch (field.id) {
|
| 5530 |
mandeep.dh |
2319 |
case 1: // ITEM_NUMBER
|
|
|
2320 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
2321 |
this.itemNumber = iprot.readString();
|
|
|
2322 |
} else {
|
|
|
2323 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2324 |
}
|
|
|
2325 |
break;
|
|
|
2326 |
case 2: // ITEM_ID
|
| 3430 |
rajveer |
2327 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
2328 |
this.itemId = iprot.readI64();
|
|
|
2329 |
setItemIdIsSet(true);
|
| 3430 |
rajveer |
2330 |
} else {
|
|
|
2331 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2332 |
}
|
|
|
2333 |
break;
|
| 5530 |
mandeep.dh |
2334 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
2335 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5530 |
mandeep.dh |
2336 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
2337 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
2338 |
} else {
|
|
|
2339 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2340 |
}
|
|
|
2341 |
break;
|
|
|
2342 |
default:
|
|
|
2343 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
2344 |
}
|
| 3430 |
rajveer |
2345 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
2346 |
}
|
|
|
2347 |
iprot.readStructEnd();
|
|
|
2348 |
validate();
|
|
|
2349 |
}
|
|
|
2350 |
|
| 3430 |
rajveer |
2351 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2352 |
validate();
|
|
|
2353 |
|
|
|
2354 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5530 |
mandeep.dh |
2355 |
if (this.itemNumber != null) {
|
|
|
2356 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
2357 |
oprot.writeString(this.itemNumber);
|
|
|
2358 |
oprot.writeFieldEnd();
|
|
|
2359 |
}
|
| 4496 |
mandeep.dh |
2360 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
2361 |
oprot.writeI64(this.itemId);
|
| 2820 |
chandransh |
2362 |
oprot.writeFieldEnd();
|
| 5530 |
mandeep.dh |
2363 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
2364 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
2365 |
oprot.writeFieldEnd();
|
|
|
2366 |
oprot.writeFieldStop();
|
|
|
2367 |
oprot.writeStructEnd();
|
|
|
2368 |
}
|
|
|
2369 |
|
|
|
2370 |
@Override
|
|
|
2371 |
public String toString() {
|
| 5361 |
mandeep.dh |
2372 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
|
| 2820 |
chandransh |
2373 |
boolean first = true;
|
|
|
2374 |
|
| 5530 |
mandeep.dh |
2375 |
sb.append("itemNumber:");
|
|
|
2376 |
if (this.itemNumber == null) {
|
|
|
2377 |
sb.append("null");
|
|
|
2378 |
} else {
|
|
|
2379 |
sb.append(this.itemNumber);
|
|
|
2380 |
}
|
|
|
2381 |
first = false;
|
|
|
2382 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
2383 |
sb.append("itemId:");
|
|
|
2384 |
sb.append(this.itemId);
|
| 2820 |
chandransh |
2385 |
first = false;
|
|
|
2386 |
if (!first) sb.append(", ");
|
| 5530 |
mandeep.dh |
2387 |
sb.append("fulfilmentWarehouseId:");
|
|
|
2388 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
2389 |
first = false;
|
|
|
2390 |
sb.append(")");
|
|
|
2391 |
return sb.toString();
|
|
|
2392 |
}
|
|
|
2393 |
|
| 3430 |
rajveer |
2394 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2395 |
// check for required fields
|
|
|
2396 |
}
|
|
|
2397 |
|
| 3430 |
rajveer |
2398 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2399 |
try {
|
|
|
2400 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2401 |
} catch (org.apache.thrift.TException te) {
|
|
|
2402 |
throw new java.io.IOException(te);
|
|
|
2403 |
}
|
|
|
2404 |
}
|
|
|
2405 |
|
|
|
2406 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2407 |
try {
|
| 4496 |
mandeep.dh |
2408 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
2409 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
2410 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2411 |
} catch (org.apache.thrift.TException te) {
|
|
|
2412 |
throw new java.io.IOException(te);
|
|
|
2413 |
}
|
|
|
2414 |
}
|
|
|
2415 |
|
| 2820 |
chandransh |
2416 |
}
|
|
|
2417 |
|
| 5361 |
mandeep.dh |
2418 |
public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2419 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
|
| 2820 |
chandransh |
2420 |
|
| 5361 |
mandeep.dh |
2421 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
2422 |
private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 2820 |
chandransh |
2423 |
|
| 5361 |
mandeep.dh |
2424 |
private InventoryItem success; // required
|
|
|
2425 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
2426 |
|
|
|
2427 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2428 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
2429 |
SUCCESS((short)0, "success"),
|
|
|
2430 |
WEX((short)1, "wex");
|
| 2820 |
chandransh |
2431 |
|
|
|
2432 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2433 |
|
|
|
2434 |
static {
|
|
|
2435 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2436 |
byName.put(field.getFieldName(), field);
|
|
|
2437 |
}
|
|
|
2438 |
}
|
|
|
2439 |
|
|
|
2440 |
/**
|
|
|
2441 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2442 |
*/
|
|
|
2443 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2444 |
switch(fieldId) {
|
|
|
2445 |
case 0: // SUCCESS
|
|
|
2446 |
return SUCCESS;
|
| 5361 |
mandeep.dh |
2447 |
case 1: // WEX
|
|
|
2448 |
return WEX;
|
| 3430 |
rajveer |
2449 |
default:
|
|
|
2450 |
return null;
|
|
|
2451 |
}
|
| 2820 |
chandransh |
2452 |
}
|
|
|
2453 |
|
|
|
2454 |
/**
|
|
|
2455 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2456 |
* if it is not found.
|
|
|
2457 |
*/
|
|
|
2458 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2459 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2460 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2461 |
return fields;
|
|
|
2462 |
}
|
|
|
2463 |
|
|
|
2464 |
/**
|
|
|
2465 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2466 |
*/
|
|
|
2467 |
public static _Fields findByName(String name) {
|
|
|
2468 |
return byName.get(name);
|
|
|
2469 |
}
|
|
|
2470 |
|
|
|
2471 |
private final short _thriftId;
|
|
|
2472 |
private final String _fieldName;
|
|
|
2473 |
|
|
|
2474 |
_Fields(short thriftId, String fieldName) {
|
|
|
2475 |
_thriftId = thriftId;
|
|
|
2476 |
_fieldName = fieldName;
|
|
|
2477 |
}
|
|
|
2478 |
|
|
|
2479 |
public short getThriftFieldId() {
|
|
|
2480 |
return _thriftId;
|
|
|
2481 |
}
|
|
|
2482 |
|
|
|
2483 |
public String getFieldName() {
|
|
|
2484 |
return _fieldName;
|
|
|
2485 |
}
|
|
|
2486 |
}
|
|
|
2487 |
|
|
|
2488 |
// isset id assignments
|
|
|
2489 |
|
| 3430 |
rajveer |
2490 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
2491 |
static {
|
| 3430 |
rajveer |
2492 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2493 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 5361 |
mandeep.dh |
2494 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
2495 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2496 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
2497 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
2498 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
|
| 2820 |
chandransh |
2499 |
}
|
|
|
2500 |
|
| 5361 |
mandeep.dh |
2501 |
public getNonSeralizedInventoryItem_result() {
|
| 2820 |
chandransh |
2502 |
}
|
|
|
2503 |
|
| 5361 |
mandeep.dh |
2504 |
public getNonSeralizedInventoryItem_result(
|
|
|
2505 |
InventoryItem success,
|
|
|
2506 |
WarehouseServiceException wex)
|
| 2820 |
chandransh |
2507 |
{
|
|
|
2508 |
this();
|
|
|
2509 |
this.success = success;
|
| 5361 |
mandeep.dh |
2510 |
this.wex = wex;
|
| 2820 |
chandransh |
2511 |
}
|
|
|
2512 |
|
|
|
2513 |
/**
|
|
|
2514 |
* Performs a deep copy on <i>other</i>.
|
|
|
2515 |
*/
|
| 5361 |
mandeep.dh |
2516 |
public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
2517 |
if (other.isSetSuccess()) {
|
| 5361 |
mandeep.dh |
2518 |
this.success = new InventoryItem(other.success);
|
| 2820 |
chandransh |
2519 |
}
|
| 5361 |
mandeep.dh |
2520 |
if (other.isSetWex()) {
|
|
|
2521 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
2522 |
}
|
| 2820 |
chandransh |
2523 |
}
|
|
|
2524 |
|
| 5361 |
mandeep.dh |
2525 |
public getNonSeralizedInventoryItem_result deepCopy() {
|
|
|
2526 |
return new getNonSeralizedInventoryItem_result(this);
|
| 2820 |
chandransh |
2527 |
}
|
|
|
2528 |
|
| 3430 |
rajveer |
2529 |
@Override
|
|
|
2530 |
public void clear() {
|
| 4496 |
mandeep.dh |
2531 |
this.success = null;
|
| 5361 |
mandeep.dh |
2532 |
this.wex = null;
|
| 2820 |
chandransh |
2533 |
}
|
|
|
2534 |
|
| 5361 |
mandeep.dh |
2535 |
public InventoryItem getSuccess() {
|
| 2820 |
chandransh |
2536 |
return this.success;
|
|
|
2537 |
}
|
|
|
2538 |
|
| 5361 |
mandeep.dh |
2539 |
public void setSuccess(InventoryItem success) {
|
| 2820 |
chandransh |
2540 |
this.success = success;
|
|
|
2541 |
}
|
|
|
2542 |
|
|
|
2543 |
public void unsetSuccess() {
|
| 4496 |
mandeep.dh |
2544 |
this.success = null;
|
| 2820 |
chandransh |
2545 |
}
|
|
|
2546 |
|
| 3430 |
rajveer |
2547 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
2548 |
public boolean isSetSuccess() {
|
| 4496 |
mandeep.dh |
2549 |
return this.success != null;
|
| 2820 |
chandransh |
2550 |
}
|
|
|
2551 |
|
|
|
2552 |
public void setSuccessIsSet(boolean value) {
|
| 4496 |
mandeep.dh |
2553 |
if (!value) {
|
|
|
2554 |
this.success = null;
|
|
|
2555 |
}
|
| 2820 |
chandransh |
2556 |
}
|
|
|
2557 |
|
| 5361 |
mandeep.dh |
2558 |
public WarehouseServiceException getWex() {
|
|
|
2559 |
return this.wex;
|
| 2820 |
chandransh |
2560 |
}
|
|
|
2561 |
|
| 5361 |
mandeep.dh |
2562 |
public void setWex(WarehouseServiceException wex) {
|
|
|
2563 |
this.wex = wex;
|
| 2820 |
chandransh |
2564 |
}
|
|
|
2565 |
|
| 5361 |
mandeep.dh |
2566 |
public void unsetWex() {
|
|
|
2567 |
this.wex = null;
|
| 2820 |
chandransh |
2568 |
}
|
|
|
2569 |
|
| 5361 |
mandeep.dh |
2570 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
2571 |
public boolean isSetWex() {
|
|
|
2572 |
return this.wex != null;
|
| 2820 |
chandransh |
2573 |
}
|
|
|
2574 |
|
| 5361 |
mandeep.dh |
2575 |
public void setWexIsSet(boolean value) {
|
|
|
2576 |
if (!value) {
|
|
|
2577 |
this.wex = null;
|
| 2820 |
chandransh |
2578 |
}
|
|
|
2579 |
}
|
|
|
2580 |
|
|
|
2581 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2582 |
switch (field) {
|
| 5361 |
mandeep.dh |
2583 |
case SUCCESS:
|
| 2820 |
chandransh |
2584 |
if (value == null) {
|
| 5361 |
mandeep.dh |
2585 |
unsetSuccess();
|
| 2820 |
chandransh |
2586 |
} else {
|
| 5361 |
mandeep.dh |
2587 |
setSuccess((InventoryItem)value);
|
| 2820 |
chandransh |
2588 |
}
|
|
|
2589 |
break;
|
|
|
2590 |
|
| 5361 |
mandeep.dh |
2591 |
case WEX:
|
| 2820 |
chandransh |
2592 |
if (value == null) {
|
| 5361 |
mandeep.dh |
2593 |
unsetWex();
|
| 2820 |
chandransh |
2594 |
} else {
|
| 5361 |
mandeep.dh |
2595 |
setWex((WarehouseServiceException)value);
|
| 2820 |
chandransh |
2596 |
}
|
|
|
2597 |
break;
|
|
|
2598 |
|
|
|
2599 |
}
|
|
|
2600 |
}
|
|
|
2601 |
|
|
|
2602 |
public Object getFieldValue(_Fields field) {
|
|
|
2603 |
switch (field) {
|
|
|
2604 |
case SUCCESS:
|
| 4496 |
mandeep.dh |
2605 |
return getSuccess();
|
| 2820 |
chandransh |
2606 |
|
| 5361 |
mandeep.dh |
2607 |
case WEX:
|
|
|
2608 |
return getWex();
|
|
|
2609 |
|
| 2820 |
chandransh |
2610 |
}
|
|
|
2611 |
throw new IllegalStateException();
|
|
|
2612 |
}
|
|
|
2613 |
|
| 3430 |
rajveer |
2614 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2615 |
public boolean isSet(_Fields field) {
|
|
|
2616 |
if (field == null) {
|
|
|
2617 |
throw new IllegalArgumentException();
|
|
|
2618 |
}
|
| 2820 |
chandransh |
2619 |
|
|
|
2620 |
switch (field) {
|
|
|
2621 |
case SUCCESS:
|
|
|
2622 |
return isSetSuccess();
|
| 5361 |
mandeep.dh |
2623 |
case WEX:
|
|
|
2624 |
return isSetWex();
|
| 2820 |
chandransh |
2625 |
}
|
|
|
2626 |
throw new IllegalStateException();
|
|
|
2627 |
}
|
|
|
2628 |
|
|
|
2629 |
@Override
|
|
|
2630 |
public boolean equals(Object that) {
|
|
|
2631 |
if (that == null)
|
|
|
2632 |
return false;
|
| 5361 |
mandeep.dh |
2633 |
if (that instanceof getNonSeralizedInventoryItem_result)
|
|
|
2634 |
return this.equals((getNonSeralizedInventoryItem_result)that);
|
| 2820 |
chandransh |
2635 |
return false;
|
|
|
2636 |
}
|
|
|
2637 |
|
| 5361 |
mandeep.dh |
2638 |
public boolean equals(getNonSeralizedInventoryItem_result that) {
|
| 2820 |
chandransh |
2639 |
if (that == null)
|
|
|
2640 |
return false;
|
|
|
2641 |
|
| 4496 |
mandeep.dh |
2642 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2643 |
boolean that_present_success = true && that.isSetSuccess();
|
| 2820 |
chandransh |
2644 |
if (this_present_success || that_present_success) {
|
|
|
2645 |
if (!(this_present_success && that_present_success))
|
|
|
2646 |
return false;
|
| 4496 |
mandeep.dh |
2647 |
if (!this.success.equals(that.success))
|
| 2820 |
chandransh |
2648 |
return false;
|
|
|
2649 |
}
|
|
|
2650 |
|
| 5361 |
mandeep.dh |
2651 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
2652 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
2653 |
if (this_present_wex || that_present_wex) {
|
|
|
2654 |
if (!(this_present_wex && that_present_wex))
|
| 4496 |
mandeep.dh |
2655 |
return false;
|
| 5361 |
mandeep.dh |
2656 |
if (!this.wex.equals(that.wex))
|
| 4496 |
mandeep.dh |
2657 |
return false;
|
|
|
2658 |
}
|
|
|
2659 |
|
|
|
2660 |
return true;
|
|
|
2661 |
}
|
|
|
2662 |
|
|
|
2663 |
@Override
|
|
|
2664 |
public int hashCode() {
|
|
|
2665 |
return 0;
|
|
|
2666 |
}
|
|
|
2667 |
|
| 5361 |
mandeep.dh |
2668 |
public int compareTo(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
2669 |
if (!getClass().equals(other.getClass())) {
|
|
|
2670 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2671 |
}
|
|
|
2672 |
|
|
|
2673 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
2674 |
getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
|
| 4496 |
mandeep.dh |
2675 |
|
|
|
2676 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
2677 |
if (lastComparison != 0) {
|
|
|
2678 |
return lastComparison;
|
|
|
2679 |
}
|
|
|
2680 |
if (isSetSuccess()) {
|
|
|
2681 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2682 |
if (lastComparison != 0) {
|
|
|
2683 |
return lastComparison;
|
|
|
2684 |
}
|
|
|
2685 |
}
|
| 5361 |
mandeep.dh |
2686 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
2687 |
if (lastComparison != 0) {
|
|
|
2688 |
return lastComparison;
|
|
|
2689 |
}
|
| 5361 |
mandeep.dh |
2690 |
if (isSetWex()) {
|
|
|
2691 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
| 3430 |
rajveer |
2692 |
if (lastComparison != 0) {
|
|
|
2693 |
return lastComparison;
|
|
|
2694 |
}
|
| 2820 |
chandransh |
2695 |
}
|
|
|
2696 |
return 0;
|
|
|
2697 |
}
|
|
|
2698 |
|
| 3430 |
rajveer |
2699 |
public _Fields fieldForId(int fieldId) {
|
|
|
2700 |
return _Fields.findByThriftId(fieldId);
|
|
|
2701 |
}
|
|
|
2702 |
|
|
|
2703 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2704 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2705 |
iprot.readStructBegin();
|
|
|
2706 |
while (true)
|
|
|
2707 |
{
|
|
|
2708 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2709 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2710 |
break;
|
|
|
2711 |
}
|
| 3430 |
rajveer |
2712 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
2713 |
case 0: // SUCCESS
|
|
|
2714 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2715 |
this.success = new InventoryItem();
|
|
|
2716 |
this.success.read(iprot);
|
| 3430 |
rajveer |
2717 |
} else {
|
|
|
2718 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2719 |
}
|
|
|
2720 |
break;
|
| 5361 |
mandeep.dh |
2721 |
case 1: // WEX
|
|
|
2722 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2723 |
this.wex = new WarehouseServiceException();
|
|
|
2724 |
this.wex.read(iprot);
|
| 4496 |
mandeep.dh |
2725 |
} else {
|
|
|
2726 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2727 |
}
|
|
|
2728 |
break;
|
|
|
2729 |
default:
|
|
|
2730 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2731 |
}
|
|
|
2732 |
iprot.readFieldEnd();
|
|
|
2733 |
}
|
|
|
2734 |
iprot.readStructEnd();
|
|
|
2735 |
validate();
|
|
|
2736 |
}
|
|
|
2737 |
|
|
|
2738 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
2739 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2740 |
|
|
|
2741 |
if (this.isSetSuccess()) {
|
|
|
2742 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 5361 |
mandeep.dh |
2743 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
2744 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
2745 |
} else if (this.isSetWex()) {
|
|
|
2746 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
2747 |
this.wex.write(oprot);
|
|
|
2748 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
2749 |
}
|
|
|
2750 |
oprot.writeFieldStop();
|
|
|
2751 |
oprot.writeStructEnd();
|
|
|
2752 |
}
|
|
|
2753 |
|
|
|
2754 |
@Override
|
|
|
2755 |
public String toString() {
|
| 5361 |
mandeep.dh |
2756 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
|
| 4496 |
mandeep.dh |
2757 |
boolean first = true;
|
|
|
2758 |
|
|
|
2759 |
sb.append("success:");
|
|
|
2760 |
if (this.success == null) {
|
|
|
2761 |
sb.append("null");
|
|
|
2762 |
} else {
|
|
|
2763 |
sb.append(this.success);
|
|
|
2764 |
}
|
|
|
2765 |
first = false;
|
| 5361 |
mandeep.dh |
2766 |
if (!first) sb.append(", ");
|
|
|
2767 |
sb.append("wex:");
|
|
|
2768 |
if (this.wex == null) {
|
|
|
2769 |
sb.append("null");
|
|
|
2770 |
} else {
|
|
|
2771 |
sb.append(this.wex);
|
|
|
2772 |
}
|
|
|
2773 |
first = false;
|
| 4496 |
mandeep.dh |
2774 |
sb.append(")");
|
|
|
2775 |
return sb.toString();
|
|
|
2776 |
}
|
|
|
2777 |
|
|
|
2778 |
public void validate() throws org.apache.thrift.TException {
|
|
|
2779 |
// check for required fields
|
|
|
2780 |
}
|
|
|
2781 |
|
|
|
2782 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2783 |
try {
|
|
|
2784 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2785 |
} catch (org.apache.thrift.TException te) {
|
|
|
2786 |
throw new java.io.IOException(te);
|
|
|
2787 |
}
|
|
|
2788 |
}
|
|
|
2789 |
|
|
|
2790 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2791 |
try {
|
|
|
2792 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2793 |
} catch (org.apache.thrift.TException te) {
|
|
|
2794 |
throw new java.io.IOException(te);
|
|
|
2795 |
}
|
|
|
2796 |
}
|
|
|
2797 |
|
|
|
2798 |
}
|
|
|
2799 |
|
|
|
2800 |
public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2801 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
|
| 3383 |
chandransh |
2802 |
|
| 5361 |
mandeep.dh |
2803 |
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);
|
| 4496 |
mandeep.dh |
2804 |
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);
|
|
|
2805 |
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);
|
| 5361 |
mandeep.dh |
2806 |
private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 3383 |
chandransh |
2807 |
|
| 5361 |
mandeep.dh |
2808 |
private InventoryItem inventoryItem; // required
|
| 4496 |
mandeep.dh |
2809 |
private ScanType type; // required
|
|
|
2810 |
private long quantity; // required
|
| 5361 |
mandeep.dh |
2811 |
private long billingWarehouseId; // required
|
| 3383 |
chandransh |
2812 |
|
|
|
2813 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2814 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
2815 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 4496 |
mandeep.dh |
2816 |
/**
|
|
|
2817 |
*
|
|
|
2818 |
* @see ScanType
|
|
|
2819 |
*/
|
|
|
2820 |
TYPE((short)2, "type"),
|
|
|
2821 |
QUANTITY((short)3, "quantity"),
|
| 5361 |
mandeep.dh |
2822 |
BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
|
| 3383 |
chandransh |
2823 |
|
|
|
2824 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2825 |
|
|
|
2826 |
static {
|
|
|
2827 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2828 |
byName.put(field.getFieldName(), field);
|
|
|
2829 |
}
|
|
|
2830 |
}
|
|
|
2831 |
|
|
|
2832 |
/**
|
|
|
2833 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2834 |
*/
|
|
|
2835 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2836 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
2837 |
case 1: // INVENTORY_ITEM
|
|
|
2838 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
2839 |
case 2: // TYPE
|
|
|
2840 |
return TYPE;
|
|
|
2841 |
case 3: // QUANTITY
|
|
|
2842 |
return QUANTITY;
|
| 5361 |
mandeep.dh |
2843 |
case 4: // BILLING_WAREHOUSE_ID
|
|
|
2844 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
2845 |
default:
|
|
|
2846 |
return null;
|
|
|
2847 |
}
|
| 3383 |
chandransh |
2848 |
}
|
|
|
2849 |
|
|
|
2850 |
/**
|
|
|
2851 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2852 |
* if it is not found.
|
|
|
2853 |
*/
|
|
|
2854 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2855 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2856 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2857 |
return fields;
|
|
|
2858 |
}
|
|
|
2859 |
|
|
|
2860 |
/**
|
|
|
2861 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2862 |
*/
|
|
|
2863 |
public static _Fields findByName(String name) {
|
|
|
2864 |
return byName.get(name);
|
|
|
2865 |
}
|
|
|
2866 |
|
|
|
2867 |
private final short _thriftId;
|
|
|
2868 |
private final String _fieldName;
|
|
|
2869 |
|
|
|
2870 |
_Fields(short thriftId, String fieldName) {
|
|
|
2871 |
_thriftId = thriftId;
|
|
|
2872 |
_fieldName = fieldName;
|
|
|
2873 |
}
|
|
|
2874 |
|
|
|
2875 |
public short getThriftFieldId() {
|
|
|
2876 |
return _thriftId;
|
|
|
2877 |
}
|
|
|
2878 |
|
|
|
2879 |
public String getFieldName() {
|
|
|
2880 |
return _fieldName;
|
|
|
2881 |
}
|
|
|
2882 |
}
|
|
|
2883 |
|
|
|
2884 |
// isset id assignments
|
| 5361 |
mandeep.dh |
2885 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
2886 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
|
|
|
2887 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 3383 |
chandransh |
2888 |
|
| 3430 |
rajveer |
2889 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
2890 |
static {
|
| 3430 |
rajveer |
2891 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
2892 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2893 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4496 |
mandeep.dh |
2894 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2895 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
2896 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2897 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
2898 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
2899 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
2900 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
2901 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
|
| 3383 |
chandransh |
2902 |
}
|
|
|
2903 |
|
| 4496 |
mandeep.dh |
2904 |
public scan_args() {
|
| 3383 |
chandransh |
2905 |
}
|
|
|
2906 |
|
| 4496 |
mandeep.dh |
2907 |
public scan_args(
|
| 5361 |
mandeep.dh |
2908 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
2909 |
ScanType type,
|
|
|
2910 |
long quantity,
|
| 5361 |
mandeep.dh |
2911 |
long billingWarehouseId)
|
| 3383 |
chandransh |
2912 |
{
|
|
|
2913 |
this();
|
| 5361 |
mandeep.dh |
2914 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
2915 |
this.type = type;
|
|
|
2916 |
this.quantity = quantity;
|
|
|
2917 |
setQuantityIsSet(true);
|
| 5361 |
mandeep.dh |
2918 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
2919 |
setBillingWarehouseIdIsSet(true);
|
| 3383 |
chandransh |
2920 |
}
|
|
|
2921 |
|
|
|
2922 |
/**
|
|
|
2923 |
* Performs a deep copy on <i>other</i>.
|
|
|
2924 |
*/
|
| 4496 |
mandeep.dh |
2925 |
public scan_args(scan_args other) {
|
| 3383 |
chandransh |
2926 |
__isset_bit_vector.clear();
|
|
|
2927 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
2928 |
if (other.isSetInventoryItem()) {
|
|
|
2929 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
2930 |
}
|
| 4496 |
mandeep.dh |
2931 |
if (other.isSetType()) {
|
|
|
2932 |
this.type = other.type;
|
|
|
2933 |
}
|
|
|
2934 |
this.quantity = other.quantity;
|
| 5361 |
mandeep.dh |
2935 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 3383 |
chandransh |
2936 |
}
|
|
|
2937 |
|
| 4496 |
mandeep.dh |
2938 |
public scan_args deepCopy() {
|
|
|
2939 |
return new scan_args(this);
|
| 3383 |
chandransh |
2940 |
}
|
|
|
2941 |
|
| 3430 |
rajveer |
2942 |
@Override
|
|
|
2943 |
public void clear() {
|
| 5361 |
mandeep.dh |
2944 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
2945 |
this.type = null;
|
|
|
2946 |
setQuantityIsSet(false);
|
|
|
2947 |
this.quantity = 0;
|
| 5361 |
mandeep.dh |
2948 |
setBillingWarehouseIdIsSet(false);
|
|
|
2949 |
this.billingWarehouseId = 0;
|
| 3383 |
chandransh |
2950 |
}
|
|
|
2951 |
|
| 5361 |
mandeep.dh |
2952 |
public InventoryItem getInventoryItem() {
|
|
|
2953 |
return this.inventoryItem;
|
| 3383 |
chandransh |
2954 |
}
|
|
|
2955 |
|
| 5361 |
mandeep.dh |
2956 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
2957 |
this.inventoryItem = inventoryItem;
|
| 3383 |
chandransh |
2958 |
}
|
|
|
2959 |
|
| 5361 |
mandeep.dh |
2960 |
public void unsetInventoryItem() {
|
|
|
2961 |
this.inventoryItem = null;
|
| 3383 |
chandransh |
2962 |
}
|
|
|
2963 |
|
| 5361 |
mandeep.dh |
2964 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
2965 |
public boolean isSetInventoryItem() {
|
|
|
2966 |
return this.inventoryItem != null;
|
| 3383 |
chandransh |
2967 |
}
|
|
|
2968 |
|
| 5361 |
mandeep.dh |
2969 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
2970 |
if (!value) {
|
|
|
2971 |
this.inventoryItem = null;
|
|
|
2972 |
}
|
| 3383 |
chandransh |
2973 |
}
|
|
|
2974 |
|
| 4496 |
mandeep.dh |
2975 |
/**
|
|
|
2976 |
*
|
|
|
2977 |
* @see ScanType
|
|
|
2978 |
*/
|
|
|
2979 |
public ScanType getType() {
|
|
|
2980 |
return this.type;
|
| 3383 |
chandransh |
2981 |
}
|
|
|
2982 |
|
| 4496 |
mandeep.dh |
2983 |
/**
|
|
|
2984 |
*
|
|
|
2985 |
* @see ScanType
|
|
|
2986 |
*/
|
|
|
2987 |
public void setType(ScanType type) {
|
|
|
2988 |
this.type = type;
|
| 3383 |
chandransh |
2989 |
}
|
|
|
2990 |
|
| 4496 |
mandeep.dh |
2991 |
public void unsetType() {
|
|
|
2992 |
this.type = null;
|
| 3383 |
chandransh |
2993 |
}
|
|
|
2994 |
|
| 4496 |
mandeep.dh |
2995 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
2996 |
public boolean isSetType() {
|
|
|
2997 |
return this.type != null;
|
| 3383 |
chandransh |
2998 |
}
|
|
|
2999 |
|
| 4496 |
mandeep.dh |
3000 |
public void setTypeIsSet(boolean value) {
|
|
|
3001 |
if (!value) {
|
|
|
3002 |
this.type = null;
|
|
|
3003 |
}
|
| 3383 |
chandransh |
3004 |
}
|
|
|
3005 |
|
| 4496 |
mandeep.dh |
3006 |
public long getQuantity() {
|
|
|
3007 |
return this.quantity;
|
|
|
3008 |
}
|
|
|
3009 |
|
|
|
3010 |
public void setQuantity(long quantity) {
|
|
|
3011 |
this.quantity = quantity;
|
|
|
3012 |
setQuantityIsSet(true);
|
|
|
3013 |
}
|
|
|
3014 |
|
|
|
3015 |
public void unsetQuantity() {
|
|
|
3016 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
3017 |
}
|
|
|
3018 |
|
|
|
3019 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
3020 |
public boolean isSetQuantity() {
|
|
|
3021 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
3022 |
}
|
|
|
3023 |
|
|
|
3024 |
public void setQuantityIsSet(boolean value) {
|
|
|
3025 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
3026 |
}
|
|
|
3027 |
|
| 5361 |
mandeep.dh |
3028 |
public long getBillingWarehouseId() {
|
|
|
3029 |
return this.billingWarehouseId;
|
| 4496 |
mandeep.dh |
3030 |
}
|
|
|
3031 |
|
| 5361 |
mandeep.dh |
3032 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
3033 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
3034 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
3035 |
}
|
|
|
3036 |
|
| 5361 |
mandeep.dh |
3037 |
public void unsetBillingWarehouseId() {
|
|
|
3038 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
3039 |
}
|
|
|
3040 |
|
| 5361 |
mandeep.dh |
3041 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
3042 |
public boolean isSetBillingWarehouseId() {
|
|
|
3043 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
3044 |
}
|
|
|
3045 |
|
| 5361 |
mandeep.dh |
3046 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
3047 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
3048 |
}
|
|
|
3049 |
|
| 3383 |
chandransh |
3050 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3051 |
switch (field) {
|
| 5361 |
mandeep.dh |
3052 |
case INVENTORY_ITEM:
|
| 3383 |
chandransh |
3053 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3054 |
unsetInventoryItem();
|
| 3383 |
chandransh |
3055 |
} else {
|
| 5361 |
mandeep.dh |
3056 |
setInventoryItem((InventoryItem)value);
|
| 3383 |
chandransh |
3057 |
}
|
|
|
3058 |
break;
|
|
|
3059 |
|
| 4496 |
mandeep.dh |
3060 |
case TYPE:
|
| 3383 |
chandransh |
3061 |
if (value == null) {
|
| 4496 |
mandeep.dh |
3062 |
unsetType();
|
| 3383 |
chandransh |
3063 |
} else {
|
| 4496 |
mandeep.dh |
3064 |
setType((ScanType)value);
|
| 3383 |
chandransh |
3065 |
}
|
|
|
3066 |
break;
|
|
|
3067 |
|
| 4496 |
mandeep.dh |
3068 |
case QUANTITY:
|
|
|
3069 |
if (value == null) {
|
|
|
3070 |
unsetQuantity();
|
|
|
3071 |
} else {
|
|
|
3072 |
setQuantity((Long)value);
|
|
|
3073 |
}
|
|
|
3074 |
break;
|
|
|
3075 |
|
| 5361 |
mandeep.dh |
3076 |
case BILLING_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
3077 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3078 |
unsetBillingWarehouseId();
|
| 4496 |
mandeep.dh |
3079 |
} else {
|
| 5361 |
mandeep.dh |
3080 |
setBillingWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
3081 |
}
|
|
|
3082 |
break;
|
|
|
3083 |
|
| 3383 |
chandransh |
3084 |
}
|
|
|
3085 |
}
|
|
|
3086 |
|
|
|
3087 |
public Object getFieldValue(_Fields field) {
|
|
|
3088 |
switch (field) {
|
| 5361 |
mandeep.dh |
3089 |
case INVENTORY_ITEM:
|
|
|
3090 |
return getInventoryItem();
|
| 3383 |
chandransh |
3091 |
|
| 4496 |
mandeep.dh |
3092 |
case TYPE:
|
|
|
3093 |
return getType();
|
| 3383 |
chandransh |
3094 |
|
| 4496 |
mandeep.dh |
3095 |
case QUANTITY:
|
|
|
3096 |
return Long.valueOf(getQuantity());
|
|
|
3097 |
|
| 5361 |
mandeep.dh |
3098 |
case BILLING_WAREHOUSE_ID:
|
|
|
3099 |
return Long.valueOf(getBillingWarehouseId());
|
| 4496 |
mandeep.dh |
3100 |
|
| 3383 |
chandransh |
3101 |
}
|
|
|
3102 |
throw new IllegalStateException();
|
|
|
3103 |
}
|
|
|
3104 |
|
| 3430 |
rajveer |
3105 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3106 |
public boolean isSet(_Fields field) {
|
|
|
3107 |
if (field == null) {
|
|
|
3108 |
throw new IllegalArgumentException();
|
|
|
3109 |
}
|
| 3383 |
chandransh |
3110 |
|
|
|
3111 |
switch (field) {
|
| 5361 |
mandeep.dh |
3112 |
case INVENTORY_ITEM:
|
|
|
3113 |
return isSetInventoryItem();
|
| 4496 |
mandeep.dh |
3114 |
case TYPE:
|
|
|
3115 |
return isSetType();
|
|
|
3116 |
case QUANTITY:
|
|
|
3117 |
return isSetQuantity();
|
| 5361 |
mandeep.dh |
3118 |
case BILLING_WAREHOUSE_ID:
|
|
|
3119 |
return isSetBillingWarehouseId();
|
| 3383 |
chandransh |
3120 |
}
|
|
|
3121 |
throw new IllegalStateException();
|
|
|
3122 |
}
|
|
|
3123 |
|
|
|
3124 |
@Override
|
|
|
3125 |
public boolean equals(Object that) {
|
|
|
3126 |
if (that == null)
|
|
|
3127 |
return false;
|
| 4496 |
mandeep.dh |
3128 |
if (that instanceof scan_args)
|
|
|
3129 |
return this.equals((scan_args)that);
|
| 3383 |
chandransh |
3130 |
return false;
|
|
|
3131 |
}
|
|
|
3132 |
|
| 4496 |
mandeep.dh |
3133 |
public boolean equals(scan_args that) {
|
| 3383 |
chandransh |
3134 |
if (that == null)
|
|
|
3135 |
return false;
|
|
|
3136 |
|
| 5361 |
mandeep.dh |
3137 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
3138 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
3139 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
3140 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 3383 |
chandransh |
3141 |
return false;
|
| 5361 |
mandeep.dh |
3142 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 3383 |
chandransh |
3143 |
return false;
|
|
|
3144 |
}
|
|
|
3145 |
|
| 4496 |
mandeep.dh |
3146 |
boolean this_present_type = true && this.isSetType();
|
|
|
3147 |
boolean that_present_type = true && that.isSetType();
|
|
|
3148 |
if (this_present_type || that_present_type) {
|
|
|
3149 |
if (!(this_present_type && that_present_type))
|
| 3383 |
chandransh |
3150 |
return false;
|
| 4496 |
mandeep.dh |
3151 |
if (!this.type.equals(that.type))
|
| 3383 |
chandransh |
3152 |
return false;
|
|
|
3153 |
}
|
|
|
3154 |
|
| 4496 |
mandeep.dh |
3155 |
boolean this_present_quantity = true;
|
|
|
3156 |
boolean that_present_quantity = true;
|
|
|
3157 |
if (this_present_quantity || that_present_quantity) {
|
|
|
3158 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
3159 |
return false;
|
|
|
3160 |
if (this.quantity != that.quantity)
|
|
|
3161 |
return false;
|
|
|
3162 |
}
|
|
|
3163 |
|
| 5361 |
mandeep.dh |
3164 |
boolean this_present_billingWarehouseId = true;
|
|
|
3165 |
boolean that_present_billingWarehouseId = true;
|
|
|
3166 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
3167 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| 4496 |
mandeep.dh |
3168 |
return false;
|
| 5361 |
mandeep.dh |
3169 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| 4496 |
mandeep.dh |
3170 |
return false;
|
|
|
3171 |
}
|
|
|
3172 |
|
| 3383 |
chandransh |
3173 |
return true;
|
|
|
3174 |
}
|
|
|
3175 |
|
|
|
3176 |
@Override
|
|
|
3177 |
public int hashCode() {
|
|
|
3178 |
return 0;
|
|
|
3179 |
}
|
|
|
3180 |
|
| 4496 |
mandeep.dh |
3181 |
public int compareTo(scan_args other) {
|
| 3383 |
chandransh |
3182 |
if (!getClass().equals(other.getClass())) {
|
|
|
3183 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3184 |
}
|
|
|
3185 |
|
|
|
3186 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3187 |
scan_args typedOther = (scan_args)other;
|
| 3383 |
chandransh |
3188 |
|
| 5361 |
mandeep.dh |
3189 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 3383 |
chandransh |
3190 |
if (lastComparison != 0) {
|
|
|
3191 |
return lastComparison;
|
|
|
3192 |
}
|
| 5361 |
mandeep.dh |
3193 |
if (isSetInventoryItem()) {
|
|
|
3194 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
3195 |
if (lastComparison != 0) {
|
|
|
3196 |
return lastComparison;
|
|
|
3197 |
}
|
| 3383 |
chandransh |
3198 |
}
|
| 4496 |
mandeep.dh |
3199 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3383 |
chandransh |
3200 |
if (lastComparison != 0) {
|
|
|
3201 |
return lastComparison;
|
|
|
3202 |
}
|
| 4496 |
mandeep.dh |
3203 |
if (isSetType()) {
|
|
|
3204 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
3205 |
if (lastComparison != 0) {
|
|
|
3206 |
return lastComparison;
|
|
|
3207 |
}
|
| 3383 |
chandransh |
3208 |
}
|
| 4496 |
mandeep.dh |
3209 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
3210 |
if (lastComparison != 0) {
|
|
|
3211 |
return lastComparison;
|
|
|
3212 |
}
|
|
|
3213 |
if (isSetQuantity()) {
|
|
|
3214 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
3215 |
if (lastComparison != 0) {
|
|
|
3216 |
return lastComparison;
|
|
|
3217 |
}
|
|
|
3218 |
}
|
| 5361 |
mandeep.dh |
3219 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| 4496 |
mandeep.dh |
3220 |
if (lastComparison != 0) {
|
|
|
3221 |
return lastComparison;
|
|
|
3222 |
}
|
| 5361 |
mandeep.dh |
3223 |
if (isSetBillingWarehouseId()) {
|
|
|
3224 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3225 |
if (lastComparison != 0) {
|
|
|
3226 |
return lastComparison;
|
|
|
3227 |
}
|
|
|
3228 |
}
|
| 3383 |
chandransh |
3229 |
return 0;
|
|
|
3230 |
}
|
|
|
3231 |
|
| 3430 |
rajveer |
3232 |
public _Fields fieldForId(int fieldId) {
|
|
|
3233 |
return _Fields.findByThriftId(fieldId);
|
|
|
3234 |
}
|
|
|
3235 |
|
|
|
3236 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3237 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
3238 |
iprot.readStructBegin();
|
|
|
3239 |
while (true)
|
|
|
3240 |
{
|
|
|
3241 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3242 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
3243 |
break;
|
|
|
3244 |
}
|
| 3430 |
rajveer |
3245 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
3246 |
case 1: // INVENTORY_ITEM
|
|
|
3247 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3248 |
this.inventoryItem = new InventoryItem();
|
|
|
3249 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
3250 |
} else {
|
|
|
3251 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3252 |
}
|
|
|
3253 |
break;
|
| 4496 |
mandeep.dh |
3254 |
case 2: // TYPE
|
|
|
3255 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3256 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
3257 |
} else {
|
|
|
3258 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3259 |
}
|
|
|
3260 |
break;
|
| 4496 |
mandeep.dh |
3261 |
case 3: // QUANTITY
|
|
|
3262 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3263 |
this.quantity = iprot.readI64();
|
|
|
3264 |
setQuantityIsSet(true);
|
|
|
3265 |
} else {
|
|
|
3266 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3267 |
}
|
|
|
3268 |
break;
|
| 5361 |
mandeep.dh |
3269 |
case 4: // BILLING_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
3270 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5361 |
mandeep.dh |
3271 |
this.billingWarehouseId = iprot.readI64();
|
|
|
3272 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
3273 |
} else {
|
|
|
3274 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3275 |
}
|
|
|
3276 |
break;
|
| 3430 |
rajveer |
3277 |
default:
|
|
|
3278 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
3279 |
}
|
| 3430 |
rajveer |
3280 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
3281 |
}
|
|
|
3282 |
iprot.readStructEnd();
|
|
|
3283 |
validate();
|
|
|
3284 |
}
|
|
|
3285 |
|
| 3430 |
rajveer |
3286 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3287 |
validate();
|
|
|
3288 |
|
|
|
3289 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
3290 |
if (this.inventoryItem != null) {
|
|
|
3291 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
3292 |
this.inventoryItem.write(oprot);
|
|
|
3293 |
oprot.writeFieldEnd();
|
|
|
3294 |
}
|
| 4496 |
mandeep.dh |
3295 |
if (this.type != null) {
|
|
|
3296 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
3297 |
oprot.writeI32(this.type.getValue());
|
|
|
3298 |
oprot.writeFieldEnd();
|
|
|
3299 |
}
|
|
|
3300 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
3301 |
oprot.writeI64(this.quantity);
|
| 3383 |
chandransh |
3302 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
3303 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
3304 |
oprot.writeI64(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3305 |
oprot.writeFieldEnd();
|
| 3383 |
chandransh |
3306 |
oprot.writeFieldStop();
|
|
|
3307 |
oprot.writeStructEnd();
|
|
|
3308 |
}
|
|
|
3309 |
|
|
|
3310 |
@Override
|
|
|
3311 |
public String toString() {
|
| 4496 |
mandeep.dh |
3312 |
StringBuilder sb = new StringBuilder("scan_args(");
|
| 3383 |
chandransh |
3313 |
boolean first = true;
|
|
|
3314 |
|
| 5361 |
mandeep.dh |
3315 |
sb.append("inventoryItem:");
|
|
|
3316 |
if (this.inventoryItem == null) {
|
|
|
3317 |
sb.append("null");
|
|
|
3318 |
} else {
|
|
|
3319 |
sb.append(this.inventoryItem);
|
|
|
3320 |
}
|
| 3383 |
chandransh |
3321 |
first = false;
|
|
|
3322 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
3323 |
sb.append("type:");
|
|
|
3324 |
if (this.type == null) {
|
|
|
3325 |
sb.append("null");
|
|
|
3326 |
} else {
|
|
|
3327 |
sb.append(this.type);
|
|
|
3328 |
}
|
| 3383 |
chandransh |
3329 |
first = false;
|
| 4496 |
mandeep.dh |
3330 |
if (!first) sb.append(", ");
|
|
|
3331 |
sb.append("quantity:");
|
|
|
3332 |
sb.append(this.quantity);
|
|
|
3333 |
first = false;
|
|
|
3334 |
if (!first) sb.append(", ");
|
| 5361 |
mandeep.dh |
3335 |
sb.append("billingWarehouseId:");
|
|
|
3336 |
sb.append(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3337 |
first = false;
|
| 3383 |
chandransh |
3338 |
sb.append(")");
|
|
|
3339 |
return sb.toString();
|
|
|
3340 |
}
|
|
|
3341 |
|
| 3430 |
rajveer |
3342 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3343 |
// check for required fields
|
|
|
3344 |
}
|
|
|
3345 |
|
| 3430 |
rajveer |
3346 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3347 |
try {
|
|
|
3348 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3349 |
} catch (org.apache.thrift.TException te) {
|
|
|
3350 |
throw new java.io.IOException(te);
|
|
|
3351 |
}
|
|
|
3352 |
}
|
|
|
3353 |
|
|
|
3354 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3355 |
try {
|
| 4496 |
mandeep.dh |
3356 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3357 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
3358 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3359 |
} catch (org.apache.thrift.TException te) {
|
|
|
3360 |
throw new java.io.IOException(te);
|
|
|
3361 |
}
|
|
|
3362 |
}
|
|
|
3363 |
|
| 3383 |
chandransh |
3364 |
}
|
|
|
3365 |
|
| 4496 |
mandeep.dh |
3366 |
public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3367 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
|
| 3383 |
chandransh |
3368 |
|
| 3430 |
rajveer |
3369 |
private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 3383 |
chandransh |
3370 |
|
| 3430 |
rajveer |
3371 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
3372 |
|
|
|
3373 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3374 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
3375 |
WEX((short)1, "wex");
|
|
|
3376 |
|
|
|
3377 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3378 |
|
|
|
3379 |
static {
|
|
|
3380 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3381 |
byName.put(field.getFieldName(), field);
|
|
|
3382 |
}
|
|
|
3383 |
}
|
|
|
3384 |
|
|
|
3385 |
/**
|
|
|
3386 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3387 |
*/
|
|
|
3388 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3389 |
switch(fieldId) {
|
|
|
3390 |
case 1: // WEX
|
|
|
3391 |
return WEX;
|
|
|
3392 |
default:
|
|
|
3393 |
return null;
|
|
|
3394 |
}
|
| 3383 |
chandransh |
3395 |
}
|
|
|
3396 |
|
|
|
3397 |
/**
|
|
|
3398 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3399 |
* if it is not found.
|
|
|
3400 |
*/
|
|
|
3401 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3402 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3403 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3404 |
return fields;
|
|
|
3405 |
}
|
|
|
3406 |
|
|
|
3407 |
/**
|
|
|
3408 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3409 |
*/
|
|
|
3410 |
public static _Fields findByName(String name) {
|
|
|
3411 |
return byName.get(name);
|
|
|
3412 |
}
|
|
|
3413 |
|
|
|
3414 |
private final short _thriftId;
|
|
|
3415 |
private final String _fieldName;
|
|
|
3416 |
|
|
|
3417 |
_Fields(short thriftId, String fieldName) {
|
|
|
3418 |
_thriftId = thriftId;
|
|
|
3419 |
_fieldName = fieldName;
|
|
|
3420 |
}
|
|
|
3421 |
|
|
|
3422 |
public short getThriftFieldId() {
|
|
|
3423 |
return _thriftId;
|
|
|
3424 |
}
|
|
|
3425 |
|
|
|
3426 |
public String getFieldName() {
|
|
|
3427 |
return _fieldName;
|
|
|
3428 |
}
|
|
|
3429 |
}
|
|
|
3430 |
|
|
|
3431 |
// isset id assignments
|
|
|
3432 |
|
| 3430 |
rajveer |
3433 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
3434 |
static {
|
| 3430 |
rajveer |
3435 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3436 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3437 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3438 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
3439 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
|
| 3383 |
chandransh |
3440 |
}
|
|
|
3441 |
|
| 4496 |
mandeep.dh |
3442 |
public scan_result() {
|
| 3383 |
chandransh |
3443 |
}
|
|
|
3444 |
|
| 4496 |
mandeep.dh |
3445 |
public scan_result(
|
| 3383 |
chandransh |
3446 |
WarehouseServiceException wex)
|
|
|
3447 |
{
|
|
|
3448 |
this();
|
|
|
3449 |
this.wex = wex;
|
|
|
3450 |
}
|
|
|
3451 |
|
|
|
3452 |
/**
|
|
|
3453 |
* Performs a deep copy on <i>other</i>.
|
|
|
3454 |
*/
|
| 4496 |
mandeep.dh |
3455 |
public scan_result(scan_result other) {
|
| 3383 |
chandransh |
3456 |
if (other.isSetWex()) {
|
|
|
3457 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
3458 |
}
|
|
|
3459 |
}
|
|
|
3460 |
|
| 4496 |
mandeep.dh |
3461 |
public scan_result deepCopy() {
|
|
|
3462 |
return new scan_result(this);
|
| 3383 |
chandransh |
3463 |
}
|
|
|
3464 |
|
| 3430 |
rajveer |
3465 |
@Override
|
|
|
3466 |
public void clear() {
|
|
|
3467 |
this.wex = null;
|
| 3383 |
chandransh |
3468 |
}
|
|
|
3469 |
|
|
|
3470 |
public WarehouseServiceException getWex() {
|
|
|
3471 |
return this.wex;
|
|
|
3472 |
}
|
|
|
3473 |
|
| 3430 |
rajveer |
3474 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
3475 |
this.wex = wex;
|
|
|
3476 |
}
|
|
|
3477 |
|
|
|
3478 |
public void unsetWex() {
|
|
|
3479 |
this.wex = null;
|
|
|
3480 |
}
|
|
|
3481 |
|
| 3430 |
rajveer |
3482 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
3483 |
public boolean isSetWex() {
|
|
|
3484 |
return this.wex != null;
|
|
|
3485 |
}
|
|
|
3486 |
|
|
|
3487 |
public void setWexIsSet(boolean value) {
|
|
|
3488 |
if (!value) {
|
|
|
3489 |
this.wex = null;
|
|
|
3490 |
}
|
|
|
3491 |
}
|
|
|
3492 |
|
|
|
3493 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3494 |
switch (field) {
|
|
|
3495 |
case WEX:
|
|
|
3496 |
if (value == null) {
|
|
|
3497 |
unsetWex();
|
|
|
3498 |
} else {
|
|
|
3499 |
setWex((WarehouseServiceException)value);
|
|
|
3500 |
}
|
|
|
3501 |
break;
|
|
|
3502 |
|
|
|
3503 |
}
|
|
|
3504 |
}
|
|
|
3505 |
|
|
|
3506 |
public Object getFieldValue(_Fields field) {
|
|
|
3507 |
switch (field) {
|
|
|
3508 |
case WEX:
|
|
|
3509 |
return getWex();
|
|
|
3510 |
|
|
|
3511 |
}
|
|
|
3512 |
throw new IllegalStateException();
|
|
|
3513 |
}
|
|
|
3514 |
|
| 3430 |
rajveer |
3515 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3516 |
public boolean isSet(_Fields field) {
|
|
|
3517 |
if (field == null) {
|
|
|
3518 |
throw new IllegalArgumentException();
|
|
|
3519 |
}
|
| 3383 |
chandransh |
3520 |
|
|
|
3521 |
switch (field) {
|
|
|
3522 |
case WEX:
|
|
|
3523 |
return isSetWex();
|
|
|
3524 |
}
|
|
|
3525 |
throw new IllegalStateException();
|
|
|
3526 |
}
|
|
|
3527 |
|
|
|
3528 |
@Override
|
|
|
3529 |
public boolean equals(Object that) {
|
|
|
3530 |
if (that == null)
|
|
|
3531 |
return false;
|
| 4496 |
mandeep.dh |
3532 |
if (that instanceof scan_result)
|
|
|
3533 |
return this.equals((scan_result)that);
|
| 3383 |
chandransh |
3534 |
return false;
|
|
|
3535 |
}
|
|
|
3536 |
|
| 4496 |
mandeep.dh |
3537 |
public boolean equals(scan_result that) {
|
| 3383 |
chandransh |
3538 |
if (that == null)
|
|
|
3539 |
return false;
|
|
|
3540 |
|
|
|
3541 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
3542 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
3543 |
if (this_present_wex || that_present_wex) {
|
|
|
3544 |
if (!(this_present_wex && that_present_wex))
|
|
|
3545 |
return false;
|
|
|
3546 |
if (!this.wex.equals(that.wex))
|
|
|
3547 |
return false;
|
|
|
3548 |
}
|
|
|
3549 |
|
|
|
3550 |
return true;
|
|
|
3551 |
}
|
|
|
3552 |
|
|
|
3553 |
@Override
|
|
|
3554 |
public int hashCode() {
|
|
|
3555 |
return 0;
|
|
|
3556 |
}
|
|
|
3557 |
|
| 4496 |
mandeep.dh |
3558 |
public int compareTo(scan_result other) {
|
| 3383 |
chandransh |
3559 |
if (!getClass().equals(other.getClass())) {
|
|
|
3560 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3561 |
}
|
|
|
3562 |
|
|
|
3563 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3564 |
scan_result typedOther = (scan_result)other;
|
| 3383 |
chandransh |
3565 |
|
| 3430 |
rajveer |
3566 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
3567 |
if (lastComparison != 0) {
|
|
|
3568 |
return lastComparison;
|
|
|
3569 |
}
|
| 3430 |
rajveer |
3570 |
if (isSetWex()) {
|
|
|
3571 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
3572 |
if (lastComparison != 0) {
|
|
|
3573 |
return lastComparison;
|
|
|
3574 |
}
|
| 3383 |
chandransh |
3575 |
}
|
|
|
3576 |
return 0;
|
|
|
3577 |
}
|
|
|
3578 |
|
| 3430 |
rajveer |
3579 |
public _Fields fieldForId(int fieldId) {
|
|
|
3580 |
return _Fields.findByThriftId(fieldId);
|
|
|
3581 |
}
|
|
|
3582 |
|
|
|
3583 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3584 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
3585 |
iprot.readStructBegin();
|
|
|
3586 |
while (true)
|
|
|
3587 |
{
|
|
|
3588 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3589 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
3590 |
break;
|
|
|
3591 |
}
|
| 3430 |
rajveer |
3592 |
switch (field.id) {
|
|
|
3593 |
case 1: // WEX
|
|
|
3594 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3595 |
this.wex = new WarehouseServiceException();
|
|
|
3596 |
this.wex.read(iprot);
|
|
|
3597 |
} else {
|
|
|
3598 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3599 |
}
|
|
|
3600 |
break;
|
|
|
3601 |
default:
|
|
|
3602 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
3603 |
}
|
| 3430 |
rajveer |
3604 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
3605 |
}
|
|
|
3606 |
iprot.readStructEnd();
|
|
|
3607 |
validate();
|
|
|
3608 |
}
|
|
|
3609 |
|
| 3430 |
rajveer |
3610 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3611 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3612 |
|
| 4496 |
mandeep.dh |
3613 |
if (this.isSetWex()) {
|
| 3383 |
chandransh |
3614 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
3615 |
this.wex.write(oprot);
|
|
|
3616 |
oprot.writeFieldEnd();
|
|
|
3617 |
}
|
|
|
3618 |
oprot.writeFieldStop();
|
|
|
3619 |
oprot.writeStructEnd();
|
|
|
3620 |
}
|
|
|
3621 |
|
|
|
3622 |
@Override
|
|
|
3623 |
public String toString() {
|
| 4496 |
mandeep.dh |
3624 |
StringBuilder sb = new StringBuilder("scan_result(");
|
| 3383 |
chandransh |
3625 |
boolean first = true;
|
|
|
3626 |
|
|
|
3627 |
sb.append("wex:");
|
|
|
3628 |
if (this.wex == null) {
|
|
|
3629 |
sb.append("null");
|
|
|
3630 |
} else {
|
|
|
3631 |
sb.append(this.wex);
|
|
|
3632 |
}
|
|
|
3633 |
first = false;
|
|
|
3634 |
sb.append(")");
|
|
|
3635 |
return sb.toString();
|
|
|
3636 |
}
|
|
|
3637 |
|
| 3430 |
rajveer |
3638 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3639 |
// check for required fields
|
|
|
3640 |
}
|
|
|
3641 |
|
| 3430 |
rajveer |
3642 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3643 |
try {
|
|
|
3644 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3645 |
} catch (org.apache.thrift.TException te) {
|
|
|
3646 |
throw new java.io.IOException(te);
|
|
|
3647 |
}
|
|
|
3648 |
}
|
|
|
3649 |
|
|
|
3650 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3651 |
try {
|
|
|
3652 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3653 |
} catch (org.apache.thrift.TException te) {
|
|
|
3654 |
throw new java.io.IOException(te);
|
|
|
3655 |
}
|
|
|
3656 |
}
|
|
|
3657 |
|
| 3383 |
chandransh |
3658 |
}
|
|
|
3659 |
|
| 4496 |
mandeep.dh |
3660 |
public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3661 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
|
| 2820 |
chandransh |
3662 |
|
| 4555 |
mandeep.dh |
3663 |
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);
|
| 4496 |
mandeep.dh |
3664 |
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);
|
|
|
3665 |
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);
|
| 5110 |
mandeep.dh |
3666 |
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);
|
|
|
3667 |
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);
|
|
|
3668 |
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);
|
| 2820 |
chandransh |
3669 |
|
| 4555 |
mandeep.dh |
3670 |
private String serialNumber; // required
|
| 3430 |
rajveer |
3671 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
3672 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
3673 |
private long fulfilmentWarehouseId; // required
|
|
|
3674 |
private double quantity; // required
|
|
|
3675 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
3676 |
|
|
|
3677 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3678 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4555 |
mandeep.dh |
3679 |
SERIAL_NUMBER((short)1, "serialNumber"),
|
| 2820 |
chandransh |
3680 |
/**
|
|
|
3681 |
*
|
|
|
3682 |
* @see ScanType
|
|
|
3683 |
*/
|
| 4496 |
mandeep.dh |
3684 |
TYPE((short)2, "type"),
|
|
|
3685 |
ORDER_ID((short)3, "orderId"),
|
| 5110 |
mandeep.dh |
3686 |
FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
|
|
|
3687 |
QUANTITY((short)5, "quantity"),
|
|
|
3688 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
3689 |
|
|
|
3690 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3691 |
|
|
|
3692 |
static {
|
|
|
3693 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3694 |
byName.put(field.getFieldName(), field);
|
|
|
3695 |
}
|
|
|
3696 |
}
|
|
|
3697 |
|
|
|
3698 |
/**
|
|
|
3699 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3700 |
*/
|
|
|
3701 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3702 |
switch(fieldId) {
|
| 4555 |
mandeep.dh |
3703 |
case 1: // SERIAL_NUMBER
|
|
|
3704 |
return SERIAL_NUMBER;
|
| 4496 |
mandeep.dh |
3705 |
case 2: // TYPE
|
| 3430 |
rajveer |
3706 |
return TYPE;
|
| 4496 |
mandeep.dh |
3707 |
case 3: // ORDER_ID
|
|
|
3708 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
3709 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
|
|
3710 |
return FULFILMENT_WAREHOUSE_ID;
|
|
|
3711 |
case 5: // QUANTITY
|
|
|
3712 |
return QUANTITY;
|
|
|
3713 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
3714 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
3715 |
default:
|
|
|
3716 |
return null;
|
|
|
3717 |
}
|
| 2820 |
chandransh |
3718 |
}
|
|
|
3719 |
|
|
|
3720 |
/**
|
|
|
3721 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3722 |
* if it is not found.
|
|
|
3723 |
*/
|
|
|
3724 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3725 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3726 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3727 |
return fields;
|
|
|
3728 |
}
|
|
|
3729 |
|
|
|
3730 |
/**
|
|
|
3731 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3732 |
*/
|
|
|
3733 |
public static _Fields findByName(String name) {
|
|
|
3734 |
return byName.get(name);
|
|
|
3735 |
}
|
|
|
3736 |
|
|
|
3737 |
private final short _thriftId;
|
|
|
3738 |
private final String _fieldName;
|
|
|
3739 |
|
|
|
3740 |
_Fields(short thriftId, String fieldName) {
|
|
|
3741 |
_thriftId = thriftId;
|
|
|
3742 |
_fieldName = fieldName;
|
|
|
3743 |
}
|
|
|
3744 |
|
|
|
3745 |
public short getThriftFieldId() {
|
|
|
3746 |
return _thriftId;
|
|
|
3747 |
}
|
|
|
3748 |
|
|
|
3749 |
public String getFieldName() {
|
|
|
3750 |
return _fieldName;
|
|
|
3751 |
}
|
|
|
3752 |
}
|
|
|
3753 |
|
|
|
3754 |
// isset id assignments
|
| 4555 |
mandeep.dh |
3755 |
private static final int __ORDERID_ISSET_ID = 0;
|
| 5110 |
mandeep.dh |
3756 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
|
|
3757 |
private static final int __QUANTITY_ISSET_ID = 2;
|
|
|
3758 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
|
|
3759 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
3760 |
|
| 3430 |
rajveer |
3761 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
3762 |
static {
|
| 3430 |
rajveer |
3763 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4555 |
mandeep.dh |
3764 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3765 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
3766 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3767 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
3768 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3769 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
3770 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
3771 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
3772 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3773 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
3774 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3775 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
3776 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
3777 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
3778 |
}
|
|
|
3779 |
|
| 4496 |
mandeep.dh |
3780 |
public scanSerializedItemForOrder_args() {
|
| 2820 |
chandransh |
3781 |
}
|
|
|
3782 |
|
| 4496 |
mandeep.dh |
3783 |
public scanSerializedItemForOrder_args(
|
| 4555 |
mandeep.dh |
3784 |
String serialNumber,
|
| 4496 |
mandeep.dh |
3785 |
ScanType type,
|
|
|
3786 |
long orderId,
|
| 5110 |
mandeep.dh |
3787 |
long fulfilmentWarehouseId,
|
|
|
3788 |
double quantity,
|
|
|
3789 |
long billingWarehouseId)
|
| 2820 |
chandransh |
3790 |
{
|
|
|
3791 |
this();
|
| 4555 |
mandeep.dh |
3792 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
3793 |
this.type = type;
|
| 4496 |
mandeep.dh |
3794 |
this.orderId = orderId;
|
|
|
3795 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
3796 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
3797 |
setFulfilmentWarehouseIdIsSet(true);
|
|
|
3798 |
this.quantity = quantity;
|
|
|
3799 |
setQuantityIsSet(true);
|
|
|
3800 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
3801 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
3802 |
}
|
|
|
3803 |
|
|
|
3804 |
/**
|
|
|
3805 |
* Performs a deep copy on <i>other</i>.
|
|
|
3806 |
*/
|
| 4496 |
mandeep.dh |
3807 |
public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
3808 |
__isset_bit_vector.clear();
|
|
|
3809 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4555 |
mandeep.dh |
3810 |
if (other.isSetSerialNumber()) {
|
|
|
3811 |
this.serialNumber = other.serialNumber;
|
|
|
3812 |
}
|
| 2820 |
chandransh |
3813 |
if (other.isSetType()) {
|
|
|
3814 |
this.type = other.type;
|
|
|
3815 |
}
|
| 4496 |
mandeep.dh |
3816 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
3817 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
|
|
3818 |
this.quantity = other.quantity;
|
|
|
3819 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
3820 |
}
|
|
|
3821 |
|
| 4496 |
mandeep.dh |
3822 |
public scanSerializedItemForOrder_args deepCopy() {
|
|
|
3823 |
return new scanSerializedItemForOrder_args(this);
|
| 2820 |
chandransh |
3824 |
}
|
|
|
3825 |
|
| 3430 |
rajveer |
3826 |
@Override
|
|
|
3827 |
public void clear() {
|
| 4555 |
mandeep.dh |
3828 |
this.serialNumber = null;
|
| 3430 |
rajveer |
3829 |
this.type = null;
|
| 4496 |
mandeep.dh |
3830 |
setOrderIdIsSet(false);
|
|
|
3831 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
3832 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
3833 |
this.fulfilmentWarehouseId = 0;
|
|
|
3834 |
setQuantityIsSet(false);
|
|
|
3835 |
this.quantity = 0.0;
|
|
|
3836 |
setBillingWarehouseIdIsSet(false);
|
|
|
3837 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
3838 |
}
|
|
|
3839 |
|
| 4555 |
mandeep.dh |
3840 |
public String getSerialNumber() {
|
|
|
3841 |
return this.serialNumber;
|
| 2820 |
chandransh |
3842 |
}
|
|
|
3843 |
|
| 4555 |
mandeep.dh |
3844 |
public void setSerialNumber(String serialNumber) {
|
|
|
3845 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
3846 |
}
|
|
|
3847 |
|
| 4555 |
mandeep.dh |
3848 |
public void unsetSerialNumber() {
|
|
|
3849 |
this.serialNumber = null;
|
| 2820 |
chandransh |
3850 |
}
|
|
|
3851 |
|
| 4555 |
mandeep.dh |
3852 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
3853 |
public boolean isSetSerialNumber() {
|
|
|
3854 |
return this.serialNumber != null;
|
| 2820 |
chandransh |
3855 |
}
|
|
|
3856 |
|
| 4555 |
mandeep.dh |
3857 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
3858 |
if (!value) {
|
|
|
3859 |
this.serialNumber = null;
|
|
|
3860 |
}
|
| 2820 |
chandransh |
3861 |
}
|
|
|
3862 |
|
| 4496 |
mandeep.dh |
3863 |
/**
|
|
|
3864 |
*
|
|
|
3865 |
* @see ScanType
|
|
|
3866 |
*/
|
|
|
3867 |
public ScanType getType() {
|
|
|
3868 |
return this.type;
|
| 2820 |
chandransh |
3869 |
}
|
|
|
3870 |
|
| 4496 |
mandeep.dh |
3871 |
/**
|
|
|
3872 |
*
|
|
|
3873 |
* @see ScanType
|
|
|
3874 |
*/
|
|
|
3875 |
public void setType(ScanType type) {
|
|
|
3876 |
this.type = type;
|
| 2820 |
chandransh |
3877 |
}
|
|
|
3878 |
|
| 4496 |
mandeep.dh |
3879 |
public void unsetType() {
|
|
|
3880 |
this.type = null;
|
| 2820 |
chandransh |
3881 |
}
|
|
|
3882 |
|
| 4496 |
mandeep.dh |
3883 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
3884 |
public boolean isSetType() {
|
|
|
3885 |
return this.type != null;
|
| 2820 |
chandransh |
3886 |
}
|
|
|
3887 |
|
| 4496 |
mandeep.dh |
3888 |
public void setTypeIsSet(boolean value) {
|
| 2820 |
chandransh |
3889 |
if (!value) {
|
| 4496 |
mandeep.dh |
3890 |
this.type = null;
|
| 2820 |
chandransh |
3891 |
}
|
|
|
3892 |
}
|
|
|
3893 |
|
| 4496 |
mandeep.dh |
3894 |
public long getOrderId() {
|
|
|
3895 |
return this.orderId;
|
| 2820 |
chandransh |
3896 |
}
|
|
|
3897 |
|
| 4496 |
mandeep.dh |
3898 |
public void setOrderId(long orderId) {
|
|
|
3899 |
this.orderId = orderId;
|
|
|
3900 |
setOrderIdIsSet(true);
|
| 2820 |
chandransh |
3901 |
}
|
|
|
3902 |
|
| 4496 |
mandeep.dh |
3903 |
public void unsetOrderId() {
|
|
|
3904 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
3905 |
}
|
|
|
3906 |
|
| 4496 |
mandeep.dh |
3907 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
3908 |
public boolean isSetOrderId() {
|
|
|
3909 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
3910 |
}
|
|
|
3911 |
|
| 4496 |
mandeep.dh |
3912 |
public void setOrderIdIsSet(boolean value) {
|
|
|
3913 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 2820 |
chandransh |
3914 |
}
|
|
|
3915 |
|
| 5110 |
mandeep.dh |
3916 |
public long getFulfilmentWarehouseId() {
|
|
|
3917 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
3918 |
}
|
|
|
3919 |
|
| 5110 |
mandeep.dh |
3920 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
3921 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
3922 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
3923 |
}
|
|
|
3924 |
|
| 5110 |
mandeep.dh |
3925 |
public void unsetFulfilmentWarehouseId() {
|
|
|
3926 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
3927 |
}
|
|
|
3928 |
|
| 5110 |
mandeep.dh |
3929 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
3930 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
3931 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
3932 |
}
|
|
|
3933 |
|
| 5110 |
mandeep.dh |
3934 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
3935 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
3936 |
}
|
|
|
3937 |
|
| 5110 |
mandeep.dh |
3938 |
public double getQuantity() {
|
|
|
3939 |
return this.quantity;
|
|
|
3940 |
}
|
|
|
3941 |
|
|
|
3942 |
public void setQuantity(double quantity) {
|
|
|
3943 |
this.quantity = quantity;
|
|
|
3944 |
setQuantityIsSet(true);
|
|
|
3945 |
}
|
|
|
3946 |
|
|
|
3947 |
public void unsetQuantity() {
|
|
|
3948 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
3949 |
}
|
|
|
3950 |
|
|
|
3951 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
3952 |
public boolean isSetQuantity() {
|
|
|
3953 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
3954 |
}
|
|
|
3955 |
|
|
|
3956 |
public void setQuantityIsSet(boolean value) {
|
|
|
3957 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
3958 |
}
|
|
|
3959 |
|
|
|
3960 |
public long getBillingWarehouseId() {
|
|
|
3961 |
return this.billingWarehouseId;
|
|
|
3962 |
}
|
|
|
3963 |
|
|
|
3964 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
3965 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
3966 |
setBillingWarehouseIdIsSet(true);
|
|
|
3967 |
}
|
|
|
3968 |
|
|
|
3969 |
public void unsetBillingWarehouseId() {
|
|
|
3970 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
3971 |
}
|
|
|
3972 |
|
|
|
3973 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
3974 |
public boolean isSetBillingWarehouseId() {
|
|
|
3975 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
3976 |
}
|
|
|
3977 |
|
|
|
3978 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
3979 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
3980 |
}
|
|
|
3981 |
|
| 2820 |
chandransh |
3982 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3983 |
switch (field) {
|
| 4555 |
mandeep.dh |
3984 |
case SERIAL_NUMBER:
|
| 2820 |
chandransh |
3985 |
if (value == null) {
|
| 4555 |
mandeep.dh |
3986 |
unsetSerialNumber();
|
| 2820 |
chandransh |
3987 |
} else {
|
| 4555 |
mandeep.dh |
3988 |
setSerialNumber((String)value);
|
| 2820 |
chandransh |
3989 |
}
|
|
|
3990 |
break;
|
|
|
3991 |
|
| 4496 |
mandeep.dh |
3992 |
case TYPE:
|
| 2820 |
chandransh |
3993 |
if (value == null) {
|
| 4496 |
mandeep.dh |
3994 |
unsetType();
|
| 2820 |
chandransh |
3995 |
} else {
|
| 4496 |
mandeep.dh |
3996 |
setType((ScanType)value);
|
| 2820 |
chandransh |
3997 |
}
|
|
|
3998 |
break;
|
|
|
3999 |
|
| 4496 |
mandeep.dh |
4000 |
case ORDER_ID:
|
| 2820 |
chandransh |
4001 |
if (value == null) {
|
| 4496 |
mandeep.dh |
4002 |
unsetOrderId();
|
| 2820 |
chandransh |
4003 |
} else {
|
| 4496 |
mandeep.dh |
4004 |
setOrderId((Long)value);
|
| 2820 |
chandransh |
4005 |
}
|
|
|
4006 |
break;
|
|
|
4007 |
|
| 5110 |
mandeep.dh |
4008 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
4009 |
if (value == null) {
|
| 5110 |
mandeep.dh |
4010 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
4011 |
} else {
|
| 5110 |
mandeep.dh |
4012 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
4013 |
}
|
|
|
4014 |
break;
|
|
|
4015 |
|
| 5110 |
mandeep.dh |
4016 |
case QUANTITY:
|
|
|
4017 |
if (value == null) {
|
|
|
4018 |
unsetQuantity();
|
|
|
4019 |
} else {
|
|
|
4020 |
setQuantity((Double)value);
|
|
|
4021 |
}
|
|
|
4022 |
break;
|
|
|
4023 |
|
|
|
4024 |
case BILLING_WAREHOUSE_ID:
|
|
|
4025 |
if (value == null) {
|
|
|
4026 |
unsetBillingWarehouseId();
|
|
|
4027 |
} else {
|
|
|
4028 |
setBillingWarehouseId((Long)value);
|
|
|
4029 |
}
|
|
|
4030 |
break;
|
|
|
4031 |
|
| 2820 |
chandransh |
4032 |
}
|
|
|
4033 |
}
|
|
|
4034 |
|
|
|
4035 |
public Object getFieldValue(_Fields field) {
|
|
|
4036 |
switch (field) {
|
| 4555 |
mandeep.dh |
4037 |
case SERIAL_NUMBER:
|
|
|
4038 |
return getSerialNumber();
|
| 2820 |
chandransh |
4039 |
|
|
|
4040 |
case TYPE:
|
|
|
4041 |
return getType();
|
|
|
4042 |
|
| 4496 |
mandeep.dh |
4043 |
case ORDER_ID:
|
|
|
4044 |
return Long.valueOf(getOrderId());
|
|
|
4045 |
|
| 5110 |
mandeep.dh |
4046 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
4047 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
4048 |
|
| 5110 |
mandeep.dh |
4049 |
case QUANTITY:
|
|
|
4050 |
return Double.valueOf(getQuantity());
|
|
|
4051 |
|
|
|
4052 |
case BILLING_WAREHOUSE_ID:
|
|
|
4053 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
4054 |
|
| 2820 |
chandransh |
4055 |
}
|
|
|
4056 |
throw new IllegalStateException();
|
|
|
4057 |
}
|
|
|
4058 |
|
| 3430 |
rajveer |
4059 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4060 |
public boolean isSet(_Fields field) {
|
|
|
4061 |
if (field == null) {
|
|
|
4062 |
throw new IllegalArgumentException();
|
|
|
4063 |
}
|
| 2820 |
chandransh |
4064 |
|
|
|
4065 |
switch (field) {
|
| 4555 |
mandeep.dh |
4066 |
case SERIAL_NUMBER:
|
|
|
4067 |
return isSetSerialNumber();
|
| 2820 |
chandransh |
4068 |
case TYPE:
|
|
|
4069 |
return isSetType();
|
| 4496 |
mandeep.dh |
4070 |
case ORDER_ID:
|
|
|
4071 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
4072 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
4073 |
return isSetFulfilmentWarehouseId();
|
|
|
4074 |
case QUANTITY:
|
|
|
4075 |
return isSetQuantity();
|
|
|
4076 |
case BILLING_WAREHOUSE_ID:
|
|
|
4077 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
4078 |
}
|
|
|
4079 |
throw new IllegalStateException();
|
|
|
4080 |
}
|
|
|
4081 |
|
|
|
4082 |
@Override
|
|
|
4083 |
public boolean equals(Object that) {
|
|
|
4084 |
if (that == null)
|
|
|
4085 |
return false;
|
| 4496 |
mandeep.dh |
4086 |
if (that instanceof scanSerializedItemForOrder_args)
|
|
|
4087 |
return this.equals((scanSerializedItemForOrder_args)that);
|
| 2820 |
chandransh |
4088 |
return false;
|
|
|
4089 |
}
|
|
|
4090 |
|
| 4496 |
mandeep.dh |
4091 |
public boolean equals(scanSerializedItemForOrder_args that) {
|
| 2820 |
chandransh |
4092 |
if (that == null)
|
|
|
4093 |
return false;
|
|
|
4094 |
|
| 4555 |
mandeep.dh |
4095 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
4096 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
4097 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
4098 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2820 |
chandransh |
4099 |
return false;
|
| 4555 |
mandeep.dh |
4100 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2820 |
chandransh |
4101 |
return false;
|
|
|
4102 |
}
|
|
|
4103 |
|
| 4496 |
mandeep.dh |
4104 |
boolean this_present_type = true && this.isSetType();
|
|
|
4105 |
boolean that_present_type = true && that.isSetType();
|
|
|
4106 |
if (this_present_type || that_present_type) {
|
|
|
4107 |
if (!(this_present_type && that_present_type))
|
| 2820 |
chandransh |
4108 |
return false;
|
| 4496 |
mandeep.dh |
4109 |
if (!this.type.equals(that.type))
|
| 2820 |
chandransh |
4110 |
return false;
|
|
|
4111 |
}
|
|
|
4112 |
|
| 4496 |
mandeep.dh |
4113 |
boolean this_present_orderId = true;
|
|
|
4114 |
boolean that_present_orderId = true;
|
|
|
4115 |
if (this_present_orderId || that_present_orderId) {
|
|
|
4116 |
if (!(this_present_orderId && that_present_orderId))
|
| 2820 |
chandransh |
4117 |
return false;
|
| 4496 |
mandeep.dh |
4118 |
if (this.orderId != that.orderId)
|
| 2820 |
chandransh |
4119 |
return false;
|
|
|
4120 |
}
|
|
|
4121 |
|
| 5110 |
mandeep.dh |
4122 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
4123 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
4124 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
4125 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
4126 |
return false;
|
| 5110 |
mandeep.dh |
4127 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
4128 |
return false;
|
|
|
4129 |
}
|
|
|
4130 |
|
| 5110 |
mandeep.dh |
4131 |
boolean this_present_quantity = true;
|
|
|
4132 |
boolean that_present_quantity = true;
|
|
|
4133 |
if (this_present_quantity || that_present_quantity) {
|
|
|
4134 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
4135 |
return false;
|
|
|
4136 |
if (this.quantity != that.quantity)
|
|
|
4137 |
return false;
|
|
|
4138 |
}
|
|
|
4139 |
|
|
|
4140 |
boolean this_present_billingWarehouseId = true;
|
|
|
4141 |
boolean that_present_billingWarehouseId = true;
|
|
|
4142 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
4143 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
4144 |
return false;
|
|
|
4145 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
4146 |
return false;
|
|
|
4147 |
}
|
|
|
4148 |
|
| 2820 |
chandransh |
4149 |
return true;
|
|
|
4150 |
}
|
|
|
4151 |
|
|
|
4152 |
@Override
|
|
|
4153 |
public int hashCode() {
|
|
|
4154 |
return 0;
|
|
|
4155 |
}
|
|
|
4156 |
|
| 4496 |
mandeep.dh |
4157 |
public int compareTo(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
4158 |
if (!getClass().equals(other.getClass())) {
|
|
|
4159 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4160 |
}
|
|
|
4161 |
|
|
|
4162 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4163 |
scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
|
| 2820 |
chandransh |
4164 |
|
| 4555 |
mandeep.dh |
4165 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2820 |
chandransh |
4166 |
if (lastComparison != 0) {
|
|
|
4167 |
return lastComparison;
|
|
|
4168 |
}
|
| 4555 |
mandeep.dh |
4169 |
if (isSetSerialNumber()) {
|
|
|
4170 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
4171 |
if (lastComparison != 0) {
|
|
|
4172 |
return lastComparison;
|
|
|
4173 |
}
|
| 2820 |
chandransh |
4174 |
}
|
| 4496 |
mandeep.dh |
4175 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
4176 |
if (lastComparison != 0) {
|
|
|
4177 |
return lastComparison;
|
|
|
4178 |
}
|
| 4496 |
mandeep.dh |
4179 |
if (isSetType()) {
|
|
|
4180 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
4181 |
if (lastComparison != 0) {
|
|
|
4182 |
return lastComparison;
|
|
|
4183 |
}
|
| 2820 |
chandransh |
4184 |
}
|
| 4496 |
mandeep.dh |
4185 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2820 |
chandransh |
4186 |
if (lastComparison != 0) {
|
|
|
4187 |
return lastComparison;
|
|
|
4188 |
}
|
| 4496 |
mandeep.dh |
4189 |
if (isSetOrderId()) {
|
|
|
4190 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 3430 |
rajveer |
4191 |
if (lastComparison != 0) {
|
|
|
4192 |
return lastComparison;
|
|
|
4193 |
}
|
| 2820 |
chandransh |
4194 |
}
|
| 5110 |
mandeep.dh |
4195 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
4196 |
if (lastComparison != 0) {
|
|
|
4197 |
return lastComparison;
|
|
|
4198 |
}
|
| 5110 |
mandeep.dh |
4199 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
4200 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
4201 |
if (lastComparison != 0) {
|
|
|
4202 |
return lastComparison;
|
|
|
4203 |
}
|
| 2820 |
chandransh |
4204 |
}
|
| 5110 |
mandeep.dh |
4205 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
4206 |
if (lastComparison != 0) {
|
|
|
4207 |
return lastComparison;
|
|
|
4208 |
}
|
|
|
4209 |
if (isSetQuantity()) {
|
|
|
4210 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
4211 |
if (lastComparison != 0) {
|
|
|
4212 |
return lastComparison;
|
|
|
4213 |
}
|
|
|
4214 |
}
|
|
|
4215 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
4216 |
if (lastComparison != 0) {
|
|
|
4217 |
return lastComparison;
|
|
|
4218 |
}
|
|
|
4219 |
if (isSetBillingWarehouseId()) {
|
|
|
4220 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
4221 |
if (lastComparison != 0) {
|
|
|
4222 |
return lastComparison;
|
|
|
4223 |
}
|
|
|
4224 |
}
|
| 2820 |
chandransh |
4225 |
return 0;
|
|
|
4226 |
}
|
|
|
4227 |
|
| 3430 |
rajveer |
4228 |
public _Fields fieldForId(int fieldId) {
|
|
|
4229 |
return _Fields.findByThriftId(fieldId);
|
|
|
4230 |
}
|
|
|
4231 |
|
|
|
4232 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4233 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
4234 |
iprot.readStructBegin();
|
|
|
4235 |
while (true)
|
|
|
4236 |
{
|
|
|
4237 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4238 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
4239 |
break;
|
|
|
4240 |
}
|
| 3430 |
rajveer |
4241 |
switch (field.id) {
|
| 4555 |
mandeep.dh |
4242 |
case 1: // SERIAL_NUMBER
|
|
|
4243 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4244 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
4245 |
} else {
|
|
|
4246 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4247 |
}
|
|
|
4248 |
break;
|
| 4496 |
mandeep.dh |
4249 |
case 2: // TYPE
|
|
|
4250 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4251 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
4252 |
} else {
|
|
|
4253 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4254 |
}
|
|
|
4255 |
break;
|
| 4496 |
mandeep.dh |
4256 |
case 3: // ORDER_ID
|
|
|
4257 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4258 |
this.orderId = iprot.readI64();
|
|
|
4259 |
setOrderIdIsSet(true);
|
| 3430 |
rajveer |
4260 |
} else {
|
|
|
4261 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4262 |
}
|
|
|
4263 |
break;
|
| 5110 |
mandeep.dh |
4264 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
4265 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
4266 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
4267 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
4268 |
} else {
|
|
|
4269 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4270 |
}
|
|
|
4271 |
break;
|
| 5110 |
mandeep.dh |
4272 |
case 5: // QUANTITY
|
|
|
4273 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
4274 |
this.quantity = iprot.readDouble();
|
|
|
4275 |
setQuantityIsSet(true);
|
|
|
4276 |
} else {
|
|
|
4277 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4278 |
}
|
|
|
4279 |
break;
|
|
|
4280 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
4281 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4282 |
this.billingWarehouseId = iprot.readI64();
|
|
|
4283 |
setBillingWarehouseIdIsSet(true);
|
|
|
4284 |
} else {
|
|
|
4285 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4286 |
}
|
|
|
4287 |
break;
|
| 3430 |
rajveer |
4288 |
default:
|
|
|
4289 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
4290 |
}
|
| 3430 |
rajveer |
4291 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
4292 |
}
|
|
|
4293 |
iprot.readStructEnd();
|
|
|
4294 |
validate();
|
|
|
4295 |
}
|
|
|
4296 |
|
| 3430 |
rajveer |
4297 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4298 |
validate();
|
|
|
4299 |
|
|
|
4300 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4555 |
mandeep.dh |
4301 |
if (this.serialNumber != null) {
|
|
|
4302 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
4303 |
oprot.writeString(this.serialNumber);
|
|
|
4304 |
oprot.writeFieldEnd();
|
|
|
4305 |
}
|
| 2820 |
chandransh |
4306 |
if (this.type != null) {
|
|
|
4307 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
4308 |
oprot.writeI32(this.type.getValue());
|
|
|
4309 |
oprot.writeFieldEnd();
|
|
|
4310 |
}
|
| 4496 |
mandeep.dh |
4311 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
4312 |
oprot.writeI64(this.orderId);
|
|
|
4313 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
4314 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
4315 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
4316 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
4317 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
4318 |
oprot.writeDouble(this.quantity);
|
|
|
4319 |
oprot.writeFieldEnd();
|
|
|
4320 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
4321 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
4322 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
4323 |
oprot.writeFieldStop();
|
|
|
4324 |
oprot.writeStructEnd();
|
|
|
4325 |
}
|
|
|
4326 |
|
|
|
4327 |
@Override
|
|
|
4328 |
public String toString() {
|
| 4496 |
mandeep.dh |
4329 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
|
| 2820 |
chandransh |
4330 |
boolean first = true;
|
|
|
4331 |
|
| 4555 |
mandeep.dh |
4332 |
sb.append("serialNumber:");
|
|
|
4333 |
if (this.serialNumber == null) {
|
|
|
4334 |
sb.append("null");
|
|
|
4335 |
} else {
|
|
|
4336 |
sb.append(this.serialNumber);
|
|
|
4337 |
}
|
| 2820 |
chandransh |
4338 |
first = false;
|
|
|
4339 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
4340 |
sb.append("type:");
|
|
|
4341 |
if (this.type == null) {
|
| 2820 |
chandransh |
4342 |
sb.append("null");
|
|
|
4343 |
} else {
|
| 4496 |
mandeep.dh |
4344 |
sb.append(this.type);
|
| 2820 |
chandransh |
4345 |
}
|
|
|
4346 |
first = false;
|
|
|
4347 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
4348 |
sb.append("orderId:");
|
|
|
4349 |
sb.append(this.orderId);
|
| 2820 |
chandransh |
4350 |
first = false;
|
|
|
4351 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
4352 |
sb.append("fulfilmentWarehouseId:");
|
|
|
4353 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
4354 |
first = false;
|
| 5110 |
mandeep.dh |
4355 |
if (!first) sb.append(", ");
|
|
|
4356 |
sb.append("quantity:");
|
|
|
4357 |
sb.append(this.quantity);
|
|
|
4358 |
first = false;
|
|
|
4359 |
if (!first) sb.append(", ");
|
|
|
4360 |
sb.append("billingWarehouseId:");
|
|
|
4361 |
sb.append(this.billingWarehouseId);
|
|
|
4362 |
first = false;
|
| 2820 |
chandransh |
4363 |
sb.append(")");
|
|
|
4364 |
return sb.toString();
|
|
|
4365 |
}
|
|
|
4366 |
|
| 3430 |
rajveer |
4367 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4368 |
// check for required fields
|
|
|
4369 |
}
|
|
|
4370 |
|
| 3430 |
rajveer |
4371 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4372 |
try {
|
|
|
4373 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4374 |
} catch (org.apache.thrift.TException te) {
|
|
|
4375 |
throw new java.io.IOException(te);
|
|
|
4376 |
}
|
|
|
4377 |
}
|
|
|
4378 |
|
|
|
4379 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4380 |
try {
|
|
|
4381 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4382 |
} catch (org.apache.thrift.TException te) {
|
|
|
4383 |
throw new java.io.IOException(te);
|
|
|
4384 |
}
|
|
|
4385 |
}
|
|
|
4386 |
|
| 2820 |
chandransh |
4387 |
}
|
|
|
4388 |
|
| 4496 |
mandeep.dh |
4389 |
public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4390 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
|
| 2820 |
chandransh |
4391 |
|
| 4555 |
mandeep.dh |
4392 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
| 3430 |
rajveer |
4393 |
private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 2820 |
chandransh |
4394 |
|
| 4555 |
mandeep.dh |
4395 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
4396 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
4397 |
|
|
|
4398 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4399 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
4400 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
4401 |
WEX((short)1, "wex");
|
|
|
4402 |
|
|
|
4403 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4404 |
|
|
|
4405 |
static {
|
|
|
4406 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4407 |
byName.put(field.getFieldName(), field);
|
|
|
4408 |
}
|
|
|
4409 |
}
|
|
|
4410 |
|
|
|
4411 |
/**
|
|
|
4412 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4413 |
*/
|
|
|
4414 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4415 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
4416 |
case 0: // SUCCESS
|
|
|
4417 |
return SUCCESS;
|
| 3430 |
rajveer |
4418 |
case 1: // WEX
|
|
|
4419 |
return WEX;
|
|
|
4420 |
default:
|
|
|
4421 |
return null;
|
|
|
4422 |
}
|
| 2820 |
chandransh |
4423 |
}
|
|
|
4424 |
|
|
|
4425 |
/**
|
|
|
4426 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4427 |
* if it is not found.
|
|
|
4428 |
*/
|
|
|
4429 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4430 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4431 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4432 |
return fields;
|
|
|
4433 |
}
|
|
|
4434 |
|
|
|
4435 |
/**
|
|
|
4436 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4437 |
*/
|
|
|
4438 |
public static _Fields findByName(String name) {
|
|
|
4439 |
return byName.get(name);
|
|
|
4440 |
}
|
|
|
4441 |
|
|
|
4442 |
private final short _thriftId;
|
|
|
4443 |
private final String _fieldName;
|
|
|
4444 |
|
|
|
4445 |
_Fields(short thriftId, String fieldName) {
|
|
|
4446 |
_thriftId = thriftId;
|
|
|
4447 |
_fieldName = fieldName;
|
|
|
4448 |
}
|
|
|
4449 |
|
|
|
4450 |
public short getThriftFieldId() {
|
|
|
4451 |
return _thriftId;
|
|
|
4452 |
}
|
|
|
4453 |
|
|
|
4454 |
public String getFieldName() {
|
|
|
4455 |
return _fieldName;
|
|
|
4456 |
}
|
|
|
4457 |
}
|
|
|
4458 |
|
|
|
4459 |
// isset id assignments
|
|
|
4460 |
|
| 3430 |
rajveer |
4461 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4462 |
static {
|
| 3430 |
rajveer |
4463 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
4464 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
4465 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
4466 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4467 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4468 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4469 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
4470 |
}
|
|
|
4471 |
|
| 4496 |
mandeep.dh |
4472 |
public scanSerializedItemForOrder_result() {
|
| 2820 |
chandransh |
4473 |
}
|
|
|
4474 |
|
| 4496 |
mandeep.dh |
4475 |
public scanSerializedItemForOrder_result(
|
| 4555 |
mandeep.dh |
4476 |
InventoryItem success,
|
| 2820 |
chandransh |
4477 |
WarehouseServiceException wex)
|
|
|
4478 |
{
|
|
|
4479 |
this();
|
| 4496 |
mandeep.dh |
4480 |
this.success = success;
|
| 2820 |
chandransh |
4481 |
this.wex = wex;
|
|
|
4482 |
}
|
|
|
4483 |
|
|
|
4484 |
/**
|
|
|
4485 |
* Performs a deep copy on <i>other</i>.
|
|
|
4486 |
*/
|
| 4496 |
mandeep.dh |
4487 |
public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
|
| 4555 |
mandeep.dh |
4488 |
if (other.isSetSuccess()) {
|
|
|
4489 |
this.success = new InventoryItem(other.success);
|
|
|
4490 |
}
|
| 2820 |
chandransh |
4491 |
if (other.isSetWex()) {
|
|
|
4492 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4493 |
}
|
|
|
4494 |
}
|
|
|
4495 |
|
| 4496 |
mandeep.dh |
4496 |
public scanSerializedItemForOrder_result deepCopy() {
|
|
|
4497 |
return new scanSerializedItemForOrder_result(this);
|
| 2820 |
chandransh |
4498 |
}
|
|
|
4499 |
|
| 3430 |
rajveer |
4500 |
@Override
|
|
|
4501 |
public void clear() {
|
| 4555 |
mandeep.dh |
4502 |
this.success = null;
|
| 3430 |
rajveer |
4503 |
this.wex = null;
|
| 2820 |
chandransh |
4504 |
}
|
|
|
4505 |
|
| 4555 |
mandeep.dh |
4506 |
public InventoryItem getSuccess() {
|
| 4496 |
mandeep.dh |
4507 |
return this.success;
|
|
|
4508 |
}
|
|
|
4509 |
|
| 4555 |
mandeep.dh |
4510 |
public void setSuccess(InventoryItem success) {
|
| 4496 |
mandeep.dh |
4511 |
this.success = success;
|
|
|
4512 |
}
|
|
|
4513 |
|
|
|
4514 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
4515 |
this.success = null;
|
| 4496 |
mandeep.dh |
4516 |
}
|
|
|
4517 |
|
|
|
4518 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
4519 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
4520 |
return this.success != null;
|
| 4496 |
mandeep.dh |
4521 |
}
|
|
|
4522 |
|
|
|
4523 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
4524 |
if (!value) {
|
|
|
4525 |
this.success = null;
|
|
|
4526 |
}
|
| 4496 |
mandeep.dh |
4527 |
}
|
|
|
4528 |
|
| 2820 |
chandransh |
4529 |
public WarehouseServiceException getWex() {
|
|
|
4530 |
return this.wex;
|
|
|
4531 |
}
|
|
|
4532 |
|
| 3430 |
rajveer |
4533 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
4534 |
this.wex = wex;
|
|
|
4535 |
}
|
|
|
4536 |
|
|
|
4537 |
public void unsetWex() {
|
|
|
4538 |
this.wex = null;
|
|
|
4539 |
}
|
|
|
4540 |
|
| 3430 |
rajveer |
4541 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
4542 |
public boolean isSetWex() {
|
|
|
4543 |
return this.wex != null;
|
|
|
4544 |
}
|
|
|
4545 |
|
|
|
4546 |
public void setWexIsSet(boolean value) {
|
|
|
4547 |
if (!value) {
|
|
|
4548 |
this.wex = null;
|
|
|
4549 |
}
|
|
|
4550 |
}
|
|
|
4551 |
|
|
|
4552 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4553 |
switch (field) {
|
| 4496 |
mandeep.dh |
4554 |
case SUCCESS:
|
|
|
4555 |
if (value == null) {
|
|
|
4556 |
unsetSuccess();
|
|
|
4557 |
} else {
|
| 4555 |
mandeep.dh |
4558 |
setSuccess((InventoryItem)value);
|
| 4496 |
mandeep.dh |
4559 |
}
|
|
|
4560 |
break;
|
|
|
4561 |
|
| 2820 |
chandransh |
4562 |
case WEX:
|
|
|
4563 |
if (value == null) {
|
|
|
4564 |
unsetWex();
|
|
|
4565 |
} else {
|
|
|
4566 |
setWex((WarehouseServiceException)value);
|
|
|
4567 |
}
|
|
|
4568 |
break;
|
|
|
4569 |
|
|
|
4570 |
}
|
|
|
4571 |
}
|
|
|
4572 |
|
|
|
4573 |
public Object getFieldValue(_Fields field) {
|
|
|
4574 |
switch (field) {
|
| 4496 |
mandeep.dh |
4575 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
4576 |
return getSuccess();
|
| 4496 |
mandeep.dh |
4577 |
|
| 2820 |
chandransh |
4578 |
case WEX:
|
|
|
4579 |
return getWex();
|
|
|
4580 |
|
|
|
4581 |
}
|
|
|
4582 |
throw new IllegalStateException();
|
|
|
4583 |
}
|
|
|
4584 |
|
| 3430 |
rajveer |
4585 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4586 |
public boolean isSet(_Fields field) {
|
|
|
4587 |
if (field == null) {
|
|
|
4588 |
throw new IllegalArgumentException();
|
|
|
4589 |
}
|
| 2820 |
chandransh |
4590 |
|
|
|
4591 |
switch (field) {
|
| 4496 |
mandeep.dh |
4592 |
case SUCCESS:
|
|
|
4593 |
return isSetSuccess();
|
| 2820 |
chandransh |
4594 |
case WEX:
|
|
|
4595 |
return isSetWex();
|
|
|
4596 |
}
|
|
|
4597 |
throw new IllegalStateException();
|
|
|
4598 |
}
|
|
|
4599 |
|
|
|
4600 |
@Override
|
|
|
4601 |
public boolean equals(Object that) {
|
|
|
4602 |
if (that == null)
|
|
|
4603 |
return false;
|
| 4496 |
mandeep.dh |
4604 |
if (that instanceof scanSerializedItemForOrder_result)
|
|
|
4605 |
return this.equals((scanSerializedItemForOrder_result)that);
|
| 2820 |
chandransh |
4606 |
return false;
|
|
|
4607 |
}
|
|
|
4608 |
|
| 4496 |
mandeep.dh |
4609 |
public boolean equals(scanSerializedItemForOrder_result that) {
|
| 2820 |
chandransh |
4610 |
if (that == null)
|
|
|
4611 |
return false;
|
|
|
4612 |
|
| 4555 |
mandeep.dh |
4613 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4614 |
boolean that_present_success = true && that.isSetSuccess();
|
| 4496 |
mandeep.dh |
4615 |
if (this_present_success || that_present_success) {
|
|
|
4616 |
if (!(this_present_success && that_present_success))
|
|
|
4617 |
return false;
|
| 4555 |
mandeep.dh |
4618 |
if (!this.success.equals(that.success))
|
| 4496 |
mandeep.dh |
4619 |
return false;
|
|
|
4620 |
}
|
|
|
4621 |
|
| 2820 |
chandransh |
4622 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
4623 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
4624 |
if (this_present_wex || that_present_wex) {
|
|
|
4625 |
if (!(this_present_wex && that_present_wex))
|
|
|
4626 |
return false;
|
|
|
4627 |
if (!this.wex.equals(that.wex))
|
|
|
4628 |
return false;
|
|
|
4629 |
}
|
|
|
4630 |
|
|
|
4631 |
return true;
|
|
|
4632 |
}
|
|
|
4633 |
|
|
|
4634 |
@Override
|
|
|
4635 |
public int hashCode() {
|
|
|
4636 |
return 0;
|
|
|
4637 |
}
|
|
|
4638 |
|
| 4496 |
mandeep.dh |
4639 |
public int compareTo(scanSerializedItemForOrder_result other) {
|
| 2820 |
chandransh |
4640 |
if (!getClass().equals(other.getClass())) {
|
|
|
4641 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4642 |
}
|
|
|
4643 |
|
|
|
4644 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4645 |
scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
|
| 2820 |
chandransh |
4646 |
|
| 4496 |
mandeep.dh |
4647 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
4648 |
if (lastComparison != 0) {
|
|
|
4649 |
return lastComparison;
|
|
|
4650 |
}
|
|
|
4651 |
if (isSetSuccess()) {
|
|
|
4652 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4653 |
if (lastComparison != 0) {
|
|
|
4654 |
return lastComparison;
|
|
|
4655 |
}
|
|
|
4656 |
}
|
| 3430 |
rajveer |
4657 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
4658 |
if (lastComparison != 0) {
|
|
|
4659 |
return lastComparison;
|
|
|
4660 |
}
|
| 3430 |
rajveer |
4661 |
if (isSetWex()) {
|
|
|
4662 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
4663 |
if (lastComparison != 0) {
|
|
|
4664 |
return lastComparison;
|
|
|
4665 |
}
|
| 2820 |
chandransh |
4666 |
}
|
|
|
4667 |
return 0;
|
|
|
4668 |
}
|
|
|
4669 |
|
| 3430 |
rajveer |
4670 |
public _Fields fieldForId(int fieldId) {
|
|
|
4671 |
return _Fields.findByThriftId(fieldId);
|
|
|
4672 |
}
|
|
|
4673 |
|
|
|
4674 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4675 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
4676 |
iprot.readStructBegin();
|
|
|
4677 |
while (true)
|
|
|
4678 |
{
|
|
|
4679 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4680 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
4681 |
break;
|
|
|
4682 |
}
|
| 3430 |
rajveer |
4683 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
4684 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
4685 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4686 |
this.success = new InventoryItem();
|
|
|
4687 |
this.success.read(iprot);
|
| 4496 |
mandeep.dh |
4688 |
} else {
|
|
|
4689 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4690 |
}
|
|
|
4691 |
break;
|
| 3430 |
rajveer |
4692 |
case 1: // WEX
|
|
|
4693 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4694 |
this.wex = new WarehouseServiceException();
|
|
|
4695 |
this.wex.read(iprot);
|
|
|
4696 |
} else {
|
|
|
4697 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4698 |
}
|
|
|
4699 |
break;
|
|
|
4700 |
default:
|
|
|
4701 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
4702 |
}
|
| 3430 |
rajveer |
4703 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
4704 |
}
|
|
|
4705 |
iprot.readStructEnd();
|
|
|
4706 |
validate();
|
|
|
4707 |
}
|
|
|
4708 |
|
| 3430 |
rajveer |
4709 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4710 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4711 |
|
| 4496 |
mandeep.dh |
4712 |
if (this.isSetSuccess()) {
|
|
|
4713 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
4714 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
4715 |
oprot.writeFieldEnd();
|
|
|
4716 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
4717 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
4718 |
this.wex.write(oprot);
|
|
|
4719 |
oprot.writeFieldEnd();
|
|
|
4720 |
}
|
|
|
4721 |
oprot.writeFieldStop();
|
|
|
4722 |
oprot.writeStructEnd();
|
|
|
4723 |
}
|
|
|
4724 |
|
|
|
4725 |
@Override
|
|
|
4726 |
public String toString() {
|
| 4496 |
mandeep.dh |
4727 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
|
| 2820 |
chandransh |
4728 |
boolean first = true;
|
|
|
4729 |
|
| 4496 |
mandeep.dh |
4730 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
4731 |
if (this.success == null) {
|
|
|
4732 |
sb.append("null");
|
|
|
4733 |
} else {
|
|
|
4734 |
sb.append(this.success);
|
|
|
4735 |
}
|
| 4496 |
mandeep.dh |
4736 |
first = false;
|
|
|
4737 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
4738 |
sb.append("wex:");
|
|
|
4739 |
if (this.wex == null) {
|
|
|
4740 |
sb.append("null");
|
|
|
4741 |
} else {
|
|
|
4742 |
sb.append(this.wex);
|
|
|
4743 |
}
|
|
|
4744 |
first = false;
|
|
|
4745 |
sb.append(")");
|
|
|
4746 |
return sb.toString();
|
|
|
4747 |
}
|
|
|
4748 |
|
| 3430 |
rajveer |
4749 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4750 |
// check for required fields
|
|
|
4751 |
}
|
|
|
4752 |
|
| 3430 |
rajveer |
4753 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4754 |
try {
|
|
|
4755 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4756 |
} catch (org.apache.thrift.TException te) {
|
|
|
4757 |
throw new java.io.IOException(te);
|
|
|
4758 |
}
|
|
|
4759 |
}
|
|
|
4760 |
|
|
|
4761 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4762 |
try {
|
|
|
4763 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4764 |
} catch (org.apache.thrift.TException te) {
|
|
|
4765 |
throw new java.io.IOException(te);
|
|
|
4766 |
}
|
|
|
4767 |
}
|
|
|
4768 |
|
| 2820 |
chandransh |
4769 |
}
|
|
|
4770 |
|
| 4496 |
mandeep.dh |
4771 |
public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4772 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
|
| 2820 |
chandransh |
4773 |
|
| 5361 |
mandeep.dh |
4774 |
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);
|
| 4496 |
mandeep.dh |
4775 |
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);
|
|
|
4776 |
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);
|
|
|
4777 |
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);
|
| 5110 |
mandeep.dh |
4778 |
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);
|
| 5361 |
mandeep.dh |
4779 |
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);
|
| 2820 |
chandransh |
4780 |
|
| 5361 |
mandeep.dh |
4781 |
private InventoryItem inventoryItem; // required
|
| 3430 |
rajveer |
4782 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
4783 |
private long quantity; // required
|
|
|
4784 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
4785 |
private long fulfilmentWarehouseId; // required
|
| 5361 |
mandeep.dh |
4786 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
4787 |
|
|
|
4788 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4789 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
4790 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 2820 |
chandransh |
4791 |
/**
|
|
|
4792 |
*
|
|
|
4793 |
* @see ScanType
|
|
|
4794 |
*/
|
| 4496 |
mandeep.dh |
4795 |
TYPE((short)2, "type"),
|
|
|
4796 |
QUANTITY((short)3, "quantity"),
|
|
|
4797 |
ORDER_ID((short)4, "orderId"),
|
| 5361 |
mandeep.dh |
4798 |
FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
|
|
|
4799 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
4800 |
|
|
|
4801 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4802 |
|
|
|
4803 |
static {
|
|
|
4804 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4805 |
byName.put(field.getFieldName(), field);
|
|
|
4806 |
}
|
|
|
4807 |
}
|
|
|
4808 |
|
|
|
4809 |
/**
|
|
|
4810 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4811 |
*/
|
|
|
4812 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4813 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
4814 |
case 1: // INVENTORY_ITEM
|
|
|
4815 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
4816 |
case 2: // TYPE
|
| 3430 |
rajveer |
4817 |
return TYPE;
|
| 4496 |
mandeep.dh |
4818 |
case 3: // QUANTITY
|
|
|
4819 |
return QUANTITY;
|
|
|
4820 |
case 4: // ORDER_ID
|
|
|
4821 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
4822 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
|
|
4823 |
return FULFILMENT_WAREHOUSE_ID;
|
| 5361 |
mandeep.dh |
4824 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
4825 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
4826 |
default:
|
|
|
4827 |
return null;
|
|
|
4828 |
}
|
| 2820 |
chandransh |
4829 |
}
|
|
|
4830 |
|
|
|
4831 |
/**
|
|
|
4832 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4833 |
* if it is not found.
|
|
|
4834 |
*/
|
|
|
4835 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4836 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4837 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4838 |
return fields;
|
|
|
4839 |
}
|
|
|
4840 |
|
|
|
4841 |
/**
|
|
|
4842 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4843 |
*/
|
|
|
4844 |
public static _Fields findByName(String name) {
|
|
|
4845 |
return byName.get(name);
|
|
|
4846 |
}
|
|
|
4847 |
|
|
|
4848 |
private final short _thriftId;
|
|
|
4849 |
private final String _fieldName;
|
|
|
4850 |
|
|
|
4851 |
_Fields(short thriftId, String fieldName) {
|
|
|
4852 |
_thriftId = thriftId;
|
|
|
4853 |
_fieldName = fieldName;
|
|
|
4854 |
}
|
|
|
4855 |
|
|
|
4856 |
public short getThriftFieldId() {
|
|
|
4857 |
return _thriftId;
|
|
|
4858 |
}
|
|
|
4859 |
|
|
|
4860 |
public String getFieldName() {
|
|
|
4861 |
return _fieldName;
|
|
|
4862 |
}
|
|
|
4863 |
}
|
|
|
4864 |
|
|
|
4865 |
// isset id assignments
|
| 5361 |
mandeep.dh |
4866 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
4867 |
private static final int __ORDERID_ISSET_ID = 1;
|
|
|
4868 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
|
|
|
4869 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
| 4496 |
mandeep.dh |
4870 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
4871 |
|
| 3430 |
rajveer |
4872 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4873 |
static {
|
| 3430 |
rajveer |
4874 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
4875 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4876 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
4877 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4878 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
4879 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4880 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4881 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4882 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
4883 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
4884 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
4885 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4886 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
4887 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4888 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
4889 |
}
|
|
|
4890 |
|
| 4496 |
mandeep.dh |
4891 |
public scanForOrder_args() {
|
| 2820 |
chandransh |
4892 |
}
|
|
|
4893 |
|
| 4496 |
mandeep.dh |
4894 |
public scanForOrder_args(
|
| 5361 |
mandeep.dh |
4895 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
4896 |
ScanType type,
|
|
|
4897 |
long quantity,
|
|
|
4898 |
long orderId,
|
| 5361 |
mandeep.dh |
4899 |
long fulfilmentWarehouseId,
|
|
|
4900 |
long billingWarehouseId)
|
| 2820 |
chandransh |
4901 |
{
|
|
|
4902 |
this();
|
| 5361 |
mandeep.dh |
4903 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
4904 |
this.type = type;
|
| 4496 |
mandeep.dh |
4905 |
this.quantity = quantity;
|
|
|
4906 |
setQuantityIsSet(true);
|
|
|
4907 |
this.orderId = orderId;
|
|
|
4908 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
4909 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
4910 |
setFulfilmentWarehouseIdIsSet(true);
|
| 5361 |
mandeep.dh |
4911 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4912 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
4913 |
}
|
|
|
4914 |
|
|
|
4915 |
/**
|
|
|
4916 |
* Performs a deep copy on <i>other</i>.
|
|
|
4917 |
*/
|
| 4496 |
mandeep.dh |
4918 |
public scanForOrder_args(scanForOrder_args other) {
|
|
|
4919 |
__isset_bit_vector.clear();
|
|
|
4920 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
4921 |
if (other.isSetInventoryItem()) {
|
|
|
4922 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
4923 |
}
|
| 2820 |
chandransh |
4924 |
if (other.isSetType()) {
|
|
|
4925 |
this.type = other.type;
|
|
|
4926 |
}
|
| 4496 |
mandeep.dh |
4927 |
this.quantity = other.quantity;
|
|
|
4928 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
4929 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
4930 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
4931 |
}
|
|
|
4932 |
|
| 4496 |
mandeep.dh |
4933 |
public scanForOrder_args deepCopy() {
|
|
|
4934 |
return new scanForOrder_args(this);
|
| 2820 |
chandransh |
4935 |
}
|
|
|
4936 |
|
| 3430 |
rajveer |
4937 |
@Override
|
|
|
4938 |
public void clear() {
|
| 5361 |
mandeep.dh |
4939 |
this.inventoryItem = null;
|
| 3430 |
rajveer |
4940 |
this.type = null;
|
| 4496 |
mandeep.dh |
4941 |
setQuantityIsSet(false);
|
|
|
4942 |
this.quantity = 0;
|
|
|
4943 |
setOrderIdIsSet(false);
|
|
|
4944 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
4945 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
4946 |
this.fulfilmentWarehouseId = 0;
|
| 5361 |
mandeep.dh |
4947 |
setBillingWarehouseIdIsSet(false);
|
|
|
4948 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
4949 |
}
|
|
|
4950 |
|
| 5361 |
mandeep.dh |
4951 |
public InventoryItem getInventoryItem() {
|
|
|
4952 |
return this.inventoryItem;
|
| 2820 |
chandransh |
4953 |
}
|
|
|
4954 |
|
| 5361 |
mandeep.dh |
4955 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
4956 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
4957 |
}
|
|
|
4958 |
|
| 5361 |
mandeep.dh |
4959 |
public void unsetInventoryItem() {
|
|
|
4960 |
this.inventoryItem = null;
|
| 2820 |
chandransh |
4961 |
}
|
|
|
4962 |
|
| 5361 |
mandeep.dh |
4963 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
4964 |
public boolean isSetInventoryItem() {
|
|
|
4965 |
return this.inventoryItem != null;
|
| 2820 |
chandransh |
4966 |
}
|
|
|
4967 |
|
| 5361 |
mandeep.dh |
4968 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
4969 |
if (!value) {
|
|
|
4970 |
this.inventoryItem = null;
|
|
|
4971 |
}
|
| 2820 |
chandransh |
4972 |
}
|
|
|
4973 |
|
|
|
4974 |
/**
|
|
|
4975 |
*
|
|
|
4976 |
* @see ScanType
|
|
|
4977 |
*/
|
|
|
4978 |
public ScanType getType() {
|
|
|
4979 |
return this.type;
|
|
|
4980 |
}
|
|
|
4981 |
|
|
|
4982 |
/**
|
|
|
4983 |
*
|
|
|
4984 |
* @see ScanType
|
|
|
4985 |
*/
|
| 3430 |
rajveer |
4986 |
public void setType(ScanType type) {
|
| 2820 |
chandransh |
4987 |
this.type = type;
|
|
|
4988 |
}
|
|
|
4989 |
|
|
|
4990 |
public void unsetType() {
|
|
|
4991 |
this.type = null;
|
|
|
4992 |
}
|
|
|
4993 |
|
| 3430 |
rajveer |
4994 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
4995 |
public boolean isSetType() {
|
|
|
4996 |
return this.type != null;
|
|
|
4997 |
}
|
|
|
4998 |
|
|
|
4999 |
public void setTypeIsSet(boolean value) {
|
|
|
5000 |
if (!value) {
|
|
|
5001 |
this.type = null;
|
|
|
5002 |
}
|
|
|
5003 |
}
|
|
|
5004 |
|
| 4496 |
mandeep.dh |
5005 |
public long getQuantity() {
|
|
|
5006 |
return this.quantity;
|
|
|
5007 |
}
|
|
|
5008 |
|
|
|
5009 |
public void setQuantity(long quantity) {
|
|
|
5010 |
this.quantity = quantity;
|
|
|
5011 |
setQuantityIsSet(true);
|
|
|
5012 |
}
|
|
|
5013 |
|
|
|
5014 |
public void unsetQuantity() {
|
|
|
5015 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
5016 |
}
|
|
|
5017 |
|
|
|
5018 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
5019 |
public boolean isSetQuantity() {
|
|
|
5020 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
5021 |
}
|
|
|
5022 |
|
|
|
5023 |
public void setQuantityIsSet(boolean value) {
|
|
|
5024 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
5025 |
}
|
|
|
5026 |
|
|
|
5027 |
public long getOrderId() {
|
|
|
5028 |
return this.orderId;
|
|
|
5029 |
}
|
|
|
5030 |
|
|
|
5031 |
public void setOrderId(long orderId) {
|
|
|
5032 |
this.orderId = orderId;
|
|
|
5033 |
setOrderIdIsSet(true);
|
|
|
5034 |
}
|
|
|
5035 |
|
|
|
5036 |
public void unsetOrderId() {
|
|
|
5037 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
5038 |
}
|
|
|
5039 |
|
|
|
5040 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
5041 |
public boolean isSetOrderId() {
|
|
|
5042 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
5043 |
}
|
|
|
5044 |
|
|
|
5045 |
public void setOrderIdIsSet(boolean value) {
|
|
|
5046 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
5047 |
}
|
|
|
5048 |
|
| 5110 |
mandeep.dh |
5049 |
public long getFulfilmentWarehouseId() {
|
|
|
5050 |
return this.fulfilmentWarehouseId;
|
| 4496 |
mandeep.dh |
5051 |
}
|
|
|
5052 |
|
| 5110 |
mandeep.dh |
5053 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
5054 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
5055 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
5056 |
}
|
|
|
5057 |
|
| 5110 |
mandeep.dh |
5058 |
public void unsetFulfilmentWarehouseId() {
|
|
|
5059 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
5060 |
}
|
|
|
5061 |
|
| 5110 |
mandeep.dh |
5062 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5063 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
5064 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
5065 |
}
|
|
|
5066 |
|
| 5110 |
mandeep.dh |
5067 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
5068 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
5069 |
}
|
|
|
5070 |
|
| 5361 |
mandeep.dh |
5071 |
public long getBillingWarehouseId() {
|
|
|
5072 |
return this.billingWarehouseId;
|
|
|
5073 |
}
|
|
|
5074 |
|
|
|
5075 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
5076 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
5077 |
setBillingWarehouseIdIsSet(true);
|
|
|
5078 |
}
|
|
|
5079 |
|
|
|
5080 |
public void unsetBillingWarehouseId() {
|
|
|
5081 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5082 |
}
|
|
|
5083 |
|
|
|
5084 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5085 |
public boolean isSetBillingWarehouseId() {
|
|
|
5086 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5087 |
}
|
|
|
5088 |
|
|
|
5089 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
5090 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
5091 |
}
|
|
|
5092 |
|
| 2820 |
chandransh |
5093 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5094 |
switch (field) {
|
| 5361 |
mandeep.dh |
5095 |
case INVENTORY_ITEM:
|
| 2820 |
chandransh |
5096 |
if (value == null) {
|
| 5361 |
mandeep.dh |
5097 |
unsetInventoryItem();
|
| 2820 |
chandransh |
5098 |
} else {
|
| 5361 |
mandeep.dh |
5099 |
setInventoryItem((InventoryItem)value);
|
| 2820 |
chandransh |
5100 |
}
|
|
|
5101 |
break;
|
|
|
5102 |
|
| 4496 |
mandeep.dh |
5103 |
case TYPE:
|
| 2820 |
chandransh |
5104 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5105 |
unsetType();
|
| 2820 |
chandransh |
5106 |
} else {
|
| 4496 |
mandeep.dh |
5107 |
setType((ScanType)value);
|
| 2820 |
chandransh |
5108 |
}
|
|
|
5109 |
break;
|
|
|
5110 |
|
| 4496 |
mandeep.dh |
5111 |
case QUANTITY:
|
| 2820 |
chandransh |
5112 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5113 |
unsetQuantity();
|
| 2820 |
chandransh |
5114 |
} else {
|
| 4496 |
mandeep.dh |
5115 |
setQuantity((Long)value);
|
| 2820 |
chandransh |
5116 |
}
|
|
|
5117 |
break;
|
|
|
5118 |
|
| 4496 |
mandeep.dh |
5119 |
case ORDER_ID:
|
|
|
5120 |
if (value == null) {
|
|
|
5121 |
unsetOrderId();
|
|
|
5122 |
} else {
|
|
|
5123 |
setOrderId((Long)value);
|
|
|
5124 |
}
|
|
|
5125 |
break;
|
|
|
5126 |
|
| 5110 |
mandeep.dh |
5127 |
case FULFILMENT_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
5128 |
if (value == null) {
|
| 5110 |
mandeep.dh |
5129 |
unsetFulfilmentWarehouseId();
|
| 4496 |
mandeep.dh |
5130 |
} else {
|
| 5110 |
mandeep.dh |
5131 |
setFulfilmentWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
5132 |
}
|
|
|
5133 |
break;
|
|
|
5134 |
|
| 5361 |
mandeep.dh |
5135 |
case BILLING_WAREHOUSE_ID:
|
|
|
5136 |
if (value == null) {
|
|
|
5137 |
unsetBillingWarehouseId();
|
|
|
5138 |
} else {
|
|
|
5139 |
setBillingWarehouseId((Long)value);
|
|
|
5140 |
}
|
|
|
5141 |
break;
|
|
|
5142 |
|
| 2820 |
chandransh |
5143 |
}
|
|
|
5144 |
}
|
|
|
5145 |
|
|
|
5146 |
public Object getFieldValue(_Fields field) {
|
|
|
5147 |
switch (field) {
|
| 5361 |
mandeep.dh |
5148 |
case INVENTORY_ITEM:
|
|
|
5149 |
return getInventoryItem();
|
| 2820 |
chandransh |
5150 |
|
|
|
5151 |
case TYPE:
|
|
|
5152 |
return getType();
|
|
|
5153 |
|
| 4496 |
mandeep.dh |
5154 |
case QUANTITY:
|
|
|
5155 |
return Long.valueOf(getQuantity());
|
|
|
5156 |
|
|
|
5157 |
case ORDER_ID:
|
|
|
5158 |
return Long.valueOf(getOrderId());
|
|
|
5159 |
|
| 5110 |
mandeep.dh |
5160 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5161 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
5162 |
|
| 5361 |
mandeep.dh |
5163 |
case BILLING_WAREHOUSE_ID:
|
|
|
5164 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
5165 |
|
| 2820 |
chandransh |
5166 |
}
|
|
|
5167 |
throw new IllegalStateException();
|
|
|
5168 |
}
|
|
|
5169 |
|
| 3430 |
rajveer |
5170 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5171 |
public boolean isSet(_Fields field) {
|
|
|
5172 |
if (field == null) {
|
|
|
5173 |
throw new IllegalArgumentException();
|
|
|
5174 |
}
|
| 2820 |
chandransh |
5175 |
|
|
|
5176 |
switch (field) {
|
| 5361 |
mandeep.dh |
5177 |
case INVENTORY_ITEM:
|
|
|
5178 |
return isSetInventoryItem();
|
| 2820 |
chandransh |
5179 |
case TYPE:
|
|
|
5180 |
return isSetType();
|
| 4496 |
mandeep.dh |
5181 |
case QUANTITY:
|
|
|
5182 |
return isSetQuantity();
|
|
|
5183 |
case ORDER_ID:
|
|
|
5184 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
5185 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5186 |
return isSetFulfilmentWarehouseId();
|
| 5361 |
mandeep.dh |
5187 |
case BILLING_WAREHOUSE_ID:
|
|
|
5188 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
5189 |
}
|
|
|
5190 |
throw new IllegalStateException();
|
|
|
5191 |
}
|
|
|
5192 |
|
|
|
5193 |
@Override
|
|
|
5194 |
public boolean equals(Object that) {
|
|
|
5195 |
if (that == null)
|
|
|
5196 |
return false;
|
| 4496 |
mandeep.dh |
5197 |
if (that instanceof scanForOrder_args)
|
|
|
5198 |
return this.equals((scanForOrder_args)that);
|
| 2820 |
chandransh |
5199 |
return false;
|
|
|
5200 |
}
|
|
|
5201 |
|
| 4496 |
mandeep.dh |
5202 |
public boolean equals(scanForOrder_args that) {
|
| 2820 |
chandransh |
5203 |
if (that == null)
|
|
|
5204 |
return false;
|
|
|
5205 |
|
| 5361 |
mandeep.dh |
5206 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
5207 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
5208 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
5209 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 2820 |
chandransh |
5210 |
return false;
|
| 5361 |
mandeep.dh |
5211 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 2820 |
chandransh |
5212 |
return false;
|
|
|
5213 |
}
|
|
|
5214 |
|
|
|
5215 |
boolean this_present_type = true && this.isSetType();
|
|
|
5216 |
boolean that_present_type = true && that.isSetType();
|
|
|
5217 |
if (this_present_type || that_present_type) {
|
|
|
5218 |
if (!(this_present_type && that_present_type))
|
|
|
5219 |
return false;
|
|
|
5220 |
if (!this.type.equals(that.type))
|
|
|
5221 |
return false;
|
|
|
5222 |
}
|
|
|
5223 |
|
| 4496 |
mandeep.dh |
5224 |
boolean this_present_quantity = true;
|
|
|
5225 |
boolean that_present_quantity = true;
|
|
|
5226 |
if (this_present_quantity || that_present_quantity) {
|
|
|
5227 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
5228 |
return false;
|
|
|
5229 |
if (this.quantity != that.quantity)
|
|
|
5230 |
return false;
|
|
|
5231 |
}
|
|
|
5232 |
|
|
|
5233 |
boolean this_present_orderId = true;
|
|
|
5234 |
boolean that_present_orderId = true;
|
|
|
5235 |
if (this_present_orderId || that_present_orderId) {
|
|
|
5236 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
5237 |
return false;
|
|
|
5238 |
if (this.orderId != that.orderId)
|
|
|
5239 |
return false;
|
|
|
5240 |
}
|
|
|
5241 |
|
| 5110 |
mandeep.dh |
5242 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
5243 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
5244 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
5245 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 4496 |
mandeep.dh |
5246 |
return false;
|
| 5110 |
mandeep.dh |
5247 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 4496 |
mandeep.dh |
5248 |
return false;
|
|
|
5249 |
}
|
|
|
5250 |
|
| 5361 |
mandeep.dh |
5251 |
boolean this_present_billingWarehouseId = true;
|
|
|
5252 |
boolean that_present_billingWarehouseId = true;
|
|
|
5253 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
5254 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
5255 |
return false;
|
|
|
5256 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
5257 |
return false;
|
|
|
5258 |
}
|
|
|
5259 |
|
| 2820 |
chandransh |
5260 |
return true;
|
|
|
5261 |
}
|
|
|
5262 |
|
|
|
5263 |
@Override
|
|
|
5264 |
public int hashCode() {
|
|
|
5265 |
return 0;
|
|
|
5266 |
}
|
|
|
5267 |
|
| 4496 |
mandeep.dh |
5268 |
public int compareTo(scanForOrder_args other) {
|
| 2820 |
chandransh |
5269 |
if (!getClass().equals(other.getClass())) {
|
|
|
5270 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5271 |
}
|
|
|
5272 |
|
|
|
5273 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5274 |
scanForOrder_args typedOther = (scanForOrder_args)other;
|
| 2820 |
chandransh |
5275 |
|
| 5361 |
mandeep.dh |
5276 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 2820 |
chandransh |
5277 |
if (lastComparison != 0) {
|
|
|
5278 |
return lastComparison;
|
|
|
5279 |
}
|
| 5361 |
mandeep.dh |
5280 |
if (isSetInventoryItem()) {
|
|
|
5281 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
5282 |
if (lastComparison != 0) {
|
|
|
5283 |
return lastComparison;
|
|
|
5284 |
}
|
| 2820 |
chandransh |
5285 |
}
|
| 4496 |
mandeep.dh |
5286 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
5287 |
if (lastComparison != 0) {
|
|
|
5288 |
return lastComparison;
|
|
|
5289 |
}
|
| 4496 |
mandeep.dh |
5290 |
if (isSetType()) {
|
|
|
5291 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
5292 |
if (lastComparison != 0) {
|
|
|
5293 |
return lastComparison;
|
|
|
5294 |
}
|
| 2820 |
chandransh |
5295 |
}
|
| 4496 |
mandeep.dh |
5296 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 2820 |
chandransh |
5297 |
if (lastComparison != 0) {
|
|
|
5298 |
return lastComparison;
|
|
|
5299 |
}
|
| 4496 |
mandeep.dh |
5300 |
if (isSetQuantity()) {
|
|
|
5301 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| 3430 |
rajveer |
5302 |
if (lastComparison != 0) {
|
|
|
5303 |
return lastComparison;
|
|
|
5304 |
}
|
| 2820 |
chandransh |
5305 |
}
|
| 4496 |
mandeep.dh |
5306 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
5307 |
if (lastComparison != 0) {
|
|
|
5308 |
return lastComparison;
|
|
|
5309 |
}
|
|
|
5310 |
if (isSetOrderId()) {
|
|
|
5311 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
5312 |
if (lastComparison != 0) {
|
|
|
5313 |
return lastComparison;
|
|
|
5314 |
}
|
|
|
5315 |
}
|
| 5110 |
mandeep.dh |
5316 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
5317 |
if (lastComparison != 0) {
|
|
|
5318 |
return lastComparison;
|
|
|
5319 |
}
|
| 5110 |
mandeep.dh |
5320 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
5321 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
5322 |
if (lastComparison != 0) {
|
|
|
5323 |
return lastComparison;
|
|
|
5324 |
}
|
|
|
5325 |
}
|
| 5361 |
mandeep.dh |
5326 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
5327 |
if (lastComparison != 0) {
|
|
|
5328 |
return lastComparison;
|
|
|
5329 |
}
|
|
|
5330 |
if (isSetBillingWarehouseId()) {
|
|
|
5331 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
5332 |
if (lastComparison != 0) {
|
|
|
5333 |
return lastComparison;
|
|
|
5334 |
}
|
|
|
5335 |
}
|
| 2820 |
chandransh |
5336 |
return 0;
|
|
|
5337 |
}
|
|
|
5338 |
|
| 3430 |
rajveer |
5339 |
public _Fields fieldForId(int fieldId) {
|
|
|
5340 |
return _Fields.findByThriftId(fieldId);
|
|
|
5341 |
}
|
|
|
5342 |
|
|
|
5343 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5344 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5345 |
iprot.readStructBegin();
|
|
|
5346 |
while (true)
|
|
|
5347 |
{
|
|
|
5348 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5349 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5350 |
break;
|
|
|
5351 |
}
|
| 3430 |
rajveer |
5352 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
5353 |
case 1: // INVENTORY_ITEM
|
|
|
5354 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5355 |
this.inventoryItem = new InventoryItem();
|
|
|
5356 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
5357 |
} else {
|
|
|
5358 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5359 |
}
|
|
|
5360 |
break;
|
| 4496 |
mandeep.dh |
5361 |
case 2: // TYPE
|
|
|
5362 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5363 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
5364 |
} else {
|
|
|
5365 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5366 |
}
|
|
|
5367 |
break;
|
| 4496 |
mandeep.dh |
5368 |
case 3: // QUANTITY
|
|
|
5369 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5370 |
this.quantity = iprot.readI64();
|
|
|
5371 |
setQuantityIsSet(true);
|
| 3430 |
rajveer |
5372 |
} else {
|
|
|
5373 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5374 |
}
|
|
|
5375 |
break;
|
| 4496 |
mandeep.dh |
5376 |
case 4: // ORDER_ID
|
|
|
5377 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5378 |
this.orderId = iprot.readI64();
|
|
|
5379 |
setOrderIdIsSet(true);
|
|
|
5380 |
} else {
|
|
|
5381 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5382 |
}
|
|
|
5383 |
break;
|
| 5110 |
mandeep.dh |
5384 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
5385 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
5386 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
5387 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
5388 |
} else {
|
|
|
5389 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5390 |
}
|
|
|
5391 |
break;
|
| 5361 |
mandeep.dh |
5392 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
5393 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5394 |
this.billingWarehouseId = iprot.readI64();
|
|
|
5395 |
setBillingWarehouseIdIsSet(true);
|
|
|
5396 |
} else {
|
|
|
5397 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5398 |
}
|
|
|
5399 |
break;
|
| 3430 |
rajveer |
5400 |
default:
|
|
|
5401 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5402 |
}
|
| 3430 |
rajveer |
5403 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5404 |
}
|
|
|
5405 |
iprot.readStructEnd();
|
|
|
5406 |
validate();
|
|
|
5407 |
}
|
|
|
5408 |
|
| 3430 |
rajveer |
5409 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5410 |
validate();
|
|
|
5411 |
|
|
|
5412 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
5413 |
if (this.inventoryItem != null) {
|
|
|
5414 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
5415 |
this.inventoryItem.write(oprot);
|
|
|
5416 |
oprot.writeFieldEnd();
|
|
|
5417 |
}
|
| 2820 |
chandransh |
5418 |
if (this.type != null) {
|
|
|
5419 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
5420 |
oprot.writeI32(this.type.getValue());
|
|
|
5421 |
oprot.writeFieldEnd();
|
|
|
5422 |
}
|
| 4496 |
mandeep.dh |
5423 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
5424 |
oprot.writeI64(this.quantity);
|
|
|
5425 |
oprot.writeFieldEnd();
|
|
|
5426 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
5427 |
oprot.writeI64(this.orderId);
|
|
|
5428 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
5429 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
5430 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
5431 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
5432 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
5433 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
5434 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
5435 |
oprot.writeFieldStop();
|
|
|
5436 |
oprot.writeStructEnd();
|
|
|
5437 |
}
|
|
|
5438 |
|
|
|
5439 |
@Override
|
|
|
5440 |
public String toString() {
|
| 4496 |
mandeep.dh |
5441 |
StringBuilder sb = new StringBuilder("scanForOrder_args(");
|
| 2820 |
chandransh |
5442 |
boolean first = true;
|
|
|
5443 |
|
| 5361 |
mandeep.dh |
5444 |
sb.append("inventoryItem:");
|
|
|
5445 |
if (this.inventoryItem == null) {
|
|
|
5446 |
sb.append("null");
|
|
|
5447 |
} else {
|
|
|
5448 |
sb.append(this.inventoryItem);
|
|
|
5449 |
}
|
| 2820 |
chandransh |
5450 |
first = false;
|
|
|
5451 |
if (!first) sb.append(", ");
|
|
|
5452 |
sb.append("type:");
|
|
|
5453 |
if (this.type == null) {
|
|
|
5454 |
sb.append("null");
|
|
|
5455 |
} else {
|
|
|
5456 |
sb.append(this.type);
|
|
|
5457 |
}
|
|
|
5458 |
first = false;
|
| 4496 |
mandeep.dh |
5459 |
if (!first) sb.append(", ");
|
|
|
5460 |
sb.append("quantity:");
|
|
|
5461 |
sb.append(this.quantity);
|
|
|
5462 |
first = false;
|
|
|
5463 |
if (!first) sb.append(", ");
|
|
|
5464 |
sb.append("orderId:");
|
|
|
5465 |
sb.append(this.orderId);
|
|
|
5466 |
first = false;
|
|
|
5467 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
5468 |
sb.append("fulfilmentWarehouseId:");
|
|
|
5469 |
sb.append(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
5470 |
first = false;
|
| 5361 |
mandeep.dh |
5471 |
if (!first) sb.append(", ");
|
|
|
5472 |
sb.append("billingWarehouseId:");
|
|
|
5473 |
sb.append(this.billingWarehouseId);
|
|
|
5474 |
first = false;
|
| 2820 |
chandransh |
5475 |
sb.append(")");
|
|
|
5476 |
return sb.toString();
|
|
|
5477 |
}
|
|
|
5478 |
|
| 3430 |
rajveer |
5479 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5480 |
// check for required fields
|
|
|
5481 |
}
|
|
|
5482 |
|
| 3430 |
rajveer |
5483 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5484 |
try {
|
|
|
5485 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5486 |
} catch (org.apache.thrift.TException te) {
|
|
|
5487 |
throw new java.io.IOException(te);
|
|
|
5488 |
}
|
|
|
5489 |
}
|
|
|
5490 |
|
|
|
5491 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5492 |
try {
|
| 4496 |
mandeep.dh |
5493 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
5494 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
5495 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5496 |
} catch (org.apache.thrift.TException te) {
|
|
|
5497 |
throw new java.io.IOException(te);
|
|
|
5498 |
}
|
|
|
5499 |
}
|
|
|
5500 |
|
| 2820 |
chandransh |
5501 |
}
|
|
|
5502 |
|
| 4496 |
mandeep.dh |
5503 |
public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5504 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
|
| 2820 |
chandransh |
5505 |
|
| 5361 |
mandeep.dh |
5506 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
| 3430 |
rajveer |
5507 |
private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 2820 |
chandransh |
5508 |
|
| 5361 |
mandeep.dh |
5509 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
5510 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
5511 |
|
|
|
5512 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5513 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
5514 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
5515 |
WEX((short)1, "wex");
|
|
|
5516 |
|
|
|
5517 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5518 |
|
|
|
5519 |
static {
|
|
|
5520 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5521 |
byName.put(field.getFieldName(), field);
|
|
|
5522 |
}
|
|
|
5523 |
}
|
|
|
5524 |
|
|
|
5525 |
/**
|
|
|
5526 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5527 |
*/
|
|
|
5528 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5529 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
5530 |
case 0: // SUCCESS
|
|
|
5531 |
return SUCCESS;
|
| 3430 |
rajveer |
5532 |
case 1: // WEX
|
|
|
5533 |
return WEX;
|
|
|
5534 |
default:
|
|
|
5535 |
return null;
|
|
|
5536 |
}
|
| 2820 |
chandransh |
5537 |
}
|
|
|
5538 |
|
|
|
5539 |
/**
|
|
|
5540 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5541 |
* if it is not found.
|
|
|
5542 |
*/
|
|
|
5543 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5544 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5545 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5546 |
return fields;
|
|
|
5547 |
}
|
|
|
5548 |
|
|
|
5549 |
/**
|
|
|
5550 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5551 |
*/
|
|
|
5552 |
public static _Fields findByName(String name) {
|
|
|
5553 |
return byName.get(name);
|
|
|
5554 |
}
|
|
|
5555 |
|
|
|
5556 |
private final short _thriftId;
|
|
|
5557 |
private final String _fieldName;
|
|
|
5558 |
|
|
|
5559 |
_Fields(short thriftId, String fieldName) {
|
|
|
5560 |
_thriftId = thriftId;
|
|
|
5561 |
_fieldName = fieldName;
|
|
|
5562 |
}
|
|
|
5563 |
|
|
|
5564 |
public short getThriftFieldId() {
|
|
|
5565 |
return _thriftId;
|
|
|
5566 |
}
|
|
|
5567 |
|
|
|
5568 |
public String getFieldName() {
|
|
|
5569 |
return _fieldName;
|
|
|
5570 |
}
|
|
|
5571 |
}
|
|
|
5572 |
|
|
|
5573 |
// isset id assignments
|
|
|
5574 |
|
| 3430 |
rajveer |
5575 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5576 |
static {
|
| 3430 |
rajveer |
5577 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
5578 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5579 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
5580 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5581 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5582 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5583 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
5584 |
}
|
|
|
5585 |
|
| 4496 |
mandeep.dh |
5586 |
public scanForOrder_result() {
|
| 2820 |
chandransh |
5587 |
}
|
|
|
5588 |
|
| 4496 |
mandeep.dh |
5589 |
public scanForOrder_result(
|
| 5361 |
mandeep.dh |
5590 |
InventoryItem success,
|
| 2820 |
chandransh |
5591 |
WarehouseServiceException wex)
|
|
|
5592 |
{
|
|
|
5593 |
this();
|
| 5361 |
mandeep.dh |
5594 |
this.success = success;
|
| 2820 |
chandransh |
5595 |
this.wex = wex;
|
|
|
5596 |
}
|
|
|
5597 |
|
|
|
5598 |
/**
|
|
|
5599 |
* Performs a deep copy on <i>other</i>.
|
|
|
5600 |
*/
|
| 4496 |
mandeep.dh |
5601 |
public scanForOrder_result(scanForOrder_result other) {
|
| 5361 |
mandeep.dh |
5602 |
if (other.isSetSuccess()) {
|
|
|
5603 |
this.success = new InventoryItem(other.success);
|
|
|
5604 |
}
|
| 2820 |
chandransh |
5605 |
if (other.isSetWex()) {
|
|
|
5606 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
5607 |
}
|
|
|
5608 |
}
|
|
|
5609 |
|
| 4496 |
mandeep.dh |
5610 |
public scanForOrder_result deepCopy() {
|
|
|
5611 |
return new scanForOrder_result(this);
|
| 2820 |
chandransh |
5612 |
}
|
|
|
5613 |
|
| 3430 |
rajveer |
5614 |
@Override
|
|
|
5615 |
public void clear() {
|
| 5361 |
mandeep.dh |
5616 |
this.success = null;
|
| 3430 |
rajveer |
5617 |
this.wex = null;
|
| 2820 |
chandransh |
5618 |
}
|
|
|
5619 |
|
| 5361 |
mandeep.dh |
5620 |
public InventoryItem getSuccess() {
|
|
|
5621 |
return this.success;
|
|
|
5622 |
}
|
|
|
5623 |
|
|
|
5624 |
public void setSuccess(InventoryItem success) {
|
|
|
5625 |
this.success = success;
|
|
|
5626 |
}
|
|
|
5627 |
|
|
|
5628 |
public void unsetSuccess() {
|
|
|
5629 |
this.success = null;
|
|
|
5630 |
}
|
|
|
5631 |
|
|
|
5632 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
5633 |
public boolean isSetSuccess() {
|
|
|
5634 |
return this.success != null;
|
|
|
5635 |
}
|
|
|
5636 |
|
|
|
5637 |
public void setSuccessIsSet(boolean value) {
|
|
|
5638 |
if (!value) {
|
|
|
5639 |
this.success = null;
|
|
|
5640 |
}
|
|
|
5641 |
}
|
|
|
5642 |
|
| 2820 |
chandransh |
5643 |
public WarehouseServiceException getWex() {
|
|
|
5644 |
return this.wex;
|
|
|
5645 |
}
|
|
|
5646 |
|
| 3430 |
rajveer |
5647 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
5648 |
this.wex = wex;
|
|
|
5649 |
}
|
|
|
5650 |
|
|
|
5651 |
public void unsetWex() {
|
|
|
5652 |
this.wex = null;
|
|
|
5653 |
}
|
|
|
5654 |
|
| 3430 |
rajveer |
5655 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
5656 |
public boolean isSetWex() {
|
|
|
5657 |
return this.wex != null;
|
|
|
5658 |
}
|
|
|
5659 |
|
|
|
5660 |
public void setWexIsSet(boolean value) {
|
|
|
5661 |
if (!value) {
|
|
|
5662 |
this.wex = null;
|
|
|
5663 |
}
|
|
|
5664 |
}
|
|
|
5665 |
|
|
|
5666 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5667 |
switch (field) {
|
| 5361 |
mandeep.dh |
5668 |
case SUCCESS:
|
|
|
5669 |
if (value == null) {
|
|
|
5670 |
unsetSuccess();
|
|
|
5671 |
} else {
|
|
|
5672 |
setSuccess((InventoryItem)value);
|
|
|
5673 |
}
|
|
|
5674 |
break;
|
|
|
5675 |
|
| 2820 |
chandransh |
5676 |
case WEX:
|
|
|
5677 |
if (value == null) {
|
|
|
5678 |
unsetWex();
|
|
|
5679 |
} else {
|
|
|
5680 |
setWex((WarehouseServiceException)value);
|
|
|
5681 |
}
|
|
|
5682 |
break;
|
|
|
5683 |
|
|
|
5684 |
}
|
|
|
5685 |
}
|
|
|
5686 |
|
|
|
5687 |
public Object getFieldValue(_Fields field) {
|
|
|
5688 |
switch (field) {
|
| 5361 |
mandeep.dh |
5689 |
case SUCCESS:
|
|
|
5690 |
return getSuccess();
|
|
|
5691 |
|
| 2820 |
chandransh |
5692 |
case WEX:
|
|
|
5693 |
return getWex();
|
|
|
5694 |
|
|
|
5695 |
}
|
|
|
5696 |
throw new IllegalStateException();
|
|
|
5697 |
}
|
|
|
5698 |
|
| 3430 |
rajveer |
5699 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5700 |
public boolean isSet(_Fields field) {
|
|
|
5701 |
if (field == null) {
|
|
|
5702 |
throw new IllegalArgumentException();
|
|
|
5703 |
}
|
| 2820 |
chandransh |
5704 |
|
|
|
5705 |
switch (field) {
|
| 5361 |
mandeep.dh |
5706 |
case SUCCESS:
|
|
|
5707 |
return isSetSuccess();
|
| 2820 |
chandransh |
5708 |
case WEX:
|
|
|
5709 |
return isSetWex();
|
|
|
5710 |
}
|
|
|
5711 |
throw new IllegalStateException();
|
|
|
5712 |
}
|
|
|
5713 |
|
|
|
5714 |
@Override
|
|
|
5715 |
public boolean equals(Object that) {
|
|
|
5716 |
if (that == null)
|
|
|
5717 |
return false;
|
| 4496 |
mandeep.dh |
5718 |
if (that instanceof scanForOrder_result)
|
|
|
5719 |
return this.equals((scanForOrder_result)that);
|
| 2820 |
chandransh |
5720 |
return false;
|
|
|
5721 |
}
|
|
|
5722 |
|
| 4496 |
mandeep.dh |
5723 |
public boolean equals(scanForOrder_result that) {
|
| 2820 |
chandransh |
5724 |
if (that == null)
|
|
|
5725 |
return false;
|
|
|
5726 |
|
| 5361 |
mandeep.dh |
5727 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5728 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5729 |
if (this_present_success || that_present_success) {
|
|
|
5730 |
if (!(this_present_success && that_present_success))
|
|
|
5731 |
return false;
|
|
|
5732 |
if (!this.success.equals(that.success))
|
|
|
5733 |
return false;
|
|
|
5734 |
}
|
|
|
5735 |
|
| 2820 |
chandransh |
5736 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
5737 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
5738 |
if (this_present_wex || that_present_wex) {
|
|
|
5739 |
if (!(this_present_wex && that_present_wex))
|
|
|
5740 |
return false;
|
|
|
5741 |
if (!this.wex.equals(that.wex))
|
|
|
5742 |
return false;
|
|
|
5743 |
}
|
|
|
5744 |
|
|
|
5745 |
return true;
|
|
|
5746 |
}
|
|
|
5747 |
|
|
|
5748 |
@Override
|
|
|
5749 |
public int hashCode() {
|
|
|
5750 |
return 0;
|
|
|
5751 |
}
|
|
|
5752 |
|
| 4496 |
mandeep.dh |
5753 |
public int compareTo(scanForOrder_result other) {
|
| 2820 |
chandransh |
5754 |
if (!getClass().equals(other.getClass())) {
|
|
|
5755 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5756 |
}
|
|
|
5757 |
|
|
|
5758 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5759 |
scanForOrder_result typedOther = (scanForOrder_result)other;
|
| 2820 |
chandransh |
5760 |
|
| 5361 |
mandeep.dh |
5761 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
5762 |
if (lastComparison != 0) {
|
|
|
5763 |
return lastComparison;
|
|
|
5764 |
}
|
|
|
5765 |
if (isSetSuccess()) {
|
|
|
5766 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5767 |
if (lastComparison != 0) {
|
|
|
5768 |
return lastComparison;
|
|
|
5769 |
}
|
|
|
5770 |
}
|
| 3430 |
rajveer |
5771 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
5772 |
if (lastComparison != 0) {
|
|
|
5773 |
return lastComparison;
|
|
|
5774 |
}
|
| 3430 |
rajveer |
5775 |
if (isSetWex()) {
|
|
|
5776 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
5777 |
if (lastComparison != 0) {
|
|
|
5778 |
return lastComparison;
|
|
|
5779 |
}
|
| 2820 |
chandransh |
5780 |
}
|
|
|
5781 |
return 0;
|
|
|
5782 |
}
|
|
|
5783 |
|
| 3430 |
rajveer |
5784 |
public _Fields fieldForId(int fieldId) {
|
|
|
5785 |
return _Fields.findByThriftId(fieldId);
|
|
|
5786 |
}
|
|
|
5787 |
|
|
|
5788 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5789 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5790 |
iprot.readStructBegin();
|
|
|
5791 |
while (true)
|
|
|
5792 |
{
|
|
|
5793 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5794 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5795 |
break;
|
|
|
5796 |
}
|
| 3430 |
rajveer |
5797 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
5798 |
case 0: // SUCCESS
|
|
|
5799 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5800 |
this.success = new InventoryItem();
|
|
|
5801 |
this.success.read(iprot);
|
|
|
5802 |
} else {
|
|
|
5803 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5804 |
}
|
|
|
5805 |
break;
|
| 3430 |
rajveer |
5806 |
case 1: // WEX
|
|
|
5807 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5808 |
this.wex = new WarehouseServiceException();
|
|
|
5809 |
this.wex.read(iprot);
|
|
|
5810 |
} else {
|
|
|
5811 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5812 |
}
|
|
|
5813 |
break;
|
|
|
5814 |
default:
|
|
|
5815 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5816 |
}
|
| 3430 |
rajveer |
5817 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5818 |
}
|
|
|
5819 |
iprot.readStructEnd();
|
|
|
5820 |
validate();
|
|
|
5821 |
}
|
|
|
5822 |
|
| 3430 |
rajveer |
5823 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5824 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5825 |
|
| 5361 |
mandeep.dh |
5826 |
if (this.isSetSuccess()) {
|
|
|
5827 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5828 |
this.success.write(oprot);
|
|
|
5829 |
oprot.writeFieldEnd();
|
|
|
5830 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
5831 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
5832 |
this.wex.write(oprot);
|
|
|
5833 |
oprot.writeFieldEnd();
|
|
|
5834 |
}
|
|
|
5835 |
oprot.writeFieldStop();
|
|
|
5836 |
oprot.writeStructEnd();
|
|
|
5837 |
}
|
|
|
5838 |
|
|
|
5839 |
@Override
|
|
|
5840 |
public String toString() {
|
| 4496 |
mandeep.dh |
5841 |
StringBuilder sb = new StringBuilder("scanForOrder_result(");
|
| 2820 |
chandransh |
5842 |
boolean first = true;
|
|
|
5843 |
|
| 5361 |
mandeep.dh |
5844 |
sb.append("success:");
|
|
|
5845 |
if (this.success == null) {
|
|
|
5846 |
sb.append("null");
|
|
|
5847 |
} else {
|
|
|
5848 |
sb.append(this.success);
|
|
|
5849 |
}
|
|
|
5850 |
first = false;
|
|
|
5851 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
5852 |
sb.append("wex:");
|
|
|
5853 |
if (this.wex == null) {
|
|
|
5854 |
sb.append("null");
|
|
|
5855 |
} else {
|
|
|
5856 |
sb.append(this.wex);
|
|
|
5857 |
}
|
|
|
5858 |
first = false;
|
|
|
5859 |
sb.append(")");
|
|
|
5860 |
return sb.toString();
|
|
|
5861 |
}
|
|
|
5862 |
|
| 3430 |
rajveer |
5863 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5864 |
// check for required fields
|
|
|
5865 |
}
|
|
|
5866 |
|
| 3430 |
rajveer |
5867 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5868 |
try {
|
|
|
5869 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5870 |
} catch (org.apache.thrift.TException te) {
|
|
|
5871 |
throw new java.io.IOException(te);
|
|
|
5872 |
}
|
|
|
5873 |
}
|
|
|
5874 |
|
|
|
5875 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5876 |
try {
|
|
|
5877 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5878 |
} catch (org.apache.thrift.TException te) {
|
|
|
5879 |
throw new java.io.IOException(te);
|
|
|
5880 |
}
|
|
|
5881 |
}
|
|
|
5882 |
|
| 2820 |
chandransh |
5883 |
}
|
|
|
5884 |
|
| 4496 |
mandeep.dh |
5885 |
public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5886 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
|
|
|
5887 |
|
|
|
5888 |
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);
|
|
|
5889 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
5890 |
|
|
|
5891 |
private String itemNumber; // required
|
|
|
5892 |
private long itemId; // required
|
|
|
5893 |
|
|
|
5894 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5895 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
5896 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
5897 |
ITEM_ID((short)2, "itemId");
|
|
|
5898 |
|
|
|
5899 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5900 |
|
|
|
5901 |
static {
|
|
|
5902 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5903 |
byName.put(field.getFieldName(), field);
|
|
|
5904 |
}
|
|
|
5905 |
}
|
|
|
5906 |
|
|
|
5907 |
/**
|
|
|
5908 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5909 |
*/
|
|
|
5910 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5911 |
switch(fieldId) {
|
|
|
5912 |
case 1: // ITEM_NUMBER
|
|
|
5913 |
return ITEM_NUMBER;
|
|
|
5914 |
case 2: // ITEM_ID
|
|
|
5915 |
return ITEM_ID;
|
|
|
5916 |
default:
|
|
|
5917 |
return null;
|
|
|
5918 |
}
|
|
|
5919 |
}
|
|
|
5920 |
|
|
|
5921 |
/**
|
|
|
5922 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5923 |
* if it is not found.
|
|
|
5924 |
*/
|
|
|
5925 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5926 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5927 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5928 |
return fields;
|
|
|
5929 |
}
|
|
|
5930 |
|
|
|
5931 |
/**
|
|
|
5932 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5933 |
*/
|
|
|
5934 |
public static _Fields findByName(String name) {
|
|
|
5935 |
return byName.get(name);
|
|
|
5936 |
}
|
|
|
5937 |
|
|
|
5938 |
private final short _thriftId;
|
|
|
5939 |
private final String _fieldName;
|
|
|
5940 |
|
|
|
5941 |
_Fields(short thriftId, String fieldName) {
|
|
|
5942 |
_thriftId = thriftId;
|
|
|
5943 |
_fieldName = fieldName;
|
|
|
5944 |
}
|
|
|
5945 |
|
|
|
5946 |
public short getThriftFieldId() {
|
|
|
5947 |
return _thriftId;
|
|
|
5948 |
}
|
|
|
5949 |
|
|
|
5950 |
public String getFieldName() {
|
|
|
5951 |
return _fieldName;
|
|
|
5952 |
}
|
|
|
5953 |
}
|
|
|
5954 |
|
|
|
5955 |
// isset id assignments
|
|
|
5956 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
5957 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
5958 |
|
|
|
5959 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
5960 |
static {
|
|
|
5961 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5962 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5963 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
5964 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5965 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5966 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5967 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
|
|
|
5968 |
}
|
|
|
5969 |
|
|
|
5970 |
public createItemNumberMapping_args() {
|
|
|
5971 |
}
|
|
|
5972 |
|
|
|
5973 |
public createItemNumberMapping_args(
|
|
|
5974 |
String itemNumber,
|
|
|
5975 |
long itemId)
|
|
|
5976 |
{
|
|
|
5977 |
this();
|
|
|
5978 |
this.itemNumber = itemNumber;
|
|
|
5979 |
this.itemId = itemId;
|
|
|
5980 |
setItemIdIsSet(true);
|
|
|
5981 |
}
|
|
|
5982 |
|
|
|
5983 |
/**
|
|
|
5984 |
* Performs a deep copy on <i>other</i>.
|
|
|
5985 |
*/
|
|
|
5986 |
public createItemNumberMapping_args(createItemNumberMapping_args other) {
|
|
|
5987 |
__isset_bit_vector.clear();
|
|
|
5988 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
5989 |
if (other.isSetItemNumber()) {
|
|
|
5990 |
this.itemNumber = other.itemNumber;
|
|
|
5991 |
}
|
|
|
5992 |
this.itemId = other.itemId;
|
|
|
5993 |
}
|
|
|
5994 |
|
|
|
5995 |
public createItemNumberMapping_args deepCopy() {
|
|
|
5996 |
return new createItemNumberMapping_args(this);
|
|
|
5997 |
}
|
|
|
5998 |
|
|
|
5999 |
@Override
|
|
|
6000 |
public void clear() {
|
|
|
6001 |
this.itemNumber = null;
|
|
|
6002 |
setItemIdIsSet(false);
|
|
|
6003 |
this.itemId = 0;
|
|
|
6004 |
}
|
|
|
6005 |
|
|
|
6006 |
public String getItemNumber() {
|
|
|
6007 |
return this.itemNumber;
|
|
|
6008 |
}
|
|
|
6009 |
|
|
|
6010 |
public void setItemNumber(String itemNumber) {
|
|
|
6011 |
this.itemNumber = itemNumber;
|
|
|
6012 |
}
|
|
|
6013 |
|
|
|
6014 |
public void unsetItemNumber() {
|
|
|
6015 |
this.itemNumber = null;
|
|
|
6016 |
}
|
|
|
6017 |
|
|
|
6018 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
6019 |
public boolean isSetItemNumber() {
|
|
|
6020 |
return this.itemNumber != null;
|
|
|
6021 |
}
|
|
|
6022 |
|
|
|
6023 |
public void setItemNumberIsSet(boolean value) {
|
|
|
6024 |
if (!value) {
|
|
|
6025 |
this.itemNumber = null;
|
|
|
6026 |
}
|
|
|
6027 |
}
|
|
|
6028 |
|
|
|
6029 |
public long getItemId() {
|
|
|
6030 |
return this.itemId;
|
|
|
6031 |
}
|
|
|
6032 |
|
|
|
6033 |
public void setItemId(long itemId) {
|
|
|
6034 |
this.itemId = itemId;
|
|
|
6035 |
setItemIdIsSet(true);
|
|
|
6036 |
}
|
|
|
6037 |
|
|
|
6038 |
public void unsetItemId() {
|
|
|
6039 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
6040 |
}
|
|
|
6041 |
|
|
|
6042 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
6043 |
public boolean isSetItemId() {
|
|
|
6044 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
6045 |
}
|
|
|
6046 |
|
|
|
6047 |
public void setItemIdIsSet(boolean value) {
|
|
|
6048 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
6049 |
}
|
|
|
6050 |
|
|
|
6051 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6052 |
switch (field) {
|
|
|
6053 |
case ITEM_NUMBER:
|
|
|
6054 |
if (value == null) {
|
|
|
6055 |
unsetItemNumber();
|
|
|
6056 |
} else {
|
|
|
6057 |
setItemNumber((String)value);
|
|
|
6058 |
}
|
|
|
6059 |
break;
|
|
|
6060 |
|
|
|
6061 |
case ITEM_ID:
|
|
|
6062 |
if (value == null) {
|
|
|
6063 |
unsetItemId();
|
|
|
6064 |
} else {
|
|
|
6065 |
setItemId((Long)value);
|
|
|
6066 |
}
|
|
|
6067 |
break;
|
|
|
6068 |
|
|
|
6069 |
}
|
|
|
6070 |
}
|
|
|
6071 |
|
|
|
6072 |
public Object getFieldValue(_Fields field) {
|
|
|
6073 |
switch (field) {
|
|
|
6074 |
case ITEM_NUMBER:
|
|
|
6075 |
return getItemNumber();
|
|
|
6076 |
|
|
|
6077 |
case ITEM_ID:
|
|
|
6078 |
return Long.valueOf(getItemId());
|
|
|
6079 |
|
|
|
6080 |
}
|
|
|
6081 |
throw new IllegalStateException();
|
|
|
6082 |
}
|
|
|
6083 |
|
|
|
6084 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6085 |
public boolean isSet(_Fields field) {
|
|
|
6086 |
if (field == null) {
|
|
|
6087 |
throw new IllegalArgumentException();
|
|
|
6088 |
}
|
|
|
6089 |
|
|
|
6090 |
switch (field) {
|
|
|
6091 |
case ITEM_NUMBER:
|
|
|
6092 |
return isSetItemNumber();
|
|
|
6093 |
case ITEM_ID:
|
|
|
6094 |
return isSetItemId();
|
|
|
6095 |
}
|
|
|
6096 |
throw new IllegalStateException();
|
|
|
6097 |
}
|
|
|
6098 |
|
|
|
6099 |
@Override
|
|
|
6100 |
public boolean equals(Object that) {
|
|
|
6101 |
if (that == null)
|
|
|
6102 |
return false;
|
|
|
6103 |
if (that instanceof createItemNumberMapping_args)
|
|
|
6104 |
return this.equals((createItemNumberMapping_args)that);
|
|
|
6105 |
return false;
|
|
|
6106 |
}
|
|
|
6107 |
|
|
|
6108 |
public boolean equals(createItemNumberMapping_args that) {
|
|
|
6109 |
if (that == null)
|
|
|
6110 |
return false;
|
|
|
6111 |
|
|
|
6112 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
6113 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
6114 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
6115 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
6116 |
return false;
|
|
|
6117 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
6118 |
return false;
|
|
|
6119 |
}
|
|
|
6120 |
|
|
|
6121 |
boolean this_present_itemId = true;
|
|
|
6122 |
boolean that_present_itemId = true;
|
|
|
6123 |
if (this_present_itemId || that_present_itemId) {
|
|
|
6124 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
6125 |
return false;
|
|
|
6126 |
if (this.itemId != that.itemId)
|
|
|
6127 |
return false;
|
|
|
6128 |
}
|
|
|
6129 |
|
|
|
6130 |
return true;
|
|
|
6131 |
}
|
|
|
6132 |
|
|
|
6133 |
@Override
|
|
|
6134 |
public int hashCode() {
|
|
|
6135 |
return 0;
|
|
|
6136 |
}
|
|
|
6137 |
|
|
|
6138 |
public int compareTo(createItemNumberMapping_args other) {
|
|
|
6139 |
if (!getClass().equals(other.getClass())) {
|
|
|
6140 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6141 |
}
|
|
|
6142 |
|
|
|
6143 |
int lastComparison = 0;
|
|
|
6144 |
createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
|
|
|
6145 |
|
|
|
6146 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
6147 |
if (lastComparison != 0) {
|
|
|
6148 |
return lastComparison;
|
|
|
6149 |
}
|
|
|
6150 |
if (isSetItemNumber()) {
|
|
|
6151 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
6152 |
if (lastComparison != 0) {
|
|
|
6153 |
return lastComparison;
|
|
|
6154 |
}
|
|
|
6155 |
}
|
|
|
6156 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
6157 |
if (lastComparison != 0) {
|
|
|
6158 |
return lastComparison;
|
|
|
6159 |
}
|
|
|
6160 |
if (isSetItemId()) {
|
|
|
6161 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
6162 |
if (lastComparison != 0) {
|
|
|
6163 |
return lastComparison;
|
|
|
6164 |
}
|
|
|
6165 |
}
|
|
|
6166 |
return 0;
|
|
|
6167 |
}
|
|
|
6168 |
|
|
|
6169 |
public _Fields fieldForId(int fieldId) {
|
|
|
6170 |
return _Fields.findByThriftId(fieldId);
|
|
|
6171 |
}
|
|
|
6172 |
|
|
|
6173 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6174 |
org.apache.thrift.protocol.TField field;
|
|
|
6175 |
iprot.readStructBegin();
|
|
|
6176 |
while (true)
|
|
|
6177 |
{
|
|
|
6178 |
field = iprot.readFieldBegin();
|
|
|
6179 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6180 |
break;
|
|
|
6181 |
}
|
|
|
6182 |
switch (field.id) {
|
|
|
6183 |
case 1: // ITEM_NUMBER
|
|
|
6184 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6185 |
this.itemNumber = iprot.readString();
|
|
|
6186 |
} else {
|
|
|
6187 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6188 |
}
|
|
|
6189 |
break;
|
|
|
6190 |
case 2: // ITEM_ID
|
|
|
6191 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6192 |
this.itemId = iprot.readI64();
|
|
|
6193 |
setItemIdIsSet(true);
|
|
|
6194 |
} else {
|
|
|
6195 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6196 |
}
|
|
|
6197 |
break;
|
|
|
6198 |
default:
|
|
|
6199 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6200 |
}
|
|
|
6201 |
iprot.readFieldEnd();
|
|
|
6202 |
}
|
|
|
6203 |
iprot.readStructEnd();
|
|
|
6204 |
validate();
|
|
|
6205 |
}
|
|
|
6206 |
|
|
|
6207 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6208 |
validate();
|
|
|
6209 |
|
|
|
6210 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6211 |
if (this.itemNumber != null) {
|
|
|
6212 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
6213 |
oprot.writeString(this.itemNumber);
|
|
|
6214 |
oprot.writeFieldEnd();
|
|
|
6215 |
}
|
|
|
6216 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
6217 |
oprot.writeI64(this.itemId);
|
|
|
6218 |
oprot.writeFieldEnd();
|
|
|
6219 |
oprot.writeFieldStop();
|
|
|
6220 |
oprot.writeStructEnd();
|
|
|
6221 |
}
|
|
|
6222 |
|
|
|
6223 |
@Override
|
|
|
6224 |
public String toString() {
|
|
|
6225 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
|
|
|
6226 |
boolean first = true;
|
|
|
6227 |
|
|
|
6228 |
sb.append("itemNumber:");
|
|
|
6229 |
if (this.itemNumber == null) {
|
|
|
6230 |
sb.append("null");
|
|
|
6231 |
} else {
|
|
|
6232 |
sb.append(this.itemNumber);
|
|
|
6233 |
}
|
|
|
6234 |
first = false;
|
|
|
6235 |
if (!first) sb.append(", ");
|
|
|
6236 |
sb.append("itemId:");
|
|
|
6237 |
sb.append(this.itemId);
|
|
|
6238 |
first = false;
|
|
|
6239 |
sb.append(")");
|
|
|
6240 |
return sb.toString();
|
|
|
6241 |
}
|
|
|
6242 |
|
|
|
6243 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6244 |
// check for required fields
|
|
|
6245 |
}
|
|
|
6246 |
|
|
|
6247 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6248 |
try {
|
|
|
6249 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6250 |
} catch (org.apache.thrift.TException te) {
|
|
|
6251 |
throw new java.io.IOException(te);
|
|
|
6252 |
}
|
|
|
6253 |
}
|
|
|
6254 |
|
|
|
6255 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6256 |
try {
|
|
|
6257 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6258 |
__isset_bit_vector = new BitSet(1);
|
|
|
6259 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6260 |
} catch (org.apache.thrift.TException te) {
|
|
|
6261 |
throw new java.io.IOException(te);
|
|
|
6262 |
}
|
|
|
6263 |
}
|
|
|
6264 |
|
|
|
6265 |
}
|
|
|
6266 |
|
|
|
6267 |
public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6268 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
|
|
|
6269 |
|
|
|
6270 |
|
|
|
6271 |
|
|
|
6272 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6273 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6274 |
;
|
|
|
6275 |
|
|
|
6276 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6277 |
|
|
|
6278 |
static {
|
|
|
6279 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6280 |
byName.put(field.getFieldName(), field);
|
|
|
6281 |
}
|
|
|
6282 |
}
|
|
|
6283 |
|
|
|
6284 |
/**
|
|
|
6285 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6286 |
*/
|
|
|
6287 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6288 |
switch(fieldId) {
|
|
|
6289 |
default:
|
|
|
6290 |
return null;
|
|
|
6291 |
}
|
|
|
6292 |
}
|
|
|
6293 |
|
|
|
6294 |
/**
|
|
|
6295 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6296 |
* if it is not found.
|
|
|
6297 |
*/
|
|
|
6298 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6299 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6300 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6301 |
return fields;
|
|
|
6302 |
}
|
|
|
6303 |
|
|
|
6304 |
/**
|
|
|
6305 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6306 |
*/
|
|
|
6307 |
public static _Fields findByName(String name) {
|
|
|
6308 |
return byName.get(name);
|
|
|
6309 |
}
|
|
|
6310 |
|
|
|
6311 |
private final short _thriftId;
|
|
|
6312 |
private final String _fieldName;
|
|
|
6313 |
|
|
|
6314 |
_Fields(short thriftId, String fieldName) {
|
|
|
6315 |
_thriftId = thriftId;
|
|
|
6316 |
_fieldName = fieldName;
|
|
|
6317 |
}
|
|
|
6318 |
|
|
|
6319 |
public short getThriftFieldId() {
|
|
|
6320 |
return _thriftId;
|
|
|
6321 |
}
|
|
|
6322 |
|
|
|
6323 |
public String getFieldName() {
|
|
|
6324 |
return _fieldName;
|
|
|
6325 |
}
|
|
|
6326 |
}
|
|
|
6327 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6328 |
static {
|
|
|
6329 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6330 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6331 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
|
|
|
6332 |
}
|
|
|
6333 |
|
|
|
6334 |
public createItemNumberMapping_result() {
|
|
|
6335 |
}
|
|
|
6336 |
|
|
|
6337 |
/**
|
|
|
6338 |
* Performs a deep copy on <i>other</i>.
|
|
|
6339 |
*/
|
|
|
6340 |
public createItemNumberMapping_result(createItemNumberMapping_result other) {
|
|
|
6341 |
}
|
|
|
6342 |
|
|
|
6343 |
public createItemNumberMapping_result deepCopy() {
|
|
|
6344 |
return new createItemNumberMapping_result(this);
|
|
|
6345 |
}
|
|
|
6346 |
|
|
|
6347 |
@Override
|
|
|
6348 |
public void clear() {
|
|
|
6349 |
}
|
|
|
6350 |
|
|
|
6351 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6352 |
switch (field) {
|
|
|
6353 |
}
|
|
|
6354 |
}
|
|
|
6355 |
|
|
|
6356 |
public Object getFieldValue(_Fields field) {
|
|
|
6357 |
switch (field) {
|
|
|
6358 |
}
|
|
|
6359 |
throw new IllegalStateException();
|
|
|
6360 |
}
|
|
|
6361 |
|
|
|
6362 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6363 |
public boolean isSet(_Fields field) {
|
|
|
6364 |
if (field == null) {
|
|
|
6365 |
throw new IllegalArgumentException();
|
|
|
6366 |
}
|
|
|
6367 |
|
|
|
6368 |
switch (field) {
|
|
|
6369 |
}
|
|
|
6370 |
throw new IllegalStateException();
|
|
|
6371 |
}
|
|
|
6372 |
|
|
|
6373 |
@Override
|
|
|
6374 |
public boolean equals(Object that) {
|
|
|
6375 |
if (that == null)
|
|
|
6376 |
return false;
|
|
|
6377 |
if (that instanceof createItemNumberMapping_result)
|
|
|
6378 |
return this.equals((createItemNumberMapping_result)that);
|
|
|
6379 |
return false;
|
|
|
6380 |
}
|
|
|
6381 |
|
|
|
6382 |
public boolean equals(createItemNumberMapping_result that) {
|
|
|
6383 |
if (that == null)
|
|
|
6384 |
return false;
|
|
|
6385 |
|
|
|
6386 |
return true;
|
|
|
6387 |
}
|
|
|
6388 |
|
|
|
6389 |
@Override
|
|
|
6390 |
public int hashCode() {
|
|
|
6391 |
return 0;
|
|
|
6392 |
}
|
|
|
6393 |
|
|
|
6394 |
public int compareTo(createItemNumberMapping_result other) {
|
|
|
6395 |
if (!getClass().equals(other.getClass())) {
|
|
|
6396 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6397 |
}
|
|
|
6398 |
|
|
|
6399 |
int lastComparison = 0;
|
|
|
6400 |
createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
|
|
|
6401 |
|
|
|
6402 |
return 0;
|
|
|
6403 |
}
|
|
|
6404 |
|
|
|
6405 |
public _Fields fieldForId(int fieldId) {
|
|
|
6406 |
return _Fields.findByThriftId(fieldId);
|
|
|
6407 |
}
|
|
|
6408 |
|
|
|
6409 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6410 |
org.apache.thrift.protocol.TField field;
|
|
|
6411 |
iprot.readStructBegin();
|
|
|
6412 |
while (true)
|
|
|
6413 |
{
|
|
|
6414 |
field = iprot.readFieldBegin();
|
|
|
6415 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6416 |
break;
|
|
|
6417 |
}
|
|
|
6418 |
switch (field.id) {
|
|
|
6419 |
default:
|
|
|
6420 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6421 |
}
|
|
|
6422 |
iprot.readFieldEnd();
|
|
|
6423 |
}
|
|
|
6424 |
iprot.readStructEnd();
|
|
|
6425 |
validate();
|
|
|
6426 |
}
|
|
|
6427 |
|
|
|
6428 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6429 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6430 |
|
|
|
6431 |
oprot.writeFieldStop();
|
|
|
6432 |
oprot.writeStructEnd();
|
|
|
6433 |
}
|
|
|
6434 |
|
|
|
6435 |
@Override
|
|
|
6436 |
public String toString() {
|
|
|
6437 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
|
|
|
6438 |
boolean first = true;
|
|
|
6439 |
|
|
|
6440 |
sb.append(")");
|
|
|
6441 |
return sb.toString();
|
|
|
6442 |
}
|
|
|
6443 |
|
|
|
6444 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6445 |
// check for required fields
|
|
|
6446 |
}
|
|
|
6447 |
|
|
|
6448 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6449 |
try {
|
|
|
6450 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6451 |
} catch (org.apache.thrift.TException te) {
|
|
|
6452 |
throw new java.io.IOException(te);
|
|
|
6453 |
}
|
|
|
6454 |
}
|
|
|
6455 |
|
|
|
6456 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6457 |
try {
|
|
|
6458 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6459 |
} catch (org.apache.thrift.TException te) {
|
|
|
6460 |
throw new java.io.IOException(te);
|
|
|
6461 |
}
|
|
|
6462 |
}
|
|
|
6463 |
|
|
|
6464 |
}
|
|
|
6465 |
|
| 4622 |
amit.gupta |
6466 |
public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6467 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
|
|
|
6468 |
|
|
|
6469 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
6470 |
|
|
|
6471 |
private long itemId; // required
|
|
|
6472 |
|
|
|
6473 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6474 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6475 |
ITEM_ID((short)1, "itemId");
|
|
|
6476 |
|
|
|
6477 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6478 |
|
|
|
6479 |
static {
|
|
|
6480 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6481 |
byName.put(field.getFieldName(), field);
|
|
|
6482 |
}
|
|
|
6483 |
}
|
|
|
6484 |
|
|
|
6485 |
/**
|
|
|
6486 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6487 |
*/
|
|
|
6488 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6489 |
switch(fieldId) {
|
|
|
6490 |
case 1: // ITEM_ID
|
|
|
6491 |
return ITEM_ID;
|
|
|
6492 |
default:
|
|
|
6493 |
return null;
|
|
|
6494 |
}
|
|
|
6495 |
}
|
|
|
6496 |
|
|
|
6497 |
/**
|
|
|
6498 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6499 |
* if it is not found.
|
|
|
6500 |
*/
|
|
|
6501 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6502 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6503 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6504 |
return fields;
|
|
|
6505 |
}
|
|
|
6506 |
|
|
|
6507 |
/**
|
|
|
6508 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6509 |
*/
|
|
|
6510 |
public static _Fields findByName(String name) {
|
|
|
6511 |
return byName.get(name);
|
|
|
6512 |
}
|
|
|
6513 |
|
|
|
6514 |
private final short _thriftId;
|
|
|
6515 |
private final String _fieldName;
|
|
|
6516 |
|
|
|
6517 |
_Fields(short thriftId, String fieldName) {
|
|
|
6518 |
_thriftId = thriftId;
|
|
|
6519 |
_fieldName = fieldName;
|
|
|
6520 |
}
|
|
|
6521 |
|
|
|
6522 |
public short getThriftFieldId() {
|
|
|
6523 |
return _thriftId;
|
|
|
6524 |
}
|
|
|
6525 |
|
|
|
6526 |
public String getFieldName() {
|
|
|
6527 |
return _fieldName;
|
|
|
6528 |
}
|
|
|
6529 |
}
|
|
|
6530 |
|
|
|
6531 |
// isset id assignments
|
|
|
6532 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
6533 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6534 |
|
|
|
6535 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6536 |
static {
|
|
|
6537 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6538 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6539 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6540 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6541 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
|
|
|
6542 |
}
|
|
|
6543 |
|
|
|
6544 |
public getItemNumbers_args() {
|
|
|
6545 |
}
|
|
|
6546 |
|
|
|
6547 |
public getItemNumbers_args(
|
|
|
6548 |
long itemId)
|
|
|
6549 |
{
|
|
|
6550 |
this();
|
|
|
6551 |
this.itemId = itemId;
|
|
|
6552 |
setItemIdIsSet(true);
|
|
|
6553 |
}
|
|
|
6554 |
|
|
|
6555 |
/**
|
|
|
6556 |
* Performs a deep copy on <i>other</i>.
|
|
|
6557 |
*/
|
|
|
6558 |
public getItemNumbers_args(getItemNumbers_args other) {
|
|
|
6559 |
__isset_bit_vector.clear();
|
|
|
6560 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6561 |
this.itemId = other.itemId;
|
|
|
6562 |
}
|
|
|
6563 |
|
|
|
6564 |
public getItemNumbers_args deepCopy() {
|
|
|
6565 |
return new getItemNumbers_args(this);
|
|
|
6566 |
}
|
|
|
6567 |
|
|
|
6568 |
@Override
|
|
|
6569 |
public void clear() {
|
|
|
6570 |
setItemIdIsSet(false);
|
|
|
6571 |
this.itemId = 0;
|
|
|
6572 |
}
|
|
|
6573 |
|
|
|
6574 |
public long getItemId() {
|
|
|
6575 |
return this.itemId;
|
|
|
6576 |
}
|
|
|
6577 |
|
|
|
6578 |
public void setItemId(long itemId) {
|
|
|
6579 |
this.itemId = itemId;
|
|
|
6580 |
setItemIdIsSet(true);
|
|
|
6581 |
}
|
|
|
6582 |
|
|
|
6583 |
public void unsetItemId() {
|
|
|
6584 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
6585 |
}
|
|
|
6586 |
|
|
|
6587 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
6588 |
public boolean isSetItemId() {
|
|
|
6589 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
6590 |
}
|
|
|
6591 |
|
|
|
6592 |
public void setItemIdIsSet(boolean value) {
|
|
|
6593 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
6594 |
}
|
|
|
6595 |
|
|
|
6596 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6597 |
switch (field) {
|
|
|
6598 |
case ITEM_ID:
|
|
|
6599 |
if (value == null) {
|
|
|
6600 |
unsetItemId();
|
|
|
6601 |
} else {
|
|
|
6602 |
setItemId((Long)value);
|
|
|
6603 |
}
|
|
|
6604 |
break;
|
|
|
6605 |
|
|
|
6606 |
}
|
|
|
6607 |
}
|
|
|
6608 |
|
|
|
6609 |
public Object getFieldValue(_Fields field) {
|
|
|
6610 |
switch (field) {
|
|
|
6611 |
case ITEM_ID:
|
|
|
6612 |
return Long.valueOf(getItemId());
|
|
|
6613 |
|
|
|
6614 |
}
|
|
|
6615 |
throw new IllegalStateException();
|
|
|
6616 |
}
|
|
|
6617 |
|
|
|
6618 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6619 |
public boolean isSet(_Fields field) {
|
|
|
6620 |
if (field == null) {
|
|
|
6621 |
throw new IllegalArgumentException();
|
|
|
6622 |
}
|
|
|
6623 |
|
|
|
6624 |
switch (field) {
|
|
|
6625 |
case ITEM_ID:
|
|
|
6626 |
return isSetItemId();
|
|
|
6627 |
}
|
|
|
6628 |
throw new IllegalStateException();
|
|
|
6629 |
}
|
|
|
6630 |
|
|
|
6631 |
@Override
|
|
|
6632 |
public boolean equals(Object that) {
|
|
|
6633 |
if (that == null)
|
|
|
6634 |
return false;
|
|
|
6635 |
if (that instanceof getItemNumbers_args)
|
|
|
6636 |
return this.equals((getItemNumbers_args)that);
|
|
|
6637 |
return false;
|
|
|
6638 |
}
|
|
|
6639 |
|
|
|
6640 |
public boolean equals(getItemNumbers_args that) {
|
|
|
6641 |
if (that == null)
|
|
|
6642 |
return false;
|
|
|
6643 |
|
|
|
6644 |
boolean this_present_itemId = true;
|
|
|
6645 |
boolean that_present_itemId = true;
|
|
|
6646 |
if (this_present_itemId || that_present_itemId) {
|
|
|
6647 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
6648 |
return false;
|
|
|
6649 |
if (this.itemId != that.itemId)
|
|
|
6650 |
return false;
|
|
|
6651 |
}
|
|
|
6652 |
|
|
|
6653 |
return true;
|
|
|
6654 |
}
|
|
|
6655 |
|
|
|
6656 |
@Override
|
|
|
6657 |
public int hashCode() {
|
|
|
6658 |
return 0;
|
|
|
6659 |
}
|
|
|
6660 |
|
|
|
6661 |
public int compareTo(getItemNumbers_args other) {
|
|
|
6662 |
if (!getClass().equals(other.getClass())) {
|
|
|
6663 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6664 |
}
|
|
|
6665 |
|
|
|
6666 |
int lastComparison = 0;
|
|
|
6667 |
getItemNumbers_args typedOther = (getItemNumbers_args)other;
|
|
|
6668 |
|
|
|
6669 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
6670 |
if (lastComparison != 0) {
|
|
|
6671 |
return lastComparison;
|
|
|
6672 |
}
|
|
|
6673 |
if (isSetItemId()) {
|
|
|
6674 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
6675 |
if (lastComparison != 0) {
|
|
|
6676 |
return lastComparison;
|
|
|
6677 |
}
|
|
|
6678 |
}
|
|
|
6679 |
return 0;
|
|
|
6680 |
}
|
|
|
6681 |
|
|
|
6682 |
public _Fields fieldForId(int fieldId) {
|
|
|
6683 |
return _Fields.findByThriftId(fieldId);
|
|
|
6684 |
}
|
|
|
6685 |
|
|
|
6686 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6687 |
org.apache.thrift.protocol.TField field;
|
|
|
6688 |
iprot.readStructBegin();
|
|
|
6689 |
while (true)
|
|
|
6690 |
{
|
|
|
6691 |
field = iprot.readFieldBegin();
|
|
|
6692 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6693 |
break;
|
|
|
6694 |
}
|
|
|
6695 |
switch (field.id) {
|
|
|
6696 |
case 1: // ITEM_ID
|
|
|
6697 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6698 |
this.itemId = iprot.readI64();
|
|
|
6699 |
setItemIdIsSet(true);
|
|
|
6700 |
} else {
|
|
|
6701 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6702 |
}
|
|
|
6703 |
break;
|
|
|
6704 |
default:
|
|
|
6705 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6706 |
}
|
|
|
6707 |
iprot.readFieldEnd();
|
|
|
6708 |
}
|
|
|
6709 |
iprot.readStructEnd();
|
|
|
6710 |
validate();
|
|
|
6711 |
}
|
|
|
6712 |
|
|
|
6713 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6714 |
validate();
|
|
|
6715 |
|
|
|
6716 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6717 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
6718 |
oprot.writeI64(this.itemId);
|
|
|
6719 |
oprot.writeFieldEnd();
|
|
|
6720 |
oprot.writeFieldStop();
|
|
|
6721 |
oprot.writeStructEnd();
|
|
|
6722 |
}
|
|
|
6723 |
|
|
|
6724 |
@Override
|
|
|
6725 |
public String toString() {
|
|
|
6726 |
StringBuilder sb = new StringBuilder("getItemNumbers_args(");
|
|
|
6727 |
boolean first = true;
|
|
|
6728 |
|
|
|
6729 |
sb.append("itemId:");
|
|
|
6730 |
sb.append(this.itemId);
|
|
|
6731 |
first = false;
|
|
|
6732 |
sb.append(")");
|
|
|
6733 |
return sb.toString();
|
|
|
6734 |
}
|
|
|
6735 |
|
|
|
6736 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6737 |
// check for required fields
|
|
|
6738 |
}
|
|
|
6739 |
|
|
|
6740 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6741 |
try {
|
|
|
6742 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6743 |
} catch (org.apache.thrift.TException te) {
|
|
|
6744 |
throw new java.io.IOException(te);
|
|
|
6745 |
}
|
|
|
6746 |
}
|
|
|
6747 |
|
|
|
6748 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6749 |
try {
|
|
|
6750 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6751 |
__isset_bit_vector = new BitSet(1);
|
|
|
6752 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6753 |
} catch (org.apache.thrift.TException te) {
|
|
|
6754 |
throw new java.io.IOException(te);
|
|
|
6755 |
}
|
|
|
6756 |
}
|
|
|
6757 |
|
|
|
6758 |
}
|
|
|
6759 |
|
|
|
6760 |
public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6761 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
|
|
|
6762 |
|
|
|
6763 |
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);
|
|
|
6764 |
|
|
|
6765 |
private List<String> success; // required
|
|
|
6766 |
|
|
|
6767 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6768 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6769 |
SUCCESS((short)0, "success");
|
|
|
6770 |
|
|
|
6771 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6772 |
|
|
|
6773 |
static {
|
|
|
6774 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6775 |
byName.put(field.getFieldName(), field);
|
|
|
6776 |
}
|
|
|
6777 |
}
|
|
|
6778 |
|
|
|
6779 |
/**
|
|
|
6780 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6781 |
*/
|
|
|
6782 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6783 |
switch(fieldId) {
|
|
|
6784 |
case 0: // SUCCESS
|
|
|
6785 |
return SUCCESS;
|
|
|
6786 |
default:
|
|
|
6787 |
return null;
|
|
|
6788 |
}
|
|
|
6789 |
}
|
|
|
6790 |
|
|
|
6791 |
/**
|
|
|
6792 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6793 |
* if it is not found.
|
|
|
6794 |
*/
|
|
|
6795 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6796 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6797 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6798 |
return fields;
|
|
|
6799 |
}
|
|
|
6800 |
|
|
|
6801 |
/**
|
|
|
6802 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6803 |
*/
|
|
|
6804 |
public static _Fields findByName(String name) {
|
|
|
6805 |
return byName.get(name);
|
|
|
6806 |
}
|
|
|
6807 |
|
|
|
6808 |
private final short _thriftId;
|
|
|
6809 |
private final String _fieldName;
|
|
|
6810 |
|
|
|
6811 |
_Fields(short thriftId, String fieldName) {
|
|
|
6812 |
_thriftId = thriftId;
|
|
|
6813 |
_fieldName = fieldName;
|
|
|
6814 |
}
|
|
|
6815 |
|
|
|
6816 |
public short getThriftFieldId() {
|
|
|
6817 |
return _thriftId;
|
|
|
6818 |
}
|
|
|
6819 |
|
|
|
6820 |
public String getFieldName() {
|
|
|
6821 |
return _fieldName;
|
|
|
6822 |
}
|
|
|
6823 |
}
|
|
|
6824 |
|
|
|
6825 |
// isset id assignments
|
|
|
6826 |
|
|
|
6827 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6828 |
static {
|
|
|
6829 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6830 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6831 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
6832 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
6833 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6834 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
|
|
|
6835 |
}
|
|
|
6836 |
|
|
|
6837 |
public getItemNumbers_result() {
|
|
|
6838 |
}
|
|
|
6839 |
|
|
|
6840 |
public getItemNumbers_result(
|
|
|
6841 |
List<String> success)
|
|
|
6842 |
{
|
|
|
6843 |
this();
|
|
|
6844 |
this.success = success;
|
|
|
6845 |
}
|
|
|
6846 |
|
|
|
6847 |
/**
|
|
|
6848 |
* Performs a deep copy on <i>other</i>.
|
|
|
6849 |
*/
|
|
|
6850 |
public getItemNumbers_result(getItemNumbers_result other) {
|
|
|
6851 |
if (other.isSetSuccess()) {
|
|
|
6852 |
List<String> __this__success = new ArrayList<String>();
|
|
|
6853 |
for (String other_element : other.success) {
|
|
|
6854 |
__this__success.add(other_element);
|
|
|
6855 |
}
|
|
|
6856 |
this.success = __this__success;
|
|
|
6857 |
}
|
|
|
6858 |
}
|
|
|
6859 |
|
|
|
6860 |
public getItemNumbers_result deepCopy() {
|
|
|
6861 |
return new getItemNumbers_result(this);
|
|
|
6862 |
}
|
|
|
6863 |
|
|
|
6864 |
@Override
|
|
|
6865 |
public void clear() {
|
|
|
6866 |
this.success = null;
|
|
|
6867 |
}
|
|
|
6868 |
|
|
|
6869 |
public int getSuccessSize() {
|
|
|
6870 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
6871 |
}
|
|
|
6872 |
|
|
|
6873 |
public java.util.Iterator<String> getSuccessIterator() {
|
|
|
6874 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
6875 |
}
|
|
|
6876 |
|
|
|
6877 |
public void addToSuccess(String elem) {
|
|
|
6878 |
if (this.success == null) {
|
|
|
6879 |
this.success = new ArrayList<String>();
|
|
|
6880 |
}
|
|
|
6881 |
this.success.add(elem);
|
|
|
6882 |
}
|
|
|
6883 |
|
|
|
6884 |
public List<String> getSuccess() {
|
|
|
6885 |
return this.success;
|
|
|
6886 |
}
|
|
|
6887 |
|
|
|
6888 |
public void setSuccess(List<String> success) {
|
|
|
6889 |
this.success = success;
|
|
|
6890 |
}
|
|
|
6891 |
|
|
|
6892 |
public void unsetSuccess() {
|
|
|
6893 |
this.success = null;
|
|
|
6894 |
}
|
|
|
6895 |
|
|
|
6896 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
6897 |
public boolean isSetSuccess() {
|
|
|
6898 |
return this.success != null;
|
|
|
6899 |
}
|
|
|
6900 |
|
|
|
6901 |
public void setSuccessIsSet(boolean value) {
|
|
|
6902 |
if (!value) {
|
|
|
6903 |
this.success = null;
|
|
|
6904 |
}
|
|
|
6905 |
}
|
|
|
6906 |
|
|
|
6907 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6908 |
switch (field) {
|
|
|
6909 |
case SUCCESS:
|
|
|
6910 |
if (value == null) {
|
|
|
6911 |
unsetSuccess();
|
|
|
6912 |
} else {
|
|
|
6913 |
setSuccess((List<String>)value);
|
|
|
6914 |
}
|
|
|
6915 |
break;
|
|
|
6916 |
|
|
|
6917 |
}
|
|
|
6918 |
}
|
|
|
6919 |
|
|
|
6920 |
public Object getFieldValue(_Fields field) {
|
|
|
6921 |
switch (field) {
|
|
|
6922 |
case SUCCESS:
|
|
|
6923 |
return getSuccess();
|
|
|
6924 |
|
|
|
6925 |
}
|
|
|
6926 |
throw new IllegalStateException();
|
|
|
6927 |
}
|
|
|
6928 |
|
|
|
6929 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6930 |
public boolean isSet(_Fields field) {
|
|
|
6931 |
if (field == null) {
|
|
|
6932 |
throw new IllegalArgumentException();
|
|
|
6933 |
}
|
|
|
6934 |
|
|
|
6935 |
switch (field) {
|
|
|
6936 |
case SUCCESS:
|
|
|
6937 |
return isSetSuccess();
|
|
|
6938 |
}
|
|
|
6939 |
throw new IllegalStateException();
|
|
|
6940 |
}
|
|
|
6941 |
|
|
|
6942 |
@Override
|
|
|
6943 |
public boolean equals(Object that) {
|
|
|
6944 |
if (that == null)
|
|
|
6945 |
return false;
|
|
|
6946 |
if (that instanceof getItemNumbers_result)
|
|
|
6947 |
return this.equals((getItemNumbers_result)that);
|
|
|
6948 |
return false;
|
|
|
6949 |
}
|
|
|
6950 |
|
|
|
6951 |
public boolean equals(getItemNumbers_result that) {
|
|
|
6952 |
if (that == null)
|
|
|
6953 |
return false;
|
|
|
6954 |
|
|
|
6955 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6956 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6957 |
if (this_present_success || that_present_success) {
|
|
|
6958 |
if (!(this_present_success && that_present_success))
|
|
|
6959 |
return false;
|
|
|
6960 |
if (!this.success.equals(that.success))
|
|
|
6961 |
return false;
|
|
|
6962 |
}
|
|
|
6963 |
|
|
|
6964 |
return true;
|
|
|
6965 |
}
|
|
|
6966 |
|
|
|
6967 |
@Override
|
|
|
6968 |
public int hashCode() {
|
|
|
6969 |
return 0;
|
|
|
6970 |
}
|
|
|
6971 |
|
|
|
6972 |
public int compareTo(getItemNumbers_result other) {
|
|
|
6973 |
if (!getClass().equals(other.getClass())) {
|
|
|
6974 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6975 |
}
|
|
|
6976 |
|
|
|
6977 |
int lastComparison = 0;
|
|
|
6978 |
getItemNumbers_result typedOther = (getItemNumbers_result)other;
|
|
|
6979 |
|
|
|
6980 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
6981 |
if (lastComparison != 0) {
|
|
|
6982 |
return lastComparison;
|
|
|
6983 |
}
|
|
|
6984 |
if (isSetSuccess()) {
|
|
|
6985 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6986 |
if (lastComparison != 0) {
|
|
|
6987 |
return lastComparison;
|
|
|
6988 |
}
|
|
|
6989 |
}
|
|
|
6990 |
return 0;
|
|
|
6991 |
}
|
|
|
6992 |
|
|
|
6993 |
public _Fields fieldForId(int fieldId) {
|
|
|
6994 |
return _Fields.findByThriftId(fieldId);
|
|
|
6995 |
}
|
|
|
6996 |
|
|
|
6997 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6998 |
org.apache.thrift.protocol.TField field;
|
|
|
6999 |
iprot.readStructBegin();
|
|
|
7000 |
while (true)
|
|
|
7001 |
{
|
|
|
7002 |
field = iprot.readFieldBegin();
|
|
|
7003 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7004 |
break;
|
|
|
7005 |
}
|
|
|
7006 |
switch (field.id) {
|
|
|
7007 |
case 0: // SUCCESS
|
|
|
7008 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7009 |
{
|
| 5361 |
mandeep.dh |
7010 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
7011 |
this.success = new ArrayList<String>(_list0.size);
|
|
|
7012 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
| 4622 |
amit.gupta |
7013 |
{
|
| 5361 |
mandeep.dh |
7014 |
String _elem2; // required
|
|
|
7015 |
_elem2 = iprot.readString();
|
|
|
7016 |
this.success.add(_elem2);
|
| 4622 |
amit.gupta |
7017 |
}
|
|
|
7018 |
iprot.readListEnd();
|
|
|
7019 |
}
|
|
|
7020 |
} else {
|
|
|
7021 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7022 |
}
|
|
|
7023 |
break;
|
|
|
7024 |
default:
|
|
|
7025 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7026 |
}
|
|
|
7027 |
iprot.readFieldEnd();
|
|
|
7028 |
}
|
|
|
7029 |
iprot.readStructEnd();
|
|
|
7030 |
validate();
|
|
|
7031 |
}
|
|
|
7032 |
|
|
|
7033 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7034 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7035 |
|
|
|
7036 |
if (this.isSetSuccess()) {
|
|
|
7037 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7038 |
{
|
|
|
7039 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
| 5361 |
mandeep.dh |
7040 |
for (String _iter3 : this.success)
|
| 4622 |
amit.gupta |
7041 |
{
|
| 5361 |
mandeep.dh |
7042 |
oprot.writeString(_iter3);
|
| 4622 |
amit.gupta |
7043 |
}
|
|
|
7044 |
oprot.writeListEnd();
|
|
|
7045 |
}
|
|
|
7046 |
oprot.writeFieldEnd();
|
|
|
7047 |
}
|
|
|
7048 |
oprot.writeFieldStop();
|
|
|
7049 |
oprot.writeStructEnd();
|
|
|
7050 |
}
|
|
|
7051 |
|
|
|
7052 |
@Override
|
|
|
7053 |
public String toString() {
|
|
|
7054 |
StringBuilder sb = new StringBuilder("getItemNumbers_result(");
|
|
|
7055 |
boolean first = true;
|
|
|
7056 |
|
|
|
7057 |
sb.append("success:");
|
|
|
7058 |
if (this.success == null) {
|
|
|
7059 |
sb.append("null");
|
|
|
7060 |
} else {
|
|
|
7061 |
sb.append(this.success);
|
|
|
7062 |
}
|
|
|
7063 |
first = false;
|
|
|
7064 |
sb.append(")");
|
|
|
7065 |
return sb.toString();
|
|
|
7066 |
}
|
|
|
7067 |
|
|
|
7068 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7069 |
// check for required fields
|
|
|
7070 |
}
|
|
|
7071 |
|
|
|
7072 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7073 |
try {
|
|
|
7074 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7075 |
} catch (org.apache.thrift.TException te) {
|
|
|
7076 |
throw new java.io.IOException(te);
|
|
|
7077 |
}
|
|
|
7078 |
}
|
|
|
7079 |
|
|
|
7080 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7081 |
try {
|
|
|
7082 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7083 |
} catch (org.apache.thrift.TException te) {
|
|
|
7084 |
throw new java.io.IOException(te);
|
|
|
7085 |
}
|
|
|
7086 |
}
|
|
|
7087 |
|
|
|
7088 |
}
|
|
|
7089 |
|
| 5110 |
mandeep.dh |
7090 |
public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7091 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
|
|
|
7092 |
|
|
|
7093 |
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);
|
|
|
7094 |
|
|
|
7095 |
private String itemNumber; // required
|
|
|
7096 |
|
|
|
7097 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7098 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7099 |
ITEM_NUMBER((short)1, "itemNumber");
|
|
|
7100 |
|
|
|
7101 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7102 |
|
|
|
7103 |
static {
|
|
|
7104 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7105 |
byName.put(field.getFieldName(), field);
|
|
|
7106 |
}
|
|
|
7107 |
}
|
|
|
7108 |
|
|
|
7109 |
/**
|
|
|
7110 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7111 |
*/
|
|
|
7112 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7113 |
switch(fieldId) {
|
|
|
7114 |
case 1: // ITEM_NUMBER
|
|
|
7115 |
return ITEM_NUMBER;
|
|
|
7116 |
default:
|
|
|
7117 |
return null;
|
|
|
7118 |
}
|
|
|
7119 |
}
|
|
|
7120 |
|
|
|
7121 |
/**
|
|
|
7122 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7123 |
* if it is not found.
|
|
|
7124 |
*/
|
|
|
7125 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7126 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7127 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7128 |
return fields;
|
|
|
7129 |
}
|
|
|
7130 |
|
|
|
7131 |
/**
|
|
|
7132 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7133 |
*/
|
|
|
7134 |
public static _Fields findByName(String name) {
|
|
|
7135 |
return byName.get(name);
|
|
|
7136 |
}
|
|
|
7137 |
|
|
|
7138 |
private final short _thriftId;
|
|
|
7139 |
private final String _fieldName;
|
|
|
7140 |
|
|
|
7141 |
_Fields(short thriftId, String fieldName) {
|
|
|
7142 |
_thriftId = thriftId;
|
|
|
7143 |
_fieldName = fieldName;
|
|
|
7144 |
}
|
|
|
7145 |
|
|
|
7146 |
public short getThriftFieldId() {
|
|
|
7147 |
return _thriftId;
|
|
|
7148 |
}
|
|
|
7149 |
|
|
|
7150 |
public String getFieldName() {
|
|
|
7151 |
return _fieldName;
|
|
|
7152 |
}
|
|
|
7153 |
}
|
|
|
7154 |
|
|
|
7155 |
// isset id assignments
|
|
|
7156 |
|
|
|
7157 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7158 |
static {
|
|
|
7159 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7160 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
7162 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7163 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
|
|
|
7164 |
}
|
|
|
7165 |
|
|
|
7166 |
public getItemIds_args() {
|
|
|
7167 |
}
|
|
|
7168 |
|
|
|
7169 |
public getItemIds_args(
|
|
|
7170 |
String itemNumber)
|
|
|
7171 |
{
|
|
|
7172 |
this();
|
|
|
7173 |
this.itemNumber = itemNumber;
|
|
|
7174 |
}
|
|
|
7175 |
|
|
|
7176 |
/**
|
|
|
7177 |
* Performs a deep copy on <i>other</i>.
|
|
|
7178 |
*/
|
|
|
7179 |
public getItemIds_args(getItemIds_args other) {
|
|
|
7180 |
if (other.isSetItemNumber()) {
|
|
|
7181 |
this.itemNumber = other.itemNumber;
|
|
|
7182 |
}
|
|
|
7183 |
}
|
|
|
7184 |
|
|
|
7185 |
public getItemIds_args deepCopy() {
|
|
|
7186 |
return new getItemIds_args(this);
|
|
|
7187 |
}
|
|
|
7188 |
|
|
|
7189 |
@Override
|
|
|
7190 |
public void clear() {
|
|
|
7191 |
this.itemNumber = null;
|
|
|
7192 |
}
|
|
|
7193 |
|
|
|
7194 |
public String getItemNumber() {
|
|
|
7195 |
return this.itemNumber;
|
|
|
7196 |
}
|
|
|
7197 |
|
|
|
7198 |
public void setItemNumber(String itemNumber) {
|
|
|
7199 |
this.itemNumber = itemNumber;
|
|
|
7200 |
}
|
|
|
7201 |
|
|
|
7202 |
public void unsetItemNumber() {
|
|
|
7203 |
this.itemNumber = null;
|
|
|
7204 |
}
|
|
|
7205 |
|
|
|
7206 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
7207 |
public boolean isSetItemNumber() {
|
|
|
7208 |
return this.itemNumber != null;
|
|
|
7209 |
}
|
|
|
7210 |
|
|
|
7211 |
public void setItemNumberIsSet(boolean value) {
|
|
|
7212 |
if (!value) {
|
|
|
7213 |
this.itemNumber = null;
|
|
|
7214 |
}
|
|
|
7215 |
}
|
|
|
7216 |
|
|
|
7217 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7218 |
switch (field) {
|
|
|
7219 |
case ITEM_NUMBER:
|
|
|
7220 |
if (value == null) {
|
|
|
7221 |
unsetItemNumber();
|
|
|
7222 |
} else {
|
|
|
7223 |
setItemNumber((String)value);
|
|
|
7224 |
}
|
|
|
7225 |
break;
|
|
|
7226 |
|
|
|
7227 |
}
|
|
|
7228 |
}
|
|
|
7229 |
|
|
|
7230 |
public Object getFieldValue(_Fields field) {
|
|
|
7231 |
switch (field) {
|
|
|
7232 |
case ITEM_NUMBER:
|
|
|
7233 |
return getItemNumber();
|
|
|
7234 |
|
|
|
7235 |
}
|
|
|
7236 |
throw new IllegalStateException();
|
|
|
7237 |
}
|
|
|
7238 |
|
|
|
7239 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7240 |
public boolean isSet(_Fields field) {
|
|
|
7241 |
if (field == null) {
|
|
|
7242 |
throw new IllegalArgumentException();
|
|
|
7243 |
}
|
|
|
7244 |
|
|
|
7245 |
switch (field) {
|
|
|
7246 |
case ITEM_NUMBER:
|
|
|
7247 |
return isSetItemNumber();
|
|
|
7248 |
}
|
|
|
7249 |
throw new IllegalStateException();
|
|
|
7250 |
}
|
|
|
7251 |
|
|
|
7252 |
@Override
|
|
|
7253 |
public boolean equals(Object that) {
|
|
|
7254 |
if (that == null)
|
|
|
7255 |
return false;
|
|
|
7256 |
if (that instanceof getItemIds_args)
|
|
|
7257 |
return this.equals((getItemIds_args)that);
|
|
|
7258 |
return false;
|
|
|
7259 |
}
|
|
|
7260 |
|
|
|
7261 |
public boolean equals(getItemIds_args that) {
|
|
|
7262 |
if (that == null)
|
|
|
7263 |
return false;
|
|
|
7264 |
|
|
|
7265 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
7266 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
7267 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
7268 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
7269 |
return false;
|
|
|
7270 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
7271 |
return false;
|
|
|
7272 |
}
|
|
|
7273 |
|
|
|
7274 |
return true;
|
|
|
7275 |
}
|
|
|
7276 |
|
|
|
7277 |
@Override
|
|
|
7278 |
public int hashCode() {
|
|
|
7279 |
return 0;
|
|
|
7280 |
}
|
|
|
7281 |
|
|
|
7282 |
public int compareTo(getItemIds_args other) {
|
|
|
7283 |
if (!getClass().equals(other.getClass())) {
|
|
|
7284 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7285 |
}
|
|
|
7286 |
|
|
|
7287 |
int lastComparison = 0;
|
|
|
7288 |
getItemIds_args typedOther = (getItemIds_args)other;
|
|
|
7289 |
|
|
|
7290 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
7291 |
if (lastComparison != 0) {
|
|
|
7292 |
return lastComparison;
|
|
|
7293 |
}
|
|
|
7294 |
if (isSetItemNumber()) {
|
|
|
7295 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
7296 |
if (lastComparison != 0) {
|
|
|
7297 |
return lastComparison;
|
|
|
7298 |
}
|
|
|
7299 |
}
|
|
|
7300 |
return 0;
|
|
|
7301 |
}
|
|
|
7302 |
|
|
|
7303 |
public _Fields fieldForId(int fieldId) {
|
|
|
7304 |
return _Fields.findByThriftId(fieldId);
|
|
|
7305 |
}
|
|
|
7306 |
|
|
|
7307 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7308 |
org.apache.thrift.protocol.TField field;
|
|
|
7309 |
iprot.readStructBegin();
|
|
|
7310 |
while (true)
|
|
|
7311 |
{
|
|
|
7312 |
field = iprot.readFieldBegin();
|
|
|
7313 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7314 |
break;
|
|
|
7315 |
}
|
|
|
7316 |
switch (field.id) {
|
|
|
7317 |
case 1: // ITEM_NUMBER
|
|
|
7318 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7319 |
this.itemNumber = iprot.readString();
|
|
|
7320 |
} else {
|
|
|
7321 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7322 |
}
|
|
|
7323 |
break;
|
|
|
7324 |
default:
|
|
|
7325 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7326 |
}
|
|
|
7327 |
iprot.readFieldEnd();
|
|
|
7328 |
}
|
|
|
7329 |
iprot.readStructEnd();
|
|
|
7330 |
validate();
|
|
|
7331 |
}
|
|
|
7332 |
|
|
|
7333 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7334 |
validate();
|
|
|
7335 |
|
|
|
7336 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7337 |
if (this.itemNumber != null) {
|
|
|
7338 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
7339 |
oprot.writeString(this.itemNumber);
|
|
|
7340 |
oprot.writeFieldEnd();
|
|
|
7341 |
}
|
|
|
7342 |
oprot.writeFieldStop();
|
|
|
7343 |
oprot.writeStructEnd();
|
|
|
7344 |
}
|
|
|
7345 |
|
|
|
7346 |
@Override
|
|
|
7347 |
public String toString() {
|
|
|
7348 |
StringBuilder sb = new StringBuilder("getItemIds_args(");
|
|
|
7349 |
boolean first = true;
|
|
|
7350 |
|
|
|
7351 |
sb.append("itemNumber:");
|
|
|
7352 |
if (this.itemNumber == null) {
|
|
|
7353 |
sb.append("null");
|
|
|
7354 |
} else {
|
|
|
7355 |
sb.append(this.itemNumber);
|
|
|
7356 |
}
|
|
|
7357 |
first = false;
|
|
|
7358 |
sb.append(")");
|
|
|
7359 |
return sb.toString();
|
|
|
7360 |
}
|
|
|
7361 |
|
|
|
7362 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7363 |
// check for required fields
|
|
|
7364 |
}
|
|
|
7365 |
|
|
|
7366 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7367 |
try {
|
|
|
7368 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7369 |
} catch (org.apache.thrift.TException te) {
|
|
|
7370 |
throw new java.io.IOException(te);
|
|
|
7371 |
}
|
|
|
7372 |
}
|
|
|
7373 |
|
|
|
7374 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7375 |
try {
|
|
|
7376 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7377 |
} catch (org.apache.thrift.TException te) {
|
|
|
7378 |
throw new java.io.IOException(te);
|
|
|
7379 |
}
|
|
|
7380 |
}
|
|
|
7381 |
|
|
|
7382 |
}
|
|
|
7383 |
|
|
|
7384 |
public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7385 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
|
|
|
7386 |
|
|
|
7387 |
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);
|
|
|
7388 |
|
|
|
7389 |
private List<Long> success; // required
|
|
|
7390 |
|
|
|
7391 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7392 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7393 |
SUCCESS((short)0, "success");
|
|
|
7394 |
|
|
|
7395 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7396 |
|
|
|
7397 |
static {
|
|
|
7398 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7399 |
byName.put(field.getFieldName(), field);
|
|
|
7400 |
}
|
|
|
7401 |
}
|
|
|
7402 |
|
|
|
7403 |
/**
|
|
|
7404 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7405 |
*/
|
|
|
7406 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7407 |
switch(fieldId) {
|
|
|
7408 |
case 0: // SUCCESS
|
|
|
7409 |
return SUCCESS;
|
|
|
7410 |
default:
|
|
|
7411 |
return null;
|
|
|
7412 |
}
|
|
|
7413 |
}
|
|
|
7414 |
|
|
|
7415 |
/**
|
|
|
7416 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7417 |
* if it is not found.
|
|
|
7418 |
*/
|
|
|
7419 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7420 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7421 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7422 |
return fields;
|
|
|
7423 |
}
|
|
|
7424 |
|
|
|
7425 |
/**
|
|
|
7426 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7427 |
*/
|
|
|
7428 |
public static _Fields findByName(String name) {
|
|
|
7429 |
return byName.get(name);
|
|
|
7430 |
}
|
|
|
7431 |
|
|
|
7432 |
private final short _thriftId;
|
|
|
7433 |
private final String _fieldName;
|
|
|
7434 |
|
|
|
7435 |
_Fields(short thriftId, String fieldName) {
|
|
|
7436 |
_thriftId = thriftId;
|
|
|
7437 |
_fieldName = fieldName;
|
|
|
7438 |
}
|
|
|
7439 |
|
|
|
7440 |
public short getThriftFieldId() {
|
|
|
7441 |
return _thriftId;
|
|
|
7442 |
}
|
|
|
7443 |
|
|
|
7444 |
public String getFieldName() {
|
|
|
7445 |
return _fieldName;
|
|
|
7446 |
}
|
|
|
7447 |
}
|
|
|
7448 |
|
|
|
7449 |
// isset id assignments
|
|
|
7450 |
|
|
|
7451 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7452 |
static {
|
|
|
7453 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7454 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7455 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
7456 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
7457 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7458 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
|
|
|
7459 |
}
|
|
|
7460 |
|
|
|
7461 |
public getItemIds_result() {
|
|
|
7462 |
}
|
|
|
7463 |
|
|
|
7464 |
public getItemIds_result(
|
|
|
7465 |
List<Long> success)
|
|
|
7466 |
{
|
|
|
7467 |
this();
|
|
|
7468 |
this.success = success;
|
|
|
7469 |
}
|
|
|
7470 |
|
|
|
7471 |
/**
|
|
|
7472 |
* Performs a deep copy on <i>other</i>.
|
|
|
7473 |
*/
|
|
|
7474 |
public getItemIds_result(getItemIds_result other) {
|
|
|
7475 |
if (other.isSetSuccess()) {
|
|
|
7476 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
7477 |
for (Long other_element : other.success) {
|
|
|
7478 |
__this__success.add(other_element);
|
|
|
7479 |
}
|
|
|
7480 |
this.success = __this__success;
|
|
|
7481 |
}
|
|
|
7482 |
}
|
|
|
7483 |
|
|
|
7484 |
public getItemIds_result deepCopy() {
|
|
|
7485 |
return new getItemIds_result(this);
|
|
|
7486 |
}
|
|
|
7487 |
|
|
|
7488 |
@Override
|
|
|
7489 |
public void clear() {
|
|
|
7490 |
this.success = null;
|
|
|
7491 |
}
|
|
|
7492 |
|
|
|
7493 |
public int getSuccessSize() {
|
|
|
7494 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
7495 |
}
|
|
|
7496 |
|
|
|
7497 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
7498 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
7499 |
}
|
|
|
7500 |
|
|
|
7501 |
public void addToSuccess(long elem) {
|
|
|
7502 |
if (this.success == null) {
|
|
|
7503 |
this.success = new ArrayList<Long>();
|
|
|
7504 |
}
|
|
|
7505 |
this.success.add(elem);
|
|
|
7506 |
}
|
|
|
7507 |
|
|
|
7508 |
public List<Long> getSuccess() {
|
|
|
7509 |
return this.success;
|
|
|
7510 |
}
|
|
|
7511 |
|
|
|
7512 |
public void setSuccess(List<Long> success) {
|
|
|
7513 |
this.success = success;
|
|
|
7514 |
}
|
|
|
7515 |
|
|
|
7516 |
public void unsetSuccess() {
|
|
|
7517 |
this.success = null;
|
|
|
7518 |
}
|
|
|
7519 |
|
|
|
7520 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
7521 |
public boolean isSetSuccess() {
|
|
|
7522 |
return this.success != null;
|
|
|
7523 |
}
|
|
|
7524 |
|
|
|
7525 |
public void setSuccessIsSet(boolean value) {
|
|
|
7526 |
if (!value) {
|
|
|
7527 |
this.success = null;
|
|
|
7528 |
}
|
|
|
7529 |
}
|
|
|
7530 |
|
|
|
7531 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7532 |
switch (field) {
|
|
|
7533 |
case SUCCESS:
|
|
|
7534 |
if (value == null) {
|
|
|
7535 |
unsetSuccess();
|
|
|
7536 |
} else {
|
|
|
7537 |
setSuccess((List<Long>)value);
|
|
|
7538 |
}
|
|
|
7539 |
break;
|
|
|
7540 |
|
|
|
7541 |
}
|
|
|
7542 |
}
|
|
|
7543 |
|
|
|
7544 |
public Object getFieldValue(_Fields field) {
|
|
|
7545 |
switch (field) {
|
|
|
7546 |
case SUCCESS:
|
|
|
7547 |
return getSuccess();
|
|
|
7548 |
|
|
|
7549 |
}
|
|
|
7550 |
throw new IllegalStateException();
|
|
|
7551 |
}
|
|
|
7552 |
|
|
|
7553 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7554 |
public boolean isSet(_Fields field) {
|
|
|
7555 |
if (field == null) {
|
|
|
7556 |
throw new IllegalArgumentException();
|
|
|
7557 |
}
|
|
|
7558 |
|
|
|
7559 |
switch (field) {
|
|
|
7560 |
case SUCCESS:
|
|
|
7561 |
return isSetSuccess();
|
|
|
7562 |
}
|
|
|
7563 |
throw new IllegalStateException();
|
|
|
7564 |
}
|
|
|
7565 |
|
|
|
7566 |
@Override
|
|
|
7567 |
public boolean equals(Object that) {
|
|
|
7568 |
if (that == null)
|
|
|
7569 |
return false;
|
|
|
7570 |
if (that instanceof getItemIds_result)
|
|
|
7571 |
return this.equals((getItemIds_result)that);
|
|
|
7572 |
return false;
|
|
|
7573 |
}
|
|
|
7574 |
|
|
|
7575 |
public boolean equals(getItemIds_result that) {
|
|
|
7576 |
if (that == null)
|
|
|
7577 |
return false;
|
|
|
7578 |
|
|
|
7579 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
7580 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
7581 |
if (this_present_success || that_present_success) {
|
|
|
7582 |
if (!(this_present_success && that_present_success))
|
|
|
7583 |
return false;
|
|
|
7584 |
if (!this.success.equals(that.success))
|
|
|
7585 |
return false;
|
|
|
7586 |
}
|
|
|
7587 |
|
|
|
7588 |
return true;
|
|
|
7589 |
}
|
|
|
7590 |
|
|
|
7591 |
@Override
|
|
|
7592 |
public int hashCode() {
|
|
|
7593 |
return 0;
|
|
|
7594 |
}
|
|
|
7595 |
|
|
|
7596 |
public int compareTo(getItemIds_result other) {
|
|
|
7597 |
if (!getClass().equals(other.getClass())) {
|
|
|
7598 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7599 |
}
|
|
|
7600 |
|
|
|
7601 |
int lastComparison = 0;
|
|
|
7602 |
getItemIds_result typedOther = (getItemIds_result)other;
|
|
|
7603 |
|
|
|
7604 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
7605 |
if (lastComparison != 0) {
|
|
|
7606 |
return lastComparison;
|
|
|
7607 |
}
|
|
|
7608 |
if (isSetSuccess()) {
|
|
|
7609 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7610 |
if (lastComparison != 0) {
|
|
|
7611 |
return lastComparison;
|
|
|
7612 |
}
|
|
|
7613 |
}
|
|
|
7614 |
return 0;
|
|
|
7615 |
}
|
|
|
7616 |
|
|
|
7617 |
public _Fields fieldForId(int fieldId) {
|
|
|
7618 |
return _Fields.findByThriftId(fieldId);
|
|
|
7619 |
}
|
|
|
7620 |
|
|
|
7621 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7622 |
org.apache.thrift.protocol.TField field;
|
|
|
7623 |
iprot.readStructBegin();
|
|
|
7624 |
while (true)
|
|
|
7625 |
{
|
|
|
7626 |
field = iprot.readFieldBegin();
|
|
|
7627 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7628 |
break;
|
|
|
7629 |
}
|
|
|
7630 |
switch (field.id) {
|
|
|
7631 |
case 0: // SUCCESS
|
|
|
7632 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7633 |
{
|
| 5361 |
mandeep.dh |
7634 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
7635 |
this.success = new ArrayList<Long>(_list4.size);
|
|
|
7636 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 5110 |
mandeep.dh |
7637 |
{
|
| 5361 |
mandeep.dh |
7638 |
long _elem6; // required
|
|
|
7639 |
_elem6 = iprot.readI64();
|
|
|
7640 |
this.success.add(_elem6);
|
| 5110 |
mandeep.dh |
7641 |
}
|
|
|
7642 |
iprot.readListEnd();
|
|
|
7643 |
}
|
|
|
7644 |
} else {
|
|
|
7645 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7646 |
}
|
|
|
7647 |
break;
|
|
|
7648 |
default:
|
|
|
7649 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7650 |
}
|
|
|
7651 |
iprot.readFieldEnd();
|
|
|
7652 |
}
|
|
|
7653 |
iprot.readStructEnd();
|
|
|
7654 |
validate();
|
|
|
7655 |
}
|
|
|
7656 |
|
|
|
7657 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7658 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7659 |
|
|
|
7660 |
if (this.isSetSuccess()) {
|
|
|
7661 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7662 |
{
|
|
|
7663 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 5361 |
mandeep.dh |
7664 |
for (long _iter7 : this.success)
|
| 5110 |
mandeep.dh |
7665 |
{
|
| 5361 |
mandeep.dh |
7666 |
oprot.writeI64(_iter7);
|
| 5110 |
mandeep.dh |
7667 |
}
|
|
|
7668 |
oprot.writeListEnd();
|
|
|
7669 |
}
|
|
|
7670 |
oprot.writeFieldEnd();
|
|
|
7671 |
}
|
|
|
7672 |
oprot.writeFieldStop();
|
|
|
7673 |
oprot.writeStructEnd();
|
|
|
7674 |
}
|
|
|
7675 |
|
|
|
7676 |
@Override
|
|
|
7677 |
public String toString() {
|
|
|
7678 |
StringBuilder sb = new StringBuilder("getItemIds_result(");
|
|
|
7679 |
boolean first = true;
|
|
|
7680 |
|
|
|
7681 |
sb.append("success:");
|
|
|
7682 |
if (this.success == null) {
|
|
|
7683 |
sb.append("null");
|
|
|
7684 |
} else {
|
|
|
7685 |
sb.append(this.success);
|
|
|
7686 |
}
|
|
|
7687 |
first = false;
|
|
|
7688 |
sb.append(")");
|
|
|
7689 |
return sb.toString();
|
|
|
7690 |
}
|
|
|
7691 |
|
|
|
7692 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7693 |
// check for required fields
|
|
|
7694 |
}
|
|
|
7695 |
|
|
|
7696 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7697 |
try {
|
|
|
7698 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7699 |
} catch (org.apache.thrift.TException te) {
|
|
|
7700 |
throw new java.io.IOException(te);
|
|
|
7701 |
}
|
|
|
7702 |
}
|
|
|
7703 |
|
|
|
7704 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7705 |
try {
|
|
|
7706 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7707 |
} catch (org.apache.thrift.TException te) {
|
|
|
7708 |
throw new java.io.IOException(te);
|
|
|
7709 |
}
|
|
|
7710 |
}
|
|
|
7711 |
|
|
|
7712 |
}
|
|
|
7713 |
|
| 5185 |
mandeep.dh |
7714 |
public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7715 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
|
|
|
7716 |
|
|
|
7717 |
private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)1);
|
|
|
7718 |
|
|
|
7719 |
private ScanType lastScanType; // required
|
|
|
7720 |
|
|
|
7721 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7722 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7723 |
/**
|
|
|
7724 |
*
|
|
|
7725 |
* @see ScanType
|
|
|
7726 |
*/
|
|
|
7727 |
LAST_SCAN_TYPE((short)1, "lastScanType");
|
|
|
7728 |
|
|
|
7729 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7730 |
|
|
|
7731 |
static {
|
|
|
7732 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7733 |
byName.put(field.getFieldName(), field);
|
|
|
7734 |
}
|
|
|
7735 |
}
|
|
|
7736 |
|
|
|
7737 |
/**
|
|
|
7738 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7739 |
*/
|
|
|
7740 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7741 |
switch(fieldId) {
|
|
|
7742 |
case 1: // LAST_SCAN_TYPE
|
|
|
7743 |
return LAST_SCAN_TYPE;
|
|
|
7744 |
default:
|
|
|
7745 |
return null;
|
|
|
7746 |
}
|
|
|
7747 |
}
|
|
|
7748 |
|
|
|
7749 |
/**
|
|
|
7750 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7751 |
* if it is not found.
|
|
|
7752 |
*/
|
|
|
7753 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7754 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7755 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7756 |
return fields;
|
|
|
7757 |
}
|
|
|
7758 |
|
|
|
7759 |
/**
|
|
|
7760 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7761 |
*/
|
|
|
7762 |
public static _Fields findByName(String name) {
|
|
|
7763 |
return byName.get(name);
|
|
|
7764 |
}
|
|
|
7765 |
|
|
|
7766 |
private final short _thriftId;
|
|
|
7767 |
private final String _fieldName;
|
|
|
7768 |
|
|
|
7769 |
_Fields(short thriftId, String fieldName) {
|
|
|
7770 |
_thriftId = thriftId;
|
|
|
7771 |
_fieldName = fieldName;
|
|
|
7772 |
}
|
|
|
7773 |
|
|
|
7774 |
public short getThriftFieldId() {
|
|
|
7775 |
return _thriftId;
|
|
|
7776 |
}
|
|
|
7777 |
|
|
|
7778 |
public String getFieldName() {
|
|
|
7779 |
return _fieldName;
|
|
|
7780 |
}
|
|
|
7781 |
}
|
|
|
7782 |
|
|
|
7783 |
// isset id assignments
|
|
|
7784 |
|
|
|
7785 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7786 |
static {
|
|
|
7787 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7788 |
tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7789 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
7790 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7791 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
|
|
|
7792 |
}
|
|
|
7793 |
|
|
|
7794 |
public getInventoryItemsFromLastScanType_args() {
|
|
|
7795 |
}
|
|
|
7796 |
|
|
|
7797 |
public getInventoryItemsFromLastScanType_args(
|
|
|
7798 |
ScanType lastScanType)
|
|
|
7799 |
{
|
|
|
7800 |
this();
|
|
|
7801 |
this.lastScanType = lastScanType;
|
|
|
7802 |
}
|
|
|
7803 |
|
|
|
7804 |
/**
|
|
|
7805 |
* Performs a deep copy on <i>other</i>.
|
|
|
7806 |
*/
|
|
|
7807 |
public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
|
|
|
7808 |
if (other.isSetLastScanType()) {
|
|
|
7809 |
this.lastScanType = other.lastScanType;
|
|
|
7810 |
}
|
|
|
7811 |
}
|
|
|
7812 |
|
|
|
7813 |
public getInventoryItemsFromLastScanType_args deepCopy() {
|
|
|
7814 |
return new getInventoryItemsFromLastScanType_args(this);
|
|
|
7815 |
}
|
|
|
7816 |
|
|
|
7817 |
@Override
|
|
|
7818 |
public void clear() {
|
|
|
7819 |
this.lastScanType = null;
|
|
|
7820 |
}
|
|
|
7821 |
|
|
|
7822 |
/**
|
|
|
7823 |
*
|
|
|
7824 |
* @see ScanType
|
|
|
7825 |
*/
|
|
|
7826 |
public ScanType getLastScanType() {
|
|
|
7827 |
return this.lastScanType;
|
|
|
7828 |
}
|
|
|
7829 |
|
|
|
7830 |
/**
|
|
|
7831 |
*
|
|
|
7832 |
* @see ScanType
|
|
|
7833 |
*/
|
|
|
7834 |
public void setLastScanType(ScanType lastScanType) {
|
|
|
7835 |
this.lastScanType = lastScanType;
|
|
|
7836 |
}
|
|
|
7837 |
|
|
|
7838 |
public void unsetLastScanType() {
|
|
|
7839 |
this.lastScanType = null;
|
|
|
7840 |
}
|
|
|
7841 |
|
|
|
7842 |
/** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
|
|
|
7843 |
public boolean isSetLastScanType() {
|
|
|
7844 |
return this.lastScanType != null;
|
|
|
7845 |
}
|
|
|
7846 |
|
|
|
7847 |
public void setLastScanTypeIsSet(boolean value) {
|
|
|
7848 |
if (!value) {
|
|
|
7849 |
this.lastScanType = null;
|
|
|
7850 |
}
|
|
|
7851 |
}
|
|
|
7852 |
|
|
|
7853 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7854 |
switch (field) {
|
|
|
7855 |
case LAST_SCAN_TYPE:
|
|
|
7856 |
if (value == null) {
|
|
|
7857 |
unsetLastScanType();
|
|
|
7858 |
} else {
|
|
|
7859 |
setLastScanType((ScanType)value);
|
|
|
7860 |
}
|
|
|
7861 |
break;
|
|
|
7862 |
|
|
|
7863 |
}
|
|
|
7864 |
}
|
|
|
7865 |
|
|
|
7866 |
public Object getFieldValue(_Fields field) {
|
|
|
7867 |
switch (field) {
|
|
|
7868 |
case LAST_SCAN_TYPE:
|
|
|
7869 |
return getLastScanType();
|
|
|
7870 |
|
|
|
7871 |
}
|
|
|
7872 |
throw new IllegalStateException();
|
|
|
7873 |
}
|
|
|
7874 |
|
|
|
7875 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7876 |
public boolean isSet(_Fields field) {
|
|
|
7877 |
if (field == null) {
|
|
|
7878 |
throw new IllegalArgumentException();
|
|
|
7879 |
}
|
|
|
7880 |
|
|
|
7881 |
switch (field) {
|
|
|
7882 |
case LAST_SCAN_TYPE:
|
|
|
7883 |
return isSetLastScanType();
|
|
|
7884 |
}
|
|
|
7885 |
throw new IllegalStateException();
|
|
|
7886 |
}
|
|
|
7887 |
|
|
|
7888 |
@Override
|
|
|
7889 |
public boolean equals(Object that) {
|
|
|
7890 |
if (that == null)
|
|
|
7891 |
return false;
|
|
|
7892 |
if (that instanceof getInventoryItemsFromLastScanType_args)
|
|
|
7893 |
return this.equals((getInventoryItemsFromLastScanType_args)that);
|
|
|
7894 |
return false;
|
|
|
7895 |
}
|
|
|
7896 |
|
|
|
7897 |
public boolean equals(getInventoryItemsFromLastScanType_args that) {
|
|
|
7898 |
if (that == null)
|
|
|
7899 |
return false;
|
|
|
7900 |
|
|
|
7901 |
boolean this_present_lastScanType = true && this.isSetLastScanType();
|
|
|
7902 |
boolean that_present_lastScanType = true && that.isSetLastScanType();
|
|
|
7903 |
if (this_present_lastScanType || that_present_lastScanType) {
|
|
|
7904 |
if (!(this_present_lastScanType && that_present_lastScanType))
|
|
|
7905 |
return false;
|
|
|
7906 |
if (!this.lastScanType.equals(that.lastScanType))
|
|
|
7907 |
return false;
|
|
|
7908 |
}
|
|
|
7909 |
|
|
|
7910 |
return true;
|
|
|
7911 |
}
|
|
|
7912 |
|
|
|
7913 |
@Override
|
|
|
7914 |
public int hashCode() {
|
|
|
7915 |
return 0;
|
|
|
7916 |
}
|
|
|
7917 |
|
|
|
7918 |
public int compareTo(getInventoryItemsFromLastScanType_args other) {
|
|
|
7919 |
if (!getClass().equals(other.getClass())) {
|
|
|
7920 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7921 |
}
|
|
|
7922 |
|
|
|
7923 |
int lastComparison = 0;
|
|
|
7924 |
getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
|
|
|
7925 |
|
|
|
7926 |
lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
|
|
|
7927 |
if (lastComparison != 0) {
|
|
|
7928 |
return lastComparison;
|
|
|
7929 |
}
|
|
|
7930 |
if (isSetLastScanType()) {
|
|
|
7931 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
|
|
|
7932 |
if (lastComparison != 0) {
|
|
|
7933 |
return lastComparison;
|
|
|
7934 |
}
|
|
|
7935 |
}
|
|
|
7936 |
return 0;
|
|
|
7937 |
}
|
|
|
7938 |
|
|
|
7939 |
public _Fields fieldForId(int fieldId) {
|
|
|
7940 |
return _Fields.findByThriftId(fieldId);
|
|
|
7941 |
}
|
|
|
7942 |
|
|
|
7943 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7944 |
org.apache.thrift.protocol.TField field;
|
|
|
7945 |
iprot.readStructBegin();
|
|
|
7946 |
while (true)
|
|
|
7947 |
{
|
|
|
7948 |
field = iprot.readFieldBegin();
|
|
|
7949 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7950 |
break;
|
|
|
7951 |
}
|
|
|
7952 |
switch (field.id) {
|
|
|
7953 |
case 1: // LAST_SCAN_TYPE
|
|
|
7954 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
7955 |
this.lastScanType = ScanType.findByValue(iprot.readI32());
|
|
|
7956 |
} else {
|
|
|
7957 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7958 |
}
|
|
|
7959 |
break;
|
|
|
7960 |
default:
|
|
|
7961 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7962 |
}
|
|
|
7963 |
iprot.readFieldEnd();
|
|
|
7964 |
}
|
|
|
7965 |
iprot.readStructEnd();
|
|
|
7966 |
validate();
|
|
|
7967 |
}
|
|
|
7968 |
|
|
|
7969 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7970 |
validate();
|
|
|
7971 |
|
|
|
7972 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7973 |
if (this.lastScanType != null) {
|
|
|
7974 |
oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
|
|
|
7975 |
oprot.writeI32(this.lastScanType.getValue());
|
|
|
7976 |
oprot.writeFieldEnd();
|
|
|
7977 |
}
|
|
|
7978 |
oprot.writeFieldStop();
|
|
|
7979 |
oprot.writeStructEnd();
|
|
|
7980 |
}
|
|
|
7981 |
|
|
|
7982 |
@Override
|
|
|
7983 |
public String toString() {
|
|
|
7984 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
|
|
|
7985 |
boolean first = true;
|
|
|
7986 |
|
|
|
7987 |
sb.append("lastScanType:");
|
|
|
7988 |
if (this.lastScanType == null) {
|
|
|
7989 |
sb.append("null");
|
|
|
7990 |
} else {
|
|
|
7991 |
sb.append(this.lastScanType);
|
|
|
7992 |
}
|
|
|
7993 |
first = false;
|
|
|
7994 |
sb.append(")");
|
|
|
7995 |
return sb.toString();
|
|
|
7996 |
}
|
|
|
7997 |
|
|
|
7998 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7999 |
// check for required fields
|
|
|
8000 |
}
|
|
|
8001 |
|
|
|
8002 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8003 |
try {
|
|
|
8004 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8005 |
} catch (org.apache.thrift.TException te) {
|
|
|
8006 |
throw new java.io.IOException(te);
|
|
|
8007 |
}
|
|
|
8008 |
}
|
|
|
8009 |
|
|
|
8010 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8011 |
try {
|
|
|
8012 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8013 |
} catch (org.apache.thrift.TException te) {
|
|
|
8014 |
throw new java.io.IOException(te);
|
|
|
8015 |
}
|
|
|
8016 |
}
|
|
|
8017 |
|
|
|
8018 |
}
|
|
|
8019 |
|
|
|
8020 |
public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8021 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
|
|
|
8022 |
|
|
|
8023 |
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);
|
|
|
8024 |
private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
8025 |
|
|
|
8026 |
private List<InventoryItem> success; // required
|
|
|
8027 |
private WarehouseServiceException wex; // required
|
|
|
8028 |
|
|
|
8029 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8030 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8031 |
SUCCESS((short)0, "success"),
|
|
|
8032 |
WEX((short)1, "wex");
|
|
|
8033 |
|
|
|
8034 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8035 |
|
|
|
8036 |
static {
|
|
|
8037 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8038 |
byName.put(field.getFieldName(), field);
|
|
|
8039 |
}
|
|
|
8040 |
}
|
|
|
8041 |
|
|
|
8042 |
/**
|
|
|
8043 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8044 |
*/
|
|
|
8045 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8046 |
switch(fieldId) {
|
|
|
8047 |
case 0: // SUCCESS
|
|
|
8048 |
return SUCCESS;
|
|
|
8049 |
case 1: // WEX
|
|
|
8050 |
return WEX;
|
|
|
8051 |
default:
|
|
|
8052 |
return null;
|
|
|
8053 |
}
|
|
|
8054 |
}
|
|
|
8055 |
|
|
|
8056 |
/**
|
|
|
8057 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8058 |
* if it is not found.
|
|
|
8059 |
*/
|
|
|
8060 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8061 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8062 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8063 |
return fields;
|
|
|
8064 |
}
|
|
|
8065 |
|
|
|
8066 |
/**
|
|
|
8067 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8068 |
*/
|
|
|
8069 |
public static _Fields findByName(String name) {
|
|
|
8070 |
return byName.get(name);
|
|
|
8071 |
}
|
|
|
8072 |
|
|
|
8073 |
private final short _thriftId;
|
|
|
8074 |
private final String _fieldName;
|
|
|
8075 |
|
|
|
8076 |
_Fields(short thriftId, String fieldName) {
|
|
|
8077 |
_thriftId = thriftId;
|
|
|
8078 |
_fieldName = fieldName;
|
|
|
8079 |
}
|
|
|
8080 |
|
|
|
8081 |
public short getThriftFieldId() {
|
|
|
8082 |
return _thriftId;
|
|
|
8083 |
}
|
|
|
8084 |
|
|
|
8085 |
public String getFieldName() {
|
|
|
8086 |
return _fieldName;
|
|
|
8087 |
}
|
|
|
8088 |
}
|
|
|
8089 |
|
|
|
8090 |
// isset id assignments
|
|
|
8091 |
|
|
|
8092 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8093 |
static {
|
|
|
8094 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8095 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8096 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8097 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
8098 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8099 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8100 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8101 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
|
|
|
8102 |
}
|
|
|
8103 |
|
|
|
8104 |
public getInventoryItemsFromLastScanType_result() {
|
|
|
8105 |
}
|
|
|
8106 |
|
|
|
8107 |
public getInventoryItemsFromLastScanType_result(
|
|
|
8108 |
List<InventoryItem> success,
|
|
|
8109 |
WarehouseServiceException wex)
|
|
|
8110 |
{
|
|
|
8111 |
this();
|
|
|
8112 |
this.success = success;
|
|
|
8113 |
this.wex = wex;
|
|
|
8114 |
}
|
|
|
8115 |
|
|
|
8116 |
/**
|
|
|
8117 |
* Performs a deep copy on <i>other</i>.
|
|
|
8118 |
*/
|
|
|
8119 |
public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
|
|
|
8120 |
if (other.isSetSuccess()) {
|
|
|
8121 |
List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
|
|
|
8122 |
for (InventoryItem other_element : other.success) {
|
|
|
8123 |
__this__success.add(new InventoryItem(other_element));
|
|
|
8124 |
}
|
|
|
8125 |
this.success = __this__success;
|
|
|
8126 |
}
|
|
|
8127 |
if (other.isSetWex()) {
|
|
|
8128 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
8129 |
}
|
|
|
8130 |
}
|
|
|
8131 |
|
|
|
8132 |
public getInventoryItemsFromLastScanType_result deepCopy() {
|
|
|
8133 |
return new getInventoryItemsFromLastScanType_result(this);
|
|
|
8134 |
}
|
|
|
8135 |
|
|
|
8136 |
@Override
|
|
|
8137 |
public void clear() {
|
|
|
8138 |
this.success = null;
|
|
|
8139 |
this.wex = null;
|
|
|
8140 |
}
|
|
|
8141 |
|
|
|
8142 |
public int getSuccessSize() {
|
|
|
8143 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8144 |
}
|
|
|
8145 |
|
|
|
8146 |
public java.util.Iterator<InventoryItem> getSuccessIterator() {
|
|
|
8147 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8148 |
}
|
|
|
8149 |
|
|
|
8150 |
public void addToSuccess(InventoryItem elem) {
|
|
|
8151 |
if (this.success == null) {
|
|
|
8152 |
this.success = new ArrayList<InventoryItem>();
|
|
|
8153 |
}
|
|
|
8154 |
this.success.add(elem);
|
|
|
8155 |
}
|
|
|
8156 |
|
|
|
8157 |
public List<InventoryItem> getSuccess() {
|
|
|
8158 |
return this.success;
|
|
|
8159 |
}
|
|
|
8160 |
|
|
|
8161 |
public void setSuccess(List<InventoryItem> success) {
|
|
|
8162 |
this.success = success;
|
|
|
8163 |
}
|
|
|
8164 |
|
|
|
8165 |
public void unsetSuccess() {
|
|
|
8166 |
this.success = null;
|
|
|
8167 |
}
|
|
|
8168 |
|
|
|
8169 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8170 |
public boolean isSetSuccess() {
|
|
|
8171 |
return this.success != null;
|
|
|
8172 |
}
|
|
|
8173 |
|
|
|
8174 |
public void setSuccessIsSet(boolean value) {
|
|
|
8175 |
if (!value) {
|
|
|
8176 |
this.success = null;
|
|
|
8177 |
}
|
|
|
8178 |
}
|
|
|
8179 |
|
|
|
8180 |
public WarehouseServiceException getWex() {
|
|
|
8181 |
return this.wex;
|
|
|
8182 |
}
|
|
|
8183 |
|
|
|
8184 |
public void setWex(WarehouseServiceException wex) {
|
|
|
8185 |
this.wex = wex;
|
|
|
8186 |
}
|
|
|
8187 |
|
|
|
8188 |
public void unsetWex() {
|
|
|
8189 |
this.wex = null;
|
|
|
8190 |
}
|
|
|
8191 |
|
|
|
8192 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
8193 |
public boolean isSetWex() {
|
|
|
8194 |
return this.wex != null;
|
|
|
8195 |
}
|
|
|
8196 |
|
|
|
8197 |
public void setWexIsSet(boolean value) {
|
|
|
8198 |
if (!value) {
|
|
|
8199 |
this.wex = null;
|
|
|
8200 |
}
|
|
|
8201 |
}
|
|
|
8202 |
|
|
|
8203 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8204 |
switch (field) {
|
|
|
8205 |
case SUCCESS:
|
|
|
8206 |
if (value == null) {
|
|
|
8207 |
unsetSuccess();
|
|
|
8208 |
} else {
|
|
|
8209 |
setSuccess((List<InventoryItem>)value);
|
|
|
8210 |
}
|
|
|
8211 |
break;
|
|
|
8212 |
|
|
|
8213 |
case WEX:
|
|
|
8214 |
if (value == null) {
|
|
|
8215 |
unsetWex();
|
|
|
8216 |
} else {
|
|
|
8217 |
setWex((WarehouseServiceException)value);
|
|
|
8218 |
}
|
|
|
8219 |
break;
|
|
|
8220 |
|
|
|
8221 |
}
|
|
|
8222 |
}
|
|
|
8223 |
|
|
|
8224 |
public Object getFieldValue(_Fields field) {
|
|
|
8225 |
switch (field) {
|
|
|
8226 |
case SUCCESS:
|
|
|
8227 |
return getSuccess();
|
|
|
8228 |
|
|
|
8229 |
case WEX:
|
|
|
8230 |
return getWex();
|
|
|
8231 |
|
|
|
8232 |
}
|
|
|
8233 |
throw new IllegalStateException();
|
|
|
8234 |
}
|
|
|
8235 |
|
|
|
8236 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8237 |
public boolean isSet(_Fields field) {
|
|
|
8238 |
if (field == null) {
|
|
|
8239 |
throw new IllegalArgumentException();
|
|
|
8240 |
}
|
|
|
8241 |
|
|
|
8242 |
switch (field) {
|
|
|
8243 |
case SUCCESS:
|
|
|
8244 |
return isSetSuccess();
|
|
|
8245 |
case WEX:
|
|
|
8246 |
return isSetWex();
|
|
|
8247 |
}
|
|
|
8248 |
throw new IllegalStateException();
|
|
|
8249 |
}
|
|
|
8250 |
|
|
|
8251 |
@Override
|
|
|
8252 |
public boolean equals(Object that) {
|
|
|
8253 |
if (that == null)
|
|
|
8254 |
return false;
|
|
|
8255 |
if (that instanceof getInventoryItemsFromLastScanType_result)
|
|
|
8256 |
return this.equals((getInventoryItemsFromLastScanType_result)that);
|
|
|
8257 |
return false;
|
|
|
8258 |
}
|
|
|
8259 |
|
|
|
8260 |
public boolean equals(getInventoryItemsFromLastScanType_result that) {
|
|
|
8261 |
if (that == null)
|
|
|
8262 |
return false;
|
|
|
8263 |
|
|
|
8264 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8265 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8266 |
if (this_present_success || that_present_success) {
|
|
|
8267 |
if (!(this_present_success && that_present_success))
|
|
|
8268 |
return false;
|
|
|
8269 |
if (!this.success.equals(that.success))
|
|
|
8270 |
return false;
|
|
|
8271 |
}
|
|
|
8272 |
|
|
|
8273 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
8274 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
8275 |
if (this_present_wex || that_present_wex) {
|
|
|
8276 |
if (!(this_present_wex && that_present_wex))
|
|
|
8277 |
return false;
|
|
|
8278 |
if (!this.wex.equals(that.wex))
|
|
|
8279 |
return false;
|
|
|
8280 |
}
|
|
|
8281 |
|
|
|
8282 |
return true;
|
|
|
8283 |
}
|
|
|
8284 |
|
|
|
8285 |
@Override
|
|
|
8286 |
public int hashCode() {
|
|
|
8287 |
return 0;
|
|
|
8288 |
}
|
|
|
8289 |
|
|
|
8290 |
public int compareTo(getInventoryItemsFromLastScanType_result other) {
|
|
|
8291 |
if (!getClass().equals(other.getClass())) {
|
|
|
8292 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8293 |
}
|
|
|
8294 |
|
|
|
8295 |
int lastComparison = 0;
|
|
|
8296 |
getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
|
|
|
8297 |
|
|
|
8298 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8299 |
if (lastComparison != 0) {
|
|
|
8300 |
return lastComparison;
|
|
|
8301 |
}
|
|
|
8302 |
if (isSetSuccess()) {
|
|
|
8303 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8304 |
if (lastComparison != 0) {
|
|
|
8305 |
return lastComparison;
|
|
|
8306 |
}
|
|
|
8307 |
}
|
|
|
8308 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
8309 |
if (lastComparison != 0) {
|
|
|
8310 |
return lastComparison;
|
|
|
8311 |
}
|
|
|
8312 |
if (isSetWex()) {
|
|
|
8313 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
8314 |
if (lastComparison != 0) {
|
|
|
8315 |
return lastComparison;
|
|
|
8316 |
}
|
|
|
8317 |
}
|
|
|
8318 |
return 0;
|
|
|
8319 |
}
|
|
|
8320 |
|
|
|
8321 |
public _Fields fieldForId(int fieldId) {
|
|
|
8322 |
return _Fields.findByThriftId(fieldId);
|
|
|
8323 |
}
|
|
|
8324 |
|
|
|
8325 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8326 |
org.apache.thrift.protocol.TField field;
|
|
|
8327 |
iprot.readStructBegin();
|
|
|
8328 |
while (true)
|
|
|
8329 |
{
|
|
|
8330 |
field = iprot.readFieldBegin();
|
|
|
8331 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8332 |
break;
|
|
|
8333 |
}
|
|
|
8334 |
switch (field.id) {
|
|
|
8335 |
case 0: // SUCCESS
|
|
|
8336 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8337 |
{
|
| 5361 |
mandeep.dh |
8338 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
8339 |
this.success = new ArrayList<InventoryItem>(_list8.size);
|
|
|
8340 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 5185 |
mandeep.dh |
8341 |
{
|
| 5361 |
mandeep.dh |
8342 |
InventoryItem _elem10; // required
|
|
|
8343 |
_elem10 = new InventoryItem();
|
|
|
8344 |
_elem10.read(iprot);
|
|
|
8345 |
this.success.add(_elem10);
|
| 5185 |
mandeep.dh |
8346 |
}
|
|
|
8347 |
iprot.readListEnd();
|
|
|
8348 |
}
|
|
|
8349 |
} else {
|
|
|
8350 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8351 |
}
|
|
|
8352 |
break;
|
|
|
8353 |
case 1: // WEX
|
|
|
8354 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
8355 |
this.wex = new WarehouseServiceException();
|
|
|
8356 |
this.wex.read(iprot);
|
|
|
8357 |
} else {
|
|
|
8358 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8359 |
}
|
|
|
8360 |
break;
|
|
|
8361 |
default:
|
|
|
8362 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8363 |
}
|
|
|
8364 |
iprot.readFieldEnd();
|
|
|
8365 |
}
|
|
|
8366 |
iprot.readStructEnd();
|
|
|
8367 |
validate();
|
|
|
8368 |
}
|
|
|
8369 |
|
|
|
8370 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8371 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8372 |
|
|
|
8373 |
if (this.isSetSuccess()) {
|
|
|
8374 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8375 |
{
|
|
|
8376 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 5361 |
mandeep.dh |
8377 |
for (InventoryItem _iter11 : this.success)
|
| 5185 |
mandeep.dh |
8378 |
{
|
| 5361 |
mandeep.dh |
8379 |
_iter11.write(oprot);
|
| 5185 |
mandeep.dh |
8380 |
}
|
|
|
8381 |
oprot.writeListEnd();
|
|
|
8382 |
}
|
|
|
8383 |
oprot.writeFieldEnd();
|
|
|
8384 |
} else if (this.isSetWex()) {
|
|
|
8385 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
8386 |
this.wex.write(oprot);
|
|
|
8387 |
oprot.writeFieldEnd();
|
|
|
8388 |
}
|
|
|
8389 |
oprot.writeFieldStop();
|
|
|
8390 |
oprot.writeStructEnd();
|
|
|
8391 |
}
|
|
|
8392 |
|
|
|
8393 |
@Override
|
|
|
8394 |
public String toString() {
|
|
|
8395 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
|
|
|
8396 |
boolean first = true;
|
|
|
8397 |
|
|
|
8398 |
sb.append("success:");
|
|
|
8399 |
if (this.success == null) {
|
|
|
8400 |
sb.append("null");
|
|
|
8401 |
} else {
|
|
|
8402 |
sb.append(this.success);
|
|
|
8403 |
}
|
|
|
8404 |
first = false;
|
|
|
8405 |
if (!first) sb.append(", ");
|
|
|
8406 |
sb.append("wex:");
|
|
|
8407 |
if (this.wex == null) {
|
|
|
8408 |
sb.append("null");
|
|
|
8409 |
} else {
|
|
|
8410 |
sb.append(this.wex);
|
|
|
8411 |
}
|
|
|
8412 |
first = false;
|
|
|
8413 |
sb.append(")");
|
|
|
8414 |
return sb.toString();
|
|
|
8415 |
}
|
|
|
8416 |
|
|
|
8417 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8418 |
// check for required fields
|
|
|
8419 |
}
|
|
|
8420 |
|
|
|
8421 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8422 |
try {
|
|
|
8423 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8424 |
} catch (org.apache.thrift.TException te) {
|
|
|
8425 |
throw new java.io.IOException(te);
|
|
|
8426 |
}
|
|
|
8427 |
}
|
|
|
8428 |
|
|
|
8429 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8430 |
try {
|
|
|
8431 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8432 |
} catch (org.apache.thrift.TException te) {
|
|
|
8433 |
throw new java.io.IOException(te);
|
|
|
8434 |
}
|
|
|
8435 |
}
|
|
|
8436 |
|
|
|
8437 |
}
|
|
|
8438 |
|
|
|
8439 |
public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8440 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
|
|
|
8441 |
|
|
|
8442 |
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);
|
|
|
8443 |
|
|
|
8444 |
private long inventoryItemId; // required
|
|
|
8445 |
|
|
|
8446 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8447 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8448 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId");
|
|
|
8449 |
|
|
|
8450 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8451 |
|
|
|
8452 |
static {
|
|
|
8453 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8454 |
byName.put(field.getFieldName(), field);
|
|
|
8455 |
}
|
|
|
8456 |
}
|
|
|
8457 |
|
|
|
8458 |
/**
|
|
|
8459 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8460 |
*/
|
|
|
8461 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8462 |
switch(fieldId) {
|
|
|
8463 |
case 1: // INVENTORY_ITEM_ID
|
|
|
8464 |
return INVENTORY_ITEM_ID;
|
|
|
8465 |
default:
|
|
|
8466 |
return null;
|
|
|
8467 |
}
|
|
|
8468 |
}
|
|
|
8469 |
|
|
|
8470 |
/**
|
|
|
8471 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8472 |
* if it is not found.
|
|
|
8473 |
*/
|
|
|
8474 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8475 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8476 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8477 |
return fields;
|
|
|
8478 |
}
|
|
|
8479 |
|
|
|
8480 |
/**
|
|
|
8481 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8482 |
*/
|
|
|
8483 |
public static _Fields findByName(String name) {
|
|
|
8484 |
return byName.get(name);
|
|
|
8485 |
}
|
|
|
8486 |
|
|
|
8487 |
private final short _thriftId;
|
|
|
8488 |
private final String _fieldName;
|
|
|
8489 |
|
|
|
8490 |
_Fields(short thriftId, String fieldName) {
|
|
|
8491 |
_thriftId = thriftId;
|
|
|
8492 |
_fieldName = fieldName;
|
|
|
8493 |
}
|
|
|
8494 |
|
|
|
8495 |
public short getThriftFieldId() {
|
|
|
8496 |
return _thriftId;
|
|
|
8497 |
}
|
|
|
8498 |
|
|
|
8499 |
public String getFieldName() {
|
|
|
8500 |
return _fieldName;
|
|
|
8501 |
}
|
|
|
8502 |
}
|
|
|
8503 |
|
|
|
8504 |
// isset id assignments
|
|
|
8505 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
|
|
8506 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
8507 |
|
|
|
8508 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8509 |
static {
|
|
|
8510 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8511 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8512 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
8513 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8514 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
|
|
|
8515 |
}
|
|
|
8516 |
|
|
|
8517 |
public getInventoryItemFromId_args() {
|
|
|
8518 |
}
|
|
|
8519 |
|
|
|
8520 |
public getInventoryItemFromId_args(
|
|
|
8521 |
long inventoryItemId)
|
|
|
8522 |
{
|
|
|
8523 |
this();
|
|
|
8524 |
this.inventoryItemId = inventoryItemId;
|
|
|
8525 |
setInventoryItemIdIsSet(true);
|
|
|
8526 |
}
|
|
|
8527 |
|
|
|
8528 |
/**
|
|
|
8529 |
* Performs a deep copy on <i>other</i>.
|
|
|
8530 |
*/
|
|
|
8531 |
public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
|
|
|
8532 |
__isset_bit_vector.clear();
|
|
|
8533 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
8534 |
this.inventoryItemId = other.inventoryItemId;
|
|
|
8535 |
}
|
|
|
8536 |
|
|
|
8537 |
public getInventoryItemFromId_args deepCopy() {
|
|
|
8538 |
return new getInventoryItemFromId_args(this);
|
|
|
8539 |
}
|
|
|
8540 |
|
|
|
8541 |
@Override
|
|
|
8542 |
public void clear() {
|
|
|
8543 |
setInventoryItemIdIsSet(false);
|
|
|
8544 |
this.inventoryItemId = 0;
|
|
|
8545 |
}
|
|
|
8546 |
|
|
|
8547 |
public long getInventoryItemId() {
|
|
|
8548 |
return this.inventoryItemId;
|
|
|
8549 |
}
|
|
|
8550 |
|
|
|
8551 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
8552 |
this.inventoryItemId = inventoryItemId;
|
|
|
8553 |
setInventoryItemIdIsSet(true);
|
|
|
8554 |
}
|
|
|
8555 |
|
|
|
8556 |
public void unsetInventoryItemId() {
|
|
|
8557 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
|
|
8558 |
}
|
|
|
8559 |
|
|
|
8560 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
8561 |
public boolean isSetInventoryItemId() {
|
|
|
8562 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
|
|
8563 |
}
|
|
|
8564 |
|
|
|
8565 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
8566 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
|
|
8567 |
}
|
|
|
8568 |
|
|
|
8569 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8570 |
switch (field) {
|
|
|
8571 |
case INVENTORY_ITEM_ID:
|
|
|
8572 |
if (value == null) {
|
|
|
8573 |
unsetInventoryItemId();
|
|
|
8574 |
} else {
|
|
|
8575 |
setInventoryItemId((Long)value);
|
|
|
8576 |
}
|
|
|
8577 |
break;
|
|
|
8578 |
|
|
|
8579 |
}
|
|
|
8580 |
}
|
|
|
8581 |
|
|
|
8582 |
public Object getFieldValue(_Fields field) {
|
|
|
8583 |
switch (field) {
|
|
|
8584 |
case INVENTORY_ITEM_ID:
|
|
|
8585 |
return Long.valueOf(getInventoryItemId());
|
|
|
8586 |
|
|
|
8587 |
}
|
|
|
8588 |
throw new IllegalStateException();
|
|
|
8589 |
}
|
|
|
8590 |
|
|
|
8591 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8592 |
public boolean isSet(_Fields field) {
|
|
|
8593 |
if (field == null) {
|
|
|
8594 |
throw new IllegalArgumentException();
|
|
|
8595 |
}
|
|
|
8596 |
|
|
|
8597 |
switch (field) {
|
|
|
8598 |
case INVENTORY_ITEM_ID:
|
|
|
8599 |
return isSetInventoryItemId();
|
|
|
8600 |
}
|
|
|
8601 |
throw new IllegalStateException();
|
|
|
8602 |
}
|
|
|
8603 |
|
|
|
8604 |
@Override
|
|
|
8605 |
public boolean equals(Object that) {
|
|
|
8606 |
if (that == null)
|
|
|
8607 |
return false;
|
|
|
8608 |
if (that instanceof getInventoryItemFromId_args)
|
|
|
8609 |
return this.equals((getInventoryItemFromId_args)that);
|
|
|
8610 |
return false;
|
|
|
8611 |
}
|
|
|
8612 |
|
|
|
8613 |
public boolean equals(getInventoryItemFromId_args that) {
|
|
|
8614 |
if (that == null)
|
|
|
8615 |
return false;
|
|
|
8616 |
|
|
|
8617 |
boolean this_present_inventoryItemId = true;
|
|
|
8618 |
boolean that_present_inventoryItemId = true;
|
|
|
8619 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
8620 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
|
|
8621 |
return false;
|
|
|
8622 |
if (this.inventoryItemId != that.inventoryItemId)
|
|
|
8623 |
return false;
|
|
|
8624 |
}
|
|
|
8625 |
|
|
|
8626 |
return true;
|
|
|
8627 |
}
|
|
|
8628 |
|
|
|
8629 |
@Override
|
|
|
8630 |
public int hashCode() {
|
|
|
8631 |
return 0;
|
|
|
8632 |
}
|
|
|
8633 |
|
|
|
8634 |
public int compareTo(getInventoryItemFromId_args other) {
|
|
|
8635 |
if (!getClass().equals(other.getClass())) {
|
|
|
8636 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8637 |
}
|
|
|
8638 |
|
|
|
8639 |
int lastComparison = 0;
|
|
|
8640 |
getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
|
|
|
8641 |
|
|
|
8642 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
|
|
8643 |
if (lastComparison != 0) {
|
|
|
8644 |
return lastComparison;
|
|
|
8645 |
}
|
|
|
8646 |
if (isSetInventoryItemId()) {
|
|
|
8647 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
|
|
8648 |
if (lastComparison != 0) {
|
|
|
8649 |
return lastComparison;
|
|
|
8650 |
}
|
|
|
8651 |
}
|
|
|
8652 |
return 0;
|
|
|
8653 |
}
|
|
|
8654 |
|
|
|
8655 |
public _Fields fieldForId(int fieldId) {
|
|
|
8656 |
return _Fields.findByThriftId(fieldId);
|
|
|
8657 |
}
|
|
|
8658 |
|
|
|
8659 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8660 |
org.apache.thrift.protocol.TField field;
|
|
|
8661 |
iprot.readStructBegin();
|
|
|
8662 |
while (true)
|
|
|
8663 |
{
|
|
|
8664 |
field = iprot.readFieldBegin();
|
|
|
8665 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8666 |
break;
|
|
|
8667 |
}
|
|
|
8668 |
switch (field.id) {
|
|
|
8669 |
case 1: // INVENTORY_ITEM_ID
|
|
|
8670 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8671 |
this.inventoryItemId = iprot.readI64();
|
|
|
8672 |
setInventoryItemIdIsSet(true);
|
|
|
8673 |
} else {
|
|
|
8674 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8675 |
}
|
|
|
8676 |
break;
|
|
|
8677 |
default:
|
|
|
8678 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8679 |
}
|
|
|
8680 |
iprot.readFieldEnd();
|
|
|
8681 |
}
|
|
|
8682 |
iprot.readStructEnd();
|
|
|
8683 |
validate();
|
|
|
8684 |
}
|
|
|
8685 |
|
|
|
8686 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8687 |
validate();
|
|
|
8688 |
|
|
|
8689 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8690 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
8691 |
oprot.writeI64(this.inventoryItemId);
|
|
|
8692 |
oprot.writeFieldEnd();
|
|
|
8693 |
oprot.writeFieldStop();
|
|
|
8694 |
oprot.writeStructEnd();
|
|
|
8695 |
}
|
|
|
8696 |
|
|
|
8697 |
@Override
|
|
|
8698 |
public String toString() {
|
|
|
8699 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
|
|
|
8700 |
boolean first = true;
|
|
|
8701 |
|
|
|
8702 |
sb.append("inventoryItemId:");
|
|
|
8703 |
sb.append(this.inventoryItemId);
|
|
|
8704 |
first = false;
|
|
|
8705 |
sb.append(")");
|
|
|
8706 |
return sb.toString();
|
|
|
8707 |
}
|
|
|
8708 |
|
|
|
8709 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8710 |
// check for required fields
|
|
|
8711 |
}
|
|
|
8712 |
|
|
|
8713 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8714 |
try {
|
|
|
8715 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8716 |
} catch (org.apache.thrift.TException te) {
|
|
|
8717 |
throw new java.io.IOException(te);
|
|
|
8718 |
}
|
|
|
8719 |
}
|
|
|
8720 |
|
|
|
8721 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8722 |
try {
|
| 5372 |
mandeep.dh |
8723 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
8724 |
__isset_bit_vector = new BitSet(1);
|
| 5185 |
mandeep.dh |
8725 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8726 |
} catch (org.apache.thrift.TException te) {
|
|
|
8727 |
throw new java.io.IOException(te);
|
|
|
8728 |
}
|
|
|
8729 |
}
|
|
|
8730 |
|
|
|
8731 |
}
|
|
|
8732 |
|
|
|
8733 |
public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8734 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
|
|
|
8735 |
|
|
|
8736 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
8737 |
private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
8738 |
|
|
|
8739 |
private InventoryItem success; // required
|
|
|
8740 |
private WarehouseServiceException wex; // required
|
|
|
8741 |
|
|
|
8742 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8743 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8744 |
SUCCESS((short)0, "success"),
|
|
|
8745 |
WEX((short)1, "wex");
|
|
|
8746 |
|
|
|
8747 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8748 |
|
|
|
8749 |
static {
|
|
|
8750 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8751 |
byName.put(field.getFieldName(), field);
|
|
|
8752 |
}
|
|
|
8753 |
}
|
|
|
8754 |
|
|
|
8755 |
/**
|
|
|
8756 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8757 |
*/
|
|
|
8758 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8759 |
switch(fieldId) {
|
|
|
8760 |
case 0: // SUCCESS
|
|
|
8761 |
return SUCCESS;
|
|
|
8762 |
case 1: // WEX
|
|
|
8763 |
return WEX;
|
|
|
8764 |
default:
|
|
|
8765 |
return null;
|
|
|
8766 |
}
|
|
|
8767 |
}
|
|
|
8768 |
|
|
|
8769 |
/**
|
|
|
8770 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8771 |
* if it is not found.
|
|
|
8772 |
*/
|
|
|
8773 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8774 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8775 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8776 |
return fields;
|
|
|
8777 |
}
|
|
|
8778 |
|
|
|
8779 |
/**
|
|
|
8780 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8781 |
*/
|
|
|
8782 |
public static _Fields findByName(String name) {
|
|
|
8783 |
return byName.get(name);
|
|
|
8784 |
}
|
|
|
8785 |
|
|
|
8786 |
private final short _thriftId;
|
|
|
8787 |
private final String _fieldName;
|
|
|
8788 |
|
|
|
8789 |
_Fields(short thriftId, String fieldName) {
|
|
|
8790 |
_thriftId = thriftId;
|
|
|
8791 |
_fieldName = fieldName;
|
|
|
8792 |
}
|
|
|
8793 |
|
|
|
8794 |
public short getThriftFieldId() {
|
|
|
8795 |
return _thriftId;
|
|
|
8796 |
}
|
|
|
8797 |
|
|
|
8798 |
public String getFieldName() {
|
|
|
8799 |
return _fieldName;
|
|
|
8800 |
}
|
|
|
8801 |
}
|
|
|
8802 |
|
|
|
8803 |
// isset id assignments
|
|
|
8804 |
|
|
|
8805 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8806 |
static {
|
|
|
8807 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8808 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8809 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
8810 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8811 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8812 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8813 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
|
|
|
8814 |
}
|
|
|
8815 |
|
|
|
8816 |
public getInventoryItemFromId_result() {
|
|
|
8817 |
}
|
|
|
8818 |
|
|
|
8819 |
public getInventoryItemFromId_result(
|
|
|
8820 |
InventoryItem success,
|
|
|
8821 |
WarehouseServiceException wex)
|
|
|
8822 |
{
|
|
|
8823 |
this();
|
|
|
8824 |
this.success = success;
|
|
|
8825 |
this.wex = wex;
|
|
|
8826 |
}
|
|
|
8827 |
|
|
|
8828 |
/**
|
|
|
8829 |
* Performs a deep copy on <i>other</i>.
|
|
|
8830 |
*/
|
|
|
8831 |
public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
|
|
|
8832 |
if (other.isSetSuccess()) {
|
|
|
8833 |
this.success = new InventoryItem(other.success);
|
|
|
8834 |
}
|
|
|
8835 |
if (other.isSetWex()) {
|
|
|
8836 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
8837 |
}
|
|
|
8838 |
}
|
|
|
8839 |
|
|
|
8840 |
public getInventoryItemFromId_result deepCopy() {
|
|
|
8841 |
return new getInventoryItemFromId_result(this);
|
|
|
8842 |
}
|
|
|
8843 |
|
|
|
8844 |
@Override
|
|
|
8845 |
public void clear() {
|
|
|
8846 |
this.success = null;
|
|
|
8847 |
this.wex = null;
|
|
|
8848 |
}
|
|
|
8849 |
|
|
|
8850 |
public InventoryItem getSuccess() {
|
|
|
8851 |
return this.success;
|
|
|
8852 |
}
|
|
|
8853 |
|
|
|
8854 |
public void setSuccess(InventoryItem success) {
|
|
|
8855 |
this.success = success;
|
|
|
8856 |
}
|
|
|
8857 |
|
|
|
8858 |
public void unsetSuccess() {
|
|
|
8859 |
this.success = null;
|
|
|
8860 |
}
|
|
|
8861 |
|
|
|
8862 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8863 |
public boolean isSetSuccess() {
|
|
|
8864 |
return this.success != null;
|
|
|
8865 |
}
|
|
|
8866 |
|
|
|
8867 |
public void setSuccessIsSet(boolean value) {
|
|
|
8868 |
if (!value) {
|
|
|
8869 |
this.success = null;
|
|
|
8870 |
}
|
|
|
8871 |
}
|
|
|
8872 |
|
|
|
8873 |
public WarehouseServiceException getWex() {
|
|
|
8874 |
return this.wex;
|
|
|
8875 |
}
|
|
|
8876 |
|
|
|
8877 |
public void setWex(WarehouseServiceException wex) {
|
|
|
8878 |
this.wex = wex;
|
|
|
8879 |
}
|
|
|
8880 |
|
|
|
8881 |
public void unsetWex() {
|
|
|
8882 |
this.wex = null;
|
|
|
8883 |
}
|
|
|
8884 |
|
|
|
8885 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
8886 |
public boolean isSetWex() {
|
|
|
8887 |
return this.wex != null;
|
|
|
8888 |
}
|
|
|
8889 |
|
|
|
8890 |
public void setWexIsSet(boolean value) {
|
|
|
8891 |
if (!value) {
|
|
|
8892 |
this.wex = null;
|
|
|
8893 |
}
|
|
|
8894 |
}
|
|
|
8895 |
|
|
|
8896 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8897 |
switch (field) {
|
|
|
8898 |
case SUCCESS:
|
|
|
8899 |
if (value == null) {
|
|
|
8900 |
unsetSuccess();
|
|
|
8901 |
} else {
|
|
|
8902 |
setSuccess((InventoryItem)value);
|
|
|
8903 |
}
|
|
|
8904 |
break;
|
|
|
8905 |
|
|
|
8906 |
case WEX:
|
|
|
8907 |
if (value == null) {
|
|
|
8908 |
unsetWex();
|
|
|
8909 |
} else {
|
|
|
8910 |
setWex((WarehouseServiceException)value);
|
|
|
8911 |
}
|
|
|
8912 |
break;
|
|
|
8913 |
|
|
|
8914 |
}
|
|
|
8915 |
}
|
|
|
8916 |
|
|
|
8917 |
public Object getFieldValue(_Fields field) {
|
|
|
8918 |
switch (field) {
|
|
|
8919 |
case SUCCESS:
|
|
|
8920 |
return getSuccess();
|
|
|
8921 |
|
|
|
8922 |
case WEX:
|
|
|
8923 |
return getWex();
|
|
|
8924 |
|
|
|
8925 |
}
|
|
|
8926 |
throw new IllegalStateException();
|
|
|
8927 |
}
|
|
|
8928 |
|
|
|
8929 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8930 |
public boolean isSet(_Fields field) {
|
|
|
8931 |
if (field == null) {
|
|
|
8932 |
throw new IllegalArgumentException();
|
|
|
8933 |
}
|
|
|
8934 |
|
|
|
8935 |
switch (field) {
|
|
|
8936 |
case SUCCESS:
|
|
|
8937 |
return isSetSuccess();
|
|
|
8938 |
case WEX:
|
|
|
8939 |
return isSetWex();
|
|
|
8940 |
}
|
|
|
8941 |
throw new IllegalStateException();
|
|
|
8942 |
}
|
|
|
8943 |
|
|
|
8944 |
@Override
|
|
|
8945 |
public boolean equals(Object that) {
|
|
|
8946 |
if (that == null)
|
|
|
8947 |
return false;
|
|
|
8948 |
if (that instanceof getInventoryItemFromId_result)
|
|
|
8949 |
return this.equals((getInventoryItemFromId_result)that);
|
|
|
8950 |
return false;
|
|
|
8951 |
}
|
|
|
8952 |
|
|
|
8953 |
public boolean equals(getInventoryItemFromId_result that) {
|
|
|
8954 |
if (that == null)
|
|
|
8955 |
return false;
|
|
|
8956 |
|
|
|
8957 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8958 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8959 |
if (this_present_success || that_present_success) {
|
|
|
8960 |
if (!(this_present_success && that_present_success))
|
|
|
8961 |
return false;
|
|
|
8962 |
if (!this.success.equals(that.success))
|
|
|
8963 |
return false;
|
|
|
8964 |
}
|
|
|
8965 |
|
|
|
8966 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
8967 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
8968 |
if (this_present_wex || that_present_wex) {
|
|
|
8969 |
if (!(this_present_wex && that_present_wex))
|
|
|
8970 |
return false;
|
|
|
8971 |
if (!this.wex.equals(that.wex))
|
|
|
8972 |
return false;
|
|
|
8973 |
}
|
|
|
8974 |
|
|
|
8975 |
return true;
|
|
|
8976 |
}
|
|
|
8977 |
|
|
|
8978 |
@Override
|
|
|
8979 |
public int hashCode() {
|
|
|
8980 |
return 0;
|
|
|
8981 |
}
|
|
|
8982 |
|
|
|
8983 |
public int compareTo(getInventoryItemFromId_result other) {
|
|
|
8984 |
if (!getClass().equals(other.getClass())) {
|
|
|
8985 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8986 |
}
|
|
|
8987 |
|
|
|
8988 |
int lastComparison = 0;
|
|
|
8989 |
getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
|
|
|
8990 |
|
|
|
8991 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8992 |
if (lastComparison != 0) {
|
|
|
8993 |
return lastComparison;
|
|
|
8994 |
}
|
|
|
8995 |
if (isSetSuccess()) {
|
|
|
8996 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8997 |
if (lastComparison != 0) {
|
|
|
8998 |
return lastComparison;
|
|
|
8999 |
}
|
|
|
9000 |
}
|
|
|
9001 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
9002 |
if (lastComparison != 0) {
|
|
|
9003 |
return lastComparison;
|
|
|
9004 |
}
|
|
|
9005 |
if (isSetWex()) {
|
|
|
9006 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
9007 |
if (lastComparison != 0) {
|
|
|
9008 |
return lastComparison;
|
|
|
9009 |
}
|
|
|
9010 |
}
|
|
|
9011 |
return 0;
|
|
|
9012 |
}
|
|
|
9013 |
|
|
|
9014 |
public _Fields fieldForId(int fieldId) {
|
|
|
9015 |
return _Fields.findByThriftId(fieldId);
|
|
|
9016 |
}
|
|
|
9017 |
|
|
|
9018 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9019 |
org.apache.thrift.protocol.TField field;
|
|
|
9020 |
iprot.readStructBegin();
|
|
|
9021 |
while (true)
|
|
|
9022 |
{
|
|
|
9023 |
field = iprot.readFieldBegin();
|
|
|
9024 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9025 |
break;
|
|
|
9026 |
}
|
|
|
9027 |
switch (field.id) {
|
|
|
9028 |
case 0: // SUCCESS
|
|
|
9029 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9030 |
this.success = new InventoryItem();
|
|
|
9031 |
this.success.read(iprot);
|
|
|
9032 |
} else {
|
|
|
9033 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9034 |
}
|
|
|
9035 |
break;
|
|
|
9036 |
case 1: // WEX
|
|
|
9037 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9038 |
this.wex = new WarehouseServiceException();
|
|
|
9039 |
this.wex.read(iprot);
|
|
|
9040 |
} else {
|
|
|
9041 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9042 |
}
|
|
|
9043 |
break;
|
|
|
9044 |
default:
|
|
|
9045 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9046 |
}
|
|
|
9047 |
iprot.readFieldEnd();
|
|
|
9048 |
}
|
|
|
9049 |
iprot.readStructEnd();
|
|
|
9050 |
validate();
|
|
|
9051 |
}
|
|
|
9052 |
|
|
|
9053 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9054 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9055 |
|
|
|
9056 |
if (this.isSetSuccess()) {
|
|
|
9057 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9058 |
this.success.write(oprot);
|
|
|
9059 |
oprot.writeFieldEnd();
|
|
|
9060 |
} else if (this.isSetWex()) {
|
|
|
9061 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
9062 |
this.wex.write(oprot);
|
|
|
9063 |
oprot.writeFieldEnd();
|
|
|
9064 |
}
|
|
|
9065 |
oprot.writeFieldStop();
|
|
|
9066 |
oprot.writeStructEnd();
|
|
|
9067 |
}
|
|
|
9068 |
|
|
|
9069 |
@Override
|
|
|
9070 |
public String toString() {
|
|
|
9071 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
|
|
|
9072 |
boolean first = true;
|
|
|
9073 |
|
|
|
9074 |
sb.append("success:");
|
|
|
9075 |
if (this.success == null) {
|
|
|
9076 |
sb.append("null");
|
|
|
9077 |
} else {
|
|
|
9078 |
sb.append(this.success);
|
|
|
9079 |
}
|
|
|
9080 |
first = false;
|
|
|
9081 |
if (!first) sb.append(", ");
|
|
|
9082 |
sb.append("wex:");
|
|
|
9083 |
if (this.wex == null) {
|
|
|
9084 |
sb.append("null");
|
|
|
9085 |
} else {
|
|
|
9086 |
sb.append(this.wex);
|
|
|
9087 |
}
|
|
|
9088 |
first = false;
|
|
|
9089 |
sb.append(")");
|
|
|
9090 |
return sb.toString();
|
|
|
9091 |
}
|
|
|
9092 |
|
|
|
9093 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9094 |
// check for required fields
|
|
|
9095 |
}
|
|
|
9096 |
|
|
|
9097 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9098 |
try {
|
|
|
9099 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9100 |
} catch (org.apache.thrift.TException te) {
|
|
|
9101 |
throw new java.io.IOException(te);
|
|
|
9102 |
}
|
|
|
9103 |
}
|
|
|
9104 |
|
|
|
9105 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9106 |
try {
|
|
|
9107 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9108 |
} catch (org.apache.thrift.TException te) {
|
|
|
9109 |
throw new java.io.IOException(te);
|
|
|
9110 |
}
|
|
|
9111 |
}
|
|
|
9112 |
|
|
|
9113 |
}
|
|
|
9114 |
|
| 5372 |
mandeep.dh |
9115 |
public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9116 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
|
|
|
9117 |
|
|
|
9118 |
private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
9119 |
private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
9120 |
|
|
|
9121 |
private long startDate; // required
|
|
|
9122 |
private long endDate; // required
|
|
|
9123 |
|
|
|
9124 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9125 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9126 |
START_DATE((short)1, "startDate"),
|
|
|
9127 |
END_DATE((short)2, "endDate");
|
|
|
9128 |
|
|
|
9129 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9130 |
|
|
|
9131 |
static {
|
|
|
9132 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9133 |
byName.put(field.getFieldName(), field);
|
|
|
9134 |
}
|
|
|
9135 |
}
|
|
|
9136 |
|
|
|
9137 |
/**
|
|
|
9138 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9139 |
*/
|
|
|
9140 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9141 |
switch(fieldId) {
|
|
|
9142 |
case 1: // START_DATE
|
|
|
9143 |
return START_DATE;
|
|
|
9144 |
case 2: // END_DATE
|
|
|
9145 |
return END_DATE;
|
|
|
9146 |
default:
|
|
|
9147 |
return null;
|
|
|
9148 |
}
|
|
|
9149 |
}
|
|
|
9150 |
|
|
|
9151 |
/**
|
|
|
9152 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9153 |
* if it is not found.
|
|
|
9154 |
*/
|
|
|
9155 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9156 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9157 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9158 |
return fields;
|
|
|
9159 |
}
|
|
|
9160 |
|
|
|
9161 |
/**
|
|
|
9162 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9163 |
*/
|
|
|
9164 |
public static _Fields findByName(String name) {
|
|
|
9165 |
return byName.get(name);
|
|
|
9166 |
}
|
|
|
9167 |
|
|
|
9168 |
private final short _thriftId;
|
|
|
9169 |
private final String _fieldName;
|
|
|
9170 |
|
|
|
9171 |
_Fields(short thriftId, String fieldName) {
|
|
|
9172 |
_thriftId = thriftId;
|
|
|
9173 |
_fieldName = fieldName;
|
|
|
9174 |
}
|
|
|
9175 |
|
|
|
9176 |
public short getThriftFieldId() {
|
|
|
9177 |
return _thriftId;
|
|
|
9178 |
}
|
|
|
9179 |
|
|
|
9180 |
public String getFieldName() {
|
|
|
9181 |
return _fieldName;
|
|
|
9182 |
}
|
|
|
9183 |
}
|
|
|
9184 |
|
|
|
9185 |
// isset id assignments
|
|
|
9186 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
9187 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
9188 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
9189 |
|
|
|
9190 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9191 |
static {
|
|
|
9192 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9193 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9194 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9195 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9196 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9197 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9198 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
|
|
|
9199 |
}
|
|
|
9200 |
|
|
|
9201 |
public getPurchaseScans_args() {
|
|
|
9202 |
}
|
|
|
9203 |
|
|
|
9204 |
public getPurchaseScans_args(
|
|
|
9205 |
long startDate,
|
|
|
9206 |
long endDate)
|
|
|
9207 |
{
|
|
|
9208 |
this();
|
|
|
9209 |
this.startDate = startDate;
|
|
|
9210 |
setStartDateIsSet(true);
|
|
|
9211 |
this.endDate = endDate;
|
|
|
9212 |
setEndDateIsSet(true);
|
|
|
9213 |
}
|
|
|
9214 |
|
|
|
9215 |
/**
|
|
|
9216 |
* Performs a deep copy on <i>other</i>.
|
|
|
9217 |
*/
|
|
|
9218 |
public getPurchaseScans_args(getPurchaseScans_args other) {
|
|
|
9219 |
__isset_bit_vector.clear();
|
|
|
9220 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9221 |
this.startDate = other.startDate;
|
|
|
9222 |
this.endDate = other.endDate;
|
|
|
9223 |
}
|
|
|
9224 |
|
|
|
9225 |
public getPurchaseScans_args deepCopy() {
|
|
|
9226 |
return new getPurchaseScans_args(this);
|
|
|
9227 |
}
|
|
|
9228 |
|
|
|
9229 |
@Override
|
|
|
9230 |
public void clear() {
|
|
|
9231 |
setStartDateIsSet(false);
|
|
|
9232 |
this.startDate = 0;
|
|
|
9233 |
setEndDateIsSet(false);
|
|
|
9234 |
this.endDate = 0;
|
|
|
9235 |
}
|
|
|
9236 |
|
|
|
9237 |
public long getStartDate() {
|
|
|
9238 |
return this.startDate;
|
|
|
9239 |
}
|
|
|
9240 |
|
|
|
9241 |
public void setStartDate(long startDate) {
|
|
|
9242 |
this.startDate = startDate;
|
|
|
9243 |
setStartDateIsSet(true);
|
|
|
9244 |
}
|
|
|
9245 |
|
|
|
9246 |
public void unsetStartDate() {
|
|
|
9247 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
9248 |
}
|
|
|
9249 |
|
|
|
9250 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
9251 |
public boolean isSetStartDate() {
|
|
|
9252 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
9253 |
}
|
|
|
9254 |
|
|
|
9255 |
public void setStartDateIsSet(boolean value) {
|
|
|
9256 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
9257 |
}
|
|
|
9258 |
|
|
|
9259 |
public long getEndDate() {
|
|
|
9260 |
return this.endDate;
|
|
|
9261 |
}
|
|
|
9262 |
|
|
|
9263 |
public void setEndDate(long endDate) {
|
|
|
9264 |
this.endDate = endDate;
|
|
|
9265 |
setEndDateIsSet(true);
|
|
|
9266 |
}
|
|
|
9267 |
|
|
|
9268 |
public void unsetEndDate() {
|
|
|
9269 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
9270 |
}
|
|
|
9271 |
|
|
|
9272 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
9273 |
public boolean isSetEndDate() {
|
|
|
9274 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
9275 |
}
|
|
|
9276 |
|
|
|
9277 |
public void setEndDateIsSet(boolean value) {
|
|
|
9278 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
9279 |
}
|
|
|
9280 |
|
|
|
9281 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9282 |
switch (field) {
|
|
|
9283 |
case START_DATE:
|
|
|
9284 |
if (value == null) {
|
|
|
9285 |
unsetStartDate();
|
|
|
9286 |
} else {
|
|
|
9287 |
setStartDate((Long)value);
|
|
|
9288 |
}
|
|
|
9289 |
break;
|
|
|
9290 |
|
|
|
9291 |
case END_DATE:
|
|
|
9292 |
if (value == null) {
|
|
|
9293 |
unsetEndDate();
|
|
|
9294 |
} else {
|
|
|
9295 |
setEndDate((Long)value);
|
|
|
9296 |
}
|
|
|
9297 |
break;
|
|
|
9298 |
|
|
|
9299 |
}
|
|
|
9300 |
}
|
|
|
9301 |
|
|
|
9302 |
public Object getFieldValue(_Fields field) {
|
|
|
9303 |
switch (field) {
|
|
|
9304 |
case START_DATE:
|
|
|
9305 |
return Long.valueOf(getStartDate());
|
|
|
9306 |
|
|
|
9307 |
case END_DATE:
|
|
|
9308 |
return Long.valueOf(getEndDate());
|
|
|
9309 |
|
|
|
9310 |
}
|
|
|
9311 |
throw new IllegalStateException();
|
|
|
9312 |
}
|
|
|
9313 |
|
|
|
9314 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9315 |
public boolean isSet(_Fields field) {
|
|
|
9316 |
if (field == null) {
|
|
|
9317 |
throw new IllegalArgumentException();
|
|
|
9318 |
}
|
|
|
9319 |
|
|
|
9320 |
switch (field) {
|
|
|
9321 |
case START_DATE:
|
|
|
9322 |
return isSetStartDate();
|
|
|
9323 |
case END_DATE:
|
|
|
9324 |
return isSetEndDate();
|
|
|
9325 |
}
|
|
|
9326 |
throw new IllegalStateException();
|
|
|
9327 |
}
|
|
|
9328 |
|
|
|
9329 |
@Override
|
|
|
9330 |
public boolean equals(Object that) {
|
|
|
9331 |
if (that == null)
|
|
|
9332 |
return false;
|
|
|
9333 |
if (that instanceof getPurchaseScans_args)
|
|
|
9334 |
return this.equals((getPurchaseScans_args)that);
|
|
|
9335 |
return false;
|
|
|
9336 |
}
|
|
|
9337 |
|
|
|
9338 |
public boolean equals(getPurchaseScans_args that) {
|
|
|
9339 |
if (that == null)
|
|
|
9340 |
return false;
|
|
|
9341 |
|
|
|
9342 |
boolean this_present_startDate = true;
|
|
|
9343 |
boolean that_present_startDate = true;
|
|
|
9344 |
if (this_present_startDate || that_present_startDate) {
|
|
|
9345 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
9346 |
return false;
|
|
|
9347 |
if (this.startDate != that.startDate)
|
|
|
9348 |
return false;
|
|
|
9349 |
}
|
|
|
9350 |
|
|
|
9351 |
boolean this_present_endDate = true;
|
|
|
9352 |
boolean that_present_endDate = true;
|
|
|
9353 |
if (this_present_endDate || that_present_endDate) {
|
|
|
9354 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
9355 |
return false;
|
|
|
9356 |
if (this.endDate != that.endDate)
|
|
|
9357 |
return false;
|
|
|
9358 |
}
|
|
|
9359 |
|
|
|
9360 |
return true;
|
|
|
9361 |
}
|
|
|
9362 |
|
|
|
9363 |
@Override
|
|
|
9364 |
public int hashCode() {
|
|
|
9365 |
return 0;
|
|
|
9366 |
}
|
|
|
9367 |
|
|
|
9368 |
public int compareTo(getPurchaseScans_args other) {
|
|
|
9369 |
if (!getClass().equals(other.getClass())) {
|
|
|
9370 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9371 |
}
|
|
|
9372 |
|
|
|
9373 |
int lastComparison = 0;
|
|
|
9374 |
getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
|
|
|
9375 |
|
|
|
9376 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
9377 |
if (lastComparison != 0) {
|
|
|
9378 |
return lastComparison;
|
|
|
9379 |
}
|
|
|
9380 |
if (isSetStartDate()) {
|
|
|
9381 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
9382 |
if (lastComparison != 0) {
|
|
|
9383 |
return lastComparison;
|
|
|
9384 |
}
|
|
|
9385 |
}
|
|
|
9386 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
9387 |
if (lastComparison != 0) {
|
|
|
9388 |
return lastComparison;
|
|
|
9389 |
}
|
|
|
9390 |
if (isSetEndDate()) {
|
|
|
9391 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
9392 |
if (lastComparison != 0) {
|
|
|
9393 |
return lastComparison;
|
|
|
9394 |
}
|
|
|
9395 |
}
|
|
|
9396 |
return 0;
|
|
|
9397 |
}
|
|
|
9398 |
|
|
|
9399 |
public _Fields fieldForId(int fieldId) {
|
|
|
9400 |
return _Fields.findByThriftId(fieldId);
|
|
|
9401 |
}
|
|
|
9402 |
|
|
|
9403 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9404 |
org.apache.thrift.protocol.TField field;
|
|
|
9405 |
iprot.readStructBegin();
|
|
|
9406 |
while (true)
|
|
|
9407 |
{
|
|
|
9408 |
field = iprot.readFieldBegin();
|
|
|
9409 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9410 |
break;
|
|
|
9411 |
}
|
|
|
9412 |
switch (field.id) {
|
|
|
9413 |
case 1: // START_DATE
|
|
|
9414 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9415 |
this.startDate = iprot.readI64();
|
|
|
9416 |
setStartDateIsSet(true);
|
|
|
9417 |
} else {
|
|
|
9418 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9419 |
}
|
|
|
9420 |
break;
|
|
|
9421 |
case 2: // END_DATE
|
|
|
9422 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9423 |
this.endDate = iprot.readI64();
|
|
|
9424 |
setEndDateIsSet(true);
|
|
|
9425 |
} else {
|
|
|
9426 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9427 |
}
|
|
|
9428 |
break;
|
|
|
9429 |
default:
|
|
|
9430 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9431 |
}
|
|
|
9432 |
iprot.readFieldEnd();
|
|
|
9433 |
}
|
|
|
9434 |
iprot.readStructEnd();
|
|
|
9435 |
validate();
|
|
|
9436 |
}
|
|
|
9437 |
|
|
|
9438 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9439 |
validate();
|
|
|
9440 |
|
|
|
9441 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9442 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
9443 |
oprot.writeI64(this.startDate);
|
|
|
9444 |
oprot.writeFieldEnd();
|
|
|
9445 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
9446 |
oprot.writeI64(this.endDate);
|
|
|
9447 |
oprot.writeFieldEnd();
|
|
|
9448 |
oprot.writeFieldStop();
|
|
|
9449 |
oprot.writeStructEnd();
|
|
|
9450 |
}
|
|
|
9451 |
|
|
|
9452 |
@Override
|
|
|
9453 |
public String toString() {
|
|
|
9454 |
StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
|
|
|
9455 |
boolean first = true;
|
|
|
9456 |
|
|
|
9457 |
sb.append("startDate:");
|
|
|
9458 |
sb.append(this.startDate);
|
|
|
9459 |
first = false;
|
|
|
9460 |
if (!first) sb.append(", ");
|
|
|
9461 |
sb.append("endDate:");
|
|
|
9462 |
sb.append(this.endDate);
|
|
|
9463 |
first = false;
|
|
|
9464 |
sb.append(")");
|
|
|
9465 |
return sb.toString();
|
|
|
9466 |
}
|
|
|
9467 |
|
|
|
9468 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9469 |
// check for required fields
|
|
|
9470 |
}
|
|
|
9471 |
|
|
|
9472 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9473 |
try {
|
|
|
9474 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9475 |
} catch (org.apache.thrift.TException te) {
|
|
|
9476 |
throw new java.io.IOException(te);
|
|
|
9477 |
}
|
|
|
9478 |
}
|
|
|
9479 |
|
|
|
9480 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9481 |
try {
|
|
|
9482 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
9483 |
__isset_bit_vector = new BitSet(1);
|
|
|
9484 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9485 |
} catch (org.apache.thrift.TException te) {
|
|
|
9486 |
throw new java.io.IOException(te);
|
|
|
9487 |
}
|
|
|
9488 |
}
|
|
|
9489 |
|
|
|
9490 |
}
|
|
|
9491 |
|
|
|
9492 |
public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9493 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
|
|
|
9494 |
|
|
|
9495 |
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);
|
|
|
9496 |
|
|
|
9497 |
private List<DetailedPurchaseScan> success; // required
|
|
|
9498 |
|
|
|
9499 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9500 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9501 |
SUCCESS((short)0, "success");
|
|
|
9502 |
|
|
|
9503 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9504 |
|
|
|
9505 |
static {
|
|
|
9506 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9507 |
byName.put(field.getFieldName(), field);
|
|
|
9508 |
}
|
|
|
9509 |
}
|
|
|
9510 |
|
|
|
9511 |
/**
|
|
|
9512 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9513 |
*/
|
|
|
9514 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9515 |
switch(fieldId) {
|
|
|
9516 |
case 0: // SUCCESS
|
|
|
9517 |
return SUCCESS;
|
|
|
9518 |
default:
|
|
|
9519 |
return null;
|
|
|
9520 |
}
|
|
|
9521 |
}
|
|
|
9522 |
|
|
|
9523 |
/**
|
|
|
9524 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9525 |
* if it is not found.
|
|
|
9526 |
*/
|
|
|
9527 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9528 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9529 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9530 |
return fields;
|
|
|
9531 |
}
|
|
|
9532 |
|
|
|
9533 |
/**
|
|
|
9534 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9535 |
*/
|
|
|
9536 |
public static _Fields findByName(String name) {
|
|
|
9537 |
return byName.get(name);
|
|
|
9538 |
}
|
|
|
9539 |
|
|
|
9540 |
private final short _thriftId;
|
|
|
9541 |
private final String _fieldName;
|
|
|
9542 |
|
|
|
9543 |
_Fields(short thriftId, String fieldName) {
|
|
|
9544 |
_thriftId = thriftId;
|
|
|
9545 |
_fieldName = fieldName;
|
|
|
9546 |
}
|
|
|
9547 |
|
|
|
9548 |
public short getThriftFieldId() {
|
|
|
9549 |
return _thriftId;
|
|
|
9550 |
}
|
|
|
9551 |
|
|
|
9552 |
public String getFieldName() {
|
|
|
9553 |
return _fieldName;
|
|
|
9554 |
}
|
|
|
9555 |
}
|
|
|
9556 |
|
|
|
9557 |
// isset id assignments
|
|
|
9558 |
|
|
|
9559 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9560 |
static {
|
|
|
9561 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9562 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9563 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
9564 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
|
|
|
9565 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9566 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
|
|
|
9567 |
}
|
|
|
9568 |
|
|
|
9569 |
public getPurchaseScans_result() {
|
|
|
9570 |
}
|
|
|
9571 |
|
|
|
9572 |
public getPurchaseScans_result(
|
|
|
9573 |
List<DetailedPurchaseScan> success)
|
|
|
9574 |
{
|
|
|
9575 |
this();
|
|
|
9576 |
this.success = success;
|
|
|
9577 |
}
|
|
|
9578 |
|
|
|
9579 |
/**
|
|
|
9580 |
* Performs a deep copy on <i>other</i>.
|
|
|
9581 |
*/
|
|
|
9582 |
public getPurchaseScans_result(getPurchaseScans_result other) {
|
|
|
9583 |
if (other.isSetSuccess()) {
|
|
|
9584 |
List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
|
|
|
9585 |
for (DetailedPurchaseScan other_element : other.success) {
|
|
|
9586 |
__this__success.add(new DetailedPurchaseScan(other_element));
|
|
|
9587 |
}
|
|
|
9588 |
this.success = __this__success;
|
|
|
9589 |
}
|
|
|
9590 |
}
|
|
|
9591 |
|
|
|
9592 |
public getPurchaseScans_result deepCopy() {
|
|
|
9593 |
return new getPurchaseScans_result(this);
|
|
|
9594 |
}
|
|
|
9595 |
|
|
|
9596 |
@Override
|
|
|
9597 |
public void clear() {
|
|
|
9598 |
this.success = null;
|
|
|
9599 |
}
|
|
|
9600 |
|
|
|
9601 |
public int getSuccessSize() {
|
|
|
9602 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
9603 |
}
|
|
|
9604 |
|
|
|
9605 |
public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
|
|
|
9606 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
9607 |
}
|
|
|
9608 |
|
|
|
9609 |
public void addToSuccess(DetailedPurchaseScan elem) {
|
|
|
9610 |
if (this.success == null) {
|
|
|
9611 |
this.success = new ArrayList<DetailedPurchaseScan>();
|
|
|
9612 |
}
|
|
|
9613 |
this.success.add(elem);
|
|
|
9614 |
}
|
|
|
9615 |
|
|
|
9616 |
public List<DetailedPurchaseScan> getSuccess() {
|
|
|
9617 |
return this.success;
|
|
|
9618 |
}
|
|
|
9619 |
|
|
|
9620 |
public void setSuccess(List<DetailedPurchaseScan> success) {
|
|
|
9621 |
this.success = success;
|
|
|
9622 |
}
|
|
|
9623 |
|
|
|
9624 |
public void unsetSuccess() {
|
|
|
9625 |
this.success = null;
|
|
|
9626 |
}
|
|
|
9627 |
|
|
|
9628 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
9629 |
public boolean isSetSuccess() {
|
|
|
9630 |
return this.success != null;
|
|
|
9631 |
}
|
|
|
9632 |
|
|
|
9633 |
public void setSuccessIsSet(boolean value) {
|
|
|
9634 |
if (!value) {
|
|
|
9635 |
this.success = null;
|
|
|
9636 |
}
|
|
|
9637 |
}
|
|
|
9638 |
|
|
|
9639 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9640 |
switch (field) {
|
|
|
9641 |
case SUCCESS:
|
|
|
9642 |
if (value == null) {
|
|
|
9643 |
unsetSuccess();
|
|
|
9644 |
} else {
|
|
|
9645 |
setSuccess((List<DetailedPurchaseScan>)value);
|
|
|
9646 |
}
|
|
|
9647 |
break;
|
|
|
9648 |
|
|
|
9649 |
}
|
|
|
9650 |
}
|
|
|
9651 |
|
|
|
9652 |
public Object getFieldValue(_Fields field) {
|
|
|
9653 |
switch (field) {
|
|
|
9654 |
case SUCCESS:
|
|
|
9655 |
return getSuccess();
|
|
|
9656 |
|
|
|
9657 |
}
|
|
|
9658 |
throw new IllegalStateException();
|
|
|
9659 |
}
|
|
|
9660 |
|
|
|
9661 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9662 |
public boolean isSet(_Fields field) {
|
|
|
9663 |
if (field == null) {
|
|
|
9664 |
throw new IllegalArgumentException();
|
|
|
9665 |
}
|
|
|
9666 |
|
|
|
9667 |
switch (field) {
|
|
|
9668 |
case SUCCESS:
|
|
|
9669 |
return isSetSuccess();
|
|
|
9670 |
}
|
|
|
9671 |
throw new IllegalStateException();
|
|
|
9672 |
}
|
|
|
9673 |
|
|
|
9674 |
@Override
|
|
|
9675 |
public boolean equals(Object that) {
|
|
|
9676 |
if (that == null)
|
|
|
9677 |
return false;
|
|
|
9678 |
if (that instanceof getPurchaseScans_result)
|
|
|
9679 |
return this.equals((getPurchaseScans_result)that);
|
|
|
9680 |
return false;
|
|
|
9681 |
}
|
|
|
9682 |
|
|
|
9683 |
public boolean equals(getPurchaseScans_result that) {
|
|
|
9684 |
if (that == null)
|
|
|
9685 |
return false;
|
|
|
9686 |
|
|
|
9687 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9688 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9689 |
if (this_present_success || that_present_success) {
|
|
|
9690 |
if (!(this_present_success && that_present_success))
|
|
|
9691 |
return false;
|
|
|
9692 |
if (!this.success.equals(that.success))
|
|
|
9693 |
return false;
|
|
|
9694 |
}
|
|
|
9695 |
|
|
|
9696 |
return true;
|
|
|
9697 |
}
|
|
|
9698 |
|
|
|
9699 |
@Override
|
|
|
9700 |
public int hashCode() {
|
|
|
9701 |
return 0;
|
|
|
9702 |
}
|
|
|
9703 |
|
|
|
9704 |
public int compareTo(getPurchaseScans_result other) {
|
|
|
9705 |
if (!getClass().equals(other.getClass())) {
|
|
|
9706 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9707 |
}
|
|
|
9708 |
|
|
|
9709 |
int lastComparison = 0;
|
|
|
9710 |
getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
|
|
|
9711 |
|
|
|
9712 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9713 |
if (lastComparison != 0) {
|
|
|
9714 |
return lastComparison;
|
|
|
9715 |
}
|
|
|
9716 |
if (isSetSuccess()) {
|
|
|
9717 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9718 |
if (lastComparison != 0) {
|
|
|
9719 |
return lastComparison;
|
|
|
9720 |
}
|
|
|
9721 |
}
|
|
|
9722 |
return 0;
|
|
|
9723 |
}
|
|
|
9724 |
|
|
|
9725 |
public _Fields fieldForId(int fieldId) {
|
|
|
9726 |
return _Fields.findByThriftId(fieldId);
|
|
|
9727 |
}
|
|
|
9728 |
|
|
|
9729 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9730 |
org.apache.thrift.protocol.TField field;
|
|
|
9731 |
iprot.readStructBegin();
|
|
|
9732 |
while (true)
|
|
|
9733 |
{
|
|
|
9734 |
field = iprot.readFieldBegin();
|
|
|
9735 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9736 |
break;
|
|
|
9737 |
}
|
|
|
9738 |
switch (field.id) {
|
|
|
9739 |
case 0: // SUCCESS
|
|
|
9740 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
9741 |
{
|
|
|
9742 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
9743 |
this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
|
|
|
9744 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
|
|
9745 |
{
|
|
|
9746 |
DetailedPurchaseScan _elem14; // required
|
|
|
9747 |
_elem14 = new DetailedPurchaseScan();
|
|
|
9748 |
_elem14.read(iprot);
|
|
|
9749 |
this.success.add(_elem14);
|
|
|
9750 |
}
|
|
|
9751 |
iprot.readListEnd();
|
|
|
9752 |
}
|
|
|
9753 |
} else {
|
|
|
9754 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9755 |
}
|
|
|
9756 |
break;
|
|
|
9757 |
default:
|
|
|
9758 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9759 |
}
|
|
|
9760 |
iprot.readFieldEnd();
|
|
|
9761 |
}
|
|
|
9762 |
iprot.readStructEnd();
|
|
|
9763 |
validate();
|
|
|
9764 |
}
|
|
|
9765 |
|
|
|
9766 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9767 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9768 |
|
|
|
9769 |
if (this.isSetSuccess()) {
|
|
|
9770 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9771 |
{
|
|
|
9772 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
9773 |
for (DetailedPurchaseScan _iter15 : this.success)
|
|
|
9774 |
{
|
|
|
9775 |
_iter15.write(oprot);
|
|
|
9776 |
}
|
|
|
9777 |
oprot.writeListEnd();
|
|
|
9778 |
}
|
|
|
9779 |
oprot.writeFieldEnd();
|
|
|
9780 |
}
|
|
|
9781 |
oprot.writeFieldStop();
|
|
|
9782 |
oprot.writeStructEnd();
|
|
|
9783 |
}
|
|
|
9784 |
|
|
|
9785 |
@Override
|
|
|
9786 |
public String toString() {
|
|
|
9787 |
StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
|
|
|
9788 |
boolean first = true;
|
|
|
9789 |
|
|
|
9790 |
sb.append("success:");
|
|
|
9791 |
if (this.success == null) {
|
|
|
9792 |
sb.append("null");
|
|
|
9793 |
} else {
|
|
|
9794 |
sb.append(this.success);
|
|
|
9795 |
}
|
|
|
9796 |
first = false;
|
|
|
9797 |
sb.append(")");
|
|
|
9798 |
return sb.toString();
|
|
|
9799 |
}
|
|
|
9800 |
|
|
|
9801 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9802 |
// check for required fields
|
|
|
9803 |
}
|
|
|
9804 |
|
|
|
9805 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9806 |
try {
|
|
|
9807 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9808 |
} catch (org.apache.thrift.TException te) {
|
|
|
9809 |
throw new java.io.IOException(te);
|
|
|
9810 |
}
|
|
|
9811 |
}
|
|
|
9812 |
|
|
|
9813 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9814 |
try {
|
|
|
9815 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9816 |
} catch (org.apache.thrift.TException te) {
|
|
|
9817 |
throw new java.io.IOException(te);
|
|
|
9818 |
}
|
|
|
9819 |
}
|
|
|
9820 |
|
|
|
9821 |
}
|
|
|
9822 |
|
| 5496 |
mandeep.dh |
9823 |
public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9824 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
|
|
|
9825 |
|
|
|
9826 |
private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
9827 |
|
|
|
9828 |
private long date; // required
|
|
|
9829 |
|
|
|
9830 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9831 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9832 |
DATE((short)1, "date");
|
|
|
9833 |
|
|
|
9834 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9835 |
|
|
|
9836 |
static {
|
|
|
9837 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9838 |
byName.put(field.getFieldName(), field);
|
|
|
9839 |
}
|
|
|
9840 |
}
|
|
|
9841 |
|
|
|
9842 |
/**
|
|
|
9843 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9844 |
*/
|
|
|
9845 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9846 |
switch(fieldId) {
|
|
|
9847 |
case 1: // DATE
|
|
|
9848 |
return DATE;
|
|
|
9849 |
default:
|
|
|
9850 |
return null;
|
|
|
9851 |
}
|
|
|
9852 |
}
|
|
|
9853 |
|
|
|
9854 |
/**
|
|
|
9855 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9856 |
* if it is not found.
|
|
|
9857 |
*/
|
|
|
9858 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9859 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9860 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9861 |
return fields;
|
|
|
9862 |
}
|
|
|
9863 |
|
|
|
9864 |
/**
|
|
|
9865 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9866 |
*/
|
|
|
9867 |
public static _Fields findByName(String name) {
|
|
|
9868 |
return byName.get(name);
|
|
|
9869 |
}
|
|
|
9870 |
|
|
|
9871 |
private final short _thriftId;
|
|
|
9872 |
private final String _fieldName;
|
|
|
9873 |
|
|
|
9874 |
_Fields(short thriftId, String fieldName) {
|
|
|
9875 |
_thriftId = thriftId;
|
|
|
9876 |
_fieldName = fieldName;
|
|
|
9877 |
}
|
|
|
9878 |
|
|
|
9879 |
public short getThriftFieldId() {
|
|
|
9880 |
return _thriftId;
|
|
|
9881 |
}
|
|
|
9882 |
|
|
|
9883 |
public String getFieldName() {
|
|
|
9884 |
return _fieldName;
|
|
|
9885 |
}
|
|
|
9886 |
}
|
|
|
9887 |
|
|
|
9888 |
// isset id assignments
|
|
|
9889 |
private static final int __DATE_ISSET_ID = 0;
|
|
|
9890 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9891 |
|
|
|
9892 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9893 |
static {
|
|
|
9894 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9895 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9896 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9897 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9898 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_args.class, metaDataMap);
|
|
|
9899 |
}
|
|
|
9900 |
|
|
|
9901 |
public fetchScansPerInvoiceNumber_args() {
|
|
|
9902 |
}
|
|
|
9903 |
|
|
|
9904 |
public fetchScansPerInvoiceNumber_args(
|
|
|
9905 |
long date)
|
|
|
9906 |
{
|
|
|
9907 |
this();
|
|
|
9908 |
this.date = date;
|
|
|
9909 |
setDateIsSet(true);
|
|
|
9910 |
}
|
|
|
9911 |
|
|
|
9912 |
/**
|
|
|
9913 |
* Performs a deep copy on <i>other</i>.
|
|
|
9914 |
*/
|
|
|
9915 |
public fetchScansPerInvoiceNumber_args(fetchScansPerInvoiceNumber_args other) {
|
|
|
9916 |
__isset_bit_vector.clear();
|
|
|
9917 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9918 |
this.date = other.date;
|
|
|
9919 |
}
|
|
|
9920 |
|
|
|
9921 |
public fetchScansPerInvoiceNumber_args deepCopy() {
|
|
|
9922 |
return new fetchScansPerInvoiceNumber_args(this);
|
|
|
9923 |
}
|
|
|
9924 |
|
|
|
9925 |
@Override
|
|
|
9926 |
public void clear() {
|
|
|
9927 |
setDateIsSet(false);
|
|
|
9928 |
this.date = 0;
|
|
|
9929 |
}
|
|
|
9930 |
|
|
|
9931 |
public long getDate() {
|
|
|
9932 |
return this.date;
|
|
|
9933 |
}
|
|
|
9934 |
|
|
|
9935 |
public void setDate(long date) {
|
|
|
9936 |
this.date = date;
|
|
|
9937 |
setDateIsSet(true);
|
|
|
9938 |
}
|
|
|
9939 |
|
|
|
9940 |
public void unsetDate() {
|
|
|
9941 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
|
|
9942 |
}
|
|
|
9943 |
|
|
|
9944 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
9945 |
public boolean isSetDate() {
|
|
|
9946 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
|
|
9947 |
}
|
|
|
9948 |
|
|
|
9949 |
public void setDateIsSet(boolean value) {
|
|
|
9950 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
|
|
9951 |
}
|
|
|
9952 |
|
|
|
9953 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9954 |
switch (field) {
|
|
|
9955 |
case DATE:
|
|
|
9956 |
if (value == null) {
|
|
|
9957 |
unsetDate();
|
|
|
9958 |
} else {
|
|
|
9959 |
setDate((Long)value);
|
|
|
9960 |
}
|
|
|
9961 |
break;
|
|
|
9962 |
|
|
|
9963 |
}
|
|
|
9964 |
}
|
|
|
9965 |
|
|
|
9966 |
public Object getFieldValue(_Fields field) {
|
|
|
9967 |
switch (field) {
|
|
|
9968 |
case DATE:
|
|
|
9969 |
return Long.valueOf(getDate());
|
|
|
9970 |
|
|
|
9971 |
}
|
|
|
9972 |
throw new IllegalStateException();
|
|
|
9973 |
}
|
|
|
9974 |
|
|
|
9975 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9976 |
public boolean isSet(_Fields field) {
|
|
|
9977 |
if (field == null) {
|
|
|
9978 |
throw new IllegalArgumentException();
|
|
|
9979 |
}
|
|
|
9980 |
|
|
|
9981 |
switch (field) {
|
|
|
9982 |
case DATE:
|
|
|
9983 |
return isSetDate();
|
|
|
9984 |
}
|
|
|
9985 |
throw new IllegalStateException();
|
|
|
9986 |
}
|
|
|
9987 |
|
|
|
9988 |
@Override
|
|
|
9989 |
public boolean equals(Object that) {
|
|
|
9990 |
if (that == null)
|
|
|
9991 |
return false;
|
|
|
9992 |
if (that instanceof fetchScansPerInvoiceNumber_args)
|
|
|
9993 |
return this.equals((fetchScansPerInvoiceNumber_args)that);
|
|
|
9994 |
return false;
|
|
|
9995 |
}
|
|
|
9996 |
|
|
|
9997 |
public boolean equals(fetchScansPerInvoiceNumber_args that) {
|
|
|
9998 |
if (that == null)
|
|
|
9999 |
return false;
|
|
|
10000 |
|
|
|
10001 |
boolean this_present_date = true;
|
|
|
10002 |
boolean that_present_date = true;
|
|
|
10003 |
if (this_present_date || that_present_date) {
|
|
|
10004 |
if (!(this_present_date && that_present_date))
|
|
|
10005 |
return false;
|
|
|
10006 |
if (this.date != that.date)
|
|
|
10007 |
return false;
|
|
|
10008 |
}
|
|
|
10009 |
|
|
|
10010 |
return true;
|
|
|
10011 |
}
|
|
|
10012 |
|
|
|
10013 |
@Override
|
|
|
10014 |
public int hashCode() {
|
|
|
10015 |
return 0;
|
|
|
10016 |
}
|
|
|
10017 |
|
|
|
10018 |
public int compareTo(fetchScansPerInvoiceNumber_args other) {
|
|
|
10019 |
if (!getClass().equals(other.getClass())) {
|
|
|
10020 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10021 |
}
|
|
|
10022 |
|
|
|
10023 |
int lastComparison = 0;
|
|
|
10024 |
fetchScansPerInvoiceNumber_args typedOther = (fetchScansPerInvoiceNumber_args)other;
|
|
|
10025 |
|
|
|
10026 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
|
|
10027 |
if (lastComparison != 0) {
|
|
|
10028 |
return lastComparison;
|
|
|
10029 |
}
|
|
|
10030 |
if (isSetDate()) {
|
|
|
10031 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
|
|
10032 |
if (lastComparison != 0) {
|
|
|
10033 |
return lastComparison;
|
|
|
10034 |
}
|
|
|
10035 |
}
|
|
|
10036 |
return 0;
|
|
|
10037 |
}
|
|
|
10038 |
|
|
|
10039 |
public _Fields fieldForId(int fieldId) {
|
|
|
10040 |
return _Fields.findByThriftId(fieldId);
|
|
|
10041 |
}
|
|
|
10042 |
|
|
|
10043 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10044 |
org.apache.thrift.protocol.TField field;
|
|
|
10045 |
iprot.readStructBegin();
|
|
|
10046 |
while (true)
|
|
|
10047 |
{
|
|
|
10048 |
field = iprot.readFieldBegin();
|
|
|
10049 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10050 |
break;
|
|
|
10051 |
}
|
|
|
10052 |
switch (field.id) {
|
|
|
10053 |
case 1: // DATE
|
|
|
10054 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10055 |
this.date = iprot.readI64();
|
|
|
10056 |
setDateIsSet(true);
|
|
|
10057 |
} else {
|
|
|
10058 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10059 |
}
|
|
|
10060 |
break;
|
|
|
10061 |
default:
|
|
|
10062 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10063 |
}
|
|
|
10064 |
iprot.readFieldEnd();
|
|
|
10065 |
}
|
|
|
10066 |
iprot.readStructEnd();
|
|
|
10067 |
validate();
|
|
|
10068 |
}
|
|
|
10069 |
|
|
|
10070 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10071 |
validate();
|
|
|
10072 |
|
|
|
10073 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10074 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
10075 |
oprot.writeI64(this.date);
|
|
|
10076 |
oprot.writeFieldEnd();
|
|
|
10077 |
oprot.writeFieldStop();
|
|
|
10078 |
oprot.writeStructEnd();
|
|
|
10079 |
}
|
|
|
10080 |
|
|
|
10081 |
@Override
|
|
|
10082 |
public String toString() {
|
|
|
10083 |
StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_args(");
|
|
|
10084 |
boolean first = true;
|
|
|
10085 |
|
|
|
10086 |
sb.append("date:");
|
|
|
10087 |
sb.append(this.date);
|
|
|
10088 |
first = false;
|
|
|
10089 |
sb.append(")");
|
|
|
10090 |
return sb.toString();
|
|
|
10091 |
}
|
|
|
10092 |
|
|
|
10093 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10094 |
// check for required fields
|
|
|
10095 |
}
|
|
|
10096 |
|
|
|
10097 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10098 |
try {
|
|
|
10099 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10100 |
} catch (org.apache.thrift.TException te) {
|
|
|
10101 |
throw new java.io.IOException(te);
|
|
|
10102 |
}
|
|
|
10103 |
}
|
|
|
10104 |
|
|
|
10105 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10106 |
try {
|
|
|
10107 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10108 |
} catch (org.apache.thrift.TException te) {
|
|
|
10109 |
throw new java.io.IOException(te);
|
|
|
10110 |
}
|
|
|
10111 |
}
|
|
|
10112 |
|
|
|
10113 |
}
|
|
|
10114 |
|
|
|
10115 |
public static class fetchScansPerInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_result, fetchScansPerInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10116 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_result");
|
|
|
10117 |
|
|
|
10118 |
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);
|
|
|
10119 |
|
|
|
10120 |
private List<InvoiceScan> success; // required
|
|
|
10121 |
|
|
|
10122 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10123 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10124 |
SUCCESS((short)0, "success");
|
|
|
10125 |
|
|
|
10126 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10127 |
|
|
|
10128 |
static {
|
|
|
10129 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10130 |
byName.put(field.getFieldName(), field);
|
|
|
10131 |
}
|
|
|
10132 |
}
|
|
|
10133 |
|
|
|
10134 |
/**
|
|
|
10135 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10136 |
*/
|
|
|
10137 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10138 |
switch(fieldId) {
|
|
|
10139 |
case 0: // SUCCESS
|
|
|
10140 |
return SUCCESS;
|
|
|
10141 |
default:
|
|
|
10142 |
return null;
|
|
|
10143 |
}
|
|
|
10144 |
}
|
|
|
10145 |
|
|
|
10146 |
/**
|
|
|
10147 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10148 |
* if it is not found.
|
|
|
10149 |
*/
|
|
|
10150 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10151 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10152 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10153 |
return fields;
|
|
|
10154 |
}
|
|
|
10155 |
|
|
|
10156 |
/**
|
|
|
10157 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10158 |
*/
|
|
|
10159 |
public static _Fields findByName(String name) {
|
|
|
10160 |
return byName.get(name);
|
|
|
10161 |
}
|
|
|
10162 |
|
|
|
10163 |
private final short _thriftId;
|
|
|
10164 |
private final String _fieldName;
|
|
|
10165 |
|
|
|
10166 |
_Fields(short thriftId, String fieldName) {
|
|
|
10167 |
_thriftId = thriftId;
|
|
|
10168 |
_fieldName = fieldName;
|
|
|
10169 |
}
|
|
|
10170 |
|
|
|
10171 |
public short getThriftFieldId() {
|
|
|
10172 |
return _thriftId;
|
|
|
10173 |
}
|
|
|
10174 |
|
|
|
10175 |
public String getFieldName() {
|
|
|
10176 |
return _fieldName;
|
|
|
10177 |
}
|
|
|
10178 |
}
|
|
|
10179 |
|
|
|
10180 |
// isset id assignments
|
|
|
10181 |
|
|
|
10182 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10183 |
static {
|
|
|
10184 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10185 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10186 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
10187 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvoiceScan.class))));
|
|
|
10188 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10189 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_result.class, metaDataMap);
|
|
|
10190 |
}
|
|
|
10191 |
|
|
|
10192 |
public fetchScansPerInvoiceNumber_result() {
|
|
|
10193 |
}
|
|
|
10194 |
|
|
|
10195 |
public fetchScansPerInvoiceNumber_result(
|
|
|
10196 |
List<InvoiceScan> success)
|
|
|
10197 |
{
|
|
|
10198 |
this();
|
|
|
10199 |
this.success = success;
|
|
|
10200 |
}
|
|
|
10201 |
|
|
|
10202 |
/**
|
|
|
10203 |
* Performs a deep copy on <i>other</i>.
|
|
|
10204 |
*/
|
|
|
10205 |
public fetchScansPerInvoiceNumber_result(fetchScansPerInvoiceNumber_result other) {
|
|
|
10206 |
if (other.isSetSuccess()) {
|
|
|
10207 |
List<InvoiceScan> __this__success = new ArrayList<InvoiceScan>();
|
|
|
10208 |
for (InvoiceScan other_element : other.success) {
|
|
|
10209 |
__this__success.add(new InvoiceScan(other_element));
|
|
|
10210 |
}
|
|
|
10211 |
this.success = __this__success;
|
|
|
10212 |
}
|
|
|
10213 |
}
|
|
|
10214 |
|
|
|
10215 |
public fetchScansPerInvoiceNumber_result deepCopy() {
|
|
|
10216 |
return new fetchScansPerInvoiceNumber_result(this);
|
|
|
10217 |
}
|
|
|
10218 |
|
|
|
10219 |
@Override
|
|
|
10220 |
public void clear() {
|
|
|
10221 |
this.success = null;
|
|
|
10222 |
}
|
|
|
10223 |
|
|
|
10224 |
public int getSuccessSize() {
|
|
|
10225 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
10226 |
}
|
|
|
10227 |
|
|
|
10228 |
public java.util.Iterator<InvoiceScan> getSuccessIterator() {
|
|
|
10229 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
10230 |
}
|
|
|
10231 |
|
|
|
10232 |
public void addToSuccess(InvoiceScan elem) {
|
|
|
10233 |
if (this.success == null) {
|
|
|
10234 |
this.success = new ArrayList<InvoiceScan>();
|
|
|
10235 |
}
|
|
|
10236 |
this.success.add(elem);
|
|
|
10237 |
}
|
|
|
10238 |
|
|
|
10239 |
public List<InvoiceScan> getSuccess() {
|
|
|
10240 |
return this.success;
|
|
|
10241 |
}
|
|
|
10242 |
|
|
|
10243 |
public void setSuccess(List<InvoiceScan> success) {
|
|
|
10244 |
this.success = success;
|
|
|
10245 |
}
|
|
|
10246 |
|
|
|
10247 |
public void unsetSuccess() {
|
|
|
10248 |
this.success = null;
|
|
|
10249 |
}
|
|
|
10250 |
|
|
|
10251 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10252 |
public boolean isSetSuccess() {
|
|
|
10253 |
return this.success != null;
|
|
|
10254 |
}
|
|
|
10255 |
|
|
|
10256 |
public void setSuccessIsSet(boolean value) {
|
|
|
10257 |
if (!value) {
|
|
|
10258 |
this.success = null;
|
|
|
10259 |
}
|
|
|
10260 |
}
|
|
|
10261 |
|
|
|
10262 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10263 |
switch (field) {
|
|
|
10264 |
case SUCCESS:
|
|
|
10265 |
if (value == null) {
|
|
|
10266 |
unsetSuccess();
|
|
|
10267 |
} else {
|
|
|
10268 |
setSuccess((List<InvoiceScan>)value);
|
|
|
10269 |
}
|
|
|
10270 |
break;
|
|
|
10271 |
|
|
|
10272 |
}
|
|
|
10273 |
}
|
|
|
10274 |
|
|
|
10275 |
public Object getFieldValue(_Fields field) {
|
|
|
10276 |
switch (field) {
|
|
|
10277 |
case SUCCESS:
|
|
|
10278 |
return getSuccess();
|
|
|
10279 |
|
|
|
10280 |
}
|
|
|
10281 |
throw new IllegalStateException();
|
|
|
10282 |
}
|
|
|
10283 |
|
|
|
10284 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10285 |
public boolean isSet(_Fields field) {
|
|
|
10286 |
if (field == null) {
|
|
|
10287 |
throw new IllegalArgumentException();
|
|
|
10288 |
}
|
|
|
10289 |
|
|
|
10290 |
switch (field) {
|
|
|
10291 |
case SUCCESS:
|
|
|
10292 |
return isSetSuccess();
|
|
|
10293 |
}
|
|
|
10294 |
throw new IllegalStateException();
|
|
|
10295 |
}
|
|
|
10296 |
|
|
|
10297 |
@Override
|
|
|
10298 |
public boolean equals(Object that) {
|
|
|
10299 |
if (that == null)
|
|
|
10300 |
return false;
|
|
|
10301 |
if (that instanceof fetchScansPerInvoiceNumber_result)
|
|
|
10302 |
return this.equals((fetchScansPerInvoiceNumber_result)that);
|
|
|
10303 |
return false;
|
|
|
10304 |
}
|
|
|
10305 |
|
|
|
10306 |
public boolean equals(fetchScansPerInvoiceNumber_result that) {
|
|
|
10307 |
if (that == null)
|
|
|
10308 |
return false;
|
|
|
10309 |
|
|
|
10310 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10311 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10312 |
if (this_present_success || that_present_success) {
|
|
|
10313 |
if (!(this_present_success && that_present_success))
|
|
|
10314 |
return false;
|
|
|
10315 |
if (!this.success.equals(that.success))
|
|
|
10316 |
return false;
|
|
|
10317 |
}
|
|
|
10318 |
|
|
|
10319 |
return true;
|
|
|
10320 |
}
|
|
|
10321 |
|
|
|
10322 |
@Override
|
|
|
10323 |
public int hashCode() {
|
|
|
10324 |
return 0;
|
|
|
10325 |
}
|
|
|
10326 |
|
|
|
10327 |
public int compareTo(fetchScansPerInvoiceNumber_result other) {
|
|
|
10328 |
if (!getClass().equals(other.getClass())) {
|
|
|
10329 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10330 |
}
|
|
|
10331 |
|
|
|
10332 |
int lastComparison = 0;
|
|
|
10333 |
fetchScansPerInvoiceNumber_result typedOther = (fetchScansPerInvoiceNumber_result)other;
|
|
|
10334 |
|
|
|
10335 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10336 |
if (lastComparison != 0) {
|
|
|
10337 |
return lastComparison;
|
|
|
10338 |
}
|
|
|
10339 |
if (isSetSuccess()) {
|
|
|
10340 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10341 |
if (lastComparison != 0) {
|
|
|
10342 |
return lastComparison;
|
|
|
10343 |
}
|
|
|
10344 |
}
|
|
|
10345 |
return 0;
|
|
|
10346 |
}
|
|
|
10347 |
|
|
|
10348 |
public _Fields fieldForId(int fieldId) {
|
|
|
10349 |
return _Fields.findByThriftId(fieldId);
|
|
|
10350 |
}
|
|
|
10351 |
|
|
|
10352 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10353 |
org.apache.thrift.protocol.TField field;
|
|
|
10354 |
iprot.readStructBegin();
|
|
|
10355 |
while (true)
|
|
|
10356 |
{
|
|
|
10357 |
field = iprot.readFieldBegin();
|
|
|
10358 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10359 |
break;
|
|
|
10360 |
}
|
|
|
10361 |
switch (field.id) {
|
|
|
10362 |
case 0: // SUCCESS
|
|
|
10363 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
10364 |
{
|
|
|
10365 |
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
|
|
|
10366 |
this.success = new ArrayList<InvoiceScan>(_list16.size);
|
|
|
10367 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
|
|
10368 |
{
|
|
|
10369 |
InvoiceScan _elem18; // required
|
|
|
10370 |
_elem18 = new InvoiceScan();
|
|
|
10371 |
_elem18.read(iprot);
|
|
|
10372 |
this.success.add(_elem18);
|
|
|
10373 |
}
|
|
|
10374 |
iprot.readListEnd();
|
|
|
10375 |
}
|
|
|
10376 |
} else {
|
|
|
10377 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10378 |
}
|
|
|
10379 |
break;
|
|
|
10380 |
default:
|
|
|
10381 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10382 |
}
|
|
|
10383 |
iprot.readFieldEnd();
|
|
|
10384 |
}
|
|
|
10385 |
iprot.readStructEnd();
|
|
|
10386 |
validate();
|
|
|
10387 |
}
|
|
|
10388 |
|
|
|
10389 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10390 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10391 |
|
|
|
10392 |
if (this.isSetSuccess()) {
|
|
|
10393 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10394 |
{
|
|
|
10395 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
10396 |
for (InvoiceScan _iter19 : this.success)
|
|
|
10397 |
{
|
|
|
10398 |
_iter19.write(oprot);
|
|
|
10399 |
}
|
|
|
10400 |
oprot.writeListEnd();
|
|
|
10401 |
}
|
|
|
10402 |
oprot.writeFieldEnd();
|
|
|
10403 |
}
|
|
|
10404 |
oprot.writeFieldStop();
|
|
|
10405 |
oprot.writeStructEnd();
|
|
|
10406 |
}
|
|
|
10407 |
|
|
|
10408 |
@Override
|
|
|
10409 |
public String toString() {
|
|
|
10410 |
StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_result(");
|
|
|
10411 |
boolean first = true;
|
|
|
10412 |
|
|
|
10413 |
sb.append("success:");
|
|
|
10414 |
if (this.success == null) {
|
|
|
10415 |
sb.append("null");
|
|
|
10416 |
} else {
|
|
|
10417 |
sb.append(this.success);
|
|
|
10418 |
}
|
|
|
10419 |
first = false;
|
|
|
10420 |
sb.append(")");
|
|
|
10421 |
return sb.toString();
|
|
|
10422 |
}
|
|
|
10423 |
|
|
|
10424 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10425 |
// check for required fields
|
|
|
10426 |
}
|
|
|
10427 |
|
|
|
10428 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10429 |
try {
|
|
|
10430 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10431 |
} catch (org.apache.thrift.TException te) {
|
|
|
10432 |
throw new java.io.IOException(te);
|
|
|
10433 |
}
|
|
|
10434 |
}
|
|
|
10435 |
|
|
|
10436 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10437 |
try {
|
|
|
10438 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10439 |
} catch (org.apache.thrift.TException te) {
|
|
|
10440 |
throw new java.io.IOException(te);
|
|
|
10441 |
}
|
|
|
10442 |
}
|
|
|
10443 |
|
|
|
10444 |
}
|
|
|
10445 |
|
| 5620 |
mandeep.dh |
10446 |
public static class getInventoryItemFromOrder_args implements org.apache.thrift.TBase<getInventoryItemFromOrder_args, getInventoryItemFromOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10447 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_args");
|
|
|
10448 |
|
|
|
10449 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
10450 |
|
|
|
10451 |
private long orderId; // required
|
|
|
10452 |
|
|
|
10453 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10454 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10455 |
ORDER_ID((short)1, "orderId");
|
|
|
10456 |
|
|
|
10457 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10458 |
|
|
|
10459 |
static {
|
|
|
10460 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10461 |
byName.put(field.getFieldName(), field);
|
|
|
10462 |
}
|
|
|
10463 |
}
|
|
|
10464 |
|
|
|
10465 |
/**
|
|
|
10466 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10467 |
*/
|
|
|
10468 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10469 |
switch(fieldId) {
|
|
|
10470 |
case 1: // ORDER_ID
|
|
|
10471 |
return ORDER_ID;
|
|
|
10472 |
default:
|
|
|
10473 |
return null;
|
|
|
10474 |
}
|
|
|
10475 |
}
|
|
|
10476 |
|
|
|
10477 |
/**
|
|
|
10478 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10479 |
* if it is not found.
|
|
|
10480 |
*/
|
|
|
10481 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10482 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10483 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10484 |
return fields;
|
|
|
10485 |
}
|
|
|
10486 |
|
|
|
10487 |
/**
|
|
|
10488 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10489 |
*/
|
|
|
10490 |
public static _Fields findByName(String name) {
|
|
|
10491 |
return byName.get(name);
|
|
|
10492 |
}
|
|
|
10493 |
|
|
|
10494 |
private final short _thriftId;
|
|
|
10495 |
private final String _fieldName;
|
|
|
10496 |
|
|
|
10497 |
_Fields(short thriftId, String fieldName) {
|
|
|
10498 |
_thriftId = thriftId;
|
|
|
10499 |
_fieldName = fieldName;
|
|
|
10500 |
}
|
|
|
10501 |
|
|
|
10502 |
public short getThriftFieldId() {
|
|
|
10503 |
return _thriftId;
|
|
|
10504 |
}
|
|
|
10505 |
|
|
|
10506 |
public String getFieldName() {
|
|
|
10507 |
return _fieldName;
|
|
|
10508 |
}
|
|
|
10509 |
}
|
|
|
10510 |
|
|
|
10511 |
// isset id assignments
|
|
|
10512 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
10513 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
10514 |
|
|
|
10515 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10516 |
static {
|
|
|
10517 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10518 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10519 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10520 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10521 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_args.class, metaDataMap);
|
|
|
10522 |
}
|
|
|
10523 |
|
|
|
10524 |
public getInventoryItemFromOrder_args() {
|
|
|
10525 |
}
|
|
|
10526 |
|
|
|
10527 |
public getInventoryItemFromOrder_args(
|
|
|
10528 |
long orderId)
|
|
|
10529 |
{
|
|
|
10530 |
this();
|
|
|
10531 |
this.orderId = orderId;
|
|
|
10532 |
setOrderIdIsSet(true);
|
|
|
10533 |
}
|
|
|
10534 |
|
|
|
10535 |
/**
|
|
|
10536 |
* Performs a deep copy on <i>other</i>.
|
|
|
10537 |
*/
|
|
|
10538 |
public getInventoryItemFromOrder_args(getInventoryItemFromOrder_args other) {
|
|
|
10539 |
__isset_bit_vector.clear();
|
|
|
10540 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10541 |
this.orderId = other.orderId;
|
|
|
10542 |
}
|
|
|
10543 |
|
|
|
10544 |
public getInventoryItemFromOrder_args deepCopy() {
|
|
|
10545 |
return new getInventoryItemFromOrder_args(this);
|
|
|
10546 |
}
|
|
|
10547 |
|
|
|
10548 |
@Override
|
|
|
10549 |
public void clear() {
|
|
|
10550 |
setOrderIdIsSet(false);
|
|
|
10551 |
this.orderId = 0;
|
|
|
10552 |
}
|
|
|
10553 |
|
|
|
10554 |
public long getOrderId() {
|
|
|
10555 |
return this.orderId;
|
|
|
10556 |
}
|
|
|
10557 |
|
|
|
10558 |
public void setOrderId(long orderId) {
|
|
|
10559 |
this.orderId = orderId;
|
|
|
10560 |
setOrderIdIsSet(true);
|
|
|
10561 |
}
|
|
|
10562 |
|
|
|
10563 |
public void unsetOrderId() {
|
|
|
10564 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
10565 |
}
|
|
|
10566 |
|
|
|
10567 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
10568 |
public boolean isSetOrderId() {
|
|
|
10569 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
10570 |
}
|
|
|
10571 |
|
|
|
10572 |
public void setOrderIdIsSet(boolean value) {
|
|
|
10573 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
10574 |
}
|
|
|
10575 |
|
|
|
10576 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10577 |
switch (field) {
|
|
|
10578 |
case ORDER_ID:
|
|
|
10579 |
if (value == null) {
|
|
|
10580 |
unsetOrderId();
|
|
|
10581 |
} else {
|
|
|
10582 |
setOrderId((Long)value);
|
|
|
10583 |
}
|
|
|
10584 |
break;
|
|
|
10585 |
|
|
|
10586 |
}
|
|
|
10587 |
}
|
|
|
10588 |
|
|
|
10589 |
public Object getFieldValue(_Fields field) {
|
|
|
10590 |
switch (field) {
|
|
|
10591 |
case ORDER_ID:
|
|
|
10592 |
return Long.valueOf(getOrderId());
|
|
|
10593 |
|
|
|
10594 |
}
|
|
|
10595 |
throw new IllegalStateException();
|
|
|
10596 |
}
|
|
|
10597 |
|
|
|
10598 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10599 |
public boolean isSet(_Fields field) {
|
|
|
10600 |
if (field == null) {
|
|
|
10601 |
throw new IllegalArgumentException();
|
|
|
10602 |
}
|
|
|
10603 |
|
|
|
10604 |
switch (field) {
|
|
|
10605 |
case ORDER_ID:
|
|
|
10606 |
return isSetOrderId();
|
|
|
10607 |
}
|
|
|
10608 |
throw new IllegalStateException();
|
|
|
10609 |
}
|
|
|
10610 |
|
|
|
10611 |
@Override
|
|
|
10612 |
public boolean equals(Object that) {
|
|
|
10613 |
if (that == null)
|
|
|
10614 |
return false;
|
|
|
10615 |
if (that instanceof getInventoryItemFromOrder_args)
|
|
|
10616 |
return this.equals((getInventoryItemFromOrder_args)that);
|
|
|
10617 |
return false;
|
|
|
10618 |
}
|
|
|
10619 |
|
|
|
10620 |
public boolean equals(getInventoryItemFromOrder_args that) {
|
|
|
10621 |
if (that == null)
|
|
|
10622 |
return false;
|
|
|
10623 |
|
|
|
10624 |
boolean this_present_orderId = true;
|
|
|
10625 |
boolean that_present_orderId = true;
|
|
|
10626 |
if (this_present_orderId || that_present_orderId) {
|
|
|
10627 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
10628 |
return false;
|
|
|
10629 |
if (this.orderId != that.orderId)
|
|
|
10630 |
return false;
|
|
|
10631 |
}
|
|
|
10632 |
|
|
|
10633 |
return true;
|
|
|
10634 |
}
|
|
|
10635 |
|
|
|
10636 |
@Override
|
|
|
10637 |
public int hashCode() {
|
|
|
10638 |
return 0;
|
|
|
10639 |
}
|
|
|
10640 |
|
|
|
10641 |
public int compareTo(getInventoryItemFromOrder_args other) {
|
|
|
10642 |
if (!getClass().equals(other.getClass())) {
|
|
|
10643 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10644 |
}
|
|
|
10645 |
|
|
|
10646 |
int lastComparison = 0;
|
|
|
10647 |
getInventoryItemFromOrder_args typedOther = (getInventoryItemFromOrder_args)other;
|
|
|
10648 |
|
|
|
10649 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
10650 |
if (lastComparison != 0) {
|
|
|
10651 |
return lastComparison;
|
|
|
10652 |
}
|
|
|
10653 |
if (isSetOrderId()) {
|
|
|
10654 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
10655 |
if (lastComparison != 0) {
|
|
|
10656 |
return lastComparison;
|
|
|
10657 |
}
|
|
|
10658 |
}
|
|
|
10659 |
return 0;
|
|
|
10660 |
}
|
|
|
10661 |
|
|
|
10662 |
public _Fields fieldForId(int fieldId) {
|
|
|
10663 |
return _Fields.findByThriftId(fieldId);
|
|
|
10664 |
}
|
|
|
10665 |
|
|
|
10666 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10667 |
org.apache.thrift.protocol.TField field;
|
|
|
10668 |
iprot.readStructBegin();
|
|
|
10669 |
while (true)
|
|
|
10670 |
{
|
|
|
10671 |
field = iprot.readFieldBegin();
|
|
|
10672 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10673 |
break;
|
|
|
10674 |
}
|
|
|
10675 |
switch (field.id) {
|
|
|
10676 |
case 1: // ORDER_ID
|
|
|
10677 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10678 |
this.orderId = iprot.readI64();
|
|
|
10679 |
setOrderIdIsSet(true);
|
|
|
10680 |
} else {
|
|
|
10681 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10682 |
}
|
|
|
10683 |
break;
|
|
|
10684 |
default:
|
|
|
10685 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10686 |
}
|
|
|
10687 |
iprot.readFieldEnd();
|
|
|
10688 |
}
|
|
|
10689 |
iprot.readStructEnd();
|
|
|
10690 |
validate();
|
|
|
10691 |
}
|
|
|
10692 |
|
|
|
10693 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10694 |
validate();
|
|
|
10695 |
|
|
|
10696 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10697 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
10698 |
oprot.writeI64(this.orderId);
|
|
|
10699 |
oprot.writeFieldEnd();
|
|
|
10700 |
oprot.writeFieldStop();
|
|
|
10701 |
oprot.writeStructEnd();
|
|
|
10702 |
}
|
|
|
10703 |
|
|
|
10704 |
@Override
|
|
|
10705 |
public String toString() {
|
|
|
10706 |
StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_args(");
|
|
|
10707 |
boolean first = true;
|
|
|
10708 |
|
|
|
10709 |
sb.append("orderId:");
|
|
|
10710 |
sb.append(this.orderId);
|
|
|
10711 |
first = false;
|
|
|
10712 |
sb.append(")");
|
|
|
10713 |
return sb.toString();
|
|
|
10714 |
}
|
|
|
10715 |
|
|
|
10716 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10717 |
// check for required fields
|
|
|
10718 |
}
|
|
|
10719 |
|
|
|
10720 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10721 |
try {
|
|
|
10722 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10723 |
} catch (org.apache.thrift.TException te) {
|
|
|
10724 |
throw new java.io.IOException(te);
|
|
|
10725 |
}
|
|
|
10726 |
}
|
|
|
10727 |
|
|
|
10728 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10729 |
try {
|
|
|
10730 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10731 |
__isset_bit_vector = new BitSet(1);
|
|
|
10732 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10733 |
} catch (org.apache.thrift.TException te) {
|
|
|
10734 |
throw new java.io.IOException(te);
|
|
|
10735 |
}
|
|
|
10736 |
}
|
|
|
10737 |
|
|
|
10738 |
}
|
|
|
10739 |
|
|
|
10740 |
public static class getInventoryItemFromOrder_result implements org.apache.thrift.TBase<getInventoryItemFromOrder_result, getInventoryItemFromOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10741 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_result");
|
|
|
10742 |
|
|
|
10743 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
10744 |
private static final org.apache.thrift.protocol.TField WE_FIELD_DESC = new org.apache.thrift.protocol.TField("we", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
10745 |
|
|
|
10746 |
private InventoryItem success; // required
|
|
|
10747 |
private WarehouseServiceException we; // required
|
|
|
10748 |
|
|
|
10749 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10750 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10751 |
SUCCESS((short)0, "success"),
|
|
|
10752 |
WE((short)1, "we");
|
|
|
10753 |
|
|
|
10754 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10755 |
|
|
|
10756 |
static {
|
|
|
10757 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10758 |
byName.put(field.getFieldName(), field);
|
|
|
10759 |
}
|
|
|
10760 |
}
|
|
|
10761 |
|
|
|
10762 |
/**
|
|
|
10763 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10764 |
*/
|
|
|
10765 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10766 |
switch(fieldId) {
|
|
|
10767 |
case 0: // SUCCESS
|
|
|
10768 |
return SUCCESS;
|
|
|
10769 |
case 1: // WE
|
|
|
10770 |
return WE;
|
|
|
10771 |
default:
|
|
|
10772 |
return null;
|
|
|
10773 |
}
|
|
|
10774 |
}
|
|
|
10775 |
|
|
|
10776 |
/**
|
|
|
10777 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10778 |
* if it is not found.
|
|
|
10779 |
*/
|
|
|
10780 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10781 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10782 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10783 |
return fields;
|
|
|
10784 |
}
|
|
|
10785 |
|
|
|
10786 |
/**
|
|
|
10787 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10788 |
*/
|
|
|
10789 |
public static _Fields findByName(String name) {
|
|
|
10790 |
return byName.get(name);
|
|
|
10791 |
}
|
|
|
10792 |
|
|
|
10793 |
private final short _thriftId;
|
|
|
10794 |
private final String _fieldName;
|
|
|
10795 |
|
|
|
10796 |
_Fields(short thriftId, String fieldName) {
|
|
|
10797 |
_thriftId = thriftId;
|
|
|
10798 |
_fieldName = fieldName;
|
|
|
10799 |
}
|
|
|
10800 |
|
|
|
10801 |
public short getThriftFieldId() {
|
|
|
10802 |
return _thriftId;
|
|
|
10803 |
}
|
|
|
10804 |
|
|
|
10805 |
public String getFieldName() {
|
|
|
10806 |
return _fieldName;
|
|
|
10807 |
}
|
|
|
10808 |
}
|
|
|
10809 |
|
|
|
10810 |
// isset id assignments
|
|
|
10811 |
|
|
|
10812 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10813 |
static {
|
|
|
10814 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10815 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10816 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
10817 |
tmpMap.put(_Fields.WE, new org.apache.thrift.meta_data.FieldMetaData("we", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10818 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
10819 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10820 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_result.class, metaDataMap);
|
|
|
10821 |
}
|
|
|
10822 |
|
|
|
10823 |
public getInventoryItemFromOrder_result() {
|
|
|
10824 |
}
|
|
|
10825 |
|
|
|
10826 |
public getInventoryItemFromOrder_result(
|
|
|
10827 |
InventoryItem success,
|
|
|
10828 |
WarehouseServiceException we)
|
|
|
10829 |
{
|
|
|
10830 |
this();
|
|
|
10831 |
this.success = success;
|
|
|
10832 |
this.we = we;
|
|
|
10833 |
}
|
|
|
10834 |
|
|
|
10835 |
/**
|
|
|
10836 |
* Performs a deep copy on <i>other</i>.
|
|
|
10837 |
*/
|
|
|
10838 |
public getInventoryItemFromOrder_result(getInventoryItemFromOrder_result other) {
|
|
|
10839 |
if (other.isSetSuccess()) {
|
|
|
10840 |
this.success = new InventoryItem(other.success);
|
|
|
10841 |
}
|
|
|
10842 |
if (other.isSetWe()) {
|
|
|
10843 |
this.we = new WarehouseServiceException(other.we);
|
|
|
10844 |
}
|
|
|
10845 |
}
|
|
|
10846 |
|
|
|
10847 |
public getInventoryItemFromOrder_result deepCopy() {
|
|
|
10848 |
return new getInventoryItemFromOrder_result(this);
|
|
|
10849 |
}
|
|
|
10850 |
|
|
|
10851 |
@Override
|
|
|
10852 |
public void clear() {
|
|
|
10853 |
this.success = null;
|
|
|
10854 |
this.we = null;
|
|
|
10855 |
}
|
|
|
10856 |
|
|
|
10857 |
public InventoryItem getSuccess() {
|
|
|
10858 |
return this.success;
|
|
|
10859 |
}
|
|
|
10860 |
|
|
|
10861 |
public void setSuccess(InventoryItem success) {
|
|
|
10862 |
this.success = success;
|
|
|
10863 |
}
|
|
|
10864 |
|
|
|
10865 |
public void unsetSuccess() {
|
|
|
10866 |
this.success = null;
|
|
|
10867 |
}
|
|
|
10868 |
|
|
|
10869 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10870 |
public boolean isSetSuccess() {
|
|
|
10871 |
return this.success != null;
|
|
|
10872 |
}
|
|
|
10873 |
|
|
|
10874 |
public void setSuccessIsSet(boolean value) {
|
|
|
10875 |
if (!value) {
|
|
|
10876 |
this.success = null;
|
|
|
10877 |
}
|
|
|
10878 |
}
|
|
|
10879 |
|
|
|
10880 |
public WarehouseServiceException getWe() {
|
|
|
10881 |
return this.we;
|
|
|
10882 |
}
|
|
|
10883 |
|
|
|
10884 |
public void setWe(WarehouseServiceException we) {
|
|
|
10885 |
this.we = we;
|
|
|
10886 |
}
|
|
|
10887 |
|
|
|
10888 |
public void unsetWe() {
|
|
|
10889 |
this.we = null;
|
|
|
10890 |
}
|
|
|
10891 |
|
|
|
10892 |
/** Returns true if field we is set (has been assigned a value) and false otherwise */
|
|
|
10893 |
public boolean isSetWe() {
|
|
|
10894 |
return this.we != null;
|
|
|
10895 |
}
|
|
|
10896 |
|
|
|
10897 |
public void setWeIsSet(boolean value) {
|
|
|
10898 |
if (!value) {
|
|
|
10899 |
this.we = null;
|
|
|
10900 |
}
|
|
|
10901 |
}
|
|
|
10902 |
|
|
|
10903 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10904 |
switch (field) {
|
|
|
10905 |
case SUCCESS:
|
|
|
10906 |
if (value == null) {
|
|
|
10907 |
unsetSuccess();
|
|
|
10908 |
} else {
|
|
|
10909 |
setSuccess((InventoryItem)value);
|
|
|
10910 |
}
|
|
|
10911 |
break;
|
|
|
10912 |
|
|
|
10913 |
case WE:
|
|
|
10914 |
if (value == null) {
|
|
|
10915 |
unsetWe();
|
|
|
10916 |
} else {
|
|
|
10917 |
setWe((WarehouseServiceException)value);
|
|
|
10918 |
}
|
|
|
10919 |
break;
|
|
|
10920 |
|
|
|
10921 |
}
|
|
|
10922 |
}
|
|
|
10923 |
|
|
|
10924 |
public Object getFieldValue(_Fields field) {
|
|
|
10925 |
switch (field) {
|
|
|
10926 |
case SUCCESS:
|
|
|
10927 |
return getSuccess();
|
|
|
10928 |
|
|
|
10929 |
case WE:
|
|
|
10930 |
return getWe();
|
|
|
10931 |
|
|
|
10932 |
}
|
|
|
10933 |
throw new IllegalStateException();
|
|
|
10934 |
}
|
|
|
10935 |
|
|
|
10936 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10937 |
public boolean isSet(_Fields field) {
|
|
|
10938 |
if (field == null) {
|
|
|
10939 |
throw new IllegalArgumentException();
|
|
|
10940 |
}
|
|
|
10941 |
|
|
|
10942 |
switch (field) {
|
|
|
10943 |
case SUCCESS:
|
|
|
10944 |
return isSetSuccess();
|
|
|
10945 |
case WE:
|
|
|
10946 |
return isSetWe();
|
|
|
10947 |
}
|
|
|
10948 |
throw new IllegalStateException();
|
|
|
10949 |
}
|
|
|
10950 |
|
|
|
10951 |
@Override
|
|
|
10952 |
public boolean equals(Object that) {
|
|
|
10953 |
if (that == null)
|
|
|
10954 |
return false;
|
|
|
10955 |
if (that instanceof getInventoryItemFromOrder_result)
|
|
|
10956 |
return this.equals((getInventoryItemFromOrder_result)that);
|
|
|
10957 |
return false;
|
|
|
10958 |
}
|
|
|
10959 |
|
|
|
10960 |
public boolean equals(getInventoryItemFromOrder_result that) {
|
|
|
10961 |
if (that == null)
|
|
|
10962 |
return false;
|
|
|
10963 |
|
|
|
10964 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10965 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10966 |
if (this_present_success || that_present_success) {
|
|
|
10967 |
if (!(this_present_success && that_present_success))
|
|
|
10968 |
return false;
|
|
|
10969 |
if (!this.success.equals(that.success))
|
|
|
10970 |
return false;
|
|
|
10971 |
}
|
|
|
10972 |
|
|
|
10973 |
boolean this_present_we = true && this.isSetWe();
|
|
|
10974 |
boolean that_present_we = true && that.isSetWe();
|
|
|
10975 |
if (this_present_we || that_present_we) {
|
|
|
10976 |
if (!(this_present_we && that_present_we))
|
|
|
10977 |
return false;
|
|
|
10978 |
if (!this.we.equals(that.we))
|
|
|
10979 |
return false;
|
|
|
10980 |
}
|
|
|
10981 |
|
|
|
10982 |
return true;
|
|
|
10983 |
}
|
|
|
10984 |
|
|
|
10985 |
@Override
|
|
|
10986 |
public int hashCode() {
|
|
|
10987 |
return 0;
|
|
|
10988 |
}
|
|
|
10989 |
|
|
|
10990 |
public int compareTo(getInventoryItemFromOrder_result other) {
|
|
|
10991 |
if (!getClass().equals(other.getClass())) {
|
|
|
10992 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10993 |
}
|
|
|
10994 |
|
|
|
10995 |
int lastComparison = 0;
|
|
|
10996 |
getInventoryItemFromOrder_result typedOther = (getInventoryItemFromOrder_result)other;
|
|
|
10997 |
|
|
|
10998 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10999 |
if (lastComparison != 0) {
|
|
|
11000 |
return lastComparison;
|
|
|
11001 |
}
|
|
|
11002 |
if (isSetSuccess()) {
|
|
|
11003 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11004 |
if (lastComparison != 0) {
|
|
|
11005 |
return lastComparison;
|
|
|
11006 |
}
|
|
|
11007 |
}
|
|
|
11008 |
lastComparison = Boolean.valueOf(isSetWe()).compareTo(typedOther.isSetWe());
|
|
|
11009 |
if (lastComparison != 0) {
|
|
|
11010 |
return lastComparison;
|
|
|
11011 |
}
|
|
|
11012 |
if (isSetWe()) {
|
|
|
11013 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.we, typedOther.we);
|
|
|
11014 |
if (lastComparison != 0) {
|
|
|
11015 |
return lastComparison;
|
|
|
11016 |
}
|
|
|
11017 |
}
|
|
|
11018 |
return 0;
|
|
|
11019 |
}
|
|
|
11020 |
|
|
|
11021 |
public _Fields fieldForId(int fieldId) {
|
|
|
11022 |
return _Fields.findByThriftId(fieldId);
|
|
|
11023 |
}
|
|
|
11024 |
|
|
|
11025 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11026 |
org.apache.thrift.protocol.TField field;
|
|
|
11027 |
iprot.readStructBegin();
|
|
|
11028 |
while (true)
|
|
|
11029 |
{
|
|
|
11030 |
field = iprot.readFieldBegin();
|
|
|
11031 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11032 |
break;
|
|
|
11033 |
}
|
|
|
11034 |
switch (field.id) {
|
|
|
11035 |
case 0: // SUCCESS
|
|
|
11036 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
11037 |
this.success = new InventoryItem();
|
|
|
11038 |
this.success.read(iprot);
|
|
|
11039 |
} else {
|
|
|
11040 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11041 |
}
|
|
|
11042 |
break;
|
|
|
11043 |
case 1: // WE
|
|
|
11044 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
11045 |
this.we = new WarehouseServiceException();
|
|
|
11046 |
this.we.read(iprot);
|
|
|
11047 |
} else {
|
|
|
11048 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11049 |
}
|
|
|
11050 |
break;
|
|
|
11051 |
default:
|
|
|
11052 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11053 |
}
|
|
|
11054 |
iprot.readFieldEnd();
|
|
|
11055 |
}
|
|
|
11056 |
iprot.readStructEnd();
|
|
|
11057 |
validate();
|
|
|
11058 |
}
|
|
|
11059 |
|
|
|
11060 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11061 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11062 |
|
|
|
11063 |
if (this.isSetSuccess()) {
|
|
|
11064 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
11065 |
this.success.write(oprot);
|
|
|
11066 |
oprot.writeFieldEnd();
|
|
|
11067 |
} else if (this.isSetWe()) {
|
|
|
11068 |
oprot.writeFieldBegin(WE_FIELD_DESC);
|
|
|
11069 |
this.we.write(oprot);
|
|
|
11070 |
oprot.writeFieldEnd();
|
|
|
11071 |
}
|
|
|
11072 |
oprot.writeFieldStop();
|
|
|
11073 |
oprot.writeStructEnd();
|
|
|
11074 |
}
|
|
|
11075 |
|
|
|
11076 |
@Override
|
|
|
11077 |
public String toString() {
|
|
|
11078 |
StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_result(");
|
|
|
11079 |
boolean first = true;
|
|
|
11080 |
|
|
|
11081 |
sb.append("success:");
|
|
|
11082 |
if (this.success == null) {
|
|
|
11083 |
sb.append("null");
|
|
|
11084 |
} else {
|
|
|
11085 |
sb.append(this.success);
|
|
|
11086 |
}
|
|
|
11087 |
first = false;
|
|
|
11088 |
if (!first) sb.append(", ");
|
|
|
11089 |
sb.append("we:");
|
|
|
11090 |
if (this.we == null) {
|
|
|
11091 |
sb.append("null");
|
|
|
11092 |
} else {
|
|
|
11093 |
sb.append(this.we);
|
|
|
11094 |
}
|
|
|
11095 |
first = false;
|
|
|
11096 |
sb.append(")");
|
|
|
11097 |
return sb.toString();
|
|
|
11098 |
}
|
|
|
11099 |
|
|
|
11100 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11101 |
// check for required fields
|
|
|
11102 |
}
|
|
|
11103 |
|
|
|
11104 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11105 |
try {
|
|
|
11106 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11107 |
} catch (org.apache.thrift.TException te) {
|
|
|
11108 |
throw new java.io.IOException(te);
|
|
|
11109 |
}
|
|
|
11110 |
}
|
|
|
11111 |
|
|
|
11112 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11113 |
try {
|
|
|
11114 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11115 |
} catch (org.apache.thrift.TException te) {
|
|
|
11116 |
throw new java.io.IOException(te);
|
|
|
11117 |
}
|
|
|
11118 |
}
|
|
|
11119 |
|
|
|
11120 |
}
|
|
|
11121 |
|
| 2820 |
chandransh |
11122 |
}
|