| 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 |
|
| 5711 |
mandeep.dh |
135 |
/**
|
|
|
136 |
* Fetches the stock inventory age week-wise
|
|
|
137 |
*/
|
|
|
138 |
public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException;
|
|
|
139 |
|
| 6322 |
amar.kumar |
140 |
/**
|
|
|
141 |
* Fetches the scanRecords for a given item for a given time interval
|
|
|
142 |
*
|
|
|
143 |
* @param itemId
|
|
|
144 |
* @param fromDate
|
|
|
145 |
* @param toDate
|
|
|
146 |
*/
|
|
|
147 |
public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException;
|
|
|
148 |
|
|
|
149 |
/**
|
|
|
150 |
* Fetches the scanRecords for a given serialNumber for a given time interval
|
|
|
151 |
*
|
|
|
152 |
* @param serialNumber
|
|
|
153 |
*/
|
|
|
154 |
public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException;
|
|
|
155 |
|
| 6467 |
amar.kumar |
156 |
/**
|
| 6548 |
amar.kumar |
157 |
* Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
|
| 6467 |
amar.kumar |
158 |
*
|
|
|
159 |
* @param saleReturnItems
|
|
|
160 |
* @param vendorId
|
|
|
161 |
*/
|
|
|
162 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
163 |
|
| 6548 |
amar.kumar |
164 |
/**
|
|
|
165 |
* Inserts scans for lost Items and updates lastScanType in InventoryItems
|
|
|
166 |
*
|
|
|
167 |
* @param lostItems
|
|
|
168 |
* @param vendorId
|
|
|
169 |
*/
|
|
|
170 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
171 |
|
|
|
172 |
/**
|
|
|
173 |
* Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
|
|
174 |
*/
|
|
|
175 |
public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException;
|
|
|
176 |
|
| 6630 |
amar.kumar |
177 |
/**
|
|
|
178 |
* Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
|
|
179 |
*/
|
|
|
180 |
public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException;
|
|
|
181 |
|
| 2820 |
chandransh |
182 |
}
|
|
|
183 |
|
| 3430 |
rajveer |
184 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
185 |
|
| 4496 |
mandeep.dh |
186 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
187 |
|
| 5530 |
mandeep.dh |
188 |
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 |
189 |
|
| 5361 |
mandeep.dh |
190 |
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 |
191 |
|
| 5110 |
mandeep.dh |
192 |
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 |
193 |
|
| 5361 |
mandeep.dh |
194 |
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 |
195 |
|
|
|
196 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
197 |
|
| 4622 |
amit.gupta |
198 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
199 |
|
| 5110 |
mandeep.dh |
200 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
201 |
|
| 5185 |
mandeep.dh |
202 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
203 |
|
|
|
204 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
205 |
|
| 5372 |
mandeep.dh |
206 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
207 |
|
| 5496 |
mandeep.dh |
208 |
public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
209 |
|
| 5620 |
mandeep.dh |
210 |
public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
211 |
|
| 5711 |
mandeep.dh |
212 |
public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
213 |
|
| 6322 |
amar.kumar |
214 |
public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
215 |
|
|
|
216 |
public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
217 |
|
| 6467 |
amar.kumar |
218 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
219 |
|
| 6548 |
amar.kumar |
220 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
221 |
|
|
|
222 |
public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
223 |
|
| 6630 |
amar.kumar |
224 |
public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
225 |
|
| 3430 |
rajveer |
226 |
}
|
|
|
227 |
|
| 3374 |
rajveer |
228 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
229 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
230 |
public Factory() {}
|
|
|
231 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
232 |
return new Client(prot);
|
|
|
233 |
}
|
|
|
234 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
235 |
return new Client(iprot, oprot);
|
|
|
236 |
}
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 2820 |
chandransh |
240 |
{
|
| 3430 |
rajveer |
241 |
super(prot, prot);
|
| 2820 |
chandransh |
242 |
}
|
|
|
243 |
|
| 3430 |
rajveer |
244 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
245 |
super(iprot, oprot);
|
| 2820 |
chandransh |
246 |
}
|
|
|
247 |
|
| 4541 |
mandeep.dh |
248 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
249 |
{
|
| 4496 |
mandeep.dh |
250 |
send_getInventoryItem(serialNumber);
|
|
|
251 |
return recv_getInventoryItem();
|
| 2832 |
chandransh |
252 |
}
|
|
|
253 |
|
| 4496 |
mandeep.dh |
254 |
public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
|
| 2832 |
chandransh |
255 |
{
|
| 4496 |
mandeep.dh |
256 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
257 |
args.setSerialNumber(serialNumber);
|
|
|
258 |
sendBase("getInventoryItem", args);
|
| 2832 |
chandransh |
259 |
}
|
|
|
260 |
|
| 4541 |
mandeep.dh |
261 |
public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
262 |
{
|
| 4496 |
mandeep.dh |
263 |
getInventoryItem_result result = new getInventoryItem_result();
|
|
|
264 |
receiveBase(result, "getInventoryItem");
|
| 2832 |
chandransh |
265 |
if (result.isSetSuccess()) {
|
|
|
266 |
return result.success;
|
|
|
267 |
}
|
| 4541 |
mandeep.dh |
268 |
if (result.wex != null) {
|
|
|
269 |
throw result.wex;
|
|
|
270 |
}
|
| 4496 |
mandeep.dh |
271 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
|
|
272 |
}
|
|
|
273 |
|
| 5530 |
mandeep.dh |
274 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
275 |
{
|
| 5530 |
mandeep.dh |
276 |
send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
277 |
return recv_getNonSeralizedInventoryItem();
|
| 4496 |
mandeep.dh |
278 |
}
|
|
|
279 |
|
| 5530 |
mandeep.dh |
280 |
public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
281 |
{
|
| 5361 |
mandeep.dh |
282 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 5530 |
mandeep.dh |
283 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
284 |
args.setItemId(itemId);
|
| 5530 |
mandeep.dh |
285 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
286 |
sendBase("getNonSeralizedInventoryItem", args);
|
| 4496 |
mandeep.dh |
287 |
}
|
|
|
288 |
|
| 5361 |
mandeep.dh |
289 |
public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
290 |
{
|
| 5361 |
mandeep.dh |
291 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
292 |
receiveBase(result, "getNonSeralizedInventoryItem");
|
| 4496 |
mandeep.dh |
293 |
if (result.isSetSuccess()) {
|
|
|
294 |
return result.success;
|
| 2832 |
chandransh |
295 |
}
|
| 5361 |
mandeep.dh |
296 |
if (result.wex != null) {
|
|
|
297 |
throw result.wex;
|
| 2820 |
chandransh |
298 |
}
|
| 5361 |
mandeep.dh |
299 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
|
| 4496 |
mandeep.dh |
300 |
}
|
|
|
301 |
|
| 5361 |
mandeep.dh |
302 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
303 |
{
|
| 5361 |
mandeep.dh |
304 |
send_scan(inventoryItem, type, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
305 |
recv_scan();
|
| 3383 |
chandransh |
306 |
}
|
|
|
307 |
|
| 5361 |
mandeep.dh |
308 |
public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
309 |
{
|
| 4496 |
mandeep.dh |
310 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
311 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
312 |
args.setType(type);
|
|
|
313 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
314 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
315 |
sendBase("scan", args);
|
| 3383 |
chandransh |
316 |
}
|
|
|
317 |
|
| 4496 |
mandeep.dh |
318 |
public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
319 |
{
|
| 4496 |
mandeep.dh |
320 |
scan_result result = new scan_result();
|
|
|
321 |
receiveBase(result, "scan");
|
|
|
322 |
if (result.wex != null) {
|
|
|
323 |
throw result.wex;
|
|
|
324 |
}
|
|
|
325 |
return;
|
|
|
326 |
}
|
|
|
327 |
|
| 5110 |
mandeep.dh |
328 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
329 |
{
|
| 5110 |
mandeep.dh |
330 |
send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
331 |
return recv_scanSerializedItemForOrder();
|
|
|
332 |
}
|
|
|
333 |
|
| 5110 |
mandeep.dh |
334 |
public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
335 |
{
|
|
|
336 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
337 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
338 |
args.setType(type);
|
|
|
339 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
340 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
341 |
args.setQuantity(quantity);
|
|
|
342 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
343 |
sendBase("scanSerializedItemForOrder", args);
|
|
|
344 |
}
|
|
|
345 |
|
| 4555 |
mandeep.dh |
346 |
public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
347 |
{
|
|
|
348 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
|
|
349 |
receiveBase(result, "scanSerializedItemForOrder");
|
| 3383 |
chandransh |
350 |
if (result.isSetSuccess()) {
|
|
|
351 |
return result.success;
|
|
|
352 |
}
|
|
|
353 |
if (result.wex != null) {
|
|
|
354 |
throw result.wex;
|
|
|
355 |
}
|
| 4496 |
mandeep.dh |
356 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
| 3383 |
chandransh |
357 |
}
|
|
|
358 |
|
| 5361 |
mandeep.dh |
359 |
public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
360 |
{
|
| 5361 |
mandeep.dh |
361 |
send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
|
|
|
362 |
return recv_scanForOrder();
|
| 2820 |
chandransh |
363 |
}
|
|
|
364 |
|
| 5361 |
mandeep.dh |
365 |
public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
366 |
{
|
| 4496 |
mandeep.dh |
367 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
368 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
369 |
args.setType(type);
|
| 4496 |
mandeep.dh |
370 |
args.setQuantity(quantity);
|
|
|
371 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
372 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
373 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
374 |
sendBase("scanForOrder", args);
|
| 2820 |
chandransh |
375 |
}
|
|
|
376 |
|
| 5361 |
mandeep.dh |
377 |
public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
378 |
{
|
| 4496 |
mandeep.dh |
379 |
scanForOrder_result result = new scanForOrder_result();
|
|
|
380 |
receiveBase(result, "scanForOrder");
|
| 5361 |
mandeep.dh |
381 |
if (result.isSetSuccess()) {
|
|
|
382 |
return result.success;
|
|
|
383 |
}
|
| 2820 |
chandransh |
384 |
if (result.wex != null) {
|
|
|
385 |
throw result.wex;
|
|
|
386 |
}
|
| 5361 |
mandeep.dh |
387 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
|
| 2820 |
chandransh |
388 |
}
|
|
|
389 |
|
| 4496 |
mandeep.dh |
390 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
391 |
{
|
| 4496 |
mandeep.dh |
392 |
send_createItemNumberMapping(itemNumber, itemId);
|
|
|
393 |
recv_createItemNumberMapping();
|
| 2820 |
chandransh |
394 |
}
|
|
|
395 |
|
| 4496 |
mandeep.dh |
396 |
public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
397 |
{
|
| 4496 |
mandeep.dh |
398 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
| 3430 |
rajveer |
399 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
400 |
args.setItemId(itemId);
|
|
|
401 |
sendBase("createItemNumberMapping", args);
|
| 2820 |
chandransh |
402 |
}
|
|
|
403 |
|
| 4496 |
mandeep.dh |
404 |
public void recv_createItemNumberMapping() throws org.apache.thrift.TException
|
| 2820 |
chandransh |
405 |
{
|
| 4496 |
mandeep.dh |
406 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
407 |
receiveBase(result, "createItemNumberMapping");
|
| 2820 |
chandransh |
408 |
return;
|
|
|
409 |
}
|
|
|
410 |
|
| 4622 |
amit.gupta |
411 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
412 |
{
|
|
|
413 |
send_getItemNumbers(itemId);
|
|
|
414 |
return recv_getItemNumbers();
|
|
|
415 |
}
|
|
|
416 |
|
|
|
417 |
public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
418 |
{
|
|
|
419 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
420 |
args.setItemId(itemId);
|
|
|
421 |
sendBase("getItemNumbers", args);
|
|
|
422 |
}
|
|
|
423 |
|
|
|
424 |
public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
|
|
|
425 |
{
|
|
|
426 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
427 |
receiveBase(result, "getItemNumbers");
|
|
|
428 |
if (result.isSetSuccess()) {
|
|
|
429 |
return result.success;
|
|
|
430 |
}
|
|
|
431 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
|
|
432 |
}
|
|
|
433 |
|
| 5110 |
mandeep.dh |
434 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
435 |
{
|
|
|
436 |
send_getItemIds(itemNumber);
|
|
|
437 |
return recv_getItemIds();
|
|
|
438 |
}
|
|
|
439 |
|
|
|
440 |
public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
441 |
{
|
|
|
442 |
getItemIds_args args = new getItemIds_args();
|
|
|
443 |
args.setItemNumber(itemNumber);
|
|
|
444 |
sendBase("getItemIds", args);
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
public List<Long> recv_getItemIds() throws org.apache.thrift.TException
|
|
|
448 |
{
|
|
|
449 |
getItemIds_result result = new getItemIds_result();
|
|
|
450 |
receiveBase(result, "getItemIds");
|
|
|
451 |
if (result.isSetSuccess()) {
|
|
|
452 |
return result.success;
|
|
|
453 |
}
|
|
|
454 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
|
|
455 |
}
|
|
|
456 |
|
| 5185 |
mandeep.dh |
457 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
458 |
{
|
|
|
459 |
send_getInventoryItemsFromLastScanType(lastScanType);
|
|
|
460 |
return recv_getInventoryItemsFromLastScanType();
|
|
|
461 |
}
|
|
|
462 |
|
|
|
463 |
public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
|
|
|
464 |
{
|
|
|
465 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
466 |
args.setLastScanType(lastScanType);
|
|
|
467 |
sendBase("getInventoryItemsFromLastScanType", args);
|
|
|
468 |
}
|
|
|
469 |
|
|
|
470 |
public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
471 |
{
|
|
|
472 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
473 |
receiveBase(result, "getInventoryItemsFromLastScanType");
|
|
|
474 |
if (result.isSetSuccess()) {
|
|
|
475 |
return result.success;
|
|
|
476 |
}
|
|
|
477 |
if (result.wex != null) {
|
|
|
478 |
throw result.wex;
|
|
|
479 |
}
|
|
|
480 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
|
|
|
481 |
}
|
|
|
482 |
|
|
|
483 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
484 |
{
|
|
|
485 |
send_getInventoryItemFromId(inventoryItemId);
|
|
|
486 |
return recv_getInventoryItemFromId();
|
|
|
487 |
}
|
|
|
488 |
|
|
|
489 |
public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
|
|
|
490 |
{
|
|
|
491 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
492 |
args.setInventoryItemId(inventoryItemId);
|
|
|
493 |
sendBase("getInventoryItemFromId", args);
|
|
|
494 |
}
|
|
|
495 |
|
|
|
496 |
public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
497 |
{
|
|
|
498 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
499 |
receiveBase(result, "getInventoryItemFromId");
|
|
|
500 |
if (result.isSetSuccess()) {
|
|
|
501 |
return result.success;
|
|
|
502 |
}
|
|
|
503 |
if (result.wex != null) {
|
|
|
504 |
throw result.wex;
|
|
|
505 |
}
|
|
|
506 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
|
|
|
507 |
}
|
|
|
508 |
|
| 5372 |
mandeep.dh |
509 |
public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
510 |
{
|
|
|
511 |
send_getPurchaseScans(startDate, endDate);
|
|
|
512 |
return recv_getPurchaseScans();
|
|
|
513 |
}
|
|
|
514 |
|
|
|
515 |
public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
516 |
{
|
|
|
517 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
518 |
args.setStartDate(startDate);
|
|
|
519 |
args.setEndDate(endDate);
|
|
|
520 |
sendBase("getPurchaseScans", args);
|
|
|
521 |
}
|
|
|
522 |
|
|
|
523 |
public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
|
|
|
524 |
{
|
|
|
525 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
526 |
receiveBase(result, "getPurchaseScans");
|
|
|
527 |
if (result.isSetSuccess()) {
|
|
|
528 |
return result.success;
|
|
|
529 |
}
|
|
|
530 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
|
|
|
531 |
}
|
|
|
532 |
|
| 5496 |
mandeep.dh |
533 |
public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
|
|
|
534 |
{
|
|
|
535 |
send_fetchScansPerInvoiceNumber(date);
|
|
|
536 |
return recv_fetchScansPerInvoiceNumber();
|
|
|
537 |
}
|
|
|
538 |
|
|
|
539 |
public void send_fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
|
|
|
540 |
{
|
|
|
541 |
fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
|
|
|
542 |
args.setDate(date);
|
|
|
543 |
sendBase("fetchScansPerInvoiceNumber", args);
|
|
|
544 |
}
|
|
|
545 |
|
|
|
546 |
public List<InvoiceScan> recv_fetchScansPerInvoiceNumber() throws org.apache.thrift.TException
|
|
|
547 |
{
|
|
|
548 |
fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
|
|
|
549 |
receiveBase(result, "fetchScansPerInvoiceNumber");
|
|
|
550 |
if (result.isSetSuccess()) {
|
|
|
551 |
return result.success;
|
|
|
552 |
}
|
|
|
553 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
|
|
|
554 |
}
|
|
|
555 |
|
| 5620 |
mandeep.dh |
556 |
public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
557 |
{
|
|
|
558 |
send_getInventoryItemFromOrder(orderId);
|
|
|
559 |
return recv_getInventoryItemFromOrder();
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public void send_getInventoryItemFromOrder(long orderId) throws org.apache.thrift.TException
|
|
|
563 |
{
|
|
|
564 |
getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
|
|
|
565 |
args.setOrderId(orderId);
|
|
|
566 |
sendBase("getInventoryItemFromOrder", args);
|
|
|
567 |
}
|
|
|
568 |
|
|
|
569 |
public InventoryItem recv_getInventoryItemFromOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
570 |
{
|
|
|
571 |
getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
|
|
|
572 |
receiveBase(result, "getInventoryItemFromOrder");
|
|
|
573 |
if (result.isSetSuccess()) {
|
|
|
574 |
return result.success;
|
|
|
575 |
}
|
|
|
576 |
if (result.we != null) {
|
|
|
577 |
throw result.we;
|
|
|
578 |
}
|
|
|
579 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
|
|
|
580 |
}
|
|
|
581 |
|
| 5711 |
mandeep.dh |
582 |
public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException
|
|
|
583 |
{
|
|
|
584 |
send_getInventoryAge();
|
|
|
585 |
return recv_getInventoryAge();
|
|
|
586 |
}
|
|
|
587 |
|
|
|
588 |
public void send_getInventoryAge() throws org.apache.thrift.TException
|
|
|
589 |
{
|
|
|
590 |
getInventoryAge_args args = new getInventoryAge_args();
|
|
|
591 |
sendBase("getInventoryAge", args);
|
|
|
592 |
}
|
|
|
593 |
|
|
|
594 |
public List<InventoryAge> recv_getInventoryAge() throws org.apache.thrift.TException
|
|
|
595 |
{
|
|
|
596 |
getInventoryAge_result result = new getInventoryAge_result();
|
|
|
597 |
receiveBase(result, "getInventoryAge");
|
|
|
598 |
if (result.isSetSuccess()) {
|
|
|
599 |
return result.success;
|
|
|
600 |
}
|
|
|
601 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
|
|
|
602 |
}
|
|
|
603 |
|
| 6322 |
amar.kumar |
604 |
public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
|
|
|
605 |
{
|
|
|
606 |
send_getInventoryScansForItem(itemId, fromDate, toDate);
|
|
|
607 |
return recv_getInventoryScansForItem();
|
|
|
608 |
}
|
|
|
609 |
|
|
|
610 |
public void send_getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
|
|
|
611 |
{
|
|
|
612 |
getInventoryScansForItem_args args = new getInventoryScansForItem_args();
|
|
|
613 |
args.setItemId(itemId);
|
|
|
614 |
args.setFromDate(fromDate);
|
|
|
615 |
args.setToDate(toDate);
|
|
|
616 |
sendBase("getInventoryScansForItem", args);
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
public List<Scan> recv_getInventoryScansForItem() throws org.apache.thrift.TException
|
|
|
620 |
{
|
|
|
621 |
getInventoryScansForItem_result result = new getInventoryScansForItem_result();
|
|
|
622 |
receiveBase(result, "getInventoryScansForItem");
|
|
|
623 |
if (result.isSetSuccess()) {
|
|
|
624 |
return result.success;
|
|
|
625 |
}
|
|
|
626 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
|
|
|
630 |
{
|
|
|
631 |
send_getScanRecordsForSerialNumber(serialNumber);
|
|
|
632 |
return recv_getScanRecordsForSerialNumber();
|
|
|
633 |
}
|
|
|
634 |
|
|
|
635 |
public void send_getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
|
|
|
636 |
{
|
|
|
637 |
getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
|
|
|
638 |
args.setSerialNumber(serialNumber);
|
|
|
639 |
sendBase("getScanRecordsForSerialNumber", args);
|
|
|
640 |
}
|
|
|
641 |
|
|
|
642 |
public List<Scan> recv_getScanRecordsForSerialNumber() throws org.apache.thrift.TException
|
|
|
643 |
{
|
|
|
644 |
getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
|
|
|
645 |
receiveBase(result, "getScanRecordsForSerialNumber");
|
|
|
646 |
if (result.isSetSuccess()) {
|
|
|
647 |
return result.success;
|
|
|
648 |
}
|
|
|
649 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
|
|
|
650 |
}
|
|
|
651 |
|
| 6467 |
amar.kumar |
652 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
653 |
{
|
|
|
654 |
send_scanForPurchaseReturn(saleReturnItems, vendorId);
|
|
|
655 |
recv_scanForPurchaseReturn();
|
|
|
656 |
}
|
|
|
657 |
|
|
|
658 |
public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws org.apache.thrift.TException
|
|
|
659 |
{
|
|
|
660 |
scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
|
|
|
661 |
args.setSaleReturnItems(saleReturnItems);
|
|
|
662 |
args.setVendorId(vendorId);
|
|
|
663 |
sendBase("scanForPurchaseReturn", args);
|
|
|
664 |
}
|
|
|
665 |
|
|
|
666 |
public void recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
667 |
{
|
|
|
668 |
scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
|
|
|
669 |
receiveBase(result, "scanForPurchaseReturn");
|
|
|
670 |
if (result.ex != null) {
|
|
|
671 |
throw result.ex;
|
|
|
672 |
}
|
|
|
673 |
return;
|
|
|
674 |
}
|
|
|
675 |
|
| 6548 |
amar.kumar |
676 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
677 |
{
|
|
|
678 |
send_scanForLostItem(lostItems, vendorId);
|
|
|
679 |
recv_scanForLostItem();
|
|
|
680 |
}
|
|
|
681 |
|
|
|
682 |
public void send_scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws org.apache.thrift.TException
|
|
|
683 |
{
|
|
|
684 |
scanForLostItem_args args = new scanForLostItem_args();
|
|
|
685 |
args.setLostItems(lostItems);
|
|
|
686 |
args.setVendorId(vendorId);
|
|
|
687 |
sendBase("scanForLostItem", args);
|
|
|
688 |
}
|
|
|
689 |
|
|
|
690 |
public void recv_scanForLostItem() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
691 |
{
|
|
|
692 |
scanForLostItem_result result = new scanForLostItem_result();
|
|
|
693 |
receiveBase(result, "scanForLostItem");
|
|
|
694 |
if (result.ex != null) {
|
|
|
695 |
throw result.ex;
|
|
|
696 |
}
|
|
|
697 |
return;
|
|
|
698 |
}
|
|
|
699 |
|
|
|
700 |
public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
701 |
{
|
|
|
702 |
send_getCurrentSerializedInventoryByScans();
|
|
|
703 |
return recv_getCurrentSerializedInventoryByScans();
|
|
|
704 |
}
|
|
|
705 |
|
|
|
706 |
public void send_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
707 |
{
|
|
|
708 |
getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
|
|
|
709 |
sendBase("getCurrentSerializedInventoryByScans", args);
|
|
|
710 |
}
|
|
|
711 |
|
|
|
712 |
public List<InventoryAvailability> recv_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
713 |
{
|
|
|
714 |
getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
|
|
|
715 |
receiveBase(result, "getCurrentSerializedInventoryByScans");
|
|
|
716 |
if (result.isSetSuccess()) {
|
|
|
717 |
return result.success;
|
|
|
718 |
}
|
|
|
719 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
|
|
|
720 |
}
|
|
|
721 |
|
| 6630 |
amar.kumar |
722 |
public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
723 |
{
|
|
|
724 |
send_getCurrentNonSerializedInventoryByScans();
|
|
|
725 |
return recv_getCurrentNonSerializedInventoryByScans();
|
|
|
726 |
}
|
|
|
727 |
|
|
|
728 |
public void send_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
729 |
{
|
|
|
730 |
getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
|
|
|
731 |
sendBase("getCurrentNonSerializedInventoryByScans", args);
|
|
|
732 |
}
|
|
|
733 |
|
|
|
734 |
public List<InventoryAvailability> recv_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
735 |
{
|
|
|
736 |
getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
|
|
|
737 |
receiveBase(result, "getCurrentNonSerializedInventoryByScans");
|
|
|
738 |
if (result.isSetSuccess()) {
|
|
|
739 |
return result.success;
|
|
|
740 |
}
|
|
|
741 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
|
|
|
742 |
}
|
|
|
743 |
|
| 2820 |
chandransh |
744 |
}
|
| 3430 |
rajveer |
745 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
746 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
747 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
748 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
749 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
750 |
this.clientManager = clientManager;
|
|
|
751 |
this.protocolFactory = protocolFactory;
|
|
|
752 |
}
|
|
|
753 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
754 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
755 |
}
|
| 2820 |
chandransh |
756 |
}
|
|
|
757 |
|
| 3430 |
rajveer |
758 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
759 |
super(protocolFactory, clientManager, transport);
|
|
|
760 |
}
|
| 2820 |
chandransh |
761 |
|
| 4496 |
mandeep.dh |
762 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
763 |
checkReady();
|
| 4496 |
mandeep.dh |
764 |
getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
765 |
this.___currentMethod = method_call;
|
|
|
766 |
___manager.call(method_call);
|
|
|
767 |
}
|
|
|
768 |
|
| 4496 |
mandeep.dh |
769 |
public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
770 |
private String serialNumber;
|
|
|
771 |
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 |
772 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
773 |
this.serialNumber = serialNumber;
|
| 3430 |
rajveer |
774 |
}
|
|
|
775 |
|
|
|
776 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
777 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
778 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
779 |
args.setSerialNumber(serialNumber);
|
| 3430 |
rajveer |
780 |
args.write(prot);
|
|
|
781 |
prot.writeMessageEnd();
|
|
|
782 |
}
|
|
|
783 |
|
| 4541 |
mandeep.dh |
784 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
785 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
786 |
throw new IllegalStateException("Method call not finished!");
|
|
|
787 |
}
|
|
|
788 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
789 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
790 |
return (new Client(prot)).recv_getInventoryItem();
|
| 3430 |
rajveer |
791 |
}
|
|
|
792 |
}
|
|
|
793 |
|
| 5530 |
mandeep.dh |
794 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
795 |
checkReady();
|
| 5530 |
mandeep.dh |
796 |
getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
797 |
this.___currentMethod = method_call;
|
|
|
798 |
___manager.call(method_call);
|
|
|
799 |
}
|
|
|
800 |
|
| 5361 |
mandeep.dh |
801 |
public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5530 |
mandeep.dh |
802 |
private String itemNumber;
|
| 4496 |
mandeep.dh |
803 |
private long itemId;
|
| 5530 |
mandeep.dh |
804 |
private long fulfilmentWarehouseId;
|
|
|
805 |
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 |
806 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5530 |
mandeep.dh |
807 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
808 |
this.itemId = itemId;
|
| 5530 |
mandeep.dh |
809 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 3430 |
rajveer |
810 |
}
|
|
|
811 |
|
|
|
812 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 5361 |
mandeep.dh |
813 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
814 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 5530 |
mandeep.dh |
815 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
816 |
args.setItemId(itemId);
|
| 5530 |
mandeep.dh |
817 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 3430 |
rajveer |
818 |
args.write(prot);
|
|
|
819 |
prot.writeMessageEnd();
|
|
|
820 |
}
|
|
|
821 |
|
| 5361 |
mandeep.dh |
822 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
823 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
824 |
throw new IllegalStateException("Method call not finished!");
|
|
|
825 |
}
|
|
|
826 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
827 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
828 |
return (new Client(prot)).recv_getNonSeralizedInventoryItem();
|
| 3430 |
rajveer |
829 |
}
|
|
|
830 |
}
|
|
|
831 |
|
| 5361 |
mandeep.dh |
832 |
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 |
833 |
checkReady();
|
| 5361 |
mandeep.dh |
834 |
scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
835 |
this.___currentMethod = method_call;
|
|
|
836 |
___manager.call(method_call);
|
|
|
837 |
}
|
|
|
838 |
|
| 4496 |
mandeep.dh |
839 |
public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
840 |
private InventoryItem inventoryItem;
|
| 3430 |
rajveer |
841 |
private ScanType type;
|
| 4496 |
mandeep.dh |
842 |
private long quantity;
|
| 5361 |
mandeep.dh |
843 |
private long billingWarehouseId;
|
|
|
844 |
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 |
845 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
846 |
this.inventoryItem = inventoryItem;
|
| 3430 |
rajveer |
847 |
this.type = type;
|
| 4496 |
mandeep.dh |
848 |
this.quantity = quantity;
|
| 5361 |
mandeep.dh |
849 |
this.billingWarehouseId = billingWarehouseId;
|
| 3430 |
rajveer |
850 |
}
|
|
|
851 |
|
|
|
852 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
853 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
854 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
855 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
856 |
args.setType(type);
|
| 4496 |
mandeep.dh |
857 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
858 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 3430 |
rajveer |
859 |
args.write(prot);
|
|
|
860 |
prot.writeMessageEnd();
|
|
|
861 |
}
|
|
|
862 |
|
|
|
863 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
864 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
865 |
throw new IllegalStateException("Method call not finished!");
|
|
|
866 |
}
|
|
|
867 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
868 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
869 |
(new Client(prot)).recv_scan();
|
| 3430 |
rajveer |
870 |
}
|
|
|
871 |
}
|
|
|
872 |
|
| 5110 |
mandeep.dh |
873 |
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 |
874 |
checkReady();
|
| 5110 |
mandeep.dh |
875 |
scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
876 |
this.___currentMethod = method_call;
|
|
|
877 |
___manager.call(method_call);
|
|
|
878 |
}
|
|
|
879 |
|
|
|
880 |
public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 4555 |
mandeep.dh |
881 |
private String serialNumber;
|
| 4496 |
mandeep.dh |
882 |
private ScanType type;
|
|
|
883 |
private long orderId;
|
| 5110 |
mandeep.dh |
884 |
private long fulfilmentWarehouseId;
|
|
|
885 |
private double quantity;
|
|
|
886 |
private long billingWarehouseId;
|
|
|
887 |
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 |
888 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4555 |
mandeep.dh |
889 |
this.serialNumber = serialNumber;
|
| 4496 |
mandeep.dh |
890 |
this.type = type;
|
|
|
891 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
892 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
893 |
this.quantity = quantity;
|
|
|
894 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
895 |
}
|
|
|
896 |
|
|
|
897 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
898 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
899 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
900 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
901 |
args.setType(type);
|
|
|
902 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
903 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
904 |
args.setQuantity(quantity);
|
|
|
905 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
906 |
args.write(prot);
|
|
|
907 |
prot.writeMessageEnd();
|
|
|
908 |
}
|
|
|
909 |
|
| 4555 |
mandeep.dh |
910 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
911 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
912 |
throw new IllegalStateException("Method call not finished!");
|
|
|
913 |
}
|
|
|
914 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
915 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
916 |
return (new Client(prot)).recv_scanSerializedItemForOrder();
|
|
|
917 |
}
|
|
|
918 |
}
|
|
|
919 |
|
| 5361 |
mandeep.dh |
920 |
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 |
921 |
checkReady();
|
| 5361 |
mandeep.dh |
922 |
scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
923 |
this.___currentMethod = method_call;
|
|
|
924 |
___manager.call(method_call);
|
|
|
925 |
}
|
|
|
926 |
|
|
|
927 |
public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
928 |
private InventoryItem inventoryItem;
|
| 4496 |
mandeep.dh |
929 |
private ScanType type;
|
|
|
930 |
private long quantity;
|
|
|
931 |
private long orderId;
|
| 5110 |
mandeep.dh |
932 |
private long fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
933 |
private long billingWarehouseId;
|
|
|
934 |
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 |
935 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
936 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
937 |
this.type = type;
|
|
|
938 |
this.quantity = quantity;
|
|
|
939 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
940 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
941 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
942 |
}
|
|
|
943 |
|
|
|
944 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
945 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
946 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
947 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
948 |
args.setType(type);
|
|
|
949 |
args.setQuantity(quantity);
|
|
|
950 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
951 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
952 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
953 |
args.write(prot);
|
|
|
954 |
prot.writeMessageEnd();
|
|
|
955 |
}
|
|
|
956 |
|
| 5361 |
mandeep.dh |
957 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
958 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
959 |
throw new IllegalStateException("Method call not finished!");
|
|
|
960 |
}
|
|
|
961 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
962 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
963 |
return (new Client(prot)).recv_scanForOrder();
|
| 4496 |
mandeep.dh |
964 |
}
|
|
|
965 |
}
|
|
|
966 |
|
|
|
967 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
968 |
checkReady();
|
|
|
969 |
createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
970 |
this.___currentMethod = method_call;
|
|
|
971 |
___manager.call(method_call);
|
|
|
972 |
}
|
|
|
973 |
|
|
|
974 |
public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
975 |
private String itemNumber;
|
|
|
976 |
private long itemId;
|
|
|
977 |
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 {
|
|
|
978 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
979 |
this.itemNumber = itemNumber;
|
|
|
980 |
this.itemId = itemId;
|
|
|
981 |
}
|
|
|
982 |
|
|
|
983 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
984 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
985 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
|
|
986 |
args.setItemNumber(itemNumber);
|
|
|
987 |
args.setItemId(itemId);
|
|
|
988 |
args.write(prot);
|
|
|
989 |
prot.writeMessageEnd();
|
|
|
990 |
}
|
|
|
991 |
|
|
|
992 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
993 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
994 |
throw new IllegalStateException("Method call not finished!");
|
|
|
995 |
}
|
|
|
996 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
997 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
998 |
(new Client(prot)).recv_createItemNumberMapping();
|
|
|
999 |
}
|
|
|
1000 |
}
|
|
|
1001 |
|
| 4622 |
amit.gupta |
1002 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1003 |
checkReady();
|
|
|
1004 |
getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1005 |
this.___currentMethod = method_call;
|
|
|
1006 |
___manager.call(method_call);
|
|
|
1007 |
}
|
|
|
1008 |
|
|
|
1009 |
public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1010 |
private long itemId;
|
|
|
1011 |
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 {
|
|
|
1012 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1013 |
this.itemId = itemId;
|
|
|
1014 |
}
|
|
|
1015 |
|
|
|
1016 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1017 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1018 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
1019 |
args.setItemId(itemId);
|
|
|
1020 |
args.write(prot);
|
|
|
1021 |
prot.writeMessageEnd();
|
|
|
1022 |
}
|
|
|
1023 |
|
|
|
1024 |
public List<String> getResult() throws org.apache.thrift.TException {
|
|
|
1025 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1026 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1027 |
}
|
|
|
1028 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1029 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1030 |
return (new Client(prot)).recv_getItemNumbers();
|
|
|
1031 |
}
|
|
|
1032 |
}
|
|
|
1033 |
|
| 5110 |
mandeep.dh |
1034 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1035 |
checkReady();
|
|
|
1036 |
getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1037 |
this.___currentMethod = method_call;
|
|
|
1038 |
___manager.call(method_call);
|
|
|
1039 |
}
|
|
|
1040 |
|
|
|
1041 |
public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1042 |
private String itemNumber;
|
|
|
1043 |
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 {
|
|
|
1044 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1045 |
this.itemNumber = itemNumber;
|
|
|
1046 |
}
|
|
|
1047 |
|
|
|
1048 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1049 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1050 |
getItemIds_args args = new getItemIds_args();
|
|
|
1051 |
args.setItemNumber(itemNumber);
|
|
|
1052 |
args.write(prot);
|
|
|
1053 |
prot.writeMessageEnd();
|
|
|
1054 |
}
|
|
|
1055 |
|
|
|
1056 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
1057 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1058 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1059 |
}
|
|
|
1060 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1061 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1062 |
return (new Client(prot)).recv_getItemIds();
|
|
|
1063 |
}
|
|
|
1064 |
}
|
|
|
1065 |
|
| 5185 |
mandeep.dh |
1066 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1067 |
checkReady();
|
|
|
1068 |
getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1069 |
this.___currentMethod = method_call;
|
|
|
1070 |
___manager.call(method_call);
|
|
|
1071 |
}
|
|
|
1072 |
|
|
|
1073 |
public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1074 |
private ScanType lastScanType;
|
|
|
1075 |
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 {
|
|
|
1076 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1077 |
this.lastScanType = lastScanType;
|
|
|
1078 |
}
|
|
|
1079 |
|
|
|
1080 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1081 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1082 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
1083 |
args.setLastScanType(lastScanType);
|
|
|
1084 |
args.write(prot);
|
|
|
1085 |
prot.writeMessageEnd();
|
|
|
1086 |
}
|
|
|
1087 |
|
|
|
1088 |
public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1089 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1090 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1091 |
}
|
|
|
1092 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1093 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1094 |
return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
|
|
|
1095 |
}
|
|
|
1096 |
}
|
|
|
1097 |
|
|
|
1098 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1099 |
checkReady();
|
|
|
1100 |
getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1101 |
this.___currentMethod = method_call;
|
|
|
1102 |
___manager.call(method_call);
|
|
|
1103 |
}
|
|
|
1104 |
|
|
|
1105 |
public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1106 |
private long inventoryItemId;
|
|
|
1107 |
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 {
|
|
|
1108 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1109 |
this.inventoryItemId = inventoryItemId;
|
|
|
1110 |
}
|
|
|
1111 |
|
|
|
1112 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1113 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1114 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
1115 |
args.setInventoryItemId(inventoryItemId);
|
|
|
1116 |
args.write(prot);
|
|
|
1117 |
prot.writeMessageEnd();
|
|
|
1118 |
}
|
|
|
1119 |
|
|
|
1120 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1121 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1122 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1123 |
}
|
|
|
1124 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1125 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1126 |
return (new Client(prot)).recv_getInventoryItemFromId();
|
|
|
1127 |
}
|
|
|
1128 |
}
|
|
|
1129 |
|
| 5372 |
mandeep.dh |
1130 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1131 |
checkReady();
|
|
|
1132 |
getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1133 |
this.___currentMethod = method_call;
|
|
|
1134 |
___manager.call(method_call);
|
|
|
1135 |
}
|
|
|
1136 |
|
|
|
1137 |
public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1138 |
private long startDate;
|
|
|
1139 |
private long endDate;
|
|
|
1140 |
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 {
|
|
|
1141 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1142 |
this.startDate = startDate;
|
|
|
1143 |
this.endDate = endDate;
|
|
|
1144 |
}
|
|
|
1145 |
|
|
|
1146 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1147 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1148 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
1149 |
args.setStartDate(startDate);
|
|
|
1150 |
args.setEndDate(endDate);
|
|
|
1151 |
args.write(prot);
|
|
|
1152 |
prot.writeMessageEnd();
|
|
|
1153 |
}
|
|
|
1154 |
|
|
|
1155 |
public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
|
|
|
1156 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1157 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1158 |
}
|
|
|
1159 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1160 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1161 |
return (new Client(prot)).recv_getPurchaseScans();
|
|
|
1162 |
}
|
|
|
1163 |
}
|
|
|
1164 |
|
| 5496 |
mandeep.dh |
1165 |
public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1166 |
checkReady();
|
|
|
1167 |
fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1168 |
this.___currentMethod = method_call;
|
|
|
1169 |
___manager.call(method_call);
|
|
|
1170 |
}
|
|
|
1171 |
|
|
|
1172 |
public static class fetchScansPerInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1173 |
private long date;
|
|
|
1174 |
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 {
|
|
|
1175 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1176 |
this.date = date;
|
|
|
1177 |
}
|
|
|
1178 |
|
|
|
1179 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1180 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1181 |
fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
|
|
|
1182 |
args.setDate(date);
|
|
|
1183 |
args.write(prot);
|
|
|
1184 |
prot.writeMessageEnd();
|
|
|
1185 |
}
|
|
|
1186 |
|
|
|
1187 |
public List<InvoiceScan> getResult() throws org.apache.thrift.TException {
|
|
|
1188 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1189 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1190 |
}
|
|
|
1191 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1192 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1193 |
return (new Client(prot)).recv_fetchScansPerInvoiceNumber();
|
|
|
1194 |
}
|
|
|
1195 |
}
|
|
|
1196 |
|
| 5620 |
mandeep.dh |
1197 |
public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1198 |
checkReady();
|
|
|
1199 |
getInventoryItemFromOrder_call method_call = new getInventoryItemFromOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1200 |
this.___currentMethod = method_call;
|
|
|
1201 |
___manager.call(method_call);
|
|
|
1202 |
}
|
|
|
1203 |
|
|
|
1204 |
public static class getInventoryItemFromOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1205 |
private long orderId;
|
|
|
1206 |
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 {
|
|
|
1207 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1208 |
this.orderId = orderId;
|
|
|
1209 |
}
|
|
|
1210 |
|
|
|
1211 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1212 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1213 |
getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
|
|
|
1214 |
args.setOrderId(orderId);
|
|
|
1215 |
args.write(prot);
|
|
|
1216 |
prot.writeMessageEnd();
|
|
|
1217 |
}
|
|
|
1218 |
|
|
|
1219 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1220 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1221 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1222 |
}
|
|
|
1223 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1224 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1225 |
return (new Client(prot)).recv_getInventoryItemFromOrder();
|
|
|
1226 |
}
|
|
|
1227 |
}
|
|
|
1228 |
|
| 5711 |
mandeep.dh |
1229 |
public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1230 |
checkReady();
|
|
|
1231 |
getInventoryAge_call method_call = new getInventoryAge_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1232 |
this.___currentMethod = method_call;
|
|
|
1233 |
___manager.call(method_call);
|
|
|
1234 |
}
|
|
|
1235 |
|
|
|
1236 |
public static class getInventoryAge_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1237 |
public getInventoryAge_call(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_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 {
|
|
|
1238 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1239 |
}
|
|
|
1240 |
|
|
|
1241 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1242 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryAge", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1243 |
getInventoryAge_args args = new getInventoryAge_args();
|
|
|
1244 |
args.write(prot);
|
|
|
1245 |
prot.writeMessageEnd();
|
|
|
1246 |
}
|
|
|
1247 |
|
|
|
1248 |
public List<InventoryAge> getResult() throws org.apache.thrift.TException {
|
|
|
1249 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1250 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1251 |
}
|
|
|
1252 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1253 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1254 |
return (new Client(prot)).recv_getInventoryAge();
|
|
|
1255 |
}
|
|
|
1256 |
}
|
|
|
1257 |
|
| 6322 |
amar.kumar |
1258 |
public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1259 |
checkReady();
|
|
|
1260 |
getInventoryScansForItem_call method_call = new getInventoryScansForItem_call(itemId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1261 |
this.___currentMethod = method_call;
|
|
|
1262 |
___manager.call(method_call);
|
|
|
1263 |
}
|
|
|
1264 |
|
|
|
1265 |
public static class getInventoryScansForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1266 |
private long itemId;
|
|
|
1267 |
private long fromDate;
|
|
|
1268 |
private long toDate;
|
|
|
1269 |
public getInventoryScansForItem_call(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_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 {
|
|
|
1270 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1271 |
this.itemId = itemId;
|
|
|
1272 |
this.fromDate = fromDate;
|
|
|
1273 |
this.toDate = toDate;
|
|
|
1274 |
}
|
|
|
1275 |
|
|
|
1276 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1277 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryScansForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1278 |
getInventoryScansForItem_args args = new getInventoryScansForItem_args();
|
|
|
1279 |
args.setItemId(itemId);
|
|
|
1280 |
args.setFromDate(fromDate);
|
|
|
1281 |
args.setToDate(toDate);
|
|
|
1282 |
args.write(prot);
|
|
|
1283 |
prot.writeMessageEnd();
|
|
|
1284 |
}
|
|
|
1285 |
|
|
|
1286 |
public List<Scan> getResult() throws org.apache.thrift.TException {
|
|
|
1287 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1288 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1289 |
}
|
|
|
1290 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1291 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1292 |
return (new Client(prot)).recv_getInventoryScansForItem();
|
|
|
1293 |
}
|
|
|
1294 |
}
|
|
|
1295 |
|
|
|
1296 |
public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1297 |
checkReady();
|
|
|
1298 |
getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1299 |
this.___currentMethod = method_call;
|
|
|
1300 |
___manager.call(method_call);
|
|
|
1301 |
}
|
|
|
1302 |
|
|
|
1303 |
public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1304 |
private long serialNumber;
|
|
|
1305 |
public getScanRecordsForSerialNumber_call(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_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 {
|
|
|
1306 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1307 |
this.serialNumber = serialNumber;
|
|
|
1308 |
}
|
|
|
1309 |
|
|
|
1310 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1311 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanRecordsForSerialNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1312 |
getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
|
|
|
1313 |
args.setSerialNumber(serialNumber);
|
|
|
1314 |
args.write(prot);
|
|
|
1315 |
prot.writeMessageEnd();
|
|
|
1316 |
}
|
|
|
1317 |
|
|
|
1318 |
public List<Scan> getResult() throws org.apache.thrift.TException {
|
|
|
1319 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1320 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1321 |
}
|
|
|
1322 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1323 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1324 |
return (new Client(prot)).recv_getScanRecordsForSerialNumber();
|
|
|
1325 |
}
|
|
|
1326 |
}
|
|
|
1327 |
|
| 6467 |
amar.kumar |
1328 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1329 |
checkReady();
|
|
|
1330 |
scanForPurchaseReturn_call method_call = new scanForPurchaseReturn_call(saleReturnItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1331 |
this.___currentMethod = method_call;
|
|
|
1332 |
___manager.call(method_call);
|
|
|
1333 |
}
|
|
|
1334 |
|
|
|
1335 |
public static class scanForPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1336 |
private List<InventoryItem> saleReturnItems;
|
|
|
1337 |
private long vendorId;
|
|
|
1338 |
public scanForPurchaseReturn_call(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_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 {
|
|
|
1339 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1340 |
this.saleReturnItems = saleReturnItems;
|
|
|
1341 |
this.vendorId = vendorId;
|
|
|
1342 |
}
|
|
|
1343 |
|
|
|
1344 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1345 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1346 |
scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
|
|
|
1347 |
args.setSaleReturnItems(saleReturnItems);
|
|
|
1348 |
args.setVendorId(vendorId);
|
|
|
1349 |
args.write(prot);
|
|
|
1350 |
prot.writeMessageEnd();
|
|
|
1351 |
}
|
|
|
1352 |
|
|
|
1353 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1354 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1355 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1356 |
}
|
|
|
1357 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1358 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1359 |
(new Client(prot)).recv_scanForPurchaseReturn();
|
|
|
1360 |
}
|
|
|
1361 |
}
|
|
|
1362 |
|
| 6548 |
amar.kumar |
1363 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1364 |
checkReady();
|
|
|
1365 |
scanForLostItem_call method_call = new scanForLostItem_call(lostItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1366 |
this.___currentMethod = method_call;
|
|
|
1367 |
___manager.call(method_call);
|
|
|
1368 |
}
|
|
|
1369 |
|
|
|
1370 |
public static class scanForLostItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1371 |
private List<InventoryItem> lostItems;
|
|
|
1372 |
private long vendorId;
|
|
|
1373 |
public scanForLostItem_call(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_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 {
|
|
|
1374 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1375 |
this.lostItems = lostItems;
|
|
|
1376 |
this.vendorId = vendorId;
|
|
|
1377 |
}
|
|
|
1378 |
|
|
|
1379 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1380 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForLostItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1381 |
scanForLostItem_args args = new scanForLostItem_args();
|
|
|
1382 |
args.setLostItems(lostItems);
|
|
|
1383 |
args.setVendorId(vendorId);
|
|
|
1384 |
args.write(prot);
|
|
|
1385 |
prot.writeMessageEnd();
|
|
|
1386 |
}
|
|
|
1387 |
|
|
|
1388 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1389 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1390 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1391 |
}
|
|
|
1392 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1393 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1394 |
(new Client(prot)).recv_scanForLostItem();
|
|
|
1395 |
}
|
|
|
1396 |
}
|
|
|
1397 |
|
|
|
1398 |
public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1399 |
checkReady();
|
|
|
1400 |
getCurrentSerializedInventoryByScans_call method_call = new getCurrentSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1401 |
this.___currentMethod = method_call;
|
|
|
1402 |
___manager.call(method_call);
|
|
|
1403 |
}
|
|
|
1404 |
|
|
|
1405 |
public static class getCurrentSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1406 |
public getCurrentSerializedInventoryByScans_call(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_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 {
|
|
|
1407 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1408 |
}
|
|
|
1409 |
|
|
|
1410 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1411 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1412 |
getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
|
|
|
1413 |
args.write(prot);
|
|
|
1414 |
prot.writeMessageEnd();
|
|
|
1415 |
}
|
|
|
1416 |
|
|
|
1417 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1418 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1419 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1420 |
}
|
|
|
1421 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1422 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1423 |
return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
|
|
|
1424 |
}
|
|
|
1425 |
}
|
|
|
1426 |
|
| 6630 |
amar.kumar |
1427 |
public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1428 |
checkReady();
|
|
|
1429 |
getCurrentNonSerializedInventoryByScans_call method_call = new getCurrentNonSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1430 |
this.___currentMethod = method_call;
|
|
|
1431 |
___manager.call(method_call);
|
|
|
1432 |
}
|
|
|
1433 |
|
|
|
1434 |
public static class getCurrentNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1435 |
public getCurrentNonSerializedInventoryByScans_call(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_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 {
|
|
|
1436 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1437 |
}
|
|
|
1438 |
|
|
|
1439 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1440 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1441 |
getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
|
|
|
1442 |
args.write(prot);
|
|
|
1443 |
prot.writeMessageEnd();
|
|
|
1444 |
}
|
|
|
1445 |
|
|
|
1446 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1447 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1448 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1449 |
}
|
|
|
1450 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1451 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1452 |
return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
|
|
|
1453 |
}
|
|
|
1454 |
}
|
|
|
1455 |
|
| 3430 |
rajveer |
1456 |
}
|
|
|
1457 |
|
|
|
1458 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
1459 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
1460 |
public Processor(I iface) {
|
|
|
1461 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
1462 |
}
|
|
|
1463 |
|
|
|
1464 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1465 |
super(iface, getProcessMap(processMap));
|
|
|
1466 |
}
|
|
|
1467 |
|
|
|
1468 |
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 |
1469 |
processMap.put("getInventoryItem", new getInventoryItem());
|
| 5361 |
mandeep.dh |
1470 |
processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
|
| 4496 |
mandeep.dh |
1471 |
processMap.put("scan", new scan());
|
|
|
1472 |
processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
|
|
|
1473 |
processMap.put("scanForOrder", new scanForOrder());
|
|
|
1474 |
processMap.put("createItemNumberMapping", new createItemNumberMapping());
|
| 4622 |
amit.gupta |
1475 |
processMap.put("getItemNumbers", new getItemNumbers());
|
| 5110 |
mandeep.dh |
1476 |
processMap.put("getItemIds", new getItemIds());
|
| 5185 |
mandeep.dh |
1477 |
processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
|
|
|
1478 |
processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
|
| 5372 |
mandeep.dh |
1479 |
processMap.put("getPurchaseScans", new getPurchaseScans());
|
| 5496 |
mandeep.dh |
1480 |
processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
|
| 5620 |
mandeep.dh |
1481 |
processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
|
| 5711 |
mandeep.dh |
1482 |
processMap.put("getInventoryAge", new getInventoryAge());
|
| 6322 |
amar.kumar |
1483 |
processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
|
|
|
1484 |
processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
|
| 6467 |
amar.kumar |
1485 |
processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
|
| 6548 |
amar.kumar |
1486 |
processMap.put("scanForLostItem", new scanForLostItem());
|
|
|
1487 |
processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
|
| 6630 |
amar.kumar |
1488 |
processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
|
| 3430 |
rajveer |
1489 |
return processMap;
|
|
|
1490 |
}
|
|
|
1491 |
|
| 4496 |
mandeep.dh |
1492 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
|
|
1493 |
public getInventoryItem() {
|
|
|
1494 |
super("getInventoryItem");
|
| 3430 |
rajveer |
1495 |
}
|
|
|
1496 |
|
| 4496 |
mandeep.dh |
1497 |
protected getInventoryItem_args getEmptyArgsInstance() {
|
|
|
1498 |
return new getInventoryItem_args();
|
| 3430 |
rajveer |
1499 |
}
|
|
|
1500 |
|
| 4496 |
mandeep.dh |
1501 |
protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1502 |
getInventoryItem_result result = new getInventoryItem_result();
|
| 4541 |
mandeep.dh |
1503 |
try {
|
|
|
1504 |
result.success = iface.getInventoryItem(args.serialNumber);
|
|
|
1505 |
} catch (WarehouseServiceException wex) {
|
|
|
1506 |
result.wex = wex;
|
|
|
1507 |
}
|
| 3430 |
rajveer |
1508 |
return result;
|
| 2832 |
chandransh |
1509 |
}
|
|
|
1510 |
}
|
|
|
1511 |
|
| 5361 |
mandeep.dh |
1512 |
private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
|
|
|
1513 |
public getNonSeralizedInventoryItem() {
|
|
|
1514 |
super("getNonSeralizedInventoryItem");
|
| 3430 |
rajveer |
1515 |
}
|
|
|
1516 |
|
| 5361 |
mandeep.dh |
1517 |
protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
|
|
|
1518 |
return new getNonSeralizedInventoryItem_args();
|
| 3430 |
rajveer |
1519 |
}
|
|
|
1520 |
|
| 5361 |
mandeep.dh |
1521 |
protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1522 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
1523 |
try {
|
| 5530 |
mandeep.dh |
1524 |
result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
1525 |
} catch (WarehouseServiceException wex) {
|
|
|
1526 |
result.wex = wex;
|
|
|
1527 |
}
|
| 3430 |
rajveer |
1528 |
return result;
|
| 2820 |
chandransh |
1529 |
}
|
|
|
1530 |
}
|
|
|
1531 |
|
| 4496 |
mandeep.dh |
1532 |
private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
|
|
|
1533 |
public scan() {
|
|
|
1534 |
super("scan");
|
| 3430 |
rajveer |
1535 |
}
|
|
|
1536 |
|
| 4496 |
mandeep.dh |
1537 |
protected scan_args getEmptyArgsInstance() {
|
|
|
1538 |
return new scan_args();
|
| 3430 |
rajveer |
1539 |
}
|
|
|
1540 |
|
| 4496 |
mandeep.dh |
1541 |
protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
|
|
|
1542 |
scan_result result = new scan_result();
|
| 3383 |
chandransh |
1543 |
try {
|
| 5361 |
mandeep.dh |
1544 |
iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId);
|
| 3383 |
chandransh |
1545 |
} catch (WarehouseServiceException wex) {
|
|
|
1546 |
result.wex = wex;
|
|
|
1547 |
}
|
| 3430 |
rajveer |
1548 |
return result;
|
| 3383 |
chandransh |
1549 |
}
|
|
|
1550 |
}
|
|
|
1551 |
|
| 4496 |
mandeep.dh |
1552 |
private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
|
|
|
1553 |
public scanSerializedItemForOrder() {
|
|
|
1554 |
super("scanSerializedItemForOrder");
|
| 3430 |
rajveer |
1555 |
}
|
|
|
1556 |
|
| 4496 |
mandeep.dh |
1557 |
protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
|
|
|
1558 |
return new scanSerializedItemForOrder_args();
|
| 3430 |
rajveer |
1559 |
}
|
|
|
1560 |
|
| 4496 |
mandeep.dh |
1561 |
protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1562 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
| 2820 |
chandransh |
1563 |
try {
|
| 5110 |
mandeep.dh |
1564 |
result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
|
| 2820 |
chandransh |
1565 |
} catch (WarehouseServiceException wex) {
|
|
|
1566 |
result.wex = wex;
|
|
|
1567 |
}
|
| 3430 |
rajveer |
1568 |
return result;
|
| 2820 |
chandransh |
1569 |
}
|
|
|
1570 |
}
|
|
|
1571 |
|
| 4496 |
mandeep.dh |
1572 |
private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
|
|
|
1573 |
public scanForOrder() {
|
|
|
1574 |
super("scanForOrder");
|
| 3430 |
rajveer |
1575 |
}
|
|
|
1576 |
|
| 4496 |
mandeep.dh |
1577 |
protected scanForOrder_args getEmptyArgsInstance() {
|
|
|
1578 |
return new scanForOrder_args();
|
| 3430 |
rajveer |
1579 |
}
|
|
|
1580 |
|
| 4496 |
mandeep.dh |
1581 |
protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1582 |
scanForOrder_result result = new scanForOrder_result();
|
| 2820 |
chandransh |
1583 |
try {
|
| 5361 |
mandeep.dh |
1584 |
result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
|
| 2820 |
chandransh |
1585 |
} catch (WarehouseServiceException wex) {
|
|
|
1586 |
result.wex = wex;
|
|
|
1587 |
}
|
| 3430 |
rajveer |
1588 |
return result;
|
| 2820 |
chandransh |
1589 |
}
|
|
|
1590 |
}
|
|
|
1591 |
|
| 4496 |
mandeep.dh |
1592 |
private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
|
|
|
1593 |
public createItemNumberMapping() {
|
|
|
1594 |
super("createItemNumberMapping");
|
|
|
1595 |
}
|
|
|
1596 |
|
|
|
1597 |
protected createItemNumberMapping_args getEmptyArgsInstance() {
|
|
|
1598 |
return new createItemNumberMapping_args();
|
|
|
1599 |
}
|
|
|
1600 |
|
|
|
1601 |
protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
|
|
|
1602 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
1603 |
iface.createItemNumberMapping(args.itemNumber, args.itemId);
|
|
|
1604 |
return result;
|
|
|
1605 |
}
|
|
|
1606 |
}
|
|
|
1607 |
|
| 4622 |
amit.gupta |
1608 |
private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
|
|
|
1609 |
public getItemNumbers() {
|
|
|
1610 |
super("getItemNumbers");
|
|
|
1611 |
}
|
|
|
1612 |
|
|
|
1613 |
protected getItemNumbers_args getEmptyArgsInstance() {
|
|
|
1614 |
return new getItemNumbers_args();
|
|
|
1615 |
}
|
|
|
1616 |
|
|
|
1617 |
protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
|
|
|
1618 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
1619 |
result.success = iface.getItemNumbers(args.itemId);
|
|
|
1620 |
return result;
|
|
|
1621 |
}
|
|
|
1622 |
}
|
|
|
1623 |
|
| 5110 |
mandeep.dh |
1624 |
private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
|
|
|
1625 |
public getItemIds() {
|
|
|
1626 |
super("getItemIds");
|
|
|
1627 |
}
|
|
|
1628 |
|
|
|
1629 |
protected getItemIds_args getEmptyArgsInstance() {
|
|
|
1630 |
return new getItemIds_args();
|
|
|
1631 |
}
|
|
|
1632 |
|
|
|
1633 |
protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
|
|
|
1634 |
getItemIds_result result = new getItemIds_result();
|
|
|
1635 |
result.success = iface.getItemIds(args.itemNumber);
|
|
|
1636 |
return result;
|
|
|
1637 |
}
|
|
|
1638 |
}
|
|
|
1639 |
|
| 5185 |
mandeep.dh |
1640 |
private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
|
|
|
1641 |
public getInventoryItemsFromLastScanType() {
|
|
|
1642 |
super("getInventoryItemsFromLastScanType");
|
|
|
1643 |
}
|
|
|
1644 |
|
|
|
1645 |
protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
|
|
|
1646 |
return new getInventoryItemsFromLastScanType_args();
|
|
|
1647 |
}
|
|
|
1648 |
|
|
|
1649 |
protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
|
|
|
1650 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
1651 |
try {
|
|
|
1652 |
result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
|
|
|
1653 |
} catch (WarehouseServiceException wex) {
|
|
|
1654 |
result.wex = wex;
|
|
|
1655 |
}
|
|
|
1656 |
return result;
|
|
|
1657 |
}
|
|
|
1658 |
}
|
|
|
1659 |
|
|
|
1660 |
private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
|
|
|
1661 |
public getInventoryItemFromId() {
|
|
|
1662 |
super("getInventoryItemFromId");
|
|
|
1663 |
}
|
|
|
1664 |
|
|
|
1665 |
protected getInventoryItemFromId_args getEmptyArgsInstance() {
|
|
|
1666 |
return new getInventoryItemFromId_args();
|
|
|
1667 |
}
|
|
|
1668 |
|
|
|
1669 |
protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
|
|
|
1670 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
1671 |
try {
|
|
|
1672 |
result.success = iface.getInventoryItemFromId(args.inventoryItemId);
|
|
|
1673 |
} catch (WarehouseServiceException wex) {
|
|
|
1674 |
result.wex = wex;
|
|
|
1675 |
}
|
|
|
1676 |
return result;
|
|
|
1677 |
}
|
|
|
1678 |
}
|
|
|
1679 |
|
| 5372 |
mandeep.dh |
1680 |
private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
|
|
|
1681 |
public getPurchaseScans() {
|
|
|
1682 |
super("getPurchaseScans");
|
|
|
1683 |
}
|
|
|
1684 |
|
|
|
1685 |
protected getPurchaseScans_args getEmptyArgsInstance() {
|
|
|
1686 |
return new getPurchaseScans_args();
|
|
|
1687 |
}
|
|
|
1688 |
|
|
|
1689 |
protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
|
|
|
1690 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
1691 |
result.success = iface.getPurchaseScans(args.startDate, args.endDate);
|
|
|
1692 |
return result;
|
|
|
1693 |
}
|
|
|
1694 |
}
|
|
|
1695 |
|
| 5496 |
mandeep.dh |
1696 |
private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
|
|
|
1697 |
public fetchScansPerInvoiceNumber() {
|
|
|
1698 |
super("fetchScansPerInvoiceNumber");
|
|
|
1699 |
}
|
|
|
1700 |
|
|
|
1701 |
protected fetchScansPerInvoiceNumber_args getEmptyArgsInstance() {
|
|
|
1702 |
return new fetchScansPerInvoiceNumber_args();
|
|
|
1703 |
}
|
|
|
1704 |
|
|
|
1705 |
protected fetchScansPerInvoiceNumber_result getResult(I iface, fetchScansPerInvoiceNumber_args args) throws org.apache.thrift.TException {
|
|
|
1706 |
fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
|
|
|
1707 |
result.success = iface.fetchScansPerInvoiceNumber(args.date);
|
|
|
1708 |
return result;
|
|
|
1709 |
}
|
|
|
1710 |
}
|
|
|
1711 |
|
| 5620 |
mandeep.dh |
1712 |
private static class getInventoryItemFromOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromOrder_args> {
|
|
|
1713 |
public getInventoryItemFromOrder() {
|
|
|
1714 |
super("getInventoryItemFromOrder");
|
|
|
1715 |
}
|
|
|
1716 |
|
|
|
1717 |
protected getInventoryItemFromOrder_args getEmptyArgsInstance() {
|
|
|
1718 |
return new getInventoryItemFromOrder_args();
|
|
|
1719 |
}
|
|
|
1720 |
|
|
|
1721 |
protected getInventoryItemFromOrder_result getResult(I iface, getInventoryItemFromOrder_args args) throws org.apache.thrift.TException {
|
|
|
1722 |
getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
|
|
|
1723 |
try {
|
|
|
1724 |
result.success = iface.getInventoryItemFromOrder(args.orderId);
|
|
|
1725 |
} catch (WarehouseServiceException we) {
|
|
|
1726 |
result.we = we;
|
|
|
1727 |
}
|
|
|
1728 |
return result;
|
|
|
1729 |
}
|
|
|
1730 |
}
|
|
|
1731 |
|
| 5711 |
mandeep.dh |
1732 |
private static class getInventoryAge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryAge_args> {
|
|
|
1733 |
public getInventoryAge() {
|
|
|
1734 |
super("getInventoryAge");
|
|
|
1735 |
}
|
|
|
1736 |
|
|
|
1737 |
protected getInventoryAge_args getEmptyArgsInstance() {
|
|
|
1738 |
return new getInventoryAge_args();
|
|
|
1739 |
}
|
|
|
1740 |
|
|
|
1741 |
protected getInventoryAge_result getResult(I iface, getInventoryAge_args args) throws org.apache.thrift.TException {
|
|
|
1742 |
getInventoryAge_result result = new getInventoryAge_result();
|
|
|
1743 |
result.success = iface.getInventoryAge();
|
|
|
1744 |
return result;
|
|
|
1745 |
}
|
|
|
1746 |
}
|
|
|
1747 |
|
| 6322 |
amar.kumar |
1748 |
private static class getInventoryScansForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryScansForItem_args> {
|
|
|
1749 |
public getInventoryScansForItem() {
|
|
|
1750 |
super("getInventoryScansForItem");
|
|
|
1751 |
}
|
|
|
1752 |
|
|
|
1753 |
protected getInventoryScansForItem_args getEmptyArgsInstance() {
|
|
|
1754 |
return new getInventoryScansForItem_args();
|
|
|
1755 |
}
|
|
|
1756 |
|
|
|
1757 |
protected getInventoryScansForItem_result getResult(I iface, getInventoryScansForItem_args args) throws org.apache.thrift.TException {
|
|
|
1758 |
getInventoryScansForItem_result result = new getInventoryScansForItem_result();
|
|
|
1759 |
result.success = iface.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate);
|
|
|
1760 |
return result;
|
|
|
1761 |
}
|
|
|
1762 |
}
|
|
|
1763 |
|
|
|
1764 |
private static class getScanRecordsForSerialNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanRecordsForSerialNumber_args> {
|
|
|
1765 |
public getScanRecordsForSerialNumber() {
|
|
|
1766 |
super("getScanRecordsForSerialNumber");
|
|
|
1767 |
}
|
|
|
1768 |
|
|
|
1769 |
protected getScanRecordsForSerialNumber_args getEmptyArgsInstance() {
|
|
|
1770 |
return new getScanRecordsForSerialNumber_args();
|
|
|
1771 |
}
|
|
|
1772 |
|
|
|
1773 |
protected getScanRecordsForSerialNumber_result getResult(I iface, getScanRecordsForSerialNumber_args args) throws org.apache.thrift.TException {
|
|
|
1774 |
getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
|
|
|
1775 |
result.success = iface.getScanRecordsForSerialNumber(args.serialNumber);
|
|
|
1776 |
return result;
|
|
|
1777 |
}
|
|
|
1778 |
}
|
|
|
1779 |
|
| 6467 |
amar.kumar |
1780 |
private static class scanForPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForPurchaseReturn_args> {
|
|
|
1781 |
public scanForPurchaseReturn() {
|
|
|
1782 |
super("scanForPurchaseReturn");
|
|
|
1783 |
}
|
|
|
1784 |
|
|
|
1785 |
protected scanForPurchaseReturn_args getEmptyArgsInstance() {
|
|
|
1786 |
return new scanForPurchaseReturn_args();
|
|
|
1787 |
}
|
|
|
1788 |
|
|
|
1789 |
protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
|
|
|
1790 |
scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
|
|
|
1791 |
try {
|
|
|
1792 |
iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId);
|
|
|
1793 |
} catch (WarehouseServiceException ex) {
|
|
|
1794 |
result.ex = ex;
|
|
|
1795 |
}
|
|
|
1796 |
return result;
|
|
|
1797 |
}
|
|
|
1798 |
}
|
|
|
1799 |
|
| 6548 |
amar.kumar |
1800 |
private static class scanForLostItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForLostItem_args> {
|
|
|
1801 |
public scanForLostItem() {
|
|
|
1802 |
super("scanForLostItem");
|
|
|
1803 |
}
|
|
|
1804 |
|
|
|
1805 |
protected scanForLostItem_args getEmptyArgsInstance() {
|
|
|
1806 |
return new scanForLostItem_args();
|
|
|
1807 |
}
|
|
|
1808 |
|
|
|
1809 |
protected scanForLostItem_result getResult(I iface, scanForLostItem_args args) throws org.apache.thrift.TException {
|
|
|
1810 |
scanForLostItem_result result = new scanForLostItem_result();
|
|
|
1811 |
try {
|
|
|
1812 |
iface.scanForLostItem(args.lostItems, args.vendorId);
|
|
|
1813 |
} catch (WarehouseServiceException ex) {
|
|
|
1814 |
result.ex = ex;
|
|
|
1815 |
}
|
|
|
1816 |
return result;
|
|
|
1817 |
}
|
|
|
1818 |
}
|
|
|
1819 |
|
|
|
1820 |
private static class getCurrentSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentSerializedInventoryByScans_args> {
|
|
|
1821 |
public getCurrentSerializedInventoryByScans() {
|
|
|
1822 |
super("getCurrentSerializedInventoryByScans");
|
|
|
1823 |
}
|
|
|
1824 |
|
|
|
1825 |
protected getCurrentSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
1826 |
return new getCurrentSerializedInventoryByScans_args();
|
|
|
1827 |
}
|
|
|
1828 |
|
|
|
1829 |
protected getCurrentSerializedInventoryByScans_result getResult(I iface, getCurrentSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
1830 |
getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
|
|
|
1831 |
result.success = iface.getCurrentSerializedInventoryByScans();
|
|
|
1832 |
return result;
|
|
|
1833 |
}
|
|
|
1834 |
}
|
|
|
1835 |
|
| 6630 |
amar.kumar |
1836 |
private static class getCurrentNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentNonSerializedInventoryByScans_args> {
|
|
|
1837 |
public getCurrentNonSerializedInventoryByScans() {
|
|
|
1838 |
super("getCurrentNonSerializedInventoryByScans");
|
|
|
1839 |
}
|
|
|
1840 |
|
|
|
1841 |
protected getCurrentNonSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
1842 |
return new getCurrentNonSerializedInventoryByScans_args();
|
|
|
1843 |
}
|
|
|
1844 |
|
|
|
1845 |
protected getCurrentNonSerializedInventoryByScans_result getResult(I iface, getCurrentNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
1846 |
getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
|
|
|
1847 |
result.success = iface.getCurrentNonSerializedInventoryByScans();
|
|
|
1848 |
return result;
|
|
|
1849 |
}
|
|
|
1850 |
}
|
|
|
1851 |
|
| 2820 |
chandransh |
1852 |
}
|
|
|
1853 |
|
| 4496 |
mandeep.dh |
1854 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1855 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
| 2832 |
chandransh |
1856 |
|
| 4496 |
mandeep.dh |
1857 |
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 |
1858 |
|
| 4496 |
mandeep.dh |
1859 |
private String serialNumber; // required
|
| 2832 |
chandransh |
1860 |
|
|
|
1861 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1862 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
1863 |
SERIAL_NUMBER((short)1, "serialNumber");
|
| 2832 |
chandransh |
1864 |
|
|
|
1865 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1866 |
|
|
|
1867 |
static {
|
|
|
1868 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1869 |
byName.put(field.getFieldName(), field);
|
|
|
1870 |
}
|
|
|
1871 |
}
|
|
|
1872 |
|
|
|
1873 |
/**
|
|
|
1874 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1875 |
*/
|
|
|
1876 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1877 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
1878 |
case 1: // SERIAL_NUMBER
|
|
|
1879 |
return SERIAL_NUMBER;
|
| 3430 |
rajveer |
1880 |
default:
|
|
|
1881 |
return null;
|
|
|
1882 |
}
|
| 2832 |
chandransh |
1883 |
}
|
|
|
1884 |
|
|
|
1885 |
/**
|
|
|
1886 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1887 |
* if it is not found.
|
|
|
1888 |
*/
|
|
|
1889 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1890 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1891 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1892 |
return fields;
|
|
|
1893 |
}
|
|
|
1894 |
|
|
|
1895 |
/**
|
|
|
1896 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1897 |
*/
|
|
|
1898 |
public static _Fields findByName(String name) {
|
|
|
1899 |
return byName.get(name);
|
|
|
1900 |
}
|
|
|
1901 |
|
|
|
1902 |
private final short _thriftId;
|
|
|
1903 |
private final String _fieldName;
|
|
|
1904 |
|
|
|
1905 |
_Fields(short thriftId, String fieldName) {
|
|
|
1906 |
_thriftId = thriftId;
|
|
|
1907 |
_fieldName = fieldName;
|
|
|
1908 |
}
|
|
|
1909 |
|
|
|
1910 |
public short getThriftFieldId() {
|
|
|
1911 |
return _thriftId;
|
|
|
1912 |
}
|
|
|
1913 |
|
|
|
1914 |
public String getFieldName() {
|
|
|
1915 |
return _fieldName;
|
|
|
1916 |
}
|
|
|
1917 |
}
|
|
|
1918 |
|
|
|
1919 |
// isset id assignments
|
|
|
1920 |
|
| 3430 |
rajveer |
1921 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
1922 |
static {
|
| 3430 |
rajveer |
1923 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
1924 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1925 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
1926 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
1927 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
|
| 2832 |
chandransh |
1928 |
}
|
|
|
1929 |
|
| 4496 |
mandeep.dh |
1930 |
public getInventoryItem_args() {
|
| 2832 |
chandransh |
1931 |
}
|
|
|
1932 |
|
| 4496 |
mandeep.dh |
1933 |
public getInventoryItem_args(
|
|
|
1934 |
String serialNumber)
|
| 2832 |
chandransh |
1935 |
{
|
|
|
1936 |
this();
|
| 4496 |
mandeep.dh |
1937 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
1938 |
}
|
|
|
1939 |
|
|
|
1940 |
/**
|
|
|
1941 |
* Performs a deep copy on <i>other</i>.
|
|
|
1942 |
*/
|
| 4496 |
mandeep.dh |
1943 |
public getInventoryItem_args(getInventoryItem_args other) {
|
|
|
1944 |
if (other.isSetSerialNumber()) {
|
|
|
1945 |
this.serialNumber = other.serialNumber;
|
|
|
1946 |
}
|
| 2832 |
chandransh |
1947 |
}
|
|
|
1948 |
|
| 4496 |
mandeep.dh |
1949 |
public getInventoryItem_args deepCopy() {
|
|
|
1950 |
return new getInventoryItem_args(this);
|
| 2832 |
chandransh |
1951 |
}
|
|
|
1952 |
|
| 3430 |
rajveer |
1953 |
@Override
|
|
|
1954 |
public void clear() {
|
| 4496 |
mandeep.dh |
1955 |
this.serialNumber = null;
|
| 2832 |
chandransh |
1956 |
}
|
|
|
1957 |
|
| 4496 |
mandeep.dh |
1958 |
public String getSerialNumber() {
|
|
|
1959 |
return this.serialNumber;
|
| 2832 |
chandransh |
1960 |
}
|
|
|
1961 |
|
| 4496 |
mandeep.dh |
1962 |
public void setSerialNumber(String serialNumber) {
|
|
|
1963 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
1964 |
}
|
|
|
1965 |
|
| 4496 |
mandeep.dh |
1966 |
public void unsetSerialNumber() {
|
|
|
1967 |
this.serialNumber = null;
|
| 2832 |
chandransh |
1968 |
}
|
|
|
1969 |
|
| 4496 |
mandeep.dh |
1970 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
1971 |
public boolean isSetSerialNumber() {
|
|
|
1972 |
return this.serialNumber != null;
|
| 2832 |
chandransh |
1973 |
}
|
|
|
1974 |
|
| 4496 |
mandeep.dh |
1975 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
1976 |
if (!value) {
|
|
|
1977 |
this.serialNumber = null;
|
|
|
1978 |
}
|
| 2832 |
chandransh |
1979 |
}
|
|
|
1980 |
|
|
|
1981 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1982 |
switch (field) {
|
| 4496 |
mandeep.dh |
1983 |
case SERIAL_NUMBER:
|
| 2832 |
chandransh |
1984 |
if (value == null) {
|
| 4496 |
mandeep.dh |
1985 |
unsetSerialNumber();
|
| 2832 |
chandransh |
1986 |
} else {
|
| 4496 |
mandeep.dh |
1987 |
setSerialNumber((String)value);
|
| 2832 |
chandransh |
1988 |
}
|
|
|
1989 |
break;
|
|
|
1990 |
|
|
|
1991 |
}
|
|
|
1992 |
}
|
|
|
1993 |
|
|
|
1994 |
public Object getFieldValue(_Fields field) {
|
|
|
1995 |
switch (field) {
|
| 4496 |
mandeep.dh |
1996 |
case SERIAL_NUMBER:
|
|
|
1997 |
return getSerialNumber();
|
| 2832 |
chandransh |
1998 |
|
|
|
1999 |
}
|
|
|
2000 |
throw new IllegalStateException();
|
|
|
2001 |
}
|
|
|
2002 |
|
| 3430 |
rajveer |
2003 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2004 |
public boolean isSet(_Fields field) {
|
|
|
2005 |
if (field == null) {
|
|
|
2006 |
throw new IllegalArgumentException();
|
|
|
2007 |
}
|
| 2832 |
chandransh |
2008 |
|
|
|
2009 |
switch (field) {
|
| 4496 |
mandeep.dh |
2010 |
case SERIAL_NUMBER:
|
|
|
2011 |
return isSetSerialNumber();
|
| 2832 |
chandransh |
2012 |
}
|
|
|
2013 |
throw new IllegalStateException();
|
|
|
2014 |
}
|
|
|
2015 |
|
|
|
2016 |
@Override
|
|
|
2017 |
public boolean equals(Object that) {
|
|
|
2018 |
if (that == null)
|
|
|
2019 |
return false;
|
| 4496 |
mandeep.dh |
2020 |
if (that instanceof getInventoryItem_args)
|
|
|
2021 |
return this.equals((getInventoryItem_args)that);
|
| 2832 |
chandransh |
2022 |
return false;
|
|
|
2023 |
}
|
|
|
2024 |
|
| 4496 |
mandeep.dh |
2025 |
public boolean equals(getInventoryItem_args that) {
|
| 2832 |
chandransh |
2026 |
if (that == null)
|
|
|
2027 |
return false;
|
|
|
2028 |
|
| 4496 |
mandeep.dh |
2029 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
2030 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
2031 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
2032 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2832 |
chandransh |
2033 |
return false;
|
| 4496 |
mandeep.dh |
2034 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2832 |
chandransh |
2035 |
return false;
|
|
|
2036 |
}
|
|
|
2037 |
|
|
|
2038 |
return true;
|
|
|
2039 |
}
|
|
|
2040 |
|
|
|
2041 |
@Override
|
|
|
2042 |
public int hashCode() {
|
|
|
2043 |
return 0;
|
|
|
2044 |
}
|
|
|
2045 |
|
| 4496 |
mandeep.dh |
2046 |
public int compareTo(getInventoryItem_args other) {
|
| 2832 |
chandransh |
2047 |
if (!getClass().equals(other.getClass())) {
|
|
|
2048 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2049 |
}
|
|
|
2050 |
|
|
|
2051 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
2052 |
getInventoryItem_args typedOther = (getInventoryItem_args)other;
|
| 2832 |
chandransh |
2053 |
|
| 4496 |
mandeep.dh |
2054 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2832 |
chandransh |
2055 |
if (lastComparison != 0) {
|
|
|
2056 |
return lastComparison;
|
|
|
2057 |
}
|
| 4496 |
mandeep.dh |
2058 |
if (isSetSerialNumber()) {
|
|
|
2059 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
2060 |
if (lastComparison != 0) {
|
|
|
2061 |
return lastComparison;
|
|
|
2062 |
}
|
| 2832 |
chandransh |
2063 |
}
|
|
|
2064 |
return 0;
|
|
|
2065 |
}
|
|
|
2066 |
|
| 3430 |
rajveer |
2067 |
public _Fields fieldForId(int fieldId) {
|
|
|
2068 |
return _Fields.findByThriftId(fieldId);
|
|
|
2069 |
}
|
|
|
2070 |
|
|
|
2071 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2072 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
2073 |
iprot.readStructBegin();
|
|
|
2074 |
while (true)
|
|
|
2075 |
{
|
|
|
2076 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2077 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
2078 |
break;
|
|
|
2079 |
}
|
| 3430 |
rajveer |
2080 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
2081 |
case 1: // SERIAL_NUMBER
|
|
|
2082 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
2083 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
2084 |
} else {
|
|
|
2085 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2086 |
}
|
|
|
2087 |
break;
|
|
|
2088 |
default:
|
|
|
2089 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
2090 |
}
|
| 3430 |
rajveer |
2091 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
2092 |
}
|
|
|
2093 |
iprot.readStructEnd();
|
|
|
2094 |
validate();
|
|
|
2095 |
}
|
|
|
2096 |
|
| 3430 |
rajveer |
2097 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
2098 |
validate();
|
|
|
2099 |
|
|
|
2100 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
2101 |
if (this.serialNumber != null) {
|
|
|
2102 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
2103 |
oprot.writeString(this.serialNumber);
|
|
|
2104 |
oprot.writeFieldEnd();
|
|
|
2105 |
}
|
| 2832 |
chandransh |
2106 |
oprot.writeFieldStop();
|
|
|
2107 |
oprot.writeStructEnd();
|
|
|
2108 |
}
|
|
|
2109 |
|
|
|
2110 |
@Override
|
|
|
2111 |
public String toString() {
|
| 4496 |
mandeep.dh |
2112 |
StringBuilder sb = new StringBuilder("getInventoryItem_args(");
|
| 2832 |
chandransh |
2113 |
boolean first = true;
|
|
|
2114 |
|
| 4496 |
mandeep.dh |
2115 |
sb.append("serialNumber:");
|
|
|
2116 |
if (this.serialNumber == null) {
|
|
|
2117 |
sb.append("null");
|
|
|
2118 |
} else {
|
|
|
2119 |
sb.append(this.serialNumber);
|
|
|
2120 |
}
|
| 2832 |
chandransh |
2121 |
first = false;
|
|
|
2122 |
sb.append(")");
|
|
|
2123 |
return sb.toString();
|
|
|
2124 |
}
|
|
|
2125 |
|
| 3430 |
rajveer |
2126 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
2127 |
// check for required fields
|
|
|
2128 |
}
|
|
|
2129 |
|
| 3430 |
rajveer |
2130 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2131 |
try {
|
|
|
2132 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2133 |
} catch (org.apache.thrift.TException te) {
|
|
|
2134 |
throw new java.io.IOException(te);
|
|
|
2135 |
}
|
|
|
2136 |
}
|
|
|
2137 |
|
|
|
2138 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2139 |
try {
|
|
|
2140 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2141 |
} catch (org.apache.thrift.TException te) {
|
|
|
2142 |
throw new java.io.IOException(te);
|
|
|
2143 |
}
|
|
|
2144 |
}
|
|
|
2145 |
|
| 2832 |
chandransh |
2146 |
}
|
|
|
2147 |
|
| 4496 |
mandeep.dh |
2148 |
public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2149 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
|
| 2832 |
chandransh |
2150 |
|
| 3430 |
rajveer |
2151 |
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 |
2152 |
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 |
2153 |
|
| 4496 |
mandeep.dh |
2154 |
private InventoryItem success; // required
|
| 4541 |
mandeep.dh |
2155 |
private WarehouseServiceException wex; // required
|
| 2832 |
chandransh |
2156 |
|
|
|
2157 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2158 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4541 |
mandeep.dh |
2159 |
SUCCESS((short)0, "success"),
|
|
|
2160 |
WEX((short)1, "wex");
|
| 2832 |
chandransh |
2161 |
|
|
|
2162 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2163 |
|
|
|
2164 |
static {
|
|
|
2165 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2166 |
byName.put(field.getFieldName(), field);
|
|
|
2167 |
}
|
|
|
2168 |
}
|
|
|
2169 |
|
|
|
2170 |
/**
|
|
|
2171 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2172 |
*/
|
|
|
2173 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2174 |
switch(fieldId) {
|
|
|
2175 |
case 0: // SUCCESS
|
|
|
2176 |
return SUCCESS;
|
| 4541 |
mandeep.dh |
2177 |
case 1: // WEX
|
|
|
2178 |
return WEX;
|
| 3430 |
rajveer |
2179 |
default:
|
|
|
2180 |
return null;
|
|
|
2181 |
}
|
| 2832 |
chandransh |
2182 |
}
|
|
|
2183 |
|
|
|
2184 |
/**
|
|
|
2185 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2186 |
* if it is not found.
|
|
|
2187 |
*/
|
|
|
2188 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2189 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2190 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2191 |
return fields;
|
|
|
2192 |
}
|
|
|
2193 |
|
|
|
2194 |
/**
|
|
|
2195 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2196 |
*/
|
|
|
2197 |
public static _Fields findByName(String name) {
|
|
|
2198 |
return byName.get(name);
|
|
|
2199 |
}
|
|
|
2200 |
|
|
|
2201 |
private final short _thriftId;
|
|
|
2202 |
private final String _fieldName;
|
|
|
2203 |
|
|
|
2204 |
_Fields(short thriftId, String fieldName) {
|
|
|
2205 |
_thriftId = thriftId;
|
|
|
2206 |
_fieldName = fieldName;
|
|
|
2207 |
}
|
|
|
2208 |
|
|
|
2209 |
public short getThriftFieldId() {
|
|
|
2210 |
return _thriftId;
|
|
|
2211 |
}
|
|
|
2212 |
|
|
|
2213 |
public String getFieldName() {
|
|
|
2214 |
return _fieldName;
|
|
|
2215 |
}
|
|
|
2216 |
}
|
|
|
2217 |
|
|
|
2218 |
// isset id assignments
|
|
|
2219 |
|
| 3430 |
rajveer |
2220 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
2221 |
static {
|
| 3430 |
rajveer |
2222 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2223 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
2224 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4541 |
mandeep.dh |
2225 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2226 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
2227 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
2228 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
|
| 2832 |
chandransh |
2229 |
}
|
|
|
2230 |
|
| 4496 |
mandeep.dh |
2231 |
public getInventoryItem_result() {
|
| 2832 |
chandransh |
2232 |
}
|
|
|
2233 |
|
| 4496 |
mandeep.dh |
2234 |
public getInventoryItem_result(
|
| 4541 |
mandeep.dh |
2235 |
InventoryItem success,
|
|
|
2236 |
WarehouseServiceException wex)
|
| 2832 |
chandransh |
2237 |
{
|
|
|
2238 |
this();
|
|
|
2239 |
this.success = success;
|
| 4541 |
mandeep.dh |
2240 |
this.wex = wex;
|
| 2832 |
chandransh |
2241 |
}
|
|
|
2242 |
|
|
|
2243 |
/**
|
|
|
2244 |
* Performs a deep copy on <i>other</i>.
|
|
|
2245 |
*/
|
| 4496 |
mandeep.dh |
2246 |
public getInventoryItem_result(getInventoryItem_result other) {
|
| 2832 |
chandransh |
2247 |
if (other.isSetSuccess()) {
|
| 4496 |
mandeep.dh |
2248 |
this.success = new InventoryItem(other.success);
|
| 2832 |
chandransh |
2249 |
}
|
| 4541 |
mandeep.dh |
2250 |
if (other.isSetWex()) {
|
|
|
2251 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
2252 |
}
|
| 2832 |
chandransh |
2253 |
}
|
|
|
2254 |
|
| 4496 |
mandeep.dh |
2255 |
public getInventoryItem_result deepCopy() {
|
|
|
2256 |
return new getInventoryItem_result(this);
|
| 2832 |
chandransh |
2257 |
}
|
|
|
2258 |
|
| 3430 |
rajveer |
2259 |
@Override
|
|
|
2260 |
public void clear() {
|
|
|
2261 |
this.success = null;
|
| 4541 |
mandeep.dh |
2262 |
this.wex = null;
|
| 2832 |
chandransh |
2263 |
}
|
|
|
2264 |
|
| 4496 |
mandeep.dh |
2265 |
public InventoryItem getSuccess() {
|
| 2832 |
chandransh |
2266 |
return this.success;
|
|
|
2267 |
}
|
|
|
2268 |
|
| 4496 |
mandeep.dh |
2269 |
public void setSuccess(InventoryItem success) {
|
| 2832 |
chandransh |
2270 |
this.success = success;
|
|
|
2271 |
}
|
|
|
2272 |
|
|
|
2273 |
public void unsetSuccess() {
|
|
|
2274 |
this.success = null;
|
|
|
2275 |
}
|
|
|
2276 |
|
| 3430 |
rajveer |
2277 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
2278 |
public boolean isSetSuccess() {
|
|
|
2279 |
return this.success != null;
|
|
|
2280 |
}
|
|
|
2281 |
|
|
|
2282 |
public void setSuccessIsSet(boolean value) {
|
|
|
2283 |
if (!value) {
|
|
|
2284 |
this.success = null;
|
|
|
2285 |
}
|
|
|
2286 |
}
|
|
|
2287 |
|
| 4541 |
mandeep.dh |
2288 |
public WarehouseServiceException getWex() {
|
|
|
2289 |
return this.wex;
|
|
|
2290 |
}
|
|
|
2291 |
|
|
|
2292 |
public void setWex(WarehouseServiceException wex) {
|
|
|
2293 |
this.wex = wex;
|
|
|
2294 |
}
|
|
|
2295 |
|
|
|
2296 |
public void unsetWex() {
|
|
|
2297 |
this.wex = null;
|
|
|
2298 |
}
|
|
|
2299 |
|
|
|
2300 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
2301 |
public boolean isSetWex() {
|
|
|
2302 |
return this.wex != null;
|
|
|
2303 |
}
|
|
|
2304 |
|
|
|
2305 |
public void setWexIsSet(boolean value) {
|
|
|
2306 |
if (!value) {
|
|
|
2307 |
this.wex = null;
|
|
|
2308 |
}
|
|
|
2309 |
}
|
|
|
2310 |
|
| 2832 |
chandransh |
2311 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2312 |
switch (field) {
|
|
|
2313 |
case SUCCESS:
|
|
|
2314 |
if (value == null) {
|
|
|
2315 |
unsetSuccess();
|
|
|
2316 |
} else {
|
| 4496 |
mandeep.dh |
2317 |
setSuccess((InventoryItem)value);
|
| 2832 |
chandransh |
2318 |
}
|
|
|
2319 |
break;
|
|
|
2320 |
|
| 4541 |
mandeep.dh |
2321 |
case WEX:
|
|
|
2322 |
if (value == null) {
|
|
|
2323 |
unsetWex();
|
|
|
2324 |
} else {
|
|
|
2325 |
setWex((WarehouseServiceException)value);
|
|
|
2326 |
}
|
|
|
2327 |
break;
|
|
|
2328 |
|
| 2832 |
chandransh |
2329 |
}
|
|
|
2330 |
}
|
|
|
2331 |
|
|
|
2332 |
public Object getFieldValue(_Fields field) {
|
|
|
2333 |
switch (field) {
|
|
|
2334 |
case SUCCESS:
|
|
|
2335 |
return getSuccess();
|
|
|
2336 |
|
| 4541 |
mandeep.dh |
2337 |
case WEX:
|
|
|
2338 |
return getWex();
|
|
|
2339 |
|
| 2832 |
chandransh |
2340 |
}
|
|
|
2341 |
throw new IllegalStateException();
|
|
|
2342 |
}
|
|
|
2343 |
|
| 3430 |
rajveer |
2344 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2345 |
public boolean isSet(_Fields field) {
|
|
|
2346 |
if (field == null) {
|
|
|
2347 |
throw new IllegalArgumentException();
|
|
|
2348 |
}
|
| 2832 |
chandransh |
2349 |
|
|
|
2350 |
switch (field) {
|
|
|
2351 |
case SUCCESS:
|
|
|
2352 |
return isSetSuccess();
|
| 4541 |
mandeep.dh |
2353 |
case WEX:
|
|
|
2354 |
return isSetWex();
|
| 2832 |
chandransh |
2355 |
}
|
|
|
2356 |
throw new IllegalStateException();
|
|
|
2357 |
}
|
|
|
2358 |
|
|
|
2359 |
@Override
|
|
|
2360 |
public boolean equals(Object that) {
|
|
|
2361 |
if (that == null)
|
|
|
2362 |
return false;
|
| 4496 |
mandeep.dh |
2363 |
if (that instanceof getInventoryItem_result)
|
|
|
2364 |
return this.equals((getInventoryItem_result)that);
|
| 2832 |
chandransh |
2365 |
return false;
|
|
|
2366 |
}
|
|
|
2367 |
|
| 4496 |
mandeep.dh |
2368 |
public boolean equals(getInventoryItem_result that) {
|
| 2832 |
chandransh |
2369 |
if (that == null)
|
|
|
2370 |
return false;
|
|
|
2371 |
|
|
|
2372 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2373 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
2374 |
if (this_present_success || that_present_success) {
|
|
|
2375 |
if (!(this_present_success && that_present_success))
|
|
|
2376 |
return false;
|
|
|
2377 |
if (!this.success.equals(that.success))
|
|
|
2378 |
return false;
|
|
|
2379 |
}
|
|
|
2380 |
|
| 4541 |
mandeep.dh |
2381 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
2382 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
2383 |
if (this_present_wex || that_present_wex) {
|
|
|
2384 |
if (!(this_present_wex && that_present_wex))
|
|
|
2385 |
return false;
|
|
|
2386 |
if (!this.wex.equals(that.wex))
|
|
|
2387 |
return false;
|
|
|
2388 |
}
|
|
|
2389 |
|
| 2832 |
chandransh |
2390 |
return true;
|
|
|
2391 |
}
|
|
|
2392 |
|
|
|
2393 |
@Override
|
|
|
2394 |
public int hashCode() {
|
|
|
2395 |
return 0;
|
|
|
2396 |
}
|
|
|
2397 |
|
| 4496 |
mandeep.dh |
2398 |
public int compareTo(getInventoryItem_result other) {
|
| 2832 |
chandransh |
2399 |
if (!getClass().equals(other.getClass())) {
|
|
|
2400 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2401 |
}
|
|
|
2402 |
|
|
|
2403 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
2404 |
getInventoryItem_result typedOther = (getInventoryItem_result)other;
|
| 2832 |
chandransh |
2405 |
|
| 3430 |
rajveer |
2406 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2832 |
chandransh |
2407 |
if (lastComparison != 0) {
|
|
|
2408 |
return lastComparison;
|
|
|
2409 |
}
|
| 3430 |
rajveer |
2410 |
if (isSetSuccess()) {
|
|
|
2411 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2412 |
if (lastComparison != 0) {
|
|
|
2413 |
return lastComparison;
|
|
|
2414 |
}
|
| 2832 |
chandransh |
2415 |
}
|
| 4541 |
mandeep.dh |
2416 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
2417 |
if (lastComparison != 0) {
|
|
|
2418 |
return lastComparison;
|
|
|
2419 |
}
|
|
|
2420 |
if (isSetWex()) {
|
|
|
2421 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
2422 |
if (lastComparison != 0) {
|
|
|
2423 |
return lastComparison;
|
|
|
2424 |
}
|
|
|
2425 |
}
|
| 2832 |
chandransh |
2426 |
return 0;
|
|
|
2427 |
}
|
|
|
2428 |
|
| 3430 |
rajveer |
2429 |
public _Fields fieldForId(int fieldId) {
|
|
|
2430 |
return _Fields.findByThriftId(fieldId);
|
|
|
2431 |
}
|
|
|
2432 |
|
|
|
2433 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2434 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
2435 |
iprot.readStructBegin();
|
|
|
2436 |
while (true)
|
|
|
2437 |
{
|
|
|
2438 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2439 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
2440 |
break;
|
|
|
2441 |
}
|
| 3430 |
rajveer |
2442 |
switch (field.id) {
|
|
|
2443 |
case 0: // SUCCESS
|
|
|
2444 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| 4496 |
mandeep.dh |
2445 |
this.success = new InventoryItem();
|
| 3430 |
rajveer |
2446 |
this.success.read(iprot);
|
|
|
2447 |
} else {
|
|
|
2448 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2449 |
}
|
|
|
2450 |
break;
|
| 4541 |
mandeep.dh |
2451 |
case 1: // WEX
|
|
|
2452 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2453 |
this.wex = new WarehouseServiceException();
|
|
|
2454 |
this.wex.read(iprot);
|
|
|
2455 |
} else {
|
|
|
2456 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2457 |
}
|
|
|
2458 |
break;
|
| 3430 |
rajveer |
2459 |
default:
|
|
|
2460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
2461 |
}
|
| 3430 |
rajveer |
2462 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
2463 |
}
|
|
|
2464 |
iprot.readStructEnd();
|
|
|
2465 |
validate();
|
|
|
2466 |
}
|
|
|
2467 |
|
| 3430 |
rajveer |
2468 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
2469 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2470 |
|
|
|
2471 |
if (this.isSetSuccess()) {
|
|
|
2472 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
2473 |
this.success.write(oprot);
|
|
|
2474 |
oprot.writeFieldEnd();
|
| 4541 |
mandeep.dh |
2475 |
} else if (this.isSetWex()) {
|
|
|
2476 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
2477 |
this.wex.write(oprot);
|
|
|
2478 |
oprot.writeFieldEnd();
|
| 2832 |
chandransh |
2479 |
}
|
|
|
2480 |
oprot.writeFieldStop();
|
|
|
2481 |
oprot.writeStructEnd();
|
|
|
2482 |
}
|
|
|
2483 |
|
|
|
2484 |
@Override
|
|
|
2485 |
public String toString() {
|
| 4496 |
mandeep.dh |
2486 |
StringBuilder sb = new StringBuilder("getInventoryItem_result(");
|
| 2832 |
chandransh |
2487 |
boolean first = true;
|
|
|
2488 |
|
|
|
2489 |
sb.append("success:");
|
|
|
2490 |
if (this.success == null) {
|
|
|
2491 |
sb.append("null");
|
|
|
2492 |
} else {
|
|
|
2493 |
sb.append(this.success);
|
|
|
2494 |
}
|
|
|
2495 |
first = false;
|
| 4541 |
mandeep.dh |
2496 |
if (!first) sb.append(", ");
|
|
|
2497 |
sb.append("wex:");
|
|
|
2498 |
if (this.wex == null) {
|
|
|
2499 |
sb.append("null");
|
|
|
2500 |
} else {
|
|
|
2501 |
sb.append(this.wex);
|
|
|
2502 |
}
|
|
|
2503 |
first = false;
|
| 2832 |
chandransh |
2504 |
sb.append(")");
|
|
|
2505 |
return sb.toString();
|
|
|
2506 |
}
|
|
|
2507 |
|
| 3430 |
rajveer |
2508 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
2509 |
// check for required fields
|
|
|
2510 |
}
|
|
|
2511 |
|
| 3430 |
rajveer |
2512 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2513 |
try {
|
|
|
2514 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2515 |
} catch (org.apache.thrift.TException te) {
|
|
|
2516 |
throw new java.io.IOException(te);
|
|
|
2517 |
}
|
|
|
2518 |
}
|
|
|
2519 |
|
|
|
2520 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2521 |
try {
|
|
|
2522 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2523 |
} catch (org.apache.thrift.TException te) {
|
|
|
2524 |
throw new java.io.IOException(te);
|
|
|
2525 |
}
|
|
|
2526 |
}
|
|
|
2527 |
|
| 2832 |
chandransh |
2528 |
}
|
|
|
2529 |
|
| 5361 |
mandeep.dh |
2530 |
public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2531 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
|
| 2820 |
chandransh |
2532 |
|
| 5530 |
mandeep.dh |
2533 |
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);
|
|
|
2534 |
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);
|
|
|
2535 |
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 |
2536 |
|
| 5530 |
mandeep.dh |
2537 |
private String itemNumber; // required
|
| 4496 |
mandeep.dh |
2538 |
private long itemId; // required
|
| 5530 |
mandeep.dh |
2539 |
private long fulfilmentWarehouseId; // required
|
| 2820 |
chandransh |
2540 |
|
|
|
2541 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2542 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5530 |
mandeep.dh |
2543 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
2544 |
ITEM_ID((short)2, "itemId"),
|
|
|
2545 |
FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
|
| 2820 |
chandransh |
2546 |
|
|
|
2547 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2548 |
|
|
|
2549 |
static {
|
|
|
2550 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2551 |
byName.put(field.getFieldName(), field);
|
|
|
2552 |
}
|
|
|
2553 |
}
|
|
|
2554 |
|
|
|
2555 |
/**
|
|
|
2556 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2557 |
*/
|
|
|
2558 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2559 |
switch(fieldId) {
|
| 5530 |
mandeep.dh |
2560 |
case 1: // ITEM_NUMBER
|
|
|
2561 |
return ITEM_NUMBER;
|
|
|
2562 |
case 2: // ITEM_ID
|
| 4496 |
mandeep.dh |
2563 |
return ITEM_ID;
|
| 5530 |
mandeep.dh |
2564 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
|
|
2565 |
return FULFILMENT_WAREHOUSE_ID;
|
| 3430 |
rajveer |
2566 |
default:
|
|
|
2567 |
return null;
|
|
|
2568 |
}
|
| 2820 |
chandransh |
2569 |
}
|
|
|
2570 |
|
|
|
2571 |
/**
|
|
|
2572 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2573 |
* if it is not found.
|
|
|
2574 |
*/
|
|
|
2575 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2576 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2577 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2578 |
return fields;
|
|
|
2579 |
}
|
|
|
2580 |
|
|
|
2581 |
/**
|
|
|
2582 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2583 |
*/
|
|
|
2584 |
public static _Fields findByName(String name) {
|
|
|
2585 |
return byName.get(name);
|
|
|
2586 |
}
|
|
|
2587 |
|
|
|
2588 |
private final short _thriftId;
|
|
|
2589 |
private final String _fieldName;
|
|
|
2590 |
|
|
|
2591 |
_Fields(short thriftId, String fieldName) {
|
|
|
2592 |
_thriftId = thriftId;
|
|
|
2593 |
_fieldName = fieldName;
|
|
|
2594 |
}
|
|
|
2595 |
|
|
|
2596 |
public short getThriftFieldId() {
|
|
|
2597 |
return _thriftId;
|
|
|
2598 |
}
|
|
|
2599 |
|
|
|
2600 |
public String getFieldName() {
|
|
|
2601 |
return _fieldName;
|
|
|
2602 |
}
|
|
|
2603 |
}
|
|
|
2604 |
|
|
|
2605 |
// isset id assignments
|
| 4496 |
mandeep.dh |
2606 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 5530 |
mandeep.dh |
2607 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
| 5361 |
mandeep.dh |
2608 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 2820 |
chandransh |
2609 |
|
| 3430 |
rajveer |
2610 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
2611 |
static {
|
| 3430 |
rajveer |
2612 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5530 |
mandeep.dh |
2613 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2614 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4496 |
mandeep.dh |
2615 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
2616 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5530 |
mandeep.dh |
2617 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
2618 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
2619 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
2620 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
|
| 2820 |
chandransh |
2621 |
}
|
|
|
2622 |
|
| 5361 |
mandeep.dh |
2623 |
public getNonSeralizedInventoryItem_args() {
|
| 2820 |
chandransh |
2624 |
}
|
|
|
2625 |
|
| 5361 |
mandeep.dh |
2626 |
public getNonSeralizedInventoryItem_args(
|
| 5530 |
mandeep.dh |
2627 |
String itemNumber,
|
| 4496 |
mandeep.dh |
2628 |
long itemId,
|
| 5530 |
mandeep.dh |
2629 |
long fulfilmentWarehouseId)
|
| 2820 |
chandransh |
2630 |
{
|
|
|
2631 |
this();
|
| 5530 |
mandeep.dh |
2632 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
2633 |
this.itemId = itemId;
|
|
|
2634 |
setItemIdIsSet(true);
|
| 5530 |
mandeep.dh |
2635 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
2636 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
2637 |
}
|
|
|
2638 |
|
|
|
2639 |
/**
|
|
|
2640 |
* Performs a deep copy on <i>other</i>.
|
|
|
2641 |
*/
|
| 5361 |
mandeep.dh |
2642 |
public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
2643 |
__isset_bit_vector.clear();
|
|
|
2644 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5530 |
mandeep.dh |
2645 |
if (other.isSetItemNumber()) {
|
|
|
2646 |
this.itemNumber = other.itemNumber;
|
|
|
2647 |
}
|
| 4496 |
mandeep.dh |
2648 |
this.itemId = other.itemId;
|
| 5530 |
mandeep.dh |
2649 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
2650 |
}
|
|
|
2651 |
|
| 5361 |
mandeep.dh |
2652 |
public getNonSeralizedInventoryItem_args deepCopy() {
|
|
|
2653 |
return new getNonSeralizedInventoryItem_args(this);
|
| 2820 |
chandransh |
2654 |
}
|
|
|
2655 |
|
| 3430 |
rajveer |
2656 |
@Override
|
|
|
2657 |
public void clear() {
|
| 5530 |
mandeep.dh |
2658 |
this.itemNumber = null;
|
| 4496 |
mandeep.dh |
2659 |
setItemIdIsSet(false);
|
|
|
2660 |
this.itemId = 0;
|
| 5530 |
mandeep.dh |
2661 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
2662 |
this.fulfilmentWarehouseId = 0;
|
| 2820 |
chandransh |
2663 |
}
|
|
|
2664 |
|
| 5530 |
mandeep.dh |
2665 |
public String getItemNumber() {
|
|
|
2666 |
return this.itemNumber;
|
|
|
2667 |
}
|
|
|
2668 |
|
|
|
2669 |
public void setItemNumber(String itemNumber) {
|
|
|
2670 |
this.itemNumber = itemNumber;
|
|
|
2671 |
}
|
|
|
2672 |
|
|
|
2673 |
public void unsetItemNumber() {
|
|
|
2674 |
this.itemNumber = null;
|
|
|
2675 |
}
|
|
|
2676 |
|
|
|
2677 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
2678 |
public boolean isSetItemNumber() {
|
|
|
2679 |
return this.itemNumber != null;
|
|
|
2680 |
}
|
|
|
2681 |
|
|
|
2682 |
public void setItemNumberIsSet(boolean value) {
|
|
|
2683 |
if (!value) {
|
|
|
2684 |
this.itemNumber = null;
|
|
|
2685 |
}
|
|
|
2686 |
}
|
|
|
2687 |
|
| 4496 |
mandeep.dh |
2688 |
public long getItemId() {
|
|
|
2689 |
return this.itemId;
|
| 2820 |
chandransh |
2690 |
}
|
|
|
2691 |
|
| 4496 |
mandeep.dh |
2692 |
public void setItemId(long itemId) {
|
|
|
2693 |
this.itemId = itemId;
|
|
|
2694 |
setItemIdIsSet(true);
|
| 2820 |
chandransh |
2695 |
}
|
|
|
2696 |
|
| 4496 |
mandeep.dh |
2697 |
public void unsetItemId() {
|
|
|
2698 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
2699 |
}
|
|
|
2700 |
|
| 4496 |
mandeep.dh |
2701 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
2702 |
public boolean isSetItemId() {
|
|
|
2703 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
2704 |
}
|
|
|
2705 |
|
| 4496 |
mandeep.dh |
2706 |
public void setItemIdIsSet(boolean value) {
|
|
|
2707 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| 2820 |
chandransh |
2708 |
}
|
|
|
2709 |
|
| 5530 |
mandeep.dh |
2710 |
public long getFulfilmentWarehouseId() {
|
|
|
2711 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
2712 |
}
|
|
|
2713 |
|
| 5530 |
mandeep.dh |
2714 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
2715 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
2716 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
2717 |
}
|
|
|
2718 |
|
| 5530 |
mandeep.dh |
2719 |
public void unsetFulfilmentWarehouseId() {
|
|
|
2720 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
2721 |
}
|
|
|
2722 |
|
| 5530 |
mandeep.dh |
2723 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
2724 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
2725 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
2726 |
}
|
|
|
2727 |
|
| 5530 |
mandeep.dh |
2728 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
2729 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
2730 |
}
|
|
|
2731 |
|
|
|
2732 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2733 |
switch (field) {
|
| 5530 |
mandeep.dh |
2734 |
case ITEM_NUMBER:
|
|
|
2735 |
if (value == null) {
|
|
|
2736 |
unsetItemNumber();
|
|
|
2737 |
} else {
|
|
|
2738 |
setItemNumber((String)value);
|
|
|
2739 |
}
|
|
|
2740 |
break;
|
|
|
2741 |
|
| 4496 |
mandeep.dh |
2742 |
case ITEM_ID:
|
| 2820 |
chandransh |
2743 |
if (value == null) {
|
| 4496 |
mandeep.dh |
2744 |
unsetItemId();
|
| 2820 |
chandransh |
2745 |
} else {
|
| 4496 |
mandeep.dh |
2746 |
setItemId((Long)value);
|
| 2820 |
chandransh |
2747 |
}
|
|
|
2748 |
break;
|
|
|
2749 |
|
| 5530 |
mandeep.dh |
2750 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
2751 |
if (value == null) {
|
| 5530 |
mandeep.dh |
2752 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
2753 |
} else {
|
| 5530 |
mandeep.dh |
2754 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
2755 |
}
|
|
|
2756 |
break;
|
|
|
2757 |
|
|
|
2758 |
}
|
|
|
2759 |
}
|
|
|
2760 |
|
|
|
2761 |
public Object getFieldValue(_Fields field) {
|
|
|
2762 |
switch (field) {
|
| 5530 |
mandeep.dh |
2763 |
case ITEM_NUMBER:
|
|
|
2764 |
return getItemNumber();
|
|
|
2765 |
|
| 4496 |
mandeep.dh |
2766 |
case ITEM_ID:
|
|
|
2767 |
return Long.valueOf(getItemId());
|
| 2820 |
chandransh |
2768 |
|
| 5530 |
mandeep.dh |
2769 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
2770 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 2820 |
chandransh |
2771 |
|
|
|
2772 |
}
|
|
|
2773 |
throw new IllegalStateException();
|
|
|
2774 |
}
|
|
|
2775 |
|
| 3430 |
rajveer |
2776 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2777 |
public boolean isSet(_Fields field) {
|
|
|
2778 |
if (field == null) {
|
|
|
2779 |
throw new IllegalArgumentException();
|
|
|
2780 |
}
|
| 2820 |
chandransh |
2781 |
|
|
|
2782 |
switch (field) {
|
| 5530 |
mandeep.dh |
2783 |
case ITEM_NUMBER:
|
|
|
2784 |
return isSetItemNumber();
|
| 4496 |
mandeep.dh |
2785 |
case ITEM_ID:
|
|
|
2786 |
return isSetItemId();
|
| 5530 |
mandeep.dh |
2787 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
2788 |
return isSetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
2789 |
}
|
|
|
2790 |
throw new IllegalStateException();
|
|
|
2791 |
}
|
|
|
2792 |
|
|
|
2793 |
@Override
|
|
|
2794 |
public boolean equals(Object that) {
|
|
|
2795 |
if (that == null)
|
|
|
2796 |
return false;
|
| 5361 |
mandeep.dh |
2797 |
if (that instanceof getNonSeralizedInventoryItem_args)
|
|
|
2798 |
return this.equals((getNonSeralizedInventoryItem_args)that);
|
| 2820 |
chandransh |
2799 |
return false;
|
|
|
2800 |
}
|
|
|
2801 |
|
| 5361 |
mandeep.dh |
2802 |
public boolean equals(getNonSeralizedInventoryItem_args that) {
|
| 2820 |
chandransh |
2803 |
if (that == null)
|
|
|
2804 |
return false;
|
|
|
2805 |
|
| 5530 |
mandeep.dh |
2806 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
2807 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
2808 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
2809 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
2810 |
return false;
|
|
|
2811 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
2812 |
return false;
|
|
|
2813 |
}
|
|
|
2814 |
|
| 4496 |
mandeep.dh |
2815 |
boolean this_present_itemId = true;
|
|
|
2816 |
boolean that_present_itemId = true;
|
|
|
2817 |
if (this_present_itemId || that_present_itemId) {
|
|
|
2818 |
if (!(this_present_itemId && that_present_itemId))
|
| 2820 |
chandransh |
2819 |
return false;
|
| 4496 |
mandeep.dh |
2820 |
if (this.itemId != that.itemId)
|
| 2820 |
chandransh |
2821 |
return false;
|
|
|
2822 |
}
|
|
|
2823 |
|
| 5530 |
mandeep.dh |
2824 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
2825 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
2826 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
2827 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
2828 |
return false;
|
| 5530 |
mandeep.dh |
2829 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
2830 |
return false;
|
|
|
2831 |
}
|
|
|
2832 |
|
|
|
2833 |
return true;
|
|
|
2834 |
}
|
|
|
2835 |
|
|
|
2836 |
@Override
|
|
|
2837 |
public int hashCode() {
|
|
|
2838 |
return 0;
|
|
|
2839 |
}
|
|
|
2840 |
|
| 5361 |
mandeep.dh |
2841 |
public int compareTo(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
2842 |
if (!getClass().equals(other.getClass())) {
|
|
|
2843 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2844 |
}
|
|
|
2845 |
|
|
|
2846 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
2847 |
getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
|
| 2820 |
chandransh |
2848 |
|
| 5530 |
mandeep.dh |
2849 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
2850 |
if (lastComparison != 0) {
|
|
|
2851 |
return lastComparison;
|
|
|
2852 |
}
|
|
|
2853 |
if (isSetItemNumber()) {
|
|
|
2854 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
2855 |
if (lastComparison != 0) {
|
|
|
2856 |
return lastComparison;
|
|
|
2857 |
}
|
|
|
2858 |
}
|
| 4496 |
mandeep.dh |
2859 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 2820 |
chandransh |
2860 |
if (lastComparison != 0) {
|
|
|
2861 |
return lastComparison;
|
|
|
2862 |
}
|
| 4496 |
mandeep.dh |
2863 |
if (isSetItemId()) {
|
|
|
2864 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 3430 |
rajveer |
2865 |
if (lastComparison != 0) {
|
|
|
2866 |
return lastComparison;
|
|
|
2867 |
}
|
| 2820 |
chandransh |
2868 |
}
|
| 5530 |
mandeep.dh |
2869 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
2870 |
if (lastComparison != 0) {
|
|
|
2871 |
return lastComparison;
|
|
|
2872 |
}
|
| 5530 |
mandeep.dh |
2873 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
2874 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
2875 |
if (lastComparison != 0) {
|
|
|
2876 |
return lastComparison;
|
|
|
2877 |
}
|
| 2820 |
chandransh |
2878 |
}
|
|
|
2879 |
return 0;
|
|
|
2880 |
}
|
|
|
2881 |
|
| 3430 |
rajveer |
2882 |
public _Fields fieldForId(int fieldId) {
|
|
|
2883 |
return _Fields.findByThriftId(fieldId);
|
|
|
2884 |
}
|
|
|
2885 |
|
|
|
2886 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2887 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2888 |
iprot.readStructBegin();
|
|
|
2889 |
while (true)
|
|
|
2890 |
{
|
|
|
2891 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2892 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2893 |
break;
|
|
|
2894 |
}
|
| 3430 |
rajveer |
2895 |
switch (field.id) {
|
| 5530 |
mandeep.dh |
2896 |
case 1: // ITEM_NUMBER
|
|
|
2897 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
2898 |
this.itemNumber = iprot.readString();
|
|
|
2899 |
} else {
|
|
|
2900 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2901 |
}
|
|
|
2902 |
break;
|
|
|
2903 |
case 2: // ITEM_ID
|
| 3430 |
rajveer |
2904 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
2905 |
this.itemId = iprot.readI64();
|
|
|
2906 |
setItemIdIsSet(true);
|
| 3430 |
rajveer |
2907 |
} else {
|
|
|
2908 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2909 |
}
|
|
|
2910 |
break;
|
| 5530 |
mandeep.dh |
2911 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
2912 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5530 |
mandeep.dh |
2913 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
2914 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
2915 |
} else {
|
|
|
2916 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2917 |
}
|
|
|
2918 |
break;
|
|
|
2919 |
default:
|
|
|
2920 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
2921 |
}
|
| 3430 |
rajveer |
2922 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
2923 |
}
|
|
|
2924 |
iprot.readStructEnd();
|
|
|
2925 |
validate();
|
|
|
2926 |
}
|
|
|
2927 |
|
| 3430 |
rajveer |
2928 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2929 |
validate();
|
|
|
2930 |
|
|
|
2931 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5530 |
mandeep.dh |
2932 |
if (this.itemNumber != null) {
|
|
|
2933 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
2934 |
oprot.writeString(this.itemNumber);
|
|
|
2935 |
oprot.writeFieldEnd();
|
|
|
2936 |
}
|
| 4496 |
mandeep.dh |
2937 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
2938 |
oprot.writeI64(this.itemId);
|
| 2820 |
chandransh |
2939 |
oprot.writeFieldEnd();
|
| 5530 |
mandeep.dh |
2940 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
2941 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
2942 |
oprot.writeFieldEnd();
|
|
|
2943 |
oprot.writeFieldStop();
|
|
|
2944 |
oprot.writeStructEnd();
|
|
|
2945 |
}
|
|
|
2946 |
|
|
|
2947 |
@Override
|
|
|
2948 |
public String toString() {
|
| 5361 |
mandeep.dh |
2949 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
|
| 2820 |
chandransh |
2950 |
boolean first = true;
|
|
|
2951 |
|
| 5530 |
mandeep.dh |
2952 |
sb.append("itemNumber:");
|
|
|
2953 |
if (this.itemNumber == null) {
|
|
|
2954 |
sb.append("null");
|
|
|
2955 |
} else {
|
|
|
2956 |
sb.append(this.itemNumber);
|
|
|
2957 |
}
|
|
|
2958 |
first = false;
|
|
|
2959 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
2960 |
sb.append("itemId:");
|
|
|
2961 |
sb.append(this.itemId);
|
| 2820 |
chandransh |
2962 |
first = false;
|
|
|
2963 |
if (!first) sb.append(", ");
|
| 5530 |
mandeep.dh |
2964 |
sb.append("fulfilmentWarehouseId:");
|
|
|
2965 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
2966 |
first = false;
|
|
|
2967 |
sb.append(")");
|
|
|
2968 |
return sb.toString();
|
|
|
2969 |
}
|
|
|
2970 |
|
| 3430 |
rajveer |
2971 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2972 |
// check for required fields
|
|
|
2973 |
}
|
|
|
2974 |
|
| 3430 |
rajveer |
2975 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2976 |
try {
|
|
|
2977 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2978 |
} catch (org.apache.thrift.TException te) {
|
|
|
2979 |
throw new java.io.IOException(te);
|
|
|
2980 |
}
|
|
|
2981 |
}
|
|
|
2982 |
|
|
|
2983 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2984 |
try {
|
| 4496 |
mandeep.dh |
2985 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
2986 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
2987 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2988 |
} catch (org.apache.thrift.TException te) {
|
|
|
2989 |
throw new java.io.IOException(te);
|
|
|
2990 |
}
|
|
|
2991 |
}
|
|
|
2992 |
|
| 2820 |
chandransh |
2993 |
}
|
|
|
2994 |
|
| 5361 |
mandeep.dh |
2995 |
public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2996 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
|
| 2820 |
chandransh |
2997 |
|
| 5361 |
mandeep.dh |
2998 |
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);
|
|
|
2999 |
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 |
3000 |
|
| 5361 |
mandeep.dh |
3001 |
private InventoryItem success; // required
|
|
|
3002 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
3003 |
|
|
|
3004 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3005 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
3006 |
SUCCESS((short)0, "success"),
|
|
|
3007 |
WEX((short)1, "wex");
|
| 2820 |
chandransh |
3008 |
|
|
|
3009 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3010 |
|
|
|
3011 |
static {
|
|
|
3012 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3013 |
byName.put(field.getFieldName(), field);
|
|
|
3014 |
}
|
|
|
3015 |
}
|
|
|
3016 |
|
|
|
3017 |
/**
|
|
|
3018 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3019 |
*/
|
|
|
3020 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3021 |
switch(fieldId) {
|
|
|
3022 |
case 0: // SUCCESS
|
|
|
3023 |
return SUCCESS;
|
| 5361 |
mandeep.dh |
3024 |
case 1: // WEX
|
|
|
3025 |
return WEX;
|
| 3430 |
rajveer |
3026 |
default:
|
|
|
3027 |
return null;
|
|
|
3028 |
}
|
| 2820 |
chandransh |
3029 |
}
|
|
|
3030 |
|
|
|
3031 |
/**
|
|
|
3032 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3033 |
* if it is not found.
|
|
|
3034 |
*/
|
|
|
3035 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3036 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3037 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3038 |
return fields;
|
|
|
3039 |
}
|
|
|
3040 |
|
|
|
3041 |
/**
|
|
|
3042 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3043 |
*/
|
|
|
3044 |
public static _Fields findByName(String name) {
|
|
|
3045 |
return byName.get(name);
|
|
|
3046 |
}
|
|
|
3047 |
|
|
|
3048 |
private final short _thriftId;
|
|
|
3049 |
private final String _fieldName;
|
|
|
3050 |
|
|
|
3051 |
_Fields(short thriftId, String fieldName) {
|
|
|
3052 |
_thriftId = thriftId;
|
|
|
3053 |
_fieldName = fieldName;
|
|
|
3054 |
}
|
|
|
3055 |
|
|
|
3056 |
public short getThriftFieldId() {
|
|
|
3057 |
return _thriftId;
|
|
|
3058 |
}
|
|
|
3059 |
|
|
|
3060 |
public String getFieldName() {
|
|
|
3061 |
return _fieldName;
|
|
|
3062 |
}
|
|
|
3063 |
}
|
|
|
3064 |
|
|
|
3065 |
// isset id assignments
|
|
|
3066 |
|
| 3430 |
rajveer |
3067 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
3068 |
static {
|
| 3430 |
rajveer |
3069 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3070 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 5361 |
mandeep.dh |
3071 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
3072 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3073 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
3074 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
3075 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
|
| 2820 |
chandransh |
3076 |
}
|
|
|
3077 |
|
| 5361 |
mandeep.dh |
3078 |
public getNonSeralizedInventoryItem_result() {
|
| 2820 |
chandransh |
3079 |
}
|
|
|
3080 |
|
| 5361 |
mandeep.dh |
3081 |
public getNonSeralizedInventoryItem_result(
|
|
|
3082 |
InventoryItem success,
|
|
|
3083 |
WarehouseServiceException wex)
|
| 2820 |
chandransh |
3084 |
{
|
|
|
3085 |
this();
|
|
|
3086 |
this.success = success;
|
| 5361 |
mandeep.dh |
3087 |
this.wex = wex;
|
| 2820 |
chandransh |
3088 |
}
|
|
|
3089 |
|
|
|
3090 |
/**
|
|
|
3091 |
* Performs a deep copy on <i>other</i>.
|
|
|
3092 |
*/
|
| 5361 |
mandeep.dh |
3093 |
public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
3094 |
if (other.isSetSuccess()) {
|
| 5361 |
mandeep.dh |
3095 |
this.success = new InventoryItem(other.success);
|
| 2820 |
chandransh |
3096 |
}
|
| 5361 |
mandeep.dh |
3097 |
if (other.isSetWex()) {
|
|
|
3098 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
3099 |
}
|
| 2820 |
chandransh |
3100 |
}
|
|
|
3101 |
|
| 5361 |
mandeep.dh |
3102 |
public getNonSeralizedInventoryItem_result deepCopy() {
|
|
|
3103 |
return new getNonSeralizedInventoryItem_result(this);
|
| 2820 |
chandransh |
3104 |
}
|
|
|
3105 |
|
| 3430 |
rajveer |
3106 |
@Override
|
|
|
3107 |
public void clear() {
|
| 4496 |
mandeep.dh |
3108 |
this.success = null;
|
| 5361 |
mandeep.dh |
3109 |
this.wex = null;
|
| 2820 |
chandransh |
3110 |
}
|
|
|
3111 |
|
| 5361 |
mandeep.dh |
3112 |
public InventoryItem getSuccess() {
|
| 2820 |
chandransh |
3113 |
return this.success;
|
|
|
3114 |
}
|
|
|
3115 |
|
| 5361 |
mandeep.dh |
3116 |
public void setSuccess(InventoryItem success) {
|
| 2820 |
chandransh |
3117 |
this.success = success;
|
|
|
3118 |
}
|
|
|
3119 |
|
|
|
3120 |
public void unsetSuccess() {
|
| 4496 |
mandeep.dh |
3121 |
this.success = null;
|
| 2820 |
chandransh |
3122 |
}
|
|
|
3123 |
|
| 3430 |
rajveer |
3124 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
3125 |
public boolean isSetSuccess() {
|
| 4496 |
mandeep.dh |
3126 |
return this.success != null;
|
| 2820 |
chandransh |
3127 |
}
|
|
|
3128 |
|
|
|
3129 |
public void setSuccessIsSet(boolean value) {
|
| 4496 |
mandeep.dh |
3130 |
if (!value) {
|
|
|
3131 |
this.success = null;
|
|
|
3132 |
}
|
| 2820 |
chandransh |
3133 |
}
|
|
|
3134 |
|
| 5361 |
mandeep.dh |
3135 |
public WarehouseServiceException getWex() {
|
|
|
3136 |
return this.wex;
|
| 2820 |
chandransh |
3137 |
}
|
|
|
3138 |
|
| 5361 |
mandeep.dh |
3139 |
public void setWex(WarehouseServiceException wex) {
|
|
|
3140 |
this.wex = wex;
|
| 2820 |
chandransh |
3141 |
}
|
|
|
3142 |
|
| 5361 |
mandeep.dh |
3143 |
public void unsetWex() {
|
|
|
3144 |
this.wex = null;
|
| 2820 |
chandransh |
3145 |
}
|
|
|
3146 |
|
| 5361 |
mandeep.dh |
3147 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
3148 |
public boolean isSetWex() {
|
|
|
3149 |
return this.wex != null;
|
| 2820 |
chandransh |
3150 |
}
|
|
|
3151 |
|
| 5361 |
mandeep.dh |
3152 |
public void setWexIsSet(boolean value) {
|
|
|
3153 |
if (!value) {
|
|
|
3154 |
this.wex = null;
|
| 2820 |
chandransh |
3155 |
}
|
|
|
3156 |
}
|
|
|
3157 |
|
|
|
3158 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3159 |
switch (field) {
|
| 5361 |
mandeep.dh |
3160 |
case SUCCESS:
|
| 2820 |
chandransh |
3161 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3162 |
unsetSuccess();
|
| 2820 |
chandransh |
3163 |
} else {
|
| 5361 |
mandeep.dh |
3164 |
setSuccess((InventoryItem)value);
|
| 2820 |
chandransh |
3165 |
}
|
|
|
3166 |
break;
|
|
|
3167 |
|
| 5361 |
mandeep.dh |
3168 |
case WEX:
|
| 2820 |
chandransh |
3169 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3170 |
unsetWex();
|
| 2820 |
chandransh |
3171 |
} else {
|
| 5361 |
mandeep.dh |
3172 |
setWex((WarehouseServiceException)value);
|
| 2820 |
chandransh |
3173 |
}
|
|
|
3174 |
break;
|
|
|
3175 |
|
|
|
3176 |
}
|
|
|
3177 |
}
|
|
|
3178 |
|
|
|
3179 |
public Object getFieldValue(_Fields field) {
|
|
|
3180 |
switch (field) {
|
|
|
3181 |
case SUCCESS:
|
| 4496 |
mandeep.dh |
3182 |
return getSuccess();
|
| 2820 |
chandransh |
3183 |
|
| 5361 |
mandeep.dh |
3184 |
case WEX:
|
|
|
3185 |
return getWex();
|
|
|
3186 |
|
| 2820 |
chandransh |
3187 |
}
|
|
|
3188 |
throw new IllegalStateException();
|
|
|
3189 |
}
|
|
|
3190 |
|
| 3430 |
rajveer |
3191 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3192 |
public boolean isSet(_Fields field) {
|
|
|
3193 |
if (field == null) {
|
|
|
3194 |
throw new IllegalArgumentException();
|
|
|
3195 |
}
|
| 2820 |
chandransh |
3196 |
|
|
|
3197 |
switch (field) {
|
|
|
3198 |
case SUCCESS:
|
|
|
3199 |
return isSetSuccess();
|
| 5361 |
mandeep.dh |
3200 |
case WEX:
|
|
|
3201 |
return isSetWex();
|
| 2820 |
chandransh |
3202 |
}
|
|
|
3203 |
throw new IllegalStateException();
|
|
|
3204 |
}
|
|
|
3205 |
|
|
|
3206 |
@Override
|
|
|
3207 |
public boolean equals(Object that) {
|
|
|
3208 |
if (that == null)
|
|
|
3209 |
return false;
|
| 5361 |
mandeep.dh |
3210 |
if (that instanceof getNonSeralizedInventoryItem_result)
|
|
|
3211 |
return this.equals((getNonSeralizedInventoryItem_result)that);
|
| 2820 |
chandransh |
3212 |
return false;
|
|
|
3213 |
}
|
|
|
3214 |
|
| 5361 |
mandeep.dh |
3215 |
public boolean equals(getNonSeralizedInventoryItem_result that) {
|
| 2820 |
chandransh |
3216 |
if (that == null)
|
|
|
3217 |
return false;
|
|
|
3218 |
|
| 4496 |
mandeep.dh |
3219 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3220 |
boolean that_present_success = true && that.isSetSuccess();
|
| 2820 |
chandransh |
3221 |
if (this_present_success || that_present_success) {
|
|
|
3222 |
if (!(this_present_success && that_present_success))
|
|
|
3223 |
return false;
|
| 4496 |
mandeep.dh |
3224 |
if (!this.success.equals(that.success))
|
| 2820 |
chandransh |
3225 |
return false;
|
|
|
3226 |
}
|
|
|
3227 |
|
| 5361 |
mandeep.dh |
3228 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
3229 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
3230 |
if (this_present_wex || that_present_wex) {
|
|
|
3231 |
if (!(this_present_wex && that_present_wex))
|
| 4496 |
mandeep.dh |
3232 |
return false;
|
| 5361 |
mandeep.dh |
3233 |
if (!this.wex.equals(that.wex))
|
| 4496 |
mandeep.dh |
3234 |
return false;
|
|
|
3235 |
}
|
|
|
3236 |
|
|
|
3237 |
return true;
|
|
|
3238 |
}
|
|
|
3239 |
|
|
|
3240 |
@Override
|
|
|
3241 |
public int hashCode() {
|
|
|
3242 |
return 0;
|
|
|
3243 |
}
|
|
|
3244 |
|
| 5361 |
mandeep.dh |
3245 |
public int compareTo(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
3246 |
if (!getClass().equals(other.getClass())) {
|
|
|
3247 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3248 |
}
|
|
|
3249 |
|
|
|
3250 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
3251 |
getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
|
| 4496 |
mandeep.dh |
3252 |
|
|
|
3253 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
3254 |
if (lastComparison != 0) {
|
|
|
3255 |
return lastComparison;
|
|
|
3256 |
}
|
|
|
3257 |
if (isSetSuccess()) {
|
|
|
3258 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3259 |
if (lastComparison != 0) {
|
|
|
3260 |
return lastComparison;
|
|
|
3261 |
}
|
|
|
3262 |
}
|
| 5361 |
mandeep.dh |
3263 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
3264 |
if (lastComparison != 0) {
|
|
|
3265 |
return lastComparison;
|
|
|
3266 |
}
|
| 5361 |
mandeep.dh |
3267 |
if (isSetWex()) {
|
|
|
3268 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
| 3430 |
rajveer |
3269 |
if (lastComparison != 0) {
|
|
|
3270 |
return lastComparison;
|
|
|
3271 |
}
|
| 2820 |
chandransh |
3272 |
}
|
|
|
3273 |
return 0;
|
|
|
3274 |
}
|
|
|
3275 |
|
| 3430 |
rajveer |
3276 |
public _Fields fieldForId(int fieldId) {
|
|
|
3277 |
return _Fields.findByThriftId(fieldId);
|
|
|
3278 |
}
|
|
|
3279 |
|
|
|
3280 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3281 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
3282 |
iprot.readStructBegin();
|
|
|
3283 |
while (true)
|
|
|
3284 |
{
|
|
|
3285 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3286 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
3287 |
break;
|
|
|
3288 |
}
|
| 3430 |
rajveer |
3289 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
3290 |
case 0: // SUCCESS
|
|
|
3291 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3292 |
this.success = new InventoryItem();
|
|
|
3293 |
this.success.read(iprot);
|
| 3430 |
rajveer |
3294 |
} else {
|
|
|
3295 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3296 |
}
|
|
|
3297 |
break;
|
| 5361 |
mandeep.dh |
3298 |
case 1: // WEX
|
|
|
3299 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3300 |
this.wex = new WarehouseServiceException();
|
|
|
3301 |
this.wex.read(iprot);
|
| 4496 |
mandeep.dh |
3302 |
} else {
|
|
|
3303 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3304 |
}
|
|
|
3305 |
break;
|
|
|
3306 |
default:
|
|
|
3307 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3308 |
}
|
|
|
3309 |
iprot.readFieldEnd();
|
|
|
3310 |
}
|
|
|
3311 |
iprot.readStructEnd();
|
|
|
3312 |
validate();
|
|
|
3313 |
}
|
|
|
3314 |
|
|
|
3315 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
3316 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3317 |
|
|
|
3318 |
if (this.isSetSuccess()) {
|
|
|
3319 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 5361 |
mandeep.dh |
3320 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
3321 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
3322 |
} else if (this.isSetWex()) {
|
|
|
3323 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
3324 |
this.wex.write(oprot);
|
|
|
3325 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
3326 |
}
|
|
|
3327 |
oprot.writeFieldStop();
|
|
|
3328 |
oprot.writeStructEnd();
|
|
|
3329 |
}
|
|
|
3330 |
|
|
|
3331 |
@Override
|
|
|
3332 |
public String toString() {
|
| 5361 |
mandeep.dh |
3333 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
|
| 4496 |
mandeep.dh |
3334 |
boolean first = true;
|
|
|
3335 |
|
|
|
3336 |
sb.append("success:");
|
|
|
3337 |
if (this.success == null) {
|
|
|
3338 |
sb.append("null");
|
|
|
3339 |
} else {
|
|
|
3340 |
sb.append(this.success);
|
|
|
3341 |
}
|
|
|
3342 |
first = false;
|
| 5361 |
mandeep.dh |
3343 |
if (!first) sb.append(", ");
|
|
|
3344 |
sb.append("wex:");
|
|
|
3345 |
if (this.wex == null) {
|
|
|
3346 |
sb.append("null");
|
|
|
3347 |
} else {
|
|
|
3348 |
sb.append(this.wex);
|
|
|
3349 |
}
|
|
|
3350 |
first = false;
|
| 4496 |
mandeep.dh |
3351 |
sb.append(")");
|
|
|
3352 |
return sb.toString();
|
|
|
3353 |
}
|
|
|
3354 |
|
|
|
3355 |
public void validate() throws org.apache.thrift.TException {
|
|
|
3356 |
// check for required fields
|
|
|
3357 |
}
|
|
|
3358 |
|
|
|
3359 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3360 |
try {
|
|
|
3361 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3362 |
} catch (org.apache.thrift.TException te) {
|
|
|
3363 |
throw new java.io.IOException(te);
|
|
|
3364 |
}
|
|
|
3365 |
}
|
|
|
3366 |
|
|
|
3367 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3368 |
try {
|
|
|
3369 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3370 |
} catch (org.apache.thrift.TException te) {
|
|
|
3371 |
throw new java.io.IOException(te);
|
|
|
3372 |
}
|
|
|
3373 |
}
|
|
|
3374 |
|
|
|
3375 |
}
|
|
|
3376 |
|
|
|
3377 |
public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3378 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
|
| 3383 |
chandransh |
3379 |
|
| 5361 |
mandeep.dh |
3380 |
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 |
3381 |
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);
|
|
|
3382 |
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 |
3383 |
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 |
3384 |
|
| 5361 |
mandeep.dh |
3385 |
private InventoryItem inventoryItem; // required
|
| 4496 |
mandeep.dh |
3386 |
private ScanType type; // required
|
|
|
3387 |
private long quantity; // required
|
| 5361 |
mandeep.dh |
3388 |
private long billingWarehouseId; // required
|
| 3383 |
chandransh |
3389 |
|
|
|
3390 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3391 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
3392 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 4496 |
mandeep.dh |
3393 |
/**
|
|
|
3394 |
*
|
|
|
3395 |
* @see ScanType
|
|
|
3396 |
*/
|
|
|
3397 |
TYPE((short)2, "type"),
|
|
|
3398 |
QUANTITY((short)3, "quantity"),
|
| 5361 |
mandeep.dh |
3399 |
BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
|
| 3383 |
chandransh |
3400 |
|
|
|
3401 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3402 |
|
|
|
3403 |
static {
|
|
|
3404 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3405 |
byName.put(field.getFieldName(), field);
|
|
|
3406 |
}
|
|
|
3407 |
}
|
|
|
3408 |
|
|
|
3409 |
/**
|
|
|
3410 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3411 |
*/
|
|
|
3412 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3413 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
3414 |
case 1: // INVENTORY_ITEM
|
|
|
3415 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
3416 |
case 2: // TYPE
|
|
|
3417 |
return TYPE;
|
|
|
3418 |
case 3: // QUANTITY
|
|
|
3419 |
return QUANTITY;
|
| 5361 |
mandeep.dh |
3420 |
case 4: // BILLING_WAREHOUSE_ID
|
|
|
3421 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
3422 |
default:
|
|
|
3423 |
return null;
|
|
|
3424 |
}
|
| 3383 |
chandransh |
3425 |
}
|
|
|
3426 |
|
|
|
3427 |
/**
|
|
|
3428 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3429 |
* if it is not found.
|
|
|
3430 |
*/
|
|
|
3431 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3432 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3433 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3434 |
return fields;
|
|
|
3435 |
}
|
|
|
3436 |
|
|
|
3437 |
/**
|
|
|
3438 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3439 |
*/
|
|
|
3440 |
public static _Fields findByName(String name) {
|
|
|
3441 |
return byName.get(name);
|
|
|
3442 |
}
|
|
|
3443 |
|
|
|
3444 |
private final short _thriftId;
|
|
|
3445 |
private final String _fieldName;
|
|
|
3446 |
|
|
|
3447 |
_Fields(short thriftId, String fieldName) {
|
|
|
3448 |
_thriftId = thriftId;
|
|
|
3449 |
_fieldName = fieldName;
|
|
|
3450 |
}
|
|
|
3451 |
|
|
|
3452 |
public short getThriftFieldId() {
|
|
|
3453 |
return _thriftId;
|
|
|
3454 |
}
|
|
|
3455 |
|
|
|
3456 |
public String getFieldName() {
|
|
|
3457 |
return _fieldName;
|
|
|
3458 |
}
|
|
|
3459 |
}
|
|
|
3460 |
|
|
|
3461 |
// isset id assignments
|
| 5361 |
mandeep.dh |
3462 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
3463 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
|
|
|
3464 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 3383 |
chandransh |
3465 |
|
| 3430 |
rajveer |
3466 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
3467 |
static {
|
| 3430 |
rajveer |
3468 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
3469 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3470 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4496 |
mandeep.dh |
3471 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3472 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
3473 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3474 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
3475 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
3476 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
3477 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
3478 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
|
| 3383 |
chandransh |
3479 |
}
|
|
|
3480 |
|
| 4496 |
mandeep.dh |
3481 |
public scan_args() {
|
| 3383 |
chandransh |
3482 |
}
|
|
|
3483 |
|
| 4496 |
mandeep.dh |
3484 |
public scan_args(
|
| 5361 |
mandeep.dh |
3485 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
3486 |
ScanType type,
|
|
|
3487 |
long quantity,
|
| 5361 |
mandeep.dh |
3488 |
long billingWarehouseId)
|
| 3383 |
chandransh |
3489 |
{
|
|
|
3490 |
this();
|
| 5361 |
mandeep.dh |
3491 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
3492 |
this.type = type;
|
|
|
3493 |
this.quantity = quantity;
|
|
|
3494 |
setQuantityIsSet(true);
|
| 5361 |
mandeep.dh |
3495 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
3496 |
setBillingWarehouseIdIsSet(true);
|
| 3383 |
chandransh |
3497 |
}
|
|
|
3498 |
|
|
|
3499 |
/**
|
|
|
3500 |
* Performs a deep copy on <i>other</i>.
|
|
|
3501 |
*/
|
| 4496 |
mandeep.dh |
3502 |
public scan_args(scan_args other) {
|
| 3383 |
chandransh |
3503 |
__isset_bit_vector.clear();
|
|
|
3504 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
3505 |
if (other.isSetInventoryItem()) {
|
|
|
3506 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
3507 |
}
|
| 4496 |
mandeep.dh |
3508 |
if (other.isSetType()) {
|
|
|
3509 |
this.type = other.type;
|
|
|
3510 |
}
|
|
|
3511 |
this.quantity = other.quantity;
|
| 5361 |
mandeep.dh |
3512 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 3383 |
chandransh |
3513 |
}
|
|
|
3514 |
|
| 4496 |
mandeep.dh |
3515 |
public scan_args deepCopy() {
|
|
|
3516 |
return new scan_args(this);
|
| 3383 |
chandransh |
3517 |
}
|
|
|
3518 |
|
| 3430 |
rajveer |
3519 |
@Override
|
|
|
3520 |
public void clear() {
|
| 5361 |
mandeep.dh |
3521 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
3522 |
this.type = null;
|
|
|
3523 |
setQuantityIsSet(false);
|
|
|
3524 |
this.quantity = 0;
|
| 5361 |
mandeep.dh |
3525 |
setBillingWarehouseIdIsSet(false);
|
|
|
3526 |
this.billingWarehouseId = 0;
|
| 3383 |
chandransh |
3527 |
}
|
|
|
3528 |
|
| 5361 |
mandeep.dh |
3529 |
public InventoryItem getInventoryItem() {
|
|
|
3530 |
return this.inventoryItem;
|
| 3383 |
chandransh |
3531 |
}
|
|
|
3532 |
|
| 5361 |
mandeep.dh |
3533 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
3534 |
this.inventoryItem = inventoryItem;
|
| 3383 |
chandransh |
3535 |
}
|
|
|
3536 |
|
| 5361 |
mandeep.dh |
3537 |
public void unsetInventoryItem() {
|
|
|
3538 |
this.inventoryItem = null;
|
| 3383 |
chandransh |
3539 |
}
|
|
|
3540 |
|
| 5361 |
mandeep.dh |
3541 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
3542 |
public boolean isSetInventoryItem() {
|
|
|
3543 |
return this.inventoryItem != null;
|
| 3383 |
chandransh |
3544 |
}
|
|
|
3545 |
|
| 5361 |
mandeep.dh |
3546 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
3547 |
if (!value) {
|
|
|
3548 |
this.inventoryItem = null;
|
|
|
3549 |
}
|
| 3383 |
chandransh |
3550 |
}
|
|
|
3551 |
|
| 4496 |
mandeep.dh |
3552 |
/**
|
|
|
3553 |
*
|
|
|
3554 |
* @see ScanType
|
|
|
3555 |
*/
|
|
|
3556 |
public ScanType getType() {
|
|
|
3557 |
return this.type;
|
| 3383 |
chandransh |
3558 |
}
|
|
|
3559 |
|
| 4496 |
mandeep.dh |
3560 |
/**
|
|
|
3561 |
*
|
|
|
3562 |
* @see ScanType
|
|
|
3563 |
*/
|
|
|
3564 |
public void setType(ScanType type) {
|
|
|
3565 |
this.type = type;
|
| 3383 |
chandransh |
3566 |
}
|
|
|
3567 |
|
| 4496 |
mandeep.dh |
3568 |
public void unsetType() {
|
|
|
3569 |
this.type = null;
|
| 3383 |
chandransh |
3570 |
}
|
|
|
3571 |
|
| 4496 |
mandeep.dh |
3572 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
3573 |
public boolean isSetType() {
|
|
|
3574 |
return this.type != null;
|
| 3383 |
chandransh |
3575 |
}
|
|
|
3576 |
|
| 4496 |
mandeep.dh |
3577 |
public void setTypeIsSet(boolean value) {
|
|
|
3578 |
if (!value) {
|
|
|
3579 |
this.type = null;
|
|
|
3580 |
}
|
| 3383 |
chandransh |
3581 |
}
|
|
|
3582 |
|
| 4496 |
mandeep.dh |
3583 |
public long getQuantity() {
|
|
|
3584 |
return this.quantity;
|
|
|
3585 |
}
|
|
|
3586 |
|
|
|
3587 |
public void setQuantity(long quantity) {
|
|
|
3588 |
this.quantity = quantity;
|
|
|
3589 |
setQuantityIsSet(true);
|
|
|
3590 |
}
|
|
|
3591 |
|
|
|
3592 |
public void unsetQuantity() {
|
|
|
3593 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
3594 |
}
|
|
|
3595 |
|
|
|
3596 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
3597 |
public boolean isSetQuantity() {
|
|
|
3598 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
3599 |
}
|
|
|
3600 |
|
|
|
3601 |
public void setQuantityIsSet(boolean value) {
|
|
|
3602 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
3603 |
}
|
|
|
3604 |
|
| 5361 |
mandeep.dh |
3605 |
public long getBillingWarehouseId() {
|
|
|
3606 |
return this.billingWarehouseId;
|
| 4496 |
mandeep.dh |
3607 |
}
|
|
|
3608 |
|
| 5361 |
mandeep.dh |
3609 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
3610 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
3611 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
3612 |
}
|
|
|
3613 |
|
| 5361 |
mandeep.dh |
3614 |
public void unsetBillingWarehouseId() {
|
|
|
3615 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
3616 |
}
|
|
|
3617 |
|
| 5361 |
mandeep.dh |
3618 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
3619 |
public boolean isSetBillingWarehouseId() {
|
|
|
3620 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
3621 |
}
|
|
|
3622 |
|
| 5361 |
mandeep.dh |
3623 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
3624 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
3625 |
}
|
|
|
3626 |
|
| 3383 |
chandransh |
3627 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3628 |
switch (field) {
|
| 5361 |
mandeep.dh |
3629 |
case INVENTORY_ITEM:
|
| 3383 |
chandransh |
3630 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3631 |
unsetInventoryItem();
|
| 3383 |
chandransh |
3632 |
} else {
|
| 5361 |
mandeep.dh |
3633 |
setInventoryItem((InventoryItem)value);
|
| 3383 |
chandransh |
3634 |
}
|
|
|
3635 |
break;
|
|
|
3636 |
|
| 4496 |
mandeep.dh |
3637 |
case TYPE:
|
| 3383 |
chandransh |
3638 |
if (value == null) {
|
| 4496 |
mandeep.dh |
3639 |
unsetType();
|
| 3383 |
chandransh |
3640 |
} else {
|
| 4496 |
mandeep.dh |
3641 |
setType((ScanType)value);
|
| 3383 |
chandransh |
3642 |
}
|
|
|
3643 |
break;
|
|
|
3644 |
|
| 4496 |
mandeep.dh |
3645 |
case QUANTITY:
|
|
|
3646 |
if (value == null) {
|
|
|
3647 |
unsetQuantity();
|
|
|
3648 |
} else {
|
|
|
3649 |
setQuantity((Long)value);
|
|
|
3650 |
}
|
|
|
3651 |
break;
|
|
|
3652 |
|
| 5361 |
mandeep.dh |
3653 |
case BILLING_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
3654 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3655 |
unsetBillingWarehouseId();
|
| 4496 |
mandeep.dh |
3656 |
} else {
|
| 5361 |
mandeep.dh |
3657 |
setBillingWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
3658 |
}
|
|
|
3659 |
break;
|
|
|
3660 |
|
| 3383 |
chandransh |
3661 |
}
|
|
|
3662 |
}
|
|
|
3663 |
|
|
|
3664 |
public Object getFieldValue(_Fields field) {
|
|
|
3665 |
switch (field) {
|
| 5361 |
mandeep.dh |
3666 |
case INVENTORY_ITEM:
|
|
|
3667 |
return getInventoryItem();
|
| 3383 |
chandransh |
3668 |
|
| 4496 |
mandeep.dh |
3669 |
case TYPE:
|
|
|
3670 |
return getType();
|
| 3383 |
chandransh |
3671 |
|
| 4496 |
mandeep.dh |
3672 |
case QUANTITY:
|
|
|
3673 |
return Long.valueOf(getQuantity());
|
|
|
3674 |
|
| 5361 |
mandeep.dh |
3675 |
case BILLING_WAREHOUSE_ID:
|
|
|
3676 |
return Long.valueOf(getBillingWarehouseId());
|
| 4496 |
mandeep.dh |
3677 |
|
| 3383 |
chandransh |
3678 |
}
|
|
|
3679 |
throw new IllegalStateException();
|
|
|
3680 |
}
|
|
|
3681 |
|
| 3430 |
rajveer |
3682 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3683 |
public boolean isSet(_Fields field) {
|
|
|
3684 |
if (field == null) {
|
|
|
3685 |
throw new IllegalArgumentException();
|
|
|
3686 |
}
|
| 3383 |
chandransh |
3687 |
|
|
|
3688 |
switch (field) {
|
| 5361 |
mandeep.dh |
3689 |
case INVENTORY_ITEM:
|
|
|
3690 |
return isSetInventoryItem();
|
| 4496 |
mandeep.dh |
3691 |
case TYPE:
|
|
|
3692 |
return isSetType();
|
|
|
3693 |
case QUANTITY:
|
|
|
3694 |
return isSetQuantity();
|
| 5361 |
mandeep.dh |
3695 |
case BILLING_WAREHOUSE_ID:
|
|
|
3696 |
return isSetBillingWarehouseId();
|
| 3383 |
chandransh |
3697 |
}
|
|
|
3698 |
throw new IllegalStateException();
|
|
|
3699 |
}
|
|
|
3700 |
|
|
|
3701 |
@Override
|
|
|
3702 |
public boolean equals(Object that) {
|
|
|
3703 |
if (that == null)
|
|
|
3704 |
return false;
|
| 4496 |
mandeep.dh |
3705 |
if (that instanceof scan_args)
|
|
|
3706 |
return this.equals((scan_args)that);
|
| 3383 |
chandransh |
3707 |
return false;
|
|
|
3708 |
}
|
|
|
3709 |
|
| 4496 |
mandeep.dh |
3710 |
public boolean equals(scan_args that) {
|
| 3383 |
chandransh |
3711 |
if (that == null)
|
|
|
3712 |
return false;
|
|
|
3713 |
|
| 5361 |
mandeep.dh |
3714 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
3715 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
3716 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
3717 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 3383 |
chandransh |
3718 |
return false;
|
| 5361 |
mandeep.dh |
3719 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 3383 |
chandransh |
3720 |
return false;
|
|
|
3721 |
}
|
|
|
3722 |
|
| 4496 |
mandeep.dh |
3723 |
boolean this_present_type = true && this.isSetType();
|
|
|
3724 |
boolean that_present_type = true && that.isSetType();
|
|
|
3725 |
if (this_present_type || that_present_type) {
|
|
|
3726 |
if (!(this_present_type && that_present_type))
|
| 3383 |
chandransh |
3727 |
return false;
|
| 4496 |
mandeep.dh |
3728 |
if (!this.type.equals(that.type))
|
| 3383 |
chandransh |
3729 |
return false;
|
|
|
3730 |
}
|
|
|
3731 |
|
| 4496 |
mandeep.dh |
3732 |
boolean this_present_quantity = true;
|
|
|
3733 |
boolean that_present_quantity = true;
|
|
|
3734 |
if (this_present_quantity || that_present_quantity) {
|
|
|
3735 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
3736 |
return false;
|
|
|
3737 |
if (this.quantity != that.quantity)
|
|
|
3738 |
return false;
|
|
|
3739 |
}
|
|
|
3740 |
|
| 5361 |
mandeep.dh |
3741 |
boolean this_present_billingWarehouseId = true;
|
|
|
3742 |
boolean that_present_billingWarehouseId = true;
|
|
|
3743 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
3744 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| 4496 |
mandeep.dh |
3745 |
return false;
|
| 5361 |
mandeep.dh |
3746 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| 4496 |
mandeep.dh |
3747 |
return false;
|
|
|
3748 |
}
|
|
|
3749 |
|
| 3383 |
chandransh |
3750 |
return true;
|
|
|
3751 |
}
|
|
|
3752 |
|
|
|
3753 |
@Override
|
|
|
3754 |
public int hashCode() {
|
|
|
3755 |
return 0;
|
|
|
3756 |
}
|
|
|
3757 |
|
| 4496 |
mandeep.dh |
3758 |
public int compareTo(scan_args other) {
|
| 3383 |
chandransh |
3759 |
if (!getClass().equals(other.getClass())) {
|
|
|
3760 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3761 |
}
|
|
|
3762 |
|
|
|
3763 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3764 |
scan_args typedOther = (scan_args)other;
|
| 3383 |
chandransh |
3765 |
|
| 5361 |
mandeep.dh |
3766 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 3383 |
chandransh |
3767 |
if (lastComparison != 0) {
|
|
|
3768 |
return lastComparison;
|
|
|
3769 |
}
|
| 5361 |
mandeep.dh |
3770 |
if (isSetInventoryItem()) {
|
|
|
3771 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
3772 |
if (lastComparison != 0) {
|
|
|
3773 |
return lastComparison;
|
|
|
3774 |
}
|
| 3383 |
chandransh |
3775 |
}
|
| 4496 |
mandeep.dh |
3776 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3383 |
chandransh |
3777 |
if (lastComparison != 0) {
|
|
|
3778 |
return lastComparison;
|
|
|
3779 |
}
|
| 4496 |
mandeep.dh |
3780 |
if (isSetType()) {
|
|
|
3781 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
3782 |
if (lastComparison != 0) {
|
|
|
3783 |
return lastComparison;
|
|
|
3784 |
}
|
| 3383 |
chandransh |
3785 |
}
|
| 4496 |
mandeep.dh |
3786 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
3787 |
if (lastComparison != 0) {
|
|
|
3788 |
return lastComparison;
|
|
|
3789 |
}
|
|
|
3790 |
if (isSetQuantity()) {
|
|
|
3791 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
3792 |
if (lastComparison != 0) {
|
|
|
3793 |
return lastComparison;
|
|
|
3794 |
}
|
|
|
3795 |
}
|
| 5361 |
mandeep.dh |
3796 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| 4496 |
mandeep.dh |
3797 |
if (lastComparison != 0) {
|
|
|
3798 |
return lastComparison;
|
|
|
3799 |
}
|
| 5361 |
mandeep.dh |
3800 |
if (isSetBillingWarehouseId()) {
|
|
|
3801 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3802 |
if (lastComparison != 0) {
|
|
|
3803 |
return lastComparison;
|
|
|
3804 |
}
|
|
|
3805 |
}
|
| 3383 |
chandransh |
3806 |
return 0;
|
|
|
3807 |
}
|
|
|
3808 |
|
| 3430 |
rajveer |
3809 |
public _Fields fieldForId(int fieldId) {
|
|
|
3810 |
return _Fields.findByThriftId(fieldId);
|
|
|
3811 |
}
|
|
|
3812 |
|
|
|
3813 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3814 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
3815 |
iprot.readStructBegin();
|
|
|
3816 |
while (true)
|
|
|
3817 |
{
|
|
|
3818 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3819 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
3820 |
break;
|
|
|
3821 |
}
|
| 3430 |
rajveer |
3822 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
3823 |
case 1: // INVENTORY_ITEM
|
|
|
3824 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3825 |
this.inventoryItem = new InventoryItem();
|
|
|
3826 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
3827 |
} else {
|
|
|
3828 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3829 |
}
|
|
|
3830 |
break;
|
| 4496 |
mandeep.dh |
3831 |
case 2: // TYPE
|
|
|
3832 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3833 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
3834 |
} else {
|
|
|
3835 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3836 |
}
|
|
|
3837 |
break;
|
| 4496 |
mandeep.dh |
3838 |
case 3: // QUANTITY
|
|
|
3839 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3840 |
this.quantity = iprot.readI64();
|
|
|
3841 |
setQuantityIsSet(true);
|
|
|
3842 |
} else {
|
|
|
3843 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3844 |
}
|
|
|
3845 |
break;
|
| 5361 |
mandeep.dh |
3846 |
case 4: // BILLING_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
3847 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5361 |
mandeep.dh |
3848 |
this.billingWarehouseId = iprot.readI64();
|
|
|
3849 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
3850 |
} else {
|
|
|
3851 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3852 |
}
|
|
|
3853 |
break;
|
| 3430 |
rajveer |
3854 |
default:
|
|
|
3855 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
3856 |
}
|
| 3430 |
rajveer |
3857 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
3858 |
}
|
|
|
3859 |
iprot.readStructEnd();
|
|
|
3860 |
validate();
|
|
|
3861 |
}
|
|
|
3862 |
|
| 3430 |
rajveer |
3863 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3864 |
validate();
|
|
|
3865 |
|
|
|
3866 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
3867 |
if (this.inventoryItem != null) {
|
|
|
3868 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
3869 |
this.inventoryItem.write(oprot);
|
|
|
3870 |
oprot.writeFieldEnd();
|
|
|
3871 |
}
|
| 4496 |
mandeep.dh |
3872 |
if (this.type != null) {
|
|
|
3873 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
3874 |
oprot.writeI32(this.type.getValue());
|
|
|
3875 |
oprot.writeFieldEnd();
|
|
|
3876 |
}
|
|
|
3877 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
3878 |
oprot.writeI64(this.quantity);
|
| 3383 |
chandransh |
3879 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
3880 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
3881 |
oprot.writeI64(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3882 |
oprot.writeFieldEnd();
|
| 3383 |
chandransh |
3883 |
oprot.writeFieldStop();
|
|
|
3884 |
oprot.writeStructEnd();
|
|
|
3885 |
}
|
|
|
3886 |
|
|
|
3887 |
@Override
|
|
|
3888 |
public String toString() {
|
| 4496 |
mandeep.dh |
3889 |
StringBuilder sb = new StringBuilder("scan_args(");
|
| 3383 |
chandransh |
3890 |
boolean first = true;
|
|
|
3891 |
|
| 5361 |
mandeep.dh |
3892 |
sb.append("inventoryItem:");
|
|
|
3893 |
if (this.inventoryItem == null) {
|
|
|
3894 |
sb.append("null");
|
|
|
3895 |
} else {
|
|
|
3896 |
sb.append(this.inventoryItem);
|
|
|
3897 |
}
|
| 3383 |
chandransh |
3898 |
first = false;
|
|
|
3899 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
3900 |
sb.append("type:");
|
|
|
3901 |
if (this.type == null) {
|
|
|
3902 |
sb.append("null");
|
|
|
3903 |
} else {
|
|
|
3904 |
sb.append(this.type);
|
|
|
3905 |
}
|
| 3383 |
chandransh |
3906 |
first = false;
|
| 4496 |
mandeep.dh |
3907 |
if (!first) sb.append(", ");
|
|
|
3908 |
sb.append("quantity:");
|
|
|
3909 |
sb.append(this.quantity);
|
|
|
3910 |
first = false;
|
|
|
3911 |
if (!first) sb.append(", ");
|
| 5361 |
mandeep.dh |
3912 |
sb.append("billingWarehouseId:");
|
|
|
3913 |
sb.append(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3914 |
first = false;
|
| 3383 |
chandransh |
3915 |
sb.append(")");
|
|
|
3916 |
return sb.toString();
|
|
|
3917 |
}
|
|
|
3918 |
|
| 3430 |
rajveer |
3919 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3920 |
// check for required fields
|
|
|
3921 |
}
|
|
|
3922 |
|
| 3430 |
rajveer |
3923 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3924 |
try {
|
|
|
3925 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3926 |
} catch (org.apache.thrift.TException te) {
|
|
|
3927 |
throw new java.io.IOException(te);
|
|
|
3928 |
}
|
|
|
3929 |
}
|
|
|
3930 |
|
|
|
3931 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3932 |
try {
|
| 4496 |
mandeep.dh |
3933 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3934 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
3935 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3936 |
} catch (org.apache.thrift.TException te) {
|
|
|
3937 |
throw new java.io.IOException(te);
|
|
|
3938 |
}
|
|
|
3939 |
}
|
|
|
3940 |
|
| 3383 |
chandransh |
3941 |
}
|
|
|
3942 |
|
| 4496 |
mandeep.dh |
3943 |
public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3944 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
|
| 3383 |
chandransh |
3945 |
|
| 3430 |
rajveer |
3946 |
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 |
3947 |
|
| 3430 |
rajveer |
3948 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
3949 |
|
|
|
3950 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3951 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
3952 |
WEX((short)1, "wex");
|
|
|
3953 |
|
|
|
3954 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3955 |
|
|
|
3956 |
static {
|
|
|
3957 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3958 |
byName.put(field.getFieldName(), field);
|
|
|
3959 |
}
|
|
|
3960 |
}
|
|
|
3961 |
|
|
|
3962 |
/**
|
|
|
3963 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3964 |
*/
|
|
|
3965 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3966 |
switch(fieldId) {
|
|
|
3967 |
case 1: // WEX
|
|
|
3968 |
return WEX;
|
|
|
3969 |
default:
|
|
|
3970 |
return null;
|
|
|
3971 |
}
|
| 3383 |
chandransh |
3972 |
}
|
|
|
3973 |
|
|
|
3974 |
/**
|
|
|
3975 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3976 |
* if it is not found.
|
|
|
3977 |
*/
|
|
|
3978 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3979 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3980 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3981 |
return fields;
|
|
|
3982 |
}
|
|
|
3983 |
|
|
|
3984 |
/**
|
|
|
3985 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3986 |
*/
|
|
|
3987 |
public static _Fields findByName(String name) {
|
|
|
3988 |
return byName.get(name);
|
|
|
3989 |
}
|
|
|
3990 |
|
|
|
3991 |
private final short _thriftId;
|
|
|
3992 |
private final String _fieldName;
|
|
|
3993 |
|
|
|
3994 |
_Fields(short thriftId, String fieldName) {
|
|
|
3995 |
_thriftId = thriftId;
|
|
|
3996 |
_fieldName = fieldName;
|
|
|
3997 |
}
|
|
|
3998 |
|
|
|
3999 |
public short getThriftFieldId() {
|
|
|
4000 |
return _thriftId;
|
|
|
4001 |
}
|
|
|
4002 |
|
|
|
4003 |
public String getFieldName() {
|
|
|
4004 |
return _fieldName;
|
|
|
4005 |
}
|
|
|
4006 |
}
|
|
|
4007 |
|
|
|
4008 |
// isset id assignments
|
|
|
4009 |
|
| 3430 |
rajveer |
4010 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
4011 |
static {
|
| 3430 |
rajveer |
4012 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4013 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4014 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4015 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4016 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
|
| 3383 |
chandransh |
4017 |
}
|
|
|
4018 |
|
| 4496 |
mandeep.dh |
4019 |
public scan_result() {
|
| 3383 |
chandransh |
4020 |
}
|
|
|
4021 |
|
| 4496 |
mandeep.dh |
4022 |
public scan_result(
|
| 3383 |
chandransh |
4023 |
WarehouseServiceException wex)
|
|
|
4024 |
{
|
|
|
4025 |
this();
|
|
|
4026 |
this.wex = wex;
|
|
|
4027 |
}
|
|
|
4028 |
|
|
|
4029 |
/**
|
|
|
4030 |
* Performs a deep copy on <i>other</i>.
|
|
|
4031 |
*/
|
| 4496 |
mandeep.dh |
4032 |
public scan_result(scan_result other) {
|
| 3383 |
chandransh |
4033 |
if (other.isSetWex()) {
|
|
|
4034 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4035 |
}
|
|
|
4036 |
}
|
|
|
4037 |
|
| 4496 |
mandeep.dh |
4038 |
public scan_result deepCopy() {
|
|
|
4039 |
return new scan_result(this);
|
| 3383 |
chandransh |
4040 |
}
|
|
|
4041 |
|
| 3430 |
rajveer |
4042 |
@Override
|
|
|
4043 |
public void clear() {
|
|
|
4044 |
this.wex = null;
|
| 3383 |
chandransh |
4045 |
}
|
|
|
4046 |
|
|
|
4047 |
public WarehouseServiceException getWex() {
|
|
|
4048 |
return this.wex;
|
|
|
4049 |
}
|
|
|
4050 |
|
| 3430 |
rajveer |
4051 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
4052 |
this.wex = wex;
|
|
|
4053 |
}
|
|
|
4054 |
|
|
|
4055 |
public void unsetWex() {
|
|
|
4056 |
this.wex = null;
|
|
|
4057 |
}
|
|
|
4058 |
|
| 3430 |
rajveer |
4059 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
4060 |
public boolean isSetWex() {
|
|
|
4061 |
return this.wex != null;
|
|
|
4062 |
}
|
|
|
4063 |
|
|
|
4064 |
public void setWexIsSet(boolean value) {
|
|
|
4065 |
if (!value) {
|
|
|
4066 |
this.wex = null;
|
|
|
4067 |
}
|
|
|
4068 |
}
|
|
|
4069 |
|
|
|
4070 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4071 |
switch (field) {
|
|
|
4072 |
case WEX:
|
|
|
4073 |
if (value == null) {
|
|
|
4074 |
unsetWex();
|
|
|
4075 |
} else {
|
|
|
4076 |
setWex((WarehouseServiceException)value);
|
|
|
4077 |
}
|
|
|
4078 |
break;
|
|
|
4079 |
|
|
|
4080 |
}
|
|
|
4081 |
}
|
|
|
4082 |
|
|
|
4083 |
public Object getFieldValue(_Fields field) {
|
|
|
4084 |
switch (field) {
|
|
|
4085 |
case WEX:
|
|
|
4086 |
return getWex();
|
|
|
4087 |
|
|
|
4088 |
}
|
|
|
4089 |
throw new IllegalStateException();
|
|
|
4090 |
}
|
|
|
4091 |
|
| 3430 |
rajveer |
4092 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4093 |
public boolean isSet(_Fields field) {
|
|
|
4094 |
if (field == null) {
|
|
|
4095 |
throw new IllegalArgumentException();
|
|
|
4096 |
}
|
| 3383 |
chandransh |
4097 |
|
|
|
4098 |
switch (field) {
|
|
|
4099 |
case WEX:
|
|
|
4100 |
return isSetWex();
|
|
|
4101 |
}
|
|
|
4102 |
throw new IllegalStateException();
|
|
|
4103 |
}
|
|
|
4104 |
|
|
|
4105 |
@Override
|
|
|
4106 |
public boolean equals(Object that) {
|
|
|
4107 |
if (that == null)
|
|
|
4108 |
return false;
|
| 4496 |
mandeep.dh |
4109 |
if (that instanceof scan_result)
|
|
|
4110 |
return this.equals((scan_result)that);
|
| 3383 |
chandransh |
4111 |
return false;
|
|
|
4112 |
}
|
|
|
4113 |
|
| 4496 |
mandeep.dh |
4114 |
public boolean equals(scan_result that) {
|
| 3383 |
chandransh |
4115 |
if (that == null)
|
|
|
4116 |
return false;
|
|
|
4117 |
|
|
|
4118 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
4119 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
4120 |
if (this_present_wex || that_present_wex) {
|
|
|
4121 |
if (!(this_present_wex && that_present_wex))
|
|
|
4122 |
return false;
|
|
|
4123 |
if (!this.wex.equals(that.wex))
|
|
|
4124 |
return false;
|
|
|
4125 |
}
|
|
|
4126 |
|
|
|
4127 |
return true;
|
|
|
4128 |
}
|
|
|
4129 |
|
|
|
4130 |
@Override
|
|
|
4131 |
public int hashCode() {
|
|
|
4132 |
return 0;
|
|
|
4133 |
}
|
|
|
4134 |
|
| 4496 |
mandeep.dh |
4135 |
public int compareTo(scan_result other) {
|
| 3383 |
chandransh |
4136 |
if (!getClass().equals(other.getClass())) {
|
|
|
4137 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4138 |
}
|
|
|
4139 |
|
|
|
4140 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4141 |
scan_result typedOther = (scan_result)other;
|
| 3383 |
chandransh |
4142 |
|
| 3430 |
rajveer |
4143 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
4144 |
if (lastComparison != 0) {
|
|
|
4145 |
return lastComparison;
|
|
|
4146 |
}
|
| 3430 |
rajveer |
4147 |
if (isSetWex()) {
|
|
|
4148 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
4149 |
if (lastComparison != 0) {
|
|
|
4150 |
return lastComparison;
|
|
|
4151 |
}
|
| 3383 |
chandransh |
4152 |
}
|
|
|
4153 |
return 0;
|
|
|
4154 |
}
|
|
|
4155 |
|
| 3430 |
rajveer |
4156 |
public _Fields fieldForId(int fieldId) {
|
|
|
4157 |
return _Fields.findByThriftId(fieldId);
|
|
|
4158 |
}
|
|
|
4159 |
|
|
|
4160 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4161 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
4162 |
iprot.readStructBegin();
|
|
|
4163 |
while (true)
|
|
|
4164 |
{
|
|
|
4165 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4166 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
4167 |
break;
|
|
|
4168 |
}
|
| 3430 |
rajveer |
4169 |
switch (field.id) {
|
|
|
4170 |
case 1: // WEX
|
|
|
4171 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4172 |
this.wex = new WarehouseServiceException();
|
|
|
4173 |
this.wex.read(iprot);
|
|
|
4174 |
} else {
|
|
|
4175 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4176 |
}
|
|
|
4177 |
break;
|
|
|
4178 |
default:
|
|
|
4179 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
4180 |
}
|
| 3430 |
rajveer |
4181 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
4182 |
}
|
|
|
4183 |
iprot.readStructEnd();
|
|
|
4184 |
validate();
|
|
|
4185 |
}
|
|
|
4186 |
|
| 3430 |
rajveer |
4187 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4188 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4189 |
|
| 4496 |
mandeep.dh |
4190 |
if (this.isSetWex()) {
|
| 3383 |
chandransh |
4191 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
4192 |
this.wex.write(oprot);
|
|
|
4193 |
oprot.writeFieldEnd();
|
|
|
4194 |
}
|
|
|
4195 |
oprot.writeFieldStop();
|
|
|
4196 |
oprot.writeStructEnd();
|
|
|
4197 |
}
|
|
|
4198 |
|
|
|
4199 |
@Override
|
|
|
4200 |
public String toString() {
|
| 4496 |
mandeep.dh |
4201 |
StringBuilder sb = new StringBuilder("scan_result(");
|
| 3383 |
chandransh |
4202 |
boolean first = true;
|
|
|
4203 |
|
|
|
4204 |
sb.append("wex:");
|
|
|
4205 |
if (this.wex == null) {
|
|
|
4206 |
sb.append("null");
|
|
|
4207 |
} else {
|
|
|
4208 |
sb.append(this.wex);
|
|
|
4209 |
}
|
|
|
4210 |
first = false;
|
|
|
4211 |
sb.append(")");
|
|
|
4212 |
return sb.toString();
|
|
|
4213 |
}
|
|
|
4214 |
|
| 3430 |
rajveer |
4215 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4216 |
// check for required fields
|
|
|
4217 |
}
|
|
|
4218 |
|
| 3430 |
rajveer |
4219 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4220 |
try {
|
|
|
4221 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4222 |
} catch (org.apache.thrift.TException te) {
|
|
|
4223 |
throw new java.io.IOException(te);
|
|
|
4224 |
}
|
|
|
4225 |
}
|
|
|
4226 |
|
|
|
4227 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4228 |
try {
|
|
|
4229 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4230 |
} catch (org.apache.thrift.TException te) {
|
|
|
4231 |
throw new java.io.IOException(te);
|
|
|
4232 |
}
|
|
|
4233 |
}
|
|
|
4234 |
|
| 3383 |
chandransh |
4235 |
}
|
|
|
4236 |
|
| 4496 |
mandeep.dh |
4237 |
public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4238 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
|
| 2820 |
chandransh |
4239 |
|
| 4555 |
mandeep.dh |
4240 |
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 |
4241 |
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);
|
|
|
4242 |
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 |
4243 |
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);
|
|
|
4244 |
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);
|
|
|
4245 |
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 |
4246 |
|
| 4555 |
mandeep.dh |
4247 |
private String serialNumber; // required
|
| 3430 |
rajveer |
4248 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
4249 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
4250 |
private long fulfilmentWarehouseId; // required
|
|
|
4251 |
private double quantity; // required
|
|
|
4252 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
4253 |
|
|
|
4254 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4255 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4555 |
mandeep.dh |
4256 |
SERIAL_NUMBER((short)1, "serialNumber"),
|
| 2820 |
chandransh |
4257 |
/**
|
|
|
4258 |
*
|
|
|
4259 |
* @see ScanType
|
|
|
4260 |
*/
|
| 4496 |
mandeep.dh |
4261 |
TYPE((short)2, "type"),
|
|
|
4262 |
ORDER_ID((short)3, "orderId"),
|
| 5110 |
mandeep.dh |
4263 |
FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
|
|
|
4264 |
QUANTITY((short)5, "quantity"),
|
|
|
4265 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
4266 |
|
|
|
4267 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4268 |
|
|
|
4269 |
static {
|
|
|
4270 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4271 |
byName.put(field.getFieldName(), field);
|
|
|
4272 |
}
|
|
|
4273 |
}
|
|
|
4274 |
|
|
|
4275 |
/**
|
|
|
4276 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4277 |
*/
|
|
|
4278 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4279 |
switch(fieldId) {
|
| 4555 |
mandeep.dh |
4280 |
case 1: // SERIAL_NUMBER
|
|
|
4281 |
return SERIAL_NUMBER;
|
| 4496 |
mandeep.dh |
4282 |
case 2: // TYPE
|
| 3430 |
rajveer |
4283 |
return TYPE;
|
| 4496 |
mandeep.dh |
4284 |
case 3: // ORDER_ID
|
|
|
4285 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
4286 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
|
|
4287 |
return FULFILMENT_WAREHOUSE_ID;
|
|
|
4288 |
case 5: // QUANTITY
|
|
|
4289 |
return QUANTITY;
|
|
|
4290 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
4291 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
4292 |
default:
|
|
|
4293 |
return null;
|
|
|
4294 |
}
|
| 2820 |
chandransh |
4295 |
}
|
|
|
4296 |
|
|
|
4297 |
/**
|
|
|
4298 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4299 |
* if it is not found.
|
|
|
4300 |
*/
|
|
|
4301 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4302 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4303 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4304 |
return fields;
|
|
|
4305 |
}
|
|
|
4306 |
|
|
|
4307 |
/**
|
|
|
4308 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4309 |
*/
|
|
|
4310 |
public static _Fields findByName(String name) {
|
|
|
4311 |
return byName.get(name);
|
|
|
4312 |
}
|
|
|
4313 |
|
|
|
4314 |
private final short _thriftId;
|
|
|
4315 |
private final String _fieldName;
|
|
|
4316 |
|
|
|
4317 |
_Fields(short thriftId, String fieldName) {
|
|
|
4318 |
_thriftId = thriftId;
|
|
|
4319 |
_fieldName = fieldName;
|
|
|
4320 |
}
|
|
|
4321 |
|
|
|
4322 |
public short getThriftFieldId() {
|
|
|
4323 |
return _thriftId;
|
|
|
4324 |
}
|
|
|
4325 |
|
|
|
4326 |
public String getFieldName() {
|
|
|
4327 |
return _fieldName;
|
|
|
4328 |
}
|
|
|
4329 |
}
|
|
|
4330 |
|
|
|
4331 |
// isset id assignments
|
| 4555 |
mandeep.dh |
4332 |
private static final int __ORDERID_ISSET_ID = 0;
|
| 5110 |
mandeep.dh |
4333 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
|
|
4334 |
private static final int __QUANTITY_ISSET_ID = 2;
|
|
|
4335 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
|
|
4336 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
4337 |
|
| 3430 |
rajveer |
4338 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4339 |
static {
|
| 3430 |
rajveer |
4340 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4555 |
mandeep.dh |
4341 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4342 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
4343 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4344 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
4345 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4346 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
4347 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
4348 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
4349 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4350 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
4351 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4352 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
4353 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4354 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
4355 |
}
|
|
|
4356 |
|
| 4496 |
mandeep.dh |
4357 |
public scanSerializedItemForOrder_args() {
|
| 2820 |
chandransh |
4358 |
}
|
|
|
4359 |
|
| 4496 |
mandeep.dh |
4360 |
public scanSerializedItemForOrder_args(
|
| 4555 |
mandeep.dh |
4361 |
String serialNumber,
|
| 4496 |
mandeep.dh |
4362 |
ScanType type,
|
|
|
4363 |
long orderId,
|
| 5110 |
mandeep.dh |
4364 |
long fulfilmentWarehouseId,
|
|
|
4365 |
double quantity,
|
|
|
4366 |
long billingWarehouseId)
|
| 2820 |
chandransh |
4367 |
{
|
|
|
4368 |
this();
|
| 4555 |
mandeep.dh |
4369 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
4370 |
this.type = type;
|
| 4496 |
mandeep.dh |
4371 |
this.orderId = orderId;
|
|
|
4372 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
4373 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
4374 |
setFulfilmentWarehouseIdIsSet(true);
|
|
|
4375 |
this.quantity = quantity;
|
|
|
4376 |
setQuantityIsSet(true);
|
|
|
4377 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4378 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
4379 |
}
|
|
|
4380 |
|
|
|
4381 |
/**
|
|
|
4382 |
* Performs a deep copy on <i>other</i>.
|
|
|
4383 |
*/
|
| 4496 |
mandeep.dh |
4384 |
public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
4385 |
__isset_bit_vector.clear();
|
|
|
4386 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4555 |
mandeep.dh |
4387 |
if (other.isSetSerialNumber()) {
|
|
|
4388 |
this.serialNumber = other.serialNumber;
|
|
|
4389 |
}
|
| 2820 |
chandransh |
4390 |
if (other.isSetType()) {
|
|
|
4391 |
this.type = other.type;
|
|
|
4392 |
}
|
| 4496 |
mandeep.dh |
4393 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
4394 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
|
|
4395 |
this.quantity = other.quantity;
|
|
|
4396 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
4397 |
}
|
|
|
4398 |
|
| 4496 |
mandeep.dh |
4399 |
public scanSerializedItemForOrder_args deepCopy() {
|
|
|
4400 |
return new scanSerializedItemForOrder_args(this);
|
| 2820 |
chandransh |
4401 |
}
|
|
|
4402 |
|
| 3430 |
rajveer |
4403 |
@Override
|
|
|
4404 |
public void clear() {
|
| 4555 |
mandeep.dh |
4405 |
this.serialNumber = null;
|
| 3430 |
rajveer |
4406 |
this.type = null;
|
| 4496 |
mandeep.dh |
4407 |
setOrderIdIsSet(false);
|
|
|
4408 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
4409 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
4410 |
this.fulfilmentWarehouseId = 0;
|
|
|
4411 |
setQuantityIsSet(false);
|
|
|
4412 |
this.quantity = 0.0;
|
|
|
4413 |
setBillingWarehouseIdIsSet(false);
|
|
|
4414 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
4415 |
}
|
|
|
4416 |
|
| 4555 |
mandeep.dh |
4417 |
public String getSerialNumber() {
|
|
|
4418 |
return this.serialNumber;
|
| 2820 |
chandransh |
4419 |
}
|
|
|
4420 |
|
| 4555 |
mandeep.dh |
4421 |
public void setSerialNumber(String serialNumber) {
|
|
|
4422 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
4423 |
}
|
|
|
4424 |
|
| 4555 |
mandeep.dh |
4425 |
public void unsetSerialNumber() {
|
|
|
4426 |
this.serialNumber = null;
|
| 2820 |
chandransh |
4427 |
}
|
|
|
4428 |
|
| 4555 |
mandeep.dh |
4429 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
4430 |
public boolean isSetSerialNumber() {
|
|
|
4431 |
return this.serialNumber != null;
|
| 2820 |
chandransh |
4432 |
}
|
|
|
4433 |
|
| 4555 |
mandeep.dh |
4434 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
4435 |
if (!value) {
|
|
|
4436 |
this.serialNumber = null;
|
|
|
4437 |
}
|
| 2820 |
chandransh |
4438 |
}
|
|
|
4439 |
|
| 4496 |
mandeep.dh |
4440 |
/**
|
|
|
4441 |
*
|
|
|
4442 |
* @see ScanType
|
|
|
4443 |
*/
|
|
|
4444 |
public ScanType getType() {
|
|
|
4445 |
return this.type;
|
| 2820 |
chandransh |
4446 |
}
|
|
|
4447 |
|
| 4496 |
mandeep.dh |
4448 |
/**
|
|
|
4449 |
*
|
|
|
4450 |
* @see ScanType
|
|
|
4451 |
*/
|
|
|
4452 |
public void setType(ScanType type) {
|
|
|
4453 |
this.type = type;
|
| 2820 |
chandransh |
4454 |
}
|
|
|
4455 |
|
| 4496 |
mandeep.dh |
4456 |
public void unsetType() {
|
|
|
4457 |
this.type = null;
|
| 2820 |
chandransh |
4458 |
}
|
|
|
4459 |
|
| 4496 |
mandeep.dh |
4460 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
4461 |
public boolean isSetType() {
|
|
|
4462 |
return this.type != null;
|
| 2820 |
chandransh |
4463 |
}
|
|
|
4464 |
|
| 4496 |
mandeep.dh |
4465 |
public void setTypeIsSet(boolean value) {
|
| 2820 |
chandransh |
4466 |
if (!value) {
|
| 4496 |
mandeep.dh |
4467 |
this.type = null;
|
| 2820 |
chandransh |
4468 |
}
|
|
|
4469 |
}
|
|
|
4470 |
|
| 4496 |
mandeep.dh |
4471 |
public long getOrderId() {
|
|
|
4472 |
return this.orderId;
|
| 2820 |
chandransh |
4473 |
}
|
|
|
4474 |
|
| 4496 |
mandeep.dh |
4475 |
public void setOrderId(long orderId) {
|
|
|
4476 |
this.orderId = orderId;
|
|
|
4477 |
setOrderIdIsSet(true);
|
| 2820 |
chandransh |
4478 |
}
|
|
|
4479 |
|
| 4496 |
mandeep.dh |
4480 |
public void unsetOrderId() {
|
|
|
4481 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
4482 |
}
|
|
|
4483 |
|
| 4496 |
mandeep.dh |
4484 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
4485 |
public boolean isSetOrderId() {
|
|
|
4486 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
4487 |
}
|
|
|
4488 |
|
| 4496 |
mandeep.dh |
4489 |
public void setOrderIdIsSet(boolean value) {
|
|
|
4490 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 2820 |
chandransh |
4491 |
}
|
|
|
4492 |
|
| 5110 |
mandeep.dh |
4493 |
public long getFulfilmentWarehouseId() {
|
|
|
4494 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
4495 |
}
|
|
|
4496 |
|
| 5110 |
mandeep.dh |
4497 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
4498 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
4499 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
4500 |
}
|
|
|
4501 |
|
| 5110 |
mandeep.dh |
4502 |
public void unsetFulfilmentWarehouseId() {
|
|
|
4503 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
4504 |
}
|
|
|
4505 |
|
| 5110 |
mandeep.dh |
4506 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
4507 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
4508 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
4509 |
}
|
|
|
4510 |
|
| 5110 |
mandeep.dh |
4511 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
4512 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
4513 |
}
|
|
|
4514 |
|
| 5110 |
mandeep.dh |
4515 |
public double getQuantity() {
|
|
|
4516 |
return this.quantity;
|
|
|
4517 |
}
|
|
|
4518 |
|
|
|
4519 |
public void setQuantity(double quantity) {
|
|
|
4520 |
this.quantity = quantity;
|
|
|
4521 |
setQuantityIsSet(true);
|
|
|
4522 |
}
|
|
|
4523 |
|
|
|
4524 |
public void unsetQuantity() {
|
|
|
4525 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
4526 |
}
|
|
|
4527 |
|
|
|
4528 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
4529 |
public boolean isSetQuantity() {
|
|
|
4530 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
4531 |
}
|
|
|
4532 |
|
|
|
4533 |
public void setQuantityIsSet(boolean value) {
|
|
|
4534 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
4535 |
}
|
|
|
4536 |
|
|
|
4537 |
public long getBillingWarehouseId() {
|
|
|
4538 |
return this.billingWarehouseId;
|
|
|
4539 |
}
|
|
|
4540 |
|
|
|
4541 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
4542 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4543 |
setBillingWarehouseIdIsSet(true);
|
|
|
4544 |
}
|
|
|
4545 |
|
|
|
4546 |
public void unsetBillingWarehouseId() {
|
|
|
4547 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
4548 |
}
|
|
|
4549 |
|
|
|
4550 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
4551 |
public boolean isSetBillingWarehouseId() {
|
|
|
4552 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
4553 |
}
|
|
|
4554 |
|
|
|
4555 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
4556 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
4557 |
}
|
|
|
4558 |
|
| 2820 |
chandransh |
4559 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4560 |
switch (field) {
|
| 4555 |
mandeep.dh |
4561 |
case SERIAL_NUMBER:
|
| 2820 |
chandransh |
4562 |
if (value == null) {
|
| 4555 |
mandeep.dh |
4563 |
unsetSerialNumber();
|
| 2820 |
chandransh |
4564 |
} else {
|
| 4555 |
mandeep.dh |
4565 |
setSerialNumber((String)value);
|
| 2820 |
chandransh |
4566 |
}
|
|
|
4567 |
break;
|
|
|
4568 |
|
| 4496 |
mandeep.dh |
4569 |
case TYPE:
|
| 2820 |
chandransh |
4570 |
if (value == null) {
|
| 4496 |
mandeep.dh |
4571 |
unsetType();
|
| 2820 |
chandransh |
4572 |
} else {
|
| 4496 |
mandeep.dh |
4573 |
setType((ScanType)value);
|
| 2820 |
chandransh |
4574 |
}
|
|
|
4575 |
break;
|
|
|
4576 |
|
| 4496 |
mandeep.dh |
4577 |
case ORDER_ID:
|
| 2820 |
chandransh |
4578 |
if (value == null) {
|
| 4496 |
mandeep.dh |
4579 |
unsetOrderId();
|
| 2820 |
chandransh |
4580 |
} else {
|
| 4496 |
mandeep.dh |
4581 |
setOrderId((Long)value);
|
| 2820 |
chandransh |
4582 |
}
|
|
|
4583 |
break;
|
|
|
4584 |
|
| 5110 |
mandeep.dh |
4585 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
4586 |
if (value == null) {
|
| 5110 |
mandeep.dh |
4587 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
4588 |
} else {
|
| 5110 |
mandeep.dh |
4589 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
4590 |
}
|
|
|
4591 |
break;
|
|
|
4592 |
|
| 5110 |
mandeep.dh |
4593 |
case QUANTITY:
|
|
|
4594 |
if (value == null) {
|
|
|
4595 |
unsetQuantity();
|
|
|
4596 |
} else {
|
|
|
4597 |
setQuantity((Double)value);
|
|
|
4598 |
}
|
|
|
4599 |
break;
|
|
|
4600 |
|
|
|
4601 |
case BILLING_WAREHOUSE_ID:
|
|
|
4602 |
if (value == null) {
|
|
|
4603 |
unsetBillingWarehouseId();
|
|
|
4604 |
} else {
|
|
|
4605 |
setBillingWarehouseId((Long)value);
|
|
|
4606 |
}
|
|
|
4607 |
break;
|
|
|
4608 |
|
| 2820 |
chandransh |
4609 |
}
|
|
|
4610 |
}
|
|
|
4611 |
|
|
|
4612 |
public Object getFieldValue(_Fields field) {
|
|
|
4613 |
switch (field) {
|
| 4555 |
mandeep.dh |
4614 |
case SERIAL_NUMBER:
|
|
|
4615 |
return getSerialNumber();
|
| 2820 |
chandransh |
4616 |
|
|
|
4617 |
case TYPE:
|
|
|
4618 |
return getType();
|
|
|
4619 |
|
| 4496 |
mandeep.dh |
4620 |
case ORDER_ID:
|
|
|
4621 |
return Long.valueOf(getOrderId());
|
|
|
4622 |
|
| 5110 |
mandeep.dh |
4623 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
4624 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
4625 |
|
| 5110 |
mandeep.dh |
4626 |
case QUANTITY:
|
|
|
4627 |
return Double.valueOf(getQuantity());
|
|
|
4628 |
|
|
|
4629 |
case BILLING_WAREHOUSE_ID:
|
|
|
4630 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
4631 |
|
| 2820 |
chandransh |
4632 |
}
|
|
|
4633 |
throw new IllegalStateException();
|
|
|
4634 |
}
|
|
|
4635 |
|
| 3430 |
rajveer |
4636 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4637 |
public boolean isSet(_Fields field) {
|
|
|
4638 |
if (field == null) {
|
|
|
4639 |
throw new IllegalArgumentException();
|
|
|
4640 |
}
|
| 2820 |
chandransh |
4641 |
|
|
|
4642 |
switch (field) {
|
| 4555 |
mandeep.dh |
4643 |
case SERIAL_NUMBER:
|
|
|
4644 |
return isSetSerialNumber();
|
| 2820 |
chandransh |
4645 |
case TYPE:
|
|
|
4646 |
return isSetType();
|
| 4496 |
mandeep.dh |
4647 |
case ORDER_ID:
|
|
|
4648 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
4649 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
4650 |
return isSetFulfilmentWarehouseId();
|
|
|
4651 |
case QUANTITY:
|
|
|
4652 |
return isSetQuantity();
|
|
|
4653 |
case BILLING_WAREHOUSE_ID:
|
|
|
4654 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
4655 |
}
|
|
|
4656 |
throw new IllegalStateException();
|
|
|
4657 |
}
|
|
|
4658 |
|
|
|
4659 |
@Override
|
|
|
4660 |
public boolean equals(Object that) {
|
|
|
4661 |
if (that == null)
|
|
|
4662 |
return false;
|
| 4496 |
mandeep.dh |
4663 |
if (that instanceof scanSerializedItemForOrder_args)
|
|
|
4664 |
return this.equals((scanSerializedItemForOrder_args)that);
|
| 2820 |
chandransh |
4665 |
return false;
|
|
|
4666 |
}
|
|
|
4667 |
|
| 4496 |
mandeep.dh |
4668 |
public boolean equals(scanSerializedItemForOrder_args that) {
|
| 2820 |
chandransh |
4669 |
if (that == null)
|
|
|
4670 |
return false;
|
|
|
4671 |
|
| 4555 |
mandeep.dh |
4672 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
4673 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
4674 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
4675 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2820 |
chandransh |
4676 |
return false;
|
| 4555 |
mandeep.dh |
4677 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2820 |
chandransh |
4678 |
return false;
|
|
|
4679 |
}
|
|
|
4680 |
|
| 4496 |
mandeep.dh |
4681 |
boolean this_present_type = true && this.isSetType();
|
|
|
4682 |
boolean that_present_type = true && that.isSetType();
|
|
|
4683 |
if (this_present_type || that_present_type) {
|
|
|
4684 |
if (!(this_present_type && that_present_type))
|
| 2820 |
chandransh |
4685 |
return false;
|
| 4496 |
mandeep.dh |
4686 |
if (!this.type.equals(that.type))
|
| 2820 |
chandransh |
4687 |
return false;
|
|
|
4688 |
}
|
|
|
4689 |
|
| 4496 |
mandeep.dh |
4690 |
boolean this_present_orderId = true;
|
|
|
4691 |
boolean that_present_orderId = true;
|
|
|
4692 |
if (this_present_orderId || that_present_orderId) {
|
|
|
4693 |
if (!(this_present_orderId && that_present_orderId))
|
| 2820 |
chandransh |
4694 |
return false;
|
| 4496 |
mandeep.dh |
4695 |
if (this.orderId != that.orderId)
|
| 2820 |
chandransh |
4696 |
return false;
|
|
|
4697 |
}
|
|
|
4698 |
|
| 5110 |
mandeep.dh |
4699 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
4700 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
4701 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
4702 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
4703 |
return false;
|
| 5110 |
mandeep.dh |
4704 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
4705 |
return false;
|
|
|
4706 |
}
|
|
|
4707 |
|
| 5110 |
mandeep.dh |
4708 |
boolean this_present_quantity = true;
|
|
|
4709 |
boolean that_present_quantity = true;
|
|
|
4710 |
if (this_present_quantity || that_present_quantity) {
|
|
|
4711 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
4712 |
return false;
|
|
|
4713 |
if (this.quantity != that.quantity)
|
|
|
4714 |
return false;
|
|
|
4715 |
}
|
|
|
4716 |
|
|
|
4717 |
boolean this_present_billingWarehouseId = true;
|
|
|
4718 |
boolean that_present_billingWarehouseId = true;
|
|
|
4719 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
4720 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
4721 |
return false;
|
|
|
4722 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
4723 |
return false;
|
|
|
4724 |
}
|
|
|
4725 |
|
| 2820 |
chandransh |
4726 |
return true;
|
|
|
4727 |
}
|
|
|
4728 |
|
|
|
4729 |
@Override
|
|
|
4730 |
public int hashCode() {
|
|
|
4731 |
return 0;
|
|
|
4732 |
}
|
|
|
4733 |
|
| 4496 |
mandeep.dh |
4734 |
public int compareTo(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
4735 |
if (!getClass().equals(other.getClass())) {
|
|
|
4736 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4737 |
}
|
|
|
4738 |
|
|
|
4739 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4740 |
scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
|
| 2820 |
chandransh |
4741 |
|
| 4555 |
mandeep.dh |
4742 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2820 |
chandransh |
4743 |
if (lastComparison != 0) {
|
|
|
4744 |
return lastComparison;
|
|
|
4745 |
}
|
| 4555 |
mandeep.dh |
4746 |
if (isSetSerialNumber()) {
|
|
|
4747 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
4748 |
if (lastComparison != 0) {
|
|
|
4749 |
return lastComparison;
|
|
|
4750 |
}
|
| 2820 |
chandransh |
4751 |
}
|
| 4496 |
mandeep.dh |
4752 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
4753 |
if (lastComparison != 0) {
|
|
|
4754 |
return lastComparison;
|
|
|
4755 |
}
|
| 4496 |
mandeep.dh |
4756 |
if (isSetType()) {
|
|
|
4757 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
4758 |
if (lastComparison != 0) {
|
|
|
4759 |
return lastComparison;
|
|
|
4760 |
}
|
| 2820 |
chandransh |
4761 |
}
|
| 4496 |
mandeep.dh |
4762 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2820 |
chandransh |
4763 |
if (lastComparison != 0) {
|
|
|
4764 |
return lastComparison;
|
|
|
4765 |
}
|
| 4496 |
mandeep.dh |
4766 |
if (isSetOrderId()) {
|
|
|
4767 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 3430 |
rajveer |
4768 |
if (lastComparison != 0) {
|
|
|
4769 |
return lastComparison;
|
|
|
4770 |
}
|
| 2820 |
chandransh |
4771 |
}
|
| 5110 |
mandeep.dh |
4772 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
4773 |
if (lastComparison != 0) {
|
|
|
4774 |
return lastComparison;
|
|
|
4775 |
}
|
| 5110 |
mandeep.dh |
4776 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
4777 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
4778 |
if (lastComparison != 0) {
|
|
|
4779 |
return lastComparison;
|
|
|
4780 |
}
|
| 2820 |
chandransh |
4781 |
}
|
| 5110 |
mandeep.dh |
4782 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
4783 |
if (lastComparison != 0) {
|
|
|
4784 |
return lastComparison;
|
|
|
4785 |
}
|
|
|
4786 |
if (isSetQuantity()) {
|
|
|
4787 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
4788 |
if (lastComparison != 0) {
|
|
|
4789 |
return lastComparison;
|
|
|
4790 |
}
|
|
|
4791 |
}
|
|
|
4792 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
4793 |
if (lastComparison != 0) {
|
|
|
4794 |
return lastComparison;
|
|
|
4795 |
}
|
|
|
4796 |
if (isSetBillingWarehouseId()) {
|
|
|
4797 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
4798 |
if (lastComparison != 0) {
|
|
|
4799 |
return lastComparison;
|
|
|
4800 |
}
|
|
|
4801 |
}
|
| 2820 |
chandransh |
4802 |
return 0;
|
|
|
4803 |
}
|
|
|
4804 |
|
| 3430 |
rajveer |
4805 |
public _Fields fieldForId(int fieldId) {
|
|
|
4806 |
return _Fields.findByThriftId(fieldId);
|
|
|
4807 |
}
|
|
|
4808 |
|
|
|
4809 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4810 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
4811 |
iprot.readStructBegin();
|
|
|
4812 |
while (true)
|
|
|
4813 |
{
|
|
|
4814 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4815 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
4816 |
break;
|
|
|
4817 |
}
|
| 3430 |
rajveer |
4818 |
switch (field.id) {
|
| 4555 |
mandeep.dh |
4819 |
case 1: // SERIAL_NUMBER
|
|
|
4820 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4821 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
4822 |
} else {
|
|
|
4823 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4824 |
}
|
|
|
4825 |
break;
|
| 4496 |
mandeep.dh |
4826 |
case 2: // TYPE
|
|
|
4827 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4828 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
4829 |
} else {
|
|
|
4830 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4831 |
}
|
|
|
4832 |
break;
|
| 4496 |
mandeep.dh |
4833 |
case 3: // ORDER_ID
|
|
|
4834 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4835 |
this.orderId = iprot.readI64();
|
|
|
4836 |
setOrderIdIsSet(true);
|
| 3430 |
rajveer |
4837 |
} else {
|
|
|
4838 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4839 |
}
|
|
|
4840 |
break;
|
| 5110 |
mandeep.dh |
4841 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
4842 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
4843 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
4844 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
4845 |
} else {
|
|
|
4846 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4847 |
}
|
|
|
4848 |
break;
|
| 5110 |
mandeep.dh |
4849 |
case 5: // QUANTITY
|
|
|
4850 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
4851 |
this.quantity = iprot.readDouble();
|
|
|
4852 |
setQuantityIsSet(true);
|
|
|
4853 |
} else {
|
|
|
4854 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4855 |
}
|
|
|
4856 |
break;
|
|
|
4857 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
4858 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4859 |
this.billingWarehouseId = iprot.readI64();
|
|
|
4860 |
setBillingWarehouseIdIsSet(true);
|
|
|
4861 |
} else {
|
|
|
4862 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4863 |
}
|
|
|
4864 |
break;
|
| 3430 |
rajveer |
4865 |
default:
|
|
|
4866 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
4867 |
}
|
| 3430 |
rajveer |
4868 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
4869 |
}
|
|
|
4870 |
iprot.readStructEnd();
|
|
|
4871 |
validate();
|
|
|
4872 |
}
|
|
|
4873 |
|
| 3430 |
rajveer |
4874 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4875 |
validate();
|
|
|
4876 |
|
|
|
4877 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4555 |
mandeep.dh |
4878 |
if (this.serialNumber != null) {
|
|
|
4879 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
4880 |
oprot.writeString(this.serialNumber);
|
|
|
4881 |
oprot.writeFieldEnd();
|
|
|
4882 |
}
|
| 2820 |
chandransh |
4883 |
if (this.type != null) {
|
|
|
4884 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
4885 |
oprot.writeI32(this.type.getValue());
|
|
|
4886 |
oprot.writeFieldEnd();
|
|
|
4887 |
}
|
| 4496 |
mandeep.dh |
4888 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
4889 |
oprot.writeI64(this.orderId);
|
|
|
4890 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
4891 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
4892 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
4893 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
4894 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
4895 |
oprot.writeDouble(this.quantity);
|
|
|
4896 |
oprot.writeFieldEnd();
|
|
|
4897 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
4898 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
4899 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
4900 |
oprot.writeFieldStop();
|
|
|
4901 |
oprot.writeStructEnd();
|
|
|
4902 |
}
|
|
|
4903 |
|
|
|
4904 |
@Override
|
|
|
4905 |
public String toString() {
|
| 4496 |
mandeep.dh |
4906 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
|
| 2820 |
chandransh |
4907 |
boolean first = true;
|
|
|
4908 |
|
| 4555 |
mandeep.dh |
4909 |
sb.append("serialNumber:");
|
|
|
4910 |
if (this.serialNumber == null) {
|
|
|
4911 |
sb.append("null");
|
|
|
4912 |
} else {
|
|
|
4913 |
sb.append(this.serialNumber);
|
|
|
4914 |
}
|
| 2820 |
chandransh |
4915 |
first = false;
|
|
|
4916 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
4917 |
sb.append("type:");
|
|
|
4918 |
if (this.type == null) {
|
| 2820 |
chandransh |
4919 |
sb.append("null");
|
|
|
4920 |
} else {
|
| 4496 |
mandeep.dh |
4921 |
sb.append(this.type);
|
| 2820 |
chandransh |
4922 |
}
|
|
|
4923 |
first = false;
|
|
|
4924 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
4925 |
sb.append("orderId:");
|
|
|
4926 |
sb.append(this.orderId);
|
| 2820 |
chandransh |
4927 |
first = false;
|
|
|
4928 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
4929 |
sb.append("fulfilmentWarehouseId:");
|
|
|
4930 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
4931 |
first = false;
|
| 5110 |
mandeep.dh |
4932 |
if (!first) sb.append(", ");
|
|
|
4933 |
sb.append("quantity:");
|
|
|
4934 |
sb.append(this.quantity);
|
|
|
4935 |
first = false;
|
|
|
4936 |
if (!first) sb.append(", ");
|
|
|
4937 |
sb.append("billingWarehouseId:");
|
|
|
4938 |
sb.append(this.billingWarehouseId);
|
|
|
4939 |
first = false;
|
| 2820 |
chandransh |
4940 |
sb.append(")");
|
|
|
4941 |
return sb.toString();
|
|
|
4942 |
}
|
|
|
4943 |
|
| 3430 |
rajveer |
4944 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4945 |
// check for required fields
|
|
|
4946 |
}
|
|
|
4947 |
|
| 3430 |
rajveer |
4948 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4949 |
try {
|
|
|
4950 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4951 |
} catch (org.apache.thrift.TException te) {
|
|
|
4952 |
throw new java.io.IOException(te);
|
|
|
4953 |
}
|
|
|
4954 |
}
|
|
|
4955 |
|
|
|
4956 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4957 |
try {
|
|
|
4958 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4959 |
} catch (org.apache.thrift.TException te) {
|
|
|
4960 |
throw new java.io.IOException(te);
|
|
|
4961 |
}
|
|
|
4962 |
}
|
|
|
4963 |
|
| 2820 |
chandransh |
4964 |
}
|
|
|
4965 |
|
| 4496 |
mandeep.dh |
4966 |
public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4967 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
|
| 2820 |
chandransh |
4968 |
|
| 4555 |
mandeep.dh |
4969 |
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 |
4970 |
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 |
4971 |
|
| 4555 |
mandeep.dh |
4972 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
4973 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
4974 |
|
|
|
4975 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4976 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
4977 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
4978 |
WEX((short)1, "wex");
|
|
|
4979 |
|
|
|
4980 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4981 |
|
|
|
4982 |
static {
|
|
|
4983 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4984 |
byName.put(field.getFieldName(), field);
|
|
|
4985 |
}
|
|
|
4986 |
}
|
|
|
4987 |
|
|
|
4988 |
/**
|
|
|
4989 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4990 |
*/
|
|
|
4991 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4992 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
4993 |
case 0: // SUCCESS
|
|
|
4994 |
return SUCCESS;
|
| 3430 |
rajveer |
4995 |
case 1: // WEX
|
|
|
4996 |
return WEX;
|
|
|
4997 |
default:
|
|
|
4998 |
return null;
|
|
|
4999 |
}
|
| 2820 |
chandransh |
5000 |
}
|
|
|
5001 |
|
|
|
5002 |
/**
|
|
|
5003 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5004 |
* if it is not found.
|
|
|
5005 |
*/
|
|
|
5006 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5007 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5008 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5009 |
return fields;
|
|
|
5010 |
}
|
|
|
5011 |
|
|
|
5012 |
/**
|
|
|
5013 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5014 |
*/
|
|
|
5015 |
public static _Fields findByName(String name) {
|
|
|
5016 |
return byName.get(name);
|
|
|
5017 |
}
|
|
|
5018 |
|
|
|
5019 |
private final short _thriftId;
|
|
|
5020 |
private final String _fieldName;
|
|
|
5021 |
|
|
|
5022 |
_Fields(short thriftId, String fieldName) {
|
|
|
5023 |
_thriftId = thriftId;
|
|
|
5024 |
_fieldName = fieldName;
|
|
|
5025 |
}
|
|
|
5026 |
|
|
|
5027 |
public short getThriftFieldId() {
|
|
|
5028 |
return _thriftId;
|
|
|
5029 |
}
|
|
|
5030 |
|
|
|
5031 |
public String getFieldName() {
|
|
|
5032 |
return _fieldName;
|
|
|
5033 |
}
|
|
|
5034 |
}
|
|
|
5035 |
|
|
|
5036 |
// isset id assignments
|
|
|
5037 |
|
| 3430 |
rajveer |
5038 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5039 |
static {
|
| 3430 |
rajveer |
5040 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
5041 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
5042 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
5043 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5044 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5045 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5046 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
5047 |
}
|
|
|
5048 |
|
| 4496 |
mandeep.dh |
5049 |
public scanSerializedItemForOrder_result() {
|
| 2820 |
chandransh |
5050 |
}
|
|
|
5051 |
|
| 4496 |
mandeep.dh |
5052 |
public scanSerializedItemForOrder_result(
|
| 4555 |
mandeep.dh |
5053 |
InventoryItem success,
|
| 2820 |
chandransh |
5054 |
WarehouseServiceException wex)
|
|
|
5055 |
{
|
|
|
5056 |
this();
|
| 4496 |
mandeep.dh |
5057 |
this.success = success;
|
| 2820 |
chandransh |
5058 |
this.wex = wex;
|
|
|
5059 |
}
|
|
|
5060 |
|
|
|
5061 |
/**
|
|
|
5062 |
* Performs a deep copy on <i>other</i>.
|
|
|
5063 |
*/
|
| 4496 |
mandeep.dh |
5064 |
public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
|
| 4555 |
mandeep.dh |
5065 |
if (other.isSetSuccess()) {
|
|
|
5066 |
this.success = new InventoryItem(other.success);
|
|
|
5067 |
}
|
| 2820 |
chandransh |
5068 |
if (other.isSetWex()) {
|
|
|
5069 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
5070 |
}
|
|
|
5071 |
}
|
|
|
5072 |
|
| 4496 |
mandeep.dh |
5073 |
public scanSerializedItemForOrder_result deepCopy() {
|
|
|
5074 |
return new scanSerializedItemForOrder_result(this);
|
| 2820 |
chandransh |
5075 |
}
|
|
|
5076 |
|
| 3430 |
rajveer |
5077 |
@Override
|
|
|
5078 |
public void clear() {
|
| 4555 |
mandeep.dh |
5079 |
this.success = null;
|
| 3430 |
rajveer |
5080 |
this.wex = null;
|
| 2820 |
chandransh |
5081 |
}
|
|
|
5082 |
|
| 4555 |
mandeep.dh |
5083 |
public InventoryItem getSuccess() {
|
| 4496 |
mandeep.dh |
5084 |
return this.success;
|
|
|
5085 |
}
|
|
|
5086 |
|
| 4555 |
mandeep.dh |
5087 |
public void setSuccess(InventoryItem success) {
|
| 4496 |
mandeep.dh |
5088 |
this.success = success;
|
|
|
5089 |
}
|
|
|
5090 |
|
|
|
5091 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
5092 |
this.success = null;
|
| 4496 |
mandeep.dh |
5093 |
}
|
|
|
5094 |
|
|
|
5095 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
5096 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
5097 |
return this.success != null;
|
| 4496 |
mandeep.dh |
5098 |
}
|
|
|
5099 |
|
|
|
5100 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
5101 |
if (!value) {
|
|
|
5102 |
this.success = null;
|
|
|
5103 |
}
|
| 4496 |
mandeep.dh |
5104 |
}
|
|
|
5105 |
|
| 2820 |
chandransh |
5106 |
public WarehouseServiceException getWex() {
|
|
|
5107 |
return this.wex;
|
|
|
5108 |
}
|
|
|
5109 |
|
| 3430 |
rajveer |
5110 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
5111 |
this.wex = wex;
|
|
|
5112 |
}
|
|
|
5113 |
|
|
|
5114 |
public void unsetWex() {
|
|
|
5115 |
this.wex = null;
|
|
|
5116 |
}
|
|
|
5117 |
|
| 3430 |
rajveer |
5118 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
5119 |
public boolean isSetWex() {
|
|
|
5120 |
return this.wex != null;
|
|
|
5121 |
}
|
|
|
5122 |
|
|
|
5123 |
public void setWexIsSet(boolean value) {
|
|
|
5124 |
if (!value) {
|
|
|
5125 |
this.wex = null;
|
|
|
5126 |
}
|
|
|
5127 |
}
|
|
|
5128 |
|
|
|
5129 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5130 |
switch (field) {
|
| 4496 |
mandeep.dh |
5131 |
case SUCCESS:
|
|
|
5132 |
if (value == null) {
|
|
|
5133 |
unsetSuccess();
|
|
|
5134 |
} else {
|
| 4555 |
mandeep.dh |
5135 |
setSuccess((InventoryItem)value);
|
| 4496 |
mandeep.dh |
5136 |
}
|
|
|
5137 |
break;
|
|
|
5138 |
|
| 2820 |
chandransh |
5139 |
case WEX:
|
|
|
5140 |
if (value == null) {
|
|
|
5141 |
unsetWex();
|
|
|
5142 |
} else {
|
|
|
5143 |
setWex((WarehouseServiceException)value);
|
|
|
5144 |
}
|
|
|
5145 |
break;
|
|
|
5146 |
|
|
|
5147 |
}
|
|
|
5148 |
}
|
|
|
5149 |
|
|
|
5150 |
public Object getFieldValue(_Fields field) {
|
|
|
5151 |
switch (field) {
|
| 4496 |
mandeep.dh |
5152 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
5153 |
return getSuccess();
|
| 4496 |
mandeep.dh |
5154 |
|
| 2820 |
chandransh |
5155 |
case WEX:
|
|
|
5156 |
return getWex();
|
|
|
5157 |
|
|
|
5158 |
}
|
|
|
5159 |
throw new IllegalStateException();
|
|
|
5160 |
}
|
|
|
5161 |
|
| 3430 |
rajveer |
5162 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5163 |
public boolean isSet(_Fields field) {
|
|
|
5164 |
if (field == null) {
|
|
|
5165 |
throw new IllegalArgumentException();
|
|
|
5166 |
}
|
| 2820 |
chandransh |
5167 |
|
|
|
5168 |
switch (field) {
|
| 4496 |
mandeep.dh |
5169 |
case SUCCESS:
|
|
|
5170 |
return isSetSuccess();
|
| 2820 |
chandransh |
5171 |
case WEX:
|
|
|
5172 |
return isSetWex();
|
|
|
5173 |
}
|
|
|
5174 |
throw new IllegalStateException();
|
|
|
5175 |
}
|
|
|
5176 |
|
|
|
5177 |
@Override
|
|
|
5178 |
public boolean equals(Object that) {
|
|
|
5179 |
if (that == null)
|
|
|
5180 |
return false;
|
| 4496 |
mandeep.dh |
5181 |
if (that instanceof scanSerializedItemForOrder_result)
|
|
|
5182 |
return this.equals((scanSerializedItemForOrder_result)that);
|
| 2820 |
chandransh |
5183 |
return false;
|
|
|
5184 |
}
|
|
|
5185 |
|
| 4496 |
mandeep.dh |
5186 |
public boolean equals(scanSerializedItemForOrder_result that) {
|
| 2820 |
chandransh |
5187 |
if (that == null)
|
|
|
5188 |
return false;
|
|
|
5189 |
|
| 4555 |
mandeep.dh |
5190 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5191 |
boolean that_present_success = true && that.isSetSuccess();
|
| 4496 |
mandeep.dh |
5192 |
if (this_present_success || that_present_success) {
|
|
|
5193 |
if (!(this_present_success && that_present_success))
|
|
|
5194 |
return false;
|
| 4555 |
mandeep.dh |
5195 |
if (!this.success.equals(that.success))
|
| 4496 |
mandeep.dh |
5196 |
return false;
|
|
|
5197 |
}
|
|
|
5198 |
|
| 2820 |
chandransh |
5199 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
5200 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
5201 |
if (this_present_wex || that_present_wex) {
|
|
|
5202 |
if (!(this_present_wex && that_present_wex))
|
|
|
5203 |
return false;
|
|
|
5204 |
if (!this.wex.equals(that.wex))
|
|
|
5205 |
return false;
|
|
|
5206 |
}
|
|
|
5207 |
|
|
|
5208 |
return true;
|
|
|
5209 |
}
|
|
|
5210 |
|
|
|
5211 |
@Override
|
|
|
5212 |
public int hashCode() {
|
|
|
5213 |
return 0;
|
|
|
5214 |
}
|
|
|
5215 |
|
| 4496 |
mandeep.dh |
5216 |
public int compareTo(scanSerializedItemForOrder_result other) {
|
| 2820 |
chandransh |
5217 |
if (!getClass().equals(other.getClass())) {
|
|
|
5218 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5219 |
}
|
|
|
5220 |
|
|
|
5221 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5222 |
scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
|
| 2820 |
chandransh |
5223 |
|
| 4496 |
mandeep.dh |
5224 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
5225 |
if (lastComparison != 0) {
|
|
|
5226 |
return lastComparison;
|
|
|
5227 |
}
|
|
|
5228 |
if (isSetSuccess()) {
|
|
|
5229 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5230 |
if (lastComparison != 0) {
|
|
|
5231 |
return lastComparison;
|
|
|
5232 |
}
|
|
|
5233 |
}
|
| 3430 |
rajveer |
5234 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
5235 |
if (lastComparison != 0) {
|
|
|
5236 |
return lastComparison;
|
|
|
5237 |
}
|
| 3430 |
rajveer |
5238 |
if (isSetWex()) {
|
|
|
5239 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
5240 |
if (lastComparison != 0) {
|
|
|
5241 |
return lastComparison;
|
|
|
5242 |
}
|
| 2820 |
chandransh |
5243 |
}
|
|
|
5244 |
return 0;
|
|
|
5245 |
}
|
|
|
5246 |
|
| 3430 |
rajveer |
5247 |
public _Fields fieldForId(int fieldId) {
|
|
|
5248 |
return _Fields.findByThriftId(fieldId);
|
|
|
5249 |
}
|
|
|
5250 |
|
|
|
5251 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5252 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5253 |
iprot.readStructBegin();
|
|
|
5254 |
while (true)
|
|
|
5255 |
{
|
|
|
5256 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5257 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5258 |
break;
|
|
|
5259 |
}
|
| 3430 |
rajveer |
5260 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
5261 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
5262 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5263 |
this.success = new InventoryItem();
|
|
|
5264 |
this.success.read(iprot);
|
| 4496 |
mandeep.dh |
5265 |
} else {
|
|
|
5266 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5267 |
}
|
|
|
5268 |
break;
|
| 3430 |
rajveer |
5269 |
case 1: // WEX
|
|
|
5270 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5271 |
this.wex = new WarehouseServiceException();
|
|
|
5272 |
this.wex.read(iprot);
|
|
|
5273 |
} else {
|
|
|
5274 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5275 |
}
|
|
|
5276 |
break;
|
|
|
5277 |
default:
|
|
|
5278 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5279 |
}
|
| 3430 |
rajveer |
5280 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5281 |
}
|
|
|
5282 |
iprot.readStructEnd();
|
|
|
5283 |
validate();
|
|
|
5284 |
}
|
|
|
5285 |
|
| 3430 |
rajveer |
5286 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5287 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5288 |
|
| 4496 |
mandeep.dh |
5289 |
if (this.isSetSuccess()) {
|
|
|
5290 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
5291 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
5292 |
oprot.writeFieldEnd();
|
|
|
5293 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
5294 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
5295 |
this.wex.write(oprot);
|
|
|
5296 |
oprot.writeFieldEnd();
|
|
|
5297 |
}
|
|
|
5298 |
oprot.writeFieldStop();
|
|
|
5299 |
oprot.writeStructEnd();
|
|
|
5300 |
}
|
|
|
5301 |
|
|
|
5302 |
@Override
|
|
|
5303 |
public String toString() {
|
| 4496 |
mandeep.dh |
5304 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
|
| 2820 |
chandransh |
5305 |
boolean first = true;
|
|
|
5306 |
|
| 4496 |
mandeep.dh |
5307 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
5308 |
if (this.success == null) {
|
|
|
5309 |
sb.append("null");
|
|
|
5310 |
} else {
|
|
|
5311 |
sb.append(this.success);
|
|
|
5312 |
}
|
| 4496 |
mandeep.dh |
5313 |
first = false;
|
|
|
5314 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
5315 |
sb.append("wex:");
|
|
|
5316 |
if (this.wex == null) {
|
|
|
5317 |
sb.append("null");
|
|
|
5318 |
} else {
|
|
|
5319 |
sb.append(this.wex);
|
|
|
5320 |
}
|
|
|
5321 |
first = false;
|
|
|
5322 |
sb.append(")");
|
|
|
5323 |
return sb.toString();
|
|
|
5324 |
}
|
|
|
5325 |
|
| 3430 |
rajveer |
5326 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5327 |
// check for required fields
|
|
|
5328 |
}
|
|
|
5329 |
|
| 3430 |
rajveer |
5330 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5331 |
try {
|
|
|
5332 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5333 |
} catch (org.apache.thrift.TException te) {
|
|
|
5334 |
throw new java.io.IOException(te);
|
|
|
5335 |
}
|
|
|
5336 |
}
|
|
|
5337 |
|
|
|
5338 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5339 |
try {
|
|
|
5340 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5341 |
} catch (org.apache.thrift.TException te) {
|
|
|
5342 |
throw new java.io.IOException(te);
|
|
|
5343 |
}
|
|
|
5344 |
}
|
|
|
5345 |
|
| 2820 |
chandransh |
5346 |
}
|
|
|
5347 |
|
| 4496 |
mandeep.dh |
5348 |
public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5349 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
|
| 2820 |
chandransh |
5350 |
|
| 5361 |
mandeep.dh |
5351 |
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 |
5352 |
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);
|
|
|
5353 |
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);
|
|
|
5354 |
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 |
5355 |
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 |
5356 |
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 |
5357 |
|
| 5361 |
mandeep.dh |
5358 |
private InventoryItem inventoryItem; // required
|
| 3430 |
rajveer |
5359 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
5360 |
private long quantity; // required
|
|
|
5361 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
5362 |
private long fulfilmentWarehouseId; // required
|
| 5361 |
mandeep.dh |
5363 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
5364 |
|
|
|
5365 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5366 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
5367 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 2820 |
chandransh |
5368 |
/**
|
|
|
5369 |
*
|
|
|
5370 |
* @see ScanType
|
|
|
5371 |
*/
|
| 4496 |
mandeep.dh |
5372 |
TYPE((short)2, "type"),
|
|
|
5373 |
QUANTITY((short)3, "quantity"),
|
|
|
5374 |
ORDER_ID((short)4, "orderId"),
|
| 5361 |
mandeep.dh |
5375 |
FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
|
|
|
5376 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
5377 |
|
|
|
5378 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5379 |
|
|
|
5380 |
static {
|
|
|
5381 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5382 |
byName.put(field.getFieldName(), field);
|
|
|
5383 |
}
|
|
|
5384 |
}
|
|
|
5385 |
|
|
|
5386 |
/**
|
|
|
5387 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5388 |
*/
|
|
|
5389 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5390 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
5391 |
case 1: // INVENTORY_ITEM
|
|
|
5392 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
5393 |
case 2: // TYPE
|
| 3430 |
rajveer |
5394 |
return TYPE;
|
| 4496 |
mandeep.dh |
5395 |
case 3: // QUANTITY
|
|
|
5396 |
return QUANTITY;
|
|
|
5397 |
case 4: // ORDER_ID
|
|
|
5398 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
5399 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
|
|
5400 |
return FULFILMENT_WAREHOUSE_ID;
|
| 5361 |
mandeep.dh |
5401 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
5402 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
5403 |
default:
|
|
|
5404 |
return null;
|
|
|
5405 |
}
|
| 2820 |
chandransh |
5406 |
}
|
|
|
5407 |
|
|
|
5408 |
/**
|
|
|
5409 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5410 |
* if it is not found.
|
|
|
5411 |
*/
|
|
|
5412 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5413 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5414 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5415 |
return fields;
|
|
|
5416 |
}
|
|
|
5417 |
|
|
|
5418 |
/**
|
|
|
5419 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5420 |
*/
|
|
|
5421 |
public static _Fields findByName(String name) {
|
|
|
5422 |
return byName.get(name);
|
|
|
5423 |
}
|
|
|
5424 |
|
|
|
5425 |
private final short _thriftId;
|
|
|
5426 |
private final String _fieldName;
|
|
|
5427 |
|
|
|
5428 |
_Fields(short thriftId, String fieldName) {
|
|
|
5429 |
_thriftId = thriftId;
|
|
|
5430 |
_fieldName = fieldName;
|
|
|
5431 |
}
|
|
|
5432 |
|
|
|
5433 |
public short getThriftFieldId() {
|
|
|
5434 |
return _thriftId;
|
|
|
5435 |
}
|
|
|
5436 |
|
|
|
5437 |
public String getFieldName() {
|
|
|
5438 |
return _fieldName;
|
|
|
5439 |
}
|
|
|
5440 |
}
|
|
|
5441 |
|
|
|
5442 |
// isset id assignments
|
| 5361 |
mandeep.dh |
5443 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
5444 |
private static final int __ORDERID_ISSET_ID = 1;
|
|
|
5445 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
|
|
|
5446 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
| 4496 |
mandeep.dh |
5447 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
5448 |
|
| 3430 |
rajveer |
5449 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5450 |
static {
|
| 3430 |
rajveer |
5451 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
5452 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5453 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
5454 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5455 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
5456 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5457 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5458 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5459 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
5460 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
5461 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
5462 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5463 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
5464 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5465 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
5466 |
}
|
|
|
5467 |
|
| 4496 |
mandeep.dh |
5468 |
public scanForOrder_args() {
|
| 2820 |
chandransh |
5469 |
}
|
|
|
5470 |
|
| 4496 |
mandeep.dh |
5471 |
public scanForOrder_args(
|
| 5361 |
mandeep.dh |
5472 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
5473 |
ScanType type,
|
|
|
5474 |
long quantity,
|
|
|
5475 |
long orderId,
|
| 5361 |
mandeep.dh |
5476 |
long fulfilmentWarehouseId,
|
|
|
5477 |
long billingWarehouseId)
|
| 2820 |
chandransh |
5478 |
{
|
|
|
5479 |
this();
|
| 5361 |
mandeep.dh |
5480 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
5481 |
this.type = type;
|
| 4496 |
mandeep.dh |
5482 |
this.quantity = quantity;
|
|
|
5483 |
setQuantityIsSet(true);
|
|
|
5484 |
this.orderId = orderId;
|
|
|
5485 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
5486 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
5487 |
setFulfilmentWarehouseIdIsSet(true);
|
| 5361 |
mandeep.dh |
5488 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
5489 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
5490 |
}
|
|
|
5491 |
|
|
|
5492 |
/**
|
|
|
5493 |
* Performs a deep copy on <i>other</i>.
|
|
|
5494 |
*/
|
| 4496 |
mandeep.dh |
5495 |
public scanForOrder_args(scanForOrder_args other) {
|
|
|
5496 |
__isset_bit_vector.clear();
|
|
|
5497 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
5498 |
if (other.isSetInventoryItem()) {
|
|
|
5499 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
5500 |
}
|
| 2820 |
chandransh |
5501 |
if (other.isSetType()) {
|
|
|
5502 |
this.type = other.type;
|
|
|
5503 |
}
|
| 4496 |
mandeep.dh |
5504 |
this.quantity = other.quantity;
|
|
|
5505 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
5506 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
5507 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
5508 |
}
|
|
|
5509 |
|
| 4496 |
mandeep.dh |
5510 |
public scanForOrder_args deepCopy() {
|
|
|
5511 |
return new scanForOrder_args(this);
|
| 2820 |
chandransh |
5512 |
}
|
|
|
5513 |
|
| 3430 |
rajveer |
5514 |
@Override
|
|
|
5515 |
public void clear() {
|
| 5361 |
mandeep.dh |
5516 |
this.inventoryItem = null;
|
| 3430 |
rajveer |
5517 |
this.type = null;
|
| 4496 |
mandeep.dh |
5518 |
setQuantityIsSet(false);
|
|
|
5519 |
this.quantity = 0;
|
|
|
5520 |
setOrderIdIsSet(false);
|
|
|
5521 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
5522 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
5523 |
this.fulfilmentWarehouseId = 0;
|
| 5361 |
mandeep.dh |
5524 |
setBillingWarehouseIdIsSet(false);
|
|
|
5525 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
5526 |
}
|
|
|
5527 |
|
| 5361 |
mandeep.dh |
5528 |
public InventoryItem getInventoryItem() {
|
|
|
5529 |
return this.inventoryItem;
|
| 2820 |
chandransh |
5530 |
}
|
|
|
5531 |
|
| 5361 |
mandeep.dh |
5532 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
5533 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
5534 |
}
|
|
|
5535 |
|
| 5361 |
mandeep.dh |
5536 |
public void unsetInventoryItem() {
|
|
|
5537 |
this.inventoryItem = null;
|
| 2820 |
chandransh |
5538 |
}
|
|
|
5539 |
|
| 5361 |
mandeep.dh |
5540 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
5541 |
public boolean isSetInventoryItem() {
|
|
|
5542 |
return this.inventoryItem != null;
|
| 2820 |
chandransh |
5543 |
}
|
|
|
5544 |
|
| 5361 |
mandeep.dh |
5545 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
5546 |
if (!value) {
|
|
|
5547 |
this.inventoryItem = null;
|
|
|
5548 |
}
|
| 2820 |
chandransh |
5549 |
}
|
|
|
5550 |
|
|
|
5551 |
/**
|
|
|
5552 |
*
|
|
|
5553 |
* @see ScanType
|
|
|
5554 |
*/
|
|
|
5555 |
public ScanType getType() {
|
|
|
5556 |
return this.type;
|
|
|
5557 |
}
|
|
|
5558 |
|
|
|
5559 |
/**
|
|
|
5560 |
*
|
|
|
5561 |
* @see ScanType
|
|
|
5562 |
*/
|
| 3430 |
rajveer |
5563 |
public void setType(ScanType type) {
|
| 2820 |
chandransh |
5564 |
this.type = type;
|
|
|
5565 |
}
|
|
|
5566 |
|
|
|
5567 |
public void unsetType() {
|
|
|
5568 |
this.type = null;
|
|
|
5569 |
}
|
|
|
5570 |
|
| 3430 |
rajveer |
5571 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
5572 |
public boolean isSetType() {
|
|
|
5573 |
return this.type != null;
|
|
|
5574 |
}
|
|
|
5575 |
|
|
|
5576 |
public void setTypeIsSet(boolean value) {
|
|
|
5577 |
if (!value) {
|
|
|
5578 |
this.type = null;
|
|
|
5579 |
}
|
|
|
5580 |
}
|
|
|
5581 |
|
| 4496 |
mandeep.dh |
5582 |
public long getQuantity() {
|
|
|
5583 |
return this.quantity;
|
|
|
5584 |
}
|
|
|
5585 |
|
|
|
5586 |
public void setQuantity(long quantity) {
|
|
|
5587 |
this.quantity = quantity;
|
|
|
5588 |
setQuantityIsSet(true);
|
|
|
5589 |
}
|
|
|
5590 |
|
|
|
5591 |
public void unsetQuantity() {
|
|
|
5592 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
5593 |
}
|
|
|
5594 |
|
|
|
5595 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
5596 |
public boolean isSetQuantity() {
|
|
|
5597 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
5598 |
}
|
|
|
5599 |
|
|
|
5600 |
public void setQuantityIsSet(boolean value) {
|
|
|
5601 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
5602 |
}
|
|
|
5603 |
|
|
|
5604 |
public long getOrderId() {
|
|
|
5605 |
return this.orderId;
|
|
|
5606 |
}
|
|
|
5607 |
|
|
|
5608 |
public void setOrderId(long orderId) {
|
|
|
5609 |
this.orderId = orderId;
|
|
|
5610 |
setOrderIdIsSet(true);
|
|
|
5611 |
}
|
|
|
5612 |
|
|
|
5613 |
public void unsetOrderId() {
|
|
|
5614 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
5615 |
}
|
|
|
5616 |
|
|
|
5617 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
5618 |
public boolean isSetOrderId() {
|
|
|
5619 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
5620 |
}
|
|
|
5621 |
|
|
|
5622 |
public void setOrderIdIsSet(boolean value) {
|
|
|
5623 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
5624 |
}
|
|
|
5625 |
|
| 5110 |
mandeep.dh |
5626 |
public long getFulfilmentWarehouseId() {
|
|
|
5627 |
return this.fulfilmentWarehouseId;
|
| 4496 |
mandeep.dh |
5628 |
}
|
|
|
5629 |
|
| 5110 |
mandeep.dh |
5630 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
5631 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
5632 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
5633 |
}
|
|
|
5634 |
|
| 5110 |
mandeep.dh |
5635 |
public void unsetFulfilmentWarehouseId() {
|
|
|
5636 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
5637 |
}
|
|
|
5638 |
|
| 5110 |
mandeep.dh |
5639 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5640 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
5641 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
5642 |
}
|
|
|
5643 |
|
| 5110 |
mandeep.dh |
5644 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
5645 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
5646 |
}
|
|
|
5647 |
|
| 5361 |
mandeep.dh |
5648 |
public long getBillingWarehouseId() {
|
|
|
5649 |
return this.billingWarehouseId;
|
|
|
5650 |
}
|
|
|
5651 |
|
|
|
5652 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
5653 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
5654 |
setBillingWarehouseIdIsSet(true);
|
|
|
5655 |
}
|
|
|
5656 |
|
|
|
5657 |
public void unsetBillingWarehouseId() {
|
|
|
5658 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5659 |
}
|
|
|
5660 |
|
|
|
5661 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5662 |
public boolean isSetBillingWarehouseId() {
|
|
|
5663 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5664 |
}
|
|
|
5665 |
|
|
|
5666 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
5667 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
5668 |
}
|
|
|
5669 |
|
| 2820 |
chandransh |
5670 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5671 |
switch (field) {
|
| 5361 |
mandeep.dh |
5672 |
case INVENTORY_ITEM:
|
| 2820 |
chandransh |
5673 |
if (value == null) {
|
| 5361 |
mandeep.dh |
5674 |
unsetInventoryItem();
|
| 2820 |
chandransh |
5675 |
} else {
|
| 5361 |
mandeep.dh |
5676 |
setInventoryItem((InventoryItem)value);
|
| 2820 |
chandransh |
5677 |
}
|
|
|
5678 |
break;
|
|
|
5679 |
|
| 4496 |
mandeep.dh |
5680 |
case TYPE:
|
| 2820 |
chandransh |
5681 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5682 |
unsetType();
|
| 2820 |
chandransh |
5683 |
} else {
|
| 4496 |
mandeep.dh |
5684 |
setType((ScanType)value);
|
| 2820 |
chandransh |
5685 |
}
|
|
|
5686 |
break;
|
|
|
5687 |
|
| 4496 |
mandeep.dh |
5688 |
case QUANTITY:
|
| 2820 |
chandransh |
5689 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5690 |
unsetQuantity();
|
| 2820 |
chandransh |
5691 |
} else {
|
| 4496 |
mandeep.dh |
5692 |
setQuantity((Long)value);
|
| 2820 |
chandransh |
5693 |
}
|
|
|
5694 |
break;
|
|
|
5695 |
|
| 4496 |
mandeep.dh |
5696 |
case ORDER_ID:
|
|
|
5697 |
if (value == null) {
|
|
|
5698 |
unsetOrderId();
|
|
|
5699 |
} else {
|
|
|
5700 |
setOrderId((Long)value);
|
|
|
5701 |
}
|
|
|
5702 |
break;
|
|
|
5703 |
|
| 5110 |
mandeep.dh |
5704 |
case FULFILMENT_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
5705 |
if (value == null) {
|
| 5110 |
mandeep.dh |
5706 |
unsetFulfilmentWarehouseId();
|
| 4496 |
mandeep.dh |
5707 |
} else {
|
| 5110 |
mandeep.dh |
5708 |
setFulfilmentWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
5709 |
}
|
|
|
5710 |
break;
|
|
|
5711 |
|
| 5361 |
mandeep.dh |
5712 |
case BILLING_WAREHOUSE_ID:
|
|
|
5713 |
if (value == null) {
|
|
|
5714 |
unsetBillingWarehouseId();
|
|
|
5715 |
} else {
|
|
|
5716 |
setBillingWarehouseId((Long)value);
|
|
|
5717 |
}
|
|
|
5718 |
break;
|
|
|
5719 |
|
| 2820 |
chandransh |
5720 |
}
|
|
|
5721 |
}
|
|
|
5722 |
|
|
|
5723 |
public Object getFieldValue(_Fields field) {
|
|
|
5724 |
switch (field) {
|
| 5361 |
mandeep.dh |
5725 |
case INVENTORY_ITEM:
|
|
|
5726 |
return getInventoryItem();
|
| 2820 |
chandransh |
5727 |
|
|
|
5728 |
case TYPE:
|
|
|
5729 |
return getType();
|
|
|
5730 |
|
| 4496 |
mandeep.dh |
5731 |
case QUANTITY:
|
|
|
5732 |
return Long.valueOf(getQuantity());
|
|
|
5733 |
|
|
|
5734 |
case ORDER_ID:
|
|
|
5735 |
return Long.valueOf(getOrderId());
|
|
|
5736 |
|
| 5110 |
mandeep.dh |
5737 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5738 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
5739 |
|
| 5361 |
mandeep.dh |
5740 |
case BILLING_WAREHOUSE_ID:
|
|
|
5741 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
5742 |
|
| 2820 |
chandransh |
5743 |
}
|
|
|
5744 |
throw new IllegalStateException();
|
|
|
5745 |
}
|
|
|
5746 |
|
| 3430 |
rajveer |
5747 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5748 |
public boolean isSet(_Fields field) {
|
|
|
5749 |
if (field == null) {
|
|
|
5750 |
throw new IllegalArgumentException();
|
|
|
5751 |
}
|
| 2820 |
chandransh |
5752 |
|
|
|
5753 |
switch (field) {
|
| 5361 |
mandeep.dh |
5754 |
case INVENTORY_ITEM:
|
|
|
5755 |
return isSetInventoryItem();
|
| 2820 |
chandransh |
5756 |
case TYPE:
|
|
|
5757 |
return isSetType();
|
| 4496 |
mandeep.dh |
5758 |
case QUANTITY:
|
|
|
5759 |
return isSetQuantity();
|
|
|
5760 |
case ORDER_ID:
|
|
|
5761 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
5762 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5763 |
return isSetFulfilmentWarehouseId();
|
| 5361 |
mandeep.dh |
5764 |
case BILLING_WAREHOUSE_ID:
|
|
|
5765 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
5766 |
}
|
|
|
5767 |
throw new IllegalStateException();
|
|
|
5768 |
}
|
|
|
5769 |
|
|
|
5770 |
@Override
|
|
|
5771 |
public boolean equals(Object that) {
|
|
|
5772 |
if (that == null)
|
|
|
5773 |
return false;
|
| 4496 |
mandeep.dh |
5774 |
if (that instanceof scanForOrder_args)
|
|
|
5775 |
return this.equals((scanForOrder_args)that);
|
| 2820 |
chandransh |
5776 |
return false;
|
|
|
5777 |
}
|
|
|
5778 |
|
| 4496 |
mandeep.dh |
5779 |
public boolean equals(scanForOrder_args that) {
|
| 2820 |
chandransh |
5780 |
if (that == null)
|
|
|
5781 |
return false;
|
|
|
5782 |
|
| 5361 |
mandeep.dh |
5783 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
5784 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
5785 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
5786 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 2820 |
chandransh |
5787 |
return false;
|
| 5361 |
mandeep.dh |
5788 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 2820 |
chandransh |
5789 |
return false;
|
|
|
5790 |
}
|
|
|
5791 |
|
|
|
5792 |
boolean this_present_type = true && this.isSetType();
|
|
|
5793 |
boolean that_present_type = true && that.isSetType();
|
|
|
5794 |
if (this_present_type || that_present_type) {
|
|
|
5795 |
if (!(this_present_type && that_present_type))
|
|
|
5796 |
return false;
|
|
|
5797 |
if (!this.type.equals(that.type))
|
|
|
5798 |
return false;
|
|
|
5799 |
}
|
|
|
5800 |
|
| 4496 |
mandeep.dh |
5801 |
boolean this_present_quantity = true;
|
|
|
5802 |
boolean that_present_quantity = true;
|
|
|
5803 |
if (this_present_quantity || that_present_quantity) {
|
|
|
5804 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
5805 |
return false;
|
|
|
5806 |
if (this.quantity != that.quantity)
|
|
|
5807 |
return false;
|
|
|
5808 |
}
|
|
|
5809 |
|
|
|
5810 |
boolean this_present_orderId = true;
|
|
|
5811 |
boolean that_present_orderId = true;
|
|
|
5812 |
if (this_present_orderId || that_present_orderId) {
|
|
|
5813 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
5814 |
return false;
|
|
|
5815 |
if (this.orderId != that.orderId)
|
|
|
5816 |
return false;
|
|
|
5817 |
}
|
|
|
5818 |
|
| 5110 |
mandeep.dh |
5819 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
5820 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
5821 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
5822 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 4496 |
mandeep.dh |
5823 |
return false;
|
| 5110 |
mandeep.dh |
5824 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 4496 |
mandeep.dh |
5825 |
return false;
|
|
|
5826 |
}
|
|
|
5827 |
|
| 5361 |
mandeep.dh |
5828 |
boolean this_present_billingWarehouseId = true;
|
|
|
5829 |
boolean that_present_billingWarehouseId = true;
|
|
|
5830 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
5831 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
5832 |
return false;
|
|
|
5833 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
5834 |
return false;
|
|
|
5835 |
}
|
|
|
5836 |
|
| 2820 |
chandransh |
5837 |
return true;
|
|
|
5838 |
}
|
|
|
5839 |
|
|
|
5840 |
@Override
|
|
|
5841 |
public int hashCode() {
|
|
|
5842 |
return 0;
|
|
|
5843 |
}
|
|
|
5844 |
|
| 4496 |
mandeep.dh |
5845 |
public int compareTo(scanForOrder_args other) {
|
| 2820 |
chandransh |
5846 |
if (!getClass().equals(other.getClass())) {
|
|
|
5847 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5848 |
}
|
|
|
5849 |
|
|
|
5850 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5851 |
scanForOrder_args typedOther = (scanForOrder_args)other;
|
| 2820 |
chandransh |
5852 |
|
| 5361 |
mandeep.dh |
5853 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 2820 |
chandransh |
5854 |
if (lastComparison != 0) {
|
|
|
5855 |
return lastComparison;
|
|
|
5856 |
}
|
| 5361 |
mandeep.dh |
5857 |
if (isSetInventoryItem()) {
|
|
|
5858 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
5859 |
if (lastComparison != 0) {
|
|
|
5860 |
return lastComparison;
|
|
|
5861 |
}
|
| 2820 |
chandransh |
5862 |
}
|
| 4496 |
mandeep.dh |
5863 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
5864 |
if (lastComparison != 0) {
|
|
|
5865 |
return lastComparison;
|
|
|
5866 |
}
|
| 4496 |
mandeep.dh |
5867 |
if (isSetType()) {
|
|
|
5868 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
5869 |
if (lastComparison != 0) {
|
|
|
5870 |
return lastComparison;
|
|
|
5871 |
}
|
| 2820 |
chandransh |
5872 |
}
|
| 4496 |
mandeep.dh |
5873 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 2820 |
chandransh |
5874 |
if (lastComparison != 0) {
|
|
|
5875 |
return lastComparison;
|
|
|
5876 |
}
|
| 4496 |
mandeep.dh |
5877 |
if (isSetQuantity()) {
|
|
|
5878 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| 3430 |
rajveer |
5879 |
if (lastComparison != 0) {
|
|
|
5880 |
return lastComparison;
|
|
|
5881 |
}
|
| 2820 |
chandransh |
5882 |
}
|
| 4496 |
mandeep.dh |
5883 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
5884 |
if (lastComparison != 0) {
|
|
|
5885 |
return lastComparison;
|
|
|
5886 |
}
|
|
|
5887 |
if (isSetOrderId()) {
|
|
|
5888 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
5889 |
if (lastComparison != 0) {
|
|
|
5890 |
return lastComparison;
|
|
|
5891 |
}
|
|
|
5892 |
}
|
| 5110 |
mandeep.dh |
5893 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
5894 |
if (lastComparison != 0) {
|
|
|
5895 |
return lastComparison;
|
|
|
5896 |
}
|
| 5110 |
mandeep.dh |
5897 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
5898 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
5899 |
if (lastComparison != 0) {
|
|
|
5900 |
return lastComparison;
|
|
|
5901 |
}
|
|
|
5902 |
}
|
| 5361 |
mandeep.dh |
5903 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
5904 |
if (lastComparison != 0) {
|
|
|
5905 |
return lastComparison;
|
|
|
5906 |
}
|
|
|
5907 |
if (isSetBillingWarehouseId()) {
|
|
|
5908 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
5909 |
if (lastComparison != 0) {
|
|
|
5910 |
return lastComparison;
|
|
|
5911 |
}
|
|
|
5912 |
}
|
| 2820 |
chandransh |
5913 |
return 0;
|
|
|
5914 |
}
|
|
|
5915 |
|
| 3430 |
rajveer |
5916 |
public _Fields fieldForId(int fieldId) {
|
|
|
5917 |
return _Fields.findByThriftId(fieldId);
|
|
|
5918 |
}
|
|
|
5919 |
|
|
|
5920 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5921 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5922 |
iprot.readStructBegin();
|
|
|
5923 |
while (true)
|
|
|
5924 |
{
|
|
|
5925 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5926 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5927 |
break;
|
|
|
5928 |
}
|
| 3430 |
rajveer |
5929 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
5930 |
case 1: // INVENTORY_ITEM
|
|
|
5931 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5932 |
this.inventoryItem = new InventoryItem();
|
|
|
5933 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
5934 |
} else {
|
|
|
5935 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5936 |
}
|
|
|
5937 |
break;
|
| 4496 |
mandeep.dh |
5938 |
case 2: // TYPE
|
|
|
5939 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5940 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
5941 |
} else {
|
|
|
5942 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5943 |
}
|
|
|
5944 |
break;
|
| 4496 |
mandeep.dh |
5945 |
case 3: // QUANTITY
|
|
|
5946 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5947 |
this.quantity = iprot.readI64();
|
|
|
5948 |
setQuantityIsSet(true);
|
| 3430 |
rajveer |
5949 |
} else {
|
|
|
5950 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5951 |
}
|
|
|
5952 |
break;
|
| 4496 |
mandeep.dh |
5953 |
case 4: // ORDER_ID
|
|
|
5954 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5955 |
this.orderId = iprot.readI64();
|
|
|
5956 |
setOrderIdIsSet(true);
|
|
|
5957 |
} else {
|
|
|
5958 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5959 |
}
|
|
|
5960 |
break;
|
| 5110 |
mandeep.dh |
5961 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
5962 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
5963 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
5964 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
5965 |
} else {
|
|
|
5966 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5967 |
}
|
|
|
5968 |
break;
|
| 5361 |
mandeep.dh |
5969 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
5970 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5971 |
this.billingWarehouseId = iprot.readI64();
|
|
|
5972 |
setBillingWarehouseIdIsSet(true);
|
|
|
5973 |
} else {
|
|
|
5974 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5975 |
}
|
|
|
5976 |
break;
|
| 3430 |
rajveer |
5977 |
default:
|
|
|
5978 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5979 |
}
|
| 3430 |
rajveer |
5980 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5981 |
}
|
|
|
5982 |
iprot.readStructEnd();
|
|
|
5983 |
validate();
|
|
|
5984 |
}
|
|
|
5985 |
|
| 3430 |
rajveer |
5986 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5987 |
validate();
|
|
|
5988 |
|
|
|
5989 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
5990 |
if (this.inventoryItem != null) {
|
|
|
5991 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
5992 |
this.inventoryItem.write(oprot);
|
|
|
5993 |
oprot.writeFieldEnd();
|
|
|
5994 |
}
|
| 2820 |
chandransh |
5995 |
if (this.type != null) {
|
|
|
5996 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
5997 |
oprot.writeI32(this.type.getValue());
|
|
|
5998 |
oprot.writeFieldEnd();
|
|
|
5999 |
}
|
| 4496 |
mandeep.dh |
6000 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
6001 |
oprot.writeI64(this.quantity);
|
|
|
6002 |
oprot.writeFieldEnd();
|
|
|
6003 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
6004 |
oprot.writeI64(this.orderId);
|
|
|
6005 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
6006 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
6007 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6008 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
6009 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
6010 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
6011 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
6012 |
oprot.writeFieldStop();
|
|
|
6013 |
oprot.writeStructEnd();
|
|
|
6014 |
}
|
|
|
6015 |
|
|
|
6016 |
@Override
|
|
|
6017 |
public String toString() {
|
| 4496 |
mandeep.dh |
6018 |
StringBuilder sb = new StringBuilder("scanForOrder_args(");
|
| 2820 |
chandransh |
6019 |
boolean first = true;
|
|
|
6020 |
|
| 5361 |
mandeep.dh |
6021 |
sb.append("inventoryItem:");
|
|
|
6022 |
if (this.inventoryItem == null) {
|
|
|
6023 |
sb.append("null");
|
|
|
6024 |
} else {
|
|
|
6025 |
sb.append(this.inventoryItem);
|
|
|
6026 |
}
|
| 2820 |
chandransh |
6027 |
first = false;
|
|
|
6028 |
if (!first) sb.append(", ");
|
|
|
6029 |
sb.append("type:");
|
|
|
6030 |
if (this.type == null) {
|
|
|
6031 |
sb.append("null");
|
|
|
6032 |
} else {
|
|
|
6033 |
sb.append(this.type);
|
|
|
6034 |
}
|
|
|
6035 |
first = false;
|
| 4496 |
mandeep.dh |
6036 |
if (!first) sb.append(", ");
|
|
|
6037 |
sb.append("quantity:");
|
|
|
6038 |
sb.append(this.quantity);
|
|
|
6039 |
first = false;
|
|
|
6040 |
if (!first) sb.append(", ");
|
|
|
6041 |
sb.append("orderId:");
|
|
|
6042 |
sb.append(this.orderId);
|
|
|
6043 |
first = false;
|
|
|
6044 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
6045 |
sb.append("fulfilmentWarehouseId:");
|
|
|
6046 |
sb.append(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6047 |
first = false;
|
| 5361 |
mandeep.dh |
6048 |
if (!first) sb.append(", ");
|
|
|
6049 |
sb.append("billingWarehouseId:");
|
|
|
6050 |
sb.append(this.billingWarehouseId);
|
|
|
6051 |
first = false;
|
| 2820 |
chandransh |
6052 |
sb.append(")");
|
|
|
6053 |
return sb.toString();
|
|
|
6054 |
}
|
|
|
6055 |
|
| 3430 |
rajveer |
6056 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6057 |
// check for required fields
|
|
|
6058 |
}
|
|
|
6059 |
|
| 3430 |
rajveer |
6060 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6061 |
try {
|
|
|
6062 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6063 |
} catch (org.apache.thrift.TException te) {
|
|
|
6064 |
throw new java.io.IOException(te);
|
|
|
6065 |
}
|
|
|
6066 |
}
|
|
|
6067 |
|
|
|
6068 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6069 |
try {
|
| 4496 |
mandeep.dh |
6070 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6071 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
6072 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6073 |
} catch (org.apache.thrift.TException te) {
|
|
|
6074 |
throw new java.io.IOException(te);
|
|
|
6075 |
}
|
|
|
6076 |
}
|
|
|
6077 |
|
| 2820 |
chandransh |
6078 |
}
|
|
|
6079 |
|
| 4496 |
mandeep.dh |
6080 |
public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6081 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
|
| 2820 |
chandransh |
6082 |
|
| 5361 |
mandeep.dh |
6083 |
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 |
6084 |
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 |
6085 |
|
| 5361 |
mandeep.dh |
6086 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
6087 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
6088 |
|
|
|
6089 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6090 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
6091 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
6092 |
WEX((short)1, "wex");
|
|
|
6093 |
|
|
|
6094 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6095 |
|
|
|
6096 |
static {
|
|
|
6097 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6098 |
byName.put(field.getFieldName(), field);
|
|
|
6099 |
}
|
|
|
6100 |
}
|
|
|
6101 |
|
|
|
6102 |
/**
|
|
|
6103 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6104 |
*/
|
|
|
6105 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6106 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
6107 |
case 0: // SUCCESS
|
|
|
6108 |
return SUCCESS;
|
| 3430 |
rajveer |
6109 |
case 1: // WEX
|
|
|
6110 |
return WEX;
|
|
|
6111 |
default:
|
|
|
6112 |
return null;
|
|
|
6113 |
}
|
| 2820 |
chandransh |
6114 |
}
|
|
|
6115 |
|
|
|
6116 |
/**
|
|
|
6117 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6118 |
* if it is not found.
|
|
|
6119 |
*/
|
|
|
6120 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6121 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6122 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6123 |
return fields;
|
|
|
6124 |
}
|
|
|
6125 |
|
|
|
6126 |
/**
|
|
|
6127 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6128 |
*/
|
|
|
6129 |
public static _Fields findByName(String name) {
|
|
|
6130 |
return byName.get(name);
|
|
|
6131 |
}
|
|
|
6132 |
|
|
|
6133 |
private final short _thriftId;
|
|
|
6134 |
private final String _fieldName;
|
|
|
6135 |
|
|
|
6136 |
_Fields(short thriftId, String fieldName) {
|
|
|
6137 |
_thriftId = thriftId;
|
|
|
6138 |
_fieldName = fieldName;
|
|
|
6139 |
}
|
|
|
6140 |
|
|
|
6141 |
public short getThriftFieldId() {
|
|
|
6142 |
return _thriftId;
|
|
|
6143 |
}
|
|
|
6144 |
|
|
|
6145 |
public String getFieldName() {
|
|
|
6146 |
return _fieldName;
|
|
|
6147 |
}
|
|
|
6148 |
}
|
|
|
6149 |
|
|
|
6150 |
// isset id assignments
|
|
|
6151 |
|
| 3430 |
rajveer |
6152 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
6153 |
static {
|
| 3430 |
rajveer |
6154 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
6155 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6156 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
6157 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6158 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6159 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
6160 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
6161 |
}
|
|
|
6162 |
|
| 4496 |
mandeep.dh |
6163 |
public scanForOrder_result() {
|
| 2820 |
chandransh |
6164 |
}
|
|
|
6165 |
|
| 4496 |
mandeep.dh |
6166 |
public scanForOrder_result(
|
| 5361 |
mandeep.dh |
6167 |
InventoryItem success,
|
| 2820 |
chandransh |
6168 |
WarehouseServiceException wex)
|
|
|
6169 |
{
|
|
|
6170 |
this();
|
| 5361 |
mandeep.dh |
6171 |
this.success = success;
|
| 2820 |
chandransh |
6172 |
this.wex = wex;
|
|
|
6173 |
}
|
|
|
6174 |
|
|
|
6175 |
/**
|
|
|
6176 |
* Performs a deep copy on <i>other</i>.
|
|
|
6177 |
*/
|
| 4496 |
mandeep.dh |
6178 |
public scanForOrder_result(scanForOrder_result other) {
|
| 5361 |
mandeep.dh |
6179 |
if (other.isSetSuccess()) {
|
|
|
6180 |
this.success = new InventoryItem(other.success);
|
|
|
6181 |
}
|
| 2820 |
chandransh |
6182 |
if (other.isSetWex()) {
|
|
|
6183 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
6184 |
}
|
|
|
6185 |
}
|
|
|
6186 |
|
| 4496 |
mandeep.dh |
6187 |
public scanForOrder_result deepCopy() {
|
|
|
6188 |
return new scanForOrder_result(this);
|
| 2820 |
chandransh |
6189 |
}
|
|
|
6190 |
|
| 3430 |
rajveer |
6191 |
@Override
|
|
|
6192 |
public void clear() {
|
| 5361 |
mandeep.dh |
6193 |
this.success = null;
|
| 3430 |
rajveer |
6194 |
this.wex = null;
|
| 2820 |
chandransh |
6195 |
}
|
|
|
6196 |
|
| 5361 |
mandeep.dh |
6197 |
public InventoryItem getSuccess() {
|
|
|
6198 |
return this.success;
|
|
|
6199 |
}
|
|
|
6200 |
|
|
|
6201 |
public void setSuccess(InventoryItem success) {
|
|
|
6202 |
this.success = success;
|
|
|
6203 |
}
|
|
|
6204 |
|
|
|
6205 |
public void unsetSuccess() {
|
|
|
6206 |
this.success = null;
|
|
|
6207 |
}
|
|
|
6208 |
|
|
|
6209 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
6210 |
public boolean isSetSuccess() {
|
|
|
6211 |
return this.success != null;
|
|
|
6212 |
}
|
|
|
6213 |
|
|
|
6214 |
public void setSuccessIsSet(boolean value) {
|
|
|
6215 |
if (!value) {
|
|
|
6216 |
this.success = null;
|
|
|
6217 |
}
|
|
|
6218 |
}
|
|
|
6219 |
|
| 2820 |
chandransh |
6220 |
public WarehouseServiceException getWex() {
|
|
|
6221 |
return this.wex;
|
|
|
6222 |
}
|
|
|
6223 |
|
| 3430 |
rajveer |
6224 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
6225 |
this.wex = wex;
|
|
|
6226 |
}
|
|
|
6227 |
|
|
|
6228 |
public void unsetWex() {
|
|
|
6229 |
this.wex = null;
|
|
|
6230 |
}
|
|
|
6231 |
|
| 3430 |
rajveer |
6232 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6233 |
public boolean isSetWex() {
|
|
|
6234 |
return this.wex != null;
|
|
|
6235 |
}
|
|
|
6236 |
|
|
|
6237 |
public void setWexIsSet(boolean value) {
|
|
|
6238 |
if (!value) {
|
|
|
6239 |
this.wex = null;
|
|
|
6240 |
}
|
|
|
6241 |
}
|
|
|
6242 |
|
|
|
6243 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6244 |
switch (field) {
|
| 5361 |
mandeep.dh |
6245 |
case SUCCESS:
|
|
|
6246 |
if (value == null) {
|
|
|
6247 |
unsetSuccess();
|
|
|
6248 |
} else {
|
|
|
6249 |
setSuccess((InventoryItem)value);
|
|
|
6250 |
}
|
|
|
6251 |
break;
|
|
|
6252 |
|
| 2820 |
chandransh |
6253 |
case WEX:
|
|
|
6254 |
if (value == null) {
|
|
|
6255 |
unsetWex();
|
|
|
6256 |
} else {
|
|
|
6257 |
setWex((WarehouseServiceException)value);
|
|
|
6258 |
}
|
|
|
6259 |
break;
|
|
|
6260 |
|
|
|
6261 |
}
|
|
|
6262 |
}
|
|
|
6263 |
|
|
|
6264 |
public Object getFieldValue(_Fields field) {
|
|
|
6265 |
switch (field) {
|
| 5361 |
mandeep.dh |
6266 |
case SUCCESS:
|
|
|
6267 |
return getSuccess();
|
|
|
6268 |
|
| 2820 |
chandransh |
6269 |
case WEX:
|
|
|
6270 |
return getWex();
|
|
|
6271 |
|
|
|
6272 |
}
|
|
|
6273 |
throw new IllegalStateException();
|
|
|
6274 |
}
|
|
|
6275 |
|
| 3430 |
rajveer |
6276 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6277 |
public boolean isSet(_Fields field) {
|
|
|
6278 |
if (field == null) {
|
|
|
6279 |
throw new IllegalArgumentException();
|
|
|
6280 |
}
|
| 2820 |
chandransh |
6281 |
|
|
|
6282 |
switch (field) {
|
| 5361 |
mandeep.dh |
6283 |
case SUCCESS:
|
|
|
6284 |
return isSetSuccess();
|
| 2820 |
chandransh |
6285 |
case WEX:
|
|
|
6286 |
return isSetWex();
|
|
|
6287 |
}
|
|
|
6288 |
throw new IllegalStateException();
|
|
|
6289 |
}
|
|
|
6290 |
|
|
|
6291 |
@Override
|
|
|
6292 |
public boolean equals(Object that) {
|
|
|
6293 |
if (that == null)
|
|
|
6294 |
return false;
|
| 4496 |
mandeep.dh |
6295 |
if (that instanceof scanForOrder_result)
|
|
|
6296 |
return this.equals((scanForOrder_result)that);
|
| 2820 |
chandransh |
6297 |
return false;
|
|
|
6298 |
}
|
|
|
6299 |
|
| 4496 |
mandeep.dh |
6300 |
public boolean equals(scanForOrder_result that) {
|
| 2820 |
chandransh |
6301 |
if (that == null)
|
|
|
6302 |
return false;
|
|
|
6303 |
|
| 5361 |
mandeep.dh |
6304 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6305 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6306 |
if (this_present_success || that_present_success) {
|
|
|
6307 |
if (!(this_present_success && that_present_success))
|
|
|
6308 |
return false;
|
|
|
6309 |
if (!this.success.equals(that.success))
|
|
|
6310 |
return false;
|
|
|
6311 |
}
|
|
|
6312 |
|
| 2820 |
chandransh |
6313 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
6314 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
6315 |
if (this_present_wex || that_present_wex) {
|
|
|
6316 |
if (!(this_present_wex && that_present_wex))
|
|
|
6317 |
return false;
|
|
|
6318 |
if (!this.wex.equals(that.wex))
|
|
|
6319 |
return false;
|
|
|
6320 |
}
|
|
|
6321 |
|
|
|
6322 |
return true;
|
|
|
6323 |
}
|
|
|
6324 |
|
|
|
6325 |
@Override
|
|
|
6326 |
public int hashCode() {
|
|
|
6327 |
return 0;
|
|
|
6328 |
}
|
|
|
6329 |
|
| 4496 |
mandeep.dh |
6330 |
public int compareTo(scanForOrder_result other) {
|
| 2820 |
chandransh |
6331 |
if (!getClass().equals(other.getClass())) {
|
|
|
6332 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6333 |
}
|
|
|
6334 |
|
|
|
6335 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
6336 |
scanForOrder_result typedOther = (scanForOrder_result)other;
|
| 2820 |
chandransh |
6337 |
|
| 5361 |
mandeep.dh |
6338 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
6339 |
if (lastComparison != 0) {
|
|
|
6340 |
return lastComparison;
|
|
|
6341 |
}
|
|
|
6342 |
if (isSetSuccess()) {
|
|
|
6343 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6344 |
if (lastComparison != 0) {
|
|
|
6345 |
return lastComparison;
|
|
|
6346 |
}
|
|
|
6347 |
}
|
| 3430 |
rajveer |
6348 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
6349 |
if (lastComparison != 0) {
|
|
|
6350 |
return lastComparison;
|
|
|
6351 |
}
|
| 3430 |
rajveer |
6352 |
if (isSetWex()) {
|
|
|
6353 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
6354 |
if (lastComparison != 0) {
|
|
|
6355 |
return lastComparison;
|
|
|
6356 |
}
|
| 2820 |
chandransh |
6357 |
}
|
|
|
6358 |
return 0;
|
|
|
6359 |
}
|
|
|
6360 |
|
| 3430 |
rajveer |
6361 |
public _Fields fieldForId(int fieldId) {
|
|
|
6362 |
return _Fields.findByThriftId(fieldId);
|
|
|
6363 |
}
|
|
|
6364 |
|
|
|
6365 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6366 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6367 |
iprot.readStructBegin();
|
|
|
6368 |
while (true)
|
|
|
6369 |
{
|
|
|
6370 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6371 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6372 |
break;
|
|
|
6373 |
}
|
| 3430 |
rajveer |
6374 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
6375 |
case 0: // SUCCESS
|
|
|
6376 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6377 |
this.success = new InventoryItem();
|
|
|
6378 |
this.success.read(iprot);
|
|
|
6379 |
} else {
|
|
|
6380 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6381 |
}
|
|
|
6382 |
break;
|
| 3430 |
rajveer |
6383 |
case 1: // WEX
|
|
|
6384 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6385 |
this.wex = new WarehouseServiceException();
|
|
|
6386 |
this.wex.read(iprot);
|
|
|
6387 |
} else {
|
|
|
6388 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6389 |
}
|
|
|
6390 |
break;
|
|
|
6391 |
default:
|
|
|
6392 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6393 |
}
|
| 3430 |
rajveer |
6394 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6395 |
}
|
|
|
6396 |
iprot.readStructEnd();
|
|
|
6397 |
validate();
|
|
|
6398 |
}
|
|
|
6399 |
|
| 3430 |
rajveer |
6400 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6401 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6402 |
|
| 5361 |
mandeep.dh |
6403 |
if (this.isSetSuccess()) {
|
|
|
6404 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
6405 |
this.success.write(oprot);
|
|
|
6406 |
oprot.writeFieldEnd();
|
|
|
6407 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
6408 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
6409 |
this.wex.write(oprot);
|
|
|
6410 |
oprot.writeFieldEnd();
|
|
|
6411 |
}
|
|
|
6412 |
oprot.writeFieldStop();
|
|
|
6413 |
oprot.writeStructEnd();
|
|
|
6414 |
}
|
|
|
6415 |
|
|
|
6416 |
@Override
|
|
|
6417 |
public String toString() {
|
| 4496 |
mandeep.dh |
6418 |
StringBuilder sb = new StringBuilder("scanForOrder_result(");
|
| 2820 |
chandransh |
6419 |
boolean first = true;
|
|
|
6420 |
|
| 5361 |
mandeep.dh |
6421 |
sb.append("success:");
|
|
|
6422 |
if (this.success == null) {
|
|
|
6423 |
sb.append("null");
|
|
|
6424 |
} else {
|
|
|
6425 |
sb.append(this.success);
|
|
|
6426 |
}
|
|
|
6427 |
first = false;
|
|
|
6428 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
6429 |
sb.append("wex:");
|
|
|
6430 |
if (this.wex == null) {
|
|
|
6431 |
sb.append("null");
|
|
|
6432 |
} else {
|
|
|
6433 |
sb.append(this.wex);
|
|
|
6434 |
}
|
|
|
6435 |
first = false;
|
|
|
6436 |
sb.append(")");
|
|
|
6437 |
return sb.toString();
|
|
|
6438 |
}
|
|
|
6439 |
|
| 3430 |
rajveer |
6440 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6441 |
// check for required fields
|
|
|
6442 |
}
|
|
|
6443 |
|
| 3430 |
rajveer |
6444 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6445 |
try {
|
|
|
6446 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6447 |
} catch (org.apache.thrift.TException te) {
|
|
|
6448 |
throw new java.io.IOException(te);
|
|
|
6449 |
}
|
|
|
6450 |
}
|
|
|
6451 |
|
|
|
6452 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6453 |
try {
|
|
|
6454 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6455 |
} catch (org.apache.thrift.TException te) {
|
|
|
6456 |
throw new java.io.IOException(te);
|
|
|
6457 |
}
|
|
|
6458 |
}
|
|
|
6459 |
|
| 2820 |
chandransh |
6460 |
}
|
|
|
6461 |
|
| 4496 |
mandeep.dh |
6462 |
public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6463 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
|
|
|
6464 |
|
|
|
6465 |
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);
|
|
|
6466 |
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);
|
|
|
6467 |
|
|
|
6468 |
private String itemNumber; // required
|
|
|
6469 |
private long itemId; // required
|
|
|
6470 |
|
|
|
6471 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6472 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6473 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
6474 |
ITEM_ID((short)2, "itemId");
|
|
|
6475 |
|
|
|
6476 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6477 |
|
|
|
6478 |
static {
|
|
|
6479 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6480 |
byName.put(field.getFieldName(), field);
|
|
|
6481 |
}
|
|
|
6482 |
}
|
|
|
6483 |
|
|
|
6484 |
/**
|
|
|
6485 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6486 |
*/
|
|
|
6487 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6488 |
switch(fieldId) {
|
|
|
6489 |
case 1: // ITEM_NUMBER
|
|
|
6490 |
return ITEM_NUMBER;
|
|
|
6491 |
case 2: // ITEM_ID
|
|
|
6492 |
return ITEM_ID;
|
|
|
6493 |
default:
|
|
|
6494 |
return null;
|
|
|
6495 |
}
|
|
|
6496 |
}
|
|
|
6497 |
|
|
|
6498 |
/**
|
|
|
6499 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6500 |
* if it is not found.
|
|
|
6501 |
*/
|
|
|
6502 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6503 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6504 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6505 |
return fields;
|
|
|
6506 |
}
|
|
|
6507 |
|
|
|
6508 |
/**
|
|
|
6509 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6510 |
*/
|
|
|
6511 |
public static _Fields findByName(String name) {
|
|
|
6512 |
return byName.get(name);
|
|
|
6513 |
}
|
|
|
6514 |
|
|
|
6515 |
private final short _thriftId;
|
|
|
6516 |
private final String _fieldName;
|
|
|
6517 |
|
|
|
6518 |
_Fields(short thriftId, String fieldName) {
|
|
|
6519 |
_thriftId = thriftId;
|
|
|
6520 |
_fieldName = fieldName;
|
|
|
6521 |
}
|
|
|
6522 |
|
|
|
6523 |
public short getThriftFieldId() {
|
|
|
6524 |
return _thriftId;
|
|
|
6525 |
}
|
|
|
6526 |
|
|
|
6527 |
public String getFieldName() {
|
|
|
6528 |
return _fieldName;
|
|
|
6529 |
}
|
|
|
6530 |
}
|
|
|
6531 |
|
|
|
6532 |
// isset id assignments
|
|
|
6533 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
6534 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6535 |
|
|
|
6536 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6537 |
static {
|
|
|
6538 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6539 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6540 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6541 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6542 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6543 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6544 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
|
|
|
6545 |
}
|
|
|
6546 |
|
|
|
6547 |
public createItemNumberMapping_args() {
|
|
|
6548 |
}
|
|
|
6549 |
|
|
|
6550 |
public createItemNumberMapping_args(
|
|
|
6551 |
String itemNumber,
|
|
|
6552 |
long itemId)
|
|
|
6553 |
{
|
|
|
6554 |
this();
|
|
|
6555 |
this.itemNumber = itemNumber;
|
|
|
6556 |
this.itemId = itemId;
|
|
|
6557 |
setItemIdIsSet(true);
|
|
|
6558 |
}
|
|
|
6559 |
|
|
|
6560 |
/**
|
|
|
6561 |
* Performs a deep copy on <i>other</i>.
|
|
|
6562 |
*/
|
|
|
6563 |
public createItemNumberMapping_args(createItemNumberMapping_args other) {
|
|
|
6564 |
__isset_bit_vector.clear();
|
|
|
6565 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6566 |
if (other.isSetItemNumber()) {
|
|
|
6567 |
this.itemNumber = other.itemNumber;
|
|
|
6568 |
}
|
|
|
6569 |
this.itemId = other.itemId;
|
|
|
6570 |
}
|
|
|
6571 |
|
|
|
6572 |
public createItemNumberMapping_args deepCopy() {
|
|
|
6573 |
return new createItemNumberMapping_args(this);
|
|
|
6574 |
}
|
|
|
6575 |
|
|
|
6576 |
@Override
|
|
|
6577 |
public void clear() {
|
|
|
6578 |
this.itemNumber = null;
|
|
|
6579 |
setItemIdIsSet(false);
|
|
|
6580 |
this.itemId = 0;
|
|
|
6581 |
}
|
|
|
6582 |
|
|
|
6583 |
public String getItemNumber() {
|
|
|
6584 |
return this.itemNumber;
|
|
|
6585 |
}
|
|
|
6586 |
|
|
|
6587 |
public void setItemNumber(String itemNumber) {
|
|
|
6588 |
this.itemNumber = itemNumber;
|
|
|
6589 |
}
|
|
|
6590 |
|
|
|
6591 |
public void unsetItemNumber() {
|
|
|
6592 |
this.itemNumber = null;
|
|
|
6593 |
}
|
|
|
6594 |
|
|
|
6595 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
6596 |
public boolean isSetItemNumber() {
|
|
|
6597 |
return this.itemNumber != null;
|
|
|
6598 |
}
|
|
|
6599 |
|
|
|
6600 |
public void setItemNumberIsSet(boolean value) {
|
|
|
6601 |
if (!value) {
|
|
|
6602 |
this.itemNumber = null;
|
|
|
6603 |
}
|
|
|
6604 |
}
|
|
|
6605 |
|
|
|
6606 |
public long getItemId() {
|
|
|
6607 |
return this.itemId;
|
|
|
6608 |
}
|
|
|
6609 |
|
|
|
6610 |
public void setItemId(long itemId) {
|
|
|
6611 |
this.itemId = itemId;
|
|
|
6612 |
setItemIdIsSet(true);
|
|
|
6613 |
}
|
|
|
6614 |
|
|
|
6615 |
public void unsetItemId() {
|
|
|
6616 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
6617 |
}
|
|
|
6618 |
|
|
|
6619 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
6620 |
public boolean isSetItemId() {
|
|
|
6621 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
6622 |
}
|
|
|
6623 |
|
|
|
6624 |
public void setItemIdIsSet(boolean value) {
|
|
|
6625 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
6626 |
}
|
|
|
6627 |
|
|
|
6628 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6629 |
switch (field) {
|
|
|
6630 |
case ITEM_NUMBER:
|
|
|
6631 |
if (value == null) {
|
|
|
6632 |
unsetItemNumber();
|
|
|
6633 |
} else {
|
|
|
6634 |
setItemNumber((String)value);
|
|
|
6635 |
}
|
|
|
6636 |
break;
|
|
|
6637 |
|
|
|
6638 |
case ITEM_ID:
|
|
|
6639 |
if (value == null) {
|
|
|
6640 |
unsetItemId();
|
|
|
6641 |
} else {
|
|
|
6642 |
setItemId((Long)value);
|
|
|
6643 |
}
|
|
|
6644 |
break;
|
|
|
6645 |
|
|
|
6646 |
}
|
|
|
6647 |
}
|
|
|
6648 |
|
|
|
6649 |
public Object getFieldValue(_Fields field) {
|
|
|
6650 |
switch (field) {
|
|
|
6651 |
case ITEM_NUMBER:
|
|
|
6652 |
return getItemNumber();
|
|
|
6653 |
|
|
|
6654 |
case ITEM_ID:
|
|
|
6655 |
return Long.valueOf(getItemId());
|
|
|
6656 |
|
|
|
6657 |
}
|
|
|
6658 |
throw new IllegalStateException();
|
|
|
6659 |
}
|
|
|
6660 |
|
|
|
6661 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6662 |
public boolean isSet(_Fields field) {
|
|
|
6663 |
if (field == null) {
|
|
|
6664 |
throw new IllegalArgumentException();
|
|
|
6665 |
}
|
|
|
6666 |
|
|
|
6667 |
switch (field) {
|
|
|
6668 |
case ITEM_NUMBER:
|
|
|
6669 |
return isSetItemNumber();
|
|
|
6670 |
case ITEM_ID:
|
|
|
6671 |
return isSetItemId();
|
|
|
6672 |
}
|
|
|
6673 |
throw new IllegalStateException();
|
|
|
6674 |
}
|
|
|
6675 |
|
|
|
6676 |
@Override
|
|
|
6677 |
public boolean equals(Object that) {
|
|
|
6678 |
if (that == null)
|
|
|
6679 |
return false;
|
|
|
6680 |
if (that instanceof createItemNumberMapping_args)
|
|
|
6681 |
return this.equals((createItemNumberMapping_args)that);
|
|
|
6682 |
return false;
|
|
|
6683 |
}
|
|
|
6684 |
|
|
|
6685 |
public boolean equals(createItemNumberMapping_args that) {
|
|
|
6686 |
if (that == null)
|
|
|
6687 |
return false;
|
|
|
6688 |
|
|
|
6689 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
6690 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
6691 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
6692 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
6693 |
return false;
|
|
|
6694 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
6695 |
return false;
|
|
|
6696 |
}
|
|
|
6697 |
|
|
|
6698 |
boolean this_present_itemId = true;
|
|
|
6699 |
boolean that_present_itemId = true;
|
|
|
6700 |
if (this_present_itemId || that_present_itemId) {
|
|
|
6701 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
6702 |
return false;
|
|
|
6703 |
if (this.itemId != that.itemId)
|
|
|
6704 |
return false;
|
|
|
6705 |
}
|
|
|
6706 |
|
|
|
6707 |
return true;
|
|
|
6708 |
}
|
|
|
6709 |
|
|
|
6710 |
@Override
|
|
|
6711 |
public int hashCode() {
|
|
|
6712 |
return 0;
|
|
|
6713 |
}
|
|
|
6714 |
|
|
|
6715 |
public int compareTo(createItemNumberMapping_args other) {
|
|
|
6716 |
if (!getClass().equals(other.getClass())) {
|
|
|
6717 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6718 |
}
|
|
|
6719 |
|
|
|
6720 |
int lastComparison = 0;
|
|
|
6721 |
createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
|
|
|
6722 |
|
|
|
6723 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
6724 |
if (lastComparison != 0) {
|
|
|
6725 |
return lastComparison;
|
|
|
6726 |
}
|
|
|
6727 |
if (isSetItemNumber()) {
|
|
|
6728 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
6729 |
if (lastComparison != 0) {
|
|
|
6730 |
return lastComparison;
|
|
|
6731 |
}
|
|
|
6732 |
}
|
|
|
6733 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
6734 |
if (lastComparison != 0) {
|
|
|
6735 |
return lastComparison;
|
|
|
6736 |
}
|
|
|
6737 |
if (isSetItemId()) {
|
|
|
6738 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
6739 |
if (lastComparison != 0) {
|
|
|
6740 |
return lastComparison;
|
|
|
6741 |
}
|
|
|
6742 |
}
|
|
|
6743 |
return 0;
|
|
|
6744 |
}
|
|
|
6745 |
|
|
|
6746 |
public _Fields fieldForId(int fieldId) {
|
|
|
6747 |
return _Fields.findByThriftId(fieldId);
|
|
|
6748 |
}
|
|
|
6749 |
|
|
|
6750 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6751 |
org.apache.thrift.protocol.TField field;
|
|
|
6752 |
iprot.readStructBegin();
|
|
|
6753 |
while (true)
|
|
|
6754 |
{
|
|
|
6755 |
field = iprot.readFieldBegin();
|
|
|
6756 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6757 |
break;
|
|
|
6758 |
}
|
|
|
6759 |
switch (field.id) {
|
|
|
6760 |
case 1: // ITEM_NUMBER
|
|
|
6761 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6762 |
this.itemNumber = iprot.readString();
|
|
|
6763 |
} else {
|
|
|
6764 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6765 |
}
|
|
|
6766 |
break;
|
|
|
6767 |
case 2: // ITEM_ID
|
|
|
6768 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6769 |
this.itemId = iprot.readI64();
|
|
|
6770 |
setItemIdIsSet(true);
|
|
|
6771 |
} else {
|
|
|
6772 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6773 |
}
|
|
|
6774 |
break;
|
|
|
6775 |
default:
|
|
|
6776 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6777 |
}
|
|
|
6778 |
iprot.readFieldEnd();
|
|
|
6779 |
}
|
|
|
6780 |
iprot.readStructEnd();
|
|
|
6781 |
validate();
|
|
|
6782 |
}
|
|
|
6783 |
|
|
|
6784 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6785 |
validate();
|
|
|
6786 |
|
|
|
6787 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6788 |
if (this.itemNumber != null) {
|
|
|
6789 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
6790 |
oprot.writeString(this.itemNumber);
|
|
|
6791 |
oprot.writeFieldEnd();
|
|
|
6792 |
}
|
|
|
6793 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
6794 |
oprot.writeI64(this.itemId);
|
|
|
6795 |
oprot.writeFieldEnd();
|
|
|
6796 |
oprot.writeFieldStop();
|
|
|
6797 |
oprot.writeStructEnd();
|
|
|
6798 |
}
|
|
|
6799 |
|
|
|
6800 |
@Override
|
|
|
6801 |
public String toString() {
|
|
|
6802 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
|
|
|
6803 |
boolean first = true;
|
|
|
6804 |
|
|
|
6805 |
sb.append("itemNumber:");
|
|
|
6806 |
if (this.itemNumber == null) {
|
|
|
6807 |
sb.append("null");
|
|
|
6808 |
} else {
|
|
|
6809 |
sb.append(this.itemNumber);
|
|
|
6810 |
}
|
|
|
6811 |
first = false;
|
|
|
6812 |
if (!first) sb.append(", ");
|
|
|
6813 |
sb.append("itemId:");
|
|
|
6814 |
sb.append(this.itemId);
|
|
|
6815 |
first = false;
|
|
|
6816 |
sb.append(")");
|
|
|
6817 |
return sb.toString();
|
|
|
6818 |
}
|
|
|
6819 |
|
|
|
6820 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6821 |
// check for required fields
|
|
|
6822 |
}
|
|
|
6823 |
|
|
|
6824 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6825 |
try {
|
|
|
6826 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6827 |
} catch (org.apache.thrift.TException te) {
|
|
|
6828 |
throw new java.io.IOException(te);
|
|
|
6829 |
}
|
|
|
6830 |
}
|
|
|
6831 |
|
|
|
6832 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6833 |
try {
|
|
|
6834 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6835 |
__isset_bit_vector = new BitSet(1);
|
|
|
6836 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6837 |
} catch (org.apache.thrift.TException te) {
|
|
|
6838 |
throw new java.io.IOException(te);
|
|
|
6839 |
}
|
|
|
6840 |
}
|
|
|
6841 |
|
|
|
6842 |
}
|
|
|
6843 |
|
|
|
6844 |
public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6845 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
|
|
|
6846 |
|
|
|
6847 |
|
|
|
6848 |
|
|
|
6849 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6850 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6851 |
;
|
|
|
6852 |
|
|
|
6853 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6854 |
|
|
|
6855 |
static {
|
|
|
6856 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6857 |
byName.put(field.getFieldName(), field);
|
|
|
6858 |
}
|
|
|
6859 |
}
|
|
|
6860 |
|
|
|
6861 |
/**
|
|
|
6862 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6863 |
*/
|
|
|
6864 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6865 |
switch(fieldId) {
|
|
|
6866 |
default:
|
|
|
6867 |
return null;
|
|
|
6868 |
}
|
|
|
6869 |
}
|
|
|
6870 |
|
|
|
6871 |
/**
|
|
|
6872 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6873 |
* if it is not found.
|
|
|
6874 |
*/
|
|
|
6875 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6876 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6877 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6878 |
return fields;
|
|
|
6879 |
}
|
|
|
6880 |
|
|
|
6881 |
/**
|
|
|
6882 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6883 |
*/
|
|
|
6884 |
public static _Fields findByName(String name) {
|
|
|
6885 |
return byName.get(name);
|
|
|
6886 |
}
|
|
|
6887 |
|
|
|
6888 |
private final short _thriftId;
|
|
|
6889 |
private final String _fieldName;
|
|
|
6890 |
|
|
|
6891 |
_Fields(short thriftId, String fieldName) {
|
|
|
6892 |
_thriftId = thriftId;
|
|
|
6893 |
_fieldName = fieldName;
|
|
|
6894 |
}
|
|
|
6895 |
|
|
|
6896 |
public short getThriftFieldId() {
|
|
|
6897 |
return _thriftId;
|
|
|
6898 |
}
|
|
|
6899 |
|
|
|
6900 |
public String getFieldName() {
|
|
|
6901 |
return _fieldName;
|
|
|
6902 |
}
|
|
|
6903 |
}
|
|
|
6904 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6905 |
static {
|
|
|
6906 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6907 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6908 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
|
|
|
6909 |
}
|
|
|
6910 |
|
|
|
6911 |
public createItemNumberMapping_result() {
|
|
|
6912 |
}
|
|
|
6913 |
|
|
|
6914 |
/**
|
|
|
6915 |
* Performs a deep copy on <i>other</i>.
|
|
|
6916 |
*/
|
|
|
6917 |
public createItemNumberMapping_result(createItemNumberMapping_result other) {
|
|
|
6918 |
}
|
|
|
6919 |
|
|
|
6920 |
public createItemNumberMapping_result deepCopy() {
|
|
|
6921 |
return new createItemNumberMapping_result(this);
|
|
|
6922 |
}
|
|
|
6923 |
|
|
|
6924 |
@Override
|
|
|
6925 |
public void clear() {
|
|
|
6926 |
}
|
|
|
6927 |
|
|
|
6928 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6929 |
switch (field) {
|
|
|
6930 |
}
|
|
|
6931 |
}
|
|
|
6932 |
|
|
|
6933 |
public Object getFieldValue(_Fields field) {
|
|
|
6934 |
switch (field) {
|
|
|
6935 |
}
|
|
|
6936 |
throw new IllegalStateException();
|
|
|
6937 |
}
|
|
|
6938 |
|
|
|
6939 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6940 |
public boolean isSet(_Fields field) {
|
|
|
6941 |
if (field == null) {
|
|
|
6942 |
throw new IllegalArgumentException();
|
|
|
6943 |
}
|
|
|
6944 |
|
|
|
6945 |
switch (field) {
|
|
|
6946 |
}
|
|
|
6947 |
throw new IllegalStateException();
|
|
|
6948 |
}
|
|
|
6949 |
|
|
|
6950 |
@Override
|
|
|
6951 |
public boolean equals(Object that) {
|
|
|
6952 |
if (that == null)
|
|
|
6953 |
return false;
|
|
|
6954 |
if (that instanceof createItemNumberMapping_result)
|
|
|
6955 |
return this.equals((createItemNumberMapping_result)that);
|
|
|
6956 |
return false;
|
|
|
6957 |
}
|
|
|
6958 |
|
|
|
6959 |
public boolean equals(createItemNumberMapping_result that) {
|
|
|
6960 |
if (that == null)
|
|
|
6961 |
return false;
|
|
|
6962 |
|
|
|
6963 |
return true;
|
|
|
6964 |
}
|
|
|
6965 |
|
|
|
6966 |
@Override
|
|
|
6967 |
public int hashCode() {
|
|
|
6968 |
return 0;
|
|
|
6969 |
}
|
|
|
6970 |
|
|
|
6971 |
public int compareTo(createItemNumberMapping_result other) {
|
|
|
6972 |
if (!getClass().equals(other.getClass())) {
|
|
|
6973 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6974 |
}
|
|
|
6975 |
|
|
|
6976 |
int lastComparison = 0;
|
|
|
6977 |
createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
|
|
|
6978 |
|
|
|
6979 |
return 0;
|
|
|
6980 |
}
|
|
|
6981 |
|
|
|
6982 |
public _Fields fieldForId(int fieldId) {
|
|
|
6983 |
return _Fields.findByThriftId(fieldId);
|
|
|
6984 |
}
|
|
|
6985 |
|
|
|
6986 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6987 |
org.apache.thrift.protocol.TField field;
|
|
|
6988 |
iprot.readStructBegin();
|
|
|
6989 |
while (true)
|
|
|
6990 |
{
|
|
|
6991 |
field = iprot.readFieldBegin();
|
|
|
6992 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6993 |
break;
|
|
|
6994 |
}
|
|
|
6995 |
switch (field.id) {
|
|
|
6996 |
default:
|
|
|
6997 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6998 |
}
|
|
|
6999 |
iprot.readFieldEnd();
|
|
|
7000 |
}
|
|
|
7001 |
iprot.readStructEnd();
|
|
|
7002 |
validate();
|
|
|
7003 |
}
|
|
|
7004 |
|
|
|
7005 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7006 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7007 |
|
|
|
7008 |
oprot.writeFieldStop();
|
|
|
7009 |
oprot.writeStructEnd();
|
|
|
7010 |
}
|
|
|
7011 |
|
|
|
7012 |
@Override
|
|
|
7013 |
public String toString() {
|
|
|
7014 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
|
|
|
7015 |
boolean first = true;
|
|
|
7016 |
|
|
|
7017 |
sb.append(")");
|
|
|
7018 |
return sb.toString();
|
|
|
7019 |
}
|
|
|
7020 |
|
|
|
7021 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7022 |
// check for required fields
|
|
|
7023 |
}
|
|
|
7024 |
|
|
|
7025 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7026 |
try {
|
|
|
7027 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7028 |
} catch (org.apache.thrift.TException te) {
|
|
|
7029 |
throw new java.io.IOException(te);
|
|
|
7030 |
}
|
|
|
7031 |
}
|
|
|
7032 |
|
|
|
7033 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7034 |
try {
|
|
|
7035 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7036 |
} catch (org.apache.thrift.TException te) {
|
|
|
7037 |
throw new java.io.IOException(te);
|
|
|
7038 |
}
|
|
|
7039 |
}
|
|
|
7040 |
|
|
|
7041 |
}
|
|
|
7042 |
|
| 4622 |
amit.gupta |
7043 |
public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7044 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
|
|
|
7045 |
|
|
|
7046 |
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);
|
|
|
7047 |
|
|
|
7048 |
private long itemId; // required
|
|
|
7049 |
|
|
|
7050 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7051 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7052 |
ITEM_ID((short)1, "itemId");
|
|
|
7053 |
|
|
|
7054 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7055 |
|
|
|
7056 |
static {
|
|
|
7057 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7058 |
byName.put(field.getFieldName(), field);
|
|
|
7059 |
}
|
|
|
7060 |
}
|
|
|
7061 |
|
|
|
7062 |
/**
|
|
|
7063 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7064 |
*/
|
|
|
7065 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7066 |
switch(fieldId) {
|
|
|
7067 |
case 1: // ITEM_ID
|
|
|
7068 |
return ITEM_ID;
|
|
|
7069 |
default:
|
|
|
7070 |
return null;
|
|
|
7071 |
}
|
|
|
7072 |
}
|
|
|
7073 |
|
|
|
7074 |
/**
|
|
|
7075 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7076 |
* if it is not found.
|
|
|
7077 |
*/
|
|
|
7078 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7079 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7080 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7081 |
return fields;
|
|
|
7082 |
}
|
|
|
7083 |
|
|
|
7084 |
/**
|
|
|
7085 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7086 |
*/
|
|
|
7087 |
public static _Fields findByName(String name) {
|
|
|
7088 |
return byName.get(name);
|
|
|
7089 |
}
|
|
|
7090 |
|
|
|
7091 |
private final short _thriftId;
|
|
|
7092 |
private final String _fieldName;
|
|
|
7093 |
|
|
|
7094 |
_Fields(short thriftId, String fieldName) {
|
|
|
7095 |
_thriftId = thriftId;
|
|
|
7096 |
_fieldName = fieldName;
|
|
|
7097 |
}
|
|
|
7098 |
|
|
|
7099 |
public short getThriftFieldId() {
|
|
|
7100 |
return _thriftId;
|
|
|
7101 |
}
|
|
|
7102 |
|
|
|
7103 |
public String getFieldName() {
|
|
|
7104 |
return _fieldName;
|
|
|
7105 |
}
|
|
|
7106 |
}
|
|
|
7107 |
|
|
|
7108 |
// isset id assignments
|
|
|
7109 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
7110 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7111 |
|
|
|
7112 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7113 |
static {
|
|
|
7114 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7115 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7116 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7117 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7118 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
|
|
|
7119 |
}
|
|
|
7120 |
|
|
|
7121 |
public getItemNumbers_args() {
|
|
|
7122 |
}
|
|
|
7123 |
|
|
|
7124 |
public getItemNumbers_args(
|
|
|
7125 |
long itemId)
|
|
|
7126 |
{
|
|
|
7127 |
this();
|
|
|
7128 |
this.itemId = itemId;
|
|
|
7129 |
setItemIdIsSet(true);
|
|
|
7130 |
}
|
|
|
7131 |
|
|
|
7132 |
/**
|
|
|
7133 |
* Performs a deep copy on <i>other</i>.
|
|
|
7134 |
*/
|
|
|
7135 |
public getItemNumbers_args(getItemNumbers_args other) {
|
|
|
7136 |
__isset_bit_vector.clear();
|
|
|
7137 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7138 |
this.itemId = other.itemId;
|
|
|
7139 |
}
|
|
|
7140 |
|
|
|
7141 |
public getItemNumbers_args deepCopy() {
|
|
|
7142 |
return new getItemNumbers_args(this);
|
|
|
7143 |
}
|
|
|
7144 |
|
|
|
7145 |
@Override
|
|
|
7146 |
public void clear() {
|
|
|
7147 |
setItemIdIsSet(false);
|
|
|
7148 |
this.itemId = 0;
|
|
|
7149 |
}
|
|
|
7150 |
|
|
|
7151 |
public long getItemId() {
|
|
|
7152 |
return this.itemId;
|
|
|
7153 |
}
|
|
|
7154 |
|
|
|
7155 |
public void setItemId(long itemId) {
|
|
|
7156 |
this.itemId = itemId;
|
|
|
7157 |
setItemIdIsSet(true);
|
|
|
7158 |
}
|
|
|
7159 |
|
|
|
7160 |
public void unsetItemId() {
|
|
|
7161 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
7162 |
}
|
|
|
7163 |
|
|
|
7164 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
7165 |
public boolean isSetItemId() {
|
|
|
7166 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
7167 |
}
|
|
|
7168 |
|
|
|
7169 |
public void setItemIdIsSet(boolean value) {
|
|
|
7170 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
7171 |
}
|
|
|
7172 |
|
|
|
7173 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7174 |
switch (field) {
|
|
|
7175 |
case ITEM_ID:
|
|
|
7176 |
if (value == null) {
|
|
|
7177 |
unsetItemId();
|
|
|
7178 |
} else {
|
|
|
7179 |
setItemId((Long)value);
|
|
|
7180 |
}
|
|
|
7181 |
break;
|
|
|
7182 |
|
|
|
7183 |
}
|
|
|
7184 |
}
|
|
|
7185 |
|
|
|
7186 |
public Object getFieldValue(_Fields field) {
|
|
|
7187 |
switch (field) {
|
|
|
7188 |
case ITEM_ID:
|
|
|
7189 |
return Long.valueOf(getItemId());
|
|
|
7190 |
|
|
|
7191 |
}
|
|
|
7192 |
throw new IllegalStateException();
|
|
|
7193 |
}
|
|
|
7194 |
|
|
|
7195 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7196 |
public boolean isSet(_Fields field) {
|
|
|
7197 |
if (field == null) {
|
|
|
7198 |
throw new IllegalArgumentException();
|
|
|
7199 |
}
|
|
|
7200 |
|
|
|
7201 |
switch (field) {
|
|
|
7202 |
case ITEM_ID:
|
|
|
7203 |
return isSetItemId();
|
|
|
7204 |
}
|
|
|
7205 |
throw new IllegalStateException();
|
|
|
7206 |
}
|
|
|
7207 |
|
|
|
7208 |
@Override
|
|
|
7209 |
public boolean equals(Object that) {
|
|
|
7210 |
if (that == null)
|
|
|
7211 |
return false;
|
|
|
7212 |
if (that instanceof getItemNumbers_args)
|
|
|
7213 |
return this.equals((getItemNumbers_args)that);
|
|
|
7214 |
return false;
|
|
|
7215 |
}
|
|
|
7216 |
|
|
|
7217 |
public boolean equals(getItemNumbers_args that) {
|
|
|
7218 |
if (that == null)
|
|
|
7219 |
return false;
|
|
|
7220 |
|
|
|
7221 |
boolean this_present_itemId = true;
|
|
|
7222 |
boolean that_present_itemId = true;
|
|
|
7223 |
if (this_present_itemId || that_present_itemId) {
|
|
|
7224 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
7225 |
return false;
|
|
|
7226 |
if (this.itemId != that.itemId)
|
|
|
7227 |
return false;
|
|
|
7228 |
}
|
|
|
7229 |
|
|
|
7230 |
return true;
|
|
|
7231 |
}
|
|
|
7232 |
|
|
|
7233 |
@Override
|
|
|
7234 |
public int hashCode() {
|
|
|
7235 |
return 0;
|
|
|
7236 |
}
|
|
|
7237 |
|
|
|
7238 |
public int compareTo(getItemNumbers_args other) {
|
|
|
7239 |
if (!getClass().equals(other.getClass())) {
|
|
|
7240 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7241 |
}
|
|
|
7242 |
|
|
|
7243 |
int lastComparison = 0;
|
|
|
7244 |
getItemNumbers_args typedOther = (getItemNumbers_args)other;
|
|
|
7245 |
|
|
|
7246 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
7247 |
if (lastComparison != 0) {
|
|
|
7248 |
return lastComparison;
|
|
|
7249 |
}
|
|
|
7250 |
if (isSetItemId()) {
|
|
|
7251 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
7252 |
if (lastComparison != 0) {
|
|
|
7253 |
return lastComparison;
|
|
|
7254 |
}
|
|
|
7255 |
}
|
|
|
7256 |
return 0;
|
|
|
7257 |
}
|
|
|
7258 |
|
|
|
7259 |
public _Fields fieldForId(int fieldId) {
|
|
|
7260 |
return _Fields.findByThriftId(fieldId);
|
|
|
7261 |
}
|
|
|
7262 |
|
|
|
7263 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7264 |
org.apache.thrift.protocol.TField field;
|
|
|
7265 |
iprot.readStructBegin();
|
|
|
7266 |
while (true)
|
|
|
7267 |
{
|
|
|
7268 |
field = iprot.readFieldBegin();
|
|
|
7269 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7270 |
break;
|
|
|
7271 |
}
|
|
|
7272 |
switch (field.id) {
|
|
|
7273 |
case 1: // ITEM_ID
|
|
|
7274 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7275 |
this.itemId = iprot.readI64();
|
|
|
7276 |
setItemIdIsSet(true);
|
|
|
7277 |
} else {
|
|
|
7278 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7279 |
}
|
|
|
7280 |
break;
|
|
|
7281 |
default:
|
|
|
7282 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7283 |
}
|
|
|
7284 |
iprot.readFieldEnd();
|
|
|
7285 |
}
|
|
|
7286 |
iprot.readStructEnd();
|
|
|
7287 |
validate();
|
|
|
7288 |
}
|
|
|
7289 |
|
|
|
7290 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7291 |
validate();
|
|
|
7292 |
|
|
|
7293 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7294 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
7295 |
oprot.writeI64(this.itemId);
|
|
|
7296 |
oprot.writeFieldEnd();
|
|
|
7297 |
oprot.writeFieldStop();
|
|
|
7298 |
oprot.writeStructEnd();
|
|
|
7299 |
}
|
|
|
7300 |
|
|
|
7301 |
@Override
|
|
|
7302 |
public String toString() {
|
|
|
7303 |
StringBuilder sb = new StringBuilder("getItemNumbers_args(");
|
|
|
7304 |
boolean first = true;
|
|
|
7305 |
|
|
|
7306 |
sb.append("itemId:");
|
|
|
7307 |
sb.append(this.itemId);
|
|
|
7308 |
first = false;
|
|
|
7309 |
sb.append(")");
|
|
|
7310 |
return sb.toString();
|
|
|
7311 |
}
|
|
|
7312 |
|
|
|
7313 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7314 |
// check for required fields
|
|
|
7315 |
}
|
|
|
7316 |
|
|
|
7317 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7318 |
try {
|
|
|
7319 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7320 |
} catch (org.apache.thrift.TException te) {
|
|
|
7321 |
throw new java.io.IOException(te);
|
|
|
7322 |
}
|
|
|
7323 |
}
|
|
|
7324 |
|
|
|
7325 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7326 |
try {
|
|
|
7327 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7328 |
__isset_bit_vector = new BitSet(1);
|
|
|
7329 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7330 |
} catch (org.apache.thrift.TException te) {
|
|
|
7331 |
throw new java.io.IOException(te);
|
|
|
7332 |
}
|
|
|
7333 |
}
|
|
|
7334 |
|
|
|
7335 |
}
|
|
|
7336 |
|
|
|
7337 |
public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7338 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
|
|
|
7339 |
|
|
|
7340 |
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);
|
|
|
7341 |
|
|
|
7342 |
private List<String> success; // required
|
|
|
7343 |
|
|
|
7344 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7345 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7346 |
SUCCESS((short)0, "success");
|
|
|
7347 |
|
|
|
7348 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7349 |
|
|
|
7350 |
static {
|
|
|
7351 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7352 |
byName.put(field.getFieldName(), field);
|
|
|
7353 |
}
|
|
|
7354 |
}
|
|
|
7355 |
|
|
|
7356 |
/**
|
|
|
7357 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7358 |
*/
|
|
|
7359 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7360 |
switch(fieldId) {
|
|
|
7361 |
case 0: // SUCCESS
|
|
|
7362 |
return SUCCESS;
|
|
|
7363 |
default:
|
|
|
7364 |
return null;
|
|
|
7365 |
}
|
|
|
7366 |
}
|
|
|
7367 |
|
|
|
7368 |
/**
|
|
|
7369 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7370 |
* if it is not found.
|
|
|
7371 |
*/
|
|
|
7372 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7373 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7374 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7375 |
return fields;
|
|
|
7376 |
}
|
|
|
7377 |
|
|
|
7378 |
/**
|
|
|
7379 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7380 |
*/
|
|
|
7381 |
public static _Fields findByName(String name) {
|
|
|
7382 |
return byName.get(name);
|
|
|
7383 |
}
|
|
|
7384 |
|
|
|
7385 |
private final short _thriftId;
|
|
|
7386 |
private final String _fieldName;
|
|
|
7387 |
|
|
|
7388 |
_Fields(short thriftId, String fieldName) {
|
|
|
7389 |
_thriftId = thriftId;
|
|
|
7390 |
_fieldName = fieldName;
|
|
|
7391 |
}
|
|
|
7392 |
|
|
|
7393 |
public short getThriftFieldId() {
|
|
|
7394 |
return _thriftId;
|
|
|
7395 |
}
|
|
|
7396 |
|
|
|
7397 |
public String getFieldName() {
|
|
|
7398 |
return _fieldName;
|
|
|
7399 |
}
|
|
|
7400 |
}
|
|
|
7401 |
|
|
|
7402 |
// isset id assignments
|
|
|
7403 |
|
|
|
7404 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7405 |
static {
|
|
|
7406 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7407 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7408 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
7409 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
7410 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7411 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
|
|
|
7412 |
}
|
|
|
7413 |
|
|
|
7414 |
public getItemNumbers_result() {
|
|
|
7415 |
}
|
|
|
7416 |
|
|
|
7417 |
public getItemNumbers_result(
|
|
|
7418 |
List<String> success)
|
|
|
7419 |
{
|
|
|
7420 |
this();
|
|
|
7421 |
this.success = success;
|
|
|
7422 |
}
|
|
|
7423 |
|
|
|
7424 |
/**
|
|
|
7425 |
* Performs a deep copy on <i>other</i>.
|
|
|
7426 |
*/
|
|
|
7427 |
public getItemNumbers_result(getItemNumbers_result other) {
|
|
|
7428 |
if (other.isSetSuccess()) {
|
|
|
7429 |
List<String> __this__success = new ArrayList<String>();
|
|
|
7430 |
for (String other_element : other.success) {
|
|
|
7431 |
__this__success.add(other_element);
|
|
|
7432 |
}
|
|
|
7433 |
this.success = __this__success;
|
|
|
7434 |
}
|
|
|
7435 |
}
|
|
|
7436 |
|
|
|
7437 |
public getItemNumbers_result deepCopy() {
|
|
|
7438 |
return new getItemNumbers_result(this);
|
|
|
7439 |
}
|
|
|
7440 |
|
|
|
7441 |
@Override
|
|
|
7442 |
public void clear() {
|
|
|
7443 |
this.success = null;
|
|
|
7444 |
}
|
|
|
7445 |
|
|
|
7446 |
public int getSuccessSize() {
|
|
|
7447 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
7448 |
}
|
|
|
7449 |
|
|
|
7450 |
public java.util.Iterator<String> getSuccessIterator() {
|
|
|
7451 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
7452 |
}
|
|
|
7453 |
|
|
|
7454 |
public void addToSuccess(String elem) {
|
|
|
7455 |
if (this.success == null) {
|
|
|
7456 |
this.success = new ArrayList<String>();
|
|
|
7457 |
}
|
|
|
7458 |
this.success.add(elem);
|
|
|
7459 |
}
|
|
|
7460 |
|
|
|
7461 |
public List<String> getSuccess() {
|
|
|
7462 |
return this.success;
|
|
|
7463 |
}
|
|
|
7464 |
|
|
|
7465 |
public void setSuccess(List<String> success) {
|
|
|
7466 |
this.success = success;
|
|
|
7467 |
}
|
|
|
7468 |
|
|
|
7469 |
public void unsetSuccess() {
|
|
|
7470 |
this.success = null;
|
|
|
7471 |
}
|
|
|
7472 |
|
|
|
7473 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
7474 |
public boolean isSetSuccess() {
|
|
|
7475 |
return this.success != null;
|
|
|
7476 |
}
|
|
|
7477 |
|
|
|
7478 |
public void setSuccessIsSet(boolean value) {
|
|
|
7479 |
if (!value) {
|
|
|
7480 |
this.success = null;
|
|
|
7481 |
}
|
|
|
7482 |
}
|
|
|
7483 |
|
|
|
7484 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7485 |
switch (field) {
|
|
|
7486 |
case SUCCESS:
|
|
|
7487 |
if (value == null) {
|
|
|
7488 |
unsetSuccess();
|
|
|
7489 |
} else {
|
|
|
7490 |
setSuccess((List<String>)value);
|
|
|
7491 |
}
|
|
|
7492 |
break;
|
|
|
7493 |
|
|
|
7494 |
}
|
|
|
7495 |
}
|
|
|
7496 |
|
|
|
7497 |
public Object getFieldValue(_Fields field) {
|
|
|
7498 |
switch (field) {
|
|
|
7499 |
case SUCCESS:
|
|
|
7500 |
return getSuccess();
|
|
|
7501 |
|
|
|
7502 |
}
|
|
|
7503 |
throw new IllegalStateException();
|
|
|
7504 |
}
|
|
|
7505 |
|
|
|
7506 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7507 |
public boolean isSet(_Fields field) {
|
|
|
7508 |
if (field == null) {
|
|
|
7509 |
throw new IllegalArgumentException();
|
|
|
7510 |
}
|
|
|
7511 |
|
|
|
7512 |
switch (field) {
|
|
|
7513 |
case SUCCESS:
|
|
|
7514 |
return isSetSuccess();
|
|
|
7515 |
}
|
|
|
7516 |
throw new IllegalStateException();
|
|
|
7517 |
}
|
|
|
7518 |
|
|
|
7519 |
@Override
|
|
|
7520 |
public boolean equals(Object that) {
|
|
|
7521 |
if (that == null)
|
|
|
7522 |
return false;
|
|
|
7523 |
if (that instanceof getItemNumbers_result)
|
|
|
7524 |
return this.equals((getItemNumbers_result)that);
|
|
|
7525 |
return false;
|
|
|
7526 |
}
|
|
|
7527 |
|
|
|
7528 |
public boolean equals(getItemNumbers_result that) {
|
|
|
7529 |
if (that == null)
|
|
|
7530 |
return false;
|
|
|
7531 |
|
|
|
7532 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
7533 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
7534 |
if (this_present_success || that_present_success) {
|
|
|
7535 |
if (!(this_present_success && that_present_success))
|
|
|
7536 |
return false;
|
|
|
7537 |
if (!this.success.equals(that.success))
|
|
|
7538 |
return false;
|
|
|
7539 |
}
|
|
|
7540 |
|
|
|
7541 |
return true;
|
|
|
7542 |
}
|
|
|
7543 |
|
|
|
7544 |
@Override
|
|
|
7545 |
public int hashCode() {
|
|
|
7546 |
return 0;
|
|
|
7547 |
}
|
|
|
7548 |
|
|
|
7549 |
public int compareTo(getItemNumbers_result other) {
|
|
|
7550 |
if (!getClass().equals(other.getClass())) {
|
|
|
7551 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7552 |
}
|
|
|
7553 |
|
|
|
7554 |
int lastComparison = 0;
|
|
|
7555 |
getItemNumbers_result typedOther = (getItemNumbers_result)other;
|
|
|
7556 |
|
|
|
7557 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
7558 |
if (lastComparison != 0) {
|
|
|
7559 |
return lastComparison;
|
|
|
7560 |
}
|
|
|
7561 |
if (isSetSuccess()) {
|
|
|
7562 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7563 |
if (lastComparison != 0) {
|
|
|
7564 |
return lastComparison;
|
|
|
7565 |
}
|
|
|
7566 |
}
|
|
|
7567 |
return 0;
|
|
|
7568 |
}
|
|
|
7569 |
|
|
|
7570 |
public _Fields fieldForId(int fieldId) {
|
|
|
7571 |
return _Fields.findByThriftId(fieldId);
|
|
|
7572 |
}
|
|
|
7573 |
|
|
|
7574 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7575 |
org.apache.thrift.protocol.TField field;
|
|
|
7576 |
iprot.readStructBegin();
|
|
|
7577 |
while (true)
|
|
|
7578 |
{
|
|
|
7579 |
field = iprot.readFieldBegin();
|
|
|
7580 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7581 |
break;
|
|
|
7582 |
}
|
|
|
7583 |
switch (field.id) {
|
|
|
7584 |
case 0: // SUCCESS
|
|
|
7585 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7586 |
{
|
| 5361 |
mandeep.dh |
7587 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
7588 |
this.success = new ArrayList<String>(_list0.size);
|
|
|
7589 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
| 4622 |
amit.gupta |
7590 |
{
|
| 5361 |
mandeep.dh |
7591 |
String _elem2; // required
|
|
|
7592 |
_elem2 = iprot.readString();
|
|
|
7593 |
this.success.add(_elem2);
|
| 4622 |
amit.gupta |
7594 |
}
|
|
|
7595 |
iprot.readListEnd();
|
|
|
7596 |
}
|
|
|
7597 |
} else {
|
|
|
7598 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7599 |
}
|
|
|
7600 |
break;
|
|
|
7601 |
default:
|
|
|
7602 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7603 |
}
|
|
|
7604 |
iprot.readFieldEnd();
|
|
|
7605 |
}
|
|
|
7606 |
iprot.readStructEnd();
|
|
|
7607 |
validate();
|
|
|
7608 |
}
|
|
|
7609 |
|
|
|
7610 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7611 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7612 |
|
|
|
7613 |
if (this.isSetSuccess()) {
|
|
|
7614 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7615 |
{
|
|
|
7616 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
| 5361 |
mandeep.dh |
7617 |
for (String _iter3 : this.success)
|
| 4622 |
amit.gupta |
7618 |
{
|
| 5361 |
mandeep.dh |
7619 |
oprot.writeString(_iter3);
|
| 4622 |
amit.gupta |
7620 |
}
|
|
|
7621 |
oprot.writeListEnd();
|
|
|
7622 |
}
|
|
|
7623 |
oprot.writeFieldEnd();
|
|
|
7624 |
}
|
|
|
7625 |
oprot.writeFieldStop();
|
|
|
7626 |
oprot.writeStructEnd();
|
|
|
7627 |
}
|
|
|
7628 |
|
|
|
7629 |
@Override
|
|
|
7630 |
public String toString() {
|
|
|
7631 |
StringBuilder sb = new StringBuilder("getItemNumbers_result(");
|
|
|
7632 |
boolean first = true;
|
|
|
7633 |
|
|
|
7634 |
sb.append("success:");
|
|
|
7635 |
if (this.success == null) {
|
|
|
7636 |
sb.append("null");
|
|
|
7637 |
} else {
|
|
|
7638 |
sb.append(this.success);
|
|
|
7639 |
}
|
|
|
7640 |
first = false;
|
|
|
7641 |
sb.append(")");
|
|
|
7642 |
return sb.toString();
|
|
|
7643 |
}
|
|
|
7644 |
|
|
|
7645 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7646 |
// check for required fields
|
|
|
7647 |
}
|
|
|
7648 |
|
|
|
7649 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7650 |
try {
|
|
|
7651 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7652 |
} catch (org.apache.thrift.TException te) {
|
|
|
7653 |
throw new java.io.IOException(te);
|
|
|
7654 |
}
|
|
|
7655 |
}
|
|
|
7656 |
|
|
|
7657 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7658 |
try {
|
|
|
7659 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7660 |
} catch (org.apache.thrift.TException te) {
|
|
|
7661 |
throw new java.io.IOException(te);
|
|
|
7662 |
}
|
|
|
7663 |
}
|
|
|
7664 |
|
|
|
7665 |
}
|
|
|
7666 |
|
| 5110 |
mandeep.dh |
7667 |
public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7668 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
|
|
|
7669 |
|
|
|
7670 |
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);
|
|
|
7671 |
|
|
|
7672 |
private String itemNumber; // required
|
|
|
7673 |
|
|
|
7674 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7675 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7676 |
ITEM_NUMBER((short)1, "itemNumber");
|
|
|
7677 |
|
|
|
7678 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7679 |
|
|
|
7680 |
static {
|
|
|
7681 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7682 |
byName.put(field.getFieldName(), field);
|
|
|
7683 |
}
|
|
|
7684 |
}
|
|
|
7685 |
|
|
|
7686 |
/**
|
|
|
7687 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7688 |
*/
|
|
|
7689 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7690 |
switch(fieldId) {
|
|
|
7691 |
case 1: // ITEM_NUMBER
|
|
|
7692 |
return ITEM_NUMBER;
|
|
|
7693 |
default:
|
|
|
7694 |
return null;
|
|
|
7695 |
}
|
|
|
7696 |
}
|
|
|
7697 |
|
|
|
7698 |
/**
|
|
|
7699 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7700 |
* if it is not found.
|
|
|
7701 |
*/
|
|
|
7702 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7703 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7704 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7705 |
return fields;
|
|
|
7706 |
}
|
|
|
7707 |
|
|
|
7708 |
/**
|
|
|
7709 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7710 |
*/
|
|
|
7711 |
public static _Fields findByName(String name) {
|
|
|
7712 |
return byName.get(name);
|
|
|
7713 |
}
|
|
|
7714 |
|
|
|
7715 |
private final short _thriftId;
|
|
|
7716 |
private final String _fieldName;
|
|
|
7717 |
|
|
|
7718 |
_Fields(short thriftId, String fieldName) {
|
|
|
7719 |
_thriftId = thriftId;
|
|
|
7720 |
_fieldName = fieldName;
|
|
|
7721 |
}
|
|
|
7722 |
|
|
|
7723 |
public short getThriftFieldId() {
|
|
|
7724 |
return _thriftId;
|
|
|
7725 |
}
|
|
|
7726 |
|
|
|
7727 |
public String getFieldName() {
|
|
|
7728 |
return _fieldName;
|
|
|
7729 |
}
|
|
|
7730 |
}
|
|
|
7731 |
|
|
|
7732 |
// isset id assignments
|
|
|
7733 |
|
|
|
7734 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7735 |
static {
|
|
|
7736 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7737 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7738 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
7739 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7740 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
|
|
|
7741 |
}
|
|
|
7742 |
|
|
|
7743 |
public getItemIds_args() {
|
|
|
7744 |
}
|
|
|
7745 |
|
|
|
7746 |
public getItemIds_args(
|
|
|
7747 |
String itemNumber)
|
|
|
7748 |
{
|
|
|
7749 |
this();
|
|
|
7750 |
this.itemNumber = itemNumber;
|
|
|
7751 |
}
|
|
|
7752 |
|
|
|
7753 |
/**
|
|
|
7754 |
* Performs a deep copy on <i>other</i>.
|
|
|
7755 |
*/
|
|
|
7756 |
public getItemIds_args(getItemIds_args other) {
|
|
|
7757 |
if (other.isSetItemNumber()) {
|
|
|
7758 |
this.itemNumber = other.itemNumber;
|
|
|
7759 |
}
|
|
|
7760 |
}
|
|
|
7761 |
|
|
|
7762 |
public getItemIds_args deepCopy() {
|
|
|
7763 |
return new getItemIds_args(this);
|
|
|
7764 |
}
|
|
|
7765 |
|
|
|
7766 |
@Override
|
|
|
7767 |
public void clear() {
|
|
|
7768 |
this.itemNumber = null;
|
|
|
7769 |
}
|
|
|
7770 |
|
|
|
7771 |
public String getItemNumber() {
|
|
|
7772 |
return this.itemNumber;
|
|
|
7773 |
}
|
|
|
7774 |
|
|
|
7775 |
public void setItemNumber(String itemNumber) {
|
|
|
7776 |
this.itemNumber = itemNumber;
|
|
|
7777 |
}
|
|
|
7778 |
|
|
|
7779 |
public void unsetItemNumber() {
|
|
|
7780 |
this.itemNumber = null;
|
|
|
7781 |
}
|
|
|
7782 |
|
|
|
7783 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
7784 |
public boolean isSetItemNumber() {
|
|
|
7785 |
return this.itemNumber != null;
|
|
|
7786 |
}
|
|
|
7787 |
|
|
|
7788 |
public void setItemNumberIsSet(boolean value) {
|
|
|
7789 |
if (!value) {
|
|
|
7790 |
this.itemNumber = null;
|
|
|
7791 |
}
|
|
|
7792 |
}
|
|
|
7793 |
|
|
|
7794 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7795 |
switch (field) {
|
|
|
7796 |
case ITEM_NUMBER:
|
|
|
7797 |
if (value == null) {
|
|
|
7798 |
unsetItemNumber();
|
|
|
7799 |
} else {
|
|
|
7800 |
setItemNumber((String)value);
|
|
|
7801 |
}
|
|
|
7802 |
break;
|
|
|
7803 |
|
|
|
7804 |
}
|
|
|
7805 |
}
|
|
|
7806 |
|
|
|
7807 |
public Object getFieldValue(_Fields field) {
|
|
|
7808 |
switch (field) {
|
|
|
7809 |
case ITEM_NUMBER:
|
|
|
7810 |
return getItemNumber();
|
|
|
7811 |
|
|
|
7812 |
}
|
|
|
7813 |
throw new IllegalStateException();
|
|
|
7814 |
}
|
|
|
7815 |
|
|
|
7816 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7817 |
public boolean isSet(_Fields field) {
|
|
|
7818 |
if (field == null) {
|
|
|
7819 |
throw new IllegalArgumentException();
|
|
|
7820 |
}
|
|
|
7821 |
|
|
|
7822 |
switch (field) {
|
|
|
7823 |
case ITEM_NUMBER:
|
|
|
7824 |
return isSetItemNumber();
|
|
|
7825 |
}
|
|
|
7826 |
throw new IllegalStateException();
|
|
|
7827 |
}
|
|
|
7828 |
|
|
|
7829 |
@Override
|
|
|
7830 |
public boolean equals(Object that) {
|
|
|
7831 |
if (that == null)
|
|
|
7832 |
return false;
|
|
|
7833 |
if (that instanceof getItemIds_args)
|
|
|
7834 |
return this.equals((getItemIds_args)that);
|
|
|
7835 |
return false;
|
|
|
7836 |
}
|
|
|
7837 |
|
|
|
7838 |
public boolean equals(getItemIds_args that) {
|
|
|
7839 |
if (that == null)
|
|
|
7840 |
return false;
|
|
|
7841 |
|
|
|
7842 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
7843 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
7844 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
7845 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
7846 |
return false;
|
|
|
7847 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
7848 |
return false;
|
|
|
7849 |
}
|
|
|
7850 |
|
|
|
7851 |
return true;
|
|
|
7852 |
}
|
|
|
7853 |
|
|
|
7854 |
@Override
|
|
|
7855 |
public int hashCode() {
|
|
|
7856 |
return 0;
|
|
|
7857 |
}
|
|
|
7858 |
|
|
|
7859 |
public int compareTo(getItemIds_args other) {
|
|
|
7860 |
if (!getClass().equals(other.getClass())) {
|
|
|
7861 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7862 |
}
|
|
|
7863 |
|
|
|
7864 |
int lastComparison = 0;
|
|
|
7865 |
getItemIds_args typedOther = (getItemIds_args)other;
|
|
|
7866 |
|
|
|
7867 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
7868 |
if (lastComparison != 0) {
|
|
|
7869 |
return lastComparison;
|
|
|
7870 |
}
|
|
|
7871 |
if (isSetItemNumber()) {
|
|
|
7872 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
7873 |
if (lastComparison != 0) {
|
|
|
7874 |
return lastComparison;
|
|
|
7875 |
}
|
|
|
7876 |
}
|
|
|
7877 |
return 0;
|
|
|
7878 |
}
|
|
|
7879 |
|
|
|
7880 |
public _Fields fieldForId(int fieldId) {
|
|
|
7881 |
return _Fields.findByThriftId(fieldId);
|
|
|
7882 |
}
|
|
|
7883 |
|
|
|
7884 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7885 |
org.apache.thrift.protocol.TField field;
|
|
|
7886 |
iprot.readStructBegin();
|
|
|
7887 |
while (true)
|
|
|
7888 |
{
|
|
|
7889 |
field = iprot.readFieldBegin();
|
|
|
7890 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7891 |
break;
|
|
|
7892 |
}
|
|
|
7893 |
switch (field.id) {
|
|
|
7894 |
case 1: // ITEM_NUMBER
|
|
|
7895 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7896 |
this.itemNumber = iprot.readString();
|
|
|
7897 |
} else {
|
|
|
7898 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7899 |
}
|
|
|
7900 |
break;
|
|
|
7901 |
default:
|
|
|
7902 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7903 |
}
|
|
|
7904 |
iprot.readFieldEnd();
|
|
|
7905 |
}
|
|
|
7906 |
iprot.readStructEnd();
|
|
|
7907 |
validate();
|
|
|
7908 |
}
|
|
|
7909 |
|
|
|
7910 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7911 |
validate();
|
|
|
7912 |
|
|
|
7913 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7914 |
if (this.itemNumber != null) {
|
|
|
7915 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
7916 |
oprot.writeString(this.itemNumber);
|
|
|
7917 |
oprot.writeFieldEnd();
|
|
|
7918 |
}
|
|
|
7919 |
oprot.writeFieldStop();
|
|
|
7920 |
oprot.writeStructEnd();
|
|
|
7921 |
}
|
|
|
7922 |
|
|
|
7923 |
@Override
|
|
|
7924 |
public String toString() {
|
|
|
7925 |
StringBuilder sb = new StringBuilder("getItemIds_args(");
|
|
|
7926 |
boolean first = true;
|
|
|
7927 |
|
|
|
7928 |
sb.append("itemNumber:");
|
|
|
7929 |
if (this.itemNumber == null) {
|
|
|
7930 |
sb.append("null");
|
|
|
7931 |
} else {
|
|
|
7932 |
sb.append(this.itemNumber);
|
|
|
7933 |
}
|
|
|
7934 |
first = false;
|
|
|
7935 |
sb.append(")");
|
|
|
7936 |
return sb.toString();
|
|
|
7937 |
}
|
|
|
7938 |
|
|
|
7939 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7940 |
// check for required fields
|
|
|
7941 |
}
|
|
|
7942 |
|
|
|
7943 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7944 |
try {
|
|
|
7945 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7946 |
} catch (org.apache.thrift.TException te) {
|
|
|
7947 |
throw new java.io.IOException(te);
|
|
|
7948 |
}
|
|
|
7949 |
}
|
|
|
7950 |
|
|
|
7951 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7952 |
try {
|
|
|
7953 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7954 |
} catch (org.apache.thrift.TException te) {
|
|
|
7955 |
throw new java.io.IOException(te);
|
|
|
7956 |
}
|
|
|
7957 |
}
|
|
|
7958 |
|
|
|
7959 |
}
|
|
|
7960 |
|
|
|
7961 |
public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7962 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
|
|
|
7963 |
|
|
|
7964 |
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);
|
|
|
7965 |
|
|
|
7966 |
private List<Long> success; // required
|
|
|
7967 |
|
|
|
7968 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7969 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7970 |
SUCCESS((short)0, "success");
|
|
|
7971 |
|
|
|
7972 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7973 |
|
|
|
7974 |
static {
|
|
|
7975 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7976 |
byName.put(field.getFieldName(), field);
|
|
|
7977 |
}
|
|
|
7978 |
}
|
|
|
7979 |
|
|
|
7980 |
/**
|
|
|
7981 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7982 |
*/
|
|
|
7983 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7984 |
switch(fieldId) {
|
|
|
7985 |
case 0: // SUCCESS
|
|
|
7986 |
return SUCCESS;
|
|
|
7987 |
default:
|
|
|
7988 |
return null;
|
|
|
7989 |
}
|
|
|
7990 |
}
|
|
|
7991 |
|
|
|
7992 |
/**
|
|
|
7993 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7994 |
* if it is not found.
|
|
|
7995 |
*/
|
|
|
7996 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7997 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7998 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7999 |
return fields;
|
|
|
8000 |
}
|
|
|
8001 |
|
|
|
8002 |
/**
|
|
|
8003 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8004 |
*/
|
|
|
8005 |
public static _Fields findByName(String name) {
|
|
|
8006 |
return byName.get(name);
|
|
|
8007 |
}
|
|
|
8008 |
|
|
|
8009 |
private final short _thriftId;
|
|
|
8010 |
private final String _fieldName;
|
|
|
8011 |
|
|
|
8012 |
_Fields(short thriftId, String fieldName) {
|
|
|
8013 |
_thriftId = thriftId;
|
|
|
8014 |
_fieldName = fieldName;
|
|
|
8015 |
}
|
|
|
8016 |
|
|
|
8017 |
public short getThriftFieldId() {
|
|
|
8018 |
return _thriftId;
|
|
|
8019 |
}
|
|
|
8020 |
|
|
|
8021 |
public String getFieldName() {
|
|
|
8022 |
return _fieldName;
|
|
|
8023 |
}
|
|
|
8024 |
}
|
|
|
8025 |
|
|
|
8026 |
// isset id assignments
|
|
|
8027 |
|
|
|
8028 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8029 |
static {
|
|
|
8030 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8031 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8032 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8033 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
8034 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8035 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
|
|
|
8036 |
}
|
|
|
8037 |
|
|
|
8038 |
public getItemIds_result() {
|
|
|
8039 |
}
|
|
|
8040 |
|
|
|
8041 |
public getItemIds_result(
|
|
|
8042 |
List<Long> success)
|
|
|
8043 |
{
|
|
|
8044 |
this();
|
|
|
8045 |
this.success = success;
|
|
|
8046 |
}
|
|
|
8047 |
|
|
|
8048 |
/**
|
|
|
8049 |
* Performs a deep copy on <i>other</i>.
|
|
|
8050 |
*/
|
|
|
8051 |
public getItemIds_result(getItemIds_result other) {
|
|
|
8052 |
if (other.isSetSuccess()) {
|
|
|
8053 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
8054 |
for (Long other_element : other.success) {
|
|
|
8055 |
__this__success.add(other_element);
|
|
|
8056 |
}
|
|
|
8057 |
this.success = __this__success;
|
|
|
8058 |
}
|
|
|
8059 |
}
|
|
|
8060 |
|
|
|
8061 |
public getItemIds_result deepCopy() {
|
|
|
8062 |
return new getItemIds_result(this);
|
|
|
8063 |
}
|
|
|
8064 |
|
|
|
8065 |
@Override
|
|
|
8066 |
public void clear() {
|
|
|
8067 |
this.success = null;
|
|
|
8068 |
}
|
|
|
8069 |
|
|
|
8070 |
public int getSuccessSize() {
|
|
|
8071 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8072 |
}
|
|
|
8073 |
|
|
|
8074 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
8075 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8076 |
}
|
|
|
8077 |
|
|
|
8078 |
public void addToSuccess(long elem) {
|
|
|
8079 |
if (this.success == null) {
|
|
|
8080 |
this.success = new ArrayList<Long>();
|
|
|
8081 |
}
|
|
|
8082 |
this.success.add(elem);
|
|
|
8083 |
}
|
|
|
8084 |
|
|
|
8085 |
public List<Long> getSuccess() {
|
|
|
8086 |
return this.success;
|
|
|
8087 |
}
|
|
|
8088 |
|
|
|
8089 |
public void setSuccess(List<Long> success) {
|
|
|
8090 |
this.success = success;
|
|
|
8091 |
}
|
|
|
8092 |
|
|
|
8093 |
public void unsetSuccess() {
|
|
|
8094 |
this.success = null;
|
|
|
8095 |
}
|
|
|
8096 |
|
|
|
8097 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8098 |
public boolean isSetSuccess() {
|
|
|
8099 |
return this.success != null;
|
|
|
8100 |
}
|
|
|
8101 |
|
|
|
8102 |
public void setSuccessIsSet(boolean value) {
|
|
|
8103 |
if (!value) {
|
|
|
8104 |
this.success = null;
|
|
|
8105 |
}
|
|
|
8106 |
}
|
|
|
8107 |
|
|
|
8108 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8109 |
switch (field) {
|
|
|
8110 |
case SUCCESS:
|
|
|
8111 |
if (value == null) {
|
|
|
8112 |
unsetSuccess();
|
|
|
8113 |
} else {
|
|
|
8114 |
setSuccess((List<Long>)value);
|
|
|
8115 |
}
|
|
|
8116 |
break;
|
|
|
8117 |
|
|
|
8118 |
}
|
|
|
8119 |
}
|
|
|
8120 |
|
|
|
8121 |
public Object getFieldValue(_Fields field) {
|
|
|
8122 |
switch (field) {
|
|
|
8123 |
case SUCCESS:
|
|
|
8124 |
return getSuccess();
|
|
|
8125 |
|
|
|
8126 |
}
|
|
|
8127 |
throw new IllegalStateException();
|
|
|
8128 |
}
|
|
|
8129 |
|
|
|
8130 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8131 |
public boolean isSet(_Fields field) {
|
|
|
8132 |
if (field == null) {
|
|
|
8133 |
throw new IllegalArgumentException();
|
|
|
8134 |
}
|
|
|
8135 |
|
|
|
8136 |
switch (field) {
|
|
|
8137 |
case SUCCESS:
|
|
|
8138 |
return isSetSuccess();
|
|
|
8139 |
}
|
|
|
8140 |
throw new IllegalStateException();
|
|
|
8141 |
}
|
|
|
8142 |
|
|
|
8143 |
@Override
|
|
|
8144 |
public boolean equals(Object that) {
|
|
|
8145 |
if (that == null)
|
|
|
8146 |
return false;
|
|
|
8147 |
if (that instanceof getItemIds_result)
|
|
|
8148 |
return this.equals((getItemIds_result)that);
|
|
|
8149 |
return false;
|
|
|
8150 |
}
|
|
|
8151 |
|
|
|
8152 |
public boolean equals(getItemIds_result that) {
|
|
|
8153 |
if (that == null)
|
|
|
8154 |
return false;
|
|
|
8155 |
|
|
|
8156 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8157 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8158 |
if (this_present_success || that_present_success) {
|
|
|
8159 |
if (!(this_present_success && that_present_success))
|
|
|
8160 |
return false;
|
|
|
8161 |
if (!this.success.equals(that.success))
|
|
|
8162 |
return false;
|
|
|
8163 |
}
|
|
|
8164 |
|
|
|
8165 |
return true;
|
|
|
8166 |
}
|
|
|
8167 |
|
|
|
8168 |
@Override
|
|
|
8169 |
public int hashCode() {
|
|
|
8170 |
return 0;
|
|
|
8171 |
}
|
|
|
8172 |
|
|
|
8173 |
public int compareTo(getItemIds_result other) {
|
|
|
8174 |
if (!getClass().equals(other.getClass())) {
|
|
|
8175 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8176 |
}
|
|
|
8177 |
|
|
|
8178 |
int lastComparison = 0;
|
|
|
8179 |
getItemIds_result typedOther = (getItemIds_result)other;
|
|
|
8180 |
|
|
|
8181 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8182 |
if (lastComparison != 0) {
|
|
|
8183 |
return lastComparison;
|
|
|
8184 |
}
|
|
|
8185 |
if (isSetSuccess()) {
|
|
|
8186 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8187 |
if (lastComparison != 0) {
|
|
|
8188 |
return lastComparison;
|
|
|
8189 |
}
|
|
|
8190 |
}
|
|
|
8191 |
return 0;
|
|
|
8192 |
}
|
|
|
8193 |
|
|
|
8194 |
public _Fields fieldForId(int fieldId) {
|
|
|
8195 |
return _Fields.findByThriftId(fieldId);
|
|
|
8196 |
}
|
|
|
8197 |
|
|
|
8198 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8199 |
org.apache.thrift.protocol.TField field;
|
|
|
8200 |
iprot.readStructBegin();
|
|
|
8201 |
while (true)
|
|
|
8202 |
{
|
|
|
8203 |
field = iprot.readFieldBegin();
|
|
|
8204 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8205 |
break;
|
|
|
8206 |
}
|
|
|
8207 |
switch (field.id) {
|
|
|
8208 |
case 0: // SUCCESS
|
|
|
8209 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8210 |
{
|
| 5361 |
mandeep.dh |
8211 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
8212 |
this.success = new ArrayList<Long>(_list4.size);
|
|
|
8213 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 5110 |
mandeep.dh |
8214 |
{
|
| 5361 |
mandeep.dh |
8215 |
long _elem6; // required
|
|
|
8216 |
_elem6 = iprot.readI64();
|
|
|
8217 |
this.success.add(_elem6);
|
| 5110 |
mandeep.dh |
8218 |
}
|
|
|
8219 |
iprot.readListEnd();
|
|
|
8220 |
}
|
|
|
8221 |
} else {
|
|
|
8222 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8223 |
}
|
|
|
8224 |
break;
|
|
|
8225 |
default:
|
|
|
8226 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8227 |
}
|
|
|
8228 |
iprot.readFieldEnd();
|
|
|
8229 |
}
|
|
|
8230 |
iprot.readStructEnd();
|
|
|
8231 |
validate();
|
|
|
8232 |
}
|
|
|
8233 |
|
|
|
8234 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8235 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8236 |
|
|
|
8237 |
if (this.isSetSuccess()) {
|
|
|
8238 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8239 |
{
|
|
|
8240 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 5361 |
mandeep.dh |
8241 |
for (long _iter7 : this.success)
|
| 5110 |
mandeep.dh |
8242 |
{
|
| 5361 |
mandeep.dh |
8243 |
oprot.writeI64(_iter7);
|
| 5110 |
mandeep.dh |
8244 |
}
|
|
|
8245 |
oprot.writeListEnd();
|
|
|
8246 |
}
|
|
|
8247 |
oprot.writeFieldEnd();
|
|
|
8248 |
}
|
|
|
8249 |
oprot.writeFieldStop();
|
|
|
8250 |
oprot.writeStructEnd();
|
|
|
8251 |
}
|
|
|
8252 |
|
|
|
8253 |
@Override
|
|
|
8254 |
public String toString() {
|
|
|
8255 |
StringBuilder sb = new StringBuilder("getItemIds_result(");
|
|
|
8256 |
boolean first = true;
|
|
|
8257 |
|
|
|
8258 |
sb.append("success:");
|
|
|
8259 |
if (this.success == null) {
|
|
|
8260 |
sb.append("null");
|
|
|
8261 |
} else {
|
|
|
8262 |
sb.append(this.success);
|
|
|
8263 |
}
|
|
|
8264 |
first = false;
|
|
|
8265 |
sb.append(")");
|
|
|
8266 |
return sb.toString();
|
|
|
8267 |
}
|
|
|
8268 |
|
|
|
8269 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8270 |
// check for required fields
|
|
|
8271 |
}
|
|
|
8272 |
|
|
|
8273 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8274 |
try {
|
|
|
8275 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8276 |
} catch (org.apache.thrift.TException te) {
|
|
|
8277 |
throw new java.io.IOException(te);
|
|
|
8278 |
}
|
|
|
8279 |
}
|
|
|
8280 |
|
|
|
8281 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8282 |
try {
|
|
|
8283 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8284 |
} catch (org.apache.thrift.TException te) {
|
|
|
8285 |
throw new java.io.IOException(te);
|
|
|
8286 |
}
|
|
|
8287 |
}
|
|
|
8288 |
|
|
|
8289 |
}
|
|
|
8290 |
|
| 5185 |
mandeep.dh |
8291 |
public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8292 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
|
|
|
8293 |
|
|
|
8294 |
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);
|
|
|
8295 |
|
|
|
8296 |
private ScanType lastScanType; // required
|
|
|
8297 |
|
|
|
8298 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8299 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8300 |
/**
|
|
|
8301 |
*
|
|
|
8302 |
* @see ScanType
|
|
|
8303 |
*/
|
|
|
8304 |
LAST_SCAN_TYPE((short)1, "lastScanType");
|
|
|
8305 |
|
|
|
8306 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8307 |
|
|
|
8308 |
static {
|
|
|
8309 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8310 |
byName.put(field.getFieldName(), field);
|
|
|
8311 |
}
|
|
|
8312 |
}
|
|
|
8313 |
|
|
|
8314 |
/**
|
|
|
8315 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8316 |
*/
|
|
|
8317 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8318 |
switch(fieldId) {
|
|
|
8319 |
case 1: // LAST_SCAN_TYPE
|
|
|
8320 |
return LAST_SCAN_TYPE;
|
|
|
8321 |
default:
|
|
|
8322 |
return null;
|
|
|
8323 |
}
|
|
|
8324 |
}
|
|
|
8325 |
|
|
|
8326 |
/**
|
|
|
8327 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8328 |
* if it is not found.
|
|
|
8329 |
*/
|
|
|
8330 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8331 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8332 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8333 |
return fields;
|
|
|
8334 |
}
|
|
|
8335 |
|
|
|
8336 |
/**
|
|
|
8337 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8338 |
*/
|
|
|
8339 |
public static _Fields findByName(String name) {
|
|
|
8340 |
return byName.get(name);
|
|
|
8341 |
}
|
|
|
8342 |
|
|
|
8343 |
private final short _thriftId;
|
|
|
8344 |
private final String _fieldName;
|
|
|
8345 |
|
|
|
8346 |
_Fields(short thriftId, String fieldName) {
|
|
|
8347 |
_thriftId = thriftId;
|
|
|
8348 |
_fieldName = fieldName;
|
|
|
8349 |
}
|
|
|
8350 |
|
|
|
8351 |
public short getThriftFieldId() {
|
|
|
8352 |
return _thriftId;
|
|
|
8353 |
}
|
|
|
8354 |
|
|
|
8355 |
public String getFieldName() {
|
|
|
8356 |
return _fieldName;
|
|
|
8357 |
}
|
|
|
8358 |
}
|
|
|
8359 |
|
|
|
8360 |
// isset id assignments
|
|
|
8361 |
|
|
|
8362 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8363 |
static {
|
|
|
8364 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8365 |
tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8366 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
8367 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8368 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
|
|
|
8369 |
}
|
|
|
8370 |
|
|
|
8371 |
public getInventoryItemsFromLastScanType_args() {
|
|
|
8372 |
}
|
|
|
8373 |
|
|
|
8374 |
public getInventoryItemsFromLastScanType_args(
|
|
|
8375 |
ScanType lastScanType)
|
|
|
8376 |
{
|
|
|
8377 |
this();
|
|
|
8378 |
this.lastScanType = lastScanType;
|
|
|
8379 |
}
|
|
|
8380 |
|
|
|
8381 |
/**
|
|
|
8382 |
* Performs a deep copy on <i>other</i>.
|
|
|
8383 |
*/
|
|
|
8384 |
public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
|
|
|
8385 |
if (other.isSetLastScanType()) {
|
|
|
8386 |
this.lastScanType = other.lastScanType;
|
|
|
8387 |
}
|
|
|
8388 |
}
|
|
|
8389 |
|
|
|
8390 |
public getInventoryItemsFromLastScanType_args deepCopy() {
|
|
|
8391 |
return new getInventoryItemsFromLastScanType_args(this);
|
|
|
8392 |
}
|
|
|
8393 |
|
|
|
8394 |
@Override
|
|
|
8395 |
public void clear() {
|
|
|
8396 |
this.lastScanType = null;
|
|
|
8397 |
}
|
|
|
8398 |
|
|
|
8399 |
/**
|
|
|
8400 |
*
|
|
|
8401 |
* @see ScanType
|
|
|
8402 |
*/
|
|
|
8403 |
public ScanType getLastScanType() {
|
|
|
8404 |
return this.lastScanType;
|
|
|
8405 |
}
|
|
|
8406 |
|
|
|
8407 |
/**
|
|
|
8408 |
*
|
|
|
8409 |
* @see ScanType
|
|
|
8410 |
*/
|
|
|
8411 |
public void setLastScanType(ScanType lastScanType) {
|
|
|
8412 |
this.lastScanType = lastScanType;
|
|
|
8413 |
}
|
|
|
8414 |
|
|
|
8415 |
public void unsetLastScanType() {
|
|
|
8416 |
this.lastScanType = null;
|
|
|
8417 |
}
|
|
|
8418 |
|
|
|
8419 |
/** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
|
|
|
8420 |
public boolean isSetLastScanType() {
|
|
|
8421 |
return this.lastScanType != null;
|
|
|
8422 |
}
|
|
|
8423 |
|
|
|
8424 |
public void setLastScanTypeIsSet(boolean value) {
|
|
|
8425 |
if (!value) {
|
|
|
8426 |
this.lastScanType = null;
|
|
|
8427 |
}
|
|
|
8428 |
}
|
|
|
8429 |
|
|
|
8430 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8431 |
switch (field) {
|
|
|
8432 |
case LAST_SCAN_TYPE:
|
|
|
8433 |
if (value == null) {
|
|
|
8434 |
unsetLastScanType();
|
|
|
8435 |
} else {
|
|
|
8436 |
setLastScanType((ScanType)value);
|
|
|
8437 |
}
|
|
|
8438 |
break;
|
|
|
8439 |
|
|
|
8440 |
}
|
|
|
8441 |
}
|
|
|
8442 |
|
|
|
8443 |
public Object getFieldValue(_Fields field) {
|
|
|
8444 |
switch (field) {
|
|
|
8445 |
case LAST_SCAN_TYPE:
|
|
|
8446 |
return getLastScanType();
|
|
|
8447 |
|
|
|
8448 |
}
|
|
|
8449 |
throw new IllegalStateException();
|
|
|
8450 |
}
|
|
|
8451 |
|
|
|
8452 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8453 |
public boolean isSet(_Fields field) {
|
|
|
8454 |
if (field == null) {
|
|
|
8455 |
throw new IllegalArgumentException();
|
|
|
8456 |
}
|
|
|
8457 |
|
|
|
8458 |
switch (field) {
|
|
|
8459 |
case LAST_SCAN_TYPE:
|
|
|
8460 |
return isSetLastScanType();
|
|
|
8461 |
}
|
|
|
8462 |
throw new IllegalStateException();
|
|
|
8463 |
}
|
|
|
8464 |
|
|
|
8465 |
@Override
|
|
|
8466 |
public boolean equals(Object that) {
|
|
|
8467 |
if (that == null)
|
|
|
8468 |
return false;
|
|
|
8469 |
if (that instanceof getInventoryItemsFromLastScanType_args)
|
|
|
8470 |
return this.equals((getInventoryItemsFromLastScanType_args)that);
|
|
|
8471 |
return false;
|
|
|
8472 |
}
|
|
|
8473 |
|
|
|
8474 |
public boolean equals(getInventoryItemsFromLastScanType_args that) {
|
|
|
8475 |
if (that == null)
|
|
|
8476 |
return false;
|
|
|
8477 |
|
|
|
8478 |
boolean this_present_lastScanType = true && this.isSetLastScanType();
|
|
|
8479 |
boolean that_present_lastScanType = true && that.isSetLastScanType();
|
|
|
8480 |
if (this_present_lastScanType || that_present_lastScanType) {
|
|
|
8481 |
if (!(this_present_lastScanType && that_present_lastScanType))
|
|
|
8482 |
return false;
|
|
|
8483 |
if (!this.lastScanType.equals(that.lastScanType))
|
|
|
8484 |
return false;
|
|
|
8485 |
}
|
|
|
8486 |
|
|
|
8487 |
return true;
|
|
|
8488 |
}
|
|
|
8489 |
|
|
|
8490 |
@Override
|
|
|
8491 |
public int hashCode() {
|
|
|
8492 |
return 0;
|
|
|
8493 |
}
|
|
|
8494 |
|
|
|
8495 |
public int compareTo(getInventoryItemsFromLastScanType_args other) {
|
|
|
8496 |
if (!getClass().equals(other.getClass())) {
|
|
|
8497 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8498 |
}
|
|
|
8499 |
|
|
|
8500 |
int lastComparison = 0;
|
|
|
8501 |
getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
|
|
|
8502 |
|
|
|
8503 |
lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
|
|
|
8504 |
if (lastComparison != 0) {
|
|
|
8505 |
return lastComparison;
|
|
|
8506 |
}
|
|
|
8507 |
if (isSetLastScanType()) {
|
|
|
8508 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
|
|
|
8509 |
if (lastComparison != 0) {
|
|
|
8510 |
return lastComparison;
|
|
|
8511 |
}
|
|
|
8512 |
}
|
|
|
8513 |
return 0;
|
|
|
8514 |
}
|
|
|
8515 |
|
|
|
8516 |
public _Fields fieldForId(int fieldId) {
|
|
|
8517 |
return _Fields.findByThriftId(fieldId);
|
|
|
8518 |
}
|
|
|
8519 |
|
|
|
8520 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8521 |
org.apache.thrift.protocol.TField field;
|
|
|
8522 |
iprot.readStructBegin();
|
|
|
8523 |
while (true)
|
|
|
8524 |
{
|
|
|
8525 |
field = iprot.readFieldBegin();
|
|
|
8526 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8527 |
break;
|
|
|
8528 |
}
|
|
|
8529 |
switch (field.id) {
|
|
|
8530 |
case 1: // LAST_SCAN_TYPE
|
|
|
8531 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
8532 |
this.lastScanType = ScanType.findByValue(iprot.readI32());
|
|
|
8533 |
} else {
|
|
|
8534 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8535 |
}
|
|
|
8536 |
break;
|
|
|
8537 |
default:
|
|
|
8538 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8539 |
}
|
|
|
8540 |
iprot.readFieldEnd();
|
|
|
8541 |
}
|
|
|
8542 |
iprot.readStructEnd();
|
|
|
8543 |
validate();
|
|
|
8544 |
}
|
|
|
8545 |
|
|
|
8546 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8547 |
validate();
|
|
|
8548 |
|
|
|
8549 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8550 |
if (this.lastScanType != null) {
|
|
|
8551 |
oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
|
|
|
8552 |
oprot.writeI32(this.lastScanType.getValue());
|
|
|
8553 |
oprot.writeFieldEnd();
|
|
|
8554 |
}
|
|
|
8555 |
oprot.writeFieldStop();
|
|
|
8556 |
oprot.writeStructEnd();
|
|
|
8557 |
}
|
|
|
8558 |
|
|
|
8559 |
@Override
|
|
|
8560 |
public String toString() {
|
|
|
8561 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
|
|
|
8562 |
boolean first = true;
|
|
|
8563 |
|
|
|
8564 |
sb.append("lastScanType:");
|
|
|
8565 |
if (this.lastScanType == null) {
|
|
|
8566 |
sb.append("null");
|
|
|
8567 |
} else {
|
|
|
8568 |
sb.append(this.lastScanType);
|
|
|
8569 |
}
|
|
|
8570 |
first = false;
|
|
|
8571 |
sb.append(")");
|
|
|
8572 |
return sb.toString();
|
|
|
8573 |
}
|
|
|
8574 |
|
|
|
8575 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8576 |
// check for required fields
|
|
|
8577 |
}
|
|
|
8578 |
|
|
|
8579 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8580 |
try {
|
|
|
8581 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8582 |
} catch (org.apache.thrift.TException te) {
|
|
|
8583 |
throw new java.io.IOException(te);
|
|
|
8584 |
}
|
|
|
8585 |
}
|
|
|
8586 |
|
|
|
8587 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8588 |
try {
|
|
|
8589 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8590 |
} catch (org.apache.thrift.TException te) {
|
|
|
8591 |
throw new java.io.IOException(te);
|
|
|
8592 |
}
|
|
|
8593 |
}
|
|
|
8594 |
|
|
|
8595 |
}
|
|
|
8596 |
|
|
|
8597 |
public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8598 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
|
|
|
8599 |
|
|
|
8600 |
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);
|
|
|
8601 |
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);
|
|
|
8602 |
|
|
|
8603 |
private List<InventoryItem> success; // required
|
|
|
8604 |
private WarehouseServiceException wex; // required
|
|
|
8605 |
|
|
|
8606 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8607 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8608 |
SUCCESS((short)0, "success"),
|
|
|
8609 |
WEX((short)1, "wex");
|
|
|
8610 |
|
|
|
8611 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8612 |
|
|
|
8613 |
static {
|
|
|
8614 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8615 |
byName.put(field.getFieldName(), field);
|
|
|
8616 |
}
|
|
|
8617 |
}
|
|
|
8618 |
|
|
|
8619 |
/**
|
|
|
8620 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8621 |
*/
|
|
|
8622 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8623 |
switch(fieldId) {
|
|
|
8624 |
case 0: // SUCCESS
|
|
|
8625 |
return SUCCESS;
|
|
|
8626 |
case 1: // WEX
|
|
|
8627 |
return WEX;
|
|
|
8628 |
default:
|
|
|
8629 |
return null;
|
|
|
8630 |
}
|
|
|
8631 |
}
|
|
|
8632 |
|
|
|
8633 |
/**
|
|
|
8634 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8635 |
* if it is not found.
|
|
|
8636 |
*/
|
|
|
8637 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8638 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8639 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8640 |
return fields;
|
|
|
8641 |
}
|
|
|
8642 |
|
|
|
8643 |
/**
|
|
|
8644 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8645 |
*/
|
|
|
8646 |
public static _Fields findByName(String name) {
|
|
|
8647 |
return byName.get(name);
|
|
|
8648 |
}
|
|
|
8649 |
|
|
|
8650 |
private final short _thriftId;
|
|
|
8651 |
private final String _fieldName;
|
|
|
8652 |
|
|
|
8653 |
_Fields(short thriftId, String fieldName) {
|
|
|
8654 |
_thriftId = thriftId;
|
|
|
8655 |
_fieldName = fieldName;
|
|
|
8656 |
}
|
|
|
8657 |
|
|
|
8658 |
public short getThriftFieldId() {
|
|
|
8659 |
return _thriftId;
|
|
|
8660 |
}
|
|
|
8661 |
|
|
|
8662 |
public String getFieldName() {
|
|
|
8663 |
return _fieldName;
|
|
|
8664 |
}
|
|
|
8665 |
}
|
|
|
8666 |
|
|
|
8667 |
// isset id assignments
|
|
|
8668 |
|
|
|
8669 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8670 |
static {
|
|
|
8671 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8672 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8673 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8674 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
8675 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8676 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8677 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8678 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
|
|
|
8679 |
}
|
|
|
8680 |
|
|
|
8681 |
public getInventoryItemsFromLastScanType_result() {
|
|
|
8682 |
}
|
|
|
8683 |
|
|
|
8684 |
public getInventoryItemsFromLastScanType_result(
|
|
|
8685 |
List<InventoryItem> success,
|
|
|
8686 |
WarehouseServiceException wex)
|
|
|
8687 |
{
|
|
|
8688 |
this();
|
|
|
8689 |
this.success = success;
|
|
|
8690 |
this.wex = wex;
|
|
|
8691 |
}
|
|
|
8692 |
|
|
|
8693 |
/**
|
|
|
8694 |
* Performs a deep copy on <i>other</i>.
|
|
|
8695 |
*/
|
|
|
8696 |
public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
|
|
|
8697 |
if (other.isSetSuccess()) {
|
|
|
8698 |
List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
|
|
|
8699 |
for (InventoryItem other_element : other.success) {
|
|
|
8700 |
__this__success.add(new InventoryItem(other_element));
|
|
|
8701 |
}
|
|
|
8702 |
this.success = __this__success;
|
|
|
8703 |
}
|
|
|
8704 |
if (other.isSetWex()) {
|
|
|
8705 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
8706 |
}
|
|
|
8707 |
}
|
|
|
8708 |
|
|
|
8709 |
public getInventoryItemsFromLastScanType_result deepCopy() {
|
|
|
8710 |
return new getInventoryItemsFromLastScanType_result(this);
|
|
|
8711 |
}
|
|
|
8712 |
|
|
|
8713 |
@Override
|
|
|
8714 |
public void clear() {
|
|
|
8715 |
this.success = null;
|
|
|
8716 |
this.wex = null;
|
|
|
8717 |
}
|
|
|
8718 |
|
|
|
8719 |
public int getSuccessSize() {
|
|
|
8720 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8721 |
}
|
|
|
8722 |
|
|
|
8723 |
public java.util.Iterator<InventoryItem> getSuccessIterator() {
|
|
|
8724 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8725 |
}
|
|
|
8726 |
|
|
|
8727 |
public void addToSuccess(InventoryItem elem) {
|
|
|
8728 |
if (this.success == null) {
|
|
|
8729 |
this.success = new ArrayList<InventoryItem>();
|
|
|
8730 |
}
|
|
|
8731 |
this.success.add(elem);
|
|
|
8732 |
}
|
|
|
8733 |
|
|
|
8734 |
public List<InventoryItem> getSuccess() {
|
|
|
8735 |
return this.success;
|
|
|
8736 |
}
|
|
|
8737 |
|
|
|
8738 |
public void setSuccess(List<InventoryItem> success) {
|
|
|
8739 |
this.success = success;
|
|
|
8740 |
}
|
|
|
8741 |
|
|
|
8742 |
public void unsetSuccess() {
|
|
|
8743 |
this.success = null;
|
|
|
8744 |
}
|
|
|
8745 |
|
|
|
8746 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8747 |
public boolean isSetSuccess() {
|
|
|
8748 |
return this.success != null;
|
|
|
8749 |
}
|
|
|
8750 |
|
|
|
8751 |
public void setSuccessIsSet(boolean value) {
|
|
|
8752 |
if (!value) {
|
|
|
8753 |
this.success = null;
|
|
|
8754 |
}
|
|
|
8755 |
}
|
|
|
8756 |
|
|
|
8757 |
public WarehouseServiceException getWex() {
|
|
|
8758 |
return this.wex;
|
|
|
8759 |
}
|
|
|
8760 |
|
|
|
8761 |
public void setWex(WarehouseServiceException wex) {
|
|
|
8762 |
this.wex = wex;
|
|
|
8763 |
}
|
|
|
8764 |
|
|
|
8765 |
public void unsetWex() {
|
|
|
8766 |
this.wex = null;
|
|
|
8767 |
}
|
|
|
8768 |
|
|
|
8769 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
8770 |
public boolean isSetWex() {
|
|
|
8771 |
return this.wex != null;
|
|
|
8772 |
}
|
|
|
8773 |
|
|
|
8774 |
public void setWexIsSet(boolean value) {
|
|
|
8775 |
if (!value) {
|
|
|
8776 |
this.wex = null;
|
|
|
8777 |
}
|
|
|
8778 |
}
|
|
|
8779 |
|
|
|
8780 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8781 |
switch (field) {
|
|
|
8782 |
case SUCCESS:
|
|
|
8783 |
if (value == null) {
|
|
|
8784 |
unsetSuccess();
|
|
|
8785 |
} else {
|
|
|
8786 |
setSuccess((List<InventoryItem>)value);
|
|
|
8787 |
}
|
|
|
8788 |
break;
|
|
|
8789 |
|
|
|
8790 |
case WEX:
|
|
|
8791 |
if (value == null) {
|
|
|
8792 |
unsetWex();
|
|
|
8793 |
} else {
|
|
|
8794 |
setWex((WarehouseServiceException)value);
|
|
|
8795 |
}
|
|
|
8796 |
break;
|
|
|
8797 |
|
|
|
8798 |
}
|
|
|
8799 |
}
|
|
|
8800 |
|
|
|
8801 |
public Object getFieldValue(_Fields field) {
|
|
|
8802 |
switch (field) {
|
|
|
8803 |
case SUCCESS:
|
|
|
8804 |
return getSuccess();
|
|
|
8805 |
|
|
|
8806 |
case WEX:
|
|
|
8807 |
return getWex();
|
|
|
8808 |
|
|
|
8809 |
}
|
|
|
8810 |
throw new IllegalStateException();
|
|
|
8811 |
}
|
|
|
8812 |
|
|
|
8813 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8814 |
public boolean isSet(_Fields field) {
|
|
|
8815 |
if (field == null) {
|
|
|
8816 |
throw new IllegalArgumentException();
|
|
|
8817 |
}
|
|
|
8818 |
|
|
|
8819 |
switch (field) {
|
|
|
8820 |
case SUCCESS:
|
|
|
8821 |
return isSetSuccess();
|
|
|
8822 |
case WEX:
|
|
|
8823 |
return isSetWex();
|
|
|
8824 |
}
|
|
|
8825 |
throw new IllegalStateException();
|
|
|
8826 |
}
|
|
|
8827 |
|
|
|
8828 |
@Override
|
|
|
8829 |
public boolean equals(Object that) {
|
|
|
8830 |
if (that == null)
|
|
|
8831 |
return false;
|
|
|
8832 |
if (that instanceof getInventoryItemsFromLastScanType_result)
|
|
|
8833 |
return this.equals((getInventoryItemsFromLastScanType_result)that);
|
|
|
8834 |
return false;
|
|
|
8835 |
}
|
|
|
8836 |
|
|
|
8837 |
public boolean equals(getInventoryItemsFromLastScanType_result that) {
|
|
|
8838 |
if (that == null)
|
|
|
8839 |
return false;
|
|
|
8840 |
|
|
|
8841 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8842 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8843 |
if (this_present_success || that_present_success) {
|
|
|
8844 |
if (!(this_present_success && that_present_success))
|
|
|
8845 |
return false;
|
|
|
8846 |
if (!this.success.equals(that.success))
|
|
|
8847 |
return false;
|
|
|
8848 |
}
|
|
|
8849 |
|
|
|
8850 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
8851 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
8852 |
if (this_present_wex || that_present_wex) {
|
|
|
8853 |
if (!(this_present_wex && that_present_wex))
|
|
|
8854 |
return false;
|
|
|
8855 |
if (!this.wex.equals(that.wex))
|
|
|
8856 |
return false;
|
|
|
8857 |
}
|
|
|
8858 |
|
|
|
8859 |
return true;
|
|
|
8860 |
}
|
|
|
8861 |
|
|
|
8862 |
@Override
|
|
|
8863 |
public int hashCode() {
|
|
|
8864 |
return 0;
|
|
|
8865 |
}
|
|
|
8866 |
|
|
|
8867 |
public int compareTo(getInventoryItemsFromLastScanType_result other) {
|
|
|
8868 |
if (!getClass().equals(other.getClass())) {
|
|
|
8869 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8870 |
}
|
|
|
8871 |
|
|
|
8872 |
int lastComparison = 0;
|
|
|
8873 |
getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
|
|
|
8874 |
|
|
|
8875 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8876 |
if (lastComparison != 0) {
|
|
|
8877 |
return lastComparison;
|
|
|
8878 |
}
|
|
|
8879 |
if (isSetSuccess()) {
|
|
|
8880 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8881 |
if (lastComparison != 0) {
|
|
|
8882 |
return lastComparison;
|
|
|
8883 |
}
|
|
|
8884 |
}
|
|
|
8885 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
8886 |
if (lastComparison != 0) {
|
|
|
8887 |
return lastComparison;
|
|
|
8888 |
}
|
|
|
8889 |
if (isSetWex()) {
|
|
|
8890 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
8891 |
if (lastComparison != 0) {
|
|
|
8892 |
return lastComparison;
|
|
|
8893 |
}
|
|
|
8894 |
}
|
|
|
8895 |
return 0;
|
|
|
8896 |
}
|
|
|
8897 |
|
|
|
8898 |
public _Fields fieldForId(int fieldId) {
|
|
|
8899 |
return _Fields.findByThriftId(fieldId);
|
|
|
8900 |
}
|
|
|
8901 |
|
|
|
8902 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8903 |
org.apache.thrift.protocol.TField field;
|
|
|
8904 |
iprot.readStructBegin();
|
|
|
8905 |
while (true)
|
|
|
8906 |
{
|
|
|
8907 |
field = iprot.readFieldBegin();
|
|
|
8908 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8909 |
break;
|
|
|
8910 |
}
|
|
|
8911 |
switch (field.id) {
|
|
|
8912 |
case 0: // SUCCESS
|
|
|
8913 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8914 |
{
|
| 5361 |
mandeep.dh |
8915 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
8916 |
this.success = new ArrayList<InventoryItem>(_list8.size);
|
|
|
8917 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 5185 |
mandeep.dh |
8918 |
{
|
| 5361 |
mandeep.dh |
8919 |
InventoryItem _elem10; // required
|
|
|
8920 |
_elem10 = new InventoryItem();
|
|
|
8921 |
_elem10.read(iprot);
|
|
|
8922 |
this.success.add(_elem10);
|
| 5185 |
mandeep.dh |
8923 |
}
|
|
|
8924 |
iprot.readListEnd();
|
|
|
8925 |
}
|
|
|
8926 |
} else {
|
|
|
8927 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8928 |
}
|
|
|
8929 |
break;
|
|
|
8930 |
case 1: // WEX
|
|
|
8931 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
8932 |
this.wex = new WarehouseServiceException();
|
|
|
8933 |
this.wex.read(iprot);
|
|
|
8934 |
} else {
|
|
|
8935 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8936 |
}
|
|
|
8937 |
break;
|
|
|
8938 |
default:
|
|
|
8939 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8940 |
}
|
|
|
8941 |
iprot.readFieldEnd();
|
|
|
8942 |
}
|
|
|
8943 |
iprot.readStructEnd();
|
|
|
8944 |
validate();
|
|
|
8945 |
}
|
|
|
8946 |
|
|
|
8947 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8948 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8949 |
|
|
|
8950 |
if (this.isSetSuccess()) {
|
|
|
8951 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8952 |
{
|
|
|
8953 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 5361 |
mandeep.dh |
8954 |
for (InventoryItem _iter11 : this.success)
|
| 5185 |
mandeep.dh |
8955 |
{
|
| 5361 |
mandeep.dh |
8956 |
_iter11.write(oprot);
|
| 5185 |
mandeep.dh |
8957 |
}
|
|
|
8958 |
oprot.writeListEnd();
|
|
|
8959 |
}
|
|
|
8960 |
oprot.writeFieldEnd();
|
|
|
8961 |
} else if (this.isSetWex()) {
|
|
|
8962 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
8963 |
this.wex.write(oprot);
|
|
|
8964 |
oprot.writeFieldEnd();
|
|
|
8965 |
}
|
|
|
8966 |
oprot.writeFieldStop();
|
|
|
8967 |
oprot.writeStructEnd();
|
|
|
8968 |
}
|
|
|
8969 |
|
|
|
8970 |
@Override
|
|
|
8971 |
public String toString() {
|
|
|
8972 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
|
|
|
8973 |
boolean first = true;
|
|
|
8974 |
|
|
|
8975 |
sb.append("success:");
|
|
|
8976 |
if (this.success == null) {
|
|
|
8977 |
sb.append("null");
|
|
|
8978 |
} else {
|
|
|
8979 |
sb.append(this.success);
|
|
|
8980 |
}
|
|
|
8981 |
first = false;
|
|
|
8982 |
if (!first) sb.append(", ");
|
|
|
8983 |
sb.append("wex:");
|
|
|
8984 |
if (this.wex == null) {
|
|
|
8985 |
sb.append("null");
|
|
|
8986 |
} else {
|
|
|
8987 |
sb.append(this.wex);
|
|
|
8988 |
}
|
|
|
8989 |
first = false;
|
|
|
8990 |
sb.append(")");
|
|
|
8991 |
return sb.toString();
|
|
|
8992 |
}
|
|
|
8993 |
|
|
|
8994 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8995 |
// check for required fields
|
|
|
8996 |
}
|
|
|
8997 |
|
|
|
8998 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8999 |
try {
|
|
|
9000 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9001 |
} catch (org.apache.thrift.TException te) {
|
|
|
9002 |
throw new java.io.IOException(te);
|
|
|
9003 |
}
|
|
|
9004 |
}
|
|
|
9005 |
|
|
|
9006 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9007 |
try {
|
|
|
9008 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9009 |
} catch (org.apache.thrift.TException te) {
|
|
|
9010 |
throw new java.io.IOException(te);
|
|
|
9011 |
}
|
|
|
9012 |
}
|
|
|
9013 |
|
|
|
9014 |
}
|
|
|
9015 |
|
|
|
9016 |
public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9017 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
|
|
|
9018 |
|
|
|
9019 |
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);
|
|
|
9020 |
|
|
|
9021 |
private long inventoryItemId; // required
|
|
|
9022 |
|
|
|
9023 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9024 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9025 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId");
|
|
|
9026 |
|
|
|
9027 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9028 |
|
|
|
9029 |
static {
|
|
|
9030 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9031 |
byName.put(field.getFieldName(), field);
|
|
|
9032 |
}
|
|
|
9033 |
}
|
|
|
9034 |
|
|
|
9035 |
/**
|
|
|
9036 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9037 |
*/
|
|
|
9038 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9039 |
switch(fieldId) {
|
|
|
9040 |
case 1: // INVENTORY_ITEM_ID
|
|
|
9041 |
return INVENTORY_ITEM_ID;
|
|
|
9042 |
default:
|
|
|
9043 |
return null;
|
|
|
9044 |
}
|
|
|
9045 |
}
|
|
|
9046 |
|
|
|
9047 |
/**
|
|
|
9048 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9049 |
* if it is not found.
|
|
|
9050 |
*/
|
|
|
9051 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9052 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9053 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9054 |
return fields;
|
|
|
9055 |
}
|
|
|
9056 |
|
|
|
9057 |
/**
|
|
|
9058 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9059 |
*/
|
|
|
9060 |
public static _Fields findByName(String name) {
|
|
|
9061 |
return byName.get(name);
|
|
|
9062 |
}
|
|
|
9063 |
|
|
|
9064 |
private final short _thriftId;
|
|
|
9065 |
private final String _fieldName;
|
|
|
9066 |
|
|
|
9067 |
_Fields(short thriftId, String fieldName) {
|
|
|
9068 |
_thriftId = thriftId;
|
|
|
9069 |
_fieldName = fieldName;
|
|
|
9070 |
}
|
|
|
9071 |
|
|
|
9072 |
public short getThriftFieldId() {
|
|
|
9073 |
return _thriftId;
|
|
|
9074 |
}
|
|
|
9075 |
|
|
|
9076 |
public String getFieldName() {
|
|
|
9077 |
return _fieldName;
|
|
|
9078 |
}
|
|
|
9079 |
}
|
|
|
9080 |
|
|
|
9081 |
// isset id assignments
|
|
|
9082 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
|
|
9083 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9084 |
|
|
|
9085 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9086 |
static {
|
|
|
9087 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9088 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9089 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9090 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9091 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
|
|
|
9092 |
}
|
|
|
9093 |
|
|
|
9094 |
public getInventoryItemFromId_args() {
|
|
|
9095 |
}
|
|
|
9096 |
|
|
|
9097 |
public getInventoryItemFromId_args(
|
|
|
9098 |
long inventoryItemId)
|
|
|
9099 |
{
|
|
|
9100 |
this();
|
|
|
9101 |
this.inventoryItemId = inventoryItemId;
|
|
|
9102 |
setInventoryItemIdIsSet(true);
|
|
|
9103 |
}
|
|
|
9104 |
|
|
|
9105 |
/**
|
|
|
9106 |
* Performs a deep copy on <i>other</i>.
|
|
|
9107 |
*/
|
|
|
9108 |
public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
|
|
|
9109 |
__isset_bit_vector.clear();
|
|
|
9110 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9111 |
this.inventoryItemId = other.inventoryItemId;
|
|
|
9112 |
}
|
|
|
9113 |
|
|
|
9114 |
public getInventoryItemFromId_args deepCopy() {
|
|
|
9115 |
return new getInventoryItemFromId_args(this);
|
|
|
9116 |
}
|
|
|
9117 |
|
|
|
9118 |
@Override
|
|
|
9119 |
public void clear() {
|
|
|
9120 |
setInventoryItemIdIsSet(false);
|
|
|
9121 |
this.inventoryItemId = 0;
|
|
|
9122 |
}
|
|
|
9123 |
|
|
|
9124 |
public long getInventoryItemId() {
|
|
|
9125 |
return this.inventoryItemId;
|
|
|
9126 |
}
|
|
|
9127 |
|
|
|
9128 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
9129 |
this.inventoryItemId = inventoryItemId;
|
|
|
9130 |
setInventoryItemIdIsSet(true);
|
|
|
9131 |
}
|
|
|
9132 |
|
|
|
9133 |
public void unsetInventoryItemId() {
|
|
|
9134 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
|
|
9135 |
}
|
|
|
9136 |
|
|
|
9137 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
9138 |
public boolean isSetInventoryItemId() {
|
|
|
9139 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
|
|
9140 |
}
|
|
|
9141 |
|
|
|
9142 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
9143 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
|
|
9144 |
}
|
|
|
9145 |
|
|
|
9146 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9147 |
switch (field) {
|
|
|
9148 |
case INVENTORY_ITEM_ID:
|
|
|
9149 |
if (value == null) {
|
|
|
9150 |
unsetInventoryItemId();
|
|
|
9151 |
} else {
|
|
|
9152 |
setInventoryItemId((Long)value);
|
|
|
9153 |
}
|
|
|
9154 |
break;
|
|
|
9155 |
|
|
|
9156 |
}
|
|
|
9157 |
}
|
|
|
9158 |
|
|
|
9159 |
public Object getFieldValue(_Fields field) {
|
|
|
9160 |
switch (field) {
|
|
|
9161 |
case INVENTORY_ITEM_ID:
|
|
|
9162 |
return Long.valueOf(getInventoryItemId());
|
|
|
9163 |
|
|
|
9164 |
}
|
|
|
9165 |
throw new IllegalStateException();
|
|
|
9166 |
}
|
|
|
9167 |
|
|
|
9168 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9169 |
public boolean isSet(_Fields field) {
|
|
|
9170 |
if (field == null) {
|
|
|
9171 |
throw new IllegalArgumentException();
|
|
|
9172 |
}
|
|
|
9173 |
|
|
|
9174 |
switch (field) {
|
|
|
9175 |
case INVENTORY_ITEM_ID:
|
|
|
9176 |
return isSetInventoryItemId();
|
|
|
9177 |
}
|
|
|
9178 |
throw new IllegalStateException();
|
|
|
9179 |
}
|
|
|
9180 |
|
|
|
9181 |
@Override
|
|
|
9182 |
public boolean equals(Object that) {
|
|
|
9183 |
if (that == null)
|
|
|
9184 |
return false;
|
|
|
9185 |
if (that instanceof getInventoryItemFromId_args)
|
|
|
9186 |
return this.equals((getInventoryItemFromId_args)that);
|
|
|
9187 |
return false;
|
|
|
9188 |
}
|
|
|
9189 |
|
|
|
9190 |
public boolean equals(getInventoryItemFromId_args that) {
|
|
|
9191 |
if (that == null)
|
|
|
9192 |
return false;
|
|
|
9193 |
|
|
|
9194 |
boolean this_present_inventoryItemId = true;
|
|
|
9195 |
boolean that_present_inventoryItemId = true;
|
|
|
9196 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
9197 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
|
|
9198 |
return false;
|
|
|
9199 |
if (this.inventoryItemId != that.inventoryItemId)
|
|
|
9200 |
return false;
|
|
|
9201 |
}
|
|
|
9202 |
|
|
|
9203 |
return true;
|
|
|
9204 |
}
|
|
|
9205 |
|
|
|
9206 |
@Override
|
|
|
9207 |
public int hashCode() {
|
|
|
9208 |
return 0;
|
|
|
9209 |
}
|
|
|
9210 |
|
|
|
9211 |
public int compareTo(getInventoryItemFromId_args other) {
|
|
|
9212 |
if (!getClass().equals(other.getClass())) {
|
|
|
9213 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9214 |
}
|
|
|
9215 |
|
|
|
9216 |
int lastComparison = 0;
|
|
|
9217 |
getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
|
|
|
9218 |
|
|
|
9219 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
|
|
9220 |
if (lastComparison != 0) {
|
|
|
9221 |
return lastComparison;
|
|
|
9222 |
}
|
|
|
9223 |
if (isSetInventoryItemId()) {
|
|
|
9224 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
|
|
9225 |
if (lastComparison != 0) {
|
|
|
9226 |
return lastComparison;
|
|
|
9227 |
}
|
|
|
9228 |
}
|
|
|
9229 |
return 0;
|
|
|
9230 |
}
|
|
|
9231 |
|
|
|
9232 |
public _Fields fieldForId(int fieldId) {
|
|
|
9233 |
return _Fields.findByThriftId(fieldId);
|
|
|
9234 |
}
|
|
|
9235 |
|
|
|
9236 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9237 |
org.apache.thrift.protocol.TField field;
|
|
|
9238 |
iprot.readStructBegin();
|
|
|
9239 |
while (true)
|
|
|
9240 |
{
|
|
|
9241 |
field = iprot.readFieldBegin();
|
|
|
9242 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9243 |
break;
|
|
|
9244 |
}
|
|
|
9245 |
switch (field.id) {
|
|
|
9246 |
case 1: // INVENTORY_ITEM_ID
|
|
|
9247 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9248 |
this.inventoryItemId = iprot.readI64();
|
|
|
9249 |
setInventoryItemIdIsSet(true);
|
|
|
9250 |
} else {
|
|
|
9251 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9252 |
}
|
|
|
9253 |
break;
|
|
|
9254 |
default:
|
|
|
9255 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9256 |
}
|
|
|
9257 |
iprot.readFieldEnd();
|
|
|
9258 |
}
|
|
|
9259 |
iprot.readStructEnd();
|
|
|
9260 |
validate();
|
|
|
9261 |
}
|
|
|
9262 |
|
|
|
9263 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9264 |
validate();
|
|
|
9265 |
|
|
|
9266 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9267 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
9268 |
oprot.writeI64(this.inventoryItemId);
|
|
|
9269 |
oprot.writeFieldEnd();
|
|
|
9270 |
oprot.writeFieldStop();
|
|
|
9271 |
oprot.writeStructEnd();
|
|
|
9272 |
}
|
|
|
9273 |
|
|
|
9274 |
@Override
|
|
|
9275 |
public String toString() {
|
|
|
9276 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
|
|
|
9277 |
boolean first = true;
|
|
|
9278 |
|
|
|
9279 |
sb.append("inventoryItemId:");
|
|
|
9280 |
sb.append(this.inventoryItemId);
|
|
|
9281 |
first = false;
|
|
|
9282 |
sb.append(")");
|
|
|
9283 |
return sb.toString();
|
|
|
9284 |
}
|
|
|
9285 |
|
|
|
9286 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9287 |
// check for required fields
|
|
|
9288 |
}
|
|
|
9289 |
|
|
|
9290 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9291 |
try {
|
|
|
9292 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9293 |
} catch (org.apache.thrift.TException te) {
|
|
|
9294 |
throw new java.io.IOException(te);
|
|
|
9295 |
}
|
|
|
9296 |
}
|
|
|
9297 |
|
|
|
9298 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9299 |
try {
|
| 5372 |
mandeep.dh |
9300 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
9301 |
__isset_bit_vector = new BitSet(1);
|
| 5185 |
mandeep.dh |
9302 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9303 |
} catch (org.apache.thrift.TException te) {
|
|
|
9304 |
throw new java.io.IOException(te);
|
|
|
9305 |
}
|
|
|
9306 |
}
|
|
|
9307 |
|
|
|
9308 |
}
|
|
|
9309 |
|
|
|
9310 |
public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9311 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
|
|
|
9312 |
|
|
|
9313 |
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);
|
|
|
9314 |
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);
|
|
|
9315 |
|
|
|
9316 |
private InventoryItem success; // required
|
|
|
9317 |
private WarehouseServiceException wex; // required
|
|
|
9318 |
|
|
|
9319 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9320 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9321 |
SUCCESS((short)0, "success"),
|
|
|
9322 |
WEX((short)1, "wex");
|
|
|
9323 |
|
|
|
9324 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9325 |
|
|
|
9326 |
static {
|
|
|
9327 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9328 |
byName.put(field.getFieldName(), field);
|
|
|
9329 |
}
|
|
|
9330 |
}
|
|
|
9331 |
|
|
|
9332 |
/**
|
|
|
9333 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9334 |
*/
|
|
|
9335 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9336 |
switch(fieldId) {
|
|
|
9337 |
case 0: // SUCCESS
|
|
|
9338 |
return SUCCESS;
|
|
|
9339 |
case 1: // WEX
|
|
|
9340 |
return WEX;
|
|
|
9341 |
default:
|
|
|
9342 |
return null;
|
|
|
9343 |
}
|
|
|
9344 |
}
|
|
|
9345 |
|
|
|
9346 |
/**
|
|
|
9347 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9348 |
* if it is not found.
|
|
|
9349 |
*/
|
|
|
9350 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9351 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9352 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9353 |
return fields;
|
|
|
9354 |
}
|
|
|
9355 |
|
|
|
9356 |
/**
|
|
|
9357 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9358 |
*/
|
|
|
9359 |
public static _Fields findByName(String name) {
|
|
|
9360 |
return byName.get(name);
|
|
|
9361 |
}
|
|
|
9362 |
|
|
|
9363 |
private final short _thriftId;
|
|
|
9364 |
private final String _fieldName;
|
|
|
9365 |
|
|
|
9366 |
_Fields(short thriftId, String fieldName) {
|
|
|
9367 |
_thriftId = thriftId;
|
|
|
9368 |
_fieldName = fieldName;
|
|
|
9369 |
}
|
|
|
9370 |
|
|
|
9371 |
public short getThriftFieldId() {
|
|
|
9372 |
return _thriftId;
|
|
|
9373 |
}
|
|
|
9374 |
|
|
|
9375 |
public String getFieldName() {
|
|
|
9376 |
return _fieldName;
|
|
|
9377 |
}
|
|
|
9378 |
}
|
|
|
9379 |
|
|
|
9380 |
// isset id assignments
|
|
|
9381 |
|
|
|
9382 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9383 |
static {
|
|
|
9384 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9385 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9386 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
9387 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9388 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
9389 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9390 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
|
|
|
9391 |
}
|
|
|
9392 |
|
|
|
9393 |
public getInventoryItemFromId_result() {
|
|
|
9394 |
}
|
|
|
9395 |
|
|
|
9396 |
public getInventoryItemFromId_result(
|
|
|
9397 |
InventoryItem success,
|
|
|
9398 |
WarehouseServiceException wex)
|
|
|
9399 |
{
|
|
|
9400 |
this();
|
|
|
9401 |
this.success = success;
|
|
|
9402 |
this.wex = wex;
|
|
|
9403 |
}
|
|
|
9404 |
|
|
|
9405 |
/**
|
|
|
9406 |
* Performs a deep copy on <i>other</i>.
|
|
|
9407 |
*/
|
|
|
9408 |
public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
|
|
|
9409 |
if (other.isSetSuccess()) {
|
|
|
9410 |
this.success = new InventoryItem(other.success);
|
|
|
9411 |
}
|
|
|
9412 |
if (other.isSetWex()) {
|
|
|
9413 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
9414 |
}
|
|
|
9415 |
}
|
|
|
9416 |
|
|
|
9417 |
public getInventoryItemFromId_result deepCopy() {
|
|
|
9418 |
return new getInventoryItemFromId_result(this);
|
|
|
9419 |
}
|
|
|
9420 |
|
|
|
9421 |
@Override
|
|
|
9422 |
public void clear() {
|
|
|
9423 |
this.success = null;
|
|
|
9424 |
this.wex = null;
|
|
|
9425 |
}
|
|
|
9426 |
|
|
|
9427 |
public InventoryItem getSuccess() {
|
|
|
9428 |
return this.success;
|
|
|
9429 |
}
|
|
|
9430 |
|
|
|
9431 |
public void setSuccess(InventoryItem success) {
|
|
|
9432 |
this.success = success;
|
|
|
9433 |
}
|
|
|
9434 |
|
|
|
9435 |
public void unsetSuccess() {
|
|
|
9436 |
this.success = null;
|
|
|
9437 |
}
|
|
|
9438 |
|
|
|
9439 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
9440 |
public boolean isSetSuccess() {
|
|
|
9441 |
return this.success != null;
|
|
|
9442 |
}
|
|
|
9443 |
|
|
|
9444 |
public void setSuccessIsSet(boolean value) {
|
|
|
9445 |
if (!value) {
|
|
|
9446 |
this.success = null;
|
|
|
9447 |
}
|
|
|
9448 |
}
|
|
|
9449 |
|
|
|
9450 |
public WarehouseServiceException getWex() {
|
|
|
9451 |
return this.wex;
|
|
|
9452 |
}
|
|
|
9453 |
|
|
|
9454 |
public void setWex(WarehouseServiceException wex) {
|
|
|
9455 |
this.wex = wex;
|
|
|
9456 |
}
|
|
|
9457 |
|
|
|
9458 |
public void unsetWex() {
|
|
|
9459 |
this.wex = null;
|
|
|
9460 |
}
|
|
|
9461 |
|
|
|
9462 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
9463 |
public boolean isSetWex() {
|
|
|
9464 |
return this.wex != null;
|
|
|
9465 |
}
|
|
|
9466 |
|
|
|
9467 |
public void setWexIsSet(boolean value) {
|
|
|
9468 |
if (!value) {
|
|
|
9469 |
this.wex = null;
|
|
|
9470 |
}
|
|
|
9471 |
}
|
|
|
9472 |
|
|
|
9473 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9474 |
switch (field) {
|
|
|
9475 |
case SUCCESS:
|
|
|
9476 |
if (value == null) {
|
|
|
9477 |
unsetSuccess();
|
|
|
9478 |
} else {
|
|
|
9479 |
setSuccess((InventoryItem)value);
|
|
|
9480 |
}
|
|
|
9481 |
break;
|
|
|
9482 |
|
|
|
9483 |
case WEX:
|
|
|
9484 |
if (value == null) {
|
|
|
9485 |
unsetWex();
|
|
|
9486 |
} else {
|
|
|
9487 |
setWex((WarehouseServiceException)value);
|
|
|
9488 |
}
|
|
|
9489 |
break;
|
|
|
9490 |
|
|
|
9491 |
}
|
|
|
9492 |
}
|
|
|
9493 |
|
|
|
9494 |
public Object getFieldValue(_Fields field) {
|
|
|
9495 |
switch (field) {
|
|
|
9496 |
case SUCCESS:
|
|
|
9497 |
return getSuccess();
|
|
|
9498 |
|
|
|
9499 |
case WEX:
|
|
|
9500 |
return getWex();
|
|
|
9501 |
|
|
|
9502 |
}
|
|
|
9503 |
throw new IllegalStateException();
|
|
|
9504 |
}
|
|
|
9505 |
|
|
|
9506 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9507 |
public boolean isSet(_Fields field) {
|
|
|
9508 |
if (field == null) {
|
|
|
9509 |
throw new IllegalArgumentException();
|
|
|
9510 |
}
|
|
|
9511 |
|
|
|
9512 |
switch (field) {
|
|
|
9513 |
case SUCCESS:
|
|
|
9514 |
return isSetSuccess();
|
|
|
9515 |
case WEX:
|
|
|
9516 |
return isSetWex();
|
|
|
9517 |
}
|
|
|
9518 |
throw new IllegalStateException();
|
|
|
9519 |
}
|
|
|
9520 |
|
|
|
9521 |
@Override
|
|
|
9522 |
public boolean equals(Object that) {
|
|
|
9523 |
if (that == null)
|
|
|
9524 |
return false;
|
|
|
9525 |
if (that instanceof getInventoryItemFromId_result)
|
|
|
9526 |
return this.equals((getInventoryItemFromId_result)that);
|
|
|
9527 |
return false;
|
|
|
9528 |
}
|
|
|
9529 |
|
|
|
9530 |
public boolean equals(getInventoryItemFromId_result that) {
|
|
|
9531 |
if (that == null)
|
|
|
9532 |
return false;
|
|
|
9533 |
|
|
|
9534 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9535 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9536 |
if (this_present_success || that_present_success) {
|
|
|
9537 |
if (!(this_present_success && that_present_success))
|
|
|
9538 |
return false;
|
|
|
9539 |
if (!this.success.equals(that.success))
|
|
|
9540 |
return false;
|
|
|
9541 |
}
|
|
|
9542 |
|
|
|
9543 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
9544 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
9545 |
if (this_present_wex || that_present_wex) {
|
|
|
9546 |
if (!(this_present_wex && that_present_wex))
|
|
|
9547 |
return false;
|
|
|
9548 |
if (!this.wex.equals(that.wex))
|
|
|
9549 |
return false;
|
|
|
9550 |
}
|
|
|
9551 |
|
|
|
9552 |
return true;
|
|
|
9553 |
}
|
|
|
9554 |
|
|
|
9555 |
@Override
|
|
|
9556 |
public int hashCode() {
|
|
|
9557 |
return 0;
|
|
|
9558 |
}
|
|
|
9559 |
|
|
|
9560 |
public int compareTo(getInventoryItemFromId_result other) {
|
|
|
9561 |
if (!getClass().equals(other.getClass())) {
|
|
|
9562 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9563 |
}
|
|
|
9564 |
|
|
|
9565 |
int lastComparison = 0;
|
|
|
9566 |
getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
|
|
|
9567 |
|
|
|
9568 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9569 |
if (lastComparison != 0) {
|
|
|
9570 |
return lastComparison;
|
|
|
9571 |
}
|
|
|
9572 |
if (isSetSuccess()) {
|
|
|
9573 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9574 |
if (lastComparison != 0) {
|
|
|
9575 |
return lastComparison;
|
|
|
9576 |
}
|
|
|
9577 |
}
|
|
|
9578 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
9579 |
if (lastComparison != 0) {
|
|
|
9580 |
return lastComparison;
|
|
|
9581 |
}
|
|
|
9582 |
if (isSetWex()) {
|
|
|
9583 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
9584 |
if (lastComparison != 0) {
|
|
|
9585 |
return lastComparison;
|
|
|
9586 |
}
|
|
|
9587 |
}
|
|
|
9588 |
return 0;
|
|
|
9589 |
}
|
|
|
9590 |
|
|
|
9591 |
public _Fields fieldForId(int fieldId) {
|
|
|
9592 |
return _Fields.findByThriftId(fieldId);
|
|
|
9593 |
}
|
|
|
9594 |
|
|
|
9595 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9596 |
org.apache.thrift.protocol.TField field;
|
|
|
9597 |
iprot.readStructBegin();
|
|
|
9598 |
while (true)
|
|
|
9599 |
{
|
|
|
9600 |
field = iprot.readFieldBegin();
|
|
|
9601 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9602 |
break;
|
|
|
9603 |
}
|
|
|
9604 |
switch (field.id) {
|
|
|
9605 |
case 0: // SUCCESS
|
|
|
9606 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9607 |
this.success = new InventoryItem();
|
|
|
9608 |
this.success.read(iprot);
|
|
|
9609 |
} else {
|
|
|
9610 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9611 |
}
|
|
|
9612 |
break;
|
|
|
9613 |
case 1: // WEX
|
|
|
9614 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9615 |
this.wex = new WarehouseServiceException();
|
|
|
9616 |
this.wex.read(iprot);
|
|
|
9617 |
} else {
|
|
|
9618 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9619 |
}
|
|
|
9620 |
break;
|
|
|
9621 |
default:
|
|
|
9622 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9623 |
}
|
|
|
9624 |
iprot.readFieldEnd();
|
|
|
9625 |
}
|
|
|
9626 |
iprot.readStructEnd();
|
|
|
9627 |
validate();
|
|
|
9628 |
}
|
|
|
9629 |
|
|
|
9630 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9631 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9632 |
|
|
|
9633 |
if (this.isSetSuccess()) {
|
|
|
9634 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9635 |
this.success.write(oprot);
|
|
|
9636 |
oprot.writeFieldEnd();
|
|
|
9637 |
} else if (this.isSetWex()) {
|
|
|
9638 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
9639 |
this.wex.write(oprot);
|
|
|
9640 |
oprot.writeFieldEnd();
|
|
|
9641 |
}
|
|
|
9642 |
oprot.writeFieldStop();
|
|
|
9643 |
oprot.writeStructEnd();
|
|
|
9644 |
}
|
|
|
9645 |
|
|
|
9646 |
@Override
|
|
|
9647 |
public String toString() {
|
|
|
9648 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
|
|
|
9649 |
boolean first = true;
|
|
|
9650 |
|
|
|
9651 |
sb.append("success:");
|
|
|
9652 |
if (this.success == null) {
|
|
|
9653 |
sb.append("null");
|
|
|
9654 |
} else {
|
|
|
9655 |
sb.append(this.success);
|
|
|
9656 |
}
|
|
|
9657 |
first = false;
|
|
|
9658 |
if (!first) sb.append(", ");
|
|
|
9659 |
sb.append("wex:");
|
|
|
9660 |
if (this.wex == null) {
|
|
|
9661 |
sb.append("null");
|
|
|
9662 |
} else {
|
|
|
9663 |
sb.append(this.wex);
|
|
|
9664 |
}
|
|
|
9665 |
first = false;
|
|
|
9666 |
sb.append(")");
|
|
|
9667 |
return sb.toString();
|
|
|
9668 |
}
|
|
|
9669 |
|
|
|
9670 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9671 |
// check for required fields
|
|
|
9672 |
}
|
|
|
9673 |
|
|
|
9674 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9675 |
try {
|
|
|
9676 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9677 |
} catch (org.apache.thrift.TException te) {
|
|
|
9678 |
throw new java.io.IOException(te);
|
|
|
9679 |
}
|
|
|
9680 |
}
|
|
|
9681 |
|
|
|
9682 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9683 |
try {
|
|
|
9684 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9685 |
} catch (org.apache.thrift.TException te) {
|
|
|
9686 |
throw new java.io.IOException(te);
|
|
|
9687 |
}
|
|
|
9688 |
}
|
|
|
9689 |
|
|
|
9690 |
}
|
|
|
9691 |
|
| 5372 |
mandeep.dh |
9692 |
public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9693 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
|
|
|
9694 |
|
|
|
9695 |
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);
|
|
|
9696 |
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);
|
|
|
9697 |
|
|
|
9698 |
private long startDate; // required
|
|
|
9699 |
private long endDate; // required
|
|
|
9700 |
|
|
|
9701 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9702 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9703 |
START_DATE((short)1, "startDate"),
|
|
|
9704 |
END_DATE((short)2, "endDate");
|
|
|
9705 |
|
|
|
9706 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9707 |
|
|
|
9708 |
static {
|
|
|
9709 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9710 |
byName.put(field.getFieldName(), field);
|
|
|
9711 |
}
|
|
|
9712 |
}
|
|
|
9713 |
|
|
|
9714 |
/**
|
|
|
9715 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9716 |
*/
|
|
|
9717 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9718 |
switch(fieldId) {
|
|
|
9719 |
case 1: // START_DATE
|
|
|
9720 |
return START_DATE;
|
|
|
9721 |
case 2: // END_DATE
|
|
|
9722 |
return END_DATE;
|
|
|
9723 |
default:
|
|
|
9724 |
return null;
|
|
|
9725 |
}
|
|
|
9726 |
}
|
|
|
9727 |
|
|
|
9728 |
/**
|
|
|
9729 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9730 |
* if it is not found.
|
|
|
9731 |
*/
|
|
|
9732 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9733 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9734 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9735 |
return fields;
|
|
|
9736 |
}
|
|
|
9737 |
|
|
|
9738 |
/**
|
|
|
9739 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9740 |
*/
|
|
|
9741 |
public static _Fields findByName(String name) {
|
|
|
9742 |
return byName.get(name);
|
|
|
9743 |
}
|
|
|
9744 |
|
|
|
9745 |
private final short _thriftId;
|
|
|
9746 |
private final String _fieldName;
|
|
|
9747 |
|
|
|
9748 |
_Fields(short thriftId, String fieldName) {
|
|
|
9749 |
_thriftId = thriftId;
|
|
|
9750 |
_fieldName = fieldName;
|
|
|
9751 |
}
|
|
|
9752 |
|
|
|
9753 |
public short getThriftFieldId() {
|
|
|
9754 |
return _thriftId;
|
|
|
9755 |
}
|
|
|
9756 |
|
|
|
9757 |
public String getFieldName() {
|
|
|
9758 |
return _fieldName;
|
|
|
9759 |
}
|
|
|
9760 |
}
|
|
|
9761 |
|
|
|
9762 |
// isset id assignments
|
|
|
9763 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
9764 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
9765 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
9766 |
|
|
|
9767 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9768 |
static {
|
|
|
9769 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9770 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9771 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9772 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9773 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9774 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9775 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
|
|
|
9776 |
}
|
|
|
9777 |
|
|
|
9778 |
public getPurchaseScans_args() {
|
|
|
9779 |
}
|
|
|
9780 |
|
|
|
9781 |
public getPurchaseScans_args(
|
|
|
9782 |
long startDate,
|
|
|
9783 |
long endDate)
|
|
|
9784 |
{
|
|
|
9785 |
this();
|
|
|
9786 |
this.startDate = startDate;
|
|
|
9787 |
setStartDateIsSet(true);
|
|
|
9788 |
this.endDate = endDate;
|
|
|
9789 |
setEndDateIsSet(true);
|
|
|
9790 |
}
|
|
|
9791 |
|
|
|
9792 |
/**
|
|
|
9793 |
* Performs a deep copy on <i>other</i>.
|
|
|
9794 |
*/
|
|
|
9795 |
public getPurchaseScans_args(getPurchaseScans_args other) {
|
|
|
9796 |
__isset_bit_vector.clear();
|
|
|
9797 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9798 |
this.startDate = other.startDate;
|
|
|
9799 |
this.endDate = other.endDate;
|
|
|
9800 |
}
|
|
|
9801 |
|
|
|
9802 |
public getPurchaseScans_args deepCopy() {
|
|
|
9803 |
return new getPurchaseScans_args(this);
|
|
|
9804 |
}
|
|
|
9805 |
|
|
|
9806 |
@Override
|
|
|
9807 |
public void clear() {
|
|
|
9808 |
setStartDateIsSet(false);
|
|
|
9809 |
this.startDate = 0;
|
|
|
9810 |
setEndDateIsSet(false);
|
|
|
9811 |
this.endDate = 0;
|
|
|
9812 |
}
|
|
|
9813 |
|
|
|
9814 |
public long getStartDate() {
|
|
|
9815 |
return this.startDate;
|
|
|
9816 |
}
|
|
|
9817 |
|
|
|
9818 |
public void setStartDate(long startDate) {
|
|
|
9819 |
this.startDate = startDate;
|
|
|
9820 |
setStartDateIsSet(true);
|
|
|
9821 |
}
|
|
|
9822 |
|
|
|
9823 |
public void unsetStartDate() {
|
|
|
9824 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
9825 |
}
|
|
|
9826 |
|
|
|
9827 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
9828 |
public boolean isSetStartDate() {
|
|
|
9829 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
9830 |
}
|
|
|
9831 |
|
|
|
9832 |
public void setStartDateIsSet(boolean value) {
|
|
|
9833 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
9834 |
}
|
|
|
9835 |
|
|
|
9836 |
public long getEndDate() {
|
|
|
9837 |
return this.endDate;
|
|
|
9838 |
}
|
|
|
9839 |
|
|
|
9840 |
public void setEndDate(long endDate) {
|
|
|
9841 |
this.endDate = endDate;
|
|
|
9842 |
setEndDateIsSet(true);
|
|
|
9843 |
}
|
|
|
9844 |
|
|
|
9845 |
public void unsetEndDate() {
|
|
|
9846 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
9847 |
}
|
|
|
9848 |
|
|
|
9849 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
9850 |
public boolean isSetEndDate() {
|
|
|
9851 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
9852 |
}
|
|
|
9853 |
|
|
|
9854 |
public void setEndDateIsSet(boolean value) {
|
|
|
9855 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
9856 |
}
|
|
|
9857 |
|
|
|
9858 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9859 |
switch (field) {
|
|
|
9860 |
case START_DATE:
|
|
|
9861 |
if (value == null) {
|
|
|
9862 |
unsetStartDate();
|
|
|
9863 |
} else {
|
|
|
9864 |
setStartDate((Long)value);
|
|
|
9865 |
}
|
|
|
9866 |
break;
|
|
|
9867 |
|
|
|
9868 |
case END_DATE:
|
|
|
9869 |
if (value == null) {
|
|
|
9870 |
unsetEndDate();
|
|
|
9871 |
} else {
|
|
|
9872 |
setEndDate((Long)value);
|
|
|
9873 |
}
|
|
|
9874 |
break;
|
|
|
9875 |
|
|
|
9876 |
}
|
|
|
9877 |
}
|
|
|
9878 |
|
|
|
9879 |
public Object getFieldValue(_Fields field) {
|
|
|
9880 |
switch (field) {
|
|
|
9881 |
case START_DATE:
|
|
|
9882 |
return Long.valueOf(getStartDate());
|
|
|
9883 |
|
|
|
9884 |
case END_DATE:
|
|
|
9885 |
return Long.valueOf(getEndDate());
|
|
|
9886 |
|
|
|
9887 |
}
|
|
|
9888 |
throw new IllegalStateException();
|
|
|
9889 |
}
|
|
|
9890 |
|
|
|
9891 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9892 |
public boolean isSet(_Fields field) {
|
|
|
9893 |
if (field == null) {
|
|
|
9894 |
throw new IllegalArgumentException();
|
|
|
9895 |
}
|
|
|
9896 |
|
|
|
9897 |
switch (field) {
|
|
|
9898 |
case START_DATE:
|
|
|
9899 |
return isSetStartDate();
|
|
|
9900 |
case END_DATE:
|
|
|
9901 |
return isSetEndDate();
|
|
|
9902 |
}
|
|
|
9903 |
throw new IllegalStateException();
|
|
|
9904 |
}
|
|
|
9905 |
|
|
|
9906 |
@Override
|
|
|
9907 |
public boolean equals(Object that) {
|
|
|
9908 |
if (that == null)
|
|
|
9909 |
return false;
|
|
|
9910 |
if (that instanceof getPurchaseScans_args)
|
|
|
9911 |
return this.equals((getPurchaseScans_args)that);
|
|
|
9912 |
return false;
|
|
|
9913 |
}
|
|
|
9914 |
|
|
|
9915 |
public boolean equals(getPurchaseScans_args that) {
|
|
|
9916 |
if (that == null)
|
|
|
9917 |
return false;
|
|
|
9918 |
|
|
|
9919 |
boolean this_present_startDate = true;
|
|
|
9920 |
boolean that_present_startDate = true;
|
|
|
9921 |
if (this_present_startDate || that_present_startDate) {
|
|
|
9922 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
9923 |
return false;
|
|
|
9924 |
if (this.startDate != that.startDate)
|
|
|
9925 |
return false;
|
|
|
9926 |
}
|
|
|
9927 |
|
|
|
9928 |
boolean this_present_endDate = true;
|
|
|
9929 |
boolean that_present_endDate = true;
|
|
|
9930 |
if (this_present_endDate || that_present_endDate) {
|
|
|
9931 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
9932 |
return false;
|
|
|
9933 |
if (this.endDate != that.endDate)
|
|
|
9934 |
return false;
|
|
|
9935 |
}
|
|
|
9936 |
|
|
|
9937 |
return true;
|
|
|
9938 |
}
|
|
|
9939 |
|
|
|
9940 |
@Override
|
|
|
9941 |
public int hashCode() {
|
|
|
9942 |
return 0;
|
|
|
9943 |
}
|
|
|
9944 |
|
|
|
9945 |
public int compareTo(getPurchaseScans_args other) {
|
|
|
9946 |
if (!getClass().equals(other.getClass())) {
|
|
|
9947 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9948 |
}
|
|
|
9949 |
|
|
|
9950 |
int lastComparison = 0;
|
|
|
9951 |
getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
|
|
|
9952 |
|
|
|
9953 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
9954 |
if (lastComparison != 0) {
|
|
|
9955 |
return lastComparison;
|
|
|
9956 |
}
|
|
|
9957 |
if (isSetStartDate()) {
|
|
|
9958 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
9959 |
if (lastComparison != 0) {
|
|
|
9960 |
return lastComparison;
|
|
|
9961 |
}
|
|
|
9962 |
}
|
|
|
9963 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
9964 |
if (lastComparison != 0) {
|
|
|
9965 |
return lastComparison;
|
|
|
9966 |
}
|
|
|
9967 |
if (isSetEndDate()) {
|
|
|
9968 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
9969 |
if (lastComparison != 0) {
|
|
|
9970 |
return lastComparison;
|
|
|
9971 |
}
|
|
|
9972 |
}
|
|
|
9973 |
return 0;
|
|
|
9974 |
}
|
|
|
9975 |
|
|
|
9976 |
public _Fields fieldForId(int fieldId) {
|
|
|
9977 |
return _Fields.findByThriftId(fieldId);
|
|
|
9978 |
}
|
|
|
9979 |
|
|
|
9980 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9981 |
org.apache.thrift.protocol.TField field;
|
|
|
9982 |
iprot.readStructBegin();
|
|
|
9983 |
while (true)
|
|
|
9984 |
{
|
|
|
9985 |
field = iprot.readFieldBegin();
|
|
|
9986 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9987 |
break;
|
|
|
9988 |
}
|
|
|
9989 |
switch (field.id) {
|
|
|
9990 |
case 1: // START_DATE
|
|
|
9991 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9992 |
this.startDate = iprot.readI64();
|
|
|
9993 |
setStartDateIsSet(true);
|
|
|
9994 |
} else {
|
|
|
9995 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9996 |
}
|
|
|
9997 |
break;
|
|
|
9998 |
case 2: // END_DATE
|
|
|
9999 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10000 |
this.endDate = iprot.readI64();
|
|
|
10001 |
setEndDateIsSet(true);
|
|
|
10002 |
} else {
|
|
|
10003 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10004 |
}
|
|
|
10005 |
break;
|
|
|
10006 |
default:
|
|
|
10007 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10008 |
}
|
|
|
10009 |
iprot.readFieldEnd();
|
|
|
10010 |
}
|
|
|
10011 |
iprot.readStructEnd();
|
|
|
10012 |
validate();
|
|
|
10013 |
}
|
|
|
10014 |
|
|
|
10015 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10016 |
validate();
|
|
|
10017 |
|
|
|
10018 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10019 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
10020 |
oprot.writeI64(this.startDate);
|
|
|
10021 |
oprot.writeFieldEnd();
|
|
|
10022 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
10023 |
oprot.writeI64(this.endDate);
|
|
|
10024 |
oprot.writeFieldEnd();
|
|
|
10025 |
oprot.writeFieldStop();
|
|
|
10026 |
oprot.writeStructEnd();
|
|
|
10027 |
}
|
|
|
10028 |
|
|
|
10029 |
@Override
|
|
|
10030 |
public String toString() {
|
|
|
10031 |
StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
|
|
|
10032 |
boolean first = true;
|
|
|
10033 |
|
|
|
10034 |
sb.append("startDate:");
|
|
|
10035 |
sb.append(this.startDate);
|
|
|
10036 |
first = false;
|
|
|
10037 |
if (!first) sb.append(", ");
|
|
|
10038 |
sb.append("endDate:");
|
|
|
10039 |
sb.append(this.endDate);
|
|
|
10040 |
first = false;
|
|
|
10041 |
sb.append(")");
|
|
|
10042 |
return sb.toString();
|
|
|
10043 |
}
|
|
|
10044 |
|
|
|
10045 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10046 |
// check for required fields
|
|
|
10047 |
}
|
|
|
10048 |
|
|
|
10049 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10050 |
try {
|
|
|
10051 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10052 |
} catch (org.apache.thrift.TException te) {
|
|
|
10053 |
throw new java.io.IOException(te);
|
|
|
10054 |
}
|
|
|
10055 |
}
|
|
|
10056 |
|
|
|
10057 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10058 |
try {
|
|
|
10059 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10060 |
__isset_bit_vector = new BitSet(1);
|
|
|
10061 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10062 |
} catch (org.apache.thrift.TException te) {
|
|
|
10063 |
throw new java.io.IOException(te);
|
|
|
10064 |
}
|
|
|
10065 |
}
|
|
|
10066 |
|
|
|
10067 |
}
|
|
|
10068 |
|
|
|
10069 |
public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10070 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
|
|
|
10071 |
|
|
|
10072 |
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);
|
|
|
10073 |
|
|
|
10074 |
private List<DetailedPurchaseScan> success; // required
|
|
|
10075 |
|
|
|
10076 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10077 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10078 |
SUCCESS((short)0, "success");
|
|
|
10079 |
|
|
|
10080 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10081 |
|
|
|
10082 |
static {
|
|
|
10083 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10084 |
byName.put(field.getFieldName(), field);
|
|
|
10085 |
}
|
|
|
10086 |
}
|
|
|
10087 |
|
|
|
10088 |
/**
|
|
|
10089 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10090 |
*/
|
|
|
10091 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10092 |
switch(fieldId) {
|
|
|
10093 |
case 0: // SUCCESS
|
|
|
10094 |
return SUCCESS;
|
|
|
10095 |
default:
|
|
|
10096 |
return null;
|
|
|
10097 |
}
|
|
|
10098 |
}
|
|
|
10099 |
|
|
|
10100 |
/**
|
|
|
10101 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10102 |
* if it is not found.
|
|
|
10103 |
*/
|
|
|
10104 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10105 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10106 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10107 |
return fields;
|
|
|
10108 |
}
|
|
|
10109 |
|
|
|
10110 |
/**
|
|
|
10111 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10112 |
*/
|
|
|
10113 |
public static _Fields findByName(String name) {
|
|
|
10114 |
return byName.get(name);
|
|
|
10115 |
}
|
|
|
10116 |
|
|
|
10117 |
private final short _thriftId;
|
|
|
10118 |
private final String _fieldName;
|
|
|
10119 |
|
|
|
10120 |
_Fields(short thriftId, String fieldName) {
|
|
|
10121 |
_thriftId = thriftId;
|
|
|
10122 |
_fieldName = fieldName;
|
|
|
10123 |
}
|
|
|
10124 |
|
|
|
10125 |
public short getThriftFieldId() {
|
|
|
10126 |
return _thriftId;
|
|
|
10127 |
}
|
|
|
10128 |
|
|
|
10129 |
public String getFieldName() {
|
|
|
10130 |
return _fieldName;
|
|
|
10131 |
}
|
|
|
10132 |
}
|
|
|
10133 |
|
|
|
10134 |
// isset id assignments
|
|
|
10135 |
|
|
|
10136 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10137 |
static {
|
|
|
10138 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10139 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10140 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
10141 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
|
|
|
10142 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10143 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
|
|
|
10144 |
}
|
|
|
10145 |
|
|
|
10146 |
public getPurchaseScans_result() {
|
|
|
10147 |
}
|
|
|
10148 |
|
|
|
10149 |
public getPurchaseScans_result(
|
|
|
10150 |
List<DetailedPurchaseScan> success)
|
|
|
10151 |
{
|
|
|
10152 |
this();
|
|
|
10153 |
this.success = success;
|
|
|
10154 |
}
|
|
|
10155 |
|
|
|
10156 |
/**
|
|
|
10157 |
* Performs a deep copy on <i>other</i>.
|
|
|
10158 |
*/
|
|
|
10159 |
public getPurchaseScans_result(getPurchaseScans_result other) {
|
|
|
10160 |
if (other.isSetSuccess()) {
|
|
|
10161 |
List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
|
|
|
10162 |
for (DetailedPurchaseScan other_element : other.success) {
|
|
|
10163 |
__this__success.add(new DetailedPurchaseScan(other_element));
|
|
|
10164 |
}
|
|
|
10165 |
this.success = __this__success;
|
|
|
10166 |
}
|
|
|
10167 |
}
|
|
|
10168 |
|
|
|
10169 |
public getPurchaseScans_result deepCopy() {
|
|
|
10170 |
return new getPurchaseScans_result(this);
|
|
|
10171 |
}
|
|
|
10172 |
|
|
|
10173 |
@Override
|
|
|
10174 |
public void clear() {
|
|
|
10175 |
this.success = null;
|
|
|
10176 |
}
|
|
|
10177 |
|
|
|
10178 |
public int getSuccessSize() {
|
|
|
10179 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
10180 |
}
|
|
|
10181 |
|
|
|
10182 |
public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
|
|
|
10183 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
10184 |
}
|
|
|
10185 |
|
|
|
10186 |
public void addToSuccess(DetailedPurchaseScan elem) {
|
|
|
10187 |
if (this.success == null) {
|
|
|
10188 |
this.success = new ArrayList<DetailedPurchaseScan>();
|
|
|
10189 |
}
|
|
|
10190 |
this.success.add(elem);
|
|
|
10191 |
}
|
|
|
10192 |
|
|
|
10193 |
public List<DetailedPurchaseScan> getSuccess() {
|
|
|
10194 |
return this.success;
|
|
|
10195 |
}
|
|
|
10196 |
|
|
|
10197 |
public void setSuccess(List<DetailedPurchaseScan> success) {
|
|
|
10198 |
this.success = success;
|
|
|
10199 |
}
|
|
|
10200 |
|
|
|
10201 |
public void unsetSuccess() {
|
|
|
10202 |
this.success = null;
|
|
|
10203 |
}
|
|
|
10204 |
|
|
|
10205 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10206 |
public boolean isSetSuccess() {
|
|
|
10207 |
return this.success != null;
|
|
|
10208 |
}
|
|
|
10209 |
|
|
|
10210 |
public void setSuccessIsSet(boolean value) {
|
|
|
10211 |
if (!value) {
|
|
|
10212 |
this.success = null;
|
|
|
10213 |
}
|
|
|
10214 |
}
|
|
|
10215 |
|
|
|
10216 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10217 |
switch (field) {
|
|
|
10218 |
case SUCCESS:
|
|
|
10219 |
if (value == null) {
|
|
|
10220 |
unsetSuccess();
|
|
|
10221 |
} else {
|
|
|
10222 |
setSuccess((List<DetailedPurchaseScan>)value);
|
|
|
10223 |
}
|
|
|
10224 |
break;
|
|
|
10225 |
|
|
|
10226 |
}
|
|
|
10227 |
}
|
|
|
10228 |
|
|
|
10229 |
public Object getFieldValue(_Fields field) {
|
|
|
10230 |
switch (field) {
|
|
|
10231 |
case SUCCESS:
|
|
|
10232 |
return getSuccess();
|
|
|
10233 |
|
|
|
10234 |
}
|
|
|
10235 |
throw new IllegalStateException();
|
|
|
10236 |
}
|
|
|
10237 |
|
|
|
10238 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10239 |
public boolean isSet(_Fields field) {
|
|
|
10240 |
if (field == null) {
|
|
|
10241 |
throw new IllegalArgumentException();
|
|
|
10242 |
}
|
|
|
10243 |
|
|
|
10244 |
switch (field) {
|
|
|
10245 |
case SUCCESS:
|
|
|
10246 |
return isSetSuccess();
|
|
|
10247 |
}
|
|
|
10248 |
throw new IllegalStateException();
|
|
|
10249 |
}
|
|
|
10250 |
|
|
|
10251 |
@Override
|
|
|
10252 |
public boolean equals(Object that) {
|
|
|
10253 |
if (that == null)
|
|
|
10254 |
return false;
|
|
|
10255 |
if (that instanceof getPurchaseScans_result)
|
|
|
10256 |
return this.equals((getPurchaseScans_result)that);
|
|
|
10257 |
return false;
|
|
|
10258 |
}
|
|
|
10259 |
|
|
|
10260 |
public boolean equals(getPurchaseScans_result that) {
|
|
|
10261 |
if (that == null)
|
|
|
10262 |
return false;
|
|
|
10263 |
|
|
|
10264 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10265 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10266 |
if (this_present_success || that_present_success) {
|
|
|
10267 |
if (!(this_present_success && that_present_success))
|
|
|
10268 |
return false;
|
|
|
10269 |
if (!this.success.equals(that.success))
|
|
|
10270 |
return false;
|
|
|
10271 |
}
|
|
|
10272 |
|
|
|
10273 |
return true;
|
|
|
10274 |
}
|
|
|
10275 |
|
|
|
10276 |
@Override
|
|
|
10277 |
public int hashCode() {
|
|
|
10278 |
return 0;
|
|
|
10279 |
}
|
|
|
10280 |
|
|
|
10281 |
public int compareTo(getPurchaseScans_result other) {
|
|
|
10282 |
if (!getClass().equals(other.getClass())) {
|
|
|
10283 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10284 |
}
|
|
|
10285 |
|
|
|
10286 |
int lastComparison = 0;
|
|
|
10287 |
getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
|
|
|
10288 |
|
|
|
10289 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10290 |
if (lastComparison != 0) {
|
|
|
10291 |
return lastComparison;
|
|
|
10292 |
}
|
|
|
10293 |
if (isSetSuccess()) {
|
|
|
10294 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10295 |
if (lastComparison != 0) {
|
|
|
10296 |
return lastComparison;
|
|
|
10297 |
}
|
|
|
10298 |
}
|
|
|
10299 |
return 0;
|
|
|
10300 |
}
|
|
|
10301 |
|
|
|
10302 |
public _Fields fieldForId(int fieldId) {
|
|
|
10303 |
return _Fields.findByThriftId(fieldId);
|
|
|
10304 |
}
|
|
|
10305 |
|
|
|
10306 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10307 |
org.apache.thrift.protocol.TField field;
|
|
|
10308 |
iprot.readStructBegin();
|
|
|
10309 |
while (true)
|
|
|
10310 |
{
|
|
|
10311 |
field = iprot.readFieldBegin();
|
|
|
10312 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10313 |
break;
|
|
|
10314 |
}
|
|
|
10315 |
switch (field.id) {
|
|
|
10316 |
case 0: // SUCCESS
|
|
|
10317 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
10318 |
{
|
|
|
10319 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
10320 |
this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
|
|
|
10321 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
|
|
10322 |
{
|
|
|
10323 |
DetailedPurchaseScan _elem14; // required
|
|
|
10324 |
_elem14 = new DetailedPurchaseScan();
|
|
|
10325 |
_elem14.read(iprot);
|
|
|
10326 |
this.success.add(_elem14);
|
|
|
10327 |
}
|
|
|
10328 |
iprot.readListEnd();
|
|
|
10329 |
}
|
|
|
10330 |
} else {
|
|
|
10331 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10332 |
}
|
|
|
10333 |
break;
|
|
|
10334 |
default:
|
|
|
10335 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10336 |
}
|
|
|
10337 |
iprot.readFieldEnd();
|
|
|
10338 |
}
|
|
|
10339 |
iprot.readStructEnd();
|
|
|
10340 |
validate();
|
|
|
10341 |
}
|
|
|
10342 |
|
|
|
10343 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10344 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10345 |
|
|
|
10346 |
if (this.isSetSuccess()) {
|
|
|
10347 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10348 |
{
|
|
|
10349 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
10350 |
for (DetailedPurchaseScan _iter15 : this.success)
|
|
|
10351 |
{
|
|
|
10352 |
_iter15.write(oprot);
|
|
|
10353 |
}
|
|
|
10354 |
oprot.writeListEnd();
|
|
|
10355 |
}
|
|
|
10356 |
oprot.writeFieldEnd();
|
|
|
10357 |
}
|
|
|
10358 |
oprot.writeFieldStop();
|
|
|
10359 |
oprot.writeStructEnd();
|
|
|
10360 |
}
|
|
|
10361 |
|
|
|
10362 |
@Override
|
|
|
10363 |
public String toString() {
|
|
|
10364 |
StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
|
|
|
10365 |
boolean first = true;
|
|
|
10366 |
|
|
|
10367 |
sb.append("success:");
|
|
|
10368 |
if (this.success == null) {
|
|
|
10369 |
sb.append("null");
|
|
|
10370 |
} else {
|
|
|
10371 |
sb.append(this.success);
|
|
|
10372 |
}
|
|
|
10373 |
first = false;
|
|
|
10374 |
sb.append(")");
|
|
|
10375 |
return sb.toString();
|
|
|
10376 |
}
|
|
|
10377 |
|
|
|
10378 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10379 |
// check for required fields
|
|
|
10380 |
}
|
|
|
10381 |
|
|
|
10382 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10383 |
try {
|
|
|
10384 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10385 |
} catch (org.apache.thrift.TException te) {
|
|
|
10386 |
throw new java.io.IOException(te);
|
|
|
10387 |
}
|
|
|
10388 |
}
|
|
|
10389 |
|
|
|
10390 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10391 |
try {
|
|
|
10392 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10393 |
} catch (org.apache.thrift.TException te) {
|
|
|
10394 |
throw new java.io.IOException(te);
|
|
|
10395 |
}
|
|
|
10396 |
}
|
|
|
10397 |
|
|
|
10398 |
}
|
|
|
10399 |
|
| 5496 |
mandeep.dh |
10400 |
public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10401 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
|
|
|
10402 |
|
|
|
10403 |
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);
|
|
|
10404 |
|
|
|
10405 |
private long date; // required
|
|
|
10406 |
|
|
|
10407 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10408 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10409 |
DATE((short)1, "date");
|
|
|
10410 |
|
|
|
10411 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10412 |
|
|
|
10413 |
static {
|
|
|
10414 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10415 |
byName.put(field.getFieldName(), field);
|
|
|
10416 |
}
|
|
|
10417 |
}
|
|
|
10418 |
|
|
|
10419 |
/**
|
|
|
10420 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10421 |
*/
|
|
|
10422 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10423 |
switch(fieldId) {
|
|
|
10424 |
case 1: // DATE
|
|
|
10425 |
return DATE;
|
|
|
10426 |
default:
|
|
|
10427 |
return null;
|
|
|
10428 |
}
|
|
|
10429 |
}
|
|
|
10430 |
|
|
|
10431 |
/**
|
|
|
10432 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10433 |
* if it is not found.
|
|
|
10434 |
*/
|
|
|
10435 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10436 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10437 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10438 |
return fields;
|
|
|
10439 |
}
|
|
|
10440 |
|
|
|
10441 |
/**
|
|
|
10442 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10443 |
*/
|
|
|
10444 |
public static _Fields findByName(String name) {
|
|
|
10445 |
return byName.get(name);
|
|
|
10446 |
}
|
|
|
10447 |
|
|
|
10448 |
private final short _thriftId;
|
|
|
10449 |
private final String _fieldName;
|
|
|
10450 |
|
|
|
10451 |
_Fields(short thriftId, String fieldName) {
|
|
|
10452 |
_thriftId = thriftId;
|
|
|
10453 |
_fieldName = fieldName;
|
|
|
10454 |
}
|
|
|
10455 |
|
|
|
10456 |
public short getThriftFieldId() {
|
|
|
10457 |
return _thriftId;
|
|
|
10458 |
}
|
|
|
10459 |
|
|
|
10460 |
public String getFieldName() {
|
|
|
10461 |
return _fieldName;
|
|
|
10462 |
}
|
|
|
10463 |
}
|
|
|
10464 |
|
|
|
10465 |
// isset id assignments
|
|
|
10466 |
private static final int __DATE_ISSET_ID = 0;
|
|
|
10467 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
10468 |
|
|
|
10469 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10470 |
static {
|
|
|
10471 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10472 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10473 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10474 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10475 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_args.class, metaDataMap);
|
|
|
10476 |
}
|
|
|
10477 |
|
|
|
10478 |
public fetchScansPerInvoiceNumber_args() {
|
|
|
10479 |
}
|
|
|
10480 |
|
|
|
10481 |
public fetchScansPerInvoiceNumber_args(
|
|
|
10482 |
long date)
|
|
|
10483 |
{
|
|
|
10484 |
this();
|
|
|
10485 |
this.date = date;
|
|
|
10486 |
setDateIsSet(true);
|
|
|
10487 |
}
|
|
|
10488 |
|
|
|
10489 |
/**
|
|
|
10490 |
* Performs a deep copy on <i>other</i>.
|
|
|
10491 |
*/
|
|
|
10492 |
public fetchScansPerInvoiceNumber_args(fetchScansPerInvoiceNumber_args other) {
|
|
|
10493 |
__isset_bit_vector.clear();
|
|
|
10494 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10495 |
this.date = other.date;
|
|
|
10496 |
}
|
|
|
10497 |
|
|
|
10498 |
public fetchScansPerInvoiceNumber_args deepCopy() {
|
|
|
10499 |
return new fetchScansPerInvoiceNumber_args(this);
|
|
|
10500 |
}
|
|
|
10501 |
|
|
|
10502 |
@Override
|
|
|
10503 |
public void clear() {
|
|
|
10504 |
setDateIsSet(false);
|
|
|
10505 |
this.date = 0;
|
|
|
10506 |
}
|
|
|
10507 |
|
|
|
10508 |
public long getDate() {
|
|
|
10509 |
return this.date;
|
|
|
10510 |
}
|
|
|
10511 |
|
|
|
10512 |
public void setDate(long date) {
|
|
|
10513 |
this.date = date;
|
|
|
10514 |
setDateIsSet(true);
|
|
|
10515 |
}
|
|
|
10516 |
|
|
|
10517 |
public void unsetDate() {
|
|
|
10518 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
|
|
10519 |
}
|
|
|
10520 |
|
|
|
10521 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
10522 |
public boolean isSetDate() {
|
|
|
10523 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
|
|
10524 |
}
|
|
|
10525 |
|
|
|
10526 |
public void setDateIsSet(boolean value) {
|
|
|
10527 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
|
|
10528 |
}
|
|
|
10529 |
|
|
|
10530 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10531 |
switch (field) {
|
|
|
10532 |
case DATE:
|
|
|
10533 |
if (value == null) {
|
|
|
10534 |
unsetDate();
|
|
|
10535 |
} else {
|
|
|
10536 |
setDate((Long)value);
|
|
|
10537 |
}
|
|
|
10538 |
break;
|
|
|
10539 |
|
|
|
10540 |
}
|
|
|
10541 |
}
|
|
|
10542 |
|
|
|
10543 |
public Object getFieldValue(_Fields field) {
|
|
|
10544 |
switch (field) {
|
|
|
10545 |
case DATE:
|
|
|
10546 |
return Long.valueOf(getDate());
|
|
|
10547 |
|
|
|
10548 |
}
|
|
|
10549 |
throw new IllegalStateException();
|
|
|
10550 |
}
|
|
|
10551 |
|
|
|
10552 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10553 |
public boolean isSet(_Fields field) {
|
|
|
10554 |
if (field == null) {
|
|
|
10555 |
throw new IllegalArgumentException();
|
|
|
10556 |
}
|
|
|
10557 |
|
|
|
10558 |
switch (field) {
|
|
|
10559 |
case DATE:
|
|
|
10560 |
return isSetDate();
|
|
|
10561 |
}
|
|
|
10562 |
throw new IllegalStateException();
|
|
|
10563 |
}
|
|
|
10564 |
|
|
|
10565 |
@Override
|
|
|
10566 |
public boolean equals(Object that) {
|
|
|
10567 |
if (that == null)
|
|
|
10568 |
return false;
|
|
|
10569 |
if (that instanceof fetchScansPerInvoiceNumber_args)
|
|
|
10570 |
return this.equals((fetchScansPerInvoiceNumber_args)that);
|
|
|
10571 |
return false;
|
|
|
10572 |
}
|
|
|
10573 |
|
|
|
10574 |
public boolean equals(fetchScansPerInvoiceNumber_args that) {
|
|
|
10575 |
if (that == null)
|
|
|
10576 |
return false;
|
|
|
10577 |
|
|
|
10578 |
boolean this_present_date = true;
|
|
|
10579 |
boolean that_present_date = true;
|
|
|
10580 |
if (this_present_date || that_present_date) {
|
|
|
10581 |
if (!(this_present_date && that_present_date))
|
|
|
10582 |
return false;
|
|
|
10583 |
if (this.date != that.date)
|
|
|
10584 |
return false;
|
|
|
10585 |
}
|
|
|
10586 |
|
|
|
10587 |
return true;
|
|
|
10588 |
}
|
|
|
10589 |
|
|
|
10590 |
@Override
|
|
|
10591 |
public int hashCode() {
|
|
|
10592 |
return 0;
|
|
|
10593 |
}
|
|
|
10594 |
|
|
|
10595 |
public int compareTo(fetchScansPerInvoiceNumber_args other) {
|
|
|
10596 |
if (!getClass().equals(other.getClass())) {
|
|
|
10597 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10598 |
}
|
|
|
10599 |
|
|
|
10600 |
int lastComparison = 0;
|
|
|
10601 |
fetchScansPerInvoiceNumber_args typedOther = (fetchScansPerInvoiceNumber_args)other;
|
|
|
10602 |
|
|
|
10603 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
|
|
10604 |
if (lastComparison != 0) {
|
|
|
10605 |
return lastComparison;
|
|
|
10606 |
}
|
|
|
10607 |
if (isSetDate()) {
|
|
|
10608 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
|
|
10609 |
if (lastComparison != 0) {
|
|
|
10610 |
return lastComparison;
|
|
|
10611 |
}
|
|
|
10612 |
}
|
|
|
10613 |
return 0;
|
|
|
10614 |
}
|
|
|
10615 |
|
|
|
10616 |
public _Fields fieldForId(int fieldId) {
|
|
|
10617 |
return _Fields.findByThriftId(fieldId);
|
|
|
10618 |
}
|
|
|
10619 |
|
|
|
10620 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10621 |
org.apache.thrift.protocol.TField field;
|
|
|
10622 |
iprot.readStructBegin();
|
|
|
10623 |
while (true)
|
|
|
10624 |
{
|
|
|
10625 |
field = iprot.readFieldBegin();
|
|
|
10626 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10627 |
break;
|
|
|
10628 |
}
|
|
|
10629 |
switch (field.id) {
|
|
|
10630 |
case 1: // DATE
|
|
|
10631 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10632 |
this.date = iprot.readI64();
|
|
|
10633 |
setDateIsSet(true);
|
|
|
10634 |
} else {
|
|
|
10635 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10636 |
}
|
|
|
10637 |
break;
|
|
|
10638 |
default:
|
|
|
10639 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10640 |
}
|
|
|
10641 |
iprot.readFieldEnd();
|
|
|
10642 |
}
|
|
|
10643 |
iprot.readStructEnd();
|
|
|
10644 |
validate();
|
|
|
10645 |
}
|
|
|
10646 |
|
|
|
10647 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10648 |
validate();
|
|
|
10649 |
|
|
|
10650 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10651 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
10652 |
oprot.writeI64(this.date);
|
|
|
10653 |
oprot.writeFieldEnd();
|
|
|
10654 |
oprot.writeFieldStop();
|
|
|
10655 |
oprot.writeStructEnd();
|
|
|
10656 |
}
|
|
|
10657 |
|
|
|
10658 |
@Override
|
|
|
10659 |
public String toString() {
|
|
|
10660 |
StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_args(");
|
|
|
10661 |
boolean first = true;
|
|
|
10662 |
|
|
|
10663 |
sb.append("date:");
|
|
|
10664 |
sb.append(this.date);
|
|
|
10665 |
first = false;
|
|
|
10666 |
sb.append(")");
|
|
|
10667 |
return sb.toString();
|
|
|
10668 |
}
|
|
|
10669 |
|
|
|
10670 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10671 |
// check for required fields
|
|
|
10672 |
}
|
|
|
10673 |
|
|
|
10674 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10675 |
try {
|
|
|
10676 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10677 |
} catch (org.apache.thrift.TException te) {
|
|
|
10678 |
throw new java.io.IOException(te);
|
|
|
10679 |
}
|
|
|
10680 |
}
|
|
|
10681 |
|
|
|
10682 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10683 |
try {
|
| 5711 |
mandeep.dh |
10684 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10685 |
__isset_bit_vector = new BitSet(1);
|
| 5496 |
mandeep.dh |
10686 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10687 |
} catch (org.apache.thrift.TException te) {
|
|
|
10688 |
throw new java.io.IOException(te);
|
|
|
10689 |
}
|
|
|
10690 |
}
|
|
|
10691 |
|
|
|
10692 |
}
|
|
|
10693 |
|
|
|
10694 |
public static class fetchScansPerInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_result, fetchScansPerInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10695 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_result");
|
|
|
10696 |
|
|
|
10697 |
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);
|
|
|
10698 |
|
|
|
10699 |
private List<InvoiceScan> success; // required
|
|
|
10700 |
|
|
|
10701 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10702 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10703 |
SUCCESS((short)0, "success");
|
|
|
10704 |
|
|
|
10705 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10706 |
|
|
|
10707 |
static {
|
|
|
10708 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10709 |
byName.put(field.getFieldName(), field);
|
|
|
10710 |
}
|
|
|
10711 |
}
|
|
|
10712 |
|
|
|
10713 |
/**
|
|
|
10714 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10715 |
*/
|
|
|
10716 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10717 |
switch(fieldId) {
|
|
|
10718 |
case 0: // SUCCESS
|
|
|
10719 |
return SUCCESS;
|
|
|
10720 |
default:
|
|
|
10721 |
return null;
|
|
|
10722 |
}
|
|
|
10723 |
}
|
|
|
10724 |
|
|
|
10725 |
/**
|
|
|
10726 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10727 |
* if it is not found.
|
|
|
10728 |
*/
|
|
|
10729 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10730 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10731 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10732 |
return fields;
|
|
|
10733 |
}
|
|
|
10734 |
|
|
|
10735 |
/**
|
|
|
10736 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10737 |
*/
|
|
|
10738 |
public static _Fields findByName(String name) {
|
|
|
10739 |
return byName.get(name);
|
|
|
10740 |
}
|
|
|
10741 |
|
|
|
10742 |
private final short _thriftId;
|
|
|
10743 |
private final String _fieldName;
|
|
|
10744 |
|
|
|
10745 |
_Fields(short thriftId, String fieldName) {
|
|
|
10746 |
_thriftId = thriftId;
|
|
|
10747 |
_fieldName = fieldName;
|
|
|
10748 |
}
|
|
|
10749 |
|
|
|
10750 |
public short getThriftFieldId() {
|
|
|
10751 |
return _thriftId;
|
|
|
10752 |
}
|
|
|
10753 |
|
|
|
10754 |
public String getFieldName() {
|
|
|
10755 |
return _fieldName;
|
|
|
10756 |
}
|
|
|
10757 |
}
|
|
|
10758 |
|
|
|
10759 |
// isset id assignments
|
|
|
10760 |
|
|
|
10761 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10762 |
static {
|
|
|
10763 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10764 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10765 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
10766 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvoiceScan.class))));
|
|
|
10767 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10768 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_result.class, metaDataMap);
|
|
|
10769 |
}
|
|
|
10770 |
|
|
|
10771 |
public fetchScansPerInvoiceNumber_result() {
|
|
|
10772 |
}
|
|
|
10773 |
|
|
|
10774 |
public fetchScansPerInvoiceNumber_result(
|
|
|
10775 |
List<InvoiceScan> success)
|
|
|
10776 |
{
|
|
|
10777 |
this();
|
|
|
10778 |
this.success = success;
|
|
|
10779 |
}
|
|
|
10780 |
|
|
|
10781 |
/**
|
|
|
10782 |
* Performs a deep copy on <i>other</i>.
|
|
|
10783 |
*/
|
|
|
10784 |
public fetchScansPerInvoiceNumber_result(fetchScansPerInvoiceNumber_result other) {
|
|
|
10785 |
if (other.isSetSuccess()) {
|
|
|
10786 |
List<InvoiceScan> __this__success = new ArrayList<InvoiceScan>();
|
|
|
10787 |
for (InvoiceScan other_element : other.success) {
|
|
|
10788 |
__this__success.add(new InvoiceScan(other_element));
|
|
|
10789 |
}
|
|
|
10790 |
this.success = __this__success;
|
|
|
10791 |
}
|
|
|
10792 |
}
|
|
|
10793 |
|
|
|
10794 |
public fetchScansPerInvoiceNumber_result deepCopy() {
|
|
|
10795 |
return new fetchScansPerInvoiceNumber_result(this);
|
|
|
10796 |
}
|
|
|
10797 |
|
|
|
10798 |
@Override
|
|
|
10799 |
public void clear() {
|
|
|
10800 |
this.success = null;
|
|
|
10801 |
}
|
|
|
10802 |
|
|
|
10803 |
public int getSuccessSize() {
|
|
|
10804 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
10805 |
}
|
|
|
10806 |
|
|
|
10807 |
public java.util.Iterator<InvoiceScan> getSuccessIterator() {
|
|
|
10808 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
10809 |
}
|
|
|
10810 |
|
|
|
10811 |
public void addToSuccess(InvoiceScan elem) {
|
|
|
10812 |
if (this.success == null) {
|
|
|
10813 |
this.success = new ArrayList<InvoiceScan>();
|
|
|
10814 |
}
|
|
|
10815 |
this.success.add(elem);
|
|
|
10816 |
}
|
|
|
10817 |
|
|
|
10818 |
public List<InvoiceScan> getSuccess() {
|
|
|
10819 |
return this.success;
|
|
|
10820 |
}
|
|
|
10821 |
|
|
|
10822 |
public void setSuccess(List<InvoiceScan> success) {
|
|
|
10823 |
this.success = success;
|
|
|
10824 |
}
|
|
|
10825 |
|
|
|
10826 |
public void unsetSuccess() {
|
|
|
10827 |
this.success = null;
|
|
|
10828 |
}
|
|
|
10829 |
|
|
|
10830 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10831 |
public boolean isSetSuccess() {
|
|
|
10832 |
return this.success != null;
|
|
|
10833 |
}
|
|
|
10834 |
|
|
|
10835 |
public void setSuccessIsSet(boolean value) {
|
|
|
10836 |
if (!value) {
|
|
|
10837 |
this.success = null;
|
|
|
10838 |
}
|
|
|
10839 |
}
|
|
|
10840 |
|
|
|
10841 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10842 |
switch (field) {
|
|
|
10843 |
case SUCCESS:
|
|
|
10844 |
if (value == null) {
|
|
|
10845 |
unsetSuccess();
|
|
|
10846 |
} else {
|
|
|
10847 |
setSuccess((List<InvoiceScan>)value);
|
|
|
10848 |
}
|
|
|
10849 |
break;
|
|
|
10850 |
|
|
|
10851 |
}
|
|
|
10852 |
}
|
|
|
10853 |
|
|
|
10854 |
public Object getFieldValue(_Fields field) {
|
|
|
10855 |
switch (field) {
|
|
|
10856 |
case SUCCESS:
|
|
|
10857 |
return getSuccess();
|
|
|
10858 |
|
|
|
10859 |
}
|
|
|
10860 |
throw new IllegalStateException();
|
|
|
10861 |
}
|
|
|
10862 |
|
|
|
10863 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10864 |
public boolean isSet(_Fields field) {
|
|
|
10865 |
if (field == null) {
|
|
|
10866 |
throw new IllegalArgumentException();
|
|
|
10867 |
}
|
|
|
10868 |
|
|
|
10869 |
switch (field) {
|
|
|
10870 |
case SUCCESS:
|
|
|
10871 |
return isSetSuccess();
|
|
|
10872 |
}
|
|
|
10873 |
throw new IllegalStateException();
|
|
|
10874 |
}
|
|
|
10875 |
|
|
|
10876 |
@Override
|
|
|
10877 |
public boolean equals(Object that) {
|
|
|
10878 |
if (that == null)
|
|
|
10879 |
return false;
|
|
|
10880 |
if (that instanceof fetchScansPerInvoiceNumber_result)
|
|
|
10881 |
return this.equals((fetchScansPerInvoiceNumber_result)that);
|
|
|
10882 |
return false;
|
|
|
10883 |
}
|
|
|
10884 |
|
|
|
10885 |
public boolean equals(fetchScansPerInvoiceNumber_result that) {
|
|
|
10886 |
if (that == null)
|
|
|
10887 |
return false;
|
|
|
10888 |
|
|
|
10889 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10890 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10891 |
if (this_present_success || that_present_success) {
|
|
|
10892 |
if (!(this_present_success && that_present_success))
|
|
|
10893 |
return false;
|
|
|
10894 |
if (!this.success.equals(that.success))
|
|
|
10895 |
return false;
|
|
|
10896 |
}
|
|
|
10897 |
|
|
|
10898 |
return true;
|
|
|
10899 |
}
|
|
|
10900 |
|
|
|
10901 |
@Override
|
|
|
10902 |
public int hashCode() {
|
|
|
10903 |
return 0;
|
|
|
10904 |
}
|
|
|
10905 |
|
|
|
10906 |
public int compareTo(fetchScansPerInvoiceNumber_result other) {
|
|
|
10907 |
if (!getClass().equals(other.getClass())) {
|
|
|
10908 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10909 |
}
|
|
|
10910 |
|
|
|
10911 |
int lastComparison = 0;
|
|
|
10912 |
fetchScansPerInvoiceNumber_result typedOther = (fetchScansPerInvoiceNumber_result)other;
|
|
|
10913 |
|
|
|
10914 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10915 |
if (lastComparison != 0) {
|
|
|
10916 |
return lastComparison;
|
|
|
10917 |
}
|
|
|
10918 |
if (isSetSuccess()) {
|
|
|
10919 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10920 |
if (lastComparison != 0) {
|
|
|
10921 |
return lastComparison;
|
|
|
10922 |
}
|
|
|
10923 |
}
|
|
|
10924 |
return 0;
|
|
|
10925 |
}
|
|
|
10926 |
|
|
|
10927 |
public _Fields fieldForId(int fieldId) {
|
|
|
10928 |
return _Fields.findByThriftId(fieldId);
|
|
|
10929 |
}
|
|
|
10930 |
|
|
|
10931 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10932 |
org.apache.thrift.protocol.TField field;
|
|
|
10933 |
iprot.readStructBegin();
|
|
|
10934 |
while (true)
|
|
|
10935 |
{
|
|
|
10936 |
field = iprot.readFieldBegin();
|
|
|
10937 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10938 |
break;
|
|
|
10939 |
}
|
|
|
10940 |
switch (field.id) {
|
|
|
10941 |
case 0: // SUCCESS
|
|
|
10942 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
10943 |
{
|
|
|
10944 |
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
|
|
|
10945 |
this.success = new ArrayList<InvoiceScan>(_list16.size);
|
|
|
10946 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
|
|
10947 |
{
|
|
|
10948 |
InvoiceScan _elem18; // required
|
|
|
10949 |
_elem18 = new InvoiceScan();
|
|
|
10950 |
_elem18.read(iprot);
|
|
|
10951 |
this.success.add(_elem18);
|
|
|
10952 |
}
|
|
|
10953 |
iprot.readListEnd();
|
|
|
10954 |
}
|
|
|
10955 |
} else {
|
|
|
10956 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10957 |
}
|
|
|
10958 |
break;
|
|
|
10959 |
default:
|
|
|
10960 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10961 |
}
|
|
|
10962 |
iprot.readFieldEnd();
|
|
|
10963 |
}
|
|
|
10964 |
iprot.readStructEnd();
|
|
|
10965 |
validate();
|
|
|
10966 |
}
|
|
|
10967 |
|
|
|
10968 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10969 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10970 |
|
|
|
10971 |
if (this.isSetSuccess()) {
|
|
|
10972 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10973 |
{
|
|
|
10974 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
10975 |
for (InvoiceScan _iter19 : this.success)
|
|
|
10976 |
{
|
|
|
10977 |
_iter19.write(oprot);
|
|
|
10978 |
}
|
|
|
10979 |
oprot.writeListEnd();
|
|
|
10980 |
}
|
|
|
10981 |
oprot.writeFieldEnd();
|
|
|
10982 |
}
|
|
|
10983 |
oprot.writeFieldStop();
|
|
|
10984 |
oprot.writeStructEnd();
|
|
|
10985 |
}
|
|
|
10986 |
|
|
|
10987 |
@Override
|
|
|
10988 |
public String toString() {
|
|
|
10989 |
StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_result(");
|
|
|
10990 |
boolean first = true;
|
|
|
10991 |
|
|
|
10992 |
sb.append("success:");
|
|
|
10993 |
if (this.success == null) {
|
|
|
10994 |
sb.append("null");
|
|
|
10995 |
} else {
|
|
|
10996 |
sb.append(this.success);
|
|
|
10997 |
}
|
|
|
10998 |
first = false;
|
|
|
10999 |
sb.append(")");
|
|
|
11000 |
return sb.toString();
|
|
|
11001 |
}
|
|
|
11002 |
|
|
|
11003 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11004 |
// check for required fields
|
|
|
11005 |
}
|
|
|
11006 |
|
|
|
11007 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11008 |
try {
|
|
|
11009 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11010 |
} catch (org.apache.thrift.TException te) {
|
|
|
11011 |
throw new java.io.IOException(te);
|
|
|
11012 |
}
|
|
|
11013 |
}
|
|
|
11014 |
|
|
|
11015 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11016 |
try {
|
|
|
11017 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11018 |
} catch (org.apache.thrift.TException te) {
|
|
|
11019 |
throw new java.io.IOException(te);
|
|
|
11020 |
}
|
|
|
11021 |
}
|
|
|
11022 |
|
|
|
11023 |
}
|
|
|
11024 |
|
| 5620 |
mandeep.dh |
11025 |
public static class getInventoryItemFromOrder_args implements org.apache.thrift.TBase<getInventoryItemFromOrder_args, getInventoryItemFromOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11026 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_args");
|
|
|
11027 |
|
|
|
11028 |
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);
|
|
|
11029 |
|
|
|
11030 |
private long orderId; // required
|
|
|
11031 |
|
|
|
11032 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11033 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11034 |
ORDER_ID((short)1, "orderId");
|
|
|
11035 |
|
|
|
11036 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11037 |
|
|
|
11038 |
static {
|
|
|
11039 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11040 |
byName.put(field.getFieldName(), field);
|
|
|
11041 |
}
|
|
|
11042 |
}
|
|
|
11043 |
|
|
|
11044 |
/**
|
|
|
11045 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11046 |
*/
|
|
|
11047 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11048 |
switch(fieldId) {
|
|
|
11049 |
case 1: // ORDER_ID
|
|
|
11050 |
return ORDER_ID;
|
|
|
11051 |
default:
|
|
|
11052 |
return null;
|
|
|
11053 |
}
|
|
|
11054 |
}
|
|
|
11055 |
|
|
|
11056 |
/**
|
|
|
11057 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11058 |
* if it is not found.
|
|
|
11059 |
*/
|
|
|
11060 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11061 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11062 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11063 |
return fields;
|
|
|
11064 |
}
|
|
|
11065 |
|
|
|
11066 |
/**
|
|
|
11067 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11068 |
*/
|
|
|
11069 |
public static _Fields findByName(String name) {
|
|
|
11070 |
return byName.get(name);
|
|
|
11071 |
}
|
|
|
11072 |
|
|
|
11073 |
private final short _thriftId;
|
|
|
11074 |
private final String _fieldName;
|
|
|
11075 |
|
|
|
11076 |
_Fields(short thriftId, String fieldName) {
|
|
|
11077 |
_thriftId = thriftId;
|
|
|
11078 |
_fieldName = fieldName;
|
|
|
11079 |
}
|
|
|
11080 |
|
|
|
11081 |
public short getThriftFieldId() {
|
|
|
11082 |
return _thriftId;
|
|
|
11083 |
}
|
|
|
11084 |
|
|
|
11085 |
public String getFieldName() {
|
|
|
11086 |
return _fieldName;
|
|
|
11087 |
}
|
|
|
11088 |
}
|
|
|
11089 |
|
|
|
11090 |
// isset id assignments
|
|
|
11091 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
11092 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
11093 |
|
|
|
11094 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11095 |
static {
|
|
|
11096 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11097 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11098 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11099 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11100 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_args.class, metaDataMap);
|
|
|
11101 |
}
|
|
|
11102 |
|
|
|
11103 |
public getInventoryItemFromOrder_args() {
|
|
|
11104 |
}
|
|
|
11105 |
|
|
|
11106 |
public getInventoryItemFromOrder_args(
|
|
|
11107 |
long orderId)
|
|
|
11108 |
{
|
|
|
11109 |
this();
|
|
|
11110 |
this.orderId = orderId;
|
|
|
11111 |
setOrderIdIsSet(true);
|
|
|
11112 |
}
|
|
|
11113 |
|
|
|
11114 |
/**
|
|
|
11115 |
* Performs a deep copy on <i>other</i>.
|
|
|
11116 |
*/
|
|
|
11117 |
public getInventoryItemFromOrder_args(getInventoryItemFromOrder_args other) {
|
|
|
11118 |
__isset_bit_vector.clear();
|
|
|
11119 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11120 |
this.orderId = other.orderId;
|
|
|
11121 |
}
|
|
|
11122 |
|
|
|
11123 |
public getInventoryItemFromOrder_args deepCopy() {
|
|
|
11124 |
return new getInventoryItemFromOrder_args(this);
|
|
|
11125 |
}
|
|
|
11126 |
|
|
|
11127 |
@Override
|
|
|
11128 |
public void clear() {
|
|
|
11129 |
setOrderIdIsSet(false);
|
|
|
11130 |
this.orderId = 0;
|
|
|
11131 |
}
|
|
|
11132 |
|
|
|
11133 |
public long getOrderId() {
|
|
|
11134 |
return this.orderId;
|
|
|
11135 |
}
|
|
|
11136 |
|
|
|
11137 |
public void setOrderId(long orderId) {
|
|
|
11138 |
this.orderId = orderId;
|
|
|
11139 |
setOrderIdIsSet(true);
|
|
|
11140 |
}
|
|
|
11141 |
|
|
|
11142 |
public void unsetOrderId() {
|
|
|
11143 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
11144 |
}
|
|
|
11145 |
|
|
|
11146 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
11147 |
public boolean isSetOrderId() {
|
|
|
11148 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
11149 |
}
|
|
|
11150 |
|
|
|
11151 |
public void setOrderIdIsSet(boolean value) {
|
|
|
11152 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
11153 |
}
|
|
|
11154 |
|
|
|
11155 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11156 |
switch (field) {
|
|
|
11157 |
case ORDER_ID:
|
|
|
11158 |
if (value == null) {
|
|
|
11159 |
unsetOrderId();
|
|
|
11160 |
} else {
|
|
|
11161 |
setOrderId((Long)value);
|
|
|
11162 |
}
|
|
|
11163 |
break;
|
|
|
11164 |
|
|
|
11165 |
}
|
|
|
11166 |
}
|
|
|
11167 |
|
|
|
11168 |
public Object getFieldValue(_Fields field) {
|
|
|
11169 |
switch (field) {
|
|
|
11170 |
case ORDER_ID:
|
|
|
11171 |
return Long.valueOf(getOrderId());
|
|
|
11172 |
|
|
|
11173 |
}
|
|
|
11174 |
throw new IllegalStateException();
|
|
|
11175 |
}
|
|
|
11176 |
|
|
|
11177 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11178 |
public boolean isSet(_Fields field) {
|
|
|
11179 |
if (field == null) {
|
|
|
11180 |
throw new IllegalArgumentException();
|
|
|
11181 |
}
|
|
|
11182 |
|
|
|
11183 |
switch (field) {
|
|
|
11184 |
case ORDER_ID:
|
|
|
11185 |
return isSetOrderId();
|
|
|
11186 |
}
|
|
|
11187 |
throw new IllegalStateException();
|
|
|
11188 |
}
|
|
|
11189 |
|
|
|
11190 |
@Override
|
|
|
11191 |
public boolean equals(Object that) {
|
|
|
11192 |
if (that == null)
|
|
|
11193 |
return false;
|
|
|
11194 |
if (that instanceof getInventoryItemFromOrder_args)
|
|
|
11195 |
return this.equals((getInventoryItemFromOrder_args)that);
|
|
|
11196 |
return false;
|
|
|
11197 |
}
|
|
|
11198 |
|
|
|
11199 |
public boolean equals(getInventoryItemFromOrder_args that) {
|
|
|
11200 |
if (that == null)
|
|
|
11201 |
return false;
|
|
|
11202 |
|
|
|
11203 |
boolean this_present_orderId = true;
|
|
|
11204 |
boolean that_present_orderId = true;
|
|
|
11205 |
if (this_present_orderId || that_present_orderId) {
|
|
|
11206 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
11207 |
return false;
|
|
|
11208 |
if (this.orderId != that.orderId)
|
|
|
11209 |
return false;
|
|
|
11210 |
}
|
|
|
11211 |
|
|
|
11212 |
return true;
|
|
|
11213 |
}
|
|
|
11214 |
|
|
|
11215 |
@Override
|
|
|
11216 |
public int hashCode() {
|
|
|
11217 |
return 0;
|
|
|
11218 |
}
|
|
|
11219 |
|
|
|
11220 |
public int compareTo(getInventoryItemFromOrder_args other) {
|
|
|
11221 |
if (!getClass().equals(other.getClass())) {
|
|
|
11222 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11223 |
}
|
|
|
11224 |
|
|
|
11225 |
int lastComparison = 0;
|
|
|
11226 |
getInventoryItemFromOrder_args typedOther = (getInventoryItemFromOrder_args)other;
|
|
|
11227 |
|
|
|
11228 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
11229 |
if (lastComparison != 0) {
|
|
|
11230 |
return lastComparison;
|
|
|
11231 |
}
|
|
|
11232 |
if (isSetOrderId()) {
|
|
|
11233 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
11234 |
if (lastComparison != 0) {
|
|
|
11235 |
return lastComparison;
|
|
|
11236 |
}
|
|
|
11237 |
}
|
|
|
11238 |
return 0;
|
|
|
11239 |
}
|
|
|
11240 |
|
|
|
11241 |
public _Fields fieldForId(int fieldId) {
|
|
|
11242 |
return _Fields.findByThriftId(fieldId);
|
|
|
11243 |
}
|
|
|
11244 |
|
|
|
11245 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11246 |
org.apache.thrift.protocol.TField field;
|
|
|
11247 |
iprot.readStructBegin();
|
|
|
11248 |
while (true)
|
|
|
11249 |
{
|
|
|
11250 |
field = iprot.readFieldBegin();
|
|
|
11251 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11252 |
break;
|
|
|
11253 |
}
|
|
|
11254 |
switch (field.id) {
|
|
|
11255 |
case 1: // ORDER_ID
|
|
|
11256 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11257 |
this.orderId = iprot.readI64();
|
|
|
11258 |
setOrderIdIsSet(true);
|
|
|
11259 |
} else {
|
|
|
11260 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11261 |
}
|
|
|
11262 |
break;
|
|
|
11263 |
default:
|
|
|
11264 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11265 |
}
|
|
|
11266 |
iprot.readFieldEnd();
|
|
|
11267 |
}
|
|
|
11268 |
iprot.readStructEnd();
|
|
|
11269 |
validate();
|
|
|
11270 |
}
|
|
|
11271 |
|
|
|
11272 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11273 |
validate();
|
|
|
11274 |
|
|
|
11275 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11276 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
11277 |
oprot.writeI64(this.orderId);
|
|
|
11278 |
oprot.writeFieldEnd();
|
|
|
11279 |
oprot.writeFieldStop();
|
|
|
11280 |
oprot.writeStructEnd();
|
|
|
11281 |
}
|
|
|
11282 |
|
|
|
11283 |
@Override
|
|
|
11284 |
public String toString() {
|
|
|
11285 |
StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_args(");
|
|
|
11286 |
boolean first = true;
|
|
|
11287 |
|
|
|
11288 |
sb.append("orderId:");
|
|
|
11289 |
sb.append(this.orderId);
|
|
|
11290 |
first = false;
|
|
|
11291 |
sb.append(")");
|
|
|
11292 |
return sb.toString();
|
|
|
11293 |
}
|
|
|
11294 |
|
|
|
11295 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11296 |
// check for required fields
|
|
|
11297 |
}
|
|
|
11298 |
|
|
|
11299 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11300 |
try {
|
|
|
11301 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11302 |
} catch (org.apache.thrift.TException te) {
|
|
|
11303 |
throw new java.io.IOException(te);
|
|
|
11304 |
}
|
|
|
11305 |
}
|
|
|
11306 |
|
|
|
11307 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11308 |
try {
|
|
|
11309 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
11310 |
__isset_bit_vector = new BitSet(1);
|
|
|
11311 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11312 |
} catch (org.apache.thrift.TException te) {
|
|
|
11313 |
throw new java.io.IOException(te);
|
|
|
11314 |
}
|
|
|
11315 |
}
|
|
|
11316 |
|
|
|
11317 |
}
|
|
|
11318 |
|
|
|
11319 |
public static class getInventoryItemFromOrder_result implements org.apache.thrift.TBase<getInventoryItemFromOrder_result, getInventoryItemFromOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11320 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_result");
|
|
|
11321 |
|
|
|
11322 |
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);
|
|
|
11323 |
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);
|
|
|
11324 |
|
|
|
11325 |
private InventoryItem success; // required
|
|
|
11326 |
private WarehouseServiceException we; // required
|
|
|
11327 |
|
|
|
11328 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11329 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11330 |
SUCCESS((short)0, "success"),
|
|
|
11331 |
WE((short)1, "we");
|
|
|
11332 |
|
|
|
11333 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11334 |
|
|
|
11335 |
static {
|
|
|
11336 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11337 |
byName.put(field.getFieldName(), field);
|
|
|
11338 |
}
|
|
|
11339 |
}
|
|
|
11340 |
|
|
|
11341 |
/**
|
|
|
11342 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11343 |
*/
|
|
|
11344 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11345 |
switch(fieldId) {
|
|
|
11346 |
case 0: // SUCCESS
|
|
|
11347 |
return SUCCESS;
|
|
|
11348 |
case 1: // WE
|
|
|
11349 |
return WE;
|
|
|
11350 |
default:
|
|
|
11351 |
return null;
|
|
|
11352 |
}
|
|
|
11353 |
}
|
|
|
11354 |
|
|
|
11355 |
/**
|
|
|
11356 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11357 |
* if it is not found.
|
|
|
11358 |
*/
|
|
|
11359 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11360 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11361 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11362 |
return fields;
|
|
|
11363 |
}
|
|
|
11364 |
|
|
|
11365 |
/**
|
|
|
11366 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11367 |
*/
|
|
|
11368 |
public static _Fields findByName(String name) {
|
|
|
11369 |
return byName.get(name);
|
|
|
11370 |
}
|
|
|
11371 |
|
|
|
11372 |
private final short _thriftId;
|
|
|
11373 |
private final String _fieldName;
|
|
|
11374 |
|
|
|
11375 |
_Fields(short thriftId, String fieldName) {
|
|
|
11376 |
_thriftId = thriftId;
|
|
|
11377 |
_fieldName = fieldName;
|
|
|
11378 |
}
|
|
|
11379 |
|
|
|
11380 |
public short getThriftFieldId() {
|
|
|
11381 |
return _thriftId;
|
|
|
11382 |
}
|
|
|
11383 |
|
|
|
11384 |
public String getFieldName() {
|
|
|
11385 |
return _fieldName;
|
|
|
11386 |
}
|
|
|
11387 |
}
|
|
|
11388 |
|
|
|
11389 |
// isset id assignments
|
|
|
11390 |
|
|
|
11391 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11392 |
static {
|
|
|
11393 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11394 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11395 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
11396 |
tmpMap.put(_Fields.WE, new org.apache.thrift.meta_data.FieldMetaData("we", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11397 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
11398 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11399 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_result.class, metaDataMap);
|
|
|
11400 |
}
|
|
|
11401 |
|
|
|
11402 |
public getInventoryItemFromOrder_result() {
|
|
|
11403 |
}
|
|
|
11404 |
|
|
|
11405 |
public getInventoryItemFromOrder_result(
|
|
|
11406 |
InventoryItem success,
|
|
|
11407 |
WarehouseServiceException we)
|
|
|
11408 |
{
|
|
|
11409 |
this();
|
|
|
11410 |
this.success = success;
|
|
|
11411 |
this.we = we;
|
|
|
11412 |
}
|
|
|
11413 |
|
|
|
11414 |
/**
|
|
|
11415 |
* Performs a deep copy on <i>other</i>.
|
|
|
11416 |
*/
|
|
|
11417 |
public getInventoryItemFromOrder_result(getInventoryItemFromOrder_result other) {
|
|
|
11418 |
if (other.isSetSuccess()) {
|
|
|
11419 |
this.success = new InventoryItem(other.success);
|
|
|
11420 |
}
|
|
|
11421 |
if (other.isSetWe()) {
|
|
|
11422 |
this.we = new WarehouseServiceException(other.we);
|
|
|
11423 |
}
|
|
|
11424 |
}
|
|
|
11425 |
|
|
|
11426 |
public getInventoryItemFromOrder_result deepCopy() {
|
|
|
11427 |
return new getInventoryItemFromOrder_result(this);
|
|
|
11428 |
}
|
|
|
11429 |
|
|
|
11430 |
@Override
|
|
|
11431 |
public void clear() {
|
|
|
11432 |
this.success = null;
|
|
|
11433 |
this.we = null;
|
|
|
11434 |
}
|
|
|
11435 |
|
|
|
11436 |
public InventoryItem getSuccess() {
|
|
|
11437 |
return this.success;
|
|
|
11438 |
}
|
|
|
11439 |
|
|
|
11440 |
public void setSuccess(InventoryItem success) {
|
|
|
11441 |
this.success = success;
|
|
|
11442 |
}
|
|
|
11443 |
|
|
|
11444 |
public void unsetSuccess() {
|
|
|
11445 |
this.success = null;
|
|
|
11446 |
}
|
|
|
11447 |
|
|
|
11448 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
11449 |
public boolean isSetSuccess() {
|
|
|
11450 |
return this.success != null;
|
|
|
11451 |
}
|
|
|
11452 |
|
|
|
11453 |
public void setSuccessIsSet(boolean value) {
|
|
|
11454 |
if (!value) {
|
|
|
11455 |
this.success = null;
|
|
|
11456 |
}
|
|
|
11457 |
}
|
|
|
11458 |
|
|
|
11459 |
public WarehouseServiceException getWe() {
|
|
|
11460 |
return this.we;
|
|
|
11461 |
}
|
|
|
11462 |
|
|
|
11463 |
public void setWe(WarehouseServiceException we) {
|
|
|
11464 |
this.we = we;
|
|
|
11465 |
}
|
|
|
11466 |
|
|
|
11467 |
public void unsetWe() {
|
|
|
11468 |
this.we = null;
|
|
|
11469 |
}
|
|
|
11470 |
|
|
|
11471 |
/** Returns true if field we is set (has been assigned a value) and false otherwise */
|
|
|
11472 |
public boolean isSetWe() {
|
|
|
11473 |
return this.we != null;
|
|
|
11474 |
}
|
|
|
11475 |
|
|
|
11476 |
public void setWeIsSet(boolean value) {
|
|
|
11477 |
if (!value) {
|
|
|
11478 |
this.we = null;
|
|
|
11479 |
}
|
|
|
11480 |
}
|
|
|
11481 |
|
|
|
11482 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11483 |
switch (field) {
|
|
|
11484 |
case SUCCESS:
|
|
|
11485 |
if (value == null) {
|
|
|
11486 |
unsetSuccess();
|
|
|
11487 |
} else {
|
|
|
11488 |
setSuccess((InventoryItem)value);
|
|
|
11489 |
}
|
|
|
11490 |
break;
|
|
|
11491 |
|
|
|
11492 |
case WE:
|
|
|
11493 |
if (value == null) {
|
|
|
11494 |
unsetWe();
|
|
|
11495 |
} else {
|
|
|
11496 |
setWe((WarehouseServiceException)value);
|
|
|
11497 |
}
|
|
|
11498 |
break;
|
|
|
11499 |
|
|
|
11500 |
}
|
|
|
11501 |
}
|
|
|
11502 |
|
|
|
11503 |
public Object getFieldValue(_Fields field) {
|
|
|
11504 |
switch (field) {
|
|
|
11505 |
case SUCCESS:
|
|
|
11506 |
return getSuccess();
|
|
|
11507 |
|
|
|
11508 |
case WE:
|
|
|
11509 |
return getWe();
|
|
|
11510 |
|
|
|
11511 |
}
|
|
|
11512 |
throw new IllegalStateException();
|
|
|
11513 |
}
|
|
|
11514 |
|
|
|
11515 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11516 |
public boolean isSet(_Fields field) {
|
|
|
11517 |
if (field == null) {
|
|
|
11518 |
throw new IllegalArgumentException();
|
|
|
11519 |
}
|
|
|
11520 |
|
|
|
11521 |
switch (field) {
|
|
|
11522 |
case SUCCESS:
|
|
|
11523 |
return isSetSuccess();
|
|
|
11524 |
case WE:
|
|
|
11525 |
return isSetWe();
|
|
|
11526 |
}
|
|
|
11527 |
throw new IllegalStateException();
|
|
|
11528 |
}
|
|
|
11529 |
|
|
|
11530 |
@Override
|
|
|
11531 |
public boolean equals(Object that) {
|
|
|
11532 |
if (that == null)
|
|
|
11533 |
return false;
|
|
|
11534 |
if (that instanceof getInventoryItemFromOrder_result)
|
|
|
11535 |
return this.equals((getInventoryItemFromOrder_result)that);
|
|
|
11536 |
return false;
|
|
|
11537 |
}
|
|
|
11538 |
|
|
|
11539 |
public boolean equals(getInventoryItemFromOrder_result that) {
|
|
|
11540 |
if (that == null)
|
|
|
11541 |
return false;
|
|
|
11542 |
|
|
|
11543 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
11544 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
11545 |
if (this_present_success || that_present_success) {
|
|
|
11546 |
if (!(this_present_success && that_present_success))
|
|
|
11547 |
return false;
|
|
|
11548 |
if (!this.success.equals(that.success))
|
|
|
11549 |
return false;
|
|
|
11550 |
}
|
|
|
11551 |
|
|
|
11552 |
boolean this_present_we = true && this.isSetWe();
|
|
|
11553 |
boolean that_present_we = true && that.isSetWe();
|
|
|
11554 |
if (this_present_we || that_present_we) {
|
|
|
11555 |
if (!(this_present_we && that_present_we))
|
|
|
11556 |
return false;
|
|
|
11557 |
if (!this.we.equals(that.we))
|
|
|
11558 |
return false;
|
|
|
11559 |
}
|
|
|
11560 |
|
|
|
11561 |
return true;
|
|
|
11562 |
}
|
|
|
11563 |
|
|
|
11564 |
@Override
|
|
|
11565 |
public int hashCode() {
|
|
|
11566 |
return 0;
|
|
|
11567 |
}
|
|
|
11568 |
|
|
|
11569 |
public int compareTo(getInventoryItemFromOrder_result other) {
|
|
|
11570 |
if (!getClass().equals(other.getClass())) {
|
|
|
11571 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11572 |
}
|
|
|
11573 |
|
|
|
11574 |
int lastComparison = 0;
|
|
|
11575 |
getInventoryItemFromOrder_result typedOther = (getInventoryItemFromOrder_result)other;
|
|
|
11576 |
|
|
|
11577 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
11578 |
if (lastComparison != 0) {
|
|
|
11579 |
return lastComparison;
|
|
|
11580 |
}
|
|
|
11581 |
if (isSetSuccess()) {
|
|
|
11582 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11583 |
if (lastComparison != 0) {
|
|
|
11584 |
return lastComparison;
|
|
|
11585 |
}
|
|
|
11586 |
}
|
|
|
11587 |
lastComparison = Boolean.valueOf(isSetWe()).compareTo(typedOther.isSetWe());
|
|
|
11588 |
if (lastComparison != 0) {
|
|
|
11589 |
return lastComparison;
|
|
|
11590 |
}
|
|
|
11591 |
if (isSetWe()) {
|
|
|
11592 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.we, typedOther.we);
|
|
|
11593 |
if (lastComparison != 0) {
|
|
|
11594 |
return lastComparison;
|
|
|
11595 |
}
|
|
|
11596 |
}
|
|
|
11597 |
return 0;
|
|
|
11598 |
}
|
|
|
11599 |
|
|
|
11600 |
public _Fields fieldForId(int fieldId) {
|
|
|
11601 |
return _Fields.findByThriftId(fieldId);
|
|
|
11602 |
}
|
|
|
11603 |
|
|
|
11604 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11605 |
org.apache.thrift.protocol.TField field;
|
|
|
11606 |
iprot.readStructBegin();
|
|
|
11607 |
while (true)
|
|
|
11608 |
{
|
|
|
11609 |
field = iprot.readFieldBegin();
|
|
|
11610 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11611 |
break;
|
|
|
11612 |
}
|
|
|
11613 |
switch (field.id) {
|
|
|
11614 |
case 0: // SUCCESS
|
|
|
11615 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
11616 |
this.success = new InventoryItem();
|
|
|
11617 |
this.success.read(iprot);
|
|
|
11618 |
} else {
|
|
|
11619 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11620 |
}
|
|
|
11621 |
break;
|
|
|
11622 |
case 1: // WE
|
|
|
11623 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
11624 |
this.we = new WarehouseServiceException();
|
|
|
11625 |
this.we.read(iprot);
|
|
|
11626 |
} else {
|
|
|
11627 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11628 |
}
|
|
|
11629 |
break;
|
|
|
11630 |
default:
|
|
|
11631 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11632 |
}
|
|
|
11633 |
iprot.readFieldEnd();
|
|
|
11634 |
}
|
|
|
11635 |
iprot.readStructEnd();
|
|
|
11636 |
validate();
|
|
|
11637 |
}
|
|
|
11638 |
|
|
|
11639 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11640 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11641 |
|
|
|
11642 |
if (this.isSetSuccess()) {
|
|
|
11643 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
11644 |
this.success.write(oprot);
|
|
|
11645 |
oprot.writeFieldEnd();
|
|
|
11646 |
} else if (this.isSetWe()) {
|
|
|
11647 |
oprot.writeFieldBegin(WE_FIELD_DESC);
|
|
|
11648 |
this.we.write(oprot);
|
|
|
11649 |
oprot.writeFieldEnd();
|
|
|
11650 |
}
|
|
|
11651 |
oprot.writeFieldStop();
|
|
|
11652 |
oprot.writeStructEnd();
|
|
|
11653 |
}
|
|
|
11654 |
|
|
|
11655 |
@Override
|
|
|
11656 |
public String toString() {
|
|
|
11657 |
StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_result(");
|
|
|
11658 |
boolean first = true;
|
|
|
11659 |
|
|
|
11660 |
sb.append("success:");
|
|
|
11661 |
if (this.success == null) {
|
|
|
11662 |
sb.append("null");
|
|
|
11663 |
} else {
|
|
|
11664 |
sb.append(this.success);
|
|
|
11665 |
}
|
|
|
11666 |
first = false;
|
|
|
11667 |
if (!first) sb.append(", ");
|
|
|
11668 |
sb.append("we:");
|
|
|
11669 |
if (this.we == null) {
|
|
|
11670 |
sb.append("null");
|
|
|
11671 |
} else {
|
|
|
11672 |
sb.append(this.we);
|
|
|
11673 |
}
|
|
|
11674 |
first = false;
|
|
|
11675 |
sb.append(")");
|
|
|
11676 |
return sb.toString();
|
|
|
11677 |
}
|
|
|
11678 |
|
|
|
11679 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11680 |
// check for required fields
|
|
|
11681 |
}
|
|
|
11682 |
|
|
|
11683 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11684 |
try {
|
|
|
11685 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11686 |
} catch (org.apache.thrift.TException te) {
|
|
|
11687 |
throw new java.io.IOException(te);
|
|
|
11688 |
}
|
|
|
11689 |
}
|
|
|
11690 |
|
|
|
11691 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11692 |
try {
|
|
|
11693 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11694 |
} catch (org.apache.thrift.TException te) {
|
|
|
11695 |
throw new java.io.IOException(te);
|
|
|
11696 |
}
|
|
|
11697 |
}
|
|
|
11698 |
|
|
|
11699 |
}
|
|
|
11700 |
|
| 5711 |
mandeep.dh |
11701 |
public static class getInventoryAge_args implements org.apache.thrift.TBase<getInventoryAge_args, getInventoryAge_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11702 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_args");
|
|
|
11703 |
|
|
|
11704 |
|
|
|
11705 |
|
|
|
11706 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11707 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11708 |
;
|
|
|
11709 |
|
|
|
11710 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11711 |
|
|
|
11712 |
static {
|
|
|
11713 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11714 |
byName.put(field.getFieldName(), field);
|
|
|
11715 |
}
|
|
|
11716 |
}
|
|
|
11717 |
|
|
|
11718 |
/**
|
|
|
11719 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11720 |
*/
|
|
|
11721 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11722 |
switch(fieldId) {
|
|
|
11723 |
default:
|
|
|
11724 |
return null;
|
|
|
11725 |
}
|
|
|
11726 |
}
|
|
|
11727 |
|
|
|
11728 |
/**
|
|
|
11729 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11730 |
* if it is not found.
|
|
|
11731 |
*/
|
|
|
11732 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11733 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11734 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11735 |
return fields;
|
|
|
11736 |
}
|
|
|
11737 |
|
|
|
11738 |
/**
|
|
|
11739 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11740 |
*/
|
|
|
11741 |
public static _Fields findByName(String name) {
|
|
|
11742 |
return byName.get(name);
|
|
|
11743 |
}
|
|
|
11744 |
|
|
|
11745 |
private final short _thriftId;
|
|
|
11746 |
private final String _fieldName;
|
|
|
11747 |
|
|
|
11748 |
_Fields(short thriftId, String fieldName) {
|
|
|
11749 |
_thriftId = thriftId;
|
|
|
11750 |
_fieldName = fieldName;
|
|
|
11751 |
}
|
|
|
11752 |
|
|
|
11753 |
public short getThriftFieldId() {
|
|
|
11754 |
return _thriftId;
|
|
|
11755 |
}
|
|
|
11756 |
|
|
|
11757 |
public String getFieldName() {
|
|
|
11758 |
return _fieldName;
|
|
|
11759 |
}
|
|
|
11760 |
}
|
|
|
11761 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11762 |
static {
|
|
|
11763 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11764 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11765 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_args.class, metaDataMap);
|
|
|
11766 |
}
|
|
|
11767 |
|
|
|
11768 |
public getInventoryAge_args() {
|
|
|
11769 |
}
|
|
|
11770 |
|
|
|
11771 |
/**
|
|
|
11772 |
* Performs a deep copy on <i>other</i>.
|
|
|
11773 |
*/
|
|
|
11774 |
public getInventoryAge_args(getInventoryAge_args other) {
|
|
|
11775 |
}
|
|
|
11776 |
|
|
|
11777 |
public getInventoryAge_args deepCopy() {
|
|
|
11778 |
return new getInventoryAge_args(this);
|
|
|
11779 |
}
|
|
|
11780 |
|
|
|
11781 |
@Override
|
|
|
11782 |
public void clear() {
|
|
|
11783 |
}
|
|
|
11784 |
|
|
|
11785 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11786 |
switch (field) {
|
|
|
11787 |
}
|
|
|
11788 |
}
|
|
|
11789 |
|
|
|
11790 |
public Object getFieldValue(_Fields field) {
|
|
|
11791 |
switch (field) {
|
|
|
11792 |
}
|
|
|
11793 |
throw new IllegalStateException();
|
|
|
11794 |
}
|
|
|
11795 |
|
|
|
11796 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11797 |
public boolean isSet(_Fields field) {
|
|
|
11798 |
if (field == null) {
|
|
|
11799 |
throw new IllegalArgumentException();
|
|
|
11800 |
}
|
|
|
11801 |
|
|
|
11802 |
switch (field) {
|
|
|
11803 |
}
|
|
|
11804 |
throw new IllegalStateException();
|
|
|
11805 |
}
|
|
|
11806 |
|
|
|
11807 |
@Override
|
|
|
11808 |
public boolean equals(Object that) {
|
|
|
11809 |
if (that == null)
|
|
|
11810 |
return false;
|
|
|
11811 |
if (that instanceof getInventoryAge_args)
|
|
|
11812 |
return this.equals((getInventoryAge_args)that);
|
|
|
11813 |
return false;
|
|
|
11814 |
}
|
|
|
11815 |
|
|
|
11816 |
public boolean equals(getInventoryAge_args that) {
|
|
|
11817 |
if (that == null)
|
|
|
11818 |
return false;
|
|
|
11819 |
|
|
|
11820 |
return true;
|
|
|
11821 |
}
|
|
|
11822 |
|
|
|
11823 |
@Override
|
|
|
11824 |
public int hashCode() {
|
|
|
11825 |
return 0;
|
|
|
11826 |
}
|
|
|
11827 |
|
|
|
11828 |
public int compareTo(getInventoryAge_args other) {
|
|
|
11829 |
if (!getClass().equals(other.getClass())) {
|
|
|
11830 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11831 |
}
|
|
|
11832 |
|
|
|
11833 |
int lastComparison = 0;
|
|
|
11834 |
getInventoryAge_args typedOther = (getInventoryAge_args)other;
|
|
|
11835 |
|
|
|
11836 |
return 0;
|
|
|
11837 |
}
|
|
|
11838 |
|
|
|
11839 |
public _Fields fieldForId(int fieldId) {
|
|
|
11840 |
return _Fields.findByThriftId(fieldId);
|
|
|
11841 |
}
|
|
|
11842 |
|
|
|
11843 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11844 |
org.apache.thrift.protocol.TField field;
|
|
|
11845 |
iprot.readStructBegin();
|
|
|
11846 |
while (true)
|
|
|
11847 |
{
|
|
|
11848 |
field = iprot.readFieldBegin();
|
|
|
11849 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11850 |
break;
|
|
|
11851 |
}
|
|
|
11852 |
switch (field.id) {
|
|
|
11853 |
default:
|
|
|
11854 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11855 |
}
|
|
|
11856 |
iprot.readFieldEnd();
|
|
|
11857 |
}
|
|
|
11858 |
iprot.readStructEnd();
|
|
|
11859 |
validate();
|
|
|
11860 |
}
|
|
|
11861 |
|
|
|
11862 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11863 |
validate();
|
|
|
11864 |
|
|
|
11865 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11866 |
oprot.writeFieldStop();
|
|
|
11867 |
oprot.writeStructEnd();
|
|
|
11868 |
}
|
|
|
11869 |
|
|
|
11870 |
@Override
|
|
|
11871 |
public String toString() {
|
|
|
11872 |
StringBuilder sb = new StringBuilder("getInventoryAge_args(");
|
|
|
11873 |
boolean first = true;
|
|
|
11874 |
|
|
|
11875 |
sb.append(")");
|
|
|
11876 |
return sb.toString();
|
|
|
11877 |
}
|
|
|
11878 |
|
|
|
11879 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11880 |
// check for required fields
|
|
|
11881 |
}
|
|
|
11882 |
|
|
|
11883 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11884 |
try {
|
|
|
11885 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11886 |
} catch (org.apache.thrift.TException te) {
|
|
|
11887 |
throw new java.io.IOException(te);
|
|
|
11888 |
}
|
|
|
11889 |
}
|
|
|
11890 |
|
|
|
11891 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11892 |
try {
|
|
|
11893 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11894 |
} catch (org.apache.thrift.TException te) {
|
|
|
11895 |
throw new java.io.IOException(te);
|
|
|
11896 |
}
|
|
|
11897 |
}
|
|
|
11898 |
|
|
|
11899 |
}
|
|
|
11900 |
|
|
|
11901 |
public static class getInventoryAge_result implements org.apache.thrift.TBase<getInventoryAge_result, getInventoryAge_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11902 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_result");
|
|
|
11903 |
|
|
|
11904 |
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);
|
|
|
11905 |
|
|
|
11906 |
private List<InventoryAge> success; // required
|
|
|
11907 |
|
|
|
11908 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11909 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11910 |
SUCCESS((short)0, "success");
|
|
|
11911 |
|
|
|
11912 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11913 |
|
|
|
11914 |
static {
|
|
|
11915 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11916 |
byName.put(field.getFieldName(), field);
|
|
|
11917 |
}
|
|
|
11918 |
}
|
|
|
11919 |
|
|
|
11920 |
/**
|
|
|
11921 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11922 |
*/
|
|
|
11923 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11924 |
switch(fieldId) {
|
|
|
11925 |
case 0: // SUCCESS
|
|
|
11926 |
return SUCCESS;
|
|
|
11927 |
default:
|
|
|
11928 |
return null;
|
|
|
11929 |
}
|
|
|
11930 |
}
|
|
|
11931 |
|
|
|
11932 |
/**
|
|
|
11933 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11934 |
* if it is not found.
|
|
|
11935 |
*/
|
|
|
11936 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11937 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11938 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11939 |
return fields;
|
|
|
11940 |
}
|
|
|
11941 |
|
|
|
11942 |
/**
|
|
|
11943 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11944 |
*/
|
|
|
11945 |
public static _Fields findByName(String name) {
|
|
|
11946 |
return byName.get(name);
|
|
|
11947 |
}
|
|
|
11948 |
|
|
|
11949 |
private final short _thriftId;
|
|
|
11950 |
private final String _fieldName;
|
|
|
11951 |
|
|
|
11952 |
_Fields(short thriftId, String fieldName) {
|
|
|
11953 |
_thriftId = thriftId;
|
|
|
11954 |
_fieldName = fieldName;
|
|
|
11955 |
}
|
|
|
11956 |
|
|
|
11957 |
public short getThriftFieldId() {
|
|
|
11958 |
return _thriftId;
|
|
|
11959 |
}
|
|
|
11960 |
|
|
|
11961 |
public String getFieldName() {
|
|
|
11962 |
return _fieldName;
|
|
|
11963 |
}
|
|
|
11964 |
}
|
|
|
11965 |
|
|
|
11966 |
// isset id assignments
|
|
|
11967 |
|
|
|
11968 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11969 |
static {
|
|
|
11970 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11971 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11972 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
11973 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAge.class))));
|
|
|
11974 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11975 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_result.class, metaDataMap);
|
|
|
11976 |
}
|
|
|
11977 |
|
|
|
11978 |
public getInventoryAge_result() {
|
|
|
11979 |
}
|
|
|
11980 |
|
|
|
11981 |
public getInventoryAge_result(
|
|
|
11982 |
List<InventoryAge> success)
|
|
|
11983 |
{
|
|
|
11984 |
this();
|
|
|
11985 |
this.success = success;
|
|
|
11986 |
}
|
|
|
11987 |
|
|
|
11988 |
/**
|
|
|
11989 |
* Performs a deep copy on <i>other</i>.
|
|
|
11990 |
*/
|
|
|
11991 |
public getInventoryAge_result(getInventoryAge_result other) {
|
|
|
11992 |
if (other.isSetSuccess()) {
|
|
|
11993 |
List<InventoryAge> __this__success = new ArrayList<InventoryAge>();
|
|
|
11994 |
for (InventoryAge other_element : other.success) {
|
|
|
11995 |
__this__success.add(new InventoryAge(other_element));
|
|
|
11996 |
}
|
|
|
11997 |
this.success = __this__success;
|
|
|
11998 |
}
|
|
|
11999 |
}
|
|
|
12000 |
|
|
|
12001 |
public getInventoryAge_result deepCopy() {
|
|
|
12002 |
return new getInventoryAge_result(this);
|
|
|
12003 |
}
|
|
|
12004 |
|
|
|
12005 |
@Override
|
|
|
12006 |
public void clear() {
|
|
|
12007 |
this.success = null;
|
|
|
12008 |
}
|
|
|
12009 |
|
|
|
12010 |
public int getSuccessSize() {
|
|
|
12011 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
12012 |
}
|
|
|
12013 |
|
|
|
12014 |
public java.util.Iterator<InventoryAge> getSuccessIterator() {
|
|
|
12015 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
12016 |
}
|
|
|
12017 |
|
|
|
12018 |
public void addToSuccess(InventoryAge elem) {
|
|
|
12019 |
if (this.success == null) {
|
|
|
12020 |
this.success = new ArrayList<InventoryAge>();
|
|
|
12021 |
}
|
|
|
12022 |
this.success.add(elem);
|
|
|
12023 |
}
|
|
|
12024 |
|
|
|
12025 |
public List<InventoryAge> getSuccess() {
|
|
|
12026 |
return this.success;
|
|
|
12027 |
}
|
|
|
12028 |
|
|
|
12029 |
public void setSuccess(List<InventoryAge> success) {
|
|
|
12030 |
this.success = success;
|
|
|
12031 |
}
|
|
|
12032 |
|
|
|
12033 |
public void unsetSuccess() {
|
|
|
12034 |
this.success = null;
|
|
|
12035 |
}
|
|
|
12036 |
|
|
|
12037 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12038 |
public boolean isSetSuccess() {
|
|
|
12039 |
return this.success != null;
|
|
|
12040 |
}
|
|
|
12041 |
|
|
|
12042 |
public void setSuccessIsSet(boolean value) {
|
|
|
12043 |
if (!value) {
|
|
|
12044 |
this.success = null;
|
|
|
12045 |
}
|
|
|
12046 |
}
|
|
|
12047 |
|
|
|
12048 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12049 |
switch (field) {
|
|
|
12050 |
case SUCCESS:
|
|
|
12051 |
if (value == null) {
|
|
|
12052 |
unsetSuccess();
|
|
|
12053 |
} else {
|
|
|
12054 |
setSuccess((List<InventoryAge>)value);
|
|
|
12055 |
}
|
|
|
12056 |
break;
|
|
|
12057 |
|
|
|
12058 |
}
|
|
|
12059 |
}
|
|
|
12060 |
|
|
|
12061 |
public Object getFieldValue(_Fields field) {
|
|
|
12062 |
switch (field) {
|
|
|
12063 |
case SUCCESS:
|
|
|
12064 |
return getSuccess();
|
|
|
12065 |
|
|
|
12066 |
}
|
|
|
12067 |
throw new IllegalStateException();
|
|
|
12068 |
}
|
|
|
12069 |
|
|
|
12070 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12071 |
public boolean isSet(_Fields field) {
|
|
|
12072 |
if (field == null) {
|
|
|
12073 |
throw new IllegalArgumentException();
|
|
|
12074 |
}
|
|
|
12075 |
|
|
|
12076 |
switch (field) {
|
|
|
12077 |
case SUCCESS:
|
|
|
12078 |
return isSetSuccess();
|
|
|
12079 |
}
|
|
|
12080 |
throw new IllegalStateException();
|
|
|
12081 |
}
|
|
|
12082 |
|
|
|
12083 |
@Override
|
|
|
12084 |
public boolean equals(Object that) {
|
|
|
12085 |
if (that == null)
|
|
|
12086 |
return false;
|
|
|
12087 |
if (that instanceof getInventoryAge_result)
|
|
|
12088 |
return this.equals((getInventoryAge_result)that);
|
|
|
12089 |
return false;
|
|
|
12090 |
}
|
|
|
12091 |
|
|
|
12092 |
public boolean equals(getInventoryAge_result that) {
|
|
|
12093 |
if (that == null)
|
|
|
12094 |
return false;
|
|
|
12095 |
|
|
|
12096 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12097 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12098 |
if (this_present_success || that_present_success) {
|
|
|
12099 |
if (!(this_present_success && that_present_success))
|
|
|
12100 |
return false;
|
|
|
12101 |
if (!this.success.equals(that.success))
|
|
|
12102 |
return false;
|
|
|
12103 |
}
|
|
|
12104 |
|
|
|
12105 |
return true;
|
|
|
12106 |
}
|
|
|
12107 |
|
|
|
12108 |
@Override
|
|
|
12109 |
public int hashCode() {
|
|
|
12110 |
return 0;
|
|
|
12111 |
}
|
|
|
12112 |
|
|
|
12113 |
public int compareTo(getInventoryAge_result other) {
|
|
|
12114 |
if (!getClass().equals(other.getClass())) {
|
|
|
12115 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12116 |
}
|
|
|
12117 |
|
|
|
12118 |
int lastComparison = 0;
|
|
|
12119 |
getInventoryAge_result typedOther = (getInventoryAge_result)other;
|
|
|
12120 |
|
|
|
12121 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12122 |
if (lastComparison != 0) {
|
|
|
12123 |
return lastComparison;
|
|
|
12124 |
}
|
|
|
12125 |
if (isSetSuccess()) {
|
|
|
12126 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12127 |
if (lastComparison != 0) {
|
|
|
12128 |
return lastComparison;
|
|
|
12129 |
}
|
|
|
12130 |
}
|
|
|
12131 |
return 0;
|
|
|
12132 |
}
|
|
|
12133 |
|
|
|
12134 |
public _Fields fieldForId(int fieldId) {
|
|
|
12135 |
return _Fields.findByThriftId(fieldId);
|
|
|
12136 |
}
|
|
|
12137 |
|
|
|
12138 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12139 |
org.apache.thrift.protocol.TField field;
|
|
|
12140 |
iprot.readStructBegin();
|
|
|
12141 |
while (true)
|
|
|
12142 |
{
|
|
|
12143 |
field = iprot.readFieldBegin();
|
|
|
12144 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12145 |
break;
|
|
|
12146 |
}
|
|
|
12147 |
switch (field.id) {
|
|
|
12148 |
case 0: // SUCCESS
|
|
|
12149 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
12150 |
{
|
|
|
12151 |
org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
|
|
|
12152 |
this.success = new ArrayList<InventoryAge>(_list20.size);
|
|
|
12153 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
|
|
12154 |
{
|
|
|
12155 |
InventoryAge _elem22; // required
|
|
|
12156 |
_elem22 = new InventoryAge();
|
|
|
12157 |
_elem22.read(iprot);
|
|
|
12158 |
this.success.add(_elem22);
|
|
|
12159 |
}
|
|
|
12160 |
iprot.readListEnd();
|
|
|
12161 |
}
|
|
|
12162 |
} else {
|
|
|
12163 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12164 |
}
|
|
|
12165 |
break;
|
|
|
12166 |
default:
|
|
|
12167 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12168 |
}
|
|
|
12169 |
iprot.readFieldEnd();
|
|
|
12170 |
}
|
|
|
12171 |
iprot.readStructEnd();
|
|
|
12172 |
validate();
|
|
|
12173 |
}
|
|
|
12174 |
|
|
|
12175 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12176 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12177 |
|
|
|
12178 |
if (this.isSetSuccess()) {
|
|
|
12179 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12180 |
{
|
|
|
12181 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
12182 |
for (InventoryAge _iter23 : this.success)
|
|
|
12183 |
{
|
|
|
12184 |
_iter23.write(oprot);
|
|
|
12185 |
}
|
|
|
12186 |
oprot.writeListEnd();
|
|
|
12187 |
}
|
|
|
12188 |
oprot.writeFieldEnd();
|
|
|
12189 |
}
|
|
|
12190 |
oprot.writeFieldStop();
|
|
|
12191 |
oprot.writeStructEnd();
|
|
|
12192 |
}
|
|
|
12193 |
|
|
|
12194 |
@Override
|
|
|
12195 |
public String toString() {
|
|
|
12196 |
StringBuilder sb = new StringBuilder("getInventoryAge_result(");
|
|
|
12197 |
boolean first = true;
|
|
|
12198 |
|
|
|
12199 |
sb.append("success:");
|
|
|
12200 |
if (this.success == null) {
|
|
|
12201 |
sb.append("null");
|
|
|
12202 |
} else {
|
|
|
12203 |
sb.append(this.success);
|
|
|
12204 |
}
|
|
|
12205 |
first = false;
|
|
|
12206 |
sb.append(")");
|
|
|
12207 |
return sb.toString();
|
|
|
12208 |
}
|
|
|
12209 |
|
|
|
12210 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12211 |
// check for required fields
|
|
|
12212 |
}
|
|
|
12213 |
|
|
|
12214 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12215 |
try {
|
|
|
12216 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12217 |
} catch (org.apache.thrift.TException te) {
|
|
|
12218 |
throw new java.io.IOException(te);
|
|
|
12219 |
}
|
|
|
12220 |
}
|
|
|
12221 |
|
|
|
12222 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12223 |
try {
|
|
|
12224 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12225 |
} catch (org.apache.thrift.TException te) {
|
|
|
12226 |
throw new java.io.IOException(te);
|
|
|
12227 |
}
|
|
|
12228 |
}
|
|
|
12229 |
|
|
|
12230 |
}
|
|
|
12231 |
|
| 6322 |
amar.kumar |
12232 |
public static class getInventoryScansForItem_args implements org.apache.thrift.TBase<getInventoryScansForItem_args, getInventoryScansForItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12233 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_args");
|
|
|
12234 |
|
|
|
12235 |
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);
|
|
|
12236 |
private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
12237 |
private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
12238 |
|
|
|
12239 |
private long itemId; // required
|
|
|
12240 |
private long fromDate; // required
|
|
|
12241 |
private long toDate; // required
|
|
|
12242 |
|
|
|
12243 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12244 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12245 |
ITEM_ID((short)1, "itemId"),
|
|
|
12246 |
FROM_DATE((short)2, "fromDate"),
|
|
|
12247 |
TO_DATE((short)3, "toDate");
|
|
|
12248 |
|
|
|
12249 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12250 |
|
|
|
12251 |
static {
|
|
|
12252 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12253 |
byName.put(field.getFieldName(), field);
|
|
|
12254 |
}
|
|
|
12255 |
}
|
|
|
12256 |
|
|
|
12257 |
/**
|
|
|
12258 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12259 |
*/
|
|
|
12260 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12261 |
switch(fieldId) {
|
|
|
12262 |
case 1: // ITEM_ID
|
|
|
12263 |
return ITEM_ID;
|
|
|
12264 |
case 2: // FROM_DATE
|
|
|
12265 |
return FROM_DATE;
|
|
|
12266 |
case 3: // TO_DATE
|
|
|
12267 |
return TO_DATE;
|
|
|
12268 |
default:
|
|
|
12269 |
return null;
|
|
|
12270 |
}
|
|
|
12271 |
}
|
|
|
12272 |
|
|
|
12273 |
/**
|
|
|
12274 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12275 |
* if it is not found.
|
|
|
12276 |
*/
|
|
|
12277 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12278 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12279 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12280 |
return fields;
|
|
|
12281 |
}
|
|
|
12282 |
|
|
|
12283 |
/**
|
|
|
12284 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12285 |
*/
|
|
|
12286 |
public static _Fields findByName(String name) {
|
|
|
12287 |
return byName.get(name);
|
|
|
12288 |
}
|
|
|
12289 |
|
|
|
12290 |
private final short _thriftId;
|
|
|
12291 |
private final String _fieldName;
|
|
|
12292 |
|
|
|
12293 |
_Fields(short thriftId, String fieldName) {
|
|
|
12294 |
_thriftId = thriftId;
|
|
|
12295 |
_fieldName = fieldName;
|
|
|
12296 |
}
|
|
|
12297 |
|
|
|
12298 |
public short getThriftFieldId() {
|
|
|
12299 |
return _thriftId;
|
|
|
12300 |
}
|
|
|
12301 |
|
|
|
12302 |
public String getFieldName() {
|
|
|
12303 |
return _fieldName;
|
|
|
12304 |
}
|
|
|
12305 |
}
|
|
|
12306 |
|
|
|
12307 |
// isset id assignments
|
|
|
12308 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
12309 |
private static final int __FROMDATE_ISSET_ID = 1;
|
|
|
12310 |
private static final int __TODATE_ISSET_ID = 2;
|
|
|
12311 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
12312 |
|
|
|
12313 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12314 |
static {
|
|
|
12315 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12316 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12317 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12318 |
tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12319 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12320 |
tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12321 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12322 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12323 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_args.class, metaDataMap);
|
|
|
12324 |
}
|
|
|
12325 |
|
|
|
12326 |
public getInventoryScansForItem_args() {
|
|
|
12327 |
}
|
|
|
12328 |
|
|
|
12329 |
public getInventoryScansForItem_args(
|
|
|
12330 |
long itemId,
|
|
|
12331 |
long fromDate,
|
|
|
12332 |
long toDate)
|
|
|
12333 |
{
|
|
|
12334 |
this();
|
|
|
12335 |
this.itemId = itemId;
|
|
|
12336 |
setItemIdIsSet(true);
|
|
|
12337 |
this.fromDate = fromDate;
|
|
|
12338 |
setFromDateIsSet(true);
|
|
|
12339 |
this.toDate = toDate;
|
|
|
12340 |
setToDateIsSet(true);
|
|
|
12341 |
}
|
|
|
12342 |
|
|
|
12343 |
/**
|
|
|
12344 |
* Performs a deep copy on <i>other</i>.
|
|
|
12345 |
*/
|
|
|
12346 |
public getInventoryScansForItem_args(getInventoryScansForItem_args other) {
|
|
|
12347 |
__isset_bit_vector.clear();
|
|
|
12348 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
12349 |
this.itemId = other.itemId;
|
|
|
12350 |
this.fromDate = other.fromDate;
|
|
|
12351 |
this.toDate = other.toDate;
|
|
|
12352 |
}
|
|
|
12353 |
|
|
|
12354 |
public getInventoryScansForItem_args deepCopy() {
|
|
|
12355 |
return new getInventoryScansForItem_args(this);
|
|
|
12356 |
}
|
|
|
12357 |
|
|
|
12358 |
@Override
|
|
|
12359 |
public void clear() {
|
|
|
12360 |
setItemIdIsSet(false);
|
|
|
12361 |
this.itemId = 0;
|
|
|
12362 |
setFromDateIsSet(false);
|
|
|
12363 |
this.fromDate = 0;
|
|
|
12364 |
setToDateIsSet(false);
|
|
|
12365 |
this.toDate = 0;
|
|
|
12366 |
}
|
|
|
12367 |
|
|
|
12368 |
public long getItemId() {
|
|
|
12369 |
return this.itemId;
|
|
|
12370 |
}
|
|
|
12371 |
|
|
|
12372 |
public void setItemId(long itemId) {
|
|
|
12373 |
this.itemId = itemId;
|
|
|
12374 |
setItemIdIsSet(true);
|
|
|
12375 |
}
|
|
|
12376 |
|
|
|
12377 |
public void unsetItemId() {
|
|
|
12378 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
12379 |
}
|
|
|
12380 |
|
|
|
12381 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
12382 |
public boolean isSetItemId() {
|
|
|
12383 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
12384 |
}
|
|
|
12385 |
|
|
|
12386 |
public void setItemIdIsSet(boolean value) {
|
|
|
12387 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
12388 |
}
|
|
|
12389 |
|
|
|
12390 |
public long getFromDate() {
|
|
|
12391 |
return this.fromDate;
|
|
|
12392 |
}
|
|
|
12393 |
|
|
|
12394 |
public void setFromDate(long fromDate) {
|
|
|
12395 |
this.fromDate = fromDate;
|
|
|
12396 |
setFromDateIsSet(true);
|
|
|
12397 |
}
|
|
|
12398 |
|
|
|
12399 |
public void unsetFromDate() {
|
|
|
12400 |
__isset_bit_vector.clear(__FROMDATE_ISSET_ID);
|
|
|
12401 |
}
|
|
|
12402 |
|
|
|
12403 |
/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
|
|
|
12404 |
public boolean isSetFromDate() {
|
|
|
12405 |
return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
|
|
|
12406 |
}
|
|
|
12407 |
|
|
|
12408 |
public void setFromDateIsSet(boolean value) {
|
|
|
12409 |
__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
|
|
|
12410 |
}
|
|
|
12411 |
|
|
|
12412 |
public long getToDate() {
|
|
|
12413 |
return this.toDate;
|
|
|
12414 |
}
|
|
|
12415 |
|
|
|
12416 |
public void setToDate(long toDate) {
|
|
|
12417 |
this.toDate = toDate;
|
|
|
12418 |
setToDateIsSet(true);
|
|
|
12419 |
}
|
|
|
12420 |
|
|
|
12421 |
public void unsetToDate() {
|
|
|
12422 |
__isset_bit_vector.clear(__TODATE_ISSET_ID);
|
|
|
12423 |
}
|
|
|
12424 |
|
|
|
12425 |
/** Returns true if field toDate is set (has been assigned a value) and false otherwise */
|
|
|
12426 |
public boolean isSetToDate() {
|
|
|
12427 |
return __isset_bit_vector.get(__TODATE_ISSET_ID);
|
|
|
12428 |
}
|
|
|
12429 |
|
|
|
12430 |
public void setToDateIsSet(boolean value) {
|
|
|
12431 |
__isset_bit_vector.set(__TODATE_ISSET_ID, value);
|
|
|
12432 |
}
|
|
|
12433 |
|
|
|
12434 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12435 |
switch (field) {
|
|
|
12436 |
case ITEM_ID:
|
|
|
12437 |
if (value == null) {
|
|
|
12438 |
unsetItemId();
|
|
|
12439 |
} else {
|
|
|
12440 |
setItemId((Long)value);
|
|
|
12441 |
}
|
|
|
12442 |
break;
|
|
|
12443 |
|
|
|
12444 |
case FROM_DATE:
|
|
|
12445 |
if (value == null) {
|
|
|
12446 |
unsetFromDate();
|
|
|
12447 |
} else {
|
|
|
12448 |
setFromDate((Long)value);
|
|
|
12449 |
}
|
|
|
12450 |
break;
|
|
|
12451 |
|
|
|
12452 |
case TO_DATE:
|
|
|
12453 |
if (value == null) {
|
|
|
12454 |
unsetToDate();
|
|
|
12455 |
} else {
|
|
|
12456 |
setToDate((Long)value);
|
|
|
12457 |
}
|
|
|
12458 |
break;
|
|
|
12459 |
|
|
|
12460 |
}
|
|
|
12461 |
}
|
|
|
12462 |
|
|
|
12463 |
public Object getFieldValue(_Fields field) {
|
|
|
12464 |
switch (field) {
|
|
|
12465 |
case ITEM_ID:
|
|
|
12466 |
return Long.valueOf(getItemId());
|
|
|
12467 |
|
|
|
12468 |
case FROM_DATE:
|
|
|
12469 |
return Long.valueOf(getFromDate());
|
|
|
12470 |
|
|
|
12471 |
case TO_DATE:
|
|
|
12472 |
return Long.valueOf(getToDate());
|
|
|
12473 |
|
|
|
12474 |
}
|
|
|
12475 |
throw new IllegalStateException();
|
|
|
12476 |
}
|
|
|
12477 |
|
|
|
12478 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12479 |
public boolean isSet(_Fields field) {
|
|
|
12480 |
if (field == null) {
|
|
|
12481 |
throw new IllegalArgumentException();
|
|
|
12482 |
}
|
|
|
12483 |
|
|
|
12484 |
switch (field) {
|
|
|
12485 |
case ITEM_ID:
|
|
|
12486 |
return isSetItemId();
|
|
|
12487 |
case FROM_DATE:
|
|
|
12488 |
return isSetFromDate();
|
|
|
12489 |
case TO_DATE:
|
|
|
12490 |
return isSetToDate();
|
|
|
12491 |
}
|
|
|
12492 |
throw new IllegalStateException();
|
|
|
12493 |
}
|
|
|
12494 |
|
|
|
12495 |
@Override
|
|
|
12496 |
public boolean equals(Object that) {
|
|
|
12497 |
if (that == null)
|
|
|
12498 |
return false;
|
|
|
12499 |
if (that instanceof getInventoryScansForItem_args)
|
|
|
12500 |
return this.equals((getInventoryScansForItem_args)that);
|
|
|
12501 |
return false;
|
|
|
12502 |
}
|
|
|
12503 |
|
|
|
12504 |
public boolean equals(getInventoryScansForItem_args that) {
|
|
|
12505 |
if (that == null)
|
|
|
12506 |
return false;
|
|
|
12507 |
|
|
|
12508 |
boolean this_present_itemId = true;
|
|
|
12509 |
boolean that_present_itemId = true;
|
|
|
12510 |
if (this_present_itemId || that_present_itemId) {
|
|
|
12511 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
12512 |
return false;
|
|
|
12513 |
if (this.itemId != that.itemId)
|
|
|
12514 |
return false;
|
|
|
12515 |
}
|
|
|
12516 |
|
|
|
12517 |
boolean this_present_fromDate = true;
|
|
|
12518 |
boolean that_present_fromDate = true;
|
|
|
12519 |
if (this_present_fromDate || that_present_fromDate) {
|
|
|
12520 |
if (!(this_present_fromDate && that_present_fromDate))
|
|
|
12521 |
return false;
|
|
|
12522 |
if (this.fromDate != that.fromDate)
|
|
|
12523 |
return false;
|
|
|
12524 |
}
|
|
|
12525 |
|
|
|
12526 |
boolean this_present_toDate = true;
|
|
|
12527 |
boolean that_present_toDate = true;
|
|
|
12528 |
if (this_present_toDate || that_present_toDate) {
|
|
|
12529 |
if (!(this_present_toDate && that_present_toDate))
|
|
|
12530 |
return false;
|
|
|
12531 |
if (this.toDate != that.toDate)
|
|
|
12532 |
return false;
|
|
|
12533 |
}
|
|
|
12534 |
|
|
|
12535 |
return true;
|
|
|
12536 |
}
|
|
|
12537 |
|
|
|
12538 |
@Override
|
|
|
12539 |
public int hashCode() {
|
|
|
12540 |
return 0;
|
|
|
12541 |
}
|
|
|
12542 |
|
|
|
12543 |
public int compareTo(getInventoryScansForItem_args other) {
|
|
|
12544 |
if (!getClass().equals(other.getClass())) {
|
|
|
12545 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12546 |
}
|
|
|
12547 |
|
|
|
12548 |
int lastComparison = 0;
|
|
|
12549 |
getInventoryScansForItem_args typedOther = (getInventoryScansForItem_args)other;
|
|
|
12550 |
|
|
|
12551 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
12552 |
if (lastComparison != 0) {
|
|
|
12553 |
return lastComparison;
|
|
|
12554 |
}
|
|
|
12555 |
if (isSetItemId()) {
|
|
|
12556 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
12557 |
if (lastComparison != 0) {
|
|
|
12558 |
return lastComparison;
|
|
|
12559 |
}
|
|
|
12560 |
}
|
|
|
12561 |
lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
|
|
|
12562 |
if (lastComparison != 0) {
|
|
|
12563 |
return lastComparison;
|
|
|
12564 |
}
|
|
|
12565 |
if (isSetFromDate()) {
|
|
|
12566 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
|
|
|
12567 |
if (lastComparison != 0) {
|
|
|
12568 |
return lastComparison;
|
|
|
12569 |
}
|
|
|
12570 |
}
|
|
|
12571 |
lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
|
|
|
12572 |
if (lastComparison != 0) {
|
|
|
12573 |
return lastComparison;
|
|
|
12574 |
}
|
|
|
12575 |
if (isSetToDate()) {
|
|
|
12576 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
|
|
|
12577 |
if (lastComparison != 0) {
|
|
|
12578 |
return lastComparison;
|
|
|
12579 |
}
|
|
|
12580 |
}
|
|
|
12581 |
return 0;
|
|
|
12582 |
}
|
|
|
12583 |
|
|
|
12584 |
public _Fields fieldForId(int fieldId) {
|
|
|
12585 |
return _Fields.findByThriftId(fieldId);
|
|
|
12586 |
}
|
|
|
12587 |
|
|
|
12588 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12589 |
org.apache.thrift.protocol.TField field;
|
|
|
12590 |
iprot.readStructBegin();
|
|
|
12591 |
while (true)
|
|
|
12592 |
{
|
|
|
12593 |
field = iprot.readFieldBegin();
|
|
|
12594 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12595 |
break;
|
|
|
12596 |
}
|
|
|
12597 |
switch (field.id) {
|
|
|
12598 |
case 1: // ITEM_ID
|
|
|
12599 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12600 |
this.itemId = iprot.readI64();
|
|
|
12601 |
setItemIdIsSet(true);
|
|
|
12602 |
} else {
|
|
|
12603 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12604 |
}
|
|
|
12605 |
break;
|
|
|
12606 |
case 2: // FROM_DATE
|
|
|
12607 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12608 |
this.fromDate = iprot.readI64();
|
|
|
12609 |
setFromDateIsSet(true);
|
|
|
12610 |
} else {
|
|
|
12611 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12612 |
}
|
|
|
12613 |
break;
|
|
|
12614 |
case 3: // TO_DATE
|
|
|
12615 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12616 |
this.toDate = iprot.readI64();
|
|
|
12617 |
setToDateIsSet(true);
|
|
|
12618 |
} else {
|
|
|
12619 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12620 |
}
|
|
|
12621 |
break;
|
|
|
12622 |
default:
|
|
|
12623 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12624 |
}
|
|
|
12625 |
iprot.readFieldEnd();
|
|
|
12626 |
}
|
|
|
12627 |
iprot.readStructEnd();
|
|
|
12628 |
validate();
|
|
|
12629 |
}
|
|
|
12630 |
|
|
|
12631 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12632 |
validate();
|
|
|
12633 |
|
|
|
12634 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12635 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
12636 |
oprot.writeI64(this.itemId);
|
|
|
12637 |
oprot.writeFieldEnd();
|
|
|
12638 |
oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
|
|
|
12639 |
oprot.writeI64(this.fromDate);
|
|
|
12640 |
oprot.writeFieldEnd();
|
|
|
12641 |
oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
|
|
|
12642 |
oprot.writeI64(this.toDate);
|
|
|
12643 |
oprot.writeFieldEnd();
|
|
|
12644 |
oprot.writeFieldStop();
|
|
|
12645 |
oprot.writeStructEnd();
|
|
|
12646 |
}
|
|
|
12647 |
|
|
|
12648 |
@Override
|
|
|
12649 |
public String toString() {
|
|
|
12650 |
StringBuilder sb = new StringBuilder("getInventoryScansForItem_args(");
|
|
|
12651 |
boolean first = true;
|
|
|
12652 |
|
|
|
12653 |
sb.append("itemId:");
|
|
|
12654 |
sb.append(this.itemId);
|
|
|
12655 |
first = false;
|
|
|
12656 |
if (!first) sb.append(", ");
|
|
|
12657 |
sb.append("fromDate:");
|
|
|
12658 |
sb.append(this.fromDate);
|
|
|
12659 |
first = false;
|
|
|
12660 |
if (!first) sb.append(", ");
|
|
|
12661 |
sb.append("toDate:");
|
|
|
12662 |
sb.append(this.toDate);
|
|
|
12663 |
first = false;
|
|
|
12664 |
sb.append(")");
|
|
|
12665 |
return sb.toString();
|
|
|
12666 |
}
|
|
|
12667 |
|
|
|
12668 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12669 |
// check for required fields
|
|
|
12670 |
}
|
|
|
12671 |
|
|
|
12672 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12673 |
try {
|
|
|
12674 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12675 |
} catch (org.apache.thrift.TException te) {
|
|
|
12676 |
throw new java.io.IOException(te);
|
|
|
12677 |
}
|
|
|
12678 |
}
|
|
|
12679 |
|
|
|
12680 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12681 |
try {
|
|
|
12682 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12683 |
} catch (org.apache.thrift.TException te) {
|
|
|
12684 |
throw new java.io.IOException(te);
|
|
|
12685 |
}
|
|
|
12686 |
}
|
|
|
12687 |
|
|
|
12688 |
}
|
|
|
12689 |
|
|
|
12690 |
public static class getInventoryScansForItem_result implements org.apache.thrift.TBase<getInventoryScansForItem_result, getInventoryScansForItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12691 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_result");
|
|
|
12692 |
|
|
|
12693 |
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);
|
|
|
12694 |
|
|
|
12695 |
private List<Scan> success; // required
|
|
|
12696 |
|
|
|
12697 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12698 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12699 |
SUCCESS((short)0, "success");
|
|
|
12700 |
|
|
|
12701 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12702 |
|
|
|
12703 |
static {
|
|
|
12704 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12705 |
byName.put(field.getFieldName(), field);
|
|
|
12706 |
}
|
|
|
12707 |
}
|
|
|
12708 |
|
|
|
12709 |
/**
|
|
|
12710 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12711 |
*/
|
|
|
12712 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12713 |
switch(fieldId) {
|
|
|
12714 |
case 0: // SUCCESS
|
|
|
12715 |
return SUCCESS;
|
|
|
12716 |
default:
|
|
|
12717 |
return null;
|
|
|
12718 |
}
|
|
|
12719 |
}
|
|
|
12720 |
|
|
|
12721 |
/**
|
|
|
12722 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12723 |
* if it is not found.
|
|
|
12724 |
*/
|
|
|
12725 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12726 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12727 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12728 |
return fields;
|
|
|
12729 |
}
|
|
|
12730 |
|
|
|
12731 |
/**
|
|
|
12732 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12733 |
*/
|
|
|
12734 |
public static _Fields findByName(String name) {
|
|
|
12735 |
return byName.get(name);
|
|
|
12736 |
}
|
|
|
12737 |
|
|
|
12738 |
private final short _thriftId;
|
|
|
12739 |
private final String _fieldName;
|
|
|
12740 |
|
|
|
12741 |
_Fields(short thriftId, String fieldName) {
|
|
|
12742 |
_thriftId = thriftId;
|
|
|
12743 |
_fieldName = fieldName;
|
|
|
12744 |
}
|
|
|
12745 |
|
|
|
12746 |
public short getThriftFieldId() {
|
|
|
12747 |
return _thriftId;
|
|
|
12748 |
}
|
|
|
12749 |
|
|
|
12750 |
public String getFieldName() {
|
|
|
12751 |
return _fieldName;
|
|
|
12752 |
}
|
|
|
12753 |
}
|
|
|
12754 |
|
|
|
12755 |
// isset id assignments
|
|
|
12756 |
|
|
|
12757 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12758 |
static {
|
|
|
12759 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12760 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12761 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
12762 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
|
|
|
12763 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12764 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_result.class, metaDataMap);
|
|
|
12765 |
}
|
|
|
12766 |
|
|
|
12767 |
public getInventoryScansForItem_result() {
|
|
|
12768 |
}
|
|
|
12769 |
|
|
|
12770 |
public getInventoryScansForItem_result(
|
|
|
12771 |
List<Scan> success)
|
|
|
12772 |
{
|
|
|
12773 |
this();
|
|
|
12774 |
this.success = success;
|
|
|
12775 |
}
|
|
|
12776 |
|
|
|
12777 |
/**
|
|
|
12778 |
* Performs a deep copy on <i>other</i>.
|
|
|
12779 |
*/
|
|
|
12780 |
public getInventoryScansForItem_result(getInventoryScansForItem_result other) {
|
|
|
12781 |
if (other.isSetSuccess()) {
|
|
|
12782 |
List<Scan> __this__success = new ArrayList<Scan>();
|
|
|
12783 |
for (Scan other_element : other.success) {
|
|
|
12784 |
__this__success.add(new Scan(other_element));
|
|
|
12785 |
}
|
|
|
12786 |
this.success = __this__success;
|
|
|
12787 |
}
|
|
|
12788 |
}
|
|
|
12789 |
|
|
|
12790 |
public getInventoryScansForItem_result deepCopy() {
|
|
|
12791 |
return new getInventoryScansForItem_result(this);
|
|
|
12792 |
}
|
|
|
12793 |
|
|
|
12794 |
@Override
|
|
|
12795 |
public void clear() {
|
|
|
12796 |
this.success = null;
|
|
|
12797 |
}
|
|
|
12798 |
|
|
|
12799 |
public int getSuccessSize() {
|
|
|
12800 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
12801 |
}
|
|
|
12802 |
|
|
|
12803 |
public java.util.Iterator<Scan> getSuccessIterator() {
|
|
|
12804 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
12805 |
}
|
|
|
12806 |
|
|
|
12807 |
public void addToSuccess(Scan elem) {
|
|
|
12808 |
if (this.success == null) {
|
|
|
12809 |
this.success = new ArrayList<Scan>();
|
|
|
12810 |
}
|
|
|
12811 |
this.success.add(elem);
|
|
|
12812 |
}
|
|
|
12813 |
|
|
|
12814 |
public List<Scan> getSuccess() {
|
|
|
12815 |
return this.success;
|
|
|
12816 |
}
|
|
|
12817 |
|
|
|
12818 |
public void setSuccess(List<Scan> success) {
|
|
|
12819 |
this.success = success;
|
|
|
12820 |
}
|
|
|
12821 |
|
|
|
12822 |
public void unsetSuccess() {
|
|
|
12823 |
this.success = null;
|
|
|
12824 |
}
|
|
|
12825 |
|
|
|
12826 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12827 |
public boolean isSetSuccess() {
|
|
|
12828 |
return this.success != null;
|
|
|
12829 |
}
|
|
|
12830 |
|
|
|
12831 |
public void setSuccessIsSet(boolean value) {
|
|
|
12832 |
if (!value) {
|
|
|
12833 |
this.success = null;
|
|
|
12834 |
}
|
|
|
12835 |
}
|
|
|
12836 |
|
|
|
12837 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12838 |
switch (field) {
|
|
|
12839 |
case SUCCESS:
|
|
|
12840 |
if (value == null) {
|
|
|
12841 |
unsetSuccess();
|
|
|
12842 |
} else {
|
|
|
12843 |
setSuccess((List<Scan>)value);
|
|
|
12844 |
}
|
|
|
12845 |
break;
|
|
|
12846 |
|
|
|
12847 |
}
|
|
|
12848 |
}
|
|
|
12849 |
|
|
|
12850 |
public Object getFieldValue(_Fields field) {
|
|
|
12851 |
switch (field) {
|
|
|
12852 |
case SUCCESS:
|
|
|
12853 |
return getSuccess();
|
|
|
12854 |
|
|
|
12855 |
}
|
|
|
12856 |
throw new IllegalStateException();
|
|
|
12857 |
}
|
|
|
12858 |
|
|
|
12859 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12860 |
public boolean isSet(_Fields field) {
|
|
|
12861 |
if (field == null) {
|
|
|
12862 |
throw new IllegalArgumentException();
|
|
|
12863 |
}
|
|
|
12864 |
|
|
|
12865 |
switch (field) {
|
|
|
12866 |
case SUCCESS:
|
|
|
12867 |
return isSetSuccess();
|
|
|
12868 |
}
|
|
|
12869 |
throw new IllegalStateException();
|
|
|
12870 |
}
|
|
|
12871 |
|
|
|
12872 |
@Override
|
|
|
12873 |
public boolean equals(Object that) {
|
|
|
12874 |
if (that == null)
|
|
|
12875 |
return false;
|
|
|
12876 |
if (that instanceof getInventoryScansForItem_result)
|
|
|
12877 |
return this.equals((getInventoryScansForItem_result)that);
|
|
|
12878 |
return false;
|
|
|
12879 |
}
|
|
|
12880 |
|
|
|
12881 |
public boolean equals(getInventoryScansForItem_result that) {
|
|
|
12882 |
if (that == null)
|
|
|
12883 |
return false;
|
|
|
12884 |
|
|
|
12885 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12886 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12887 |
if (this_present_success || that_present_success) {
|
|
|
12888 |
if (!(this_present_success && that_present_success))
|
|
|
12889 |
return false;
|
|
|
12890 |
if (!this.success.equals(that.success))
|
|
|
12891 |
return false;
|
|
|
12892 |
}
|
|
|
12893 |
|
|
|
12894 |
return true;
|
|
|
12895 |
}
|
|
|
12896 |
|
|
|
12897 |
@Override
|
|
|
12898 |
public int hashCode() {
|
|
|
12899 |
return 0;
|
|
|
12900 |
}
|
|
|
12901 |
|
|
|
12902 |
public int compareTo(getInventoryScansForItem_result other) {
|
|
|
12903 |
if (!getClass().equals(other.getClass())) {
|
|
|
12904 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12905 |
}
|
|
|
12906 |
|
|
|
12907 |
int lastComparison = 0;
|
|
|
12908 |
getInventoryScansForItem_result typedOther = (getInventoryScansForItem_result)other;
|
|
|
12909 |
|
|
|
12910 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12911 |
if (lastComparison != 0) {
|
|
|
12912 |
return lastComparison;
|
|
|
12913 |
}
|
|
|
12914 |
if (isSetSuccess()) {
|
|
|
12915 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12916 |
if (lastComparison != 0) {
|
|
|
12917 |
return lastComparison;
|
|
|
12918 |
}
|
|
|
12919 |
}
|
|
|
12920 |
return 0;
|
|
|
12921 |
}
|
|
|
12922 |
|
|
|
12923 |
public _Fields fieldForId(int fieldId) {
|
|
|
12924 |
return _Fields.findByThriftId(fieldId);
|
|
|
12925 |
}
|
|
|
12926 |
|
|
|
12927 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12928 |
org.apache.thrift.protocol.TField field;
|
|
|
12929 |
iprot.readStructBegin();
|
|
|
12930 |
while (true)
|
|
|
12931 |
{
|
|
|
12932 |
field = iprot.readFieldBegin();
|
|
|
12933 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12934 |
break;
|
|
|
12935 |
}
|
|
|
12936 |
switch (field.id) {
|
|
|
12937 |
case 0: // SUCCESS
|
|
|
12938 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
12939 |
{
|
|
|
12940 |
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
|
|
|
12941 |
this.success = new ArrayList<Scan>(_list24.size);
|
|
|
12942 |
for (int _i25 = 0; _i25 < _list24.size; ++_i25)
|
|
|
12943 |
{
|
|
|
12944 |
Scan _elem26; // required
|
|
|
12945 |
_elem26 = new Scan();
|
|
|
12946 |
_elem26.read(iprot);
|
|
|
12947 |
this.success.add(_elem26);
|
|
|
12948 |
}
|
|
|
12949 |
iprot.readListEnd();
|
|
|
12950 |
}
|
|
|
12951 |
} else {
|
|
|
12952 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12953 |
}
|
|
|
12954 |
break;
|
|
|
12955 |
default:
|
|
|
12956 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12957 |
}
|
|
|
12958 |
iprot.readFieldEnd();
|
|
|
12959 |
}
|
|
|
12960 |
iprot.readStructEnd();
|
|
|
12961 |
validate();
|
|
|
12962 |
}
|
|
|
12963 |
|
|
|
12964 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12965 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12966 |
|
|
|
12967 |
if (this.isSetSuccess()) {
|
|
|
12968 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12969 |
{
|
|
|
12970 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
12971 |
for (Scan _iter27 : this.success)
|
|
|
12972 |
{
|
|
|
12973 |
_iter27.write(oprot);
|
|
|
12974 |
}
|
|
|
12975 |
oprot.writeListEnd();
|
|
|
12976 |
}
|
|
|
12977 |
oprot.writeFieldEnd();
|
|
|
12978 |
}
|
|
|
12979 |
oprot.writeFieldStop();
|
|
|
12980 |
oprot.writeStructEnd();
|
|
|
12981 |
}
|
|
|
12982 |
|
|
|
12983 |
@Override
|
|
|
12984 |
public String toString() {
|
|
|
12985 |
StringBuilder sb = new StringBuilder("getInventoryScansForItem_result(");
|
|
|
12986 |
boolean first = true;
|
|
|
12987 |
|
|
|
12988 |
sb.append("success:");
|
|
|
12989 |
if (this.success == null) {
|
|
|
12990 |
sb.append("null");
|
|
|
12991 |
} else {
|
|
|
12992 |
sb.append(this.success);
|
|
|
12993 |
}
|
|
|
12994 |
first = false;
|
|
|
12995 |
sb.append(")");
|
|
|
12996 |
return sb.toString();
|
|
|
12997 |
}
|
|
|
12998 |
|
|
|
12999 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13000 |
// check for required fields
|
|
|
13001 |
}
|
|
|
13002 |
|
|
|
13003 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13004 |
try {
|
|
|
13005 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13006 |
} catch (org.apache.thrift.TException te) {
|
|
|
13007 |
throw new java.io.IOException(te);
|
|
|
13008 |
}
|
|
|
13009 |
}
|
|
|
13010 |
|
|
|
13011 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13012 |
try {
|
|
|
13013 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13014 |
} catch (org.apache.thrift.TException te) {
|
|
|
13015 |
throw new java.io.IOException(te);
|
|
|
13016 |
}
|
|
|
13017 |
}
|
|
|
13018 |
|
|
|
13019 |
}
|
|
|
13020 |
|
|
|
13021 |
public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13022 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
|
|
|
13023 |
|
|
|
13024 |
private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
13025 |
|
|
|
13026 |
private long serialNumber; // required
|
|
|
13027 |
|
|
|
13028 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13029 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13030 |
SERIAL_NUMBER((short)1, "serialNumber");
|
|
|
13031 |
|
|
|
13032 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13033 |
|
|
|
13034 |
static {
|
|
|
13035 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13036 |
byName.put(field.getFieldName(), field);
|
|
|
13037 |
}
|
|
|
13038 |
}
|
|
|
13039 |
|
|
|
13040 |
/**
|
|
|
13041 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13042 |
*/
|
|
|
13043 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13044 |
switch(fieldId) {
|
|
|
13045 |
case 1: // SERIAL_NUMBER
|
|
|
13046 |
return SERIAL_NUMBER;
|
|
|
13047 |
default:
|
|
|
13048 |
return null;
|
|
|
13049 |
}
|
|
|
13050 |
}
|
|
|
13051 |
|
|
|
13052 |
/**
|
|
|
13053 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13054 |
* if it is not found.
|
|
|
13055 |
*/
|
|
|
13056 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13057 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13058 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13059 |
return fields;
|
|
|
13060 |
}
|
|
|
13061 |
|
|
|
13062 |
/**
|
|
|
13063 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13064 |
*/
|
|
|
13065 |
public static _Fields findByName(String name) {
|
|
|
13066 |
return byName.get(name);
|
|
|
13067 |
}
|
|
|
13068 |
|
|
|
13069 |
private final short _thriftId;
|
|
|
13070 |
private final String _fieldName;
|
|
|
13071 |
|
|
|
13072 |
_Fields(short thriftId, String fieldName) {
|
|
|
13073 |
_thriftId = thriftId;
|
|
|
13074 |
_fieldName = fieldName;
|
|
|
13075 |
}
|
|
|
13076 |
|
|
|
13077 |
public short getThriftFieldId() {
|
|
|
13078 |
return _thriftId;
|
|
|
13079 |
}
|
|
|
13080 |
|
|
|
13081 |
public String getFieldName() {
|
|
|
13082 |
return _fieldName;
|
|
|
13083 |
}
|
|
|
13084 |
}
|
|
|
13085 |
|
|
|
13086 |
// isset id assignments
|
|
|
13087 |
private static final int __SERIALNUMBER_ISSET_ID = 0;
|
|
|
13088 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
13089 |
|
|
|
13090 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13091 |
static {
|
|
|
13092 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13093 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13094 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13095 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13096 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
|
|
|
13097 |
}
|
|
|
13098 |
|
|
|
13099 |
public getScanRecordsForSerialNumber_args() {
|
|
|
13100 |
}
|
|
|
13101 |
|
|
|
13102 |
public getScanRecordsForSerialNumber_args(
|
|
|
13103 |
long serialNumber)
|
|
|
13104 |
{
|
|
|
13105 |
this();
|
|
|
13106 |
this.serialNumber = serialNumber;
|
|
|
13107 |
setSerialNumberIsSet(true);
|
|
|
13108 |
}
|
|
|
13109 |
|
|
|
13110 |
/**
|
|
|
13111 |
* Performs a deep copy on <i>other</i>.
|
|
|
13112 |
*/
|
|
|
13113 |
public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
|
|
|
13114 |
__isset_bit_vector.clear();
|
|
|
13115 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
13116 |
this.serialNumber = other.serialNumber;
|
|
|
13117 |
}
|
|
|
13118 |
|
|
|
13119 |
public getScanRecordsForSerialNumber_args deepCopy() {
|
|
|
13120 |
return new getScanRecordsForSerialNumber_args(this);
|
|
|
13121 |
}
|
|
|
13122 |
|
|
|
13123 |
@Override
|
|
|
13124 |
public void clear() {
|
|
|
13125 |
setSerialNumberIsSet(false);
|
|
|
13126 |
this.serialNumber = 0;
|
|
|
13127 |
}
|
|
|
13128 |
|
|
|
13129 |
public long getSerialNumber() {
|
|
|
13130 |
return this.serialNumber;
|
|
|
13131 |
}
|
|
|
13132 |
|
|
|
13133 |
public void setSerialNumber(long serialNumber) {
|
|
|
13134 |
this.serialNumber = serialNumber;
|
|
|
13135 |
setSerialNumberIsSet(true);
|
|
|
13136 |
}
|
|
|
13137 |
|
|
|
13138 |
public void unsetSerialNumber() {
|
|
|
13139 |
__isset_bit_vector.clear(__SERIALNUMBER_ISSET_ID);
|
|
|
13140 |
}
|
|
|
13141 |
|
|
|
13142 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
13143 |
public boolean isSetSerialNumber() {
|
|
|
13144 |
return __isset_bit_vector.get(__SERIALNUMBER_ISSET_ID);
|
|
|
13145 |
}
|
|
|
13146 |
|
|
|
13147 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
13148 |
__isset_bit_vector.set(__SERIALNUMBER_ISSET_ID, value);
|
|
|
13149 |
}
|
|
|
13150 |
|
|
|
13151 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13152 |
switch (field) {
|
|
|
13153 |
case SERIAL_NUMBER:
|
|
|
13154 |
if (value == null) {
|
|
|
13155 |
unsetSerialNumber();
|
|
|
13156 |
} else {
|
|
|
13157 |
setSerialNumber((Long)value);
|
|
|
13158 |
}
|
|
|
13159 |
break;
|
|
|
13160 |
|
|
|
13161 |
}
|
|
|
13162 |
}
|
|
|
13163 |
|
|
|
13164 |
public Object getFieldValue(_Fields field) {
|
|
|
13165 |
switch (field) {
|
|
|
13166 |
case SERIAL_NUMBER:
|
|
|
13167 |
return Long.valueOf(getSerialNumber());
|
|
|
13168 |
|
|
|
13169 |
}
|
|
|
13170 |
throw new IllegalStateException();
|
|
|
13171 |
}
|
|
|
13172 |
|
|
|
13173 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13174 |
public boolean isSet(_Fields field) {
|
|
|
13175 |
if (field == null) {
|
|
|
13176 |
throw new IllegalArgumentException();
|
|
|
13177 |
}
|
|
|
13178 |
|
|
|
13179 |
switch (field) {
|
|
|
13180 |
case SERIAL_NUMBER:
|
|
|
13181 |
return isSetSerialNumber();
|
|
|
13182 |
}
|
|
|
13183 |
throw new IllegalStateException();
|
|
|
13184 |
}
|
|
|
13185 |
|
|
|
13186 |
@Override
|
|
|
13187 |
public boolean equals(Object that) {
|
|
|
13188 |
if (that == null)
|
|
|
13189 |
return false;
|
|
|
13190 |
if (that instanceof getScanRecordsForSerialNumber_args)
|
|
|
13191 |
return this.equals((getScanRecordsForSerialNumber_args)that);
|
|
|
13192 |
return false;
|
|
|
13193 |
}
|
|
|
13194 |
|
|
|
13195 |
public boolean equals(getScanRecordsForSerialNumber_args that) {
|
|
|
13196 |
if (that == null)
|
|
|
13197 |
return false;
|
|
|
13198 |
|
|
|
13199 |
boolean this_present_serialNumber = true;
|
|
|
13200 |
boolean that_present_serialNumber = true;
|
|
|
13201 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
13202 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
|
|
13203 |
return false;
|
|
|
13204 |
if (this.serialNumber != that.serialNumber)
|
|
|
13205 |
return false;
|
|
|
13206 |
}
|
|
|
13207 |
|
|
|
13208 |
return true;
|
|
|
13209 |
}
|
|
|
13210 |
|
|
|
13211 |
@Override
|
|
|
13212 |
public int hashCode() {
|
|
|
13213 |
return 0;
|
|
|
13214 |
}
|
|
|
13215 |
|
|
|
13216 |
public int compareTo(getScanRecordsForSerialNumber_args other) {
|
|
|
13217 |
if (!getClass().equals(other.getClass())) {
|
|
|
13218 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13219 |
}
|
|
|
13220 |
|
|
|
13221 |
int lastComparison = 0;
|
|
|
13222 |
getScanRecordsForSerialNumber_args typedOther = (getScanRecordsForSerialNumber_args)other;
|
|
|
13223 |
|
|
|
13224 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
|
|
13225 |
if (lastComparison != 0) {
|
|
|
13226 |
return lastComparison;
|
|
|
13227 |
}
|
|
|
13228 |
if (isSetSerialNumber()) {
|
|
|
13229 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
|
|
13230 |
if (lastComparison != 0) {
|
|
|
13231 |
return lastComparison;
|
|
|
13232 |
}
|
|
|
13233 |
}
|
|
|
13234 |
return 0;
|
|
|
13235 |
}
|
|
|
13236 |
|
|
|
13237 |
public _Fields fieldForId(int fieldId) {
|
|
|
13238 |
return _Fields.findByThriftId(fieldId);
|
|
|
13239 |
}
|
|
|
13240 |
|
|
|
13241 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13242 |
org.apache.thrift.protocol.TField field;
|
|
|
13243 |
iprot.readStructBegin();
|
|
|
13244 |
while (true)
|
|
|
13245 |
{
|
|
|
13246 |
field = iprot.readFieldBegin();
|
|
|
13247 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13248 |
break;
|
|
|
13249 |
}
|
|
|
13250 |
switch (field.id) {
|
|
|
13251 |
case 1: // SERIAL_NUMBER
|
|
|
13252 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13253 |
this.serialNumber = iprot.readI64();
|
|
|
13254 |
setSerialNumberIsSet(true);
|
|
|
13255 |
} else {
|
|
|
13256 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13257 |
}
|
|
|
13258 |
break;
|
|
|
13259 |
default:
|
|
|
13260 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13261 |
}
|
|
|
13262 |
iprot.readFieldEnd();
|
|
|
13263 |
}
|
|
|
13264 |
iprot.readStructEnd();
|
|
|
13265 |
validate();
|
|
|
13266 |
}
|
|
|
13267 |
|
|
|
13268 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13269 |
validate();
|
|
|
13270 |
|
|
|
13271 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13272 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
13273 |
oprot.writeI64(this.serialNumber);
|
|
|
13274 |
oprot.writeFieldEnd();
|
|
|
13275 |
oprot.writeFieldStop();
|
|
|
13276 |
oprot.writeStructEnd();
|
|
|
13277 |
}
|
|
|
13278 |
|
|
|
13279 |
@Override
|
|
|
13280 |
public String toString() {
|
|
|
13281 |
StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
|
|
|
13282 |
boolean first = true;
|
|
|
13283 |
|
|
|
13284 |
sb.append("serialNumber:");
|
|
|
13285 |
sb.append(this.serialNumber);
|
|
|
13286 |
first = false;
|
|
|
13287 |
sb.append(")");
|
|
|
13288 |
return sb.toString();
|
|
|
13289 |
}
|
|
|
13290 |
|
|
|
13291 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13292 |
// check for required fields
|
|
|
13293 |
}
|
|
|
13294 |
|
|
|
13295 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13296 |
try {
|
|
|
13297 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13298 |
} catch (org.apache.thrift.TException te) {
|
|
|
13299 |
throw new java.io.IOException(te);
|
|
|
13300 |
}
|
|
|
13301 |
}
|
|
|
13302 |
|
|
|
13303 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13304 |
try {
|
|
|
13305 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
13306 |
__isset_bit_vector = new BitSet(1);
|
|
|
13307 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13308 |
} catch (org.apache.thrift.TException te) {
|
|
|
13309 |
throw new java.io.IOException(te);
|
|
|
13310 |
}
|
|
|
13311 |
}
|
|
|
13312 |
|
|
|
13313 |
}
|
|
|
13314 |
|
|
|
13315 |
public static class getScanRecordsForSerialNumber_result implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_result, getScanRecordsForSerialNumber_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
13316 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_result");
|
|
|
13317 |
|
|
|
13318 |
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);
|
|
|
13319 |
|
|
|
13320 |
private List<Scan> success; // required
|
|
|
13321 |
|
|
|
13322 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13323 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13324 |
SUCCESS((short)0, "success");
|
|
|
13325 |
|
|
|
13326 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13327 |
|
|
|
13328 |
static {
|
|
|
13329 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13330 |
byName.put(field.getFieldName(), field);
|
|
|
13331 |
}
|
|
|
13332 |
}
|
|
|
13333 |
|
|
|
13334 |
/**
|
|
|
13335 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13336 |
*/
|
|
|
13337 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13338 |
switch(fieldId) {
|
|
|
13339 |
case 0: // SUCCESS
|
|
|
13340 |
return SUCCESS;
|
|
|
13341 |
default:
|
|
|
13342 |
return null;
|
|
|
13343 |
}
|
|
|
13344 |
}
|
|
|
13345 |
|
|
|
13346 |
/**
|
|
|
13347 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13348 |
* if it is not found.
|
|
|
13349 |
*/
|
|
|
13350 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13351 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13352 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13353 |
return fields;
|
|
|
13354 |
}
|
|
|
13355 |
|
|
|
13356 |
/**
|
|
|
13357 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13358 |
*/
|
|
|
13359 |
public static _Fields findByName(String name) {
|
|
|
13360 |
return byName.get(name);
|
|
|
13361 |
}
|
|
|
13362 |
|
|
|
13363 |
private final short _thriftId;
|
|
|
13364 |
private final String _fieldName;
|
|
|
13365 |
|
|
|
13366 |
_Fields(short thriftId, String fieldName) {
|
|
|
13367 |
_thriftId = thriftId;
|
|
|
13368 |
_fieldName = fieldName;
|
|
|
13369 |
}
|
|
|
13370 |
|
|
|
13371 |
public short getThriftFieldId() {
|
|
|
13372 |
return _thriftId;
|
|
|
13373 |
}
|
|
|
13374 |
|
|
|
13375 |
public String getFieldName() {
|
|
|
13376 |
return _fieldName;
|
|
|
13377 |
}
|
|
|
13378 |
}
|
|
|
13379 |
|
|
|
13380 |
// isset id assignments
|
|
|
13381 |
|
|
|
13382 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13383 |
static {
|
|
|
13384 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13385 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13386 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
13387 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
|
|
|
13388 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13389 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_result.class, metaDataMap);
|
|
|
13390 |
}
|
|
|
13391 |
|
|
|
13392 |
public getScanRecordsForSerialNumber_result() {
|
|
|
13393 |
}
|
|
|
13394 |
|
|
|
13395 |
public getScanRecordsForSerialNumber_result(
|
|
|
13396 |
List<Scan> success)
|
|
|
13397 |
{
|
|
|
13398 |
this();
|
|
|
13399 |
this.success = success;
|
|
|
13400 |
}
|
|
|
13401 |
|
|
|
13402 |
/**
|
|
|
13403 |
* Performs a deep copy on <i>other</i>.
|
|
|
13404 |
*/
|
|
|
13405 |
public getScanRecordsForSerialNumber_result(getScanRecordsForSerialNumber_result other) {
|
|
|
13406 |
if (other.isSetSuccess()) {
|
|
|
13407 |
List<Scan> __this__success = new ArrayList<Scan>();
|
|
|
13408 |
for (Scan other_element : other.success) {
|
|
|
13409 |
__this__success.add(new Scan(other_element));
|
|
|
13410 |
}
|
|
|
13411 |
this.success = __this__success;
|
|
|
13412 |
}
|
|
|
13413 |
}
|
|
|
13414 |
|
|
|
13415 |
public getScanRecordsForSerialNumber_result deepCopy() {
|
|
|
13416 |
return new getScanRecordsForSerialNumber_result(this);
|
|
|
13417 |
}
|
|
|
13418 |
|
|
|
13419 |
@Override
|
|
|
13420 |
public void clear() {
|
|
|
13421 |
this.success = null;
|
|
|
13422 |
}
|
|
|
13423 |
|
|
|
13424 |
public int getSuccessSize() {
|
|
|
13425 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
13426 |
}
|
|
|
13427 |
|
|
|
13428 |
public java.util.Iterator<Scan> getSuccessIterator() {
|
|
|
13429 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
13430 |
}
|
|
|
13431 |
|
|
|
13432 |
public void addToSuccess(Scan elem) {
|
|
|
13433 |
if (this.success == null) {
|
|
|
13434 |
this.success = new ArrayList<Scan>();
|
|
|
13435 |
}
|
|
|
13436 |
this.success.add(elem);
|
|
|
13437 |
}
|
|
|
13438 |
|
|
|
13439 |
public List<Scan> getSuccess() {
|
|
|
13440 |
return this.success;
|
|
|
13441 |
}
|
|
|
13442 |
|
|
|
13443 |
public void setSuccess(List<Scan> success) {
|
|
|
13444 |
this.success = success;
|
|
|
13445 |
}
|
|
|
13446 |
|
|
|
13447 |
public void unsetSuccess() {
|
|
|
13448 |
this.success = null;
|
|
|
13449 |
}
|
|
|
13450 |
|
|
|
13451 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
13452 |
public boolean isSetSuccess() {
|
|
|
13453 |
return this.success != null;
|
|
|
13454 |
}
|
|
|
13455 |
|
|
|
13456 |
public void setSuccessIsSet(boolean value) {
|
|
|
13457 |
if (!value) {
|
|
|
13458 |
this.success = null;
|
|
|
13459 |
}
|
|
|
13460 |
}
|
|
|
13461 |
|
|
|
13462 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13463 |
switch (field) {
|
|
|
13464 |
case SUCCESS:
|
|
|
13465 |
if (value == null) {
|
|
|
13466 |
unsetSuccess();
|
|
|
13467 |
} else {
|
|
|
13468 |
setSuccess((List<Scan>)value);
|
|
|
13469 |
}
|
|
|
13470 |
break;
|
|
|
13471 |
|
|
|
13472 |
}
|
|
|
13473 |
}
|
|
|
13474 |
|
|
|
13475 |
public Object getFieldValue(_Fields field) {
|
|
|
13476 |
switch (field) {
|
|
|
13477 |
case SUCCESS:
|
|
|
13478 |
return getSuccess();
|
|
|
13479 |
|
|
|
13480 |
}
|
|
|
13481 |
throw new IllegalStateException();
|
|
|
13482 |
}
|
|
|
13483 |
|
|
|
13484 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13485 |
public boolean isSet(_Fields field) {
|
|
|
13486 |
if (field == null) {
|
|
|
13487 |
throw new IllegalArgumentException();
|
|
|
13488 |
}
|
|
|
13489 |
|
|
|
13490 |
switch (field) {
|
|
|
13491 |
case SUCCESS:
|
|
|
13492 |
return isSetSuccess();
|
|
|
13493 |
}
|
|
|
13494 |
throw new IllegalStateException();
|
|
|
13495 |
}
|
|
|
13496 |
|
|
|
13497 |
@Override
|
|
|
13498 |
public boolean equals(Object that) {
|
|
|
13499 |
if (that == null)
|
|
|
13500 |
return false;
|
|
|
13501 |
if (that instanceof getScanRecordsForSerialNumber_result)
|
|
|
13502 |
return this.equals((getScanRecordsForSerialNumber_result)that);
|
|
|
13503 |
return false;
|
|
|
13504 |
}
|
|
|
13505 |
|
|
|
13506 |
public boolean equals(getScanRecordsForSerialNumber_result that) {
|
|
|
13507 |
if (that == null)
|
|
|
13508 |
return false;
|
|
|
13509 |
|
|
|
13510 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
13511 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
13512 |
if (this_present_success || that_present_success) {
|
|
|
13513 |
if (!(this_present_success && that_present_success))
|
|
|
13514 |
return false;
|
|
|
13515 |
if (!this.success.equals(that.success))
|
|
|
13516 |
return false;
|
|
|
13517 |
}
|
|
|
13518 |
|
|
|
13519 |
return true;
|
|
|
13520 |
}
|
|
|
13521 |
|
|
|
13522 |
@Override
|
|
|
13523 |
public int hashCode() {
|
|
|
13524 |
return 0;
|
|
|
13525 |
}
|
|
|
13526 |
|
|
|
13527 |
public int compareTo(getScanRecordsForSerialNumber_result other) {
|
|
|
13528 |
if (!getClass().equals(other.getClass())) {
|
|
|
13529 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13530 |
}
|
|
|
13531 |
|
|
|
13532 |
int lastComparison = 0;
|
|
|
13533 |
getScanRecordsForSerialNumber_result typedOther = (getScanRecordsForSerialNumber_result)other;
|
|
|
13534 |
|
|
|
13535 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
13536 |
if (lastComparison != 0) {
|
|
|
13537 |
return lastComparison;
|
|
|
13538 |
}
|
|
|
13539 |
if (isSetSuccess()) {
|
|
|
13540 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
13541 |
if (lastComparison != 0) {
|
|
|
13542 |
return lastComparison;
|
|
|
13543 |
}
|
|
|
13544 |
}
|
|
|
13545 |
return 0;
|
|
|
13546 |
}
|
|
|
13547 |
|
|
|
13548 |
public _Fields fieldForId(int fieldId) {
|
|
|
13549 |
return _Fields.findByThriftId(fieldId);
|
|
|
13550 |
}
|
|
|
13551 |
|
|
|
13552 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13553 |
org.apache.thrift.protocol.TField field;
|
|
|
13554 |
iprot.readStructBegin();
|
|
|
13555 |
while (true)
|
|
|
13556 |
{
|
|
|
13557 |
field = iprot.readFieldBegin();
|
|
|
13558 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13559 |
break;
|
|
|
13560 |
}
|
|
|
13561 |
switch (field.id) {
|
|
|
13562 |
case 0: // SUCCESS
|
|
|
13563 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
13564 |
{
|
|
|
13565 |
org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
|
|
|
13566 |
this.success = new ArrayList<Scan>(_list28.size);
|
|
|
13567 |
for (int _i29 = 0; _i29 < _list28.size; ++_i29)
|
|
|
13568 |
{
|
|
|
13569 |
Scan _elem30; // required
|
|
|
13570 |
_elem30 = new Scan();
|
|
|
13571 |
_elem30.read(iprot);
|
|
|
13572 |
this.success.add(_elem30);
|
|
|
13573 |
}
|
|
|
13574 |
iprot.readListEnd();
|
|
|
13575 |
}
|
|
|
13576 |
} else {
|
|
|
13577 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13578 |
}
|
|
|
13579 |
break;
|
|
|
13580 |
default:
|
|
|
13581 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13582 |
}
|
|
|
13583 |
iprot.readFieldEnd();
|
|
|
13584 |
}
|
|
|
13585 |
iprot.readStructEnd();
|
|
|
13586 |
validate();
|
|
|
13587 |
}
|
|
|
13588 |
|
|
|
13589 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13590 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13591 |
|
|
|
13592 |
if (this.isSetSuccess()) {
|
|
|
13593 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
13594 |
{
|
|
|
13595 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
13596 |
for (Scan _iter31 : this.success)
|
|
|
13597 |
{
|
|
|
13598 |
_iter31.write(oprot);
|
|
|
13599 |
}
|
|
|
13600 |
oprot.writeListEnd();
|
|
|
13601 |
}
|
|
|
13602 |
oprot.writeFieldEnd();
|
|
|
13603 |
}
|
|
|
13604 |
oprot.writeFieldStop();
|
|
|
13605 |
oprot.writeStructEnd();
|
|
|
13606 |
}
|
|
|
13607 |
|
|
|
13608 |
@Override
|
|
|
13609 |
public String toString() {
|
|
|
13610 |
StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_result(");
|
|
|
13611 |
boolean first = true;
|
|
|
13612 |
|
|
|
13613 |
sb.append("success:");
|
|
|
13614 |
if (this.success == null) {
|
|
|
13615 |
sb.append("null");
|
|
|
13616 |
} else {
|
|
|
13617 |
sb.append(this.success);
|
|
|
13618 |
}
|
|
|
13619 |
first = false;
|
|
|
13620 |
sb.append(")");
|
|
|
13621 |
return sb.toString();
|
|
|
13622 |
}
|
|
|
13623 |
|
|
|
13624 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13625 |
// check for required fields
|
|
|
13626 |
}
|
|
|
13627 |
|
|
|
13628 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13629 |
try {
|
|
|
13630 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13631 |
} catch (org.apache.thrift.TException te) {
|
|
|
13632 |
throw new java.io.IOException(te);
|
|
|
13633 |
}
|
|
|
13634 |
}
|
|
|
13635 |
|
|
|
13636 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13637 |
try {
|
|
|
13638 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13639 |
} catch (org.apache.thrift.TException te) {
|
|
|
13640 |
throw new java.io.IOException(te);
|
|
|
13641 |
}
|
|
|
13642 |
}
|
|
|
13643 |
|
|
|
13644 |
}
|
|
|
13645 |
|
| 6467 |
amar.kumar |
13646 |
public static class scanForPurchaseReturn_args implements org.apache.thrift.TBase<scanForPurchaseReturn_args, scanForPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13647 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_args");
|
|
|
13648 |
|
|
|
13649 |
private static final org.apache.thrift.protocol.TField SALE_RETURN_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("saleReturnItems", org.apache.thrift.protocol.TType.LIST, (short)1);
|
|
|
13650 |
private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
13651 |
|
|
|
13652 |
private List<InventoryItem> saleReturnItems; // required
|
|
|
13653 |
private long vendorId; // required
|
|
|
13654 |
|
|
|
13655 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13656 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13657 |
SALE_RETURN_ITEMS((short)1, "saleReturnItems"),
|
|
|
13658 |
VENDOR_ID((short)2, "vendorId");
|
|
|
13659 |
|
|
|
13660 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13661 |
|
|
|
13662 |
static {
|
|
|
13663 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13664 |
byName.put(field.getFieldName(), field);
|
|
|
13665 |
}
|
|
|
13666 |
}
|
|
|
13667 |
|
|
|
13668 |
/**
|
|
|
13669 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13670 |
*/
|
|
|
13671 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13672 |
switch(fieldId) {
|
|
|
13673 |
case 1: // SALE_RETURN_ITEMS
|
|
|
13674 |
return SALE_RETURN_ITEMS;
|
|
|
13675 |
case 2: // VENDOR_ID
|
|
|
13676 |
return VENDOR_ID;
|
|
|
13677 |
default:
|
|
|
13678 |
return null;
|
|
|
13679 |
}
|
|
|
13680 |
}
|
|
|
13681 |
|
|
|
13682 |
/**
|
|
|
13683 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13684 |
* if it is not found.
|
|
|
13685 |
*/
|
|
|
13686 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13687 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13688 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13689 |
return fields;
|
|
|
13690 |
}
|
|
|
13691 |
|
|
|
13692 |
/**
|
|
|
13693 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13694 |
*/
|
|
|
13695 |
public static _Fields findByName(String name) {
|
|
|
13696 |
return byName.get(name);
|
|
|
13697 |
}
|
|
|
13698 |
|
|
|
13699 |
private final short _thriftId;
|
|
|
13700 |
private final String _fieldName;
|
|
|
13701 |
|
|
|
13702 |
_Fields(short thriftId, String fieldName) {
|
|
|
13703 |
_thriftId = thriftId;
|
|
|
13704 |
_fieldName = fieldName;
|
|
|
13705 |
}
|
|
|
13706 |
|
|
|
13707 |
public short getThriftFieldId() {
|
|
|
13708 |
return _thriftId;
|
|
|
13709 |
}
|
|
|
13710 |
|
|
|
13711 |
public String getFieldName() {
|
|
|
13712 |
return _fieldName;
|
|
|
13713 |
}
|
|
|
13714 |
}
|
|
|
13715 |
|
|
|
13716 |
// isset id assignments
|
|
|
13717 |
private static final int __VENDORID_ISSET_ID = 0;
|
|
|
13718 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
13719 |
|
|
|
13720 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13721 |
static {
|
|
|
13722 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13723 |
tmpMap.put(_Fields.SALE_RETURN_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("saleReturnItems", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13724 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
13725 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
13726 |
tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13727 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13728 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13729 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_args.class, metaDataMap);
|
|
|
13730 |
}
|
|
|
13731 |
|
|
|
13732 |
public scanForPurchaseReturn_args() {
|
|
|
13733 |
}
|
|
|
13734 |
|
|
|
13735 |
public scanForPurchaseReturn_args(
|
|
|
13736 |
List<InventoryItem> saleReturnItems,
|
|
|
13737 |
long vendorId)
|
|
|
13738 |
{
|
|
|
13739 |
this();
|
|
|
13740 |
this.saleReturnItems = saleReturnItems;
|
|
|
13741 |
this.vendorId = vendorId;
|
|
|
13742 |
setVendorIdIsSet(true);
|
|
|
13743 |
}
|
|
|
13744 |
|
|
|
13745 |
/**
|
|
|
13746 |
* Performs a deep copy on <i>other</i>.
|
|
|
13747 |
*/
|
|
|
13748 |
public scanForPurchaseReturn_args(scanForPurchaseReturn_args other) {
|
|
|
13749 |
__isset_bit_vector.clear();
|
|
|
13750 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
13751 |
if (other.isSetSaleReturnItems()) {
|
|
|
13752 |
List<InventoryItem> __this__saleReturnItems = new ArrayList<InventoryItem>();
|
|
|
13753 |
for (InventoryItem other_element : other.saleReturnItems) {
|
|
|
13754 |
__this__saleReturnItems.add(new InventoryItem(other_element));
|
|
|
13755 |
}
|
|
|
13756 |
this.saleReturnItems = __this__saleReturnItems;
|
|
|
13757 |
}
|
|
|
13758 |
this.vendorId = other.vendorId;
|
|
|
13759 |
}
|
|
|
13760 |
|
|
|
13761 |
public scanForPurchaseReturn_args deepCopy() {
|
|
|
13762 |
return new scanForPurchaseReturn_args(this);
|
|
|
13763 |
}
|
|
|
13764 |
|
|
|
13765 |
@Override
|
|
|
13766 |
public void clear() {
|
|
|
13767 |
this.saleReturnItems = null;
|
|
|
13768 |
setVendorIdIsSet(false);
|
|
|
13769 |
this.vendorId = 0;
|
|
|
13770 |
}
|
|
|
13771 |
|
|
|
13772 |
public int getSaleReturnItemsSize() {
|
|
|
13773 |
return (this.saleReturnItems == null) ? 0 : this.saleReturnItems.size();
|
|
|
13774 |
}
|
|
|
13775 |
|
|
|
13776 |
public java.util.Iterator<InventoryItem> getSaleReturnItemsIterator() {
|
|
|
13777 |
return (this.saleReturnItems == null) ? null : this.saleReturnItems.iterator();
|
|
|
13778 |
}
|
|
|
13779 |
|
|
|
13780 |
public void addToSaleReturnItems(InventoryItem elem) {
|
|
|
13781 |
if (this.saleReturnItems == null) {
|
|
|
13782 |
this.saleReturnItems = new ArrayList<InventoryItem>();
|
|
|
13783 |
}
|
|
|
13784 |
this.saleReturnItems.add(elem);
|
|
|
13785 |
}
|
|
|
13786 |
|
|
|
13787 |
public List<InventoryItem> getSaleReturnItems() {
|
|
|
13788 |
return this.saleReturnItems;
|
|
|
13789 |
}
|
|
|
13790 |
|
|
|
13791 |
public void setSaleReturnItems(List<InventoryItem> saleReturnItems) {
|
|
|
13792 |
this.saleReturnItems = saleReturnItems;
|
|
|
13793 |
}
|
|
|
13794 |
|
|
|
13795 |
public void unsetSaleReturnItems() {
|
|
|
13796 |
this.saleReturnItems = null;
|
|
|
13797 |
}
|
|
|
13798 |
|
|
|
13799 |
/** Returns true if field saleReturnItems is set (has been assigned a value) and false otherwise */
|
|
|
13800 |
public boolean isSetSaleReturnItems() {
|
|
|
13801 |
return this.saleReturnItems != null;
|
|
|
13802 |
}
|
|
|
13803 |
|
|
|
13804 |
public void setSaleReturnItemsIsSet(boolean value) {
|
|
|
13805 |
if (!value) {
|
|
|
13806 |
this.saleReturnItems = null;
|
|
|
13807 |
}
|
|
|
13808 |
}
|
|
|
13809 |
|
|
|
13810 |
public long getVendorId() {
|
|
|
13811 |
return this.vendorId;
|
|
|
13812 |
}
|
|
|
13813 |
|
|
|
13814 |
public void setVendorId(long vendorId) {
|
|
|
13815 |
this.vendorId = vendorId;
|
|
|
13816 |
setVendorIdIsSet(true);
|
|
|
13817 |
}
|
|
|
13818 |
|
|
|
13819 |
public void unsetVendorId() {
|
|
|
13820 |
__isset_bit_vector.clear(__VENDORID_ISSET_ID);
|
|
|
13821 |
}
|
|
|
13822 |
|
|
|
13823 |
/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
|
|
|
13824 |
public boolean isSetVendorId() {
|
|
|
13825 |
return __isset_bit_vector.get(__VENDORID_ISSET_ID);
|
|
|
13826 |
}
|
|
|
13827 |
|
|
|
13828 |
public void setVendorIdIsSet(boolean value) {
|
|
|
13829 |
__isset_bit_vector.set(__VENDORID_ISSET_ID, value);
|
|
|
13830 |
}
|
|
|
13831 |
|
|
|
13832 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13833 |
switch (field) {
|
|
|
13834 |
case SALE_RETURN_ITEMS:
|
|
|
13835 |
if (value == null) {
|
|
|
13836 |
unsetSaleReturnItems();
|
|
|
13837 |
} else {
|
|
|
13838 |
setSaleReturnItems((List<InventoryItem>)value);
|
|
|
13839 |
}
|
|
|
13840 |
break;
|
|
|
13841 |
|
|
|
13842 |
case VENDOR_ID:
|
|
|
13843 |
if (value == null) {
|
|
|
13844 |
unsetVendorId();
|
|
|
13845 |
} else {
|
|
|
13846 |
setVendorId((Long)value);
|
|
|
13847 |
}
|
|
|
13848 |
break;
|
|
|
13849 |
|
|
|
13850 |
}
|
|
|
13851 |
}
|
|
|
13852 |
|
|
|
13853 |
public Object getFieldValue(_Fields field) {
|
|
|
13854 |
switch (field) {
|
|
|
13855 |
case SALE_RETURN_ITEMS:
|
|
|
13856 |
return getSaleReturnItems();
|
|
|
13857 |
|
|
|
13858 |
case VENDOR_ID:
|
|
|
13859 |
return Long.valueOf(getVendorId());
|
|
|
13860 |
|
|
|
13861 |
}
|
|
|
13862 |
throw new IllegalStateException();
|
|
|
13863 |
}
|
|
|
13864 |
|
|
|
13865 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13866 |
public boolean isSet(_Fields field) {
|
|
|
13867 |
if (field == null) {
|
|
|
13868 |
throw new IllegalArgumentException();
|
|
|
13869 |
}
|
|
|
13870 |
|
|
|
13871 |
switch (field) {
|
|
|
13872 |
case SALE_RETURN_ITEMS:
|
|
|
13873 |
return isSetSaleReturnItems();
|
|
|
13874 |
case VENDOR_ID:
|
|
|
13875 |
return isSetVendorId();
|
|
|
13876 |
}
|
|
|
13877 |
throw new IllegalStateException();
|
|
|
13878 |
}
|
|
|
13879 |
|
|
|
13880 |
@Override
|
|
|
13881 |
public boolean equals(Object that) {
|
|
|
13882 |
if (that == null)
|
|
|
13883 |
return false;
|
|
|
13884 |
if (that instanceof scanForPurchaseReturn_args)
|
|
|
13885 |
return this.equals((scanForPurchaseReturn_args)that);
|
|
|
13886 |
return false;
|
|
|
13887 |
}
|
|
|
13888 |
|
|
|
13889 |
public boolean equals(scanForPurchaseReturn_args that) {
|
|
|
13890 |
if (that == null)
|
|
|
13891 |
return false;
|
|
|
13892 |
|
|
|
13893 |
boolean this_present_saleReturnItems = true && this.isSetSaleReturnItems();
|
|
|
13894 |
boolean that_present_saleReturnItems = true && that.isSetSaleReturnItems();
|
|
|
13895 |
if (this_present_saleReturnItems || that_present_saleReturnItems) {
|
|
|
13896 |
if (!(this_present_saleReturnItems && that_present_saleReturnItems))
|
|
|
13897 |
return false;
|
|
|
13898 |
if (!this.saleReturnItems.equals(that.saleReturnItems))
|
|
|
13899 |
return false;
|
|
|
13900 |
}
|
|
|
13901 |
|
|
|
13902 |
boolean this_present_vendorId = true;
|
|
|
13903 |
boolean that_present_vendorId = true;
|
|
|
13904 |
if (this_present_vendorId || that_present_vendorId) {
|
|
|
13905 |
if (!(this_present_vendorId && that_present_vendorId))
|
|
|
13906 |
return false;
|
|
|
13907 |
if (this.vendorId != that.vendorId)
|
|
|
13908 |
return false;
|
|
|
13909 |
}
|
|
|
13910 |
|
|
|
13911 |
return true;
|
|
|
13912 |
}
|
|
|
13913 |
|
|
|
13914 |
@Override
|
|
|
13915 |
public int hashCode() {
|
|
|
13916 |
return 0;
|
|
|
13917 |
}
|
|
|
13918 |
|
|
|
13919 |
public int compareTo(scanForPurchaseReturn_args other) {
|
|
|
13920 |
if (!getClass().equals(other.getClass())) {
|
|
|
13921 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13922 |
}
|
|
|
13923 |
|
|
|
13924 |
int lastComparison = 0;
|
|
|
13925 |
scanForPurchaseReturn_args typedOther = (scanForPurchaseReturn_args)other;
|
|
|
13926 |
|
|
|
13927 |
lastComparison = Boolean.valueOf(isSetSaleReturnItems()).compareTo(typedOther.isSetSaleReturnItems());
|
|
|
13928 |
if (lastComparison != 0) {
|
|
|
13929 |
return lastComparison;
|
|
|
13930 |
}
|
|
|
13931 |
if (isSetSaleReturnItems()) {
|
|
|
13932 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saleReturnItems, typedOther.saleReturnItems);
|
|
|
13933 |
if (lastComparison != 0) {
|
|
|
13934 |
return lastComparison;
|
|
|
13935 |
}
|
|
|
13936 |
}
|
|
|
13937 |
lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
|
|
|
13938 |
if (lastComparison != 0) {
|
|
|
13939 |
return lastComparison;
|
|
|
13940 |
}
|
|
|
13941 |
if (isSetVendorId()) {
|
|
|
13942 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
|
|
|
13943 |
if (lastComparison != 0) {
|
|
|
13944 |
return lastComparison;
|
|
|
13945 |
}
|
|
|
13946 |
}
|
|
|
13947 |
return 0;
|
|
|
13948 |
}
|
|
|
13949 |
|
|
|
13950 |
public _Fields fieldForId(int fieldId) {
|
|
|
13951 |
return _Fields.findByThriftId(fieldId);
|
|
|
13952 |
}
|
|
|
13953 |
|
|
|
13954 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13955 |
org.apache.thrift.protocol.TField field;
|
|
|
13956 |
iprot.readStructBegin();
|
|
|
13957 |
while (true)
|
|
|
13958 |
{
|
|
|
13959 |
field = iprot.readFieldBegin();
|
|
|
13960 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13961 |
break;
|
|
|
13962 |
}
|
|
|
13963 |
switch (field.id) {
|
|
|
13964 |
case 1: // SALE_RETURN_ITEMS
|
|
|
13965 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
13966 |
{
|
|
|
13967 |
org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
|
|
|
13968 |
this.saleReturnItems = new ArrayList<InventoryItem>(_list32.size);
|
|
|
13969 |
for (int _i33 = 0; _i33 < _list32.size; ++_i33)
|
|
|
13970 |
{
|
|
|
13971 |
InventoryItem _elem34; // required
|
|
|
13972 |
_elem34 = new InventoryItem();
|
|
|
13973 |
_elem34.read(iprot);
|
|
|
13974 |
this.saleReturnItems.add(_elem34);
|
|
|
13975 |
}
|
|
|
13976 |
iprot.readListEnd();
|
|
|
13977 |
}
|
|
|
13978 |
} else {
|
|
|
13979 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13980 |
}
|
|
|
13981 |
break;
|
|
|
13982 |
case 2: // VENDOR_ID
|
|
|
13983 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13984 |
this.vendorId = iprot.readI64();
|
|
|
13985 |
setVendorIdIsSet(true);
|
|
|
13986 |
} else {
|
|
|
13987 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13988 |
}
|
|
|
13989 |
break;
|
|
|
13990 |
default:
|
|
|
13991 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13992 |
}
|
|
|
13993 |
iprot.readFieldEnd();
|
|
|
13994 |
}
|
|
|
13995 |
iprot.readStructEnd();
|
|
|
13996 |
validate();
|
|
|
13997 |
}
|
|
|
13998 |
|
|
|
13999 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14000 |
validate();
|
|
|
14001 |
|
|
|
14002 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14003 |
if (this.saleReturnItems != null) {
|
|
|
14004 |
oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
|
|
|
14005 |
{
|
|
|
14006 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
|
|
|
14007 |
for (InventoryItem _iter35 : this.saleReturnItems)
|
|
|
14008 |
{
|
|
|
14009 |
_iter35.write(oprot);
|
|
|
14010 |
}
|
|
|
14011 |
oprot.writeListEnd();
|
|
|
14012 |
}
|
|
|
14013 |
oprot.writeFieldEnd();
|
|
|
14014 |
}
|
|
|
14015 |
oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
|
|
|
14016 |
oprot.writeI64(this.vendorId);
|
|
|
14017 |
oprot.writeFieldEnd();
|
|
|
14018 |
oprot.writeFieldStop();
|
|
|
14019 |
oprot.writeStructEnd();
|
|
|
14020 |
}
|
|
|
14021 |
|
|
|
14022 |
@Override
|
|
|
14023 |
public String toString() {
|
|
|
14024 |
StringBuilder sb = new StringBuilder("scanForPurchaseReturn_args(");
|
|
|
14025 |
boolean first = true;
|
|
|
14026 |
|
|
|
14027 |
sb.append("saleReturnItems:");
|
|
|
14028 |
if (this.saleReturnItems == null) {
|
|
|
14029 |
sb.append("null");
|
|
|
14030 |
} else {
|
|
|
14031 |
sb.append(this.saleReturnItems);
|
|
|
14032 |
}
|
|
|
14033 |
first = false;
|
|
|
14034 |
if (!first) sb.append(", ");
|
|
|
14035 |
sb.append("vendorId:");
|
|
|
14036 |
sb.append(this.vendorId);
|
|
|
14037 |
first = false;
|
|
|
14038 |
sb.append(")");
|
|
|
14039 |
return sb.toString();
|
|
|
14040 |
}
|
|
|
14041 |
|
|
|
14042 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14043 |
// check for required fields
|
|
|
14044 |
}
|
|
|
14045 |
|
|
|
14046 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14047 |
try {
|
|
|
14048 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14049 |
} catch (org.apache.thrift.TException te) {
|
|
|
14050 |
throw new java.io.IOException(te);
|
|
|
14051 |
}
|
|
|
14052 |
}
|
|
|
14053 |
|
|
|
14054 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14055 |
try {
|
|
|
14056 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14057 |
} catch (org.apache.thrift.TException te) {
|
|
|
14058 |
throw new java.io.IOException(te);
|
|
|
14059 |
}
|
|
|
14060 |
}
|
|
|
14061 |
|
|
|
14062 |
}
|
|
|
14063 |
|
|
|
14064 |
public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14065 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
|
|
|
14066 |
|
|
|
14067 |
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
14068 |
|
|
|
14069 |
private WarehouseServiceException ex; // required
|
|
|
14070 |
|
|
|
14071 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14072 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14073 |
EX((short)1, "ex");
|
|
|
14074 |
|
|
|
14075 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14076 |
|
|
|
14077 |
static {
|
|
|
14078 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14079 |
byName.put(field.getFieldName(), field);
|
|
|
14080 |
}
|
|
|
14081 |
}
|
|
|
14082 |
|
|
|
14083 |
/**
|
|
|
14084 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14085 |
*/
|
|
|
14086 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14087 |
switch(fieldId) {
|
|
|
14088 |
case 1: // EX
|
|
|
14089 |
return EX;
|
|
|
14090 |
default:
|
|
|
14091 |
return null;
|
|
|
14092 |
}
|
|
|
14093 |
}
|
|
|
14094 |
|
|
|
14095 |
/**
|
|
|
14096 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14097 |
* if it is not found.
|
|
|
14098 |
*/
|
|
|
14099 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14100 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14101 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14102 |
return fields;
|
|
|
14103 |
}
|
|
|
14104 |
|
|
|
14105 |
/**
|
|
|
14106 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14107 |
*/
|
|
|
14108 |
public static _Fields findByName(String name) {
|
|
|
14109 |
return byName.get(name);
|
|
|
14110 |
}
|
|
|
14111 |
|
|
|
14112 |
private final short _thriftId;
|
|
|
14113 |
private final String _fieldName;
|
|
|
14114 |
|
|
|
14115 |
_Fields(short thriftId, String fieldName) {
|
|
|
14116 |
_thriftId = thriftId;
|
|
|
14117 |
_fieldName = fieldName;
|
|
|
14118 |
}
|
|
|
14119 |
|
|
|
14120 |
public short getThriftFieldId() {
|
|
|
14121 |
return _thriftId;
|
|
|
14122 |
}
|
|
|
14123 |
|
|
|
14124 |
public String getFieldName() {
|
|
|
14125 |
return _fieldName;
|
|
|
14126 |
}
|
|
|
14127 |
}
|
|
|
14128 |
|
|
|
14129 |
// isset id assignments
|
|
|
14130 |
|
|
|
14131 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14132 |
static {
|
|
|
14133 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14134 |
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14135 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
14136 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14137 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
|
|
|
14138 |
}
|
|
|
14139 |
|
|
|
14140 |
public scanForPurchaseReturn_result() {
|
|
|
14141 |
}
|
|
|
14142 |
|
|
|
14143 |
public scanForPurchaseReturn_result(
|
|
|
14144 |
WarehouseServiceException ex)
|
|
|
14145 |
{
|
|
|
14146 |
this();
|
|
|
14147 |
this.ex = ex;
|
|
|
14148 |
}
|
|
|
14149 |
|
|
|
14150 |
/**
|
|
|
14151 |
* Performs a deep copy on <i>other</i>.
|
|
|
14152 |
*/
|
|
|
14153 |
public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
|
|
|
14154 |
if (other.isSetEx()) {
|
|
|
14155 |
this.ex = new WarehouseServiceException(other.ex);
|
|
|
14156 |
}
|
|
|
14157 |
}
|
|
|
14158 |
|
|
|
14159 |
public scanForPurchaseReturn_result deepCopy() {
|
|
|
14160 |
return new scanForPurchaseReturn_result(this);
|
|
|
14161 |
}
|
|
|
14162 |
|
|
|
14163 |
@Override
|
|
|
14164 |
public void clear() {
|
|
|
14165 |
this.ex = null;
|
|
|
14166 |
}
|
|
|
14167 |
|
|
|
14168 |
public WarehouseServiceException getEx() {
|
|
|
14169 |
return this.ex;
|
|
|
14170 |
}
|
|
|
14171 |
|
|
|
14172 |
public void setEx(WarehouseServiceException ex) {
|
|
|
14173 |
this.ex = ex;
|
|
|
14174 |
}
|
|
|
14175 |
|
|
|
14176 |
public void unsetEx() {
|
|
|
14177 |
this.ex = null;
|
|
|
14178 |
}
|
|
|
14179 |
|
|
|
14180 |
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
|
|
|
14181 |
public boolean isSetEx() {
|
|
|
14182 |
return this.ex != null;
|
|
|
14183 |
}
|
|
|
14184 |
|
|
|
14185 |
public void setExIsSet(boolean value) {
|
|
|
14186 |
if (!value) {
|
|
|
14187 |
this.ex = null;
|
|
|
14188 |
}
|
|
|
14189 |
}
|
|
|
14190 |
|
|
|
14191 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14192 |
switch (field) {
|
|
|
14193 |
case EX:
|
|
|
14194 |
if (value == null) {
|
|
|
14195 |
unsetEx();
|
|
|
14196 |
} else {
|
|
|
14197 |
setEx((WarehouseServiceException)value);
|
|
|
14198 |
}
|
|
|
14199 |
break;
|
|
|
14200 |
|
|
|
14201 |
}
|
|
|
14202 |
}
|
|
|
14203 |
|
|
|
14204 |
public Object getFieldValue(_Fields field) {
|
|
|
14205 |
switch (field) {
|
|
|
14206 |
case EX:
|
|
|
14207 |
return getEx();
|
|
|
14208 |
|
|
|
14209 |
}
|
|
|
14210 |
throw new IllegalStateException();
|
|
|
14211 |
}
|
|
|
14212 |
|
|
|
14213 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14214 |
public boolean isSet(_Fields field) {
|
|
|
14215 |
if (field == null) {
|
|
|
14216 |
throw new IllegalArgumentException();
|
|
|
14217 |
}
|
|
|
14218 |
|
|
|
14219 |
switch (field) {
|
|
|
14220 |
case EX:
|
|
|
14221 |
return isSetEx();
|
|
|
14222 |
}
|
|
|
14223 |
throw new IllegalStateException();
|
|
|
14224 |
}
|
|
|
14225 |
|
|
|
14226 |
@Override
|
|
|
14227 |
public boolean equals(Object that) {
|
|
|
14228 |
if (that == null)
|
|
|
14229 |
return false;
|
|
|
14230 |
if (that instanceof scanForPurchaseReturn_result)
|
|
|
14231 |
return this.equals((scanForPurchaseReturn_result)that);
|
|
|
14232 |
return false;
|
|
|
14233 |
}
|
|
|
14234 |
|
|
|
14235 |
public boolean equals(scanForPurchaseReturn_result that) {
|
|
|
14236 |
if (that == null)
|
|
|
14237 |
return false;
|
|
|
14238 |
|
|
|
14239 |
boolean this_present_ex = true && this.isSetEx();
|
|
|
14240 |
boolean that_present_ex = true && that.isSetEx();
|
|
|
14241 |
if (this_present_ex || that_present_ex) {
|
|
|
14242 |
if (!(this_present_ex && that_present_ex))
|
|
|
14243 |
return false;
|
|
|
14244 |
if (!this.ex.equals(that.ex))
|
|
|
14245 |
return false;
|
|
|
14246 |
}
|
|
|
14247 |
|
|
|
14248 |
return true;
|
|
|
14249 |
}
|
|
|
14250 |
|
|
|
14251 |
@Override
|
|
|
14252 |
public int hashCode() {
|
|
|
14253 |
return 0;
|
|
|
14254 |
}
|
|
|
14255 |
|
|
|
14256 |
public int compareTo(scanForPurchaseReturn_result other) {
|
|
|
14257 |
if (!getClass().equals(other.getClass())) {
|
|
|
14258 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14259 |
}
|
|
|
14260 |
|
|
|
14261 |
int lastComparison = 0;
|
|
|
14262 |
scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
|
|
|
14263 |
|
|
|
14264 |
lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
|
|
|
14265 |
if (lastComparison != 0) {
|
|
|
14266 |
return lastComparison;
|
|
|
14267 |
}
|
|
|
14268 |
if (isSetEx()) {
|
|
|
14269 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
|
|
|
14270 |
if (lastComparison != 0) {
|
|
|
14271 |
return lastComparison;
|
|
|
14272 |
}
|
|
|
14273 |
}
|
|
|
14274 |
return 0;
|
|
|
14275 |
}
|
|
|
14276 |
|
|
|
14277 |
public _Fields fieldForId(int fieldId) {
|
|
|
14278 |
return _Fields.findByThriftId(fieldId);
|
|
|
14279 |
}
|
|
|
14280 |
|
|
|
14281 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14282 |
org.apache.thrift.protocol.TField field;
|
|
|
14283 |
iprot.readStructBegin();
|
|
|
14284 |
while (true)
|
|
|
14285 |
{
|
|
|
14286 |
field = iprot.readFieldBegin();
|
|
|
14287 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14288 |
break;
|
|
|
14289 |
}
|
|
|
14290 |
switch (field.id) {
|
|
|
14291 |
case 1: // EX
|
|
|
14292 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
14293 |
this.ex = new WarehouseServiceException();
|
|
|
14294 |
this.ex.read(iprot);
|
|
|
14295 |
} else {
|
|
|
14296 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14297 |
}
|
|
|
14298 |
break;
|
|
|
14299 |
default:
|
|
|
14300 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14301 |
}
|
|
|
14302 |
iprot.readFieldEnd();
|
|
|
14303 |
}
|
|
|
14304 |
iprot.readStructEnd();
|
|
|
14305 |
validate();
|
|
|
14306 |
}
|
|
|
14307 |
|
|
|
14308 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14309 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14310 |
|
|
|
14311 |
if (this.isSetEx()) {
|
|
|
14312 |
oprot.writeFieldBegin(EX_FIELD_DESC);
|
|
|
14313 |
this.ex.write(oprot);
|
|
|
14314 |
oprot.writeFieldEnd();
|
|
|
14315 |
}
|
|
|
14316 |
oprot.writeFieldStop();
|
|
|
14317 |
oprot.writeStructEnd();
|
|
|
14318 |
}
|
|
|
14319 |
|
|
|
14320 |
@Override
|
|
|
14321 |
public String toString() {
|
|
|
14322 |
StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
|
|
|
14323 |
boolean first = true;
|
|
|
14324 |
|
|
|
14325 |
sb.append("ex:");
|
|
|
14326 |
if (this.ex == null) {
|
|
|
14327 |
sb.append("null");
|
|
|
14328 |
} else {
|
|
|
14329 |
sb.append(this.ex);
|
|
|
14330 |
}
|
|
|
14331 |
first = false;
|
|
|
14332 |
sb.append(")");
|
|
|
14333 |
return sb.toString();
|
|
|
14334 |
}
|
|
|
14335 |
|
|
|
14336 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14337 |
// check for required fields
|
|
|
14338 |
}
|
|
|
14339 |
|
|
|
14340 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14341 |
try {
|
|
|
14342 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14343 |
} catch (org.apache.thrift.TException te) {
|
|
|
14344 |
throw new java.io.IOException(te);
|
|
|
14345 |
}
|
|
|
14346 |
}
|
|
|
14347 |
|
|
|
14348 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14349 |
try {
|
|
|
14350 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14351 |
} catch (org.apache.thrift.TException te) {
|
|
|
14352 |
throw new java.io.IOException(te);
|
|
|
14353 |
}
|
|
|
14354 |
}
|
|
|
14355 |
|
|
|
14356 |
}
|
|
|
14357 |
|
| 6548 |
amar.kumar |
14358 |
public static class scanForLostItem_args implements org.apache.thrift.TBase<scanForLostItem_args, scanForLostItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
14359 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_args");
|
|
|
14360 |
|
|
|
14361 |
private static final org.apache.thrift.protocol.TField LOST_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("lostItems", org.apache.thrift.protocol.TType.LIST, (short)1);
|
|
|
14362 |
private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
14363 |
|
|
|
14364 |
private List<InventoryItem> lostItems; // required
|
|
|
14365 |
private long vendorId; // required
|
|
|
14366 |
|
|
|
14367 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14368 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14369 |
LOST_ITEMS((short)1, "lostItems"),
|
|
|
14370 |
VENDOR_ID((short)2, "vendorId");
|
|
|
14371 |
|
|
|
14372 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14373 |
|
|
|
14374 |
static {
|
|
|
14375 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14376 |
byName.put(field.getFieldName(), field);
|
|
|
14377 |
}
|
|
|
14378 |
}
|
|
|
14379 |
|
|
|
14380 |
/**
|
|
|
14381 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14382 |
*/
|
|
|
14383 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14384 |
switch(fieldId) {
|
|
|
14385 |
case 1: // LOST_ITEMS
|
|
|
14386 |
return LOST_ITEMS;
|
|
|
14387 |
case 2: // VENDOR_ID
|
|
|
14388 |
return VENDOR_ID;
|
|
|
14389 |
default:
|
|
|
14390 |
return null;
|
|
|
14391 |
}
|
|
|
14392 |
}
|
|
|
14393 |
|
|
|
14394 |
/**
|
|
|
14395 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14396 |
* if it is not found.
|
|
|
14397 |
*/
|
|
|
14398 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14399 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14400 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14401 |
return fields;
|
|
|
14402 |
}
|
|
|
14403 |
|
|
|
14404 |
/**
|
|
|
14405 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14406 |
*/
|
|
|
14407 |
public static _Fields findByName(String name) {
|
|
|
14408 |
return byName.get(name);
|
|
|
14409 |
}
|
|
|
14410 |
|
|
|
14411 |
private final short _thriftId;
|
|
|
14412 |
private final String _fieldName;
|
|
|
14413 |
|
|
|
14414 |
_Fields(short thriftId, String fieldName) {
|
|
|
14415 |
_thriftId = thriftId;
|
|
|
14416 |
_fieldName = fieldName;
|
|
|
14417 |
}
|
|
|
14418 |
|
|
|
14419 |
public short getThriftFieldId() {
|
|
|
14420 |
return _thriftId;
|
|
|
14421 |
}
|
|
|
14422 |
|
|
|
14423 |
public String getFieldName() {
|
|
|
14424 |
return _fieldName;
|
|
|
14425 |
}
|
|
|
14426 |
}
|
|
|
14427 |
|
|
|
14428 |
// isset id assignments
|
|
|
14429 |
private static final int __VENDORID_ISSET_ID = 0;
|
|
|
14430 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
14431 |
|
|
|
14432 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14433 |
static {
|
|
|
14434 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14435 |
tmpMap.put(_Fields.LOST_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("lostItems", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14436 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
14437 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
14438 |
tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14439 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
14440 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14441 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_args.class, metaDataMap);
|
|
|
14442 |
}
|
|
|
14443 |
|
|
|
14444 |
public scanForLostItem_args() {
|
|
|
14445 |
}
|
|
|
14446 |
|
|
|
14447 |
public scanForLostItem_args(
|
|
|
14448 |
List<InventoryItem> lostItems,
|
|
|
14449 |
long vendorId)
|
|
|
14450 |
{
|
|
|
14451 |
this();
|
|
|
14452 |
this.lostItems = lostItems;
|
|
|
14453 |
this.vendorId = vendorId;
|
|
|
14454 |
setVendorIdIsSet(true);
|
|
|
14455 |
}
|
|
|
14456 |
|
|
|
14457 |
/**
|
|
|
14458 |
* Performs a deep copy on <i>other</i>.
|
|
|
14459 |
*/
|
|
|
14460 |
public scanForLostItem_args(scanForLostItem_args other) {
|
|
|
14461 |
__isset_bit_vector.clear();
|
|
|
14462 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14463 |
if (other.isSetLostItems()) {
|
|
|
14464 |
List<InventoryItem> __this__lostItems = new ArrayList<InventoryItem>();
|
|
|
14465 |
for (InventoryItem other_element : other.lostItems) {
|
|
|
14466 |
__this__lostItems.add(new InventoryItem(other_element));
|
|
|
14467 |
}
|
|
|
14468 |
this.lostItems = __this__lostItems;
|
|
|
14469 |
}
|
|
|
14470 |
this.vendorId = other.vendorId;
|
|
|
14471 |
}
|
|
|
14472 |
|
|
|
14473 |
public scanForLostItem_args deepCopy() {
|
|
|
14474 |
return new scanForLostItem_args(this);
|
|
|
14475 |
}
|
|
|
14476 |
|
|
|
14477 |
@Override
|
|
|
14478 |
public void clear() {
|
|
|
14479 |
this.lostItems = null;
|
|
|
14480 |
setVendorIdIsSet(false);
|
|
|
14481 |
this.vendorId = 0;
|
|
|
14482 |
}
|
|
|
14483 |
|
|
|
14484 |
public int getLostItemsSize() {
|
|
|
14485 |
return (this.lostItems == null) ? 0 : this.lostItems.size();
|
|
|
14486 |
}
|
|
|
14487 |
|
|
|
14488 |
public java.util.Iterator<InventoryItem> getLostItemsIterator() {
|
|
|
14489 |
return (this.lostItems == null) ? null : this.lostItems.iterator();
|
|
|
14490 |
}
|
|
|
14491 |
|
|
|
14492 |
public void addToLostItems(InventoryItem elem) {
|
|
|
14493 |
if (this.lostItems == null) {
|
|
|
14494 |
this.lostItems = new ArrayList<InventoryItem>();
|
|
|
14495 |
}
|
|
|
14496 |
this.lostItems.add(elem);
|
|
|
14497 |
}
|
|
|
14498 |
|
|
|
14499 |
public List<InventoryItem> getLostItems() {
|
|
|
14500 |
return this.lostItems;
|
|
|
14501 |
}
|
|
|
14502 |
|
|
|
14503 |
public void setLostItems(List<InventoryItem> lostItems) {
|
|
|
14504 |
this.lostItems = lostItems;
|
|
|
14505 |
}
|
|
|
14506 |
|
|
|
14507 |
public void unsetLostItems() {
|
|
|
14508 |
this.lostItems = null;
|
|
|
14509 |
}
|
|
|
14510 |
|
|
|
14511 |
/** Returns true if field lostItems is set (has been assigned a value) and false otherwise */
|
|
|
14512 |
public boolean isSetLostItems() {
|
|
|
14513 |
return this.lostItems != null;
|
|
|
14514 |
}
|
|
|
14515 |
|
|
|
14516 |
public void setLostItemsIsSet(boolean value) {
|
|
|
14517 |
if (!value) {
|
|
|
14518 |
this.lostItems = null;
|
|
|
14519 |
}
|
|
|
14520 |
}
|
|
|
14521 |
|
|
|
14522 |
public long getVendorId() {
|
|
|
14523 |
return this.vendorId;
|
|
|
14524 |
}
|
|
|
14525 |
|
|
|
14526 |
public void setVendorId(long vendorId) {
|
|
|
14527 |
this.vendorId = vendorId;
|
|
|
14528 |
setVendorIdIsSet(true);
|
|
|
14529 |
}
|
|
|
14530 |
|
|
|
14531 |
public void unsetVendorId() {
|
|
|
14532 |
__isset_bit_vector.clear(__VENDORID_ISSET_ID);
|
|
|
14533 |
}
|
|
|
14534 |
|
|
|
14535 |
/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
|
|
|
14536 |
public boolean isSetVendorId() {
|
|
|
14537 |
return __isset_bit_vector.get(__VENDORID_ISSET_ID);
|
|
|
14538 |
}
|
|
|
14539 |
|
|
|
14540 |
public void setVendorIdIsSet(boolean value) {
|
|
|
14541 |
__isset_bit_vector.set(__VENDORID_ISSET_ID, value);
|
|
|
14542 |
}
|
|
|
14543 |
|
|
|
14544 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14545 |
switch (field) {
|
|
|
14546 |
case LOST_ITEMS:
|
|
|
14547 |
if (value == null) {
|
|
|
14548 |
unsetLostItems();
|
|
|
14549 |
} else {
|
|
|
14550 |
setLostItems((List<InventoryItem>)value);
|
|
|
14551 |
}
|
|
|
14552 |
break;
|
|
|
14553 |
|
|
|
14554 |
case VENDOR_ID:
|
|
|
14555 |
if (value == null) {
|
|
|
14556 |
unsetVendorId();
|
|
|
14557 |
} else {
|
|
|
14558 |
setVendorId((Long)value);
|
|
|
14559 |
}
|
|
|
14560 |
break;
|
|
|
14561 |
|
|
|
14562 |
}
|
|
|
14563 |
}
|
|
|
14564 |
|
|
|
14565 |
public Object getFieldValue(_Fields field) {
|
|
|
14566 |
switch (field) {
|
|
|
14567 |
case LOST_ITEMS:
|
|
|
14568 |
return getLostItems();
|
|
|
14569 |
|
|
|
14570 |
case VENDOR_ID:
|
|
|
14571 |
return Long.valueOf(getVendorId());
|
|
|
14572 |
|
|
|
14573 |
}
|
|
|
14574 |
throw new IllegalStateException();
|
|
|
14575 |
}
|
|
|
14576 |
|
|
|
14577 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14578 |
public boolean isSet(_Fields field) {
|
|
|
14579 |
if (field == null) {
|
|
|
14580 |
throw new IllegalArgumentException();
|
|
|
14581 |
}
|
|
|
14582 |
|
|
|
14583 |
switch (field) {
|
|
|
14584 |
case LOST_ITEMS:
|
|
|
14585 |
return isSetLostItems();
|
|
|
14586 |
case VENDOR_ID:
|
|
|
14587 |
return isSetVendorId();
|
|
|
14588 |
}
|
|
|
14589 |
throw new IllegalStateException();
|
|
|
14590 |
}
|
|
|
14591 |
|
|
|
14592 |
@Override
|
|
|
14593 |
public boolean equals(Object that) {
|
|
|
14594 |
if (that == null)
|
|
|
14595 |
return false;
|
|
|
14596 |
if (that instanceof scanForLostItem_args)
|
|
|
14597 |
return this.equals((scanForLostItem_args)that);
|
|
|
14598 |
return false;
|
|
|
14599 |
}
|
|
|
14600 |
|
|
|
14601 |
public boolean equals(scanForLostItem_args that) {
|
|
|
14602 |
if (that == null)
|
|
|
14603 |
return false;
|
|
|
14604 |
|
|
|
14605 |
boolean this_present_lostItems = true && this.isSetLostItems();
|
|
|
14606 |
boolean that_present_lostItems = true && that.isSetLostItems();
|
|
|
14607 |
if (this_present_lostItems || that_present_lostItems) {
|
|
|
14608 |
if (!(this_present_lostItems && that_present_lostItems))
|
|
|
14609 |
return false;
|
|
|
14610 |
if (!this.lostItems.equals(that.lostItems))
|
|
|
14611 |
return false;
|
|
|
14612 |
}
|
|
|
14613 |
|
|
|
14614 |
boolean this_present_vendorId = true;
|
|
|
14615 |
boolean that_present_vendorId = true;
|
|
|
14616 |
if (this_present_vendorId || that_present_vendorId) {
|
|
|
14617 |
if (!(this_present_vendorId && that_present_vendorId))
|
|
|
14618 |
return false;
|
|
|
14619 |
if (this.vendorId != that.vendorId)
|
|
|
14620 |
return false;
|
|
|
14621 |
}
|
|
|
14622 |
|
|
|
14623 |
return true;
|
|
|
14624 |
}
|
|
|
14625 |
|
|
|
14626 |
@Override
|
|
|
14627 |
public int hashCode() {
|
|
|
14628 |
return 0;
|
|
|
14629 |
}
|
|
|
14630 |
|
|
|
14631 |
public int compareTo(scanForLostItem_args other) {
|
|
|
14632 |
if (!getClass().equals(other.getClass())) {
|
|
|
14633 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14634 |
}
|
|
|
14635 |
|
|
|
14636 |
int lastComparison = 0;
|
|
|
14637 |
scanForLostItem_args typedOther = (scanForLostItem_args)other;
|
|
|
14638 |
|
|
|
14639 |
lastComparison = Boolean.valueOf(isSetLostItems()).compareTo(typedOther.isSetLostItems());
|
|
|
14640 |
if (lastComparison != 0) {
|
|
|
14641 |
return lastComparison;
|
|
|
14642 |
}
|
|
|
14643 |
if (isSetLostItems()) {
|
|
|
14644 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lostItems, typedOther.lostItems);
|
|
|
14645 |
if (lastComparison != 0) {
|
|
|
14646 |
return lastComparison;
|
|
|
14647 |
}
|
|
|
14648 |
}
|
|
|
14649 |
lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
|
|
|
14650 |
if (lastComparison != 0) {
|
|
|
14651 |
return lastComparison;
|
|
|
14652 |
}
|
|
|
14653 |
if (isSetVendorId()) {
|
|
|
14654 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
|
|
|
14655 |
if (lastComparison != 0) {
|
|
|
14656 |
return lastComparison;
|
|
|
14657 |
}
|
|
|
14658 |
}
|
|
|
14659 |
return 0;
|
|
|
14660 |
}
|
|
|
14661 |
|
|
|
14662 |
public _Fields fieldForId(int fieldId) {
|
|
|
14663 |
return _Fields.findByThriftId(fieldId);
|
|
|
14664 |
}
|
|
|
14665 |
|
|
|
14666 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14667 |
org.apache.thrift.protocol.TField field;
|
|
|
14668 |
iprot.readStructBegin();
|
|
|
14669 |
while (true)
|
|
|
14670 |
{
|
|
|
14671 |
field = iprot.readFieldBegin();
|
|
|
14672 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14673 |
break;
|
|
|
14674 |
}
|
|
|
14675 |
switch (field.id) {
|
|
|
14676 |
case 1: // LOST_ITEMS
|
|
|
14677 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
14678 |
{
|
|
|
14679 |
org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
|
|
|
14680 |
this.lostItems = new ArrayList<InventoryItem>(_list36.size);
|
|
|
14681 |
for (int _i37 = 0; _i37 < _list36.size; ++_i37)
|
|
|
14682 |
{
|
|
|
14683 |
InventoryItem _elem38; // required
|
|
|
14684 |
_elem38 = new InventoryItem();
|
|
|
14685 |
_elem38.read(iprot);
|
|
|
14686 |
this.lostItems.add(_elem38);
|
|
|
14687 |
}
|
|
|
14688 |
iprot.readListEnd();
|
|
|
14689 |
}
|
|
|
14690 |
} else {
|
|
|
14691 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14692 |
}
|
|
|
14693 |
break;
|
|
|
14694 |
case 2: // VENDOR_ID
|
|
|
14695 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14696 |
this.vendorId = iprot.readI64();
|
|
|
14697 |
setVendorIdIsSet(true);
|
|
|
14698 |
} else {
|
|
|
14699 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14700 |
}
|
|
|
14701 |
break;
|
|
|
14702 |
default:
|
|
|
14703 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14704 |
}
|
|
|
14705 |
iprot.readFieldEnd();
|
|
|
14706 |
}
|
|
|
14707 |
iprot.readStructEnd();
|
|
|
14708 |
validate();
|
|
|
14709 |
}
|
|
|
14710 |
|
|
|
14711 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14712 |
validate();
|
|
|
14713 |
|
|
|
14714 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14715 |
if (this.lostItems != null) {
|
|
|
14716 |
oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
|
|
|
14717 |
{
|
|
|
14718 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
|
|
|
14719 |
for (InventoryItem _iter39 : this.lostItems)
|
|
|
14720 |
{
|
|
|
14721 |
_iter39.write(oprot);
|
|
|
14722 |
}
|
|
|
14723 |
oprot.writeListEnd();
|
|
|
14724 |
}
|
|
|
14725 |
oprot.writeFieldEnd();
|
|
|
14726 |
}
|
|
|
14727 |
oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
|
|
|
14728 |
oprot.writeI64(this.vendorId);
|
|
|
14729 |
oprot.writeFieldEnd();
|
|
|
14730 |
oprot.writeFieldStop();
|
|
|
14731 |
oprot.writeStructEnd();
|
|
|
14732 |
}
|
|
|
14733 |
|
|
|
14734 |
@Override
|
|
|
14735 |
public String toString() {
|
|
|
14736 |
StringBuilder sb = new StringBuilder("scanForLostItem_args(");
|
|
|
14737 |
boolean first = true;
|
|
|
14738 |
|
|
|
14739 |
sb.append("lostItems:");
|
|
|
14740 |
if (this.lostItems == null) {
|
|
|
14741 |
sb.append("null");
|
|
|
14742 |
} else {
|
|
|
14743 |
sb.append(this.lostItems);
|
|
|
14744 |
}
|
|
|
14745 |
first = false;
|
|
|
14746 |
if (!first) sb.append(", ");
|
|
|
14747 |
sb.append("vendorId:");
|
|
|
14748 |
sb.append(this.vendorId);
|
|
|
14749 |
first = false;
|
|
|
14750 |
sb.append(")");
|
|
|
14751 |
return sb.toString();
|
|
|
14752 |
}
|
|
|
14753 |
|
|
|
14754 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14755 |
// check for required fields
|
|
|
14756 |
}
|
|
|
14757 |
|
|
|
14758 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14759 |
try {
|
|
|
14760 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14761 |
} catch (org.apache.thrift.TException te) {
|
|
|
14762 |
throw new java.io.IOException(te);
|
|
|
14763 |
}
|
|
|
14764 |
}
|
|
|
14765 |
|
|
|
14766 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14767 |
try {
|
|
|
14768 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14769 |
} catch (org.apache.thrift.TException te) {
|
|
|
14770 |
throw new java.io.IOException(te);
|
|
|
14771 |
}
|
|
|
14772 |
}
|
|
|
14773 |
|
|
|
14774 |
}
|
|
|
14775 |
|
|
|
14776 |
public static class scanForLostItem_result implements org.apache.thrift.TBase<scanForLostItem_result, scanForLostItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14777 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_result");
|
|
|
14778 |
|
|
|
14779 |
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
14780 |
|
|
|
14781 |
private WarehouseServiceException ex; // required
|
|
|
14782 |
|
|
|
14783 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14784 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14785 |
EX((short)1, "ex");
|
|
|
14786 |
|
|
|
14787 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14788 |
|
|
|
14789 |
static {
|
|
|
14790 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14791 |
byName.put(field.getFieldName(), field);
|
|
|
14792 |
}
|
|
|
14793 |
}
|
|
|
14794 |
|
|
|
14795 |
/**
|
|
|
14796 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14797 |
*/
|
|
|
14798 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14799 |
switch(fieldId) {
|
|
|
14800 |
case 1: // EX
|
|
|
14801 |
return EX;
|
|
|
14802 |
default:
|
|
|
14803 |
return null;
|
|
|
14804 |
}
|
|
|
14805 |
}
|
|
|
14806 |
|
|
|
14807 |
/**
|
|
|
14808 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14809 |
* if it is not found.
|
|
|
14810 |
*/
|
|
|
14811 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14812 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14813 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14814 |
return fields;
|
|
|
14815 |
}
|
|
|
14816 |
|
|
|
14817 |
/**
|
|
|
14818 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14819 |
*/
|
|
|
14820 |
public static _Fields findByName(String name) {
|
|
|
14821 |
return byName.get(name);
|
|
|
14822 |
}
|
|
|
14823 |
|
|
|
14824 |
private final short _thriftId;
|
|
|
14825 |
private final String _fieldName;
|
|
|
14826 |
|
|
|
14827 |
_Fields(short thriftId, String fieldName) {
|
|
|
14828 |
_thriftId = thriftId;
|
|
|
14829 |
_fieldName = fieldName;
|
|
|
14830 |
}
|
|
|
14831 |
|
|
|
14832 |
public short getThriftFieldId() {
|
|
|
14833 |
return _thriftId;
|
|
|
14834 |
}
|
|
|
14835 |
|
|
|
14836 |
public String getFieldName() {
|
|
|
14837 |
return _fieldName;
|
|
|
14838 |
}
|
|
|
14839 |
}
|
|
|
14840 |
|
|
|
14841 |
// isset id assignments
|
|
|
14842 |
|
|
|
14843 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14844 |
static {
|
|
|
14845 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14846 |
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14847 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
14848 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14849 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_result.class, metaDataMap);
|
|
|
14850 |
}
|
|
|
14851 |
|
|
|
14852 |
public scanForLostItem_result() {
|
|
|
14853 |
}
|
|
|
14854 |
|
|
|
14855 |
public scanForLostItem_result(
|
|
|
14856 |
WarehouseServiceException ex)
|
|
|
14857 |
{
|
|
|
14858 |
this();
|
|
|
14859 |
this.ex = ex;
|
|
|
14860 |
}
|
|
|
14861 |
|
|
|
14862 |
/**
|
|
|
14863 |
* Performs a deep copy on <i>other</i>.
|
|
|
14864 |
*/
|
|
|
14865 |
public scanForLostItem_result(scanForLostItem_result other) {
|
|
|
14866 |
if (other.isSetEx()) {
|
|
|
14867 |
this.ex = new WarehouseServiceException(other.ex);
|
|
|
14868 |
}
|
|
|
14869 |
}
|
|
|
14870 |
|
|
|
14871 |
public scanForLostItem_result deepCopy() {
|
|
|
14872 |
return new scanForLostItem_result(this);
|
|
|
14873 |
}
|
|
|
14874 |
|
|
|
14875 |
@Override
|
|
|
14876 |
public void clear() {
|
|
|
14877 |
this.ex = null;
|
|
|
14878 |
}
|
|
|
14879 |
|
|
|
14880 |
public WarehouseServiceException getEx() {
|
|
|
14881 |
return this.ex;
|
|
|
14882 |
}
|
|
|
14883 |
|
|
|
14884 |
public void setEx(WarehouseServiceException ex) {
|
|
|
14885 |
this.ex = ex;
|
|
|
14886 |
}
|
|
|
14887 |
|
|
|
14888 |
public void unsetEx() {
|
|
|
14889 |
this.ex = null;
|
|
|
14890 |
}
|
|
|
14891 |
|
|
|
14892 |
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
|
|
|
14893 |
public boolean isSetEx() {
|
|
|
14894 |
return this.ex != null;
|
|
|
14895 |
}
|
|
|
14896 |
|
|
|
14897 |
public void setExIsSet(boolean value) {
|
|
|
14898 |
if (!value) {
|
|
|
14899 |
this.ex = null;
|
|
|
14900 |
}
|
|
|
14901 |
}
|
|
|
14902 |
|
|
|
14903 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14904 |
switch (field) {
|
|
|
14905 |
case EX:
|
|
|
14906 |
if (value == null) {
|
|
|
14907 |
unsetEx();
|
|
|
14908 |
} else {
|
|
|
14909 |
setEx((WarehouseServiceException)value);
|
|
|
14910 |
}
|
|
|
14911 |
break;
|
|
|
14912 |
|
|
|
14913 |
}
|
|
|
14914 |
}
|
|
|
14915 |
|
|
|
14916 |
public Object getFieldValue(_Fields field) {
|
|
|
14917 |
switch (field) {
|
|
|
14918 |
case EX:
|
|
|
14919 |
return getEx();
|
|
|
14920 |
|
|
|
14921 |
}
|
|
|
14922 |
throw new IllegalStateException();
|
|
|
14923 |
}
|
|
|
14924 |
|
|
|
14925 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14926 |
public boolean isSet(_Fields field) {
|
|
|
14927 |
if (field == null) {
|
|
|
14928 |
throw new IllegalArgumentException();
|
|
|
14929 |
}
|
|
|
14930 |
|
|
|
14931 |
switch (field) {
|
|
|
14932 |
case EX:
|
|
|
14933 |
return isSetEx();
|
|
|
14934 |
}
|
|
|
14935 |
throw new IllegalStateException();
|
|
|
14936 |
}
|
|
|
14937 |
|
|
|
14938 |
@Override
|
|
|
14939 |
public boolean equals(Object that) {
|
|
|
14940 |
if (that == null)
|
|
|
14941 |
return false;
|
|
|
14942 |
if (that instanceof scanForLostItem_result)
|
|
|
14943 |
return this.equals((scanForLostItem_result)that);
|
|
|
14944 |
return false;
|
|
|
14945 |
}
|
|
|
14946 |
|
|
|
14947 |
public boolean equals(scanForLostItem_result that) {
|
|
|
14948 |
if (that == null)
|
|
|
14949 |
return false;
|
|
|
14950 |
|
|
|
14951 |
boolean this_present_ex = true && this.isSetEx();
|
|
|
14952 |
boolean that_present_ex = true && that.isSetEx();
|
|
|
14953 |
if (this_present_ex || that_present_ex) {
|
|
|
14954 |
if (!(this_present_ex && that_present_ex))
|
|
|
14955 |
return false;
|
|
|
14956 |
if (!this.ex.equals(that.ex))
|
|
|
14957 |
return false;
|
|
|
14958 |
}
|
|
|
14959 |
|
|
|
14960 |
return true;
|
|
|
14961 |
}
|
|
|
14962 |
|
|
|
14963 |
@Override
|
|
|
14964 |
public int hashCode() {
|
|
|
14965 |
return 0;
|
|
|
14966 |
}
|
|
|
14967 |
|
|
|
14968 |
public int compareTo(scanForLostItem_result other) {
|
|
|
14969 |
if (!getClass().equals(other.getClass())) {
|
|
|
14970 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14971 |
}
|
|
|
14972 |
|
|
|
14973 |
int lastComparison = 0;
|
|
|
14974 |
scanForLostItem_result typedOther = (scanForLostItem_result)other;
|
|
|
14975 |
|
|
|
14976 |
lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
|
|
|
14977 |
if (lastComparison != 0) {
|
|
|
14978 |
return lastComparison;
|
|
|
14979 |
}
|
|
|
14980 |
if (isSetEx()) {
|
|
|
14981 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
|
|
|
14982 |
if (lastComparison != 0) {
|
|
|
14983 |
return lastComparison;
|
|
|
14984 |
}
|
|
|
14985 |
}
|
|
|
14986 |
return 0;
|
|
|
14987 |
}
|
|
|
14988 |
|
|
|
14989 |
public _Fields fieldForId(int fieldId) {
|
|
|
14990 |
return _Fields.findByThriftId(fieldId);
|
|
|
14991 |
}
|
|
|
14992 |
|
|
|
14993 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14994 |
org.apache.thrift.protocol.TField field;
|
|
|
14995 |
iprot.readStructBegin();
|
|
|
14996 |
while (true)
|
|
|
14997 |
{
|
|
|
14998 |
field = iprot.readFieldBegin();
|
|
|
14999 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15000 |
break;
|
|
|
15001 |
}
|
|
|
15002 |
switch (field.id) {
|
|
|
15003 |
case 1: // EX
|
|
|
15004 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
15005 |
this.ex = new WarehouseServiceException();
|
|
|
15006 |
this.ex.read(iprot);
|
|
|
15007 |
} else {
|
|
|
15008 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15009 |
}
|
|
|
15010 |
break;
|
|
|
15011 |
default:
|
|
|
15012 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15013 |
}
|
|
|
15014 |
iprot.readFieldEnd();
|
|
|
15015 |
}
|
|
|
15016 |
iprot.readStructEnd();
|
|
|
15017 |
validate();
|
|
|
15018 |
}
|
|
|
15019 |
|
|
|
15020 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15021 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15022 |
|
|
|
15023 |
if (this.isSetEx()) {
|
|
|
15024 |
oprot.writeFieldBegin(EX_FIELD_DESC);
|
|
|
15025 |
this.ex.write(oprot);
|
|
|
15026 |
oprot.writeFieldEnd();
|
|
|
15027 |
}
|
|
|
15028 |
oprot.writeFieldStop();
|
|
|
15029 |
oprot.writeStructEnd();
|
|
|
15030 |
}
|
|
|
15031 |
|
|
|
15032 |
@Override
|
|
|
15033 |
public String toString() {
|
|
|
15034 |
StringBuilder sb = new StringBuilder("scanForLostItem_result(");
|
|
|
15035 |
boolean first = true;
|
|
|
15036 |
|
|
|
15037 |
sb.append("ex:");
|
|
|
15038 |
if (this.ex == null) {
|
|
|
15039 |
sb.append("null");
|
|
|
15040 |
} else {
|
|
|
15041 |
sb.append(this.ex);
|
|
|
15042 |
}
|
|
|
15043 |
first = false;
|
|
|
15044 |
sb.append(")");
|
|
|
15045 |
return sb.toString();
|
|
|
15046 |
}
|
|
|
15047 |
|
|
|
15048 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15049 |
// check for required fields
|
|
|
15050 |
}
|
|
|
15051 |
|
|
|
15052 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15053 |
try {
|
|
|
15054 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15055 |
} catch (org.apache.thrift.TException te) {
|
|
|
15056 |
throw new java.io.IOException(te);
|
|
|
15057 |
}
|
|
|
15058 |
}
|
|
|
15059 |
|
|
|
15060 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15061 |
try {
|
|
|
15062 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15063 |
} catch (org.apache.thrift.TException te) {
|
|
|
15064 |
throw new java.io.IOException(te);
|
|
|
15065 |
}
|
|
|
15066 |
}
|
|
|
15067 |
|
|
|
15068 |
}
|
|
|
15069 |
|
|
|
15070 |
public static class getCurrentSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_args, getCurrentSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
15071 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_args");
|
|
|
15072 |
|
|
|
15073 |
|
|
|
15074 |
|
|
|
15075 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15076 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15077 |
;
|
|
|
15078 |
|
|
|
15079 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15080 |
|
|
|
15081 |
static {
|
|
|
15082 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15083 |
byName.put(field.getFieldName(), field);
|
|
|
15084 |
}
|
|
|
15085 |
}
|
|
|
15086 |
|
|
|
15087 |
/**
|
|
|
15088 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15089 |
*/
|
|
|
15090 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15091 |
switch(fieldId) {
|
|
|
15092 |
default:
|
|
|
15093 |
return null;
|
|
|
15094 |
}
|
|
|
15095 |
}
|
|
|
15096 |
|
|
|
15097 |
/**
|
|
|
15098 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15099 |
* if it is not found.
|
|
|
15100 |
*/
|
|
|
15101 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15102 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15103 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15104 |
return fields;
|
|
|
15105 |
}
|
|
|
15106 |
|
|
|
15107 |
/**
|
|
|
15108 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15109 |
*/
|
|
|
15110 |
public static _Fields findByName(String name) {
|
|
|
15111 |
return byName.get(name);
|
|
|
15112 |
}
|
|
|
15113 |
|
|
|
15114 |
private final short _thriftId;
|
|
|
15115 |
private final String _fieldName;
|
|
|
15116 |
|
|
|
15117 |
_Fields(short thriftId, String fieldName) {
|
|
|
15118 |
_thriftId = thriftId;
|
|
|
15119 |
_fieldName = fieldName;
|
|
|
15120 |
}
|
|
|
15121 |
|
|
|
15122 |
public short getThriftFieldId() {
|
|
|
15123 |
return _thriftId;
|
|
|
15124 |
}
|
|
|
15125 |
|
|
|
15126 |
public String getFieldName() {
|
|
|
15127 |
return _fieldName;
|
|
|
15128 |
}
|
|
|
15129 |
}
|
|
|
15130 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15131 |
static {
|
|
|
15132 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15133 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15134 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
15135 |
}
|
|
|
15136 |
|
|
|
15137 |
public getCurrentSerializedInventoryByScans_args() {
|
|
|
15138 |
}
|
|
|
15139 |
|
|
|
15140 |
/**
|
|
|
15141 |
* Performs a deep copy on <i>other</i>.
|
|
|
15142 |
*/
|
|
|
15143 |
public getCurrentSerializedInventoryByScans_args(getCurrentSerializedInventoryByScans_args other) {
|
|
|
15144 |
}
|
|
|
15145 |
|
|
|
15146 |
public getCurrentSerializedInventoryByScans_args deepCopy() {
|
|
|
15147 |
return new getCurrentSerializedInventoryByScans_args(this);
|
|
|
15148 |
}
|
|
|
15149 |
|
|
|
15150 |
@Override
|
|
|
15151 |
public void clear() {
|
|
|
15152 |
}
|
|
|
15153 |
|
|
|
15154 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15155 |
switch (field) {
|
|
|
15156 |
}
|
|
|
15157 |
}
|
|
|
15158 |
|
|
|
15159 |
public Object getFieldValue(_Fields field) {
|
|
|
15160 |
switch (field) {
|
|
|
15161 |
}
|
|
|
15162 |
throw new IllegalStateException();
|
|
|
15163 |
}
|
|
|
15164 |
|
|
|
15165 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15166 |
public boolean isSet(_Fields field) {
|
|
|
15167 |
if (field == null) {
|
|
|
15168 |
throw new IllegalArgumentException();
|
|
|
15169 |
}
|
|
|
15170 |
|
|
|
15171 |
switch (field) {
|
|
|
15172 |
}
|
|
|
15173 |
throw new IllegalStateException();
|
|
|
15174 |
}
|
|
|
15175 |
|
|
|
15176 |
@Override
|
|
|
15177 |
public boolean equals(Object that) {
|
|
|
15178 |
if (that == null)
|
|
|
15179 |
return false;
|
|
|
15180 |
if (that instanceof getCurrentSerializedInventoryByScans_args)
|
|
|
15181 |
return this.equals((getCurrentSerializedInventoryByScans_args)that);
|
|
|
15182 |
return false;
|
|
|
15183 |
}
|
|
|
15184 |
|
|
|
15185 |
public boolean equals(getCurrentSerializedInventoryByScans_args that) {
|
|
|
15186 |
if (that == null)
|
|
|
15187 |
return false;
|
|
|
15188 |
|
|
|
15189 |
return true;
|
|
|
15190 |
}
|
|
|
15191 |
|
|
|
15192 |
@Override
|
|
|
15193 |
public int hashCode() {
|
|
|
15194 |
return 0;
|
|
|
15195 |
}
|
|
|
15196 |
|
|
|
15197 |
public int compareTo(getCurrentSerializedInventoryByScans_args other) {
|
|
|
15198 |
if (!getClass().equals(other.getClass())) {
|
|
|
15199 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15200 |
}
|
|
|
15201 |
|
|
|
15202 |
int lastComparison = 0;
|
|
|
15203 |
getCurrentSerializedInventoryByScans_args typedOther = (getCurrentSerializedInventoryByScans_args)other;
|
|
|
15204 |
|
|
|
15205 |
return 0;
|
|
|
15206 |
}
|
|
|
15207 |
|
|
|
15208 |
public _Fields fieldForId(int fieldId) {
|
|
|
15209 |
return _Fields.findByThriftId(fieldId);
|
|
|
15210 |
}
|
|
|
15211 |
|
|
|
15212 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15213 |
org.apache.thrift.protocol.TField field;
|
|
|
15214 |
iprot.readStructBegin();
|
|
|
15215 |
while (true)
|
|
|
15216 |
{
|
|
|
15217 |
field = iprot.readFieldBegin();
|
|
|
15218 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15219 |
break;
|
|
|
15220 |
}
|
|
|
15221 |
switch (field.id) {
|
|
|
15222 |
default:
|
|
|
15223 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15224 |
}
|
|
|
15225 |
iprot.readFieldEnd();
|
|
|
15226 |
}
|
|
|
15227 |
iprot.readStructEnd();
|
|
|
15228 |
validate();
|
|
|
15229 |
}
|
|
|
15230 |
|
|
|
15231 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15232 |
validate();
|
|
|
15233 |
|
|
|
15234 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15235 |
oprot.writeFieldStop();
|
|
|
15236 |
oprot.writeStructEnd();
|
|
|
15237 |
}
|
|
|
15238 |
|
|
|
15239 |
@Override
|
|
|
15240 |
public String toString() {
|
|
|
15241 |
StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_args(");
|
|
|
15242 |
boolean first = true;
|
|
|
15243 |
|
|
|
15244 |
sb.append(")");
|
|
|
15245 |
return sb.toString();
|
|
|
15246 |
}
|
|
|
15247 |
|
|
|
15248 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15249 |
// check for required fields
|
|
|
15250 |
}
|
|
|
15251 |
|
|
|
15252 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15253 |
try {
|
|
|
15254 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15255 |
} catch (org.apache.thrift.TException te) {
|
|
|
15256 |
throw new java.io.IOException(te);
|
|
|
15257 |
}
|
|
|
15258 |
}
|
|
|
15259 |
|
|
|
15260 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15261 |
try {
|
|
|
15262 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15263 |
} catch (org.apache.thrift.TException te) {
|
|
|
15264 |
throw new java.io.IOException(te);
|
|
|
15265 |
}
|
|
|
15266 |
}
|
|
|
15267 |
|
|
|
15268 |
}
|
|
|
15269 |
|
|
|
15270 |
public static class getCurrentSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_result, getCurrentSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
15271 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_result");
|
|
|
15272 |
|
|
|
15273 |
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);
|
|
|
15274 |
|
|
|
15275 |
private List<InventoryAvailability> success; // required
|
|
|
15276 |
|
|
|
15277 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15278 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15279 |
SUCCESS((short)0, "success");
|
|
|
15280 |
|
|
|
15281 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15282 |
|
|
|
15283 |
static {
|
|
|
15284 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15285 |
byName.put(field.getFieldName(), field);
|
|
|
15286 |
}
|
|
|
15287 |
}
|
|
|
15288 |
|
|
|
15289 |
/**
|
|
|
15290 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15291 |
*/
|
|
|
15292 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15293 |
switch(fieldId) {
|
|
|
15294 |
case 0: // SUCCESS
|
|
|
15295 |
return SUCCESS;
|
|
|
15296 |
default:
|
|
|
15297 |
return null;
|
|
|
15298 |
}
|
|
|
15299 |
}
|
|
|
15300 |
|
|
|
15301 |
/**
|
|
|
15302 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15303 |
* if it is not found.
|
|
|
15304 |
*/
|
|
|
15305 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15306 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15307 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15308 |
return fields;
|
|
|
15309 |
}
|
|
|
15310 |
|
|
|
15311 |
/**
|
|
|
15312 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15313 |
*/
|
|
|
15314 |
public static _Fields findByName(String name) {
|
|
|
15315 |
return byName.get(name);
|
|
|
15316 |
}
|
|
|
15317 |
|
|
|
15318 |
private final short _thriftId;
|
|
|
15319 |
private final String _fieldName;
|
|
|
15320 |
|
|
|
15321 |
_Fields(short thriftId, String fieldName) {
|
|
|
15322 |
_thriftId = thriftId;
|
|
|
15323 |
_fieldName = fieldName;
|
|
|
15324 |
}
|
|
|
15325 |
|
|
|
15326 |
public short getThriftFieldId() {
|
|
|
15327 |
return _thriftId;
|
|
|
15328 |
}
|
|
|
15329 |
|
|
|
15330 |
public String getFieldName() {
|
|
|
15331 |
return _fieldName;
|
|
|
15332 |
}
|
|
|
15333 |
}
|
|
|
15334 |
|
|
|
15335 |
// isset id assignments
|
|
|
15336 |
|
|
|
15337 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15338 |
static {
|
|
|
15339 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15340 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15341 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
15342 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
15343 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15344 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
15345 |
}
|
|
|
15346 |
|
|
|
15347 |
public getCurrentSerializedInventoryByScans_result() {
|
|
|
15348 |
}
|
|
|
15349 |
|
|
|
15350 |
public getCurrentSerializedInventoryByScans_result(
|
|
|
15351 |
List<InventoryAvailability> success)
|
|
|
15352 |
{
|
|
|
15353 |
this();
|
|
|
15354 |
this.success = success;
|
|
|
15355 |
}
|
|
|
15356 |
|
|
|
15357 |
/**
|
|
|
15358 |
* Performs a deep copy on <i>other</i>.
|
|
|
15359 |
*/
|
|
|
15360 |
public getCurrentSerializedInventoryByScans_result(getCurrentSerializedInventoryByScans_result other) {
|
|
|
15361 |
if (other.isSetSuccess()) {
|
|
|
15362 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
15363 |
for (InventoryAvailability other_element : other.success) {
|
|
|
15364 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
15365 |
}
|
|
|
15366 |
this.success = __this__success;
|
|
|
15367 |
}
|
|
|
15368 |
}
|
|
|
15369 |
|
|
|
15370 |
public getCurrentSerializedInventoryByScans_result deepCopy() {
|
|
|
15371 |
return new getCurrentSerializedInventoryByScans_result(this);
|
|
|
15372 |
}
|
|
|
15373 |
|
|
|
15374 |
@Override
|
|
|
15375 |
public void clear() {
|
|
|
15376 |
this.success = null;
|
|
|
15377 |
}
|
|
|
15378 |
|
|
|
15379 |
public int getSuccessSize() {
|
|
|
15380 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
15381 |
}
|
|
|
15382 |
|
|
|
15383 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
15384 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
15385 |
}
|
|
|
15386 |
|
|
|
15387 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
15388 |
if (this.success == null) {
|
|
|
15389 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
15390 |
}
|
|
|
15391 |
this.success.add(elem);
|
|
|
15392 |
}
|
|
|
15393 |
|
|
|
15394 |
public List<InventoryAvailability> getSuccess() {
|
|
|
15395 |
return this.success;
|
|
|
15396 |
}
|
|
|
15397 |
|
|
|
15398 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
15399 |
this.success = success;
|
|
|
15400 |
}
|
|
|
15401 |
|
|
|
15402 |
public void unsetSuccess() {
|
|
|
15403 |
this.success = null;
|
|
|
15404 |
}
|
|
|
15405 |
|
|
|
15406 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
15407 |
public boolean isSetSuccess() {
|
|
|
15408 |
return this.success != null;
|
|
|
15409 |
}
|
|
|
15410 |
|
|
|
15411 |
public void setSuccessIsSet(boolean value) {
|
|
|
15412 |
if (!value) {
|
|
|
15413 |
this.success = null;
|
|
|
15414 |
}
|
|
|
15415 |
}
|
|
|
15416 |
|
|
|
15417 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15418 |
switch (field) {
|
|
|
15419 |
case SUCCESS:
|
|
|
15420 |
if (value == null) {
|
|
|
15421 |
unsetSuccess();
|
|
|
15422 |
} else {
|
|
|
15423 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
15424 |
}
|
|
|
15425 |
break;
|
|
|
15426 |
|
|
|
15427 |
}
|
|
|
15428 |
}
|
|
|
15429 |
|
|
|
15430 |
public Object getFieldValue(_Fields field) {
|
|
|
15431 |
switch (field) {
|
|
|
15432 |
case SUCCESS:
|
|
|
15433 |
return getSuccess();
|
|
|
15434 |
|
|
|
15435 |
}
|
|
|
15436 |
throw new IllegalStateException();
|
|
|
15437 |
}
|
|
|
15438 |
|
|
|
15439 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15440 |
public boolean isSet(_Fields field) {
|
|
|
15441 |
if (field == null) {
|
|
|
15442 |
throw new IllegalArgumentException();
|
|
|
15443 |
}
|
|
|
15444 |
|
|
|
15445 |
switch (field) {
|
|
|
15446 |
case SUCCESS:
|
|
|
15447 |
return isSetSuccess();
|
|
|
15448 |
}
|
|
|
15449 |
throw new IllegalStateException();
|
|
|
15450 |
}
|
|
|
15451 |
|
|
|
15452 |
@Override
|
|
|
15453 |
public boolean equals(Object that) {
|
|
|
15454 |
if (that == null)
|
|
|
15455 |
return false;
|
|
|
15456 |
if (that instanceof getCurrentSerializedInventoryByScans_result)
|
|
|
15457 |
return this.equals((getCurrentSerializedInventoryByScans_result)that);
|
|
|
15458 |
return false;
|
|
|
15459 |
}
|
|
|
15460 |
|
|
|
15461 |
public boolean equals(getCurrentSerializedInventoryByScans_result that) {
|
|
|
15462 |
if (that == null)
|
|
|
15463 |
return false;
|
|
|
15464 |
|
|
|
15465 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
15466 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
15467 |
if (this_present_success || that_present_success) {
|
|
|
15468 |
if (!(this_present_success && that_present_success))
|
|
|
15469 |
return false;
|
|
|
15470 |
if (!this.success.equals(that.success))
|
|
|
15471 |
return false;
|
|
|
15472 |
}
|
|
|
15473 |
|
|
|
15474 |
return true;
|
|
|
15475 |
}
|
|
|
15476 |
|
|
|
15477 |
@Override
|
|
|
15478 |
public int hashCode() {
|
|
|
15479 |
return 0;
|
|
|
15480 |
}
|
|
|
15481 |
|
|
|
15482 |
public int compareTo(getCurrentSerializedInventoryByScans_result other) {
|
|
|
15483 |
if (!getClass().equals(other.getClass())) {
|
|
|
15484 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15485 |
}
|
|
|
15486 |
|
|
|
15487 |
int lastComparison = 0;
|
|
|
15488 |
getCurrentSerializedInventoryByScans_result typedOther = (getCurrentSerializedInventoryByScans_result)other;
|
|
|
15489 |
|
|
|
15490 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
15491 |
if (lastComparison != 0) {
|
|
|
15492 |
return lastComparison;
|
|
|
15493 |
}
|
|
|
15494 |
if (isSetSuccess()) {
|
|
|
15495 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
15496 |
if (lastComparison != 0) {
|
|
|
15497 |
return lastComparison;
|
|
|
15498 |
}
|
|
|
15499 |
}
|
|
|
15500 |
return 0;
|
|
|
15501 |
}
|
|
|
15502 |
|
|
|
15503 |
public _Fields fieldForId(int fieldId) {
|
|
|
15504 |
return _Fields.findByThriftId(fieldId);
|
|
|
15505 |
}
|
|
|
15506 |
|
|
|
15507 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15508 |
org.apache.thrift.protocol.TField field;
|
|
|
15509 |
iprot.readStructBegin();
|
|
|
15510 |
while (true)
|
|
|
15511 |
{
|
|
|
15512 |
field = iprot.readFieldBegin();
|
|
|
15513 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15514 |
break;
|
|
|
15515 |
}
|
|
|
15516 |
switch (field.id) {
|
|
|
15517 |
case 0: // SUCCESS
|
|
|
15518 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
15519 |
{
|
|
|
15520 |
org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
|
|
|
15521 |
this.success = new ArrayList<InventoryAvailability>(_list40.size);
|
|
|
15522 |
for (int _i41 = 0; _i41 < _list40.size; ++_i41)
|
|
|
15523 |
{
|
|
|
15524 |
InventoryAvailability _elem42; // required
|
|
|
15525 |
_elem42 = new InventoryAvailability();
|
|
|
15526 |
_elem42.read(iprot);
|
|
|
15527 |
this.success.add(_elem42);
|
|
|
15528 |
}
|
|
|
15529 |
iprot.readListEnd();
|
|
|
15530 |
}
|
|
|
15531 |
} else {
|
|
|
15532 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15533 |
}
|
|
|
15534 |
break;
|
|
|
15535 |
default:
|
|
|
15536 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15537 |
}
|
|
|
15538 |
iprot.readFieldEnd();
|
|
|
15539 |
}
|
|
|
15540 |
iprot.readStructEnd();
|
|
|
15541 |
validate();
|
|
|
15542 |
}
|
|
|
15543 |
|
|
|
15544 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15545 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15546 |
|
|
|
15547 |
if (this.isSetSuccess()) {
|
|
|
15548 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
15549 |
{
|
|
|
15550 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
15551 |
for (InventoryAvailability _iter43 : this.success)
|
|
|
15552 |
{
|
|
|
15553 |
_iter43.write(oprot);
|
|
|
15554 |
}
|
|
|
15555 |
oprot.writeListEnd();
|
|
|
15556 |
}
|
|
|
15557 |
oprot.writeFieldEnd();
|
|
|
15558 |
}
|
|
|
15559 |
oprot.writeFieldStop();
|
|
|
15560 |
oprot.writeStructEnd();
|
|
|
15561 |
}
|
|
|
15562 |
|
|
|
15563 |
@Override
|
|
|
15564 |
public String toString() {
|
|
|
15565 |
StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_result(");
|
|
|
15566 |
boolean first = true;
|
|
|
15567 |
|
|
|
15568 |
sb.append("success:");
|
|
|
15569 |
if (this.success == null) {
|
|
|
15570 |
sb.append("null");
|
|
|
15571 |
} else {
|
|
|
15572 |
sb.append(this.success);
|
|
|
15573 |
}
|
|
|
15574 |
first = false;
|
|
|
15575 |
sb.append(")");
|
|
|
15576 |
return sb.toString();
|
|
|
15577 |
}
|
|
|
15578 |
|
|
|
15579 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15580 |
// check for required fields
|
|
|
15581 |
}
|
|
|
15582 |
|
|
|
15583 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15584 |
try {
|
|
|
15585 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15586 |
} catch (org.apache.thrift.TException te) {
|
|
|
15587 |
throw new java.io.IOException(te);
|
|
|
15588 |
}
|
|
|
15589 |
}
|
|
|
15590 |
|
|
|
15591 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15592 |
try {
|
|
|
15593 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15594 |
} catch (org.apache.thrift.TException te) {
|
|
|
15595 |
throw new java.io.IOException(te);
|
|
|
15596 |
}
|
|
|
15597 |
}
|
|
|
15598 |
|
|
|
15599 |
}
|
|
|
15600 |
|
| 6630 |
amar.kumar |
15601 |
public static class getCurrentNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_args, getCurrentNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
15602 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_args");
|
|
|
15603 |
|
|
|
15604 |
|
|
|
15605 |
|
|
|
15606 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15607 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15608 |
;
|
|
|
15609 |
|
|
|
15610 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15611 |
|
|
|
15612 |
static {
|
|
|
15613 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15614 |
byName.put(field.getFieldName(), field);
|
|
|
15615 |
}
|
|
|
15616 |
}
|
|
|
15617 |
|
|
|
15618 |
/**
|
|
|
15619 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15620 |
*/
|
|
|
15621 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15622 |
switch(fieldId) {
|
|
|
15623 |
default:
|
|
|
15624 |
return null;
|
|
|
15625 |
}
|
|
|
15626 |
}
|
|
|
15627 |
|
|
|
15628 |
/**
|
|
|
15629 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15630 |
* if it is not found.
|
|
|
15631 |
*/
|
|
|
15632 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15633 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15634 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15635 |
return fields;
|
|
|
15636 |
}
|
|
|
15637 |
|
|
|
15638 |
/**
|
|
|
15639 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15640 |
*/
|
|
|
15641 |
public static _Fields findByName(String name) {
|
|
|
15642 |
return byName.get(name);
|
|
|
15643 |
}
|
|
|
15644 |
|
|
|
15645 |
private final short _thriftId;
|
|
|
15646 |
private final String _fieldName;
|
|
|
15647 |
|
|
|
15648 |
_Fields(short thriftId, String fieldName) {
|
|
|
15649 |
_thriftId = thriftId;
|
|
|
15650 |
_fieldName = fieldName;
|
|
|
15651 |
}
|
|
|
15652 |
|
|
|
15653 |
public short getThriftFieldId() {
|
|
|
15654 |
return _thriftId;
|
|
|
15655 |
}
|
|
|
15656 |
|
|
|
15657 |
public String getFieldName() {
|
|
|
15658 |
return _fieldName;
|
|
|
15659 |
}
|
|
|
15660 |
}
|
|
|
15661 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15662 |
static {
|
|
|
15663 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15664 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15665 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
15666 |
}
|
|
|
15667 |
|
|
|
15668 |
public getCurrentNonSerializedInventoryByScans_args() {
|
|
|
15669 |
}
|
|
|
15670 |
|
|
|
15671 |
/**
|
|
|
15672 |
* Performs a deep copy on <i>other</i>.
|
|
|
15673 |
*/
|
|
|
15674 |
public getCurrentNonSerializedInventoryByScans_args(getCurrentNonSerializedInventoryByScans_args other) {
|
|
|
15675 |
}
|
|
|
15676 |
|
|
|
15677 |
public getCurrentNonSerializedInventoryByScans_args deepCopy() {
|
|
|
15678 |
return new getCurrentNonSerializedInventoryByScans_args(this);
|
|
|
15679 |
}
|
|
|
15680 |
|
|
|
15681 |
@Override
|
|
|
15682 |
public void clear() {
|
|
|
15683 |
}
|
|
|
15684 |
|
|
|
15685 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15686 |
switch (field) {
|
|
|
15687 |
}
|
|
|
15688 |
}
|
|
|
15689 |
|
|
|
15690 |
public Object getFieldValue(_Fields field) {
|
|
|
15691 |
switch (field) {
|
|
|
15692 |
}
|
|
|
15693 |
throw new IllegalStateException();
|
|
|
15694 |
}
|
|
|
15695 |
|
|
|
15696 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15697 |
public boolean isSet(_Fields field) {
|
|
|
15698 |
if (field == null) {
|
|
|
15699 |
throw new IllegalArgumentException();
|
|
|
15700 |
}
|
|
|
15701 |
|
|
|
15702 |
switch (field) {
|
|
|
15703 |
}
|
|
|
15704 |
throw new IllegalStateException();
|
|
|
15705 |
}
|
|
|
15706 |
|
|
|
15707 |
@Override
|
|
|
15708 |
public boolean equals(Object that) {
|
|
|
15709 |
if (that == null)
|
|
|
15710 |
return false;
|
|
|
15711 |
if (that instanceof getCurrentNonSerializedInventoryByScans_args)
|
|
|
15712 |
return this.equals((getCurrentNonSerializedInventoryByScans_args)that);
|
|
|
15713 |
return false;
|
|
|
15714 |
}
|
|
|
15715 |
|
|
|
15716 |
public boolean equals(getCurrentNonSerializedInventoryByScans_args that) {
|
|
|
15717 |
if (that == null)
|
|
|
15718 |
return false;
|
|
|
15719 |
|
|
|
15720 |
return true;
|
|
|
15721 |
}
|
|
|
15722 |
|
|
|
15723 |
@Override
|
|
|
15724 |
public int hashCode() {
|
|
|
15725 |
return 0;
|
|
|
15726 |
}
|
|
|
15727 |
|
|
|
15728 |
public int compareTo(getCurrentNonSerializedInventoryByScans_args other) {
|
|
|
15729 |
if (!getClass().equals(other.getClass())) {
|
|
|
15730 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15731 |
}
|
|
|
15732 |
|
|
|
15733 |
int lastComparison = 0;
|
|
|
15734 |
getCurrentNonSerializedInventoryByScans_args typedOther = (getCurrentNonSerializedInventoryByScans_args)other;
|
|
|
15735 |
|
|
|
15736 |
return 0;
|
|
|
15737 |
}
|
|
|
15738 |
|
|
|
15739 |
public _Fields fieldForId(int fieldId) {
|
|
|
15740 |
return _Fields.findByThriftId(fieldId);
|
|
|
15741 |
}
|
|
|
15742 |
|
|
|
15743 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15744 |
org.apache.thrift.protocol.TField field;
|
|
|
15745 |
iprot.readStructBegin();
|
|
|
15746 |
while (true)
|
|
|
15747 |
{
|
|
|
15748 |
field = iprot.readFieldBegin();
|
|
|
15749 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15750 |
break;
|
|
|
15751 |
}
|
|
|
15752 |
switch (field.id) {
|
|
|
15753 |
default:
|
|
|
15754 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15755 |
}
|
|
|
15756 |
iprot.readFieldEnd();
|
|
|
15757 |
}
|
|
|
15758 |
iprot.readStructEnd();
|
|
|
15759 |
validate();
|
|
|
15760 |
}
|
|
|
15761 |
|
|
|
15762 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15763 |
validate();
|
|
|
15764 |
|
|
|
15765 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15766 |
oprot.writeFieldStop();
|
|
|
15767 |
oprot.writeStructEnd();
|
|
|
15768 |
}
|
|
|
15769 |
|
|
|
15770 |
@Override
|
|
|
15771 |
public String toString() {
|
|
|
15772 |
StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_args(");
|
|
|
15773 |
boolean first = true;
|
|
|
15774 |
|
|
|
15775 |
sb.append(")");
|
|
|
15776 |
return sb.toString();
|
|
|
15777 |
}
|
|
|
15778 |
|
|
|
15779 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15780 |
// check for required fields
|
|
|
15781 |
}
|
|
|
15782 |
|
|
|
15783 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15784 |
try {
|
|
|
15785 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15786 |
} catch (org.apache.thrift.TException te) {
|
|
|
15787 |
throw new java.io.IOException(te);
|
|
|
15788 |
}
|
|
|
15789 |
}
|
|
|
15790 |
|
|
|
15791 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15792 |
try {
|
|
|
15793 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15794 |
} catch (org.apache.thrift.TException te) {
|
|
|
15795 |
throw new java.io.IOException(te);
|
|
|
15796 |
}
|
|
|
15797 |
}
|
|
|
15798 |
|
|
|
15799 |
}
|
|
|
15800 |
|
|
|
15801 |
public static class getCurrentNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_result, getCurrentNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
15802 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_result");
|
|
|
15803 |
|
|
|
15804 |
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);
|
|
|
15805 |
|
|
|
15806 |
private List<InventoryAvailability> success; // required
|
|
|
15807 |
|
|
|
15808 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15809 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15810 |
SUCCESS((short)0, "success");
|
|
|
15811 |
|
|
|
15812 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15813 |
|
|
|
15814 |
static {
|
|
|
15815 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15816 |
byName.put(field.getFieldName(), field);
|
|
|
15817 |
}
|
|
|
15818 |
}
|
|
|
15819 |
|
|
|
15820 |
/**
|
|
|
15821 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15822 |
*/
|
|
|
15823 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15824 |
switch(fieldId) {
|
|
|
15825 |
case 0: // SUCCESS
|
|
|
15826 |
return SUCCESS;
|
|
|
15827 |
default:
|
|
|
15828 |
return null;
|
|
|
15829 |
}
|
|
|
15830 |
}
|
|
|
15831 |
|
|
|
15832 |
/**
|
|
|
15833 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15834 |
* if it is not found.
|
|
|
15835 |
*/
|
|
|
15836 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15837 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15838 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15839 |
return fields;
|
|
|
15840 |
}
|
|
|
15841 |
|
|
|
15842 |
/**
|
|
|
15843 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15844 |
*/
|
|
|
15845 |
public static _Fields findByName(String name) {
|
|
|
15846 |
return byName.get(name);
|
|
|
15847 |
}
|
|
|
15848 |
|
|
|
15849 |
private final short _thriftId;
|
|
|
15850 |
private final String _fieldName;
|
|
|
15851 |
|
|
|
15852 |
_Fields(short thriftId, String fieldName) {
|
|
|
15853 |
_thriftId = thriftId;
|
|
|
15854 |
_fieldName = fieldName;
|
|
|
15855 |
}
|
|
|
15856 |
|
|
|
15857 |
public short getThriftFieldId() {
|
|
|
15858 |
return _thriftId;
|
|
|
15859 |
}
|
|
|
15860 |
|
|
|
15861 |
public String getFieldName() {
|
|
|
15862 |
return _fieldName;
|
|
|
15863 |
}
|
|
|
15864 |
}
|
|
|
15865 |
|
|
|
15866 |
// isset id assignments
|
|
|
15867 |
|
|
|
15868 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15869 |
static {
|
|
|
15870 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15871 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15872 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
15873 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
15874 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15875 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
15876 |
}
|
|
|
15877 |
|
|
|
15878 |
public getCurrentNonSerializedInventoryByScans_result() {
|
|
|
15879 |
}
|
|
|
15880 |
|
|
|
15881 |
public getCurrentNonSerializedInventoryByScans_result(
|
|
|
15882 |
List<InventoryAvailability> success)
|
|
|
15883 |
{
|
|
|
15884 |
this();
|
|
|
15885 |
this.success = success;
|
|
|
15886 |
}
|
|
|
15887 |
|
|
|
15888 |
/**
|
|
|
15889 |
* Performs a deep copy on <i>other</i>.
|
|
|
15890 |
*/
|
|
|
15891 |
public getCurrentNonSerializedInventoryByScans_result(getCurrentNonSerializedInventoryByScans_result other) {
|
|
|
15892 |
if (other.isSetSuccess()) {
|
|
|
15893 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
15894 |
for (InventoryAvailability other_element : other.success) {
|
|
|
15895 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
15896 |
}
|
|
|
15897 |
this.success = __this__success;
|
|
|
15898 |
}
|
|
|
15899 |
}
|
|
|
15900 |
|
|
|
15901 |
public getCurrentNonSerializedInventoryByScans_result deepCopy() {
|
|
|
15902 |
return new getCurrentNonSerializedInventoryByScans_result(this);
|
|
|
15903 |
}
|
|
|
15904 |
|
|
|
15905 |
@Override
|
|
|
15906 |
public void clear() {
|
|
|
15907 |
this.success = null;
|
|
|
15908 |
}
|
|
|
15909 |
|
|
|
15910 |
public int getSuccessSize() {
|
|
|
15911 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
15912 |
}
|
|
|
15913 |
|
|
|
15914 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
15915 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
15916 |
}
|
|
|
15917 |
|
|
|
15918 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
15919 |
if (this.success == null) {
|
|
|
15920 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
15921 |
}
|
|
|
15922 |
this.success.add(elem);
|
|
|
15923 |
}
|
|
|
15924 |
|
|
|
15925 |
public List<InventoryAvailability> getSuccess() {
|
|
|
15926 |
return this.success;
|
|
|
15927 |
}
|
|
|
15928 |
|
|
|
15929 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
15930 |
this.success = success;
|
|
|
15931 |
}
|
|
|
15932 |
|
|
|
15933 |
public void unsetSuccess() {
|
|
|
15934 |
this.success = null;
|
|
|
15935 |
}
|
|
|
15936 |
|
|
|
15937 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
15938 |
public boolean isSetSuccess() {
|
|
|
15939 |
return this.success != null;
|
|
|
15940 |
}
|
|
|
15941 |
|
|
|
15942 |
public void setSuccessIsSet(boolean value) {
|
|
|
15943 |
if (!value) {
|
|
|
15944 |
this.success = null;
|
|
|
15945 |
}
|
|
|
15946 |
}
|
|
|
15947 |
|
|
|
15948 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15949 |
switch (field) {
|
|
|
15950 |
case SUCCESS:
|
|
|
15951 |
if (value == null) {
|
|
|
15952 |
unsetSuccess();
|
|
|
15953 |
} else {
|
|
|
15954 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
15955 |
}
|
|
|
15956 |
break;
|
|
|
15957 |
|
|
|
15958 |
}
|
|
|
15959 |
}
|
|
|
15960 |
|
|
|
15961 |
public Object getFieldValue(_Fields field) {
|
|
|
15962 |
switch (field) {
|
|
|
15963 |
case SUCCESS:
|
|
|
15964 |
return getSuccess();
|
|
|
15965 |
|
|
|
15966 |
}
|
|
|
15967 |
throw new IllegalStateException();
|
|
|
15968 |
}
|
|
|
15969 |
|
|
|
15970 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15971 |
public boolean isSet(_Fields field) {
|
|
|
15972 |
if (field == null) {
|
|
|
15973 |
throw new IllegalArgumentException();
|
|
|
15974 |
}
|
|
|
15975 |
|
|
|
15976 |
switch (field) {
|
|
|
15977 |
case SUCCESS:
|
|
|
15978 |
return isSetSuccess();
|
|
|
15979 |
}
|
|
|
15980 |
throw new IllegalStateException();
|
|
|
15981 |
}
|
|
|
15982 |
|
|
|
15983 |
@Override
|
|
|
15984 |
public boolean equals(Object that) {
|
|
|
15985 |
if (that == null)
|
|
|
15986 |
return false;
|
|
|
15987 |
if (that instanceof getCurrentNonSerializedInventoryByScans_result)
|
|
|
15988 |
return this.equals((getCurrentNonSerializedInventoryByScans_result)that);
|
|
|
15989 |
return false;
|
|
|
15990 |
}
|
|
|
15991 |
|
|
|
15992 |
public boolean equals(getCurrentNonSerializedInventoryByScans_result that) {
|
|
|
15993 |
if (that == null)
|
|
|
15994 |
return false;
|
|
|
15995 |
|
|
|
15996 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
15997 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
15998 |
if (this_present_success || that_present_success) {
|
|
|
15999 |
if (!(this_present_success && that_present_success))
|
|
|
16000 |
return false;
|
|
|
16001 |
if (!this.success.equals(that.success))
|
|
|
16002 |
return false;
|
|
|
16003 |
}
|
|
|
16004 |
|
|
|
16005 |
return true;
|
|
|
16006 |
}
|
|
|
16007 |
|
|
|
16008 |
@Override
|
|
|
16009 |
public int hashCode() {
|
|
|
16010 |
return 0;
|
|
|
16011 |
}
|
|
|
16012 |
|
|
|
16013 |
public int compareTo(getCurrentNonSerializedInventoryByScans_result other) {
|
|
|
16014 |
if (!getClass().equals(other.getClass())) {
|
|
|
16015 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16016 |
}
|
|
|
16017 |
|
|
|
16018 |
int lastComparison = 0;
|
|
|
16019 |
getCurrentNonSerializedInventoryByScans_result typedOther = (getCurrentNonSerializedInventoryByScans_result)other;
|
|
|
16020 |
|
|
|
16021 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
16022 |
if (lastComparison != 0) {
|
|
|
16023 |
return lastComparison;
|
|
|
16024 |
}
|
|
|
16025 |
if (isSetSuccess()) {
|
|
|
16026 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
16027 |
if (lastComparison != 0) {
|
|
|
16028 |
return lastComparison;
|
|
|
16029 |
}
|
|
|
16030 |
}
|
|
|
16031 |
return 0;
|
|
|
16032 |
}
|
|
|
16033 |
|
|
|
16034 |
public _Fields fieldForId(int fieldId) {
|
|
|
16035 |
return _Fields.findByThriftId(fieldId);
|
|
|
16036 |
}
|
|
|
16037 |
|
|
|
16038 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16039 |
org.apache.thrift.protocol.TField field;
|
|
|
16040 |
iprot.readStructBegin();
|
|
|
16041 |
while (true)
|
|
|
16042 |
{
|
|
|
16043 |
field = iprot.readFieldBegin();
|
|
|
16044 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16045 |
break;
|
|
|
16046 |
}
|
|
|
16047 |
switch (field.id) {
|
|
|
16048 |
case 0: // SUCCESS
|
|
|
16049 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
16050 |
{
|
|
|
16051 |
org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
|
|
|
16052 |
this.success = new ArrayList<InventoryAvailability>(_list44.size);
|
|
|
16053 |
for (int _i45 = 0; _i45 < _list44.size; ++_i45)
|
|
|
16054 |
{
|
|
|
16055 |
InventoryAvailability _elem46; // required
|
|
|
16056 |
_elem46 = new InventoryAvailability();
|
|
|
16057 |
_elem46.read(iprot);
|
|
|
16058 |
this.success.add(_elem46);
|
|
|
16059 |
}
|
|
|
16060 |
iprot.readListEnd();
|
|
|
16061 |
}
|
|
|
16062 |
} else {
|
|
|
16063 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16064 |
}
|
|
|
16065 |
break;
|
|
|
16066 |
default:
|
|
|
16067 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16068 |
}
|
|
|
16069 |
iprot.readFieldEnd();
|
|
|
16070 |
}
|
|
|
16071 |
iprot.readStructEnd();
|
|
|
16072 |
validate();
|
|
|
16073 |
}
|
|
|
16074 |
|
|
|
16075 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16076 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16077 |
|
|
|
16078 |
if (this.isSetSuccess()) {
|
|
|
16079 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
16080 |
{
|
|
|
16081 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
16082 |
for (InventoryAvailability _iter47 : this.success)
|
|
|
16083 |
{
|
|
|
16084 |
_iter47.write(oprot);
|
|
|
16085 |
}
|
|
|
16086 |
oprot.writeListEnd();
|
|
|
16087 |
}
|
|
|
16088 |
oprot.writeFieldEnd();
|
|
|
16089 |
}
|
|
|
16090 |
oprot.writeFieldStop();
|
|
|
16091 |
oprot.writeStructEnd();
|
|
|
16092 |
}
|
|
|
16093 |
|
|
|
16094 |
@Override
|
|
|
16095 |
public String toString() {
|
|
|
16096 |
StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_result(");
|
|
|
16097 |
boolean first = true;
|
|
|
16098 |
|
|
|
16099 |
sb.append("success:");
|
|
|
16100 |
if (this.success == null) {
|
|
|
16101 |
sb.append("null");
|
|
|
16102 |
} else {
|
|
|
16103 |
sb.append(this.success);
|
|
|
16104 |
}
|
|
|
16105 |
first = false;
|
|
|
16106 |
sb.append(")");
|
|
|
16107 |
return sb.toString();
|
|
|
16108 |
}
|
|
|
16109 |
|
|
|
16110 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16111 |
// check for required fields
|
|
|
16112 |
}
|
|
|
16113 |
|
|
|
16114 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16115 |
try {
|
|
|
16116 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16117 |
} catch (org.apache.thrift.TException te) {
|
|
|
16118 |
throw new java.io.IOException(te);
|
|
|
16119 |
}
|
|
|
16120 |
}
|
|
|
16121 |
|
|
|
16122 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16123 |
try {
|
|
|
16124 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16125 |
} catch (org.apache.thrift.TException te) {
|
|
|
16126 |
throw new java.io.IOException(te);
|
|
|
16127 |
}
|
|
|
16128 |
}
|
|
|
16129 |
|
|
|
16130 |
}
|
|
|
16131 |
|
| 2820 |
chandransh |
16132 |
}
|